/* base: nest.css */
/* nest.css — the base theme: tokens, the elements, and the classes modules share (card, stack,
   row, field, notice, badge, tile...). Each module keeps its own look in its own stylesheet
   (its manifest's styles), built on these tokens; an application restyles both. */
:root {
  --bg: #f8f7f4; --surface: #ffffff; --text: #1d1c1a; --muted: #5f5b53;
  --border: #dedad0; --accent: #8a2b1f; --accent-text: #ffffff; --focus: #1f4f8a;
  --ok: #2d6a3e; --danger: #a32121;
  --radius: 8px; --gap: 1rem; --max: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151413; --surface: #1e1d1b; --text: #ecebe6; --muted: #a6a196;
    --border: #34312c; --accent: #e0806f; --accent-text: #151413; --focus: #8db6ea;
    --ok: #7cc48e; --danger: #f08a8a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font);
  display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; padding-block: 1.5rem 3rem; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1rem; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; min-height: 3.5rem; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; padding-block: 1rem; }

h1, h2, h3 { line-height: 1.25; margin: 1.5rem 0 .75rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: .5rem; }
p { margin: .5rem 0 1rem; }
code, pre { font-family: var(--mono); font-size: .9em; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1rem; overflow-x: auto; }
img, video { max-width: 100%; height: auto; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-block: var(--gap); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.muted { color: var(--muted); }
.stack > * + * { margin-top: var(--gap); }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

button, .button { font: inherit; cursor: pointer; border: 1px solid var(--accent); background: var(--accent);
  color: var(--accent-text); border-radius: var(--radius); padding: .5rem 1rem; min-height: 2.5rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
button.secondary, .button.secondary { background: transparent; color: var(--accent); }
button:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]), select, textarea {
  font: inherit; color: inherit; background: var(--surface); width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .75rem; min-height: 2.5rem; }
/* checkboxes and radios: one size wherever they are, in the site's colour, beside their words */
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0 .35rem 0 0; padding: 0;
  flex: none; vertical-align: -.15em; accent-color: var(--accent); cursor: pointer; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { cursor: not-allowed; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { font-weight: normal; }
textarea { min-height: 6rem; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }

.notice { border-left: 4px solid var(--accent); background: var(--surface); padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0; }
.notice.ok { border-color: var(--ok); } .notice.danger { border-color: var(--danger); }

/* htmx: indicators without the inline styles htmx would inject. */
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.narrow { max-width: 28rem; margin-inline: auto; }
button.link { background: none; border: none; color: var(--muted); padding: .25rem .4rem; min-height: auto; }
button.link:hover, button.link.current { color: var(--text); text-decoration: underline; }
.language { gap: 0; }
.field { margin-bottom: 1rem; }
.field .hint, .field .error { display: block; margin-top: .25rem; font-size: .875rem; }
.field .hint { color: var(--muted); }
.field .error { color: var(--danger); }
.field .req { color: var(--danger); }
.field.check { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.field.check input { width: auto; min-height: auto; }
.field.check label { margin: 0; font-weight: 400; }
[aria-invalid="true"] { border-color: var(--danger); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.between { justify-content: space-between; }
form.search { display: flex; gap: .5rem; margin-block: 1rem; }
form.search input { flex: 1; }
.tile { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--text); }
.tile:hover { border-color: var(--accent); }
.letters { display: flex; flex-wrap: wrap; gap: .25rem; margin-block: 1rem; }
.letters a { min-width: 2.25rem; text-align: center; padding: .35rem .5rem; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.letters a[aria-current="page"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
ol.results { padding-left: 1.25rem; } ol.results li { margin-bottom: 1rem; } ol.results p { margin: .25rem 0; }
mark { background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; border-radius: 2px; }
.pager { margin-top: 1.5rem; }
.danger-zone { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; } label.check { font-weight: 400; display: inline-flex; gap: .35rem; align-items: center; }
label.check input { width: auto; min-height: auto; }
.badge { display: inline-block; font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--border); color: var(--text); vertical-align: middle; }
form.inline { display: inline; }
/* numbers in tables, and a change for the better or the worse (the game's benchmark) */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.better { color: var(--ok); } .worse { color: var(--danger); }
progress { width: 100%; max-width: 32rem; }
/* the language switch: its choices apart, in any theme */
.language { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; }

/* the line every site carries: built with Nest */
.nest-credit { margin: .35rem 0 0; font-size: .78rem; opacity: .75; }
.nest-credit a { color: inherit; }

/* transit-lines: lines.css */
/* lines.css — the transit-lines theme, on the base theme: a transit map. A white header with
   the site's name beside a stop's mark (a ring on a line), the lines' colours as thin
   stripes under it, rounded menu pills, boards with clear heads, times in figures of one
   width, a dark footer under the same stripes. System fonts only (nothing to download). A
   theme's stylesheet comes before the modules' own, so a rule for a class a module styles
   too is written under main, to win. */

:root {
  --bg: #f4f6f8; --surface: #ffffff; --text: #16202a; --muted: #5b6672;
  --border: #dde3e9; --accent: #0b5cad; --accent-text: #ffffff; --focus: #f2a900;
  --ok: #1a7f37; --danger: #c62828; --link: #0b5cad; --stripe: #f7f9fb;
  --line-1: #e4002b; --line-2: #0b5cad; --line-3: #f2a900; --line-4: #1a7f37; --line-5: #7a3e9d;
  --night: #121a24; --radius: 10px; --max: 76rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b; --surface: #16202b; --text: #e7edf3; --muted: #9fb0c0;
    --border: #263342; --accent: #5aa8ff; --accent-text: #0e141b; --link: #7cbcff; --stripe: #1a2532;
    --night: #0a0f15;
  }
}

body { font-family: var(--sans); }
a { color: var(--link); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip:focus { background: var(--focus); color: #16202a; font-weight: 700; }
h1, h2, h3 { font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); }
time, .time, td.num, .num, table { font-variant-numeric: tabular-nums; }

/* --- the header ---------------------------------------------------------------------------- */
.lines-header { background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); border: 0; box-shadow: 0 1px 0 var(--border);
  position: sticky; top: 0; z-index: 1100; backdrop-filter: saturate(1.4) blur(8px); }
.lines-header .bar { min-height: 4.25rem; gap: .6rem 1.4rem; padding-block: .55rem; flex-wrap: wrap; }
.lines-brand { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--text); text-decoration: none; }
.lines-brand:hover { text-decoration: none; }
/* a stop on a line: a white ring with a thick border, a bar through it */
.lines-mark { position: relative; width: 2.1rem; height: 2.1rem; flex: none; }
.lines-mark::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .45rem; transform: translateY(-50%);
  background: var(--line-2); border-radius: 1rem; }
.lines-mark::after { content: ""; position: absolute; inset: .3rem; border-radius: 50%; background: var(--surface);
  border: .32rem solid var(--line-1); }
.lines-name { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.1; }
.lines-tagline { font-size: .85rem; color: var(--muted); }
.lines-nav { flex: 1 1 auto; }
.lines-nav ul.menu { display: flex; flex-wrap: wrap; gap: .3rem .4rem; list-style: none; margin: 0; padding: 0; }
.lines-nav ul.menu a { color: var(--text); font-weight: 600; font-size: .98rem; text-decoration: none;
  display: inline-block; padding: .35rem .8rem; border-radius: 999px; }
.lines-nav ul.menu a:hover { background: var(--stripe); }
.lines-nav ul.menu a[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
.lines-nav ul.menu ul { background: var(--surface); }
.lines-tools { display: flex; align-items: center; gap: .75rem; color: var(--muted); }

/* the lines' colours, as on a transit map */
.lines-stripes { display: flex; height: 5px; }
.lines-stripes span { flex: 1; }
.lines-stripes span:nth-child(1) { background: var(--line-1); }
.lines-stripes span:nth-child(2) { background: var(--line-2); }
.lines-stripes span:nth-child(3) { background: var(--line-3); }
.lines-stripes span:nth-child(4) { background: var(--line-4); }
.lines-stripes span:nth-child(5) { background: var(--line-5); }

/* --- the page ------------------------------------------------------------------------------ */
main .card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 30, 50, .05); }
button, .button { border-radius: 999px; font-weight: 650; }
.badge { background: var(--accent); color: var(--accent-text); border-radius: 999px; }
mark, .highlight { background: var(--focus); color: #16202a; padding: 0 .15em; border-radius: 2px; }

/* boards and tables: a clear head, quiet rows */
main table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
main table th { background: var(--stripe); color: var(--muted); font-weight: 700; font-size: .8rem;
  letter-spacing: .05em; text-transform: uppercase; text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--border); }
main table td { padding: .45rem .7rem; border-bottom: 1px solid var(--border); }
main table tbody tr:last-child td { border-bottom: 0; }
main table tbody tr:hover td { background: var(--stripe); }

/* the transit module's parts, in this theme's voice */
main { padding-bottom: 2rem; }
main h2 { display: flex; align-items: center; gap: .55rem; margin-top: 1.8rem; }
main h2::before { content: ""; flex: none; width: .8rem; height: .8rem; border-radius: 50%;
  border: .2rem solid var(--line-2); background: var(--surface); }
main section:nth-of-type(3n+2) h2::before { border-color: var(--line-1); }
main section:nth-of-type(3n) h2::before { border-color: var(--line-4); }

/* the home page: a band for the search, as a transit map's legend */
main .home-hero { position: relative; margin: 1rem 0 0; padding: 2.2rem 1rem 1.6rem; border-radius: 1rem; max-width: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--line-2) 9%, var(--surface)), var(--surface) 60%);
  border: 1px solid var(--border); overflow: hidden; }
main .home-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--line-1) 0 20%, var(--line-2) 20% 40%, var(--line-3) 40% 60%, var(--line-4) 60% 80%, var(--line-5) 80%); }
main .home-hero h1 { margin: 0 0 .3rem; font-size: clamp(2rem, 5vw, 3rem); }
main .home-hero .lead { color: var(--muted); margin: 0 auto; max-width: 38rem; }
main .home-search { max-width: 40rem; }
main .home-search input[type="search"] { border-radius: 999px; padding: .75rem 1.2rem; border: 2px solid var(--border);
  background: var(--surface); box-shadow: 0 4px 14px rgba(15, 30, 50, .07); font-size: 1.1rem; }
main .home-search input[type="search"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
main .home-search button { padding-inline: 1.4rem; }
main .search-results { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .2rem .9rem; }
main .search-results:empty { display: none; }

/* the cities: cards edged in the lines' colours */
main .city-card { border-top: 4px solid var(--line-2); transition: transform .12s ease, box-shadow .12s ease; }
main .city-grid li:nth-child(5n+1) .city-card { border-top-color: var(--line-1); }
main .city-grid li:nth-child(5n+3) .city-card { border-top-color: var(--line-3); }
main .city-grid li:nth-child(5n+4) .city-card { border-top-color: var(--line-4); }
main .city-grid li:nth-child(5n) .city-card { border-top-color: var(--line-5); }
main .city-card:hover, main .city-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 30, 50, .1); }
main .kind-tag { background: var(--stripe); border-color: transparent; }
main .flag.live { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: transparent; color: var(--ok); }
main .flag.live::before { content: "● "; animation: lines-pulse 2s ease-in-out infinite; }
@keyframes lines-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { main .flag.live::before { animation: none; } main .city-card { transition: none; } }
main .home-map .map, main .live-map .map, main .line-map .map { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }

/* lines: the kind's colour when the feed gives none */
main .line-badge { border-radius: .45rem; min-width: 2.6rem; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
main .line-badge.kind-tram { background: var(--line, #c8102e); }
main .line-badge.kind-trolleybus { background: var(--line, #0067a5); }
main .line-badge.kind-bus { background: var(--line, #1f6f43); }
main .line-badge.kind-metro { background: var(--line, #7a3e9d); border-radius: 50%; min-width: 2.2rem; aspect-ratio: 1; display: inline-grid; place-items: center; padding: 0; }
main .line-list li { padding: .35rem .5rem; border-radius: .5rem; }
main .line-list li:hover { background: var(--surface); }

/* a line's stops, as a strip map */
main .stop-line { border-left-width: 6px; margin-left: .4rem; }
main .stop-line li { padding-block: .4rem; }
main .stop-line li::before { width: .85rem; height: .85rem; left: -.66rem; top: .72rem; }
main .direction-tabs { gap: .4rem; margin: .4rem 0 .8rem; }
main .direction-tabs a { padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; background: var(--surface); }
main .direction-tabs a[aria-current="page"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* boards and timetables */
main table.board td:first-child strong { font-size: 1.05rem; }
main table.hours th[scope="row"] { background: var(--stripe); color: var(--text); font-size: 1rem; text-align: center; }
main .arrivals li { padding: .45rem .2rem; }
main .arrivals .eta { font-size: 1.05rem; }
main .journey { border-left: 4px solid var(--line-2); }
main .journey-form { background: var(--surface); }

/* buttons: the main one filled, the others outlined */
main .button.secondary, main button.secondary { background: var(--surface); color: var(--accent); border: 1px solid var(--border); }
main .button.secondary:hover, main button.secondary:hover { border-color: var(--accent); }

/* --- the notice and the footer ------------------------------------------------------------- */
.lines-notice { background: var(--surface); border-top: 1px solid var(--border); color: var(--muted);
  font-size: .85rem; padding-block: .75rem; }
.lines-footer { background: var(--night); color: #b9c6d3; border: 0; font-size: .9rem; margin-top: 0; }
.lines-footer a { color: #fff; }
.lines-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.25rem .5rem; }
.lines-footer-name { font-weight: 800; font-size: 1.15rem; color: #fff; margin: 0 0 .25rem; }
.lines-links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.lines-footer-end { padding-block: .5rem 1.25rem; font-size: .8rem; color: #8c9aa8; }

/* --- a page that is not there -------------------------------------------------------------- */
.lines-lost { text-align: center; padding-block: 2rem; }
.lines-lost-code { display: inline-block; font-weight: 800; font-size: 3.4rem; color: #fff; background: var(--line-1);
  border-radius: 50%; width: 7.5rem; height: 7.5rem; line-height: 7.5rem; margin: 0; letter-spacing: -.03em; }

/* --- small screens ------------------------------------------------------------------------- */
.lines-header .bar, .lines-nav, .lines-brand { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .lines-name { font-size: 1.2rem; }
  .lines-nav ul.menu a { padding: .3rem .6rem; font-size: .92rem; }
  .lines-tools { margin-left: auto; }
  main table th, main table td { padding: .4rem .45rem; }
}

/* the line every site carries: built with Nest */
.nest-credit { margin: .35rem 0 0; font-size: .78rem; opacity: .75; }
.nest-credit a { color: inherit; }

/* --- the road variant (coaches between towns): asphalt with its centre line, a warm accent -- */
.variant-road { --accent: #c2410c; --link: #b23c0a; --line-1: #c2410c; --line-2: #374151; --line-3: #f59e0b; --line-4: #15803d; --line-5: #1d4ed8; }
@media (prefers-color-scheme: dark) { .variant-road { --accent: #fb923c; --link: #fdba74; } }
.variant-road .lines-stripes { height: 10px; background: #2f3640; position: relative; }
.variant-road .lines-stripes span { display: none; }
.variant-road .lines-stripes::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px;
  background: repeating-linear-gradient(90deg, #f5c518 0 28px, transparent 28px 52px); }
.variant-road .lines-mark::before { background: #2f3640; height: .55rem; }
.variant-road .lines-mark::after { border-color: var(--accent); }
.variant-road main .home-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%); }
.variant-road main .home-hero::after { background: repeating-linear-gradient(90deg, #f5c518 0 28px, #2f3640 28px 52px); }
.variant-road main h2::before { border-color: var(--accent); }

/* --- the air variant (airports): a runway with its centre line and edge lights, deep blue,
   signal amber; the board's figures in even columns -------------------------------------- */
.variant-air { --accent: #1d4f91; --link: #1a4a8a; --line-1: #1d4f91; --line-2: #f2a900; --line-3: #0f766e; --line-4: #9f1239; --line-5: #475569; }
@media (prefers-color-scheme: dark) { .variant-air { --accent: #7cb2ff; --link: #a5c8ff; } }
.variant-air .lines-stripes { height: 12px; background: #1f2937; position: relative; }
.variant-air .lines-stripes span { display: none; }
.variant-air .lines-stripes::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 2px;
  background: repeating-linear-gradient(90deg, #f2a900 0 4px, transparent 4px 40px); }
.variant-air .lines-stripes::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px;
  background: repeating-linear-gradient(90deg, #f8fafc 0 34px, transparent 34px 60px); }
.variant-air .lines-mark::before { background: #1f2937; height: .55rem; }
.variant-air .lines-mark::after { border-color: #f2a900; }
.variant-air main .home-hero { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 65%); }
.variant-air main .home-hero::after { background: repeating-linear-gradient(90deg, #f8fafc 0 34px, #1f2937 34px 60px); }
.variant-air main h2::before { border-color: #f2a900; }
.variant-air .airport-codes strong, .variant-air table td.num, .variant-air .board td:first-child { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }

/* consent: consent.css */
/* consent.css: the notice, at the bottom of the page, in the theme's colours. */
.nest-consent-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2000; max-width: 46rem; margin: 0 auto;
  background: var(--surface, #fff); color: var(--text, #222); border: 1px solid var(--border, #ccc);
  border-radius: var(--radius, 10px); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: .9rem 1.1rem; }
.nest-consent-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; }
.nest-consent-form p { flex: 1 1 20rem; margin: 0; }
.nest-consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.nest-consent-choose { flex-basis: 100%; }
.nest-consent-choose summary { cursor: pointer; color: var(--link, var(--accent, #0b5cad)); }
.nest-consent-choose ul { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.nest-consent-services { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .3rem; }

/* admin: preview.css */
/* preview.css — the bar an administrator previewing a theme sees, in any theme (site pages). */
.theme-preview-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; max-width: calc(100% - 2rem);
  padding: .6rem 1rem; border-radius: 10px; font: .9rem/1.4 system-ui, sans-serif;
  background: #1d1c1a; color: #f4f2ec; box-shadow: 0 8px 28px rgb(0 0 0 / .3); }
.theme-preview-bar a { color: #ffd38a; }

/* maps: maps.css */
/* maps.css — the maps module's base look, on the theme's tokens. */
.map-figure { margin: 1rem 0; }
.map { position: relative; height: 24rem; max-height: 70vh; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); z-index: 0; }
.map-page .map { height: 34rem; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.map-popup a, .map-popup strong { font-weight: 600; }
.map-popup p { margin: .25rem 0 0; }
.map-places { columns: 16rem; padding-left: 1.2rem; }
@media (max-width: 40rem) { .map { height: 18rem; } .map-page .map { height: 24rem; } }

/* notifications: toasts.css */
/* toasts.css — the notifications module's base look, on the theme's tokens. */
.toasts { position: fixed; z-index: 200; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem;
  width: min(24rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .8rem .7rem 1rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--muted);
  border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, .16); animation: toast-in .22s ease-out; }
.toast-success { border-left-color: var(--ok); }
.toast-info { border-left-color: var(--focus); }
.toast-warning { border-left-color: #b7791f; }
.toast-error { border-left-color: var(--danger); }
.toast-text { flex: 1; line-height: 1.4; }
.toast-text::before { font-weight: 700; margin-right: .4rem; }
.toast-success .toast-text::before { content: "✓"; color: var(--ok); }
.toast-warning .toast-text::before { content: "!"; color: #b7791f; }
.toast-error .toast-text::before { content: "✕"; color: var(--danger); }
.toast-close { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1;
  padding: 0 .2rem; min-height: 0; cursor: pointer; }
.toast-close:hover { color: var(--text); }
.toast-leaving { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(.5rem); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(1rem); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast-leaving { animation: none; } }
@media (max-width: 40rem) { .toasts { left: 1rem; right: 1rem; width: auto; bottom: .75rem; } }

/* planner: planner.css */
/* planner.css: Încotro on the theme. */
.incotro-form { display: grid; gap: .8rem; max-width: 52rem; margin: 1rem auto .5rem; text-align: left; }
.incotro-where { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: end; }
.incotro-where label, .incotro-when label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.with-locate { display: flex; gap: .3rem; }
.with-locate input { flex: 1; min-width: 0; font-size: 1.05rem; padding: .55rem .8rem; }
.swap { align-self: end; margin-bottom: .2rem; }
@media (max-width: 40rem) { .incotro-where { grid-template-columns: 1fr; } .swap { justify-self: center; } }
.incotro-when { gap: .8rem; flex-wrap: wrap; }
.incotro-modes { display: flex; flex-wrap: wrap; gap: .4rem .9rem; border: 0; padding: 0; margin: 0; }
.incotro-modes legend { font-size: .9rem; margin-bottom: .2rem; }
.mode-pick { display: inline-flex; gap: .3rem; align-items: center; }
.mode-pick.single { flex-basis: 100%; }
.incotro-go { font-size: 1.05rem; padding: .6rem 1.4rem; justify-self: start; }
.trip-options { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.trip-option { padding: .9rem 1rem; }
.trip-head { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.trip-times { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.trip-modes { display: flex; flex-wrap: wrap; gap: .3rem; }
.mode-chip { font-size: .8rem; padding: .1rem .5rem; border-radius: 1rem; background: color-mix(in srgb, var(--accent, #1d4f91) 10%, transparent); }
.trip-badges { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-left: auto; }
.badge-best { background: var(--accent, #1d4f91); color: #fff; }
.badge-fastest, .badge-cheapest, .badge-direct { background: color-mix(in srgb, var(--accent, #1d4f91) 15%, transparent); }
.segments { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-direction: column; }
.segment { display: grid; grid-template-columns: 3.2rem 1.8rem 1fr; gap: .5rem; padding: .45rem 0; border-left: 3px solid var(--seg, #94a3b8); padding-left: .6rem; }
.segment .seg-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.segment .seg-body { display: flex; flex-direction: column; gap: .1rem; }
.segment.mode-train { --seg: #1d4f91; }
.segment.mode-coach { --seg: #c2410c; }
.segment.mode-city { --seg: #0f766e; }
.segment.mode-walk { --seg: #cbd5e1; border-left-style: dotted; }
.segment.mode-car, .segment.mode-taxi { --seg: #6b7280; }
.segment.mode-flight { --seg: #f2a900; }
.trip-actions { gap: .5rem; flex-wrap: wrap; margin-top: .6rem; align-items: center; }
.trip-actions form { margin: 0; }
.save-said .notice { margin: 0; padding: .2rem .6rem; }
.next-day { color: #b3261e; font-size: .75rem; }
.saved-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.saved-list li { padding: .6rem .8rem; gap: .6rem; flex-wrap: wrap; }
.incotro-privacy { margin-top: 2rem; }
@media print { .no-print, header.site, footer.site, nav, .consent-banner { display: none !important; } .segment { break-inside: avoid; } }
.trip-map { margin: 1rem 0; }
.trip-map .map { min-height: 22rem; }

/* pwa: pwa.css */
/* pwa.css: the install button, the iPhone hint, "a new version", "offline": small bars at
   the bottom, above the phone's own controls (safe-area insets). */
.nest-pwa > div {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  box-sizing: border-box;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 2100; /* above sticky headers (1100) and the cookie notice (2000) */
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 24px));
  padding: 8px 10px 8px 14px;
  border-radius: 12px;
  background: #1b1f27;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  line-height: 1.35;
}
.nest-pwa > div[hidden] {
  display: none;
}
.nest-pwa p {
  margin: 0;
}
.nest-pwa a {
  color: #fff;
  text-decoration: underline;
}
.nest-pwa img {
  border-radius: 6px;
  flex: none;
}
.nest-pwa button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  background: #fff;
  color: #1b1f27;
  font-weight: 600;
  white-space: nowrap;
}
.nest-pwa button.nest-pwa-x {
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 8px;
  font-weight: 400;
}
.nest-pwa .nest-pwa-offline {
  top: calc(8px + env(safe-area-inset-top, 0px));
  bottom: auto;
  background: #8a4b00;
}
.nest-pwa-offline-page ul {
  padding-left: 1.2em;
  line-height: 1.8;
}
.nest-pwa-offline-page small {
  opacity: 0.7;
}
@media print {
  .nest-pwa {
    display: none;
  }
}
.nest-pwa .nest-pwa-app a {
  text-decoration: none;
}
.nest-pwa .nest-pwa-app-link span {
  display: block;
  opacity: 0.8;
  font-size: 0.85rem;
}
.nest-pwa .nest-pwa-open {
  background: #fff;
  color: #1b1f27;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

/* rating: rating.css */
/* rating.css: the rating widget (the rating module): stars, useful or not, up/down. */
.nest-rating { margin: 0.8em 0; }
.nest-rating form { margin: 0; }
.nest-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nest-rating-ask { color: var(--muted, #5b6472); font-size: 0.95rem; }
.nest-rating-stars { display: inline-flex; }
.nest-rating button { font: inherit; cursor: pointer; }
.nest-rating .nest-star { background: none; border: 0; padding: 4px 5px; font-size: 1.9rem; line-height: 1; color: #c9ccd3; min-width: 40px; min-height: 40px; }
.nest-rating .nest-star.on { color: #e0a100; }
.nest-rating-summary .nest-star { color: #e0a100; font-size: 1rem; min-width: 0; min-height: 0; padding: 0; }
/* the preview while choosing, only where a mouse hovers (on a phone a tap would leave it lit) */
@media (hover: hover) {
  .nest-rating-stars:hover .nest-star { color: #e0a100; }
  .nest-rating-stars .nest-star:hover ~ .nest-star { color: #c9ccd3; }
}
.nest-rating-summary { margin: 0.2em 0 0; color: var(--muted, #5b6472); font-size: 0.92rem; }
.nest-rating-summary b { color: var(--text, inherit); font-size: 1.05rem; }
.nest-pill { border: 1px solid var(--line, #dcdfe5); background: none; border-radius: 999px; padding: 4px 14px; }
.nest-pill.on { background: var(--accent, #0b5cad); border-color: var(--accent, #0b5cad); color: #fff; }
.nest-updown { gap: 4px; }
.nest-arrow { background: none; border: 1px solid var(--line, #dcdfe5); border-radius: 8px; width: 34px; height: 30px; color: var(--muted, #5b6472); }
.nest-arrow.on { color: var(--accent, #0b5cad); border-color: var(--accent, #0b5cad); }
.nest-score { min-width: 2ch; text-align: center; }
.nest-rating-note { margin: 0.3em 0 0; font-size: 0.88rem; color: var(--muted, #5b6472); }
.nest-rating button:disabled { cursor: default; opacity: 0.6; }
form.inline { display: inline; }

/* content: content.css */
/* content.css — the base look of the CMS: its menus, entries, featured images and summaries.
   Built only on the theme's tokens (--surface, --border, --accent, --radius...), so an
   application restyles it by its own tokens, or by its own stylesheet loaded after this. */
ul.menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
ul.menu li { position: relative; }
ul.menu ul { display: none; position: absolute; z-index: 5; min-width: 12rem; list-style: none; margin: 0; padding: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
ul.menu li:hover > ul, ul.menu li:focus-within > ul { display: block; }
@media (max-width: 40rem) { ul.menu ul { position: static; display: block; border: none; padding-left: 1rem; } }
.entry .body img { border-radius: var(--radius); }
.entry .body .aligncenter { display: block; margin-inline: auto; }
.entry .body .alignleft { float: left; margin: 0 1rem .5rem 0; } .entry .body .alignright { float: right; margin: 0 0 .5rem 1rem; }
@media (max-width: 40rem) { .entry .body .alignleft, .entry .body .alignright { float: none; margin: 0 0 .5rem; } }
.featured img { width: 100%; max-height: 28rem; object-fit: cover; border-radius: var(--radius); }
.summary h2 { margin-top: 0; }
textarea.code { font-family: var(--mono); font-size: .9rem; }
/* a video: a play link until it is played, then YouTube's player in its place */
.video { position: relative; aspect-ratio: 16 / 9; margin: 1rem 0; background: #111; border-radius: var(--radius); overflow: hidden; }
.video a.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .6rem;
  color: #fff; text-decoration: none; font-weight: 600; background: radial-gradient(circle, #333 0, #111 70%); }
.video a.video-play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: .9rem 0 .9rem 1.5rem;
  border-color: transparent transparent transparent currentColor; }
.video a.video-play:hover, .video a.video-play:focus-visible { color: var(--accent); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* the editor's versions: what changed, and how it looked */
.versions { margin-top: 2rem; }
.version-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.version-actions form { margin: 0; }
.version-actions .hint { flex-basis: 100%; margin: 0; }
.version-nav { margin: .5rem 0 1rem; }
.diff { border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem 1rem; background: var(--surface); }
.diff p { margin: .4rem 0; }
.diff .diff-same { color: var(--muted); }
.diff del, .version-fields del { background: color-mix(in srgb, var(--danger) 16%, transparent); color: inherit; text-decoration: line-through; }
.diff ins, .version-fields ins { background: color-mix(in srgb, var(--ok) 18%, transparent); color: inherit; text-decoration: underline; }
.version-preview { max-width: 48rem; }
.version-copy { border-left: 4px solid var(--focus); }
.diff .diff-fold { color: var(--muted); font-style: italic; text-align: center; border-block: 1px dashed var(--border); padding: .2rem 0; }
/* the editor's content, a category at a time */
.content-browse { display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; align-items: start; }
.term-nav { position: sticky; top: 1rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; background: var(--surface); }
.term-nav-head { font-weight: 600; margin: 0 0 .4rem; }
.term-nav ul, .term-counts { list-style: none; padding: 0; margin: 0; }
.term-nav li a { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem .4rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.term-nav li a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.term-nav li a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; }
.term-nav .count, .term-counts .count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.depth-1 { padding-left: 1rem; } .depth-2 { padding-left: 2rem; } .depth-3 { padding-left: 3rem; } .depth-4 { padding-left: 4rem; }
.content-types { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.content-type h2 { margin: 0; font-size: 1.25rem; }
.term-counts { margin-top: .5rem; columns: 2; column-gap: 1.5rem; }
.term-counts li { padding: .15rem 0; break-inside: avoid; }
@media (max-width: 52rem) { .content-browse { grid-template-columns: 1fr; } .term-nav { position: static; } .term-counts { columns: 1; } }
.term-nav ul { display: block; }
.term-nav li { display: block; }
.term-nav li a .count { margin-left: auto; }
.term-nav > p a { color: var(--accent); }

/* transit: transit.css */
/* transit.css: the transit module's base look, on the theme's colours (a theme restyles it). */
.kinds, .flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.kind-tag, .flag { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; border: 1px solid var(--border, #ccc); }
.flag.live { border-color: #1a7f37; color: #1a7f37; }

.line-badge { display: inline-block; min-width: 2.4rem; padding: .15rem .5rem; border-radius: .35rem; text-align: center;
  font-weight: 700; text-decoration: none; line-height: 1.3;
  background: var(--line, var(--accent, #12355b)); color: var(--line-text, #fff); }
.line-badge.kind-metro { border-radius: 50%; min-width: 2rem; }
.line-badge:hover, .line-badge:focus-visible { filter: brightness(1.1); text-decoration: underline; }

.line-group { margin-top: 1.4rem; }
.line-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .45rem 1rem; }
.line-list li { display: flex; align-items: center; gap: .6rem; }
.line-name { color: var(--muted, #555); font-size: .9rem; }

.direction-tabs a[aria-current="page"] { font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--accent, #12355b); }
.line-body { display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 1.2rem; align-items: start; }
@media (max-width: 52rem) { .line-body { grid-template-columns: 1fr; } }
.stop-line { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--line, var(--accent, #12355b)); }
.stop-line li { position: relative; padding: .3rem 0 .3rem 1rem; }
.stop-line li::before { content: ""; position: absolute; left: -.55rem; top: .75rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--surface, #fff); border: 3px solid var(--line, var(--accent, #12355b)); }
.stop-line li:first-child::before, .stop-line li:last-child::before { background: var(--line, var(--accent, #12355b)); }

.serving { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.board td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stop-search input[type="search"] { flex: 1 1 14rem; }
.stop-results { columns: 2 16rem; }
.transit-sources { margin-top: 2rem; font-size: .85rem; border-top: 1px solid var(--border, #ddd); padding-top: .8rem; }
.transit-sources p { margin: .3rem 0; }
.small { font-size: .85rem; }

/* live */
.live-bar { align-items: center; gap: .6rem; margin-bottom: .6rem; }
.live-map .map { min-height: 70vh; }
.live-alerts { margin: .4rem 0 .8rem; padding: .6rem 1rem .6rem 2rem; border-left: 4px solid #b35c00; background: var(--surface, #fff8ec); font-size: .9rem; }
.vehicle-icon { background: none; border: 0; }
.vehicle { display: inline-block; transform: translate(-50%, -50%); padding: .05rem .35rem; border-radius: .3rem; font: 700 .72rem/1.25 system-ui, sans-serif;
  background: var(--line, #12355b); color: var(--line-text, #fff); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); white-space: nowrap; }
.vehicle.kind-tram { border-radius: .15rem; }
.vehicle.old { opacity: .5; }
.arrivals { list-style: none; padding: 0; margin: 0 0 .6rem; }
.arrivals li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--border, #eee); }
.arrivals .eta { margin-left: auto; font-variant-numeric: tabular-nums; }
.live-time { color: #1a7f37; }
.late { color: #b3261e; font-size: .85rem; }
.early { color: #1a7f37; font-size: .85rem; }
tr.canceled td { color: var(--muted, #777); }
.fleet { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .35rem .8rem; }
.fleet li { display: flex; align-items: center; gap: .4rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
.facts dt { color: var(--muted, #555); }
.facts dd { margin: 0; }
.vehicle-notes { border-left: 3px solid var(--border, #ccc); padding-left: 1rem; }
/* home */
.home-hero { text-align: center; max-width: 46rem; margin: 0 auto 1rem; }
.home-search { display: flex; gap: .5rem; max-width: 36rem; margin: 1rem auto .4rem; }
.home-search input[type="search"] { flex: 1; font-size: 1.1rem; padding: .6rem .8rem; }
.search-results { text-align: left; max-width: 36rem; margin: 0 auto; }
.search-results ul { list-style: none; padding: 0; margin: .3rem 0; }
.search-results li { padding: .25rem 0; border-bottom: 1px solid var(--border, #eee); display: flex; justify-content: space-between; gap: 1rem; }
.home-map .map { height: clamp(18rem, 42vh, 26rem); min-height: 0; }
.city-index { columns: 3 12rem; list-style: none; padding: 0; }
.home-cities summary { cursor: pointer; margin: 1rem 0 .5rem; }
/* journeys */
.journey-ends { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 40rem) { .journey-ends { grid-template-columns: 1fr; } }
.journey-ends label { display: flex; flex-direction: column; gap: .25rem; }
.journey-ends input:not([type="hidden"]) { flex: 1; min-width: 0; }
.journeys { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.journey-times { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.legs { list-style: none; padding: 0; margin: .5rem 0 0; }
.leg { display: flex; align-items: baseline; gap: .6rem; padding: .3rem 0; border-top: 1px dashed var(--border, #ddd); }
.leg-time { font-variant-numeric: tabular-nums; min-width: 3rem; color: var(--muted, #555); }
.leg.walk { color: var(--muted, #555); }
.line-timetable { margin-top: 1.5rem; }
table.hours th[scope="row"] { width: 3.5rem; font-variant-numeric: tabular-nums; }
table.hours td { font-variant-numeric: tabular-nums; }
table.hours .minute { display: inline-block; min-width: 1.8rem; }

.home-totals { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; color: var(--muted, #555); }
.home-totals strong { color: var(--text, #222); font-size: 1.15rem; }
.home-top, .home-map { margin-top: 1.6rem; }
.city-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; }
.city-card { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: .9rem 1rem; text-decoration: none; color: inherit;
  background: var(--surface, #fff); border: 1px solid var(--border, #ddd); border-radius: .7rem; }
.city-card:hover, .city-card:focus-visible { border-color: var(--accent, #12355b); text-decoration: none; }
.city-name { font-weight: 750; font-size: 1.15rem; }
.city-count { color: var(--muted, #555); font-size: .9rem; }
.city-count strong { color: var(--text, #222); }

/* coaches: coaches.css */
/* coaches.css: the coach pages' own parts, on the theme and the transit module's look. */
.coach-search { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: .6rem; align-items: end; max-width: 52rem; margin: 1rem auto .5rem; text-align: left; }
.coach-search label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.coach-search input { font-size: 1.05rem; padding: .55rem .8rem; }
@media (max-width: 46rem) { .coach-search { grid-template-columns: 1fr; } }
.country-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.town-body { display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 1.2rem; align-items: start; }
@media (max-width: 52rem) { .town-body { grid-template-columns: 1fr; } }
.stations { list-style: none; padding: 0; }
.stations li { padding: .25rem 0; }
.day-nav { gap: 1rem; align-items: center; margin: .6rem 0 1rem; }
.pair-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted, #555); }
.pair-facts strong { color: var(--text, #222); }
.next-day { color: #b3261e; font-size: .75rem; }
.search-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pair-list { list-style: none; padding: 0; columns: 2 18rem; }
.station-body { display: grid; grid-template-columns: minmax(16rem, 1fr) 1.6fr; gap: 1.2rem; align-items: start; margin: 1rem 0; }
@media (max-width: 52rem) { .station-body { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; margin: 0; }
.facts dt { color: var(--muted, #555); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.station-lines { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.stations.columns { columns: 2 16rem; }
.county-nav { margin: 1rem 0; }
.county-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.facilities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .35rem .8rem; }
.facility { display: flex; gap: .4rem; align-items: center; }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 52rem) { .boards { grid-template-columns: 1fr; } }
.boards caption { text-align: left; font-weight: 700; padding: .3rem 0; }
.town-board { margin: 1rem 0 1.6rem; }
.town-list { list-style: none; padding: 0; columns: 3 13rem; column-gap: 1.2rem; }
.town-list li { padding: .15rem 0; break-inside: avoid; }
.town-list .rank-3 a, .town-list .rank-4 a { font-weight: 700; }

