  :root {
    --bakerloo: #B36305;
    --central:  #DC241F;
    --circle:   #FFD329;
    --district: #007D32;
    --hammers:  #F4A9BE;
    --jubilee:  #A1A5A7;
    --metro:    #9B0058;
    --northern: #000000;
    --picc:     #0019A8;
    --victoria: #0098D8;
    --waterloo: #76D0BD;
    --eliz:     #6950A1;
    --dlr:      #00AFAD;
    --tram:     #66CC00;

    --ink:    #0f172a;
    --muted:  #6b7280;
    --line:   #e5e7eb;
    --bg:     #ffffff;
    --soft:   #f8fafc;
    --good:   #197a3a;
    --warn:   #b25d00;
    --bad:    #b00020;
  }

  *, *::before, *::after { box-sizing: border-box; }
  body {
    margin: 0;
    padding-top: 70px;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  @media (max-width:768px){ body { padding-top: 64px; } }

  a { color: #0019a8; text-decoration: none; }
  a:hover { text-decoration: underline; text-underline-offset: 2px; }

  .wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.25rem 0;
  }
  @media (min-width: 720px){ .wrap { padding: 0.1rem 1.5rem 0; } }

  .hero { margin-top: 0; }
  .hero h1 { margin-top: 0; }
  /* Tighten the alert CTA's bottom margin so it hugs the footer */
  .cta { margin: 2rem 0 0.5rem; }

  /* Breadcrumbs */
  .bc {
    list-style: none; padding: 0; margin: 0 0 1rem;
    display: flex; flex-wrap: wrap; gap: 4px;
    font-size: 0.78rem; color: var(--muted);
  }
  .bc li + li::before { content: "›"; margin-right: 6px; color: #cbd5e1; }
  .bc a { color: var(--muted); text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: 2px; }
  .bc a:hover { color: #0019a8; text-decoration-color: #0019a8; }

  /* HERO (compact) */
  .hero { margin-bottom: 0.85rem; }
  .hero h1 {
    font-size: clamp(1.7rem, 5.5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 0.3rem;
    color: var(--ink);
  }
  .hero .sub {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0 0 0.55rem;
    line-height: 1.4;
  }
  .hero .sub strong { color: var(--ink); font-weight: 700; }

  .status-row {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    margin: 0;
  }
  .pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem; font-weight: 700;
    border: 1px solid;
  }
  .pill-good { background: #ecfdf5; border-color: #a7f3d0; color: var(--good); }
  .pill-warn { background: #fffbeb; border-color: #fde68a; color: var(--warn); }
  .pill-bad  { background: #fef2f2; border-color: #fecaca; color: var(--bad); }
  .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

  .quick-links {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
  }
  .quick-links a {
    font-size: 0.85rem; font-weight: 700;
    color: #0019a8;
    text-decoration: none;
  }
  .quick-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .quick-links a::after { content: ' →'; font-weight: 600; }

  .btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem; font-weight: 800;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: filter .15s, background .15s;
    font-family: inherit;
  }
  .btn-primary { background: #0019a8; color: #fff; }
  .btn-primary:hover { background: #000a6b; color: #fff; text-decoration: none; }
  .btn-ghost   { background: #fff; color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { background: var(--soft); color: #0019a8; border-color: #cbd5e1; text-decoration: none; }

  /* SECTION HEADERS */
  .sec-label {
    display: flex; align-items: baseline; justify-content: space-between;
    font-size: 0.7rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--muted);
    margin: 0.85rem 0 0.55rem;
  }
  .sec-label .meta { font-weight: 700; letter-spacing: 0.04em; color: #9ca3af; }
  h2 {
    font-size: 1.3rem; font-weight: 900;
    color: var(--ink); margin: 2.4rem 0 0.7rem;
    letter-spacing: -0.015em;
    scroll-margin-top: 84px;
  }
  h2:first-of-type { margin-top: 1.6rem; }
  /* The departures H2 styled like a section label, keeps existing visual hierarchy */
  .sr-h2 {
    font-size: 0.7rem; font-weight: 900;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin: 0.85rem 0 0.55rem;
    scroll-margin-top: 84px;
  }
  /* Line name became H3 for SEO - preserve existing visual */
  h3.line-name {
    margin: 0; padding: 0;
    font-size: 1rem; font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.2;
  }
  .is-victoria h3.line-name { color: var(--victoria); }
  .is-central  h3.line-name { color: var(--central); }
  .is-bakerloo h3.line-name { color: var(--bakerloo); }
  .is-circle h3.line-name { color: var(--circle); }
  .is-district h3.line-name { color: var(--district); }
  .is-hammersmith-city h3.line-name { color: var(--hammers); }
  .is-jubilee h3.line-name { color: var(--jubilee); }
  .is-metropolitan h3.line-name { color: var(--metro); }
  .is-northern h3.line-name { color: var(--northern); }
  .is-piccadilly h3.line-name { color: var(--picc); }
  .is-waterloo-city h3.line-name { color: var(--waterloo); }
  .is-elizabeth h3.line-name { color: var(--eliz); }
  .is-dlr h3.line-name { color: var(--dlr); }
  .is-tram h3.line-name { color: var(--tram); }

  /* DEPARTURES (line cards with NB/SB columns) */
  .departures { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.25rem; }

  .line-block {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem 0.95rem 0.85rem;
  }
  .line-block.is-victoria { border-left-color: var(--victoria); }
  .line-block.is-central  { border-left-color: var(--central); }
  .line-block.is-bakerloo { border-left-color: var(--bakerloo); }

  .line-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin-bottom: 0.6rem;
  }
  .line-name {
    font-size: 1rem; font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .is-victoria .line-name { color: var(--victoria); }
  .is-central  .line-name { color: var(--central); }
  .is-bakerloo .line-name { color: var(--bakerloo); }
  .line-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid;
    white-space: nowrap;
  }
  .line-status.good { background: #ecfdf5; border-color: #a7f3d0; color: var(--good); }
  .line-status.warn { background: #fffbeb; border-color: #fde68a; color: var(--warn); }
  .line-status.bad  { background: #fef2f2; border-color: #fecaca; color: var(--bad); }

  /* Two-column NB/SB grid */
  .dir-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 0.55rem;
  }
  .dir-grid.single { grid-template-columns: 1fr; }
  .dir-col { min-width: 0; }
  .dir-col + .dir-col {
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }

  .dir-label {
    font-size: 0.66rem; font-weight: 800; color: var(--ink);
    text-transform: uppercase; letter-spacing: 0.07em;
    margin: 0 0 6px;
    padding: 0;
  }

  .train-rows { display: flex; flex-direction: column; }
  .train-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 8px;
    padding: 7px 0;
    font-size: 0.82rem;
    border-top: 1px solid #f1f5f9;
  }
  .train-row:first-child { border-top: none; padding-top: 0; }
  .train-row .dest {
    font-weight: 600;
    color: var(--muted);
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    padding-top: 1px;
  }
  .train-row .when {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
  }
  .train-row .when small {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.66em;
    font-weight: 500;
    color: var(--muted);
    margin-left: 4px;
  }

  /* The NEXT train in each direction = visual lead */
  .train-row.next {
    padding: 3px 0 4px;
    font-size: 0.88rem;
    margin-bottom: 4px;
  }
  .train-row.next .dest { color: var(--ink); font-weight: 800; line-height: 1.2; }
  .train-row.next .when { color: var(--ink); font-size: 1.3rem; font-weight: 700; }
  .train-row.next .when small { color: var(--muted); margin-left: 4px; font-size: 0.6em; }

  .train-row.due .when,
  .train-row.next.due .when,
  .train-row.imminent .when,
  .train-row.next.imminent .when {
    color: var(--good);
  }

  /* CROWDING */
  .crowd { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; }
  .crowd-now { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 0.85rem; }
  .crowd-state {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.15rem; font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .crowd-state.busy { color: var(--bad); }
  .crowd-state.med  { color: var(--warn); }
  .crowd-state.quiet { color: var(--good); }
  .crowd-now small { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
  .crowd-text { font-size: 0.9rem; color: #374151; line-height: 1.55; margin: 0 0 0.85rem; }
  .crowd-chart { margin-top: 0.5rem; }
  .crowd-chart-label {
    font-size: 0.66rem; font-weight: 800; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 22px;
  }
  .crowd-bars {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    height: 64px;
    align-items: end;
  }
  .crowd-bar {
    background: #cbd5e1;
    border-radius: 2px 2px 0 0;
    height: var(--h);
    min-height: 4px;
    position: relative;
    transition: background .15s;
  }
  .crowd-bar.current { background: #0019a8; }
  .crowd-bar.current::after {
    content: 'now';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 800;
    color: #0019a8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    white-space: nowrap;
  }
  .crowd-axis {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    margin-top: 4px;
    font-size: 0.62rem;
    color: var(--muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .crowd-axis span { visibility: hidden; }
  .crowd-axis span:nth-child(1),
  .crowd-axis span:nth-child(7),
  .crowd-axis span:nth-child(13),
  .crowd-axis span:nth-child(19) { visibility: visible; }

  /* LIFTS / accessibility */
  .lifts { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; }
  .lifts-source { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
  .lifts-source a { color: var(--muted); text-decoration: underline; }
  .lifts-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
  .lifts-list li {
    display: grid; grid-template-columns: 1fr auto;
    gap: 10px; align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
  }
  .lifts-list li:last-child { border-bottom: none; }
  .lifts-list .label { color: var(--ink); font-weight: 600; }
  .lifts-list .label small { display: block; color: var(--muted); font-weight: 500; font-size: 0.78rem; margin-top: 2px; }
  .lifts-status { font-size: 0.78rem; font-weight: 700; }
  .lifts-status.ok  { color: var(--good); }
  .lifts-status.bad { color: var(--bad); }

  /* LINES AT THIS STATION */
  .lines-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
  .line-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s;
  }
  .line-card:hover { border-color: #cbd5e1; transform: translateY(-1px); text-decoration: none; }
  .line-swatch { width: 14px; height: 28px; border-radius: 3px; background: var(--line); flex-shrink: 0; }
  .line-card-name { font-size: 0.98rem; font-weight: 800; color: var(--ink); }
  .line-card-name small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-top: 1px; }
  .line-card-status { font-size: 0.8rem; font-weight: 700; color: var(--good); white-space: nowrap; }
  .line-card-status.warn { color: var(--warn); }
  .line-card-status.bad  { color: var(--bad); }
  .line-card-arrow { color: var(--muted); font-weight: 700; }

  /* CLOSURE / DISRUPTION BOX */
  .closure-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #b91c1c;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin: 0.6rem 0 1rem;
  }
  .closure-box h2 {
    font-size: 1rem;
    color: #7f1d1d;
    margin: 0 0 0.45rem;
    font-weight: 800;
  }
  .closure-list { margin: 0; padding-left: 1.1rem; color: #7f1d1d; font-size: 0.92rem; line-height: 1.5; }
  .closure-list li { margin: 0 0 0.25rem; }
  .closure-type { font-size: 0.75rem; color: #b91c1c; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
  .closure-alt { margin: 0.55rem 0 0; font-size: 0.88rem; color: #7f1d1d; }
  .closure-alt a { color: #7f1d1d; font-weight: 700; text-decoration: underline; }

  /* NEIGHBOURS */
  .neigh { display: grid; gap: 12px; margin-top: 0.6rem; }
  .neigh-line {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px 14px 28px;
    box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 0 0 1px rgba(15,23,42,0.07);
  }
  .neigh-bar {
    position: absolute;
    left: 8px;
    top: 14px;
    bottom: 14px;
    width: 5px;
    border-radius: 4px;
    background: var(--line-color, var(--ink));
  }
  .neigh-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
  }
  .neigh-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2.5px solid var(--line-color, var(--ink));
    background: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .neigh-name {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--line-color, var(--muted));
  }
  .neigh-rows { display: grid; gap: 8px; }
  .neigh-row {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 10px;
  }
  .neigh-divider {
    width: 1px;
    height: 28px;
    background: rgba(15,23,42,0.08);
    justify-self: center;
  }
  .neigh-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
  }
  .neigh-cell.next { justify-content: flex-end; }
  .neigh-cell.next .neigh-text { align-items: flex-end; }
  .neigh-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .neigh-cell .neigh-station {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .neigh-walk {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 1px;
  }
  .neigh-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--line-color, #94a3b8) 14%, #fff);
    color: var(--line-color, var(--ink));
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
  }
  .neigh-cell:hover .neigh-station { text-decoration: underline; }
  .neigh-cell:hover .neigh-arrow {
    background: color-mix(in srgb, var(--line-color, #94a3b8) 22%, #fff);
  }
  @media (max-width: 540px) {
    .neigh-row { grid-template-columns: 1fr; gap: 6px; }
    .neigh-divider { display: none; }
    .neigh-cell.next { justify-content: flex-start; }
  }

  /* MAP */
  .map {
    aspect-ratio: 16 / 9;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 0.85rem;
    margin: 0.5rem 0 0;
  }

  /* ABOUT */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem 1rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    font-size: 0.92rem;
  }
  @media (min-width: 540px){ .about-grid { grid-template-columns: 1fr 1fr; } }
  .about-grid dt { font-weight: 700; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
  .about-grid dd { margin: 0 0 0.4rem; color: var(--ink); }
  .about-note { font-size: 0.78rem; color: var(--muted); margin: 0.55rem 0 0; line-height: 1.4; }
  .about-note a { color: var(--muted); text-decoration: underline; }
  .about-sources { list-style: none; padding: 0; margin: 0.3rem 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
  .about-sources li { margin: 0 0 0.25rem; padding-left: 12px; position: relative; }
  .about-sources li::before { content: '·'; position: absolute; left: 0; font-weight: 800; color: #9ca3af; }
  .about-sources a { color: var(--muted); text-decoration: underline; }

  /* Info cards (replaces old about-card stack) ---------------------------------------------- */
  .info-card {
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    padding: 1.1rem 1.2rem 1.15rem;
    margin: 0 0 0.85rem;
  }
  .info-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
  }
  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem 1.4rem;
  }
  .info-col-wide { grid-column: span 2; }
  @media (max-width: 540px) { .info-col-wide { grid-column: auto; } }
  .info-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
  }
  .info-value { color: var(--ink); font-size: 0.95rem; font-weight: 600; }
  .info-modes { color: var(--ink); font-size: 0.95rem; font-weight: 600; }
  .naptan-code {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: 'IBM Plex Mono', Menlo, monospace;
    font-size: 0.88rem;
    color: var(--ink);
  }

  /* Line colour pills */
  .line-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .line-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }
  .line-chip:hover { filter: brightness(1.08); text-decoration: none; }
  .line-chip-sm { padding: 3px 9px; font-size: 0.78rem; }

  /* Facility chips */
  .fac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .fac-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    white-space: nowrap;
  }
  .fac-icon { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }

  /* First & last trains table */
  .flt-table-wrap { overflow-x: auto; }
  .flt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
  }
  .flt-table thead th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 12px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
  }
  .flt-table thead th:first-child { border-top-left-radius: 8px; }
  .flt-table thead th:last-child  { border-top-right-radius: 8px; }
  .flt-table td { padding: 10px 12px; border-bottom: 1px solid rgba(15,23,42,0.06); vertical-align: middle; }
  .flt-table tbody tr:last-child td { border-bottom: none; }
  .flt-line { width: 90px; }
  .flt-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .flt-time strong { color: var(--ink); font-weight: 800; }
  .flt-dest strong { color: var(--ink); font-weight: 700; }
  .flt-muted { color: var(--muted); font-weight: 600; }
  .flt-row-first td { padding-top: 12px; }

  /* Source note callout */
  .info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #1e3a8a;
    line-height: 1.5;
  }
  .info-note-icon { width: 16px; height: 16px; color: #2563eb; flex-shrink: 0; margin-top: 2px; }
  .info-note strong { color: #1e3a8a; font-weight: 800; }

  /* Collapsible Data sources */
  .info-sources {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.83rem;
    color: var(--muted);
  }
  .info-sources summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--ink);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .info-sources summary::-webkit-details-marker { display: none; }
  .info-sources summary::before { content: '▸'; color: var(--muted); font-size: 0.8em; transition: transform 0.15s; }
  .info-sources[open] summary::before { content: '▾'; }
  .info-sources ul { list-style: none; padding: 0; margin: 0.7rem 0 0; line-height: 1.6; }
  .info-sources li { margin: 0 0 0.3rem; padding-left: 14px; position: relative; }
  .info-sources li::before { content: '·'; position: absolute; left: 0; font-weight: 800; color: #9ca3af; }
  .info-sources a { color: var(--muted); text-decoration: underline; }

  /* FAQ */
  .faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
  .faq details:first-of-type { border-top: 1px solid var(--line); }
  .faq summary {
    font-size: 0.98rem; font-weight: 800; color: var(--ink);
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: '+'; font-size: 1.3rem; color: #9ca3af; font-weight: 700; flex-shrink: 0; }
  .faq details[open] summary::after { content: '−'; }
  .faq details p { margin: 0.5rem 0 0; font-size: 0.92rem; color: #374151; line-height: 1.6; }

  /* CTA */
  .cta {
    background: linear-gradient(135deg, #fffbe6 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid #d97706;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    margin: 2rem 0 0;
  }
  .cta h3 { font-size: 1.05rem; color: #78350f; margin: 0 0 0.4rem; }
  .cta p { color: #92400e; font-size: 0.92rem; margin: 0 0 0.85rem; line-height: 1.55; }

  /* Live indicator pill */
  .live-bar {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.74rem; color: var(--muted);
    font-variant-numeric: tabular-nums;
    background: #fff;
  }
  .live-bar .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--good);
    display: inline-block;
    position: relative;
    flex-shrink: 0;
  }
  .live-bar .dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--good);
    opacity: 0.5;
    animation: live-ring 1.8s ease-out infinite;
  }
  @keyframes live-ring {
    0%   { transform: scale(0.6); opacity: 0.55; }
    100% { transform: scale(2.2); opacity: 0; }
  }
  .live-bar strong { color: var(--good); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }

  /* Per-row live tick: very subtle opacity heartbeat on the number itself,
     plus a small pulsing "due" dot for imminent trains */
  .train-row .when { animation: live-tick 2.4s ease-in-out infinite; }
  @keyframes live-tick {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.82; }
  }
  .train-row.due .when,
  .train-row.imminent .when {
    color: var(--good);
    animation: due-tick 1s ease-in-out infinite;
  }
  @keyframes due-tick {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
  }

  /* Recommendation panel ("Should I use this station now?") */
  .rec {
    margin: 0.85rem 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid;
    border-left-width: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  @media (min-width: 720px) {
    .rec {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }
    .rec-text { flex: 1; min-width: 0; }
    /* On desktop, the duplicate quick-links row is redundant - hide it */
    .quick-links { display: none; }
  }
  .rec-good { background: #ecfdf5; border-color: #a7f3d0; color: var(--good); }
  .rec-warn { background: #fffbeb; border-color: #fde68a; color: var(--warn); }
  .rec-bad  { background: #fef2f2; border-color: #fecaca; color: var(--bad); }
  .rec-headline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.05rem; font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: inherit;
  }
  .rec-detail { font-size: 0.92rem; line-height: 1.5; color: var(--ink); }
  .rec-alts {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: var(--ink);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
  }
  .rec-alts strong { font-weight: 800; }
  .rec-alts a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: rgba(15,23,42,0.06);
    border-radius: 6px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
  }
  .rec-alts a:hover { background: rgba(15,23,42,0.12); text-decoration: none; }
  .rec-actions {
    display: none;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  @media (min-width: 720px) {
    .rec-actions { display: inline-flex; }
  }
  .rec-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    background: #0019a8;
    color: #fff;
    white-space: nowrap;
    border: 1.5px solid #0019a8;
    transition: background .15s, color .15s, border-color .15s;
  }
  .rec-btn:hover { background: #000a6b; color: #fff; text-decoration: none; }
  .rec-btn.ghost {
    background: rgba(255,255,255,0.7);
    color: var(--ink);
    border-color: rgba(15,23,42,0.15);
  }
  .rec-btn.ghost:hover { background: #fff; color: #0019a8; border-color: #0019a8; text-decoration: none; }

  /* Disruption history per line */
  .dis-history { display: flex; flex-direction: column; gap: 6px; }
  .dis-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 10px;
  }
  .dis-line { font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: 0.95rem; }
  .dis-line a { text-decoration: none; }
  .dis-line a:hover { text-decoration: underline; text-underline-offset: 2px; }
  .dis-counts { display: flex; gap: 14px; }
  .dis-counts span {
    display: flex; flex-direction: column; align-items: center;
    font-size: 0.7rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.04em;
    line-height: 1.1;
  }
  .dis-counts strong {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.05rem; font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
  }
  .dis-counts small { color: var(--muted); font-size: 0.66rem; }
