/* Semaklah public site: the Line Map. Verticals are lines, categories are
   stations, directory lists are departure boards. Fonts are self-hosted; the
   renderer resolves each font: placeholder URL to a content-hashed path. */

@font-face {
  font-family: "Barlow";
  src: url("/assets/barlow-500-7c0597b1b0c771139c958982210f05b275993037f0f3ba20d7a9300a0741dc80.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/barlow-600-2b14e8397d552f351a4396dec25ec5da1348865683100e94c4ab0faea4a9a254.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/barlow-700-65a47caa5183b035bf78d0f93adbe5cea500333410259c54abf2de356740df7e.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
/* Holds layout while Barlow loads: Arial scaled to Barlow's narrower set. */
@font-face {
  font-family: "Barlow Fallback";
  src: local("Arial");
  size-adjust: 92%;
  ascent-override: 102%;
  descent-override: 20%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --sans: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;

  --ground: #ffffff;
  --ground-2: #f1f2f0;
  --ink: #16181a;
  --ink-2: #4b5157;
  --rule: #d5d9dc;
  --sign: #16181a;
  --sign-2: #24282b;
  --sign-ink: #ffffff;
  --sign-ink-2: #c4cacf;
  --board: #0e1012;
  --board-row: #1a1d20;
  --amber: #ffb81c;
  --signal: #ffc61a;
  --signal-ink: #16181a;
  --focus: #ffc61a;

  --line-health: #d42e12;
  --line-home: #e98b0c;
  --line-professional: #005ec4;
  --line-food: #00843d;
  --line: var(--ink);
  --line-ink: #ffffff;

  --page: min(74rem, 100% - 2.5rem);
  --radius: 0.625rem;
  --track: 0.5rem;
  --stop: 1.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0f1113;
    --ground-2: #171a1d;
    --ink: #eef0f1;
    --ink-2: #a8b0b6;
    --rule: #2b3034;
    /* Night signs are lit panels above the ground (1.33:1), not holes in it. */
    --sign: #262b30;
    --sign-2: #31373d;
    --board: #050607;
    --board-row: #14171a;
    --line-health: #ff5b3d;
    --line-home: #ffa63a;
    --line-professional: #4d9dff;
    --line-food: #2fbf6b;
  }
  /* Boards stay black screens; a hairline edge replaces the unseen shadow. */
  .board { box-shadow: 0 0 0 1px var(--rule); }
  /* The brightened lines carry dark badge text in the night scheme. */
  .line-health,
  .line-professional,
  .line-food { --line-ink: #0f1113; }
}

.line-health { --line: var(--line-health); }
.line-home { --line: var(--line-home); --line-ink: #16181a; }
.line-professional { --line: var(--line-professional); }
.line-food { --line: var(--line-food); }

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink-2) var(--ground-2);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  caret-color: var(--line-professional);
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--signal);
  color: var(--signal-ink);
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1rem; max-width: 68ch; text-wrap: pretty; }
a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--sign);
  border-radius: 0.25rem;
}
img { max-width: 100%; height: auto; }
address { font-style: normal; }
time, .code, .badge, .pos, .level-code, td, th { font-variant-numeric: tabular-nums; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Spam trap: off for people and assistive tech, still posted by naive bots. */
.hp { display: none; }
.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Station sign bar: the brand on enamel, the four lines as its edge strip. */
.sign-bar {
  background: var(--sign);
  color: var(--sign-ink);
  border-bottom: 0.375rem solid transparent;
  border-image: linear-gradient(90deg, var(--line-health) 0 25%, var(--line-home) 25% 50%, var(--line-professional) 50% 75%, var(--line-food) 75% 100%) 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  width: var(--page);
  margin-inline: auto;
  padding-block: 0.875rem;
  color: var(--sign-ink);
  text-decoration: none;
}
.sign-bar .brand { display: flex; }
.mark { width: 2.25rem; height: 2.25rem; flex: none; }
.mark-route {
  fill: none;
  stroke: var(--signal);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark-stop { fill: var(--sign); stroke: var(--sign-ink); stroke-width: 3; }
.brand-name { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; }

main { display: block; flex: 1 0 auto; }
main > article,
main > section { width: var(--page); margin-inline: auto; }
main > article.home { width: 100%; padding-bottom: 0; }
.home > section:not(.interchange) { width: var(--page); margin-inline: auto; }

/* Home: the "Where to?" sign. */
.interchange {
  width: 100%;
  margin-block: 0;
  background: var(--sign);
  color: var(--sign-ink);
}
.sign-panel {
  width: var(--page);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2.5rem, 2rem + 3vw, 4rem);
}
.sign-panel h1 {
  font-size: clamp(3rem, 2rem + 6vw, 6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.sign-intro { color: var(--sign-ink-2); font-size: 1.1875rem; max-width: 56ch; margin-bottom: 2.25rem; }
.find {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}
.field { position: relative; display: grid; gap: 0.375rem; }
.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sign-ink-2);
}
.field select {
  appearance: none;
  width: 100%;
  height: 3.5rem;
  padding: 0 3rem 0 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #ffffff;
  color: #16181a;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
}
.field select:hover { border-color: var(--signal); }
.chev,
.field-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chev {
  position: absolute;
  right: 1rem;
  bottom: 1.125rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #16181a;
  pointer-events: none;
}
.field-arrow { width: 1.75rem; height: 1.75rem; margin-bottom: 0.875rem; color: var(--signal); }
.find button,
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--signal);
  color: var(--signal-ink);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.find button:hover,
.go:hover { background: #ffd64f; }
.find button:active,
.go:active { background: var(--signal-ink); color: var(--signal); transform: translateY(1px); }
.go-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.go-quiet:hover { background: var(--ink); color: var(--ground); }

/* The network map. */
.network { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 2rem; }
.network-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.network-head h2 { grid-column: 1; }
.network-head p { grid-column: 1; color: var(--ink-2); margin: 0; }
.network-key {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.network-key li { display: flex; align-items: center; gap: 0.625rem; }
.key-stop {
  display: inline-block;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 3px dashed var(--ink-2);
  border-radius: 50%;
  background: var(--ground);
}
.key-stop.is-open { border: 4px solid var(--ink); background: var(--ground); }
.lines { display: grid; gap: 2.75rem; }
.line h3 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.badge {
  display: inline-flex;
  align-items: center;
  min-width: 2.75rem;
  justify-content: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--line);
  color: var(--line-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.stations {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stations::before {
  content: "";
  position: absolute;
  inset: calc(var(--stop) / 2 - var(--track) / 2) 0 auto 0;
  height: var(--track);
  border-radius: var(--track);
  background: var(--line);
  transform-origin: left center;
  animation: draw 1.1s var(--ease-out) both;
}
.line:nth-child(2) .stations::before { animation-delay: 90ms; }
.line:nth-child(3) .stations::before { animation-delay: 180ms; }
.line:nth-child(4) .stations::before { animation-delay: 270ms; }
@keyframes draw {
  from { transform: scaleX(0); }
}
.station {
  position: relative;
  padding-top: calc(var(--stop) + 0.75rem);
}
.station::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--stop);
  height: var(--stop);
  border: 3px dashed var(--line);
  border-radius: 50%;
  background: var(--ground);
}
.station.is-open::before { border: 5px solid var(--ink); background: var(--ground); }
.station .code {
  display: inline-block;
  margin-bottom: 0.375rem;
  padding: 0.0625rem 0.5rem;
  border-radius: 999px;
  background: var(--line);
  color: var(--line-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.station .name {
  display: block;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.station:not(.is-open) .name { color: var(--ink-2); }
.station a { display: block; text-decoration: none; border-radius: 0.375rem; }
.station a:hover .name { text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.2em; }
/* Pointing at a line lights it and quiets the rest. */
.line { transition: opacity 220ms var(--ease-out); }
.lines:has(.line:is(:hover, :focus-within)) .line:not(:is(:hover, :focus-within)) { opacity: 0.32; }

/* Service status: the verification levels, darker as the check gets stronger. */
.status {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: start;
  margin-block: 2rem clamp(3rem, 2rem + 3vw, 5rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--ground-2);
}
.status-copy p { color: var(--ink-2); }
.levels { display: grid; margin: 0; padding: 0; list-style: none; }
.level {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}
.level:last-child { border-bottom: 0; }
/* One V-level pill everywhere: the surface sets its ink, the level its fill. */
.level-code {
  --pill: var(--ink);
  --pill-ground: var(--ground);
  display: inline-flex;
  justify-content: center;
  min-width: 3rem;
  padding: 0.125rem 0.5rem;
  border: 2px solid var(--pill);
  border-radius: 999px;
  color: var(--pill);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}
.station-sign .level-code { --pill: var(--sign-ink); --pill-ground: var(--sign); }
.board .level-code { --pill: var(--amber); --pill-ground: var(--board); }
.level-code.level-V0 { border-style: dashed; }
.level-code.level-V1 { background: color-mix(in srgb, var(--pill) 14%, transparent); }
.level-code.level-V2 { background: color-mix(in srgb, var(--pill) 32%, transparent); }
.level-code.level-V3 { background: color-mix(in srgb, var(--pill) 75%, var(--pill-ground)); color: var(--pill-ground); }
.level-code.level-V4 { background: var(--pill); color: var(--pill-ground); }

.members {
  padding-block: 0 clamp(3rem, 2rem + 3vw, 5rem);
}
.members p { color: var(--ink-2); }
.members .go,
.opening-actions .go,
.notice .go { min-height: 3rem; font-size: 1.0625rem; }

/* Station sign (hubs, opening, notices). */
.station-sign {
  position: relative;
  overflow: hidden;
  margin-block: 2rem 1.75rem;
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem) clamp(1.5rem, 1rem + 3vw, 2.75rem) calc(clamp(1.5rem, 1rem + 3vw, 2.75rem) + 0.5rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--sign);
  color: var(--sign-ink);
}
.station-sign::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0.5rem;
  background: var(--line);
}
.notice .station-sign::after {
  background: linear-gradient(90deg, var(--line-health) 0 25%, var(--line-home) 25% 50%, var(--line-professional) 50% 75%, var(--line-food) 75% 100%);
}
.station-sign h1 .badge {
  margin-right: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: max(0.875rem, 0.3em);
  letter-spacing: 0.04em;
  vertical-align: 0.35em;
}
.sign-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-top: 0.75rem !important; color: var(--sign-ink) !important; font-weight: 600; }
.station-sign h1 { margin-bottom: 0.75rem; }
.station-sign p { color: var(--sign-ink-2); margin: 0; }
.station-sign .place { display: block; color: var(--sign-ink-2); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); letter-spacing: 0; margin-top: 0.5rem; }
.opening-status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  font-weight: 700;
}
.opening-status .key-stop { border-color: var(--line); background: var(--sign); }
.opening-intro { font-size: 1.1875rem; }
.opening-actions,
.notice > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.opening, .notice { padding-bottom: 4rem; }

/* Route strip: the place chain as stops on the line, current stop held. */
.route { margin-top: 1.75rem; }
.route ol {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.75rem;
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
}
.route li {
  position: relative;
  padding: 1.375rem 1.5rem 0 0;
  white-space: nowrap;
}
.route li::before {
  content: "";
  position: absolute;
  top: 0.3125rem;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: var(--line);
}
.route li:last-child::before { right: auto; width: 0.75rem; }
.route li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.875rem;
  height: 0.875rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
}
.route a { text-decoration: none; color: var(--ink-2); }
.route a:hover { color: var(--ink); text-decoration: underline; }
.route a[aria-current="page"],
.route-current { color: var(--ink); }
.route .here {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 0.8125rem;
  font-weight: 700;
}
.route li:has([aria-current="page"])::after { background: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--line) 35%, transparent); }

.hub-facts { display: grid; gap: 0.25rem; color: var(--ink-2); margin-bottom: 2rem; }
.hub-facts p { margin: 0; }
.hub-facts a { color: var(--ink); font-weight: 600; }

/* Departure board. */
.board {
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 0.5rem + 2vw, 1.75rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--board);
  color: #e9ecee;
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgb(0 0 0 / 0.45);
}
.board-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0 0.5rem 0.875rem;
  border-bottom: 2px solid #2b3034;
}
.board-head h2 {
  margin: 0;
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.board-count { margin: 0; color: #a9b1b7; font-size: 0.9375rem; }
.departures { margin: 0; padding: 0; list-style: none; }
.departure {
  display: grid;
  grid-template-columns: 2rem auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 0.875rem 0.5rem;
  border-bottom: 1px solid #23272a;
  border-radius: 0.375rem;
  transition: background-color 160ms var(--ease-out);
}
.departure:last-child { border-bottom: 0; }
.departure:hover,
.departure:focus-within { background: var(--board-row); }
.pos { color: #8d969d; font-weight: 600; font-size: 0.875rem; }
.departure .badge { font-size: 0.8125rem; min-width: 2.75rem; }
.dest {
  color: #ffffff;
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.dest:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.info { color: var(--amber); font-size: 0.9375rem; font-weight: 600; }
.board .level-code { margin-right: 0.375rem; }
.board :focus-visible { box-shadow: 0 0 0 6px var(--board); }

.pages ul,
.interchanges ul,
.locales ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pages a,
.interchanges a,
.locales a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 2px solid var(--rule);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.pages a:hover,
.interchanges a:hover,
.locales a:hover { border-color: var(--ink); }
.locales a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.pages { margin-bottom: 2.5rem; }
.interchanges,
.hub-questions,
.hub-price-table,
.hub-qa-block,
.prose { margin-bottom: 2.5rem; }
.interchanges h2,
.hub-questions h2,
.hub-price-table h2,
.hub-qa-block h2 { font-size: 1.375rem; }
.hub-questions {
  padding: clamp(1.25rem, 1rem + 2vw, 2rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--ground-2);
}
.hub-questions h3 { font-size: 1.0625rem; }
.hub-updated { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

/* Long-form and data pages (profiles, cost guides, trust pages, reports). */
main > article { padding-bottom: 3rem; }
main > article > h1:first-child,
main > article > header:first-child > h1 { margin-top: 2.25rem; }
article section { margin-block: 2rem; }
dl { margin: 0 0 1rem; }
dt { font-weight: 700; }
dd { margin: 0 0 0.75rem; color: var(--ink-2); }
ul, ol { padding-inline-start: 1.25rem; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
  font-size: 0.9375rem;
}
th,
td {
  text-align: start;
  vertical-align: top;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
/* Labels wrap between words; values may break anywhere so long URLs fit. */
th { font-weight: 700; background: var(--ground-2); overflow-wrap: break-word; }
td time { white-space: nowrap; }
.facts th[scope="row"] { width: 38%; }
blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--ground-2);
}
input,
textarea,
select { font: inherit; }
main form:not(.find) { display: grid; gap: 1rem; max-width: 40rem; }
main form:not(.find) label { display: grid; gap: 0.375rem; font-weight: 600; }
main form:not(.find) :is(input:not([type="checkbox"], [type="radio"]), textarea, select) {
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
}
main form:not(.find) :is(input, textarea, select):hover { border-color: var(--ink-2); }
main form:not(.find) button {
  justify-self: start;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--ground);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-reviews { margin-block: 2rem; }
.review-distribution {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.public-review { border-block-start: 1px solid var(--rule); padding-block: 1rem; }
.public-review p { white-space: pre-wrap; overflow-wrap: anywhere; }
.public-review blockquote { margin-inline: 1rem 0; }
.profile-reviews nav { display: flex; gap: 1rem; }

/* Concourse footer: other lines (languages) and service links. */
.concourse {
  background: var(--ground-2);
  border-top: 1px solid var(--rule);
}
.concourse > * { width: var(--page); margin-inline: auto; }
.locales { padding-block: 2.25rem 1rem; }
.locales h2 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1rem; }
.notice .locales { padding-block: 0.5rem 0; }
.concourse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem 2.5rem;
  margin-bottom: 0;
  max-width: none;
  font-weight: 600;
}

/* Phones: lines become strip maps running down the screen. */
@media (max-width: 52rem) {
  .find { grid-template-columns: 1fr; }
  .field-arrow { display: none; }
  .find button { width: 100%; }
  .network-head { grid-template-columns: 1fr; }
  .network-key { grid-column: 1; grid-row: auto; }
  .stations {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 0;
  }
  .stations::before {
    inset: 0 auto 0 calc(var(--stop) / 2 - var(--track) / 2);
    width: var(--track);
    height: auto;
    transform-origin: center top;
    animation-name: draw-down;
  }
  .station {
    display: flex;
    align-items: baseline;
    min-height: 3.25rem;
    padding: 0.125rem 0 0 calc(var(--stop) + 1rem);
  }
  .station a { display: flex; align-items: baseline; gap: 0.75rem; }
  .station .code { flex: none; min-width: 3.25rem; margin: 0; text-align: center; }
  .station .name { display: inline; }
  .station::before { top: 0.125rem; }
  .status { grid-template-columns: 1fr; gap: 1.5rem; }
}
@keyframes draw-down {
  from { transform: scaleY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .sign-bar, .concourse, .find, .skip { display: none; }
  .board, .station-sign, main > .interchange { background: none; color: inherit; box-shadow: none; }
}

/* Profile: the exit map. Contacts are lettered station exits beside the
   station map; fares and timetable ride departure boards. */
.exit-map {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.exit-map h3 {
  margin: 0 0 0.75rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.summary h2,
.fares h2,
.timetable h2,
.facts h2,
.people h2,
.credentials h2,
.answers h2,
.related h2 { font-size: 1.375rem; }
.exit-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.exit {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.exit:hover { border-color: var(--ink); background: var(--ground-2); }
.exit-letter {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: 1.375rem;
  font-weight: 700;
}
.exit-label { font-weight: 700; }
.exit-value { color: var(--ink-2); overflow-wrap: anywhere; }
.station-map {
  padding: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--ground-2);
}
.exit-map .station-map { align-self: start; }
.station-address { margin: 0 0 0.5rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.4; }
/* After the boards the reference blocks step down: ruled, smaller, quieter. */
.location,
.people,
.credentials,
.answers,
.related { padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.location h2,
.people h2,
.credentials h2,
.answers h2,
.related h2 { font-size: 1.25rem; }
.location > p:first-of-type,
.people > p,
.credentials > p:not(.credential),
.related > p { color: var(--ink-2); font-size: 0.9375rem; }
.answers h3 { font-size: 1.0625rem; margin-top: 1.25rem; }
.location address { font-weight: 600; margin-bottom: 0.75rem; }
.board-special th,
.board-special td { color: var(--amber) !important; }
.board-special tr:first-child > * { border-top: 2px solid #2b3034; }
.summary p { font-size: 1.1875rem; }
.fares .board,
.timetable .board { padding: 0.5rem 0.75rem; }
.board table { margin: 0; color: #e9ecee; font-size: 1rem; }
.board th,
.board td { border-bottom-color: #23272a; background: transparent; }
.board thead th {
  color: var(--amber);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.board tbody th { color: #ffffff; font-weight: 700; }
.board tbody td { color: #c9cfd3; }
.board .fare { color: var(--amber); font-weight: 700; white-space: nowrap; }
.board tbody tr:last-child > * { border-bottom: 0; }
.credential { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); margin: 0; max-width: none; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; margin-block: 2rem; }
.photos figure { margin: 0; }
.photos img { border-radius: var(--radius); }
.proof {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.proof h2 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.notice-line {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--signal) 28%, var(--ground));
  font-weight: 600;
  max-width: none;
}
.membership-disclosure { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 52rem) {
  .exit-map { grid-template-columns: 1fr; }
  /* Fare boards stack: each service is a row card, its cells labelled. */
  .fares thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fares tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 0.75rem 0.25rem; border-bottom: 1px solid #23272a; }
  .fares tbody tr:last-child { border-bottom: 0; }
  .fares th,
  .fares td { display: block; padding: 0; border: 0; }
  .fares td:not(.fare) { grid-column: 1 / -1; font-size: 0.9375rem; }
  .fares td:not(.fare):empty { display: none; }
  .fares td:not(.fare)::before { content: attr(data-label); margin-right: 0.5rem; color: #8d969d; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
  /* Route strips keep the last two stops; earlier ones trail off the line. */
  .route ol { position: relative; flex-wrap: nowrap; }
  .route ol:has(> li:nth-child(3)) { padding-left: 1.25rem; }
  .route ol:has(> li:nth-child(3))::before { content: ""; position: absolute; top: 0.3125rem; left: 0; width: 1.25rem; border-top: 0.25rem dashed var(--line); }
  .route li:not(:nth-last-child(-n+2)) { display: none; }
  .route li { min-width: 0; white-space: normal; }
  .departure { grid-template-columns: 1.75rem auto minmax(0, 1fr); }
  .info { grid-column: 3; }
}

.content-page__body { overflow-wrap: anywhere; }
.content-page__body blockquote { border-inline-start: 2px solid var(--rule); margin-inline: 0; padding-inline-start: 1rem; color: var(--ink-2); }
.content-page__body pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.content-page__body code { font-family: monospace; }
.content-page__body hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2rem; }
