:root {
  --ink: #101820;
  --muted: #59636e;
  --paper: #f5f2e9;
  --panel: #fffdf8;
  --line: #d9d5ca;
  --blue: #00274c;
  --blue-soft: #e8eef5;
  --maize: #ffcb05;
  --green: #176b45;
  --green-soft: #e7f3ec;
  --red: #9c3c2f;
  --shadow: 0 18px 60px rgba(16, 24, 32, .11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 203, 5, .18), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 24, 32, .16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--maize);
  background: var(--blue);
  font-family: Georgia, serif;
  font-size: 20px;
}

.header-links { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.header-links a { text-underline-offset: 4px; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: 76px 0 52px; max-width: 900px; }

.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: #3f4852;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-proof span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .42);
  color: #46515d;
  font-size: 12px;
  font-weight: 650;
}

.showcase {
  overflow: hidden;
  margin: 14px 0 90px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 28px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 18px 2px 15px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.tab.active { border-bottom-color: var(--blue); color: var(--blue); }
.tab:focus-visible, .search:focus-visible, a:focus-visible {
  outline: 3px solid rgba(47, 101, 167, .35);
  outline-offset: 3px;
}

.view { padding: 32px 34px 38px; }
.view[hidden] { display: none; }

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker { margin-bottom: 5px; }
.panel-heading h2, .methodology h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -.025em;
}

.updated { color: var(--muted); font-size: 12px; white-space: nowrap; }
.freshness-live { color: var(--green); }
.freshness-stale { color: var(--red); font-weight: 750; }

.search-wrap { position: relative; max-width: 650px; }
.search {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #c9c5bb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 32, .14);
}

.results:empty { display: none; }
.result {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}
.result:hover { background: var(--blue-soft); }
.result:focus-visible { outline: 3px solid rgba(47, 101, 167, .35); outline-offset: -3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; padding: 12px 0 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f1efe8;
  color: #3f4852;
  cursor: pointer;
  font-size: 12px;
}
.chip.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip-x { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }

.note { margin: 10px 0; padding: 10px 12px; border-radius: 6px; background: #fff1e5; color: #824116; font-size: 13px; }
.empty { padding: 32px 0 8px; color: var(--muted); }

.board { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stop-head { padding: 20px 22px 16px; background: #f7f5ef; }
.stop-head > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stop-name { font-size: 18px; font-weight: 760; }
.walk { color: var(--muted); font-size: 12px; }

.leave-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 18px;
  margin: 18px 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}
.leave-label { grid-row: 1 / span 2; align-self: center; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.banner-main { color: var(--green); font-size: 22px; font-weight: 800; }
.banner-sub { color: #355f4b; font-size: 12px; }

.arrival-head, .arrival-row {
  display: grid;
  grid-template-columns: minmax(90px, 1.2fr) minmax(86px, .8fr) minmax(150px, 1.2fr);
  gap: 18px;
  align-items: center;
}
.arrival-head {
  padding: 9px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.arrival-row { padding: 16px 22px; border-bottom: 1px solid #ebe8df; }
.arrival-row:last-child { border-bottom: 0; }
.route-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 760; }
.route-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.eta-block { display: flex; flex-direction: column; }
.eta-block strong { font-size: 18px; }
.eta-block small { color: var(--muted); font-size: 11px; }
.adjusted strong { color: var(--green); }
.confidence { display: inline-block; width: fit-content; margin-top: 4px; padding: 2px 6px; border-radius: 3px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.confidence.low { background: #eceef1; color: #59636e; }
.reason { grid-column: 2 / 4; margin-top: -7px; color: var(--muted); font-size: 12px; }
.muted { padding: 22px; color: var(--muted); }
.board-foot { padding: 9px 22px; border-top: 1px solid var(--line); background: #f7f5ef; color: var(--muted); font-size: 10px; text-align: right; }

.accuracy-headline { max-width: 760px; margin: 0 0 24px; color: #34404a; font-size: 17px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { display: block; margin: 14px 0 2px; font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.metric-card small { color: var(--muted); }
.published-card { border-top: 4px solid #8c949d; }
.adjusted-card { border-top: 4px solid var(--green); background: #fbfffc; }
.adjusted-card strong { color: var(--green); }
.evidence-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.evidence-row span { padding: 5px 8px; border-radius: 4px; background: #efede7; color: #535e69; font-size: 11px; }
.route-result { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.route-result strong { color: var(--green); }
.illustrative-note { margin: 24px 0 0; padding: 13px 15px; border: 1px solid #e7d894; background: #fff8dc; color: #6b5200; font-size: 12px; }

.methodology { padding: 10px 0 100px; }
.methodology > h2 { max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 34px; border: 1px solid var(--line); background: var(--line); }
.steps article { padding: 28px; background: var(--panel); }
.steps span { color: #9b7b00; font-family: Georgia, serif; font-size: 13px; }
.steps h3 { margin: 28px 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.method-link { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.method-link a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 26px, 1120px); }
  .site-header { min-height: 66px; }
  .header-links { gap: 12px; }
  .hero { padding: 54px 0 38px; }
  .hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .showcase { margin-bottom: 68px; border-radius: 12px; }
  .tabs { padding: 0 18px; }
  .view { padding: 25px 18px 28px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .metric-grid, .steps { grid-template-columns: 1fr; }
  .arrival-head { display: none; }
  .arrival-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .arrival-row .route-pill { grid-column: 1 / 3; }
  .reason { grid-column: 1 / 3; margin-top: 0; }
  .stop-head > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .leave-banner { grid-template-columns: 1fr; }
  .leave-label { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
