:root {
  color-scheme: dark;
  --bg: #0b1118;
  --panel: #111a24;
  --panel-2: #16212c;
  --line: #273542;
  --line-strong: #3b4d5d;
  --text: #edf4f7;
  --muted: #9fb0bc;
  --faint: #71828e;
  --cyan: #44d7e8;
  --cyan-soft: #173b43;
  --amber: #ffbd59;
  --green: #77d19b;
  --red: #ff8a80;
  --blue: #87b8ff;
  --purple: #c7a8ff;
  --sidebar: 248px;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.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; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: var(--cyan); color: #061014; font-weight: 800; border-radius: 6px; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; border-right: 1px solid var(--line); background: #0d151d; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 26px; border-bottom: 1px solid var(--line); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--cyan); color: #071015; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; }
.brand span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.primary-nav { display: grid; gap: 5px; padding: 22px 0; }
.primary-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; border-radius: 0 7px 7px 0; }
.primary-nav a span { color: var(--faint); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.primary-nav a:hover { color: var(--text); background: #14202a; }
.primary-nav a[aria-current="page"] { color: var(--text); background: var(--cyan-soft); border-left-color: var(--cyan); }
.primary-nav a[aria-current="page"] span { color: var(--cyan); }
.sidebar-note { margin-top: auto; padding: 16px 14px; border: 1px solid var(--line); background: var(--panel); }
.sidebar-note p { margin: 7px 0 0; color: var(--text); font-size: 13px; line-height: 1.45; }
.sidebar-foot { padding: 18px 12px 0; color: var(--faint); font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

.workspace { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 16px; min-height: 70px; padding: 12px clamp(20px, 4vw, 52px); background: rgba(11, 17, 24, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.menu-button { display: none; min-height: 42px; padding: 0 12px; color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.search { flex: 1; max-width: 680px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; background: #101923; border: 1px solid var(--line); }
.search:focus-within { border-color: var(--cyan); }
.search svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; }
.search input::placeholder { color: var(--faint); }
kbd { padding: 3px 7px; color: var(--faint); border: 1px solid var(--line); background: var(--panel-2); font: 11px/1.2 ui-monospace, monospace; }
.source-link { margin-left: auto; color: var(--cyan); font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.source-link:hover { text-decoration: underline; }

main { width: 100%; max-width: 1600px; margin: 0 auto; flex: 1; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 52px) 64px; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 34px; }
.eyebrow { display: block; color: var(--cyan); font: 800 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 860px; margin-bottom: 12px; font-size: clamp(34px, 5.2vw, 68px); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.025em; }
h3 { font-size: 16px; }
.lede { max-width: 740px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; }
.update-stamp { align-self: start; color: var(--faint); font: 600 11px/1.5 ui-monospace, monospace; text-align: right; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); margin: 0 0 42px; }
.metric { min-height: 112px; padding: 22px; border-right: 1px solid var(--line); background: var(--panel); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; margin-bottom: 6px; font-size: clamp(24px, 3vw, 38px); line-height: 1; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: 12px; }
.metric.focus strong { color: var(--amber); }

.timeline-section { margin-bottom: 44px; }
.timeline-heading { margin-top: 0; }
.month-picker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.month-picker select { min-height: 40px; padding: 0 34px 0 11px; color: var(--text); border: 1px solid var(--line-strong); background: var(--panel); }
.timeline-scroll { min-width: 0; overflow-x: auto; padding: 14px; border: 1px solid var(--line); background: #0d151d; }
.timeline-months, .timeline-row { min-width: 980px; display: grid; grid-template-columns: 180px repeat(var(--timeline-columns), minmax(42px, 1fr)); }
.timeline-months { margin-bottom: 7px; color: var(--faint); font: 700 11px/1 ui-monospace, monospace; text-align: center; }
.timeline-months span { padding: 6px 0; }
.timeline-months .current { color: #071015; background: var(--amber); }
.timeline-group { display: grid; gap: 5px; }
.timeline-row { position: relative; min-height: 43px; align-items: stretch; }
.timeline-label { z-index: 2; grid-column: 1; grid-row: 1; align-self: center; padding-right: 12px; font-size: 12px; line-height: 1.25; }
.timeline-cell { grid-row: 1; border-left: 1px solid #1b2833; }
.timeline-cell:last-of-type { border-right: 1px solid #1b2833; }
.timeline-cell.current { background: rgba(255, 189, 89, .08); border-left-color: rgba(255, 189, 89, .45); }
.timeline-bar { z-index: 1; grid-row: 1; align-self: center; min-width: 0; min-height: 34px; padding: 5px 9px; overflow: hidden; color: #071015; background: var(--bar-color); border: 0; text-align: left; }
button.timeline-bar { cursor: pointer; }
button.timeline-bar:hover { filter: brightness(1.12); }
.timeline-bar span, .timeline-bar small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-bar span { font-size: 11px; font-weight: 850; }
.timeline-bar small { margin-top: 2px; font-size: 9px; font-weight: 700; opacity: .78; }
.stage-timeline .timeline-bar { color: var(--text); background: #273542; }
.timeline-separator { min-width: 980px; margin: 11px 0; border-top: 1px solid var(--line); }

.math-path { margin: 0 0 46px; }
.math-phases { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 8px; overflow-x: auto; padding: 0 0 6px; }
.math-phase { position: relative; min-width: 170px; min-height: 235px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--panel); }
.math-phase::after { content: "→"; position: absolute; z-index: 2; top: 20px; right: -8px; color: var(--faint); font-weight: 900; }
.math-phase:last-child::after { content: none; }
.math-phase.current { border-color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 189, 89, .2); }
.math-phase-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--faint); font: 800 10px/1 ui-monospace, monospace; }
.math-phase.current .math-phase-top { color: var(--amber); }
.math-phase h3 { margin: 16px 0 8px; font-size: 16px; }
.math-phase p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.math-phase-topics { display: grid; gap: 5px; margin-top: auto; }
.math-topic-link { width: 100%; padding: 8px 9px; color: var(--text); background: #0d151d; border: 1px solid var(--line); text-align: left; font-size: 11px; line-height: 1.3; cursor: pointer; }
.math-topic-link:hover { border-color: var(--blue); background: var(--panel-2); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 42px 0 18px; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 600px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.roadmap { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.stage { min-width: 210px; }
.stage-label { position: relative; min-height: 54px; padding: 0 0 13px 16px; border-bottom: 1px solid var(--line-strong); }
.stage-label::before { content: ""; position: absolute; left: 0; bottom: -4px; width: 7px; height: 7px; background: var(--cyan); }
.stage-label span { color: var(--faint); font: 700 10px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.stage-label strong { display: block; margin-top: 7px; font-size: 13px; }
.stage-stack { display: grid; gap: 10px; padding-top: 12px; }
.area-card { width: 100%; padding: 17px; color: inherit; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent, var(--cyan)); }
.area-card:hover { border-color: var(--line-strong); }
.area-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.area-open { padding: 0; color: var(--muted); background: transparent; border: 0; font-size: 11px; cursor: pointer; }
.area-open:hover { color: var(--text); text-decoration: underline; }
.area-code { color: var(--accent, var(--cyan)); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .12em; }
.area-card h3 { margin: 10px 0 6px; }
.area-card p { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.roadmap-topics { display: grid; gap: 1px; margin: 15px -17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); }
.roadmap-topic { display: block; width: 100%; padding: 10px 14px; color: inherit; background: #0d151d; border: 0; text-align: left; cursor: pointer; }
.roadmap-topic:hover { background: var(--panel-2); }
.roadmap-topic span, .roadmap-topic small { display: block; }
.roadmap-topic span { font-size: 12px; font-weight: 750; line-height: 1.3; }
.roadmap-topic small { margin-top: 4px; color: var(--faint); font-size: 10px; line-height: 1.3; }
.card-meta, .tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); background: #0c141c; font: 700 10px/1 ui-monospace, monospace; text-transform: uppercase; }
.pill.high, .pill.very-high { color: var(--amber); border-color: #654d29; }
.pill.core { color: var(--cyan); border-color: #28505a; }
.pill.verified, .pill.comfortable { color: var(--green); border-color: #315b44; }
.pill.dropped { color: var(--red); border-color: #6a3939; }
.dependency-note { margin-top: 13px !important; color: var(--faint) !important; font: 10px/1.4 ui-monospace, monospace !important; }

.focus-panel { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; margin-top: 24px; border: 1px solid #6a512b; background: #181710; }
.focus-copy { padding: 28px; border-right: 1px solid #6a512b; }
.focus-copy .eyebrow { color: var(--amber); }
.focus-copy h2 { margin: 10px 0; }
.focus-copy p { color: var(--muted); line-height: 1.55; }
.focus-units { display: grid; grid-template-columns: repeat(2, 1fr); }
.focus-unit { padding: 18px; border-right: 1px solid #3b3424; border-bottom: 1px solid #3b3424; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.focus-unit:nth-child(even) { border-right: 0; }
.focus-unit strong { display: block; margin-bottom: 6px; font-size: 13px; }
.focus-unit span { color: var(--muted); font-size: 11px; }
.focus-unit .focus-source { display: block; line-height: 1.45; }
.focus-unit .focus-source b { color: var(--amber); font-weight: 750; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filter-select, .filter-button { min-height: 42px; padding: 0 12px; color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.filter-button { cursor: pointer; }
.filter-button[aria-pressed="true"] { color: #071015; border-color: var(--cyan); background: var(--cyan); font-weight: 800; }
.result-count { margin-left: auto; align-self: center; color: var(--faint); font: 11px/1.3 ui-monospace, monospace; }

.curriculum-groups { display: grid; gap: 34px; }
.curriculum-area-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.curriculum-area-head h2 { margin: 6px 0 0; font-size: 25px; }
.unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.unit-card { min-height: 210px; display: flex; flex-direction: column; padding: 18px; color: inherit; text-align: left; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.unit-card:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--panel-2); }
.unit-card h3 { margin: 13px 0 8px; font-size: 17px; }
.unit-card p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.unit-card .card-meta { margin-top: auto; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-dot.learning { background: var(--cyan); }
.status-dot.partially-covered, .status-dot.revisit { background: var(--amber); }
.status-dot.comfortable { background: var(--green); }

.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resource-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.resource-top { padding: 20px; }
.resource-card h2 { margin: 13px 0 7px; font-size: 20px; }
.byline { color: var(--muted); font-size: 12px; }
.resource-actions { display: flex; gap: 12px; margin-top: 18px; }
.text-link { color: var(--cyan); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.toc { border-top: 1px solid var(--line); }
.toc summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--cyan); font-size: 17px; }
.toc[open] summary::after { content: "−"; }
.toc ol { max-height: 420px; overflow: auto; margin: 0; padding: 4px 24px 20px 50px; color: var(--muted); }
.toc li { margin: 9px 0; padding-left: 4px; font-size: 12px; line-height: 1.45; }
.empty-state { padding: 60px 24px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }

.dropped-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.dropped-card { padding: 20px; border: 1px solid #4a3030; background: #171316; }
.dropped-card h3 { margin: 12px 0 8px; font-size: 17px; }
.dropped-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.decision-block { margin-top: 38px; }

.yaml-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; }
.yaml-card { padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.yaml-card p, .yaml-card li { color: var(--muted); line-height: 1.6; }
.yaml-card ul { padding-left: 20px; }
.code-panel { overflow: auto; padding: 22px; border: 1px solid var(--line); background: #080d12; color: #b9cad4; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.button-primary { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 16px; color: #061014; background: var(--cyan); font-size: 13px; font-weight: 850; text-decoration: none; }

dialog { width: min(780px, calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 0; box-shadow: 0 24px 80px rgba(0,0,0,.52); }
dialog::backdrop { background: rgba(2, 6, 9, .78); backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 24px 26px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 7px 0 0; font-size: 27px; }
.icon-button { width: 44px; height: 44px; color: var(--muted); background: transparent; border: 1px solid var(--line); font-size: 25px; cursor: pointer; }
#dialog-body { padding: 26px; }
.dialog-section { margin-bottom: 28px; }
.dialog-section h3 { margin-bottom: 12px; color: var(--muted); font: 800 10px/1.2 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.dialog-section ul { margin: 0; padding-left: 20px; }
.dialog-section li { margin: 8px 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.resource-route { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.resource-route:first-of-type { border-top: 0; }
.route-kind { color: var(--cyan); font: 800 10px/1.4 ui-monospace, monospace; text-transform: uppercase; }
.route-content strong { display: block; margin-bottom: 5px; }
.route-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.route-reason { margin-top: 7px !important; color: var(--faint) !important; font-style: italic; }
.status-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.status-picker button { min-height: 38px; padding: 0 10px; color: var(--muted); border: 1px solid var(--line); background: #0d151d; cursor: pointer; text-transform: capitalize; font-size: 12px; }
.status-picker button[aria-pressed="true"] { color: #071015; background: var(--amber); border-color: var(--amber); font-weight: 800; }

footer { padding: 18px clamp(20px, 4vw, 52px) 34px; color: var(--faint); border-top: 1px solid var(--line); }
footer p { max-width: 760px; margin: 0; font-size: 11px; line-height: 1.5; }

@media (max-width: 1080px) {
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .focus-panel { grid-template-columns: 1fr; }
  .focus-copy { border-right: 0; border-bottom: 1px solid #6a512b; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 22px 0 60px rgba(0,0,0,.5); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,.55); }
  .menu-button { display: block; }
  .topbar { gap: 10px; padding: 10px 14px; }
  .source-link, kbd { display: none; }
  main { padding-top: 34px; }
  .page-head { display: block; }
  .update-stamp { margin-top: 18px; text-align: left; }
  .roadmap { grid-template-columns: 1fr; overflow: visible; gap: 26px; }
  .stage-label { min-height: auto; }
  .unit-grid, .resource-grid, .dropped-grid, .yaml-layout { grid-template-columns: 1fr; }
  .focus-units { grid-template-columns: 1fr; }
  .focus-unit { border-right: 0; }
  .timeline-heading { align-items: flex-start; }
  .filters { align-items: stretch; }
  .filter-select, .filter-button { flex: 1; }
  .result-count { width: 100%; margin: 2px 0 0; }
  .resource-route { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 90px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* Unified topic roadmap and full area syllabus */
.page-head h1 {font-size:clamp(28px,3.3vw,44px);line-height:1.1;letter-spacing:-.025em}
.page-head {margin-bottom:22px}
main {max-width:1900px;padding:28px 24px 48px}
.area-navigation {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.area-navigation a {padding:9px 12px;border:1px solid var(--line);text-decoration:none;font-size:14px}
.area-navigation a[aria-current] {border-color:var(--cyan);background:var(--cyan-soft)}
.area-index {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.area-index article {border:1px solid var(--line);padding:20px;background:var(--panel)}
.area-index h2 {font-size:22px}.area-index li {margin:8px 0}.area-index p {color:var(--muted)}
.gantt-scroll {overflow:auto;max-height:75vh;border:1px solid var(--line)}
.gantt {border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1120px}
.gantt th:first-child {width:310px;position:sticky;left:0;background:var(--panel);z-index:2;text-align:left}
.gantt th,.gantt td {border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:5px}
.gantt thead th {position:sticky;top:0;z-index:3;background:var(--panel-2);font-size:14px;height:38px}
.gantt thead th:first-child {z-index:4}
.gantt tbody th button {border:0;background:none;color:var(--text);font-weight:650;font-size:14px;text-align:left;cursor:pointer;padding:3px 0}
.gantt small {display:block;font-size:12px;font-weight:400;color:var(--muted);line-height:1.4}
.gantt .gantt-area th {background:#17303b;padding:10px;font-size:16px}
.gantt .scheduled {background:color-mix(in srgb,var(--accent) 35%,var(--bg))}
.gantt td button {border:0;color:var(--text);background:none;min-height:28px;width:100%;font-size:12px;cursor:pointer}
.gantt .month-current {box-shadow:inset 2px 0 var(--amber),inset -2px 0 var(--amber)}
.syllabus-scroll {overflow:auto;border:1px solid var(--line)}
.syllabus {width:100%;border-collapse:collapse;min-width:940px;table-layout:fixed;background:var(--panel)}
.syllabus th,.syllabus td {vertical-align:top;text-align:left;padding:16px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.syllabus thead th {background:var(--panel-2)}
.syllabus th:first-child {width:19%}.syllabus th:nth-child(2){width:25%}.syllabus th:nth-child(3){width:29%}
.syllabus small,.inline-status {display:block;margin-top:8px;color:var(--muted);font-size:12px;font-weight:400}
.syllabus p {margin:0 0 10px}.syllabus .resource-route {display:block;padding:0 0 16px;border:0}
.syllabus .route-kind {display:block;margin-bottom:5px}.syllabus .route-content p {font-size:14px}
.reading-link {display:block;color:var(--cyan);font-size:14px;margin-top:8px}
.mapping-note {font-size:12px!important;color:var(--amber)!important;margin-top:8px!important}
.area-notes p {font-size:16px;line-height:1.5;color:var(--muted)}
.area-shelf {margin-top:30px}.area-shelf li {margin:12px 0;line-height:1.5}
@media(max-width:760px){.area-index{grid-template-columns:1fr}.gantt th:first-child{width:220px}.gantt{min-width:1050px}main{padding:22px 14px}}

.topic-overview{padding:16px 0 22px;line-height:2}.topic-overview a{white-space:nowrap}

/* Wide month columns keep the syllabus legible inside the scrolling chart. */
main {min-width:0}
.gantt-scroll {width:100%;max-width:100%;overflow-x:scroll;overscroll-behavior-x:contain;scrollbar-gutter:stable}
.gantt {width:4630px;min-width:4630px}
.gantt thead th:not(:first-child),.gantt td {width:240px}
.gantt th,.gantt td {vertical-align:top}
.gantt td button {text-align:left;font-size:14px;line-height:1.5;padding:10px}
.gantt td button strong {display:block;margin-bottom:8px}
.gantt td button ul {margin:0;padding-left:18px;font-weight:400}
.gantt td button li+li {margin-top:6px}
.gantt-scroll:focus-visible {outline:2px solid var(--amber);outline-offset:3px}
@media(max-width:760px){.gantt{width:4540px;min-width:4540px}}

/* Collapsible desktop navigation; the document starts collapsed. */
.shell {transition:grid-template-columns .2s ease}
.menu-button {display:block;white-space:nowrap;cursor:pointer}
.sidebar {transition:transform .2s ease,visibility .2s ease}
body.sidebar-collapsed .shell {grid-template-columns:0 minmax(0,1fr)}
body.sidebar-collapsed .sidebar {transform:translateX(-100%);visibility:hidden;overflow:hidden}
@media (max-width:760px) {
  body.sidebar-collapsed .sidebar {visibility:visible}
  body.sidebar-collapsed .shell {display:block}
  body.nav-open .sidebar {transform:none}
}
