/* Ride the Line. Transit-system design: enamel navy signs, white tile ground, platform-edge yellow, one colour per line. */
:root {
  --navy: #0c2340;
  --navy-2: #163a63;
  --navy-3: #25507f;
  --tile: #eef1f3;
  --tile-line: #dfe5e9;
  --paper: #ffffff;
  --ink: #111a24;
  --muted: #46546a;
  --rule: #c5ced6;
  --yellow: #f6c627;
  --yellow-ink: #5c4500;
  --pvd: #b8371f;
  --frk: #126e7a;
  --trunk: #0c2340;
  --line: var(--trunk);
  --sign: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --semi: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; font-size: 109.375%; }
body {
  margin: 0; color: var(--ink); font-family: var(--text); font-size: 1rem; line-height: 1.6;
  background-color: var(--tile);
  background-image: linear-gradient(var(--tile-line) 1px, transparent 1px), linear-gradient(90deg, var(--tile-line) 1px, transparent 1px);
  background-size: 56px 56px;
  font-variant-numeric: lining-nums;
}
table, .board, .readout, .card, .strap, .zone, .teaser .big { font-variant-numeric: lining-nums tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0b4a8a; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 12px 16px; font-weight: 700; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.num { font-family: var(--semi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- masthead ---------- */
.mast { background: var(--navy); color: #fff; border-bottom: 6px solid var(--yellow); }
.mast-in { max-width: 1480px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--sign); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand svg { flex: none; }
.mast nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.mast nav a { color: #fff; font-family: var(--semi); font-weight: 600; font-size: 1rem; letter-spacing: .02em; text-decoration: none; padding: 10px 2px; border-bottom: 2px solid transparent; }
.mast nav a:hover { border-bottom-color: var(--yellow); }

/* ---------- hero: South Station ---------- */
.hero { background: var(--navy); color: #fff; }
.hero-in { max-width: 1480px; margin: 0 auto; padding: 34px 28px 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: stretch; }
.crumbs { font-family: var(--semi); font-size: .95rem; color: #c8d6e6; margin-bottom: 16px; }
.crumbs a { color: #c8d6e6; }
.eyebrow { font-family: var(--sign); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; font-size: 1.05rem; color: var(--yellow); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow .dot { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--yellow); }
h1 { font-family: var(--sign); font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: .98; letter-spacing: .005em; text-transform: uppercase; max-width: 15ch; text-wrap: balance; }
.dek { font-size: 1.2rem; line-height: 1.5; max-width: 36rem; margin: 22px 0 0; color: #e6edf5; }
.hero-meta { font-family: var(--semi); font-size: .98rem; color: #c8d6e6; margin: 18px 0 0; }
.hero-fig { margin: 0; display: flex; flex-direction: column; }
.hero-fig img { width: 100%; flex: 1 1 auto; min-height: 240px; height: 100%; max-height: 470px; object-fit: cover; object-position: 50% 38%; border: 2px solid #fff; }
.hero-fig figcaption { font-size: .82rem; color: #c8d6e6; padding: 8px 0 0; line-height: 1.4; }
.teaser { max-width: 1480px; margin: 28px auto 0; padding: 0 28px; }
.teaser-in { background: var(--yellow); color: var(--ink); display: grid; grid-template-columns: auto 1fr auto; gap: 8px 28px; align-items: center; padding: 16px 22px; }
.teaser .big { font-family: var(--sign); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; white-space: nowrap; }
.teaser .big small { font-size: .5em; letter-spacing: .06em; font-weight: 600; }
.teaser p { margin: 0; font-size: 1rem; line-height: 1.4; }
.teaser a { font-family: var(--sign); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; color: var(--navy); background: #fff; padding: 12px 16px; text-decoration: none; border: 2px solid var(--navy); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.teaser a:hover { background: var(--navy); color: #fff; }
.hero-foot { height: 34px; }

/* ---------- layout: rail (map + readout) and route ---------- */
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 0 44px; align-items: start; }
.rail { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 18px 0; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.readout { background: var(--navy); color: #fff; border-left: 8px solid var(--line); padding: 12px 16px 13px; }
.readout .lab { font-family: var(--semi); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #c8d6e6; display: block; }
.readout .now { font-family: var(--sign); font-weight: 700; font-size: 1.9rem; line-height: 1.05; text-transform: uppercase; display: block; margin: 2px 0 8px; }
.readout dl { margin: 0; display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 0 12px; border-top: 1px solid var(--navy-3); padding-top: 8px; }
.readout dt { font-family: var(--semi); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #c8d6e6; }
.readout dd { margin: 0; font-family: var(--sign); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--yellow); }
.readout dd small { font-size: .62em; color: #fff; font-weight: 500; letter-spacing: .03em; }
.mapfig { margin: 0; background: var(--paper); border: 2px solid var(--navy); flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
.mapfig svg { width: 100%; flex: 0 1 auto; min-height: 0; display: block; padding: 4px 0; }
.mapfig figcaption { font-size: .8rem; line-height: 1.35; color: var(--muted); padding: 6px 12px 9px; border-top: 1px solid var(--rule); }
.mapfig figcaption a { color: var(--muted); }
.map text { font-family: var(--semi); font-size: 13.5px; fill: var(--ink); }
.map .tk { font-size: 11.5px; fill: var(--muted); }
.map .hd { font-family: var(--sign); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.map a text { text-decoration: none; }
.map a:hover text, .map a:focus text { text-decoration: underline; }
.map a:focus { outline: none; }
.map a:focus-visible .hit { stroke: var(--navy); stroke-width: 2; fill: var(--yellow); fill-opacity: .35; }
.map .hit { fill: transparent; }
.map .st { fill: #fff; stroke-width: 3.5; }
.map .on text { font-weight: 700; }
.map .on .st { fill: var(--yellow); }
.map .big text { font-weight: 700; font-size: 15px; }
#train { transition: opacity .25s; }
.js #train.hide { opacity: 0; }

.railx { display: none; }
.ladder { background: var(--paper); border: 2px solid var(--navy); font-size: .95rem; }
.ladder th, .ladder td { padding: 5px 12px; }
.ladder tbody th { position: static; box-shadow: none; text-align: left; }
.ladder thead th:first-child { text-align: left; }
.ladder tr.cur th, .ladder tr.cur td { background: var(--yellow) !important; font-weight: 600; }
.railbtn { font-family: var(--sign); font-weight: 700; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: var(--yellow); color: var(--ink); border: 2px solid var(--navy); padding: 10px 14px; text-align: center; }
.railbtn:hover { background: #fff; }
@media (min-height: 1080px) and (min-width: 901px) { .railx { display: grid; gap: 12px; } }
.route { background: var(--paper); border-left: 2px solid var(--navy); border-right: 2px solid var(--navy); min-width: 0; padding: 0 0 8px; }

/* ---------- the inline spine ---------- */
.stop, .passing, .zone, .linehead, .tool, .plain { position: relative; padding-left: var(--gutter); padding-right: 40px; }
.stop::before, .passing::before, .zone::before, .linehead::before { content: ""; position: absolute; left: calc(var(--gutter) / 2 - 4px); top: 0; bottom: 0; width: 8px; background: var(--line); }
.stop.first::before { top: 58px; }
.stop.terminus::before { bottom: auto; height: 58px; }
.pvd { --line: var(--pvd); }
.frk { --line: var(--frk); }
.stop { padding-top: 34px; padding-bottom: 30px; }
.roundel { position: absolute; left: calc(var(--gutter) / 2 - 17px); top: 44px; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 7px solid var(--line); }
.stop.minor .roundel { width: 24px; height: 24px; left: calc(var(--gutter) / 2 - 12px); top: 46px; border-width: 5px; }
.stop.nostation .roundel { border-radius: 0; border-style: dashed; border-width: 3px; background: var(--tile); }
.stop.nostation::before { background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 16px); }

.plate { background: var(--navy); color: #fff; border-top: 7px solid var(--line); padding: 12px 18px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; }
.plate .where { font-family: var(--semi); font-weight: 500; font-size: .98rem; letter-spacing: .05em; text-transform: uppercase; color: #d6e1ee; grid-column: 1; }
.plate h2 { font-family: var(--sign); font-weight: 700; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; grid-column: 1; }
.minor .plate h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.plate .zr { grid-column: 2; grid-row: 1 / span 2; text-align: center; font-family: var(--sign); line-height: 1; border: 3px solid #fff; border-radius: 50%; width: 74px; height: 74px; display: grid; place-content: center; }
.plate .zr b { font-size: 2rem; font-weight: 700; display: block; }
.plate .zr span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.minor .plate .zr { width: 58px; height: 58px; }
.minor .plate .zr b { font-size: 1.5rem; }
.strap { display: flex; flex-wrap: wrap; gap: 2px 26px; background: var(--yellow); color: var(--ink); padding: 9px 18px; font-family: var(--sign); font-weight: 600; font-size: 1.28rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; }
.strap b { font-weight: 700; font-size: 1.12em; }

.body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 344px); gap: 26px 40px; margin-top: 24px; align-items: start; }
.body > .prose { max-width: 37rem; min-width: 0; }
.minor .body { margin-top: 18px; }
.lede { font-size: 1.14rem; line-height: 1.5; }
h3 { font-family: var(--sign); font-weight: 700; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; margin: 26px 0 8px; display: flex; align-items: center; gap: 10px; }
h3::before { content: ""; width: 18px; height: 6px; background: var(--line); flex: none; }
.prose > h3:first-child { margin-top: 0; }
h4 { font-family: var(--semi); font-weight: 600; font-size: 1.12rem; margin: 20px 0 4px; }
ol.five { list-style: none; counter-reset: f; margin: 0 0 1em; padding: 0; }
ol.five li { counter-increment: f; position: relative; padding: 9px 0 9px 44px; border-top: 1px solid var(--rule); }
ol.five li:last-child { border-bottom: 1px solid var(--rule); }
ol.five li::before { content: counter(f); position: absolute; left: 0; top: 8px; width: 30px; height: 30px; border: 2px solid var(--navy); border-radius: 50%; font-family: var(--sign); font-weight: 700; font-size: 1.15rem; display: grid; place-content: center; }
.catch { border-left: 8px solid var(--yellow); background: #fff8dc; padding: 14px 18px 2px; margin: 20px 0 6px; }
.catch h3 { margin: 0 0 6px; }
.catch h3::before { background: var(--ink); }
.asof { font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* departure-board panel */
.board { background: var(--navy); color: #fff; padding: 0 0 4px; min-width: 0; }
.board h3 { color: var(--yellow); margin: 0; padding: 11px 16px 9px; font-size: 1.15rem; border-bottom: 2px solid var(--navy-3); }
.board h3::before { background: var(--yellow); }
.board dl { margin: 0; }
.board .r { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 8px 16px; border-bottom: 1px solid var(--navy-3); align-items: baseline; }
.board dt { font-family: var(--semi); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; color: #cfdbe8; }
.board dd { margin: 0; font-family: var(--sign); font-weight: 600; font-size: 1.42rem; line-height: 1.15; text-align: right; color: #fff; }
.board dd.y { color: var(--yellow); }
.board .sub { grid-column: 1 / -1; font-family: var(--text); font-size: .86rem; line-height: 1.4; color: #cfdbe8; text-align: left; font-weight: 400; }
.board .foot { font-size: .8rem; line-height: 1.4; color: #cfdbe8; padding: 9px 16px 8px; margin: 0; }

figure.ph { margin: 22px 0 0; }
figure.ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--navy); }
figure.ph.wide img { aspect-ratio: 2 / 1; }
figure.ph figcaption { font-size: .84rem; line-height: 1.4; color: var(--muted); padding-top: 6px; }
.side { min-width: 0; }

details.src { margin: 18px 0 0; border-top: 1px solid var(--rule); font-size: .9rem; }
details.src summary { cursor: pointer; padding: 10px 0; font-family: var(--semi); font-weight: 600; letter-spacing: .02em; color: var(--muted); min-height: 44px; display: flex; align-items: center; gap: 8px; }
details.src summary::marker { content: ""; }
details.src summary::before { content: "+"; font-family: var(--sign); font-weight: 700; width: 22px; height: 22px; border: 2px solid var(--muted); display: grid; place-content: center; line-height: 1; flex: none; }
details.src[open] summary::before { content: "\2212"; }
details.src ul { margin: 0 0 10px; padding-left: 1.1em; }
details.src li { margin: 0 0 6px; line-height: 1.45; overflow-wrap: anywhere; }

.reserve { border: 2px dashed var(--navy); background: repeating-linear-gradient(135deg, #fff 0 14px, #f4f6f8 14px 28px); padding: 14px 18px; margin: 22px 0 6px; }
.reserve .tag { font-family: var(--sign); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1.05rem; display: inline-block; background: var(--navy); color: #fff; padding: 3px 10px; margin-bottom: 8px; }
.reserve p { margin: 0 0 4px; font-size: .98rem; }
blockquote.dq { margin: 22px 0 18px; padding: 0 0 0 20px; border-left: 8px solid var(--navy); }
blockquote.dq p { font-family: var(--semi); font-weight: 500; font-size: 1.4rem; line-height: 1.3; margin: 0 0 6px; }
blockquote.dq footer { font-size: .88rem; color: var(--muted); }

/* passing stations and zone markers */
.passing { padding-top: 6px; padding-bottom: 6px; }
.passing ul { list-style: none; margin: 0; padding: 0; }
.passing li { position: relative; padding: 5px 0; font-family: var(--semi); font-size: 1rem; color: var(--muted); }
.passing li::before { content: ""; position: absolute; left: calc(var(--gutter) / -2 - 9px); top: 50%; width: 18px; height: 4px; background: var(--line); transform: translateY(-50%); }
.passing li b { color: var(--ink); font-weight: 600; }
.zone { padding-top: 0; padding-bottom: 0; }
.zone p { margin: 0; padding: 7px 14px; border-top: 2px dashed var(--navy); font-family: var(--sign); font-weight: 600; font-size: 1.12rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); display: flex; flex-wrap: wrap; gap: 0 18px; background: var(--tile); }
.zone p b { font-weight: 700; }
.linehead { padding-top: 40px; padding-bottom: 8px; }
.linehead .tag { font-family: var(--sign); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: 1.05rem; color: #fff; background: var(--line); padding: 4px 12px; display: inline-block; }
.linehead h2 { font-family: var(--sign); font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.05; margin: 12px 0 10px; max-width: 34ch; text-wrap: balance; }
.linehead p { max-width: 37rem; }
.linehead.jump::before { top: 46px; }

/* ---------- tables ---------- */
.swipe { display: none; font-family: var(--semi); font-size: .92rem; color: var(--muted); margin: 10px 0 -6px; }
.tscroll { overflow-x: auto; border: 2px solid var(--navy); margin: 14px 0 8px; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
caption { text-align: left; font-family: var(--semi); font-weight: 600; padding: 10px 12px; background: var(--tile); border-bottom: 1px solid var(--rule); caption-side: top; }
th, td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; font-family: var(--semi); }
thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; vertical-align: bottom; white-space: normal; line-height: 1.2; }
tbody th, td.l, thead th.l { text-align: left; }
tbody th { font-weight: 600; position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 var(--rule); }
tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; padding-left: 18px; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: #f5f7f9; }
td .chip, .chip { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.chip.pvd { background: var(--pvd); } .chip.frk { background: var(--frk); }
td.hl { font-weight: 600; background: #fff8dc !important; }
tr.sharon th, tr.sharon td { border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }

/* ---------- full-width sections after the ride ---------- */
.tool, .plain { padding-top: 46px; padding-bottom: 34px; border-top: 6px solid var(--yellow); }
.tool { background: var(--paper); }
.kicker { font-family: var(--sign); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: 1.05rem; background: var(--navy); color: #fff; padding: 4px 12px; display: inline-block; }
.tool > h2, .plain > h2 { font-family: var(--sign); font-weight: 700; text-transform: uppercase; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1; margin: 12px 0 12px; max-width: 26ch; text-wrap: balance; }
.tool > p, .plain > p { max-width: 38rem; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 30px 40px; margin-top: 24px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend, .flabel { font-family: var(--sign); font-weight: 700; font-size: 1.22rem; letter-spacing: .05em; text-transform: uppercase; padding: 0; margin-bottom: 8px; display: block; }
.hint { font-size: .9rem; color: var(--muted); line-height: 1.45; margin: 4px 0 0; }
select, input[type=number], input[type=email], input[type=text], textarea {
  font: inherit; font-family: var(--semi); font-size: 1.1rem; color: var(--ink); background: #fff; border: 2px solid var(--navy); border-radius: 2px; padding: 9px 12px; min-height: 48px; width: 100%; max-width: 26rem;
}
input[type=number] { width: 6.2rem; text-align: right; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; display: inline-flex; }
.opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 14px; border: 2px solid var(--navy); border-radius: 2px; font-family: var(--semi); font-weight: 600; font-size: 1.05rem; background: #fff; }
.opts input:checked + span { background: var(--navy); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
.opts.days span { min-width: 52px; justify-content: center; font-family: var(--sign); font-size: 1.4rem; }
.assume { display: grid; gap: 12px; }
.assume .a { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.assume .a label { font-family: var(--semi); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.assume .a .hint { grid-column: 1 / -1; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.4; }
.check input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--navy); }

.card { border: 2px solid var(--navy); background: #fff; position: sticky; top: 14px; }
.card-top { background: var(--navy); color: #fff; padding: 14px 20px 16px; border-top: 7px solid var(--line, var(--pvd)); }
.card-top .lab { font-family: var(--semi); font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; color: #cfdbe8; }
.card-top .od { font-family: var(--sign); font-weight: 700; font-size: 1.7rem; line-height: 1.1; text-transform: uppercase; margin: 2px 0 12px; }
.card-top .total { font-family: var(--sign); font-weight: 700; font-size: clamp(2.7rem, 3.6vw, 3.5rem); line-height: .95; color: var(--yellow); }
.card-top .total small { font-size: .34em; color: #fff; letter-spacing: .05em; font-weight: 600; text-transform: uppercase; display: block; margin-top: 6px; }
.legs { padding: 16px 20px 6px; }
.bar { display: flex; height: 34px; border: 2px solid var(--navy); margin-bottom: 12px; }
.bar i { display: block; min-width: 3px; }
.b-door { background: #9fb2c6; } .b-wait { background: #d5dee7; } .b-train { background: var(--line, var(--pvd)); } .b-var { background: repeating-linear-gradient(135deg, var(--line, var(--pvd)) 0 4px, #fff 4px 8px); } .b-last { background: var(--navy); }
.legs ol { list-style: none; margin: 0; padding: 0; }
.legs li { display: grid; grid-template-columns: 16px 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.legs li .sw { width: 14px; height: 14px; align-self: center; border: 1px solid var(--navy); }
.legs li .what { font-weight: 600; line-height: 1.3; }
.legs li .min { font-family: var(--sign); font-weight: 700; font-size: 1.35rem; white-space: nowrap; }
.legs li .how { grid-column: 2 / -1; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.tagk { font-family: var(--semi); font-weight: 600; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; padding: 1px 6px; border: 1.5px solid currentColor; margin-right: 6px; white-space: nowrap; }
.tagk.sched { color: #0b5a2a; } .tagk.assumed { color: #7a4a00; } .tagk.routed { color: #2a4a8a; }
.sums { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--navy); }
.sums div { padding: 12px 20px; border-bottom: 1px solid var(--rule); }
.sums div:nth-child(odd) { border-right: 1px solid var(--rule); }
.sums dt, .sums .k { font-family: var(--semi); font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sums .v { font-family: var(--sign); font-weight: 700; font-size: 1.7rem; line-height: 1.1; display: block; }
.sums .n { font-size: .86rem; color: var(--muted); line-height: 1.4; display: block; }
.sums .full { grid-column: 1 / -1; border-right: 0 !important; }
.card .note { padding: 12px 20px; font-size: .9rem; line-height: 1.45; color: var(--muted); margin: 0; border-bottom: 1px solid var(--rule); }
.share { padding: 14px 20px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.share label { grid-column: 1 / -1; font-family: var(--semi); font-weight: 600; font-size: .95rem; }
.share input { max-width: none; font-size: .92rem; min-height: 46px; }
.btn { font-family: var(--sign); font-weight: 700; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 2px; padding: 10px 18px; min-height: 48px; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn.alt { background: #fff; color: var(--navy); }
.btn.alt:hover { background: var(--tile); }

.capture { margin-top: 34px; border: 2px solid var(--navy); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.capture .pitch { background: var(--yellow); padding: 22px 24px; }
.capture .pitch h3 { font-size: 1.9rem; line-height: 1.05; margin: 0 0 10px; display: block; }
.capture .pitch h3::before { display: none; }
.capture .pitch p { font-size: 1rem; line-height: 1.5; margin: 0 0 .7em; }
.capture form, .capture .done { padding: 22px 24px; display: grid; gap: 16px; align-content: start; }
.capture label.f { font-family: var(--semi); font-weight: 600; font-size: 1.02rem; display: grid; gap: 5px; }
.capture label.f small { font-family: var(--text); font-weight: 400; font-size: .88rem; color: var(--muted); }
.capture textarea { min-height: 76px; max-width: none; }
.capture input, .capture select { max-width: none; }
.done h3 { margin: 0; }
.done .proto { font-size: .86rem; color: var(--muted); margin: 0; }
.done pre { margin: 0; background: var(--navy); color: #e6edf5; padding: 14px; font-size: .84rem; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

.video { margin: 26px 0 0; position: relative; border: 2px solid var(--navy); background: var(--navy); color: #fff; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.video img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; filter: saturate(.85); }
.video .meta { padding: 22px 24px; align-self: center; }
.video .tag { font-family: var(--sign); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1.02rem; background: var(--yellow); color: var(--ink); padding: 3px 10px; display: inline-block; }
.video .t { font-family: var(--sign); font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.05; margin: 12px 0 10px; }
.video p { font-size: .98rem; line-height: 1.5; margin: 0 0 .6em; color: #e6edf5; }
.video .cr { font-size: .8rem; color: #cfdbe8; }

.agent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 44px; margin-top: 18px; }
.agent .contact { font-family: var(--semi); font-size: 1.08rem; line-height: 1.6; border: 2px solid var(--navy); padding: 16px 20px; align-self: start; }
.agent .contact b { font-family: var(--sign); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; display: block; line-height: 1.1; margin-bottom: 6px; }
.srclist { columns: 2 320px; column-gap: 44px; padding-left: 1.2em; font-size: .92rem; }
.srclist li { break-inside: avoid; margin: 0 0 9px; line-height: 1.45; overflow-wrap: anywhere; }
.credits { font-size: .88rem; color: var(--muted); padding-left: 1.2em; columns: 2 320px; column-gap: 44px; }
.credits li { break-inside: avoid; margin-bottom: 6px; overflow-wrap: anywhere; }

footer.site { background: var(--navy); color: #dbe5f0; margin-top: 0; border-top: 6px solid var(--yellow); }
footer.site .in { max-width: 1480px; margin: 0 auto; padding: 30px 28px 26px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 48px; font-size: .95rem; line-height: 1.55; }
footer.site a { color: #fff; }
footer.site .bl { font-family: var(--sign); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.proto-strip { background: #fff; border-top: 2px solid var(--navy); font-size: .88rem; color: var(--ink); }
.proto-strip .in { max-width: 1480px; margin: 0 auto; padding: 10px 28px; display: flex; gap: 10px 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.proto-strip p { margin: 0; }
.proto-strip button { font: inherit; font-size: .88rem; background: none; border: 1.5px solid var(--navy); border-radius: 2px; padding: 6px 12px; min-height: 32px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (min-width: 1680px) {
  .wrap { grid-template-columns: 410px minmax(0, 1fr); gap: 0 56px; }
  .body { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 30px 56px; }
  :root { --gutter: 92px; }
  .stop, .passing, .zone, .linehead, .tool, .plain { padding-right: 56px; }
}
@media (max-width: 1180px) {
  .wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 0 28px; }
  .body { display: flex; flex-direction: column; gap: 0; }
  .body > .prose, .body > .side { display: contents; }
  .body > .prose > * { order: 3; max-width: 37rem; width: 100%; min-width: 0; }
  .body > .prose > .lede { order: 1; }
  .body > .side > .board { order: 2; max-width: 37rem; width: 100%; margin: 4px 0 26px; }
  .body > .side > figure { order: 4; max-width: 37rem; width: 100%; }
  .body > .prose > h3 { margin-top: 14px; }
  .body > .prose > .catch, .body > .prose > .reserve, .body > .prose > blockquote.dq { margin-top: 6px; margin-bottom: 18px; }
  .body > .prose > details.src { margin-top: 2px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .card { position: static; max-width: 37rem; }
}
@media (max-width: 900px) {
  html { font-size: 106.25%; }
  :root { --gutter: 44px; }
  .mast-in, .hero-in, .teaser, .wrap, footer.site .in, .proto-strip .in { padding-left: 16px; padding-right: 16px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .teaser-in { grid-template-columns: 1fr; }
  .teaser .big { white-space: normal; }
  .wrap { display: block; padding: 0; }
  .rail { display: contents; }
  .readout { position: sticky; top: 0; z-index: 20; padding: 7px 14px 8px; border-left-width: 8px; border-bottom: 3px solid var(--yellow); }
  .readout .lab { display: none; }
  .readout .now { font-size: 1.3rem; margin: 0 0 3px; }
  .readout dl { border-top: 0; padding-top: 0; grid-template-columns: 1.4fr .6fr 1fr; }
  .readout dt { font-size: .78rem; }
  .readout dd { font-size: 1.12rem; }
  .mapfig { margin: 14px 16px 16px; }
  .mapfig svg { max-height: 78vh; }
  .route { border-left: 0; border-right: 0; border-top: 2px solid var(--navy); }
  .stop, .passing, .zone, .linehead, .tool, .plain { padding-right: 16px; }
  .roundel { width: 26px; height: 26px; left: calc(var(--gutter) / 2 - 13px); border-width: 6px; top: 46px; }
  .stop.minor .roundel { width: 20px; height: 20px; left: calc(var(--gutter) / 2 - 10px); border-width: 4px; }
  .stop::before, .passing::before, .zone::before, .linehead::before { width: 6px; left: calc(var(--gutter) / 2 - 3px); }
  .passing li::before { left: calc(var(--gutter) / -2 - 7px); width: 14px; }
  .plate { padding: 10px 12px 12px; gap: 2px 10px; }
  .plate .zr { width: 56px; height: 56px; }
  .plate .zr b { font-size: 1.5rem; }
  .plate .zr span { font-size: .68rem; }
  .strap { font-size: 1.08rem; padding: 8px 12px; }
  .capture, .video, .agent { grid-template-columns: minmax(0, 1fr); }
  footer.site .in { grid-template-columns: 1fr; }
  .tool, .plain { padding-left: 16px; }
  .swipe { display: block; }
  .mast nav a.x { display: none; }
  .mast-in { padding-top: 8px; padding-bottom: 6px; gap: 0 16px; }
  .plate .where { font-family: var(--sign); font-size: .95rem; letter-spacing: .04em; }
  .hero-fig img { max-height: 230px; min-height: 0; }
  .sums { grid-template-columns: 1fr; }
  .sums div:nth-child(odd) { border-right: 0; }
  html { scroll-padding-top: 76px; }
  th, td { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .rail, .mast nav, .proto-strip { display: none; }
  .wrap { display: block; }
}

/* ---------- design fixes 2026-11-11 (critic pass) ---------- */
/* slim placeholder notes: one margin-note line, no dashed box */
.reserve { border: 0; border-left: 4px solid var(--yellow); background: none; padding: 2px 0 2px 14px; margin: 18px 0 8px; font-size: .95rem; line-height: 1.45; }
.reserve .tag { font-size: .82rem; background: none; color: var(--navy); padding: 0; margin: 0 8px 0 0; display: inline; }
.reserve p { display: inline; margin: 0; font-size: .95rem; color: var(--muted); }
/* map: minor labels readable */
.map .tk { font-size: 12.5px; }
.readout dd small { font-size: max(.62em, 13px); }
.hero-fig figcaption { font-size: .86rem; }
.mapfig figcaption { font-size: .86rem; }
/* desktop gutters: at least 64px */
@media (min-width: 1181px) {
  .mast-in, .hero-in, .teaser, .wrap, footer.site .in, .proto-strip .in { padding-left: 64px; padding-right: 64px; }
  .hero-fig img { max-height: 560px; }
}
/* phones: the answer bar sits straight under the headline */
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; }
  .hero-in, .hero-in > div:first-child { display: contents; }
  .hero .crumbs, .hero .eyebrow, .hero h1, .hero .dek, .hero .hero-meta, .hero .hero-fig { margin-left: 16px; margin-right: 16px; }
  .hero .crumbs { order: 1; margin-top: 18px; margin-bottom: 8px; }
  .hero .eyebrow { order: 2; margin-bottom: 8px; }
  .hero h1 { order: 3; font-size: 2.1rem; }
  .hero .teaser { order: 4; margin-top: 14px; }
  .hero .teaser-in { padding: 12px 14px; gap: 6px; }
  .hero .teaser .big { font-size: 2.2rem; }
  .hero .teaser p { font-size: .95rem; }
  .hero .dek { order: 5; font-size: 1.05rem; margin-top: 18px; }
  .hero .hero-meta { order: 6; }
  .hero .hero-fig { order: 7; margin-top: 18px; }
  .hero .hero-foot { order: 8; height: 22px; }
}
