/* =========================================================================
   ACC Special Topics — Course Site
   Shared styles for every page

   ─────────────────────────────────────────────────────────────────────────
   THEME VARIABLES — EDIT THESE BLOCKS TO RESKIN THE ENTIRE SITE
   ─────────────────────────────────────────────────────────────────────────
   To swap to ACC branding (or any other theme), change the values in the
   :root block below. Every color, font, and layout dimension is defined as
   a CSS variable. The rest of this file references them — no other edits
   needed for a full reskin.

   Currently using the IndiaFoxtrotCharlie academic palette (matches the
   BUSI 2305 site). To switch to ACC official branding, replace this block
   with a swap from another preset (see ACC brand guide colors below in
   commented blocks).
   ========================================================================= */

:root {
  /* === COLOR PALETTE === */
  --ink: #1a1a1a;          /* primary text */
  --ink-soft: #2d2d2d;     /* secondary text */
  --paper: #fafaf7;        /* page background */
  --paper-warm: #f5f3ed;   /* card / section background */
  --rule: #b8b3a4;         /* dividing lines */
  --rule-soft: #d4d0c4;    /* subtle borders */
  --muted: #5a5449;        /* de-emphasized text */
  --muted-soft: #7d7768;   /* even more de-emphasized */
  --accent: #7a3119;       /* primary accent (links, highlights) */
  --accent-soft: #f0e3dc;  /* accent background tint */
  --highlight: #f4ecd8;    /* callout / pull-quote bg */
  --ok: #2f5a2f;           /* success / positive */

  /* === TYPOGRAPHY === */
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* === LAYOUT === */
  --max: 1080px;
  --focus: 3px solid #4a90e2;
  --focus-offset: 2px;
}

/* === ALTERNATE THEME PRESETS (uncomment a block below to swap) ===
   To use, comment out the :root above and uncomment one block below.
   Or copy values into :root and tweak.

   --- ACC OFFICIAL BRANDING (placeholder — replace with real ACC colors) ---
   :root {
     --ink: #003057;
     --ink-soft: #1a4571;
     --paper: #ffffff;
     --paper-warm: #f5f7fa;
     --rule: #c8d3df;
     --rule-soft: #e1e8ef;
     --muted: #5a6f85;
     --muted-soft: #8095aa;
     --accent: #ff6900;
     --accent-soft: #fff0e0;
     --highlight: #fffae6;
     --ok: #2f7a3a;
     --serif: Georgia, "Times New Roman", serif;
     --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     --mono: ui-monospace, Menlo, Consolas, monospace;
     --max: 1080px;
     --focus: 3px solid #ff6900;
     --focus-offset: 2px;
   }
   ============================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* === ACCESSIBILITY: focus states + skip link ============================ */
*:focus { outline: none; }
*:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 2px;
}
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}
.skip-to-content:focus {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === TOPBAR ============================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.95);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.crest {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.crest .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}
nav.primary { display: flex; gap: 2px; align-items: center; }
nav.primary a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  font-weight: 500;
}
nav.primary a:hover { color: var(--ink); background: var(--paper-warm); }
nav.primary a.active { color: var(--accent); background: var(--accent-soft); }

/* === HERO =============================================================== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px 56px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  width: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 32px;
  width: 48px;
  height: 4px;
  background: var(--accent);
}
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 800px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero .lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 680px;
  font-weight: 400;
}

/* === META STRIP ========================================================== */
.meta-strip {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  width: 100%;
}
.meta-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.meta-item .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.meta-item .val {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}

/* === PAGE MAIN ========================================================== */
main {
  flex: 1;
  width: 100%;
}
section.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 24px;
  width: 100%;
}
.section-head { margin-bottom: 40px; }
.section-head .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 500;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-head .sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
}

/* === PROSE ============================================================== */
.prose { max-width: 720px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.prose h3:first-child { margin-top: 0; }
.prose h4 {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.prose ul, .prose ol { margin: 14px 0 20px 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; line-height: 1.6; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose strong { color: var(--ink); font-weight: 600; }

.placeholder-note {
  background: var(--highlight);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  margin: 20px 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.placeholder-note strong {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

/* === SYLLABUS (policy content) ========================================== */
.policy-block {
  margin: 32px 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
}
.policy-block:first-of-type { border-top: none; padding-top: 0; }
.policy-block h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.policy-block h4 {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-top: 20px;
  margin-bottom: 6px;
}
.policy-block p { margin-bottom: 12px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.policy-block ul, .policy-block ol { margin: 10px 0 16px 20px; font-size: 15px; }
.policy-block li { margin-bottom: 6px; line-height: 1.55; color: var(--ink-soft); }

.grade-table {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 400px;
  margin: 16px 0 24px;
  font-family: var(--mono);
  font-size: 14px;
}
.grade-table .row {
  display: contents;
}
.grade-table .row > span {
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
}
.grade-table .row > span:last-child {
  text-align: right;
  color: var(--ink);
  font-weight: 500;
}
.grade-table .row.total > span {
  border-bottom: none;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.scale-table {
  font-family: var(--mono);
  font-size: 14px;
  margin: 12px 0 24px;
  display: inline-block;
  min-width: 240px;
}
.scale-table > div {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
}
.scale-table > div:last-child { border-bottom: none; }
.scale-table > div > span:last-child { text-align: right; color: var(--ink); }

/* === SCHEDULE ========================================================== */
.schedule { border-top: 1px solid var(--rule); }
.week {
  display: grid;
  grid-template-columns: 90px 1fr 220px;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.week .wk {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.week .wk-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
}
.week .wk-title .topic {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.week .wk-due {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}
.week .wk-due .pill {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.week .wk-due .pill.exam {
  background: var(--ink);
  color: var(--highlight);
}

/* === LECTURES — TOGGLE VIEW ============================================= */
.lectures-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 16px;
}
.lectures-controls .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-warm);
}
.view-toggle button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.view-toggle button:not(:last-child) { border-right: 1px solid var(--rule); }
.view-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}
.view-toggle button:hover:not(.active) { color: var(--ink); }
.view-toggle button svg { width: 14px; height: 14px; }

/* — GRID view — */
.lectures.view-grid .week-group {
  margin-bottom: 48px;
}
.lectures.view-grid .week-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.lectures.view-grid .week-header .wk {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.lectures.view-grid .week-header .wk-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lectures.view-grid .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.lectures.view-grid .video-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.lectures.view-grid .video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--accent);
}
.video-card-empty {
  border: 1px dashed var(--rule);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  background: transparent;
}
.week-empty {
  opacity: 0.65;
}
.video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2d2d2d 0%, #4a3525 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb::after {
  content: "▶";
  position: absolute;
  color: rgba(255,255,255,0.85);
  font-size: 28px;
  z-index: 2;
}
.video-thumb .lbl {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: rgba(255,255,255,0.7);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}
.video-thumb.type-excel { background: linear-gradient(135deg, #2d4a2d 0%, #1f3d1f 100%); }
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  opacity: 0.85;
}
.video-meta { padding: 14px 16px; }
.video-meta .tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-weight: 500;
}
.video-meta .tag.excel { color: var(--ok); }
.video-meta .ttl {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
}
.video-meta .dur {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* — LIST view (file-explorer detail) — */
.lectures.view-list .video-grid,
.lectures.view-list .week-header {
  display: none;
}
.lectures.view-list .lecture-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lectures.view-grid .lecture-table { display: none; }
.lecture-table thead tr {
  border-bottom: 1px solid var(--rule);
}
.lecture-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px 12px 0;
  font-weight: 500;
}
.lecture-table th:first-child { padding-left: 12px; }
.lecture-table tbody tr {
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.1s;
  cursor: pointer;
}
.lecture-table tbody tr:hover { background: var(--paper-warm); }
.lecture-table td {
  padding: 12px 16px 12px 0;
  color: var(--ink-soft);
  vertical-align: middle;
}
.lecture-table td:first-child { padding-left: 12px; }
.lecture-table td.name {
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lecture-table td.name .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lecture-table td.wk-cell {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.lecture-table td.type {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lecture-table td.type.excel { color: var(--ok); }
.lecture-table td.dur {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

/* === CONTACT ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.contact-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px;
}
.contact-card .lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.contact-card .val {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  word-wrap: break-word;
}
.contact-card .val:last-child { margin-bottom: 0; }
.contact-card .val a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
  transition: border-color 0.15s;
}
.contact-card .val a:hover { border-color: var(--accent); color: var(--accent); }
.contact-card .val .note {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
  font-weight: 400;
}

/* === RESOURCES ========================================================== */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.res-card {
  border: 1px solid var(--rule);
  padding: 22px;
  border-radius: 6px;
  background: var(--paper);
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.res-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.res-card .cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 500;
}
.res-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}
.res-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* === WSJ featured pair (2-col top of data page) ========================= */
.wsj-pair {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 720px) {
  .wsj-pair { grid-template-columns: 1fr; }
}
.wsj-activate {
  background: var(--paper-warm);
  border-color: var(--accent-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wsj-activate:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.wsj-activate h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wsj-activate .arrow-glyph {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.wsj-activate:hover .arrow-glyph {
  transform: translateX(4px);
}

.crisis-box {
  background: var(--ink);
  color: var(--highlight);
  padding: 32px;
  border-radius: 8px;
  margin: 32px 0;
}
.crisis-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--highlight);
  margin-bottom: 12px;
  font-weight: 500;
}
.crisis-box p {
  color: rgba(244,236,216,0.8);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.crisis-box .crisis-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.crisis-box .crisis-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244,236,216,0.15);
  font-size: 14px;
  gap: 16px;
}
.crisis-box .crisis-list li:last-child { border-bottom: none; }
.crisis-box .crisis-list .name { color: rgba(244,236,216,0.85); }
.crisis-box .crisis-list .num {
  font-family: var(--mono);
  color: var(--highlight);
  font-weight: 500;
  white-space: nowrap;
}
.crisis-box .crisis-emergency {
  background: var(--accent);
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #fff;
}
.crisis-box .crisis-emergency strong { display: block; margin-bottom: 4px; }

/* === LANDING (INDEX) ==================================================== */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.path-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.path-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.path-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.path-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 4px;
}
.path-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.path-card .arrow {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.path-card .arrow::after { content: " →"; transition: transform 0.15s; }
.path-card:hover .arrow::after { margin-left: 4px; }

/* === FOOTER ============================================================ */
footer {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 32px;
  border-top: 1px solid var(--rule);
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 820px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  footer {
    grid-template-columns: 1fr;
  }
}
footer .col h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 600;
}
footer a { color: var(--ink-soft); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--accent); text-decoration: underline; }
footer a:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
footer .institutional {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
footer .institutional a { display: inline; color: var(--accent); }

/* === VIDEO MODAL ======================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  width: 100%;
  max-width: 1100px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-close:hover { background: rgba(0,0,0,0.9); }
.video-modal-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* === RESPONSIVE ======================================================== */
@media (max-width: 720px) {
  .topbar-inner { padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
  nav.primary { flex-wrap: wrap; gap: 0; order: 3; width: 100%; justify-content: flex-start; }
  nav.primary a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 48px 20px 32px; }
  .hero::before { left: 20px; }
  section.page { padding: 48px 20px 24px; }
  .week { grid-template-columns: 70px 1fr; gap: 16px; }
  .week .wk-due { grid-column: 2; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .lectures-controls { flex-direction: column; align-items: flex-start; }
  .meta-strip-inner { padding: 16px 20px; }
}


/* ─── Announcements ────────────────────────────────────────────────────── */
.announcements-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.announcements-list {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.announcements-loading,
.announcements-empty {
  font-family: var(--serif);
  color: var(--muted);
  font-style: italic;
  padding: 1rem 0;
}

.announcement {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.announcement:hover { border-color: var(--rule); }
.announcement[open] { background: var(--paper); }

.announcement summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  font-family: var(--serif);
  color: var(--ink);
  user-select: none;
}
.announcement summary::-webkit-details-marker { display: none; }
.announcement summary::marker { content: ""; }

.announcement summary:hover .announcement-title { color: var(--accent); }

.announcement-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.announcement-title {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.15s ease;
}

.announcement-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.15s ease;
  margin-right: 4px;
  margin-bottom: 3px;
  flex-shrink: 0;
}
.announcement[open] .announcement-chevron {
  transform: rotate(-135deg);
  margin-bottom: -2px;
  border-color: var(--accent);
}

.announcement-body {
  padding: 0 1.1rem 1.1rem 1.1rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid var(--rule-soft);
  padding-top: 1rem;
  margin-top: -0.1rem;
}
.announcement-body p { margin: 0 0 0.75rem 0; }
.announcement-body p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .announcement summary {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.75rem;
  }
  .announcement-date {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-size: 0.72rem;
  }
  .announcement-title {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    font-size: 0.98rem;
  }
  .announcement-chevron {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
  }
}

/* ─── Back to home link (subpages) ─────────────────────────────────────── */
.back-home {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0 1.5rem;
}
.back-home a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.back-home a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.back-home .arrow {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.back-home a:hover .arrow {
  transform: translateX(-3px);
}

/* ─── Week files (downloads under a lecture) ───────────────────────────── */
.week-files {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--muted-soft);
  border-radius: 2px;
}
.files-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.files-list a {
  font-family: var(--serif);
  font-size: 0.96rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: color 0.15s ease;
}
.files-list a::before {
  content: "↓";
  color: var(--accent);
  font-weight: bold;
  margin-right: 0.15rem;
}
.files-list a:hover { color: var(--accent); }
.file-ext {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==========================================================
   WEEK CARDS (curriculum) — expandable details summary
   ========================================================== */
.week-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 2rem;
}
.week-card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.week-card:hover { border-color: var(--rule); }
.week-card[open] { background: var(--paper-warm); }
.week-card[open] > summary { border-bottom: 1px solid var(--rule-soft); }

.week-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem;
  user-select: none;
}
.week-card > summary::-webkit-details-marker { display: none; }
.week-card > summary::marker { content: ""; }

.week-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #6b6b6b);
  white-space: nowrap;
}
.week-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.week-title em {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 400;
}
.week-toggle {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.week-card[open] > summary .week-toggle::before { content: "−"; }
.week-card:not([open]) > summary .week-toggle::before { content: "+"; }

.week-card > summary:hover .week-title { color: var(--accent); }

.week-body {
  padding: 0.5rem 1.1rem 1.2rem;
  font-family: var(--sans);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}
.week-body p { margin: 0.7rem 0; }
.week-body p:first-child { margin-top: 0.4rem; }
.week-body strong { color: var(--ink); }
.week-body ul { margin: 0.6rem 0 0.6rem 1.3rem; }
.week-body li { margin: 0.3rem 0; }
.week-body .obj-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  margin-right: 0.3rem;
}

@media (max-width: 640px) {
  .week-card > summary {
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
  }
  .week-toggle { grid-column: 2; justify-self: end; margin-top: -1.5rem; }
  .week-title { grid-column: 1 / -1; }
}
