/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS — Comprehensive CSS custom properties system
   Canonical source of truth for colors, typography, spacing, etc.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Color tokens */
  --ink: #0a0a0a;
  --paper: #ffffff;
  --accent: #1a5632;
  --accent-light: #e8f0eb;
  --success: #2d8a4e;
  --alert: #c23b22;
  --muted: rgba(0,0,0,0.45);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);

  /* Dark mode (chapter pages use dark bg) */
  --dark-ink: #ffffff;
  --dark-paper: #0a0a0a;
  --dark-muted: rgba(255,255,255,0.45);
  --dark-border: rgba(255,255,255,0.08);
  --dark-accent: #6db88a;

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: 36px;
  --text-display: clamp(36px, 8vw, 64px);
  --line-height-tight: 1.1;
  --line-height-body: 1.7;
  --line-height-relaxed: 1.9;
  --measure: 68ch;

  /* Spacing (8pt grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════════════════════
   COMPONENT CLASSES — Standardized reusable UI components
   ══════════════════════════════════════════════════════════════ */

/* Callout boxes */
.callout { border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-xl); margin: var(--space-xl) 0; }
.callout-info { background: rgba(26,86,50,0.06); border-left: 3px solid var(--accent); }
.callout-warning { background: rgba(255,193,7,0.06); border-left: 3px solid #ffc107; }
.callout-action { background: rgba(0,0,0,0.03); border-left: 3px solid var(--ink); }
.callout-takeaway { background: rgba(26,86,50,0.04); border: 1px solid rgba(26,86,50,0.12); }

/* Dark theme callouts (chapter pages) */
.dark .callout-info, [data-theme="dark"] .callout-info { background: rgba(109,184,138,0.06); border-left-color: var(--dark-accent); }
.dark .callout-warning, [data-theme="dark"] .callout-warning { background: rgba(255,193,7,0.08); }
.dark .callout-action, [data-theme="dark"] .callout-action { background: rgba(255,255,255,0.03); border-left-color: var(--dark-ink); }

/* Stat cards */
.stat-card {
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}
.stat-card__number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: var(--line-height-tight);
}
.stat-card__label {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-sm);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius-pill);
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--ink); }

/* Scroll reveal */
.reveal {
  opacity: 1; transform: none;
  transition: none;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile table wrapper */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 20px -16px; padding: 0 16px;
}
@media (max-width: 768px) {
  .table-scroll table { font-size: 13px; }
  .table-scroll td, .table-scroll th { padding: 8px 10px; white-space: nowrap; }
}

/* Prompt copy card */
.prompt-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
}
.prompt-card .copy-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
}
.prompt-card .copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.prompt-card .copy-toast {
  position: absolute; top: 12px; right: 12px;
  background: var(--success); color: #fff;
  font-size: 11px; font-weight: 600; padding: 6px 14px;
  border-radius: var(--radius-sm); opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.prompt-card .copy-toast.show { opacity: 1; }

/* Sticky progress bar */
.chapter-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 3px; background: rgba(0,0,0,0.05);
}
.chapter-progress__fill {
  height: 100%; background: var(--accent);
  width: 0; transition: width 0.1s linear;
}
.dark .chapter-progress { background: rgba(255,255,255,0.05); }
.dark .chapter-progress__fill { background: var(--dark-accent); }

/* Trust block */
.trust-block {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg); padding: var(--space-2xl) 0;
}
.trust-item {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: var(--space-lg); background: rgba(0,0,0,0.02);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.trust-item svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--accent); }
.trust-item strong { display: block; font-size: var(--text-base); margin-bottom: 2px; }
.trust-item span { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   COURSE.CSS — Premium design system for FGA course pages
   Inspired by HN Team design mockup language.
   Used by: guide.html, ch1-ch12.html, tracker.html, resources.html
   ══════════════════════════════════════════════════════════════ */

/* ── LEGACY TOKENS ── */
html {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-panel: #f4f3f0;
  --bg-warm: #ebe8e1;
  --ink: #0a0a0a;
  --ink-dim: #525252;
  --ink-mute: #8a8a8a;
  --line: rgba(10,10,10,0.08);
  --line-2: rgba(10,10,10,0.18);

  --dark-bg: #070707;
  --dark-1: #0f0f0f;
  --dark-2: #161616;
  --dark-line: rgba(255,255,255,0.09);
  --dark-line-2: rgba(255,255,255,0.18);
  --dark-fg: #ffffff;
  --dark-dim: #b8b8b8;
  --dark-mute: #7b7b7b;

  /* Proof pills */
  --clep: #22c55e;  --clep-bg: rgba(34,197,94,0.13);
  --dual: #3b82f6;  --dual-bg: rgba(59,130,246,0.13);
  --youtube: #ef4444; --youtube-bg: rgba(239,68,68,0.13);
  --sophia: #a855f7; --sophia-bg: rgba(168,85,247,0.13);
  --studycom: #14b8a6; --studycom-bg: rgba(20,184,166,0.13);
  --wgu: #f97316;   --wgu-bg: rgba(249,115,22,0.13);
  --ap: #eab308;    --ap-bg: rgba(234,179,8,0.13);
  --verified: #b08c2d; --verified-bg: rgba(176,140,45,0.13);

  /* Fonts */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  /* Layout */
  --max-w: 900px;
  --section-pad: 110px 28px;

  /* Animation */
  --reveal-curve: cubic-bezier(.2,.7,.2,1);
  --reveal-duration: .8s;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: #0a0a0a; color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ── SCROLL REVEAL ── */
/* CRITICAL: base .reveal stays visible — only specific selectors animate */
.reveal { opacity: 1; transform: none; }
.emp-stats.reveal,
.ch-takeaway.reveal,
.action-checklist.reveal,
.video-card.reveal,
.ch-label.reveal,
.ch-title.reveal {
  opacity: 1; transform: none;
  transition: none;
}
.reveal.in, .reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ── READING PROGRESS BAR ── */
.reading-progress-fill {
  height: 100%; width: 0%;
  background: var(--ink);
  transition: width 0.1s linear;
  transform-origin: left;
}

/* ── EYEBROW ── */
.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ══════════ NAV (matches landing page) ══════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: backdrop-filter .3s, background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.logo {
  font-family: var(--serif); font-size: 24px;
  letter-spacing: -0.01em; color: #0a0a0a; text-decoration: none;
}
.logo em { font-style: italic; }
.nav-links {
  display: flex; gap: 36px; align-items: center;
}
.nav-links a {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); transition: color .2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: #0a0a0a; }

/* Nav buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0a0a0a; color: #fff;
  padding: 15px 24px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 4px;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(10,10,10,0.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: #0a0a0a;
  padding: 12px 20px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(10,10,10,0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-outline:hover { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }

/* Hamburger */
.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; padding: 0;
}
.menu-btn svg { width: 100%; height: 100%; stroke: #0a0a0a; stroke-width: 1.5; fill: none; stroke-linecap: round; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 20px 28px; gap: 18px; z-index: 49;
  }
  .nav-links.open { display: flex; }
  .nav .btn-outline { display: none; }
}

/* ══════════ PILLS ══════════ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.pill.clep { background: var(--clep-bg); color: #178045; border: 1px solid rgba(34,197,94,0.35); }
.pill.dual { background: var(--dual-bg); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.35); }
.pill.youtube { background: var(--youtube-bg); color: #b91c1c; border: 1px solid rgba(239,68,68,0.35); }
.pill.sophia { background: var(--sophia-bg); color: #7e22ce; border: 1px solid rgba(168,85,247,0.35); }
.pill.studycom { background: var(--studycom-bg); color: #0f766e; border: 1px solid rgba(20,184,166,0.35); }
.pill.wgu { background: var(--wgu-bg); color: #c2410c; border: 1px solid rgba(249,115,22,0.35); }
.pill.ap { background: var(--ap-bg); color: #854d0e; border: 1px solid rgba(234,179,8,0.4); }
.pill.verified { background: var(--verified-bg); color: #8c6d1f; border: 1px solid rgba(176,140,45,0.4); }

/* OLD class compatibility: gc-tag */
.gc-tag {
  display: inline-block; margin-top: 14px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-panel); color: var(--ink-dim);
}

/* ══════════ CHAPTER LAYOUT ══════════ */
.chapter {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}
.chapter-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--section-pad);
}

/* ── Chapter Hero ── */
.ch-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 48px;
  display: flex; align-items: center; gap: 16px;
}
.ch-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--line);
}
.ch-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 400; line-height: 1.02;
  letter-spacing: -0.022em; margin-bottom: 32px;
  color: var(--ink);
}
.ch-title em { font-style: italic; color: var(--ink-dim); }
.ch-desc {
  font-size: 17px; color: var(--ink-dim);
  font-weight: 400; max-width: 58ch;
  line-height: 1.7; margin-bottom: 52px;
}

/* ── CHAPTER BODY (reading content) ── */
.ch-body {
  font-size: 17px; color: var(--ink-dim);
  line-height: 1.75; max-width: 62ch;
}
.ch-body p { margin-bottom: 32px; }
.ch-body h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
  color: var(--ink);
  margin: 72px 0 24px;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.ch-body h4 {
  font-size: 17px; font-weight: 700;
  color: var(--ink); margin: 48px 0 16px;
  letter-spacing: 0.02em;
}
.ch-body ul, .ch-body ol { margin: 24px 0 36px 20px; }
.ch-body li {
  margin-bottom: 16px; color: var(--ink-dim);
  line-height: 1.7; padding-left: 4px;
}
.ch-body strong { color: var(--ink); font-weight: 600; }
.ch-body blockquote {
  border-left: 3px solid var(--ink);
  padding: 28px 36px; margin: 56px 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-style: italic; color: var(--ink);
  line-height: 1.4;
  background: var(--bg-panel);
  border-radius: 0 6px 6px 0;
}
.ch-body a {
  color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.ch-body a:hover { color: var(--ink-dim); }

/* ── CHAPTER IMAGE ── */
.ch-img { border-radius: 6px; margin: 48px 0; }
.ch-img-caption {
  font-size: 11px; color: var(--ink-mute);
  text-align: center; margin-top: 10px;
  letter-spacing: 0.06em;
}

/* ── DIVIDER ── */
.divider { width: 100%; height: 1px; background: var(--line); }

/* ══════════ GLASS CARDS ══════════ */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px; margin-top: 40px;
}
.glass-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 36px 28px;
  transition: all 0.3s;
}
.glass-card:hover {
  background: var(--bg-panel);
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}
.gc-icon { font-size: 28px; margin-bottom: 16px; }
.gc-title {
  font-family: var(--serif); font-size: 22px;
  color: var(--ink); margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.gc-body { font-size: 14.5px; color: var(--ink-dim); line-height: 1.7; }

/* ══════════ TOOL CARDS ══════════ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin: 40px 0;
}
.tool-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 28px 24px;
  transition: all 0.25s;
}
.tool-card:hover {
  background: var(--bg-panel);
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.tool-name {
  font-family: var(--serif); font-size: 20px;
  color: var(--ink); margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.tool-url {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-mute); margin-bottom: 10px;
}
.tool-desc { font-size: 13.5px; color: var(--ink-dim); line-height: 1.65; }
.tool-badge {
  display: inline-block; margin-top: 12px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  color: #fff; background: var(--ink);
}

/* Tool strip */
.tool-strip { margin: 40px 0; }
.tool-strip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.tool-strip-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 18px;
  text-align: center;
  transition: all 0.25s;
}
.tool-strip-card:hover {
  background: var(--bg-panel);
  border-color: var(--line-2);
}
.tool-strip-label { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ══════════ PROMPT BOX (code/AI prompts) ══════════ */
.prompt-box {
  background: var(--dark-bg);
  border: 1px solid var(--dark-line);
  border-radius: 6px; padding: 28px;
  margin: 28px 0; position: relative;
}
.prompt-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dark-mute); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.prompt-text {
  font-family: var(--mono); font-size: 13px;
  color: var(--dark-dim); line-height: 1.8;
  white-space: pre-wrap;
}
.copy-btn {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--dark-dim);
  font-size: 11px; font-weight: 600;
  padding: 6px 14px; border-radius: 4px;
  cursor: pointer; transition: all 0.2s;
  font-family: var(--sans);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ══════════ CALLOUT ══════════ */
.callout {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 32px;
  margin: 40px 0;
  display: flex; gap: 18px; align-items: flex-start;
}
.callout .callout-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.callout .callout-body { flex: 1; }
.callout .callout-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 8px;
}
.callout .callout-title {
  font-weight: 700; font-size: 15px;
  color: var(--ink); margin-bottom: 8px;
}
.callout .callout-text {
  font-size: 14.5px; color: var(--ink-dim); line-height: 1.7;
}

/* ══════════ CHECKLIST ══════════ */
.checklist { margin: 28px 0; list-style: none; padding: 0; }
.checklist li {
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim); position: relative; font-size: 15px;
  line-height: 1.6;
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 16px; height: 16px;
  border: 1.5px solid var(--ink-mute); border-radius: 4px;
}

/* ══════════ COMPARISON TABLE ══════════ */
.compare-table { width: 100%; border-collapse: collapse; margin: 40px 0; font-size: 14px; }
.compare-table th {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); text-align: left;
  padding: 16px 18px; border-bottom: 2px solid var(--line-2);
}
.compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
}
.compare-table tr:hover td { background: var(--bg-soft); }
.compare-table .highlight-cell { color: var(--ink); font-weight: 700; }

/* ══════════ VIDEO CARD ══════════ */
.video-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 24px;
  margin: 36px 0;
  display: flex; align-items: center; gap: 18px;
  transition: all 0.25s; text-decoration: none;
}
.video-card:hover {
  background: var(--bg-panel);
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}
.video-card .vc-play {
  width: 52px; height: 52px;
  background: var(--bg-panel);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  transition: background 0.2s;
}
.video-card:hover .vc-play { background: var(--line); }
.video-card .vc-info { flex: 1; }
.video-card .vc-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.video-card .vc-title {
  font-size: 16px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em;
}
.video-card .vc-channel {
  font-size: 12px; color: var(--ink-mute); margin-top: 4px;
}

/* ══════════ TIMELINE (vertical) ══════════ */
.timeline { position: relative; padding-left: 48px; margin-top: 56px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--ink-mute), var(--line));
}
.tl-item {
  position: relative; padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.tl-item::before {
  content: ''; position: absolute; left: -37px; top: 38px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-panel); border: 2px solid var(--ink-mute); z-index: 2;
}
.tl-item.highlight::before {
  background: var(--ink); border-color: var(--ink);
  box-shadow: 0 0 16px rgba(10,10,10,0.25);
}
.tl-year {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute); letter-spacing: 0.1em; margin-bottom: 8px;
}
.tl-title {
  font-family: var(--serif); font-size: 24px;
  color: var(--ink); margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.tl-desc { font-size: 14.5px; color: var(--ink-dim); line-height: 1.7; }

/* ══════════ TIMELINE (horizontal phases) ══════════ */
.tl-wrap { margin: 56px 0; }
.tl-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.tl-phase {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 28px;
}
.tl-phase-num {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 10px;
}
.tl-phase-name {
  font-family: var(--serif); font-size: 22px;
  color: var(--ink); margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.tl-phase-weeks, .tl-phase-credits {
  font-size: 13px; color: var(--ink-dim); margin-bottom: 4px;
}
.tl-phase-desc { font-size: 13.5px; color: var(--ink-mute); line-height: 1.65; margin-top: 10px; }
.tl-phase-tools { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tool-pill {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-panel); color: var(--ink-dim);
  border: 1px solid var(--line);
}
.tl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 40px;
}
.tl-stat-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 24px;
  text-align: center;
}
.tl-stat-val {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 36px);
  color: var(--ink); line-height: 1;
  letter-spacing: -0.02em;
}
.tl-stat-lbl {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 8px;
}

/* ══════════ EMPLOYER STATS BAR ══════════ */
.emp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--bg-panel);
  border-radius: 6px; overflow: hidden;
  margin: 56px 0;
  border: 1px solid var(--line);
}
.emp-stat {
  background: var(--bg-panel);
  padding: 52px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.emp-stat:last-child { border-right: none; }
.emp-num {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 78px);
  color: var(--ink); line-height: 0.96;
  letter-spacing: -0.025em;
}
.emp-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 16px;
  line-height: 1.5;
}
@media (max-width: 500px) {
  .emp-stats { grid-template-columns: 1fr; }
  .emp-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .emp-stat:last-child { border-bottom: none; }
}

/* ── KEY TAKEAWAY BLOCK ── */
.ch-takeaway {
  border-left: 3px solid var(--ink);
  padding: 36px 40px;
  margin: 64px auto;
  max-width: var(--max-w);
  background: var(--bg-panel);
  border-radius: 0 6px 6px 0;
}
.ch-takeaway-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 14px;
}
.ch-takeaway-text {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--ink); font-weight: 400;
  letter-spacing: -0.01em;
}

/* ── CHAPTER SECTION BANDS ── */
.ch-section-alt {
  background: var(--dark-bg);
  color: var(--dark-fg);
  margin: 64px -28px;
  padding: 80px 28px;
  border-radius: 6px;
}
.ch-section-alt .emp-stats {
  background: var(--dark-1);
  border-color: var(--dark-line);
}
.ch-section-alt .emp-stat {
  background: var(--dark-1);
  border-right-color: var(--dark-line);
}
.ch-section-alt .emp-num { color: var(--dark-fg); }
.ch-section-alt .emp-label { color: var(--dark-mute); }

/* ══════════ ACCORDION ══════════ */
.accordion { margin: 28px 0; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: 6px; margin-bottom: 8px;
  overflow: hidden; background: var(--bg-soft);
}
.acc-header {
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px; color: var(--ink);
  transition: background 0.2s;
}
.acc-header:hover { background: var(--bg-panel); }
.acc-header .arrow { transition: transform 0.3s; font-size: 12px; color: var(--ink-mute); }
.acc-item.open .acc-header .arrow { transform: rotate(180deg); }
.acc-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease; padding: 0 24px;
}
.acc-item.open .acc-content { max-height: 600px; padding: 0 24px 24px; }
.acc-content p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.75; margin-top: 8px; }

/* ══════════ FAQ ACCORDION (course pages) ══════════ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 40px; }
.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--line-2); }
.faq-q {
  padding: 22px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-weight: 600; font-size: 15px; color: var(--ink);
  transition: background 0.2s; user-select: none;
  width: 100%; background: none; border: none; text-align: left;
}
.faq-q:hover { background: var(--bg-panel); }
.faq-q .faq-arrow { transition: transform 0.3s; font-size: 14px; color: var(--ink-mute); flex-shrink: 0; }
.faq-item.open .faq-q .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; padding: 0 24px; }
.faq-item.open .faq-a { max-height: 800px; padding: 0 24px 24px; }
.faq-a p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.8; margin-top: 0; }
.faq-a strong { color: var(--ink); }

/* ══════════ MISTAKE CARDS ══════════ */
.mistake-card {
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 6px; padding: 28px; margin-bottom: 14px;
  transition: all 0.25s;
}
.mistake-card:hover {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.25);
  transform: translateY(-1px);
}
.mistake-num {
  font-family: var(--mono); font-size: 11px;
  color: rgba(239,68,68,0.6);
  letter-spacing: 0.12em; margin-bottom: 8px;
}
.mistake-title { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 10px; }
.mistake-body { font-size: 14.5px; color: var(--ink-dim); line-height: 1.7; }
.mistake-fix { margin-top: 12px; font-size: 13px; color: var(--ink); font-weight: 600; }

/* ══════════ ACTION CHECKLIST (Premium Stepper Design) ══════════ */
.action-checklist {
  max-width: var(--max-w);
  margin: 64px auto 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 48px 44px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
}
.ac-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 10px;
}
.ac-subtitle {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  color: var(--ink); margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.ac-progress { margin-bottom: 28px; }
.ac-progress-bar {
  height: 6px; background: var(--bg-panel);
  border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.ac-progress-fill {
  height: 100%; background: var(--ink);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ac-progress-text {
  font-size: 11px; color: var(--ink-mute);
  margin-top: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600;
}
.ac-items {
  list-style: none; padding: 0;
  counter-reset: ac-step;
}
.ac-items .ac-item,
.ac-items li {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s;
  counter-increment: ac-step;
  position: relative;
}
.ac-items .ac-item:last-child,
.ac-items li:last-child { border-bottom: none; }
/* Vertical connecting line between steps */
.ac-items .ac-item::after,
.ac-items li::after {
  content: '';
  position: absolute;
  left: 15px; top: 52px; bottom: -2px;
  width: 1.5px;
  background: var(--line);
}
.ac-items .ac-item:last-child::after,
.ac-items li:last-child::after { display: none; }
.ac-items .ac-item.checked::after,
.ac-items li.checked::after { background: var(--ink); }
.ac-checkbox {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 2px solid var(--line-2); border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  color: var(--ink-mute);
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.ac-checkbox::before {
  content: counter(ac-step);
}
.ac-checkbox:hover {
  border-color: var(--ink);
  transform: scale(1.08);
}
.ac-checkbox.checked {
  background: var(--ink); border-color: var(--ink);
  transform: scale(1);
}
.ac-checkbox.checked::before { content: ''; }
.ac-checkbox.checked::after {
  content: '\2713'; color: #fff; font-size: 14px; font-weight: 700;
}
@keyframes checkPop {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.ac-checkbox.checked { animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ac-items .ac-item.checked .ac-item-title,
.ac-items li.checked .ac-item-title {
  color: var(--ink-mute);
}
.ac-items .ac-item.checked .ac-item-desc,
.ac-items li.checked .ac-item-desc { color: var(--ink-mute); }
.ac-item-title {
  font-weight: 600; font-size: 15px; color: var(--ink);
  transition: color 0.3s;
}
.ac-item-desc {
  font-size: 13.5px; color: var(--ink-dim);
  line-height: 1.65; margin-top: 4px;
  transition: color 0.3s;
}
.ac-item-link {
  font-size: 12px; color: var(--ink-mute);
  text-decoration: underline; margin-top: 6px;
  display: inline-block;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.ac-item-link:hover { color: var(--ink); }
.ac-links-row { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

/* ══════════ IMAGE PLACEHOLDERS ══════════ */
.img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg-panel);
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  margin: 40px 0; color: var(--ink-mute);
  font-size: 13px; letter-spacing: 0.05em;
}
.img-placeholder .ph-icon { font-size: 36px; opacity: 0.4; }
.img-placeholder .ph-label {
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 11px;
}
.img-placeholder.portrait { aspect-ratio: 3/4; max-width: 360px; }
.img-placeholder.square { aspect-ratio: 1/1; max-width: 400px; }
.img-milestone {
  width: 100%; background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 56px 36px;
  text-align: center; margin: 40px 0;
}
.img-milestone .ph-icon { font-size: 48px; margin-bottom: 18px; }
.img-milestone .ph-title {
  font-family: var(--serif); font-size: 30px;
  color: var(--ink); margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.img-milestone .ph-sub { font-size: 14px; color: var(--ink-mute); }
.milestone-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin: 56px 0;
}
@media (max-width: 700px) { .milestone-row { grid-template-columns: 1fr; } }

/* ══════════ GRADUATION PHOTOS ══════════ */
.grad-photos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin: 56px 0;
}
.grad-photo {
  aspect-ratio: 4/5;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px;
  overflow: hidden; position: relative;
}
.grad-photo img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 6px;
}
.grad-photo .gp-icon { font-size: 48px; opacity: 0.5; }
.grad-photo .gp-label {
  font-family: var(--serif); font-size: 20px; color: var(--ink);
}
.grad-photo .gp-sub {
  font-size: 12px; color: var(--ink-mute); letter-spacing: 0.05em;
}
@media (max-width: 600px) {
  .grad-photos { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* ══════════ ANIMATED TIMELINE SHRINK ══════════ */
.timeline-shrink { position: relative; margin: 56px 0; overflow: hidden; }
.ts-track {
  display: flex; align-items: stretch; gap: 0; min-height: 120px;
}
.ts-bar {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 24px 14px;
  border-right: 1px solid var(--line);
  transition: flex 1.5s cubic-bezier(0.4,0,0.2,1), opacity 0.8s ease;
}
.ts-bar:last-child { border-right: none; }
.ts-bar .ts-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 10px;
}
.ts-bar .ts-value {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 36px); color: var(--ink);
  letter-spacing: -0.02em;
}
.ts-bar .ts-sub { font-size: 11px; color: var(--ink-mute); margin-top: 6px; }
.ts-bar.traditional { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.12); }
.ts-bar.accelerated { background: var(--bg-panel); border-color: var(--line); }
.ts-bar.fga { background: var(--bg-soft); border-color: var(--line-2); }
.timeline-shrink.animated .ts-bar.traditional { flex: 1; opacity: 0.4; }
.timeline-shrink.animated .ts-bar.accelerated { flex: 0.5; opacity: 0.6; }
.timeline-shrink.animated .ts-bar.fga { flex: 0.25; }
.ts-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px; font-size: 20px; color: var(--ink-mute);
  opacity: 0; transition: opacity 0.8s ease 0.5s;
}
.timeline-shrink.animated .ts-arrow { opacity: 1; }

/* ══════════ CHAPTER NAVIGATION (prev/next) ══════════ */
.ch-nav-row {
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 28px; padding: 80px 28px 56px;
  max-width: var(--max-w); margin: 0 auto;
}
.ch-nav-btn {
  display: flex; align-items: center; gap: 18px;
  padding: 28px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s;
  flex: 1; max-width: 46%;
}
.ch-nav-btn:hover {
  background: var(--bg-panel);
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}
.ch-nav-btn.ch-next { justify-content: flex-end; text-align: right; margin-left: auto; }
.ch-nav-arrow {
  font-size: 22px; color: var(--ink-mute); flex-shrink: 0;
}
.ch-nav-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.ch-nav-title {
  font-family: var(--serif); font-size: 18px;
  color: var(--ink); letter-spacing: -0.01em;
}
@media (max-width: 700px) {
  .ch-nav-row { flex-direction: column; gap: 14px; padding: 56px 20px 36px; }
  .ch-nav-btn { max-width: 100%; padding: 22px 24px; }
}

/* ══════════ SIDEBAR (light design) ══════════ */
.sidebar {
  width: 268px; min-width: 268px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,10,10,0.08) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(10,10,10,0.08); border-radius: 2px; }
.main-content { margin-left: 268px; min-height: 100vh; }

/* Reading progress bar (sidebar offset) */
.reading-progress {
  position: fixed; top: 0; left: 268px; right: 0; height: 2px;
  background: rgba(10,10,10,0.04); z-index: 200;
}

/* Sidebar brand */
.sb-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sb-brand-name {
  font-family: var(--serif); font-size: 16px;
  color: var(--ink); font-weight: 400;
  text-decoration: none; display: block;
}
.sb-brand-name:hover { color: var(--ink-dim); }
.sb-tagline {
  font-size: 9px; color: var(--ink-mute);
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 4px;
}

/* Sidebar progress */
.sb-prog-wrap {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sb-prog-row {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-mute);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
  font-weight: 600;
}
.sb-prog-track {
  height: 3px; background: var(--line);
  border-radius: 999px; overflow: hidden;
}
.sb-prog-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px; transition: width 0.4s ease;
}

/* Sidebar nav items */
.sb-nav { flex: 1; padding: 14px 0 28px; overflow-y: auto; }
.sb-group {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); padding: 16px 20px 6px;
}
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 20px; cursor: pointer;
  transition: background 0.15s; text-decoration: none;
  border-left: 2px solid transparent;
}
.sb-item:hover { background: var(--bg-soft); }
.sb-item.active {
  background: var(--bg-panel);
  border-left-color: var(--ink);
}
.sb-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--ink-mute); flex-shrink: 0;
  transition: all 0.2s; font-family: var(--mono);
}
.sb-item.done .sb-dot {
  background: var(--ink); border-color: var(--ink);
  color: #fff; font-size: 11px;
}
.sb-item.done .sb-dot::after { content: '\2713'; }
.sb-title {
  font-size: 12.5px; color: var(--ink-mute);
  line-height: 1.3; transition: color 0.15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-item.active .sb-title,
.sb-item:hover .sb-title { color: var(--ink); }
.sb-item.done .sb-title { color: var(--ink-dim); }

/* Sidebar mobile */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; z-index: 300; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .reading-progress { left: 0; }
  .sb-toggle { display: flex !important; }
  .sb-overlay { display: block !important; }
}
.sb-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 400;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: center; justify-content: center;
  cursor: pointer; flex-direction: column; gap: 5px;
  backdrop-filter: blur(8px);
}
.sb-toggle span { width: 18px; height: 1.5px; background: var(--ink); border-radius: 999px; }
.sb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.3); z-index: 200;
}

/* ══════════ FOOTER ══════════ */
footer {
  text-align: center;
  padding: 72px 28px 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
footer .f-brand {
  font-family: var(--serif); font-size: 28px;
  color: var(--ink); margin-bottom: 10px;
  letter-spacing: -0.01em;
}
footer .f-tagline {
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
}
footer .f-copy {
  font-size: 10.5px; color: var(--ink-mute);
  margin-top: 36px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
}
footer a { text-decoration: none; color: var(--ink-dim); }
footer a:hover { color: var(--ink); }
footer .f-links {
  display: flex; gap: 24px; justify-content: center;
  flex-wrap: wrap; margin: 28px 0 24px;
}
footer .f-links a {
  font-size: 11.5px; color: var(--ink-mute);
  letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; transition: color 0.2s;
}
footer .f-links a:hover { color: var(--ink); }
footer .f-disclaimer {
  max-width: 640px; margin: 0 auto 20px;
  font-size: 11px; color: var(--ink-mute);
  line-height: 1.8;
}
footer .f-disclaimer strong { color: var(--ink-dim); }
footer .f-disclaimer a { text-decoration: underline; text-underline-offset: 2px; }

/* ══════════ HERO (course pages) ══════════ */
.hero {
  padding: 130px 28px 96px;
  background: var(--bg);
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px; margin-bottom: 36px;
  background: var(--bg);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7.6vw, 96px);
  font-weight: 400; line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 800px; margin: 0 auto 32px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--ink-dim); }
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  color: var(--ink-dim);
  max-width: 58ch; line-height: 1.7;
  margin: 0 auto 52px;
}
.hero-author {
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
  font-size: 14px; color: var(--ink-mute);
}
.hero-author .avatar {
  width: 44px; height: 44px;
  background: var(--bg-panel);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px;
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero-author strong { color: var(--ink); font-weight: 600; }
.scroll-hint {
  position: absolute; bottom: 44px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--ink-mute); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
  animation: float 2s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-hint .arrow {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, var(--ink-mute), transparent);
}

/* ══════════ STATS BAR (course pages) ══════════ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-cell {
  padding: 48px 24px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 64px);
  color: var(--ink); line-height: 0.96;
  letter-spacing: -0.025em;
}
.stat-num .unit { font-size: 0.48em; color: var(--ink-mute); margin-left: 2px; }
.stat-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 10px;
}
@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat-cell:nth-child(2) { border-right: none; }
}

/* ══════════ COUNTER ANIMATION ══════════ */
.counter { font-variant-numeric: tabular-nums; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 600px) {
  body { --section-pad: 72px 18px; }
  body { font-size: 16px; }
  .chapter, .chapter-wide { padding: 72px 18px; }
  .ch-title { margin-bottom: 24px; }
  .ch-body h3 { margin: 56px 0 20px; }
  .ch-body blockquote { padding: 22px 24px; margin: 40px 0; }
  .ch-takeaway { padding: 28px 24px; margin: 48px auto; }
  .action-checklist { padding: 28px 20px; margin-top: 48px; }
  .ch-section-alt { margin: 48px -18px; padding: 56px 18px; }
  .emp-stats { margin: 40px 0; }
  .emp-stat { padding: 36px 20px; }
  .milestone-row { grid-template-columns: 1fr; }
  .glass-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .ts-track { flex-direction: column; }
  .ts-arrow { transform: rotate(90deg); }
  .video-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .ch-title { font-size: 36px; }
  .emp-num { font-size: 44px; }
  .ch-takeaway-text { font-size: 19px; }
}

/* ── DOWNLOAD CARDS ── */
.dl-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #f8f7f4 0%, #f0ede6 100%);
  border: 1px solid var(--line-2);
  border-radius: 14px; padding: 20px 24px;
  margin: 24px 0; transition: all 0.25s;
  text-decoration: none; color: var(--ink);
}
.dl-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.dl-icon { font-size: 32px; flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-title { font-family: var(--sans); font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.dl-desc { font-family: var(--sans); font-size: 13px; color: var(--ink-dim); }
.dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 8px; white-space: nowrap; transition: opacity 0.2s;
}
.dl-card:hover .dl-btn { opacity: 0.85; }

/* ── DO-THIS-NOW EXERCISE BLOCKS ── */
.exercise-block {
  background: #fffdf5; border: 2px solid #eab308;
  border-radius: 14px; padding: 24px 28px; margin: 32px 0;
  position: relative;
}
.exercise-label {
  display: inline-block; font-family: var(--sans);
  font-size: 10px; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: #a16207;
  background: #fef3c7; padding: 3px 10px; border-radius: 4px;
  margin-bottom: 12px;
}
.exercise-title {
  font-family: var(--serif); font-size: 20px;
  font-weight: 400; line-height: 1.3; margin-bottom: 8px;
}
.exercise-body {
  font-family: var(--sans); font-size: 14px;
  color: var(--ink-dim); line-height: 1.7;
}
.exercise-body ol { padding-left: 20px; margin: 12px 0; }
.exercise-body li { margin-bottom: 8px; }
.exercise-body a { color: #a16207; text-decoration: underline; }

/* ── END-OF-CHAPTER QUIZ ── */
.quiz-wrap {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px 40px;
}
.quiz-block {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px 32px; margin-bottom: 16px;
}
.quiz-label {
  display: inline-block; font-family: var(--sans);
  font-size: 10px; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 16px;
}
.quiz-q {
  font-family: var(--serif); font-size: 18px;
  line-height: 1.4; margin-bottom: 16px;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  display: block; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; font-family: var(--sans);
  font-size: 14px; color: var(--ink); cursor: pointer;
  transition: all 0.2s; text-align: left; width: 100%;
}
.quiz-opt:hover { border-color: var(--ink); background: var(--bg-panel); }
.quiz-opt.correct { border-color: #22c55e; background: rgba(34,197,94,0.08); color: #15803d; }
.quiz-opt.wrong { border-color: #ef4444; background: rgba(239,68,68,0.06); color: #dc2626; opacity: 0.6; }
.quiz-opt[disabled] { cursor: default; }
.quiz-feedback {
  margin-top: 10px; padding: 10px 14px;
  font-family: var(--sans); font-size: 13px;
  border-radius: 8px; display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.right { background: rgba(34,197,94,0.1); color: #15803d; }
.quiz-feedback.nope { background: rgba(239,68,68,0.08); color: #dc2626; }

/* ══════════════════════════════════════════════════════════════
   DESIGN ELEVATION v11 — Premium visual refinements
   Inspired by 21st.dev component patterns
   ══════════════════════════════════════════════════════════════ */

/* ── SUBTLE GRAIN TEXTURE ── */
/* Adds depth to panel backgrounds — the "paper feel" */
.ch-section-alt::before,
.ch-takeaway::before,
.action-checklist::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
.ch-section-alt,
.ch-takeaway,
.action-checklist { position: relative; }
.ch-section-alt > *,
.ch-takeaway > *,
.action-checklist > * { position: relative; z-index: 1; }

/* ── SECTION ORNAMENT DIVIDERS ── */
/* A small decorative separator between major content blocks */
.section-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 72px auto;
  max-width: 200px; color: var(--ink-mute);
}
.section-ornament::before,
.section-ornament::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--line-2));
}
.section-ornament::after { --dir: left; }
.section-ornament .ornament-dot {
  width: 5px; height: 5px;
  background: var(--line-2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Simpler variant: three-dot divider */
.dot-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 64px auto;
  opacity: 0.35;
}
.dot-divider span {
  width: 4px; height: 4px;
  background: var(--ink-mute);
  border-radius: 50%;
}

/* ── INLINE STAT HIGHLIGHT ── */
/* For pulling key numbers out visually within prose */
.stat-highlight {
  display: inline;
  font-family: var(--serif);
  font-size: 1.15em;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  background: linear-gradient(to top, rgba(234,179,8,0.12) 0%, rgba(234,179,8,0.12) 40%, transparent 40%);
  padding: 0 2px;
}

/* ── ENHANCED BLOCKQUOTE ── */
/* Decorative open-quote mark for editorial feel */
.ch-body blockquote {
  position: relative;
  overflow: visible;
}
.ch-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -18px; left: 20px;
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  color: var(--line-2);
  pointer-events: none;
  z-index: 0;
}

/* ── GLASS CARD DEPTH ENHANCEMENT ── */
/* Subtle inner shadow + refined resting state */
.glass-card {
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.7);
}
.glass-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ── DIRECTORY TABLE CLASSES ── */
/* Replaces inline styles on CLEP directory tables */
.dir-section-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.dir-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--sans); font-size: 13px;
  color: var(--ink); margin-bottom: 8px;
}
.dir-table thead tr { border-bottom: 1px solid var(--line); }
.dir-table th {
  text-align: left; padding: 8px 12px 8px 0;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); white-space: nowrap;
}
.dir-table th:not(:first-child) { text-align: center; padding-left: 12px; }
.dir-table td {
  padding: 11px 12px 11px 0;
  font-weight: 500; color: var(--ink);
  transition: background 0.15s;
}
.dir-table td:not(:first-child) {
  text-align: center; color: var(--ink-dim);
  padding-left: 12px; font-weight: 400;
}
.dir-table tbody tr {
  border-bottom: 1px solid var(--line);
}
.dir-table tbody tr:last-child { border-bottom: none; }
.dir-table tbody tr:hover td {
  background: var(--bg-soft);
}
/* Difficulty badges */
.diff-badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.diff-badge.easy { background: rgba(34,197,94,0.12); color: #22c55e; }
.diff-badge.medium { background: rgba(234,179,8,0.12); color: #eab308; }
.diff-badge.hard { background: rgba(239,68,68,0.12); color: #ef4444; }
.diff-badge.easy-med { background: rgba(34,197,94,0.12); color: #22c55e; }
.dir-yes { color: #22c55e; font-weight: 700; }
.dir-no { color: var(--ink-mute); }

/* ── ENHANCED COMPARE TABLE HOVER ── */
.compare-table tbody tr {
  transition: background 0.15s;
}
.compare-table tbody tr:hover td {
  background: var(--bg-panel);
}

/* ── PROSE RHYTHM BREAKER ── */
/* A thin horizontal line to break up long text sections */
.ch-body hr {
  border: none; height: 1px;
  background: linear-gradient(to right, transparent, var(--line-2), transparent);
  margin: 48px 0;
}

/* ── FLOATING CHAPTER NUMBER ── */
/* Large faded chapter number behind the title for depth */
.ch-num-float {
  position: absolute;
  top: -30px; right: -20px;
  font-family: var(--serif);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 400;
  color: var(--bg-panel);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
}
.ch-hero-wrap {
  position: relative;
  overflow: hidden;
}
.ch-hero-wrap > *:not(.ch-num-float) {
  position: relative; z-index: 1;
}

/* ── TOOL STRIP REFINEMENT ── */
.tool-strip-card {
  position: relative;
  overflow: hidden;
}
.tool-strip-card::after {
  content: '↗';
  position: absolute; top: 6px; right: 8px;
  font-size: 10px; color: var(--ink-mute);
  opacity: 0; transition: opacity 0.2s;
}
.tool-strip-card:hover::after { opacity: 1; }

/* ── CALLOUT REFINEMENT ── */
.callout {
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--ink-mute);
  border-radius: 3px 0 0 3px;
}

/* ── SMOOTH ENTRANCE FOR EXERCISE & QUIZ ── */
.exercise-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exercise-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(234,179,8,0.08);
}
.quiz-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quiz-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* ── READING TIME / META BAR ── */
.ch-meta {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.ch-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.ch-meta-item .meta-icon {
  font-size: 14px; opacity: 0.6;
}
.ch-meta-sep {
  width: 3px; height: 3px;
  background: var(--line-2);
  border-radius: 50%;
}

/* ── GRADIENT FADE TRANSITION between sections ── */
.section-fade-in {
  background: linear-gradient(to bottom, var(--bg-panel) 0%, var(--bg) 100%);
  height: 64px; margin: 0 -28px;
}
.section-fade-out {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-panel) 100%);
  height: 64px; margin: 0 -28px;
}

/* ── DOWNLOAD CARD SHIMMER ── */
.dl-card {
  position: relative; overflow: hidden;
}
.dl-card::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.dl-card:hover::after { left: 100%; }

/* ── VIDEO CARD PLAY BUTTON PULSE ── */
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10,10,10,0.08); }
  50% { box-shadow: 0 0 0 8px rgba(10,10,10,0); }
}
.video-card .vc-play {
  animation: playPulse 2.5s ease-in-out infinite;
}
.video-card:hover .vc-play {
  animation: none;
}

/* ══════════ INTERACTIVE TOOLS ══════════ */

/* Shared tool container */
.fga-tool {
  max-width: var(--max-w);
  margin: 48px auto;
  padding: 0 24px;
}
.fga-tool-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.fga-tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-mute) 100%);
}
.fga-tool-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-bottom: 16px;
}
.fga-tool-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.fga-tool-sub {
  font-size: 14px; color: var(--ink-dim);
  line-height: 1.7; margin-bottom: 32px;
  max-width: 560px;
}

/* Input rows */
.fga-input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.fga-input-wrap {
  display: flex; flex-direction: column; gap: 6px;
}
.fga-input-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.fga-input {
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.fga-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.fga-input::placeholder { color: var(--ink-mute); font-weight: 400; }
select.fga-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%238a8a8a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Range sliders */
.fga-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line, rgba(0,0,0,0.08));
  outline: none;
  margin-top: 4px;
  cursor: pointer;
}
.fga-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink, #0a0a0a);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.fga-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink, #0a0a0a);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Result panels */
.fga-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.fga-result-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
}
.fga-result-card.highlight {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.fga-result-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.6;
}
.fga-result-card.highlight .fga-result-label { color: rgba(255,255,255,0.6); }
.fga-result-val {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.fga-result-card.highlight .fga-result-val { color: #fff; }
.fga-result-note {
  font-size: 12px; margin-top: 6px;
  opacity: 0.5;
}
.fga-result-card.highlight .fga-result-note { color: rgba(255,255,255,0.5); }

/* Bar chart */
.fga-bar-compare {
  display: flex; align-items: flex-end;
  gap: 24px; height: 180px;
  margin: 32px 0 16px;
  padding: 0 20px;
}
.fga-bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 8px; height: 100%;
  justify-content: flex-end;
}
.fga-bar {
  width: 100%; border-radius: 6px 6px 0 0;
  transition: height 0.8s cubic-bezier(.2,.7,.2,1);
  position: relative;
  min-height: 4px;
}
.fga-bar.trad { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.25); border-bottom: none; }
.fga-bar.fast { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.25); border-bottom: none; }
.fga-bar-amount {
  font-family: var(--serif); font-size: 18px;
  font-weight: 400; color: var(--ink);
}
.fga-bar-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* Timeline builder */
.fga-timeline-output {
  margin-top: 24px;
}
.fga-tl-phase {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.fga-tl-phase:last-child { border-bottom: none; }
.fga-tl-dot {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--ink-dim);
}
.fga-tl-dot.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fga-tl-content { flex: 1; }
.fga-tl-dates {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-mute); margin-bottom: 4px;
}
.fga-tl-phase-name {
  font-weight: 700; font-size: 15px;
  color: var(--ink); margin-bottom: 4px;
}
.fga-tl-desc {
  font-size: 13px; color: var(--ink-dim); line-height: 1.6;
}
.fga-tl-credits {
  display: inline-block; margin-top: 6px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 600; color: #22c55e;
  background: rgba(34,197,94,0.08);
  padding: 3px 10px; border-radius: 999px;
}

/* Credit explorer */
.fga-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.fga-filter-btn {
  font-size: 12px; font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.fga-filter-btn:hover { background: var(--bg-panel); }
.fga-filter-btn.active {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}
.fga-credit-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 60px;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 13px;
  transition: background 0.15s;
  cursor: pointer;
}
.fga-credit-row:hover { background: var(--bg-panel); }
.fga-credit-row.selected { background: rgba(34,197,94,0.06); }
.fga-credit-row-head {
  display: grid;
  grid-template-columns: 1fr 80px 80px 60px;
  gap: 12px;
  padding: 10px 16px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 2px solid var(--line-2);
}
.fga-credit-name { font-weight: 600; color: var(--ink); }
.fga-credit-check {
  width: 18px; height: 18px;
  border: 2px solid var(--line-2);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.fga-credit-row.selected .fga-credit-check {
  background: #22c55e; border-color: #22c55e; color: #fff;
}
.fga-credit-tally {
  position: sticky; bottom: 0;
  background: var(--bg-soft);
  border-top: 2px solid var(--line-2);
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 0 0 12px 12px;
  margin: 0 -32px -40px;
}
.fga-tally-num {
  font-family: var(--serif); font-size: 28px; color: var(--ink);
}
.fga-tally-label {
  font-size: 12px; color: var(--ink-mute);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em;
}
.fga-tally-savings {
  font-family: var(--serif); font-size: 20px; color: #22c55e;
}

/* ── RESPONSIVE ADDITIONS ── */
@media (max-width: 600px) {
  .section-ornament { margin: 48px auto; }
  .dot-divider { margin: 40px auto; }
  .ch-num-float { display: none; }
  .ch-meta { gap: 12px; }
  .section-fade-in, .section-fade-out { height: 40px; margin: 0 -18px; }
  .fga-input-group { grid-template-columns: 1fr; }
  .fga-results { grid-template-columns: 1fr; }
  .fga-bar-compare { height: 140px; gap: 16px; }
  .fga-credit-row { grid-template-columns: 1fr 60px 60px 50px; gap: 8px; font-size: 12px; }
  .fga-credit-row-head { grid-template-columns: 1fr 60px 60px 50px; gap: 8px; }
  .fga-tool-card { padding: 28px 20px; }
  .fga-credit-tally { margin: 0 -20px -28px; }
}

@media (max-width: 768px) {
  .school-matrix,
  .exam-directory,
  .cross-ref-table {
    font-size: 13px;
  }
  .school-matrix td,
  .exam-directory td,
  .cross-ref-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
}
