/* CIS 7000 course site — clean academic style (Penn palette accents) */
:root {
  --ink: #1a1a1a;
  --ink2: #4a4a48;
  --muted: #8a8880;
  --accent: #011f5b;      /* Penn blue */
  --accent2: #990000;     /* Penn red */
  --line: #e2e1da;
  --wash: #f6f7f9;
  --wash-blue: #eef2f9;
  --industry: #0d6b3f;
  --academic: #1c5cab;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.55 "Charter", "Georgia", "Cambria", serif;
}
main { max-width: 1080px; margin-left: auto; margin-right: auto; }
header > * { max-width: 1080px; margin-left: auto; margin-right: auto; padding: 0 24px; }
main { padding: 0 24px 48px; }

header {
  border-bottom: 3px solid var(--accent);
  padding: 36px 0 0;
  margin-bottom: 28px;
}
.kicker {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent2); font-weight: 600;
}
h1 { font-size: 34px; margin: 6px auto 14px; color: var(--accent); }
nav { padding-bottom: 12px; }
nav a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; margin-right: 22px; text-decoration: none; color: var(--ink2);
}
nav a:hover { color: var(--accent); }

h2 {
  font-size: 24px; color: var(--accent);
  margin: 40px 0 12px; padding-top: 8px;
}
h3 { font-size: 18px; margin: 22px 0 8px; }
a { color: var(--academic); }
p { margin: 10px 0; }

/* logistics */
table.logistics { border-collapse: collapse; margin: 4px 0 8px; }
table.logistics th {
  text-align: left; padding: 3px 18px 3px 0; font-weight: 600;
  color: var(--ink2); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 14px;
  vertical-align: top; white-space: nowrap;
}
table.logistics td { padding: 3px 0; }

/* pillars */
.pillar {
  display: inline-block; width: 20px; height: 20px; line-height: 20px;
  border-radius: 50%; text-align: center; color: #fff;
  font: 700 11px/20px "Helvetica Neue", Arial, sans-serif;
  margin-right: 2px; vertical-align: 1px;
}
.pillar-P { background: #1c5cab; }
.pillar-E { background: #b45309; }
.pillar-I { background: #6d28a8; }
.pillar-M { background: #4a5a6a; }
ul.pillarlist { padding-left: 20px; }
ul.pillarlist li { margin: 8px 0; }
ul.pillarlist .pillar { margin-right: 6px; }

/* grading */
table.grading { border-collapse: collapse; min-width: 380px; }
table.grading td { border: 1px solid var(--line); padding: 6px 14px; }
table.grading tr td:last-child { text-align: right; font-weight: 600; }

/* schedule */
.schednote { font-size: 14.5px; color: var(--ink2); }
table.schedule {
  border-collapse: collapse; width: 100%; margin-top: 10px;
  font-size: 14.5px;
}
table.schedule th {
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.04em;
  text-align: left; color: var(--ink2);
  border-bottom: 2px solid var(--accent); padding: 6px 10px;
}
table.schedule td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px; vertical-align: top;
}
.datecell { white-space: nowrap; width: 92px; color: var(--ink2); }
.topiccell { width: 30%; }
.notecell { width: 12%; }
.prescell { width: 110px; color: var(--ink2); font-size: 13.5px; }
tr.part-row td {
  background: var(--accent); color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-weight: 600;
  padding: 7px 10px;
}
.part-blurb { font-weight: 400; opacity: 0.85; font-style: italic; }
tr.noclass-row td { background: var(--wash); color: var(--muted); font-style: italic; }
tbody tr:nth-child(even):not(.part-row):not(.noclass-row) td { background: var(--wash-blue); }

.reading { margin-bottom: 5px; }
.reading.optional { color: var(--ink2); font-size: 13.5px; }
.optlabel { font-style: italic; color: var(--muted); }
.cite { color: var(--muted); font-size: 13px; }
.tag {
  font: 600 10px/1 "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 6px; border-radius: 9px; vertical-align: 1px;
}
.tag-industry { color: var(--industry); border: 1px solid var(--industry); }
.tag-academic { color: var(--academic); border: 1px solid var(--academic); }
.milestone {
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 12.5px;
  font-weight: 600; color: var(--accent2);
}

/* policies + optional */
ul.policies li { margin: 8px 0; }
#optional ul { margin: 4px 0 14px; padding-left: 20px; }
#optional li { margin: 3px 0; font-size: 14.5px; }
#optional h3 { color: var(--ink2); font-size: 16px; margin: 18px 0 4px; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
  padding: 18px 24px 40px; max-width: 1080px; margin: 0 auto;
}

@media (max-width: 760px) {
  table.schedule, table.schedule thead, table.schedule tbody,
  table.schedule tr, table.schedule td, table.schedule th { display: block; }
  table.schedule thead { display: none; }
  table.schedule td { border: none; padding: 4px 8px; }
  table.schedule tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .datecell { font-weight: 700; width: auto; }
  .topiccell, .notecell { width: auto; }
}
