/* Self-hosted Overpass (SIL OFL). No external font requests. */
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/overpass-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/overpass-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/overpass-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/overpass-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Light transit editorial theme. WCAG AA verified text contrast throughout. */
:root {
  --paper: #efefea;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-2: #4a4f58;
  --ink-muted: #666b75;
  --rule: #d5d6cf;
  --blue: #1f3b8f;
  --blue-deep: #182f74;
  --on-blue: #ffffff;
  --yellow: #f4b400;
  --on-yellow: #15171c;
  --rail: #8c9097;
  --badge-bg: #555b66;
  --node: #ffffff;
  --line-edge: #15171c;
  --console: #17191e;
  --console-ink: #ecebe5;
  --console-dim: #9ca0a8;
  --console-track: #3b3f48;
  --font-display: "Overpass", "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-display); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1296px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Accessibility helpers */
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; font-weight: 800; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--blue); text-underline-offset: 3px; }

/* Masthead */
/* Logo: a mark (the B drawn as a bus line) and a two-colour wordmark. Sizes step down on phones. */

/* Hero */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: 48px; align-items: start; }
.thesis { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
h1 { font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 .mark { background: linear-gradient(var(--yellow), var(--yellow)) 0 92% / 100% 0.13em no-repeat; padding-bottom: 0.04em; }
.lede { font-size: 1.2rem; line-height: 1.6; margin: 0; max-width: 32em; }
.lede b { font-weight: 800; }

.card-blue { background: var(--blue); color: var(--on-blue); padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font-weight: 800; letter-spacing: 0.14em; font-size: 13px; text-transform: uppercase; }
.btn-ghost { background: transparent; color: var(--on-blue); border: 2px solid currentColor; font-weight: 800; letter-spacing: 0.1em; font-size: 13px; padding: 5px 12px 3px; cursor: pointer; text-transform: uppercase; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.search { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); border-bottom: 1.5px solid rgba(255,255,255,0.55); padding-bottom: 6px; }
.search .prompt { color: var(--yellow); font-weight: 700; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--on-blue); font: 600 15px var(--font-mono); padding: 4px 0; }
.search input::placeholder { color: rgba(255,255,255,0.78); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--yellow); }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 152px; max-height: 236px; overflow-y: auto; }
.results button { width: 100%; display: grid; grid-template-columns: 14px 52px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; background: none; border: 0; color: var(--on-blue); font-family: var(--font-mono); font-size: 13.5px; text-align: left; padding: 4px 6px; margin-inline: -6px; cursor: pointer; }
.results button:hover, .results button:focus-visible { background: var(--blue-deep); outline: none; }
.results button.is-stop { grid-template-columns: 14px minmax(0, 1fr) auto; }
.results .pr { color: var(--yellow); }
.results .id { font-weight: 700; }
.results .rt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results .ty { color: rgba(255,255,255,0.8); font-size: 12px; }
.results .empty { font-family: var(--font-mono); font-size: 13.5px; color: rgba(255,255,255,0.88); padding: 4px 0; }
.results .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.9); padding: 2px 0 6px; }
.results .hd button { width: auto; display: inline-block; color: var(--yellow); font-weight: 700; padding: 2px 6px; margin: 0 -6px; }
.results .hd span { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.console { background: var(--console); color: var(--console-ink); padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.console .eyebrow { color: var(--console-dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.btn-y { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); font-weight: 800; letter-spacing: 0.1em; font-size: 13px; padding: 5px 10px 3px; cursor: pointer; text-transform: uppercase; flex: none; }
.btn-y:hover { background: rgba(244,180,0,0.12); }
.c-main, .c-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--font-mono); }
.c-main { color: var(--yellow); font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 600; letter-spacing: 0.02em; margin-top: 6px; }
.c-main span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.c-main span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.c-sub { color: var(--console-ink); font-size: 13px; opacity: 0.9; }
.c-bars { display: flex; gap: 4px; margin-top: 14px; }
.c-bars i { flex: 1; height: 5px; background: var(--console-track); transition: background 0.2s; }
.c-bars i.done { background: var(--console-ink); }
.c-bars i.cur { background: var(--yellow); }

/* Map */
.map { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.map-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.map-tools:empty { display: none; }
.tool-group { display: inline-flex; }
.tool-group button { background: transparent; border: 2px solid var(--ink); margin-left: -2px; padding: 6px 12px 4px; font-weight: 700; font-size: 14px; cursor: pointer; min-width: 40px; }
.tool-group button:first-child { margin-left: 0; }
.tool-group button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tool-group button:disabled { opacity: 0.4; cursor: default; }
.tool-group button:not(:disabled):not([aria-pressed="true"]):hover { background: var(--yellow); color: var(--on-yellow); }
.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#map { display: block; width: 100%; min-width: 560px; height: auto; }
#map.zoomed { cursor: grab; touch-action: none; }
#map.dragging { cursor: grabbing; }
#map .gl { fill: none; stroke: var(--rail); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
#map .gl-hit { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; pointer-events: stroke; }
#map .gl-hit:hover + .gl, #map .gl.hot { stroke: var(--ink-2); }
#map .yl-edge { fill: none; stroke: var(--line-edge); stroke-width: 11; stroke-linejoin: round; stroke-linecap: round; }
#map .yl { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
#map .yl-gap { fill: none; stroke: var(--paper); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: butt; pointer-events: none; }
#map .gap-bg { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
#map .gap-t { fill: var(--ink); stroke: none; font-size: 11px; font-weight: 600; }
#map .scale path { fill: none; stroke: var(--ink); stroke-width: 2; }
#map .scale text, #map .north text { fill: var(--ink); font-size: 11px; font-weight: 700; }
#map .north path { fill: var(--ink); stroke: none; }
#map .n { fill: var(--node); stroke: var(--rail); stroke-width: 2.2; cursor: pointer; }
#map .n.y { stroke: var(--ink); stroke-width: 1.8; }
#map .n.big { stroke: var(--ink); stroke-width: 3.6; }
#map .n.jn { stroke: var(--ink); stroke-width: 3.2; }
#map .n.hl, #map circle[data-c]:focus-visible { stroke: var(--blue); stroke-width: 4; outline: none; }
#map .dot { fill: var(--ink); pointer-events: none; }
#map .focus-ring { fill: none; stroke: var(--blue); stroke-width: 3; pointer-events: none; }
#map text { font-family: var(--font-display); paint-order: stroke; stroke: var(--paper); stroke-width: 3.5px; stroke-linejoin: round; }
#map .lbl { fill: var(--ink); font-size: 11.5px; }
#map .lbl-g { fill: var(--ink-2); font-size: 11px; }
#map .lbl-m { fill: var(--ink); font-size: 14px; font-weight: 800; }
#map .tag { fill: var(--ink); }
#map .tag-t { fill: var(--paper); stroke: none; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
#map .tag.end { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.5; }
#map .tag-t.end { fill: var(--on-yellow); }
#map .badge { fill: var(--badge-bg); cursor: pointer; }
#map .badge-t { fill: #ffffff; stroke: none; font-family: var(--font-mono); font-size: 11px; font-weight: 700; pointer-events: none; }
#map .badge-g:hover .badge { fill: var(--ink); }
#map a:focus-visible .badge { stroke: var(--yellow); stroke-width: 3; }
#map .live { fill: var(--ink); stroke: var(--yellow); stroke-width: 2; }
#map .bus { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
#map .bus-ring { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0.5; }

.stop-tip { margin: 0; background: var(--surface); border-left: 5px solid var(--blue); padding: 10px 14px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tip-chip { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 2px 7px 0; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; line-height: 1.5; }
.tip-chip:hover { background: var(--yellow); color: var(--on-yellow); }
.tip-more { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; align-items: center; padding-left: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 12px; }
.sw { display: inline-block; width: 34px; height: 9px; }
.sw.y { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--line-edge); }
.sw.g { background: var(--rail); height: 5px; }
.legend button { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.legend-cta { font-weight: 800; color: var(--blue); }
.caption { font-size: 13.5px; margin: 0; padding-left: 4px; color: var(--ink); max-width: 62em; }
.caption b { font-weight: 800; }

/* Page headers & sections */
.kicker { font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
h2 { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.pagehead { padding-block: 40px 40px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--ink-muted); }
.crumbs a { color: inherit; }
.pagehead h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 18em; }
.pagehead .lede { margin-top: 20px; max-width: 48em; font-size: 1.1rem; }
.pagehead .note { margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 24px; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); }
.facts div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.section { padding-block: 48px 56px; border-top: 1px solid var(--rule); }
.section > .wrap { display: flex; flex-direction: column; gap: 24px; }
.section h2 { max-width: 24em; }
.section .sub { margin: -10px 0 0; color: var(--ink-2); max-width: 64ch; }
.section-map { padding-block: 8px 56px; border-top: 0; }
.section-map .map { max-width: 960px; }

/* Stops & timetables */
.dir-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.dir h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; line-height: 1.25; }
.stops { list-style: none; margin: 0; padding: 0; }
.stop { display: grid; grid-template-columns: 64px 30px minmax(0, 1fr); column-gap: 14px; min-height: 46px; }
.stop .t { font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-align: right; padding-top: 11px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.stop.major .t { color: var(--ink); }
.stop .rail { position: relative; }
.stop .rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 11px; transform: translateX(-50%); background: var(--yellow); box-shadow: inset 2px 0 0 var(--line-edge), inset -2px 0 0 var(--line-edge); }
.stop:first-child .rail::before { top: 20px; }
.stop:last-child .rail::before { bottom: calc(100% - 20px); }
.stop .rail i { position: absolute; left: 50%; top: 20px; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--node); border: 2px solid var(--ink); }
.stop.major .rail i { width: 22px; height: 22px; border-width: 4px; }
.stop.major .rail i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
.stop .info { padding-block: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.stop .nm { font-size: 16px; font-weight: 600; line-height: 1.25; }
.stop.major .nm { font-weight: 800; font-size: 17px; }
.stop .conn { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 2px 6px 0; border: 1.5px solid var(--badge-bg); background: transparent; color: var(--ink); cursor: pointer; line-height: 1.5; text-decoration: none; }
a.chip.blue-chip { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.chip:hover { border-color: var(--ink); }
a.chip.blue-chip:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.chip.more { cursor: default; border-style: dashed; }
.stop:hover .nm { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }

.panel { background: var(--surface); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h3 { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; }
.fares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; margin: 0; }
.fares div { display: flex; flex-direction: column-reverse; gap: 2px; }
.fares dt { font-size: 13px; color: var(--ink-2); }
.fares dd { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.fares dd small { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.fine { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

.tt-block h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; }
.tt-block + .tt-block { margin-top: 32px; }
.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tt-grid .panel { padding: 18px 18px 20px; gap: 0; }
.tt-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tt-table caption { text-align: left; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 10px; }
.tt-table th { width: 34px; text-align: left; font-weight: 700; padding: 5px 10px 3px 0; vertical-align: top; border-top: 1px solid var(--rule); }
.tt-table td { padding: 5px 0 3px; border-top: 1px solid var(--rule); }
.tt-table td span { display: inline-block; margin-right: 10px; }
.tt-table .past { color: var(--ink-muted); }
.tt-table .next { background: var(--yellow); color: var(--on-yellow); font-weight: 700; padding: 0 4px; margin-left: -4px; margin-right: 6px; }
.tt-none { color: var(--ink-2); font-size: 15px; margin: 0; }

/* Lists, cards, FAQ, editorial prose */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.two-col > div { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.two-col h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.line-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 32px; }
.line-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 0 7px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.line-row .no { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.line-row .rt { min-width: 0; overflow-wrap: anywhere; }
.line-row .sh { display: block; color: var(--ink-2); font-size: 13px; }
.line-row:hover .rt { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card-link { background: var(--surface); padding: 18px 20px 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-link .n { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.card-link strong { font-size: 1.05rem; font-weight: 800; }
.card-link span:last-child { color: var(--ink-2); font-size: 14px; }
.card-link:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 5px 12px 3px; }
.jump a:hover { background: var(--ink); color: var(--paper); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.steps p { margin: 0; color: var(--ink-2); }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 52rem; }
.faq-item { background: var(--surface); border-left: 4px solid var(--blue); padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 800; font-size: 1rem; }
.faq-item p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; }

.prose { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; font-weight: 800; letter-spacing: 0; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose .line-list { padding-left: 0; margin: 14px 0 22px; }
.prose .rule { border: 0; border-top: 1px solid var(--rule); margin: 36px 0; }
.updated { color: var(--ink-2); font-size: 14px; }
.profile { background: var(--blue); color: var(--on-blue); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 6px; max-width: 46rem; margin-bottom: 32px; }
.profile .nm { font-size: 1.6rem; font-weight: 900; line-height: 1.15; }
.profile .role { font-weight: 600; }
.profile .em { font-family: var(--font-mono); font-size: 15px; margin-top: 8px; overflow-wrap: anywhere; }
.profile a { color: var(--yellow); }
.note { background: var(--surface); padding: 16px 20px; max-width: 48rem; border-left: 6px solid var(--yellow); font-size: 1rem; margin: 0 0 14px; }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 14px; padding: 8px 14px 6px; cursor: pointer; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.filter-host { margin-top: 28px; max-width: 560px; }
.filter-host .card-blue { gap: 12px; }

/* Optional CLS-safe container for manual AdSense units */
.ad-slot { margin-block: 24px; min-height: 100px; text-align: center; }

/* Footer */
/* Footer: deep blue, like the header, in four columns */

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .dir-cols, .two-col { grid-template-columns: minmax(0, 1fr); }
  .tt-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .hero { padding-block: 36px 48px; }
  .pagehead { padding-block: 28px 28px; }
  .section { padding-block: 36px 44px; }
  .stop { grid-template-columns: 48px 26px minmax(0, 1fr); column-gap: 10px; }
  .fares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .results button { grid-template-columns: 14px 44px minmax(0, 1fr); }
  .results .ty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .c-bars i { transition: none; }
}

/* ---------- Live: buses on their way to a stop ---------- */
.live-search { max-width: 640px; }
.lv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.lv-head h2 { margin: 0; }
.lv-status { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.lv-note { margin: 0; padding: 14px 18px; background: var(--surface); max-width: 60ch; }
.lv-note.warn { background: var(--alert); border-left: 6px solid var(--yellow); }
.lv-sub { margin: 28px 0 8px; font-size: 1.1rem; font-weight: 800; }
.lv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 16px; }
.lv-card { background: var(--surface); padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lv-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.lv-line { font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem; line-height: 1; background: var(--ink); color: var(--yellow); padding: 6px 9px 4px; min-width: 44px; text-align: center; }
.lv-line.sm { font-size: 14px; padding: 4px 7px 2px; min-width: 38px; }
.lv-dest { font-weight: 800; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.lv-meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.lv-eta { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.lv-eta strong { font-family: var(--font-mono); font-size: 1.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-eta span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.lv-pos { margin: 0; font-size: 14.5px; }
.lv-strip { position: relative; }
.lv-strip ol { list-style: none; margin: 0; padding: 0; }
.lv-strip li { height: var(--row); display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; position: relative; font-size: 14.5px; }
.lv-strip li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-strip li::before { content: ""; position: absolute; left: 22px; width: 8px; top: 0; bottom: 0; background: var(--yellow); box-shadow: inset 2px 0 0 var(--line-edge), inset -2px 0 0 var(--line-edge); }
.lv-strip li.lv-far { color: var(--ink-2); font-size: 13px; }
.lv-strip li.lv-far::before { background: repeating-linear-gradient(var(--yellow) 0 6px, transparent 6px 11px); box-shadow: none; }
.lv-strip li i { justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--node); border: 2px solid var(--ink); position: relative; z-index: 1; margin-right: 0; }
.lv-strip li.lv-far i { visibility: hidden; }
.lv-strip li.is-target { font-weight: 800; }
.lv-strip li.is-target i { width: 22px; height: 22px; border-width: 4px; border-color: var(--blue); }
.lv-strip li.is-target i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
.lv-bus { position: absolute; left: 26px; transform: translate(-50%, -50%); z-index: 2; background: var(--ink); color: var(--yellow); font-family: var(--font-mono); font-weight: 700; font-size: 11px; line-height: 1; padding: 5px 6px 3px; border: 2px solid var(--paper); min-width: 34px; text-align: center; box-shadow: 0 0 0 2px var(--ink); }
.lv-sched { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.lv-sched li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.lv-sched .rt { min-width: 0; overflow-wrap: anywhere; }
.lv-sched .tm { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .lv-bus { transition: top 0.8s linear; } }
.jump-btn { background: transparent; border: 2px solid var(--ink); color: var(--ink); font: 700 14px var(--font-display); padding: 5px 12px 3px; cursor: pointer; }
.jump-btn:hover { background: var(--ink); color: var(--paper); }
#live-app { display: flex; flex-direction: column; gap: 20px; }
.live-search .results { min-height: 0; }
.live-search .results:empty { display: none; }

/* ---------- Search button in the header and the search modal ---------- */
html.modal-open { overflow: hidden; }
.finder { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 680px); margin: 9vh auto auto; box-shadow: 0 28px 70px rgba(8, 14, 40, 0.4); overflow: hidden; }
.finder[open] { display: flex; flex-direction: column; }
.finder::backdrop { background: rgba(15, 22, 54, 0.62); backdrop-filter: blur(3px); }
.finder-head { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 2px solid var(--ink); color: var(--ink-2); }
.finder-head:focus-within { border-bottom-color: var(--blue); color: var(--blue); }
.finder-head input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 18px var(--font-display); padding: 20px 0 18px; }
.finder-head input:focus { outline: none; }
.finder-head input::placeholder { color: var(--ink-2); font-weight: 400; }
.finder-close { background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2); font: 700 12px var(--font-mono); padding: 6px 9px 4px; cursor: pointer; }
.finder-close:hover { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.finder-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.finder-list button { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-align: left; padding: 13px 20px; cursor: pointer; font: 400 15.5px var(--font-display); }
.finder-list button:hover, .finder-list button:focus-visible { background: var(--paper); outline: none; box-shadow: inset 4px 0 0 var(--yellow); }
.finder-list .pr { display: none; }
.finder-list .id { font-family: var(--font-mono); font-weight: 700; font-size: 14px; background: var(--ink); color: var(--yellow); padding: 5px 0 3px; text-align: center; }
.finder-list .rt { min-width: 0; overflow-wrap: anywhere; }
.finder-list .ty { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.finder-list button.is-stop { grid-template-columns: 56px minmax(0, 1fr) auto; }
.finder-list button.is-stop .pr { display: block; text-align: center; color: var(--blue); font-size: 18px; }
.finder-list .empty { padding: 22px 20px; color: var(--ink-2); }
.finder-list .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.finder-list .hd button { width: auto; display: inline-block; padding: 2px 0; border: 0; color: var(--blue); font-weight: 800; background: none; box-shadow: none; }
.finder-list .hd span { text-align: right; min-width: 0; font-weight: 600; }
.finder-hint { margin: 0; padding: 10px 20px; font: 600 12px var(--font-mono); color: var(--ink-2); border-top: 1px solid var(--rule); background: var(--paper); }
@media (max-width: 560px) {
  .finder { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding-top: env(safe-area-inset-top, 0px); }
  .finder-hint { display: none; }
  .finder-list button { padding: 15px 16px; grid-template-columns: 50px minmax(0, 1fr) auto; }
  .finder-head { padding-left: 16px; }
}


/* ---------- Site chrome: header ---------- */
:root { --navy: #122a66; --navy-deep: #0c1d4a; }
html { scroll-padding-top: 84px; }
.top { position: sticky; top: 0; z-index: 60; background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: box-shadow 0.2s ease; }
.top.is-scrolled { box-shadow: 0 8px 28px rgba(6, 14, 42, 0.28); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 44px; margin-right: 20px; border-radius: 0; --wm-a: #fff; --wm-b: var(--yellow); }
.logo-mark { width: 34px; height: 34px; flex: none; display: block; }
.logo-mark.bare { width: auto; height: 30px; }
.wm { font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: -0.015em; white-space: nowrap; }
.wm-a { color: var(--wm-a); }
.wm-b { color: var(--wm-b); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 12px 7px; border-radius: 0; white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="page"], .nav a.is-section { color: #fff; }
.nav a[aria-current="page"]::after, .nav a.is-section::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -16px; height: 3px; background: var(--yellow); }
.live-dot { width: 8px; height: 8px; background: var(--yellow); flex: none; }
.nav .live-dot { margin-top: -2px; }
.search-trigger { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; width: 250px; height: 42px; padding: 0 7px 0 13px; border-radius: 0; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.72); font: 500 15px var(--font-display); text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.search-trigger:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.search-trigger svg { flex: none; }
.search-trigger .st-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger kbd { font: 700 12px var(--font-mono); line-height: 1; padding: 5px 7px 3px; border-radius: 0; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.85); }
.lang-sw { display: inline-flex; align-items: center; flex: none; height: 42px; padding: 3px; border-radius: 0; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); gap: 2px; }
.lang-sw a, .lang-sw button, .lang-sw .lang-cur { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 100%; padding: 2px 7px 0; border-radius: 0; border: 0; background: transparent; color: rgba(255, 255, 255, 0.78); font: 700 12px var(--font-mono); line-height: 1; letter-spacing: 0.03em; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.lang-sw a:hover, .lang-sw button:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lang-sw .lang-cur, .lang-sw button.is-active { background: var(--yellow); color: var(--on-yellow); cursor: default; }
.nav-lang { display: none; }  /* copy of the language switch inside the mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; flex: none; padding: 0; border-radius: 0; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.09); color: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.top.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.top.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.top.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1160px) { .search-trigger { width: 185px; } .logo { margin-right: 8px; } .nav a { padding: 9px 9px 7px; } }
@media (max-width: 960px) {
  .top .wrap { min-height: 62px; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-mark.bare { width: auto; height: 27px; }
  .wm { font-size: 20px; }
  .menu-btn { display: inline-flex; }
  .search-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .search-trigger .st-text, .search-trigger kbd { display: none; }
  .lang-sw { height: 44px; }
  html.js .top .wrap > .lang-sw { display: none; }  /* on mobile the switch lives in the menu */
  html.js .top.menu-open .nav .nav-lang { display: flex; padding: 14px 6px 2px; }
  html.js .top.menu-open .nav .nav-lang a { font-size: 12px; padding: 2px 7px 0; border-bottom: 0; }
  html.js .nav { display: none; }
  html.js .top.menu-open .nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 6px max(16px, env(safe-area-inset-left, 0px)) 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 22px 34px rgba(6, 14, 42, 0.38); }
  html.js .top.menu-open .nav a { font-size: 17px; padding: 15px 6px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  html.js .top.menu-open .nav a:last-child { border-bottom: 0; }
  html.js .top.menu-open .nav a::after { display: none; }
  html.js .top.menu-open .nav a[aria-current="page"], html.js .top.menu-open .nav a.is-section { color: var(--yellow); }
  html:not(.js) .top .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 8px; }
  html:not(.js) .nav a::after { display: none; }
}
@media (max-width: 360px) { .wm { font-size: 18px; } .logo-mark { width: 28px; height: 28px; } .logo-mark.bare { width: auto; height: 25px; } .logo { gap: 8px; } }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 2s ease-in-out infinite; }
  @keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}

/* ---------- Site chrome: footer ---------- */
.site-foot { background: var(--navy-deep); color: rgba(255, 255, 255, 0.7); font-size: 15px; margin-top: 32px; padding: 64px 0 0; }
.site-foot a { color: rgba(255, 255, 255, 0.82); text-decoration: none; transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.site-foot a:hover, .site-foot .foot-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 48px; padding-bottom: 52px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foot-brand .logo { margin-right: 0; }
.foot-tag { margin: 0; max-width: 36ch; line-height: 1.6; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-h { margin: 0 0 16px; font-size: 13px; font-weight: 700; color: #fff; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-foot .foot-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: rgba(255, 255, 255, 0.82); cursor: pointer; text-align: left; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.foot-bottom p { margin: 0; }
.foot-data { flex: 1 1 420px; line-height: 1.55; }
.site-foot .foot-data a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.site-foot .to-top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 0; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; }
.site-foot .to-top:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.32); }
@media (max-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 560px) { .site-foot { padding-top: 48px; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } .foot-col:last-child { grid-column: 1 / -1; } .site-foot .to-top { margin-left: 0; } }

/* ---------- Stop links and stop pages ---------- */
.stop a.nm { color: var(--ink); text-decoration: none; }
.stop a.nm:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
a.jump-btn { text-decoration: none; display: inline-block; }
.tip-live { font-weight: 700; white-space: nowrap; }
.results .hd .hd-live, .finder-list .hd .hd-live { color: var(--yellow); font-weight: 700; }
.finder-list .hd .hd-live { color: var(--blue); }
.stop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.stop-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: var(--surface); padding: 14px 16px; color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color 0.15s, box-shadow 0.15s; }
.stop-card .live-dot { grid-row: 1 / span 2; }
.stop-card strong { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.stop-card span:last-child { grid-column: 2; font-size: 13px; color: var(--ink-2); }
.stop-card:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(18, 42, 102, 0.12); }
.stop-card:not(:has(.live-dot)) { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.stop-dirs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.stop-dir-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.stop-dir-item .no { font-family: var(--font-mono); font-weight: 700; font-size: 14px; line-height: 1; padding: 7px 6px 5px; background: var(--ink); color: var(--yellow); text-align: center; text-decoration: none; }
.stop-dir-item .no.blue-no { background: var(--blue); color: #fff; }
.sdi-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sdi-head a { color: var(--ink); text-decoration: none; font-size: 15.5px; overflow-wrap: anywhere; }
.sdi-head a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
.sdi-step { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.sdi-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stop-dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 28px; }
.stop-dir-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 9px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.stop-dir-row strong { font-size: 15.5px; font-weight: 800; }
.stop-dir-row span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.stop-dir-row:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
.nb-dist { font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.cnt { font-family: var(--font-mono); font-size: 0.7em; font-weight: 600; color: var(--ink-2); }
