:root {
  color-scheme: light;
  --page: #f7f9fc; --surface: #fff; --surface-soft: #f1f5f9;
  --ink: #172033; --muted: #526078; --subtle: #758198;
  --line: #dfe5ee; --line-strong: #c8d1df; --navy: #102a43;
  --blue: #1769aa; --blue-dark: #0f4f82; --blue-soft: #eaf4fb;
  --green: #16794b; --green-soft: #e9f7f0; --amber: #9a5a08; --amber-soft: #fff6e5;
  --content: 1180px; --reading: 760px; --radius: 10px;
  --shadow: 0 12px 32px rgba(15,42,67,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
img, svg { max-width: 100%; }
button, input { font: inherit; }
code, pre, .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.container { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 500; padding: 9px 13px; background: var(--navy); color: white; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.header-row { min-height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 760; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 6px; color: var(--blue); font: 800 14px/1 monospace; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-group { position: relative; }
.nav-link { padding: 8px 11px; border-radius: 6px; color: #33445e; text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-parent { display: inline-flex; align-items: center; gap: 6px; }
.nav-parent span { color: var(--subtle); font-size: 12px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue-dark); background: var(--blue-soft); }
.nav-menu { position: absolute; top: calc(100% + 9px); left: -8px; z-index: 120; display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 4px; width: 470px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 16px 38px rgba(15,42,67,.14); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .14s ease, transform .14s ease; }
.nav-menu::before { content: ""; position: absolute; left: 24px; top: -6px; width: 10px; height: 10px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; transform: rotate(45deg); }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-menu a { display: block; padding: 10px 11px; border-radius: 6px; color: var(--navy); text-decoration: none; }
.nav-menu a:hover { background: var(--blue-soft); }
.nav-menu strong { display: block; font-size: 13px; }
.nav-menu small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta { display: inline-flex; align-items: center; min-height: 35px; padding: 0 11px; border: 1px solid #9bbbd2; border-radius: 6px; color: var(--blue-dark); background: var(--blue-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.header-cta:hover { color: var(--blue-dark); background: #dceef9; }
.search-trigger { min-width: 202px; height: 38px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--subtle); padding: 0 11px; cursor: pointer; }
.search-trigger:hover { border-color: #8c9bb0; }
.key { border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; color: var(--muted); font: 11px monospace; }
.menu-toggle { display: none; border: 1px solid var(--line-strong); border-radius: 6px; background: white; color: var(--navy); padding: 7px 10px; cursor: pointer; }
.journey-ribbon { border-bottom: 1px solid var(--line); background: #f9fbfd; }
.journey-inner { min-height: 66px; display: flex; align-items: center; gap: 8px; overflow-x: auto; }
.journey-label { margin-right: 8px; color: var(--subtle); font: 760 10px/1 monospace; letter-spacing: .1em; white-space: nowrap; }
.journey-step { display: flex; align-items: center; gap: 8px; min-width: 142px; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); text-decoration: none; }
.journey-step:hover { border-color: var(--line-strong); background: white; }
.journey-step.current { border-color: #a8c8de; background: var(--blue-soft); color: var(--blue-dark); }
.journey-step.visited { color: #35566c; }
.journey-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e7edf3; color: #50677c; font: 800 11px monospace; }
.journey-step.current .journey-number { background: var(--blue); color: white; }
.journey-step strong, .journey-step small { display: block; white-space: nowrap; }
.journey-step strong { font-size: 12px; }
.journey-step small { margin-top: 1px; color: var(--subtle); font-size: 10px; }
.journey-arrow { color: #9aaabd; font-size: 16px; }
.search-dialog { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(16,42,67,.45); }
.search-dialog.open { display: flex; }
.search-panel { width: min(660px, calc(100% - 32px)); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: white; box-shadow: 0 28px 80px rgba(15,42,67,.22); }
.search-input { width: 100%; height: 58px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); padding: 0 18px; font-size: 16px; outline: none; }
.search-results { max-height: 430px; overflow: auto; padding: 8px; }
.search-results a { display: block; padding: 11px 12px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.search-results a:hover { background: var(--blue-soft); }
.search-results small { display: block; color: var(--muted); margin-top: 1px; }
.hero { padding: 72px 0 62px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fff 0%,#f6f9fc 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); gap: 68px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue-dark); font-size: 12px; line-height: 1.4; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; color: var(--navy); font-size: clamp(38px,4.5vw,54px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { color: var(--blue); }
.hero-lead { max-width: 660px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--blue-dark); border-radius: 7px; color: white; background: var(--blue-dark); text-decoration: none; font-weight: 700; font-size: 14px; }
.button:hover { color: white; background: var(--blue); border-color: var(--blue); }
.button.secondary { color: var(--blue-dark); background: white; border-color: var(--line-strong); }
.button.secondary:hover { background: var(--blue-soft); }
.hero-note { margin-top: 15px; color: var(--subtle); font-size: 13px; }
.route-band { padding: 34px 0; border-bottom: 1px solid var(--line); background: #f2f6fa; }
.route-band .section-head { margin-bottom: 18px; }
.route-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.route-map a { position: relative; display: block; min-height: 126px; padding: 15px 14px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); text-decoration: none; }
.route-map a:not(:last-child)::after { content: "→"; position: absolute; top: 48px; right: -13px; z-index: 2; color: #8da4b6; font-size: 16px; }
.route-map a:hover { border-color: #9bbbd2; box-shadow: 0 7px 18px rgba(15,42,67,.07); }
.route-number { display: block; color: var(--blue); font: 800 11px monospace; letter-spacing: .08em; }
.route-map strong { display: block; margin-top: 9px; font-size: 16px; }
.route-map small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.workflow-panel { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.workflow-panel h2 { margin: 0 0 18px; color: var(--navy); font-size: 16px; }
.workflow-step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; position: relative; padding-bottom: 17px; }
.workflow-step:last-child { padding-bottom: 0; }
.workflow-step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 34px; bottom: 3px; border-left: 1px solid #a9c8df; }
.step-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-weight: 800; font-size: 13px; }
.workflow-step h3 { margin: 1px 0 2px; font-size: 15px; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.band { padding: 62px 0; border-bottom: 1px solid var(--line); background: white; }
.band.soft { background: var(--page); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { margin: 0; color: var(--navy); font-size: clamp(28px,3vw,36px); line-height: 1.2; letter-spacing: -.035em; }
.section-head p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.feature { min-height: 190px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 8px; color: var(--blue-dark); background: var(--blue-soft); font: 800 14px monospace; }
.feature h3 { margin: 0 0 7px; color: var(--navy); font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.architecture { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.architecture img { display: block; width: 100%; }
.figure-caption { margin: 8px 2px 0; color: var(--subtle) !important; font-size: 12px; line-height: 1.5; }
.curriculum { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.module-card { display: block; min-height: 225px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 21px; text-decoration: none; transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.module-card:hover { transform: translateY(-2px); border-color: #9bbbd2; box-shadow: var(--shadow); }
.module-index { display: block; color: var(--blue); font: 750 12px monospace; letter-spacing: .05em; }
.module-card h3 { margin: 12px 0 7px; color: var(--navy); font-size: 18px; }
.module-card p { margin: 0; color: var(--muted); font-size: 14px; }
.module-card .meta { display: block; margin-top: 18px; color: var(--subtle); font-size: 12px; }
.path-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.path-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 21px; text-decoration: none; }
.path-card:hover { border-color: #9bbbd2; box-shadow: var(--shadow); }
.path-card .meta { color: var(--blue-dark); font-size: 11px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.path-card h3 { color: var(--navy); margin: 10px 0 7px; font-size: 18px; }
.path-card p { color: var(--muted); margin: 0; font-size: 14px; }
.path-card .arrow { display: inline-block; margin-top: 15px; color: var(--blue-dark); font-weight: 700; font-size: 13px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comparison article { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 22px; }
.comparison h3 { margin: 0 0 12px; color: var(--navy); }
.check-list { padding: 0; margin: 0; list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 25px; color: var(--muted); }
.check-list li::before { position: absolute; left: 0; color: var(--green); content: "✓"; font-weight: 800; }
.check-list.no li::before { color: var(--amber); content: "—"; }
.source-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.source-card { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.source-card strong { display: block; color: var(--navy); font-size: 14px; }
.source-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.docs-shell { display: grid; grid-template-columns: 220px minmax(0,var(--reading)) 180px; justify-content: space-between; gap: 34px; padding-top: 34px; padding-bottom: 72px; }
.docs-sidebar { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 105px); overflow: auto; padding-right: 10px; }
.docs-mobile-toggle { display: none; }
.docs-group { margin-bottom: 21px; }
.docs-label { margin: 0 0 7px; color: var(--subtle); font-size: 11px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.docs-link { display: block; padding: 5px 8px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 13px; }
.docs-link:hover, .docs-link.active { color: var(--blue-dark); border-left-color: var(--blue); background: var(--blue-soft); }
.docs-main { min-width: 0; }
.breadcrumbs { color: var(--subtle); font-size: 12px; margin-bottom: 16px; }
.docs-main h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(32px,4vw,42px); line-height: 1.15; letter-spacing: -.04em; }
.docs-lead { color: var(--muted); font-size: 17px; max-width: 720px; }
.docs-main h2 { margin: 42px 0 11px; padding-top: 7px; color: var(--navy); border-top: 1px solid var(--line); font-size: 26px; line-height: 1.25; letter-spacing: -.025em; }
.docs-main h3 { margin: 25px 0 7px; color: var(--navy); font-size: 18px; }
.docs-main p, .docs-main li { color: var(--muted); }
.docs-main li + li { margin-top: 5px; }
.docs-main table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 13px; }
.docs-main th, .docs-main td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs-main th { background: var(--surface-soft); color: #33445e; font-size: 11px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.docs-main tr:last-child td { border-bottom: 0; }
.docs-main :not(pre)>code { padding: 2px 5px; border: 1px solid #d9e2ec; border-radius: 4px; background: #f3f6f9; color: #193b57; font-size: .9em; }
.docs-callout { margin: 20px 0; padding: 14px 16px; border-left: 3px solid var(--blue); border-radius: 0 7px 7px 0; background: var(--blue-soft); color: #33445e; }
.docs-callout.warn { border-left-color: #d58a20; background: var(--amber-soft); }
.docs-callout.success { border-left-color: var(--green); background: var(--green-soft); }
pre.code { margin: 15px 0; padding: 19px; overflow: auto; border: 1px solid #26384b; border-radius: 8px; background: #12202e; color: #e6edf4; font-size: 13px; line-height: 1.65; white-space: pre; }
.kw { color: #d8a6ff; }.fn { color: #79d6ee; }.str { color: #a8dc93; }.cm { color: #90a0af; }.num { color: #ffd479; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps>li { counter-increment: step; position: relative; padding: 0 0 23px 45px; }
.steps>li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-weight: 800; font-size: 12px; }
.steps h3 { margin-top: 0; }
.api-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.api-entry { display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); }
.api-entry:last-child { border-bottom: 0; }
.api-entry code { color: var(--blue-dark); font-weight: 700; }
.api-entry p { margin: 0; }
.module-toc-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; margin: 18px 0 28px; }
.module-toc-grid a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--blue-dark); text-decoration: none; font-size: 13px; }
.module-toc-grid a:hover { border-color: #9bbbd2; background: var(--blue-soft); }
.module-section { margin: 36px 0 48px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 5px 16px rgba(15,42,67,.04); }
.module-section h2 { margin: 0 0 9px; padding: 0; border: 0; font-size: 27px; }
.module-section h3 { margin-top: 22px; }
.module-kicker { margin: 0 0 7px; color: var(--blue-dark) !important; font: 760 11px/1.4 monospace; letter-spacing: .08em; text-transform: uppercase; }
.module-purpose { margin-top: 0; font-size: 16px; color: #33445e !important; }
.module-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.module-meta div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.module-meta strong { display: block; color: var(--navy); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.module-meta span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.symbol-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.symbol-list div { padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfe; }
.symbol-list code { color: var(--blue-dark); font-weight: 700; }
.symbol-list p { margin: 4px 0 0; font-size: 13px; line-height: 1.48; }
.module-section .docs-callout { margin-bottom: 0; }
.learning-path { display: grid; gap: 10px; counter-reset: learn; margin: 18px 0 28px; }
.learning-path a { counter-increment: learn; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: white; text-decoration: none; }
.learning-path a::before { content: counter(learn); width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font: 800 12px monospace; }
.learning-path strong { color: var(--navy); }
.learning-path span { color: var(--muted); font-size: 13px; }
.reference-note { padding: 13px 15px; border: 1px dashed var(--line-strong); border-radius: 7px; background: #fcfdff; color: var(--muted); font-size: 13px; }
.state { display: inline-block; padding: 2px 7px; border: 1px solid #9dc3dc; border-radius: 99px; background: var(--blue-soft); color: var(--blue-dark); font: 700 11px monospace; }
.toc { position: sticky; top: 88px; align-self: start; padding-left: 14px; border-left: 1px solid var(--line); font-size: 12px; }
.toc strong { display: block; margin-bottom: 8px; color: var(--subtle); font-size: 10px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 4px 0; color: var(--subtle); text-decoration: none; }
.toc a:hover { color: var(--blue-dark); }
.lesson-map { display: grid; gap: 10px; margin: 20px 0; }
.lesson-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; text-decoration: none; }
.lesson-row:hover { border-color: #9bbbd2; }
.lesson-row .lesson-number { color: var(--blue-dark); font: 750 12px monospace; }
.lesson-row strong { color: var(--navy); }
.lesson-row p { margin: 2px 0 0; font-size: 13px; }
.lesson-row .lesson-type { color: var(--subtle); font-size: 12px; }
.reference-list { display: grid; gap: 10px; }
.reference-item { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.reference-item h3 { margin: 0 0 4px; font-size: 16px; }
.reference-item p { margin: 0 0 7px; font-size: 14px; }
.reference-item a { font-size: 13px; font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); background: #eef3f8; padding: 38px 0; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { margin: 0 0 9px; color: var(--navy); font-size: 13px; }
.footer-grid a { display: block; margin: 5px 0; color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-grid a:hover { color: var(--blue-dark); }
.footer-note { max-width: 480px; font-size: 13px; }
@media (max-width:1080px) {
  .header-row { gap: 16px; }
  .nav-link { padding: 8px 7px; font-size: 13px; }
  .nav-menu { width: 420px; }
  .search-trigger { min-width: 0; width: 40px; overflow: hidden; color: transparent; }
  .search-trigger::before { content: "⌕"; color: var(--navy); font-size: 21px; }
  .search-trigger .key { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .feature-grid, .source-grid { grid-template-columns: 1fr 1fr; }
  .docs-shell { grid-template-columns: 200px minmax(0,1fr); }
  .toc { display: none; }
}
@media (max-width:700px) {
  .container { width: min(100% - 28px,var(--content)); }
  .header-row { gap: 12px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 10px 14px 14px; flex-direction: column; align-items: stretch; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-group { border-bottom: 1px solid var(--line); }
  .nav-group:last-child { border-bottom: 0; }
  .nav-parent { width: 100%; justify-content: space-between; }
  .nav-menu { position: static; display: none; width: auto; grid-template-columns: 1fr; padding: 2px 0 8px 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .nav-menu::before { display: none; }
  .nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: grid; }
  .header-cta { display: none; }
  .nav-link { padding: 10px 12px; }
  .menu-toggle { display: block; }
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 39px; }
  .route-map { grid-template-columns: 1fr; }
  .route-map a { min-height: 0; padding: 13px 14px; }
  .route-map a:not(:last-child)::after { content: "↓"; top: auto; right: 15px; bottom: -18px; }
  .band { padding: 48px 0; }
  .curriculum, .path-grid, .comparison, .footer-grid { grid-template-columns: 1fr; }
  .docs-shell { display: block; padding-top: 25px; }
  .docs-mobile-toggle { display: flex; width: 100%; justify-content: space-between; margin: 0 0 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--blue-dark); font-weight: 700; }
  .docs-sidebar { position: static; max-height: none; display: none; margin-bottom: 26px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
  .docs-sidebar.open { display: block; }
  .journey-inner { min-height: 58px; gap: 4px; }
  .journey-label, .journey-arrow { display: none; }
  .journey-step { min-width: 124px; padding: 7px 8px; }
  .api-entry { grid-template-columns: 1fr; gap: 4px; }
  .module-toc-grid, .module-meta, .symbol-list { grid-template-columns: 1fr; }
  .module-section { padding: 18px; }
  .lesson-row { grid-template-columns: 70px 1fr; }
  .lesson-row .lesson-type { grid-column: 2; }
}
@media (max-width:520px) {
  .feature-grid, .source-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 6px; }
  .search-trigger { display: none; }
  .hero h1 { font-size: 34px; }
  .docs-main h1 { font-size: 32px; }
  .docs-main h2 { font-size: 23px; }
  .docs-main table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; } }
