:root {
  color-scheme: dark;
  --ink: #eaf7f2;
  --muted: #9bb5ac;
  --paper: #071310;
  --panel: #0b1d19;
  --line: rgba(153, 225, 202, .2);
  --mint: #75e6c4;
  --amber: #f5bd67;
  --blue: #87bfff;
  --violet: #b9a5ff;
  --slate: #657970;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; background: linear-gradient(rgba(117,230,196,.025) 1px, transparent 1px), linear-gradient(90deg,rgba(117,230,196,.025) 1px,transparent 1px), var(--paper); background-size: 36px 36px; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.topbar { position: sticky; z-index: 20; top: 0; min-height: 74px; display: flex; align-items: center; gap: 24px; padding: 0 clamp(20px, 4vw, 60px); border-bottom: 1px solid var(--line); background: rgba(7,19,16,.94); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand img { width: 32px; height: 32px; }
.brand small { margin-left: 4px; color: var(--amber); font: 700 .68rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; color: var(--muted); font-size: .9rem; }
.topbar nav a { padding: 10px 0; text-decoration: none; }
.topbar nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--mint); }
.enhanced-only { display: none; }
.search-ready .enhanced-only { display: inline-block; }
.search-trigger { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font: 700 .7rem/1 ui-monospace, monospace; }
.preview-ribbon { position: sticky; z-index: 18; top: 74px; display: flex; gap: 16px; padding: 10px clamp(20px, 4vw, 60px); border-bottom: 1px solid rgba(185,165,255,.38); background: #171b29; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.preview-ribbon strong { flex: 0 0 auto; color: var(--violet); font: 800 .68rem/1.6 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); width: min(1380px, 100%); margin: 0 auto; }
.docs-nav { position: sticky; top: 116px; align-self: start; height: calc(100vh - 116px); padding: 42px 24px; border-right: 1px solid var(--line); }
.nav-label, .kicker, .station { color: var(--mint); font: 800 .68rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.docs-nav a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 12px 8px; color: var(--muted); border-bottom: 1px solid rgba(153,225,202,.09); text-decoration: none; font-size: .88rem; }
.docs-nav a span { color: var(--slate); font: 700 .68rem/1.7 ui-monospace, monospace; }
.docs-nav a:hover, .docs-nav a[aria-current="page"] { color: var(--ink); }
main { min-width: 0; }
.hero, .doc-section { padding: clamp(64px, 8vw, 112px) clamp(28px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.hero { min-height: 570px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 86% 20%, rgba(245,189,103,.13), transparent 24rem); }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 950px; font-size: clamp(3.1rem, 7.8vw, 7rem); line-height: .92; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: .98; }
h3 { margin: 0; font-size: 1.12rem; }
.lede { max-width: 760px; margin: 32px 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.72; }
.coordinate-strip { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 16px; }
.coordinate-strip span { padding: 9px 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font: 700 .68rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.evidence-stamp { max-width: 820px; margin: 22px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.evidence-stamp strong { color: var(--ink); }
.section-heading { display: grid; grid-template-columns: 120px minmax(240px, 1fr) minmax(250px, .7fr); gap: 28px; align-items: end; margin-bottom: 38px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; color: var(--muted); font-size: .78rem; }
.legend span { display: flex; align-items: center; gap: 8px; }
.status { width: 9px; height: 9px; border-radius: 50%; }
.available { background: var(--mint); }.optional { background: var(--blue); }.preview { background: var(--violet); }.planned { background: var(--slate); }
.matrix { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--line); }
.matrix article { min-height: 250px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11,29,25,.72); }
.matrix article:nth-child(2n) { border-right: 0; }.matrix article:nth-last-child(-n+2) { border-bottom: 0; }
.matrix h3 { margin: 52px 0 10px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.matrix p, .routes p, .safety-grid p { color: var(--muted); line-height: 1.6; }
.matrix a, .routes a, .safety-grid a { color: var(--mint); font-weight: 750; text-decoration: none; }
.tag { padding: 5px 8px; border: 1px solid currentColor; font: 750 .64rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.available-tag { color: var(--mint); }.optional-tag { color: var(--blue); }.preview-tag { color: var(--violet); }.planned-tag { color: var(--muted); }
.table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); }
.table-wrap:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.driver-table { width: 100%; min-width: 880px; border-collapse: collapse; background: rgba(11,29,25,.72); font-size: .84rem; line-height: 1.5; }
.driver-table caption { padding: 14px 18px; color: var(--muted); text-align: left; }
.driver-table th, .driver-table td { padding: 16px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.driver-table thead th { color: var(--amber); font: 800 .66rem/1.2 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.driver-table tbody th { color: var(--ink); font-weight: 800; }
.driver-table td { color: var(--muted); }
.routes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.routes li { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.route-number { color: var(--amber); font: 500 2.3rem/1 Georgia, serif; }
.routes h3 { font-size: 1.35rem; }
.notice { padding: clamp(26px, 5vw, 54px); border: 1px solid rgba(245,189,103,.55); background: linear-gradient(120deg, rgba(245,189,103,.1), rgba(11,29,25,.7)); }
.notice strong { display: block; max-width: 760px; font: 500 clamp(1.8rem, 3.8vw, 3.4rem)/1.05 Georgia, serif; }
.notice p { max-width: 790px; color: var(--muted); line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 17px; border: 1px solid var(--line); border-radius: 3px; font-weight: 750; font-size: .9rem; text-decoration: none; }
.button.primary { background: var(--mint); border-color: var(--mint); color: var(--paper); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); }
.safety-grid > div { padding: 26px; background: var(--panel); }
.manuals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.manuals a { display: flex; flex-direction: column; gap: 9px; min-height: 140px; padding: 25px; background: var(--panel); text-decoration: none; }
.manuals a:hover { background: #102720; }
.manuals span { color: var(--muted); line-height: 1.5; }
.limits-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.limits-list li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.limits-list strong { color: var(--ink); }
code { color: var(--amber); }
dialog { width: min(760px, calc(100% - 32px)); max-height: min(720px, calc(100vh - 32px)); padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
dialog::backdrop { background: rgba(0,7,5,.8); backdrop-filter: blur(4px); }
.search-panel { padding: clamp(22px, 5vw, 44px); }
.search-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.search-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.search-close { padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.search-panel label { display: block; margin: 30px 0 8px; color: var(--muted); font-size: .82rem; }
.search-panel input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.search-count { color: var(--muted); font-size: .78rem; }
.search-results { max-height: 350px; margin: 0; padding: 0; overflow-y: auto; list-style: none; border-top: 1px solid var(--line); }
.search-results a { display: flex; flex-direction: column; gap: 5px; padding: 15px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-results a:hover { background: rgba(117,230,196,.06); }
.search-results span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px clamp(20px,4vw,60px); color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 190px minmax(0,1fr); }
  .docs-nav { padding-inline: 14px; }
  .section-heading { grid-template-columns: 1fr; }
  .matrix, .manuals { grid-template-columns: 1fr; }
  .matrix article, .matrix article:nth-child(2n), .matrix article:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .matrix article:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 172px; }
  .topbar { min-height: 68px; padding: 0 18px; }
  .brand small { display: none; }
  .topbar nav { gap: 13px; font-size: .78rem; }
  .topbar nav a:last-child { display: none; }
  .search-trigger { padding-inline: 9px; font-size: 0; }
  .search-trigger kbd { font-size: .7rem; }
  .preview-ribbon { top: 68px; gap: 8px; padding-block: 8px; }
  .preview-ribbon span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .docs-layout { display: block; }
  .docs-nav { top: 124px; z-index: 15; display: flex; gap: 4px; width: 100%; height: auto; overflow-x: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(7,19,16,.97); scrollbar-width: thin; }
  .docs-nav .nav-label { display: none; }
  .docs-nav a { flex: 0 0 auto; display: block; padding: 9px 10px; border: 1px solid var(--line); }
  .docs-nav a span { margin-right: 5px; }
  .hero, .doc-section { padding: 58px 20px; }
  .hero { min-height: 480px; }
  .matrix article { min-height: auto; }
  .matrix h3 { margin-top: 36px; }
  .safety-grid { grid-template-columns: 1fr; }
  footer { display: block; }
  footer span { display: block; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
