/* 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; }

/* hub: hub.css */
/* hub.css: the transport app, phone first: big buttons, cards, boards, tabs at the bottom. */
.hub {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* room for the tabs */
}
.hub h1 {
  margin: 0.3em 0 0.4em;
}
.hub h2 {
  font-size: 1.1rem;
  margin: 1.2em 0 0.5em;
}
.hub-note {
  color: var(--muted, #5b6472);
  font-size: 0.92rem;
}
.hub-credits {
  color: var(--muted, #5b6472);
  font-size: 0.78rem;
  margin-top: 1.5em;
}
.hub-hero {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin: 0.8em 0 0.4em;
}
.hub-big {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--accent, #0b5cad);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.05rem;
}
.hub-big span {
  font-size: 1.6rem;
}
.hub-big.alt {
  background: #1b1f27;
}
.hub-card {
  border: 1px solid var(--line, #dcdfe5);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 10px;
  background: var(--card, transparent);
}
.hub-card > header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.hub-card > header a {
  text-decoration: none;
}
.hub-card > header small {
  color: var(--muted, #5b6472);
}
.hub-star {
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #c98a00;
  padding: 4px 6px;
}
.hub-small {
  background: none;
  border: 1px solid var(--line, #dcdfe5);
  border-radius: 6px;
  padding: 0 8px;
  cursor: pointer;
}
.hub-place-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hub-place-head h1 {
  margin: 0.1em 0 0;
}
.hub-kind {
  font-size: 0.85rem;
  color: var(--muted, #5b6472);
}
.hub-switch {
  display: flex;
  gap: 6px;
  margin: 0.6em 0;
}
.hub-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line, #dcdfe5);
  text-decoration: none;
}
.hub-switch a.on {
  background: var(--accent, #0b5cad);
  border-color: var(--accent, #0b5cad);
  color: #fff;
}
.hub-rows {
  list-style: none;
  padding: 0;
  margin: 0.4em 0;
}
.hub-row {
  display: grid;
  grid-template-columns: 4.6em auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line, #eceef2);
}
.hub-rows.compact .hub-row {
  padding: 3px 0;
  border: 0;
  font-size: 0.95rem;
}
.hub-row.canceled .hub-time,
.hub-row.canceled .hub-where {
  text-decoration: line-through;
  opacity: 0.6;
}
.hub-time s {
  opacity: 0.6;
  font-size: 0.85em;
}
.hub-late {
  color: #b42318;
}
.hub-line {
  display: inline-block;
  min-width: 2.2em;
  text-align: center;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--line, #e8ebf0);
  color: var(--line-text, #1b1f27);
  white-space: nowrap;
}
.hub-line:not([data-line]) {
  background: #e8ebf0;
  color: #1b1f27;
}
.hub-where small {
  display: block;
  color: var(--muted, #5b6472);
  font-size: 0.8rem;
}
.hub-state {
  font-size: 0.82rem;
  color: #b42318;
  white-space: nowrap;
}
.hub-state small {
  color: var(--muted, #5b6472);
}
.hub-coming {
  list-style: none;
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 8px;
  background: rgba(11, 92, 173, 0.08);
}
.hub-coming li {
  padding: 2px 0;
}
.hub-locate {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hub-locate button {
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: var(--accent, #0b5cad);
  color: #fff;
  cursor: pointer;
}
.hub-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted, #5b6472);
}
.hub-more {
  margin-top: 1em;
}
.hub-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--bg, #fff);
  border-top: 1px solid var(--line, #dcdfe5);
}
.hub-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--muted, #5b6472);
  padding: 2px 10px;
  border-radius: 10px;
}
.hub-tabs a span {
  font-size: 1.25rem;
}
.hub-tabs a.on {
  color: var(--accent, #0b5cad);
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .hub-tabs {
    background: #15181e;
    border-color: #2e3440;
  }
  .hub-line:not([data-line]) {
    background: #2e3440;
    color: #e6e8ec;
  }
}
/* the install and offline notices sit above the tabs */
body:has(.hub-tabs) .nest-pwa > div:not(.nest-pwa-offline) {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
@media print {
  .hub-tabs {
    display: none;
  }
}

/* icons: drawn by a mask in the text's colour (the page policy allows data: images) */
.hub-ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.hub-ico-city { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M5%203h14a2%202%200%200%201%202%202v11a2%202%200%200%201-2%202v2h-3v-2H8v2H5v-2a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2zm0%203v5h14V6zm2%208a1.3%201.3%200%201%200%200%202.6A1.3%201.3%200%200%200%207%2014zm10%200a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6z%22/%3E%3C/svg%3E"); }
.hub-ico-train { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M7%202h10a3%203%200%200%201%203%203v10a3%203%200%200%201-2.2%202.9L20%2021h-2.5l-2-3h-7l-2%203H4l2.2-3.1A3%203%200%200%201%204%2015V5a3%203%200%200%201%203-3zm0%203v5h10V5zm1%208a1.3%201.3%200%201%200%200%202.6A1.3%201.3%200%200%200%208%2013zm8%200a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6z%22/%3E%3C/svg%3E"); }
.hub-ico-coach { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M2%206a2%202%200%200%201%202-2h12.5a3%203%200%200%201%202.6%201.5L22%2010v6a2%202%200%200%201-2%202h-1a2.5%202.5%200%200%201-5%200H9a2.5%202.5%200%200%201-5%200H4a2%202%200%200%201-2-2zm2%200v4h4V6zm6%200v4h4V6zm6%200v4h4l-2-3.4a1%201%200%200%200-.9-.6z%22/%3E%3C/svg%3E"); }
.hub-ico-flight { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21%2016v-2l-8-5V3.5a1.5%201.5%200%200%200-3%200V9l-8%205v2l8-2.5V19l-2%201.5V22l3.5-1%203.5%201v-1.5L13%2019v-5.5z%22/%3E%3C/svg%3E"); }
.hub-ico-pin { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202a7%207%200%200%201%207%207c0%205-7%2013-7%2013S5%2014%205%209a7%207%200%200%201%207-7zm0%204.5a2.5%202.5%200%201%200%200%205%202.5%202.5%200%200%200%200-5z%22/%3E%3C/svg%3E"); }
.hub-ico-compass { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202a10%2010%200%201%201%200%2020%2010%2010%200%200%201%200-20zm0%202a8%208%200%201%200%200%2016%208%208%200%200%200%200-16zm4.5%203.5-2.3%206.7-6.7%202.3%202.3-6.7zM12%2010.8a1.2%201.2%200%201%200%200%202.4%201.2%201.2%200%200%200%200-2.4z%22/%3E%3C/svg%3E"); }
.hub-ico-home { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%203l9%208h-3v9h-5v-6h-2v6H6v-9H3z%22/%3E%3C/svg%3E"); }
.hub-ico-star { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202.5l2.9%206.1%206.6.8-4.9%204.6%201.3%206.6L12%2017.3l-5.9%203.3%201.3-6.6-4.9-4.6%206.6-.8z%22/%3E%3C/svg%3E"); }

/* in the app, on a phone: the tabs are the menu; the site's header only its name */
@media (max-width: 760px) {
  body:has(.hub-tabs) .site-nav,
  body:has(.hub-tabs) .lines-tagline,
  body:has(.hub-tabs) .site-header nav { display: none; }
  body:has(.hub-tabs) .site-header .bar { padding-top: 6px; padding-bottom: 6px; }
}
.hub-big .hub-ico { width: 1.7em; height: 1.7em; }
.hub-tabs a .hub-ico { width: 1.45em; height: 1.45em; }
.hub-kind-group h2 .hub-ico, .hub-card b .hub-ico { color: var(--accent, #0b5cad); margin-right: 2px; }

.hub-ico-bell { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202a6%206%200%200%201%206%206v4.5l2%203.5H4l2-3.5V8a6%206%200%200%201%206-6zm-2.5%2016h5a2.5%202.5%200%200%201-5%200z%22/%3E%3C/svg%3E"); }
.hub-row { grid-template-columns: 4.6em auto 1fr auto auto; }
.hub-rows.compact .hub-row { grid-template-columns: 4.6em auto 1fr auto; }
.hub-bell { background: none; border: 0; padding: 4px 6px; cursor: pointer; color: var(--muted, #8a93a3); font-size: 1.05rem; }
.hub-bell.on { color: #c98a00; }
.hub-lead { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted, #5b6472); }
.hub-lead select { margin-left: 6px; font: inherit; }
.hub-toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 24px);
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 2200; background: #1b1f27; color: #fff;
  padding: 10px 14px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.hub-toast[hidden] { display: none; }
.hub-alerts ul { list-style: none; padding: 0; }
.hub-alerts li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid var(--line, #eceef2); }
/* the bells in one column, whether a row has a delay or not */
.hub-row { grid-template-columns: 4.6em auto 1fr 2.2em 4.2em; }
.hub-rows.compact .hub-row { grid-template-columns: 4.6em auto 1fr auto; }
.hub-state { text-align: right; }
.hub-lead { flex-wrap: wrap; font-weight: 400; margin: 0.4em 0 0.2em; }
.hub-lead label { font-weight: 400; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hub-lead select { width: auto; padding: 3px 8px; font-weight: 600; border-radius: 8px; }

/* 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;
}

