/* TaxiFare. Tokens and components from the D1 design review (token sheet,
   home and Paris mockups). Plain CSS, no build step. */

/* ---------- Fonts: Inter and Inter Display, self-hosted Latin subsets ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/InterDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/InterDisplay-ExtraBold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    color-scheme: light;
    --yellow: #FFC21A;
    --ink: #15171C;
    --amber: #8A5A00;
    --paper: #F5F5F0;
    --surface: #FFFFFF;
    --line: #DADDD4;
    --muted: #5A6170;
    --dot: rgba(21, 23, 28, 0.10);
    --chip: #FFF1C7;
    --chip-icon: #8A5A00;
    --ok: #2E7D4F;
    --ok-bg: #E3F1E8;
    --stale: #8F5600;
    --stale-bg: #FBEFD9;
    --bad: #B23A26;
    --bad-bg: #FBE6E1;
    --draft: #5A6170;
    --draft-bg: #ECEDE7;
    --calc-bg: #FFF7DE;
    --calc-line: #F0D98C;
    --meter: #15171C;
    --meter-edge: #15171C;
    --zone-1: #6B5FD3;
    --zone-2: #2A9D8F;
    --zone-3: #D9622B;
    --zone-4: #2F6FDE;
    --zone-1-fill: rgba(107, 95, 211, 0.16);
    --zone-2-fill: rgba(42, 157, 143, 0.12);
    --zone-3-fill: rgba(217, 98, 43, 0.14);
    --base-seg: #5A6170;
    --map-bg: #EEEEE8;
    --raise: 0 1px 2px rgba(21, 23, 28, 0.05), 0 16px 40px rgba(21, 23, 28, 0.08);
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 16px;
    --gutter: clamp(16px, 4vw, 40px);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Inter Display", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --ink: #EEF0EA;
        --amber: #FFD25C;
        --paper: #101215;
        --surface: #181B20;
        --line: #2B3038;
        --muted: #9AA2AE;
        --dot: rgba(238, 240, 234, 0.10);
        --chip: rgba(255, 194, 26, 0.12);
        --chip-icon: #FFC21A;
        --ok: #5CC48A;
        --ok-bg: rgba(92, 196, 138, 0.14);
        --stale: #F0A640;
        --stale-bg: rgba(240, 166, 64, 0.14);
        --bad: #F07A63;
        --bad-bg: rgba(240, 122, 99, 0.14);
        --draft: #B4BBC6;
        --draft-bg: rgba(180, 187, 198, 0.12);
        --calc-bg: rgba(255, 194, 26, 0.07);
        --calc-line: rgba(255, 194, 26, 0.28);
        --meter: #0B0C0F;
        --meter-edge: #2B3038;
        --zone-1: #8D83E8;
        --zone-2: #3FBFAF;
        --zone-3: #F07F4A;
        --zone-4: #5B8FF0;
        --zone-1-fill: rgba(141, 131, 232, 0.20);
        --zone-2-fill: rgba(63, 191, 175, 0.14);
        --zone-3-fill: rgba(240, 127, 74, 0.16);
        --base-seg: #5B6472;
        --map-bg: #14171B;
        --raise: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #EEF0EA;
    --amber: #FFD25C;
    --paper: #101215;
    --surface: #181B20;
    --line: #2B3038;
    --muted: #9AA2AE;
    --dot: rgba(238, 240, 234, 0.10);
    --chip: rgba(255, 194, 26, 0.12);
    --chip-icon: #FFC21A;
    --ok: #5CC48A;
    --ok-bg: rgba(92, 196, 138, 0.14);
    --stale: #F0A640;
    --stale-bg: rgba(240, 166, 64, 0.14);
    --bad: #F07A63;
    --bad-bg: rgba(240, 122, 99, 0.14);
    --draft: #B4BBC6;
    --draft-bg: rgba(180, 187, 198, 0.12);
    --calc-bg: rgba(255, 194, 26, 0.07);
    --calc-line: rgba(255, 194, 26, 0.28);
    --meter: #0B0C0F;
    --meter-edge: #2B3038;
    --zone-1: #8D83E8;
    --zone-2: #3FBFAF;
    --zone-3: #F07F4A;
    --zone-4: #5B8FF0;
    --zone-1-fill: rgba(141, 131, 232, 0.20);
    --zone-2-fill: rgba(63, 191, 175, 0.14);
    --zone-3-fill: rgba(240, 127, 74, 0.16);
    --base-seg: #5B6472;
    --map-bg: #14171B;
    --raise: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    font-feature-settings: "cv11";
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-weight: 800; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 4px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--yellow); color: #15171C; padding: 10px 16px; border-radius: var(--radius-m); font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2, .section-title { font-size: clamp(28px, 3.4vw, 36px); }
.section-head p { margin-top: 6px; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 240px), 100%), 1fr)); }

/* ---------- Header and menus ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.wordmark { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.035em; }
.wordmark span { color: var(--amber); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav-link, .menu > summary {
    display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 550; cursor: pointer; list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.nav-link:hover, .menu > summary:hover, .menu[open] > summary { background: var(--surface); }
.menu { position: relative; }
.menu[open] > summary .icon { transform: rotate(180deg); }
.menu-panel {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: min(560px, calc(100vw - 32px));
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--raise);
    padding: 20px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.menu-panel h3 { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px; margin-inline: -8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.menu-item:hover { background: var(--paper); }
.menu-item small { display: block; color: var(--muted); font-size: 13px; }
.menu-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; font-weight: 600; }
.theme-toggle {
    width: 44px; height: 44px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface);
    color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle .icon { display: none; }
html:not([data-theme]) .theme-toggle .i-system,
html[data-theme="light"] .theme-toggle .i-light,
html[data-theme="dark"] .theme-toggle .i-dark { display: block; }

/* Language: the menu next to the theme switch, the "EN" mark on links to
   English-only pages, and the banner that offers the browser's language. */
.lang-menu > summary { gap: 6px; font-size: 14px; font-weight: 650; letter-spacing: 0.02em; }
.lang-menu .menu-panel-end { left: auto; right: 0; min-width: 240px; grid-template-columns: 1fr; padding: 12px 16px; }
.lang-menu .menu-item { justify-content: space-between; }
.lang-menu .menu-item[aria-current] { font-weight: 650; }
.lang-menu .is-untranslated { color: var(--muted); }
/* Currency: the approximate fare in the reader's currency ("≈ €8.80") after
   each final fare, filled by app.js, and the menu that picks it. */
.fx {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 2px 9px; border-radius: 999px;
    background: color-mix(in srgb, var(--yellow) 22%, transparent); color: var(--ink);
    font-family: var(--font); font-size: 13px; font-weight: 650; letter-spacing: 0; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fx-full {
    gap: 10px; margin-top: 6px; padding: 5px 14px 5px 5px; font-size: 15px; font-weight: 500; line-height: 1.3;
    border: 1px solid color-mix(in srgb, var(--yellow) 55%, transparent); cursor: pointer;
}
.fx-full b { font-weight: 750; font-size: 17px; }
.fx-full:hover, .fx-full:focus-visible { background: color-mix(in srgb, var(--yellow) 34%, transparent); }
.meter .fx-full { align-self: flex-start; margin-top: 4px; color: #EEF0EA; background: rgba(255, 194, 26, 0.14); border-color: rgba(255, 194, 26, 0.45); }
.meter .fx-full b { color: #FFFFFF; }
.meter .fx-full:hover, .meter .fx-full:focus-visible { background: rgba(255, 194, 26, 0.24); }
.amount-l + .fx { display: flex; margin-top: 8px; }
.amount-l + .fx-full { gap: 8px; padding-right: 12px; font-size: 14px; }
.amount-l + .fx-full b { font-size: 15px; }
.trip-fare .fx { align-self: center; }
td.num .fx { display: flex; margin: 4px 0 2px auto; }
.fx:empty { display: none; }
.fx-menu > summary { gap: 8px; font-size: 14px; font-weight: 650; letter-spacing: 0.02em; }
.fx-menu .menu-panel-end { left: auto; right: 0; width: min(360px, calc(100vw - 32px)); min-width: 0; grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.fx-panel { display: flex; flex-direction: column; min-height: 0; }
.fx-intro { padding: 16px 18px 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.fx-list { max-height: min(400px, 56vh); overflow-y: auto; padding: 0 8px 8px; scrollbar-width: thin; }
.fx-list h3 { margin: 12px 10px 4px; }
.fx-item {
    display: grid; grid-template-columns: 34px 1fr auto 16px; align-items: center; gap: 12px; width: 100%; min-height: 46px;
    padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.fx-item:hover, .fx-item:focus-visible { background: var(--paper); }
.fx-item[aria-pressed="true"] { background: var(--paper); font-weight: 650; }
.fx-item[aria-pressed="true"] .fx-sign { background: var(--yellow); border-color: var(--yellow); color: #15171C; }
.fx-item .fx-check { visibility: hidden; color: var(--ink); }
.fx-item[aria-pressed="true"] .fx-check { visibility: visible; }
.fx-item > .fx-sign:only-of-type + .fx-name { grid-column: 2 / 4; }
.fx-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-code { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.fx-sign {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
}
.fx-sign.is-long { font-size: 11px; letter-spacing: 0; }
.fx-sign .icon { color: var(--muted); }
.fx-sign-s { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; background: var(--yellow); border-color: var(--yellow); color: #15171C; }
.fx-sign-s.is-long { font-size: 9px; }
.fx-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 18px 14px; border-top: 1px solid var(--line); background: var(--paper); font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.fx-note .icon { flex: none; margin-top: 2px; }
.lang-banner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px var(--gutter);
    background: var(--surface); border-bottom: 1px solid var(--line); font-size: 15px;
}
.lang-banner span { flex: 1 1 220px; }
.lang-banner .btn { height: 40px; padding: 0 16px; }

/* ---------- Controls ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
    border-radius: var(--radius-m); border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 700;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: #15171C; }
.btn-primary:hover { background: #FFCC40; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select {
    height: 48px; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px;
    font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: var(--surface);
}
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 550;
}
.chip .icon { color: var(--amber); width: 15px; height: 15px; }
.icon-chip { width: 40px; height: 40px; border-radius: var(--radius-m); background: var(--chip); color: var(--chip-icon); display: flex; align-items: center; justify-content: center; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-stale { background: var(--stale-bg); color: var(--stale); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-draft { background: var(--draft-bg); color: var(--draft); }
.flag { width: 36px; height: 27px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); flex: none; }
.flag-s { width: 28px; height: 21px; border-radius: 4px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-family: var(--font); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
a.card { color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--muted); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-m); background: var(--draft-bg); color: var(--ink); font-size: 15px; }
.notice .icon { color: var(--muted); margin-top: 2px; }

/* ---------- Home ---------- */
.hero { background-color: var(--paper); background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.3px); background-size: 22px 22px; border-bottom: 1px solid var(--line); }
.hero .container { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: clamp(40px, 7vw, 88px); }
.hero-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.045em; }
.hero h1 span { color: var(--muted); }
.hero-lead { max-width: 560px; font-size: 18px; color: var(--muted); }
.hero-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px; box-shadow: var(--raise); }
.hero-form .field { flex: 1 1 260px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.changes-card { flex: 0 1 380px; min-width: 0; box-shadow: var(--raise); gap: 4px; }
.changes-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.changes-card h2 { font-family: var(--font); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.change { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.change-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.change-head strong { font-size: 15px; }
.change-head .badge { margin-left: auto; }
.change p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.stat { gap: 14px; padding: 20px; }
.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; color: var(--muted); }
.trip { gap: 16px; }
.trip-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.trip-top .pill { margin-left: auto; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 600; }
.trip-route { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.trip-fare { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.trip-fare strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.trip-fare span, .trip-note { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-n { width: 36px; height: 36px; border-radius: 999px; background: var(--yellow); color: #15171C; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.region-city { display: flex; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--ink); text-decoration: none; }
.region-city strong { flex: 1; font-size: 16px; }
.region-city small { color: var(--muted); font-size: 13px; }
.cta { background: #15171C; color: #EEF0EA; border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); }
.cta p { color: #C9CED6; margin-top: 8px; }
.cta-copy { flex: 1 1 420px; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 17px; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 680px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 80px; }
.site-footer .container { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-about { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer-cols { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); } .footer-about { grid-column: auto; } }
.footer-cols h3 { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer-cols a { display: flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { text-decoration: underline; }
.footer-cols p { font-size: 14px; color: var(--muted); margin-top: 10px; }
/* Blocks, not flex, so a wrapped label keeps its EN mark beside the last word. */
.footer-cols nav a { display: block; min-height: 0; padding: 6px 0; line-height: 1.35; }
.footer-cols nav .footer-all { display: flex; gap: 6px; font-weight: 600; }
.footer-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-trust li { display: flex; align-items: center; gap: 8px; }
.footer-trust .icon { color: var(--ok); flex: none; }
.footer-cols .footer-trust a, .footer-about p a { display: inline; min-height: 0; font-size: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.footer-base { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.footer-base p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.footer-legal a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: inherit; }

/* ---------- City page ---------- */
/* Main content first (in the page and on screen); on wide screens a sticky
   sidebar beside it with the contents and a few related cities. */
.city-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 24px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.city-main { min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.sidebar h2 { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sidebar-link { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sidebar-all { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; }
.toc { gap: 0; }
.toc h2 { margin-bottom: 8px; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.toc a:hover, .toc a[aria-current] { color: var(--ink); border-left-color: var(--yellow); }
@media (min-width: 1080px) {
    .city-layout { grid-template-columns: minmax(0, 1fr) 240px; }
    .sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
    .city-main > .tabs { display: none; }
}
@media (max-width: 1079px) {
    .toc { display: none; }
    /* The tabs stay at the top while reading, full width, on the page colour. */
    .city-main > .tabs {
        position: sticky; top: 0; z-index: 15; margin: -38px calc(-1 * var(--gutter)) -24px; padding-inline: var(--gutter);
        background: var(--paper); scrollbar-width: none;
    }
    .city-main > .tabs::-webkit-scrollbar { display: none; }
    .city-main > .tabs.is-stuck { box-shadow: 0 6px 16px -12px rgba(21, 23, 28, 0.35); }
    /* A section jumped to lands below the tabs. */
    .city-main { --section-offset: 64px; }
}
.byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.byline dl { flex: 1 1 420px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.byline dl > div { display: flex; gap: 6px; }
.byline dd { margin: 0; color: var(--ink); font-weight: 600; }
.page-head { display: flex; flex-direction: column; gap: 18px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.answer { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink); max-width: 680px; }
.page-lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tabs a { flex: none; height: 44px; padding: 0 14px; display: flex; align-items: center; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs:not(.is-spied) a:first-child, .tabs a[aria-current], .tabs a:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.city-main section { scroll-margin-top: var(--section-offset, 16px); display: flex; flex-direction: column; gap: 16px; }
.city-main section > h2 { font-size: 28px; }
.calc { background: var(--calc-bg); border: 1px solid var(--calc-line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); }
.calc h2 { font-size: 22px; }
.calc .field-place { flex-basis: 200px; }
.calc .field-when { flex-basis: 180px; }
.calc .field-at { flex-basis: 200px; }
.calc .field-at[hidden] { display: none; }
.calc .field-at { position: relative; }
.when-panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; width: max(100%, 280px); max-width: calc(100vw - 32px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--raise);
    padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.when-panel[hidden] { display: none; }
.when-row { display: flex; flex-direction: column; gap: 6px; }
.when-time { display: flex; align-items: center; gap: 6px; }
.when-part { flex: 1 1 0; min-width: 0; display: block; }
.when-part .select-button { padding-inline: 10px; }
.when-colon { font-size: 18px; font-weight: 700; color: var(--ink); }
.when-done { height: 44px; justify-content: center; }
.select-button.when-trigger[aria-expanded="true"] .select-chevron { transform: none; }
.calc-more { flex-basis: 100%; }
.calc-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.calc-more summary::-webkit-details-marker { display: none; }
.calc-more[open] summary .icon { transform: rotate(180deg); }
.calc-more .form-row { padding-top: 8px; }
.calc-error { color: var(--bad); font-weight: 600; }
.calc-result { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.meter { flex: 1 1 260px; background: var(--meter); border: 1px solid var(--meter-edge); border-radius: var(--radius-l); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.meter-label { font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: #9AA2AE; }
.meter-fare { font-family: var(--font-display); font-size: clamp(44px, 6vw, 56px); font-weight: 700; color: var(--yellow); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.meter-range { font-size: 14px; color: #C9CED6; font-variant-numeric: tabular-nums; }
.meter-meta { font-size: 13px; color: #9AA2AE; }
.meter-compare { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--meter-edge); font-size: 14px; line-height: 1.45; color: #C9CED6; }
.meter-compare strong { color: #EEF0EA; font-variant-numeric: tabular-nums; }
.meter-compare a { color: var(--yellow); white-space: nowrap; }
.trip-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.trip-facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.trip-facts dt { font-weight: 700; color: var(--ink); }
.trip-facts dd { margin: 0; color: var(--muted); }
.route-via { margin: 0 0 16px; max-width: 70ch; color: var(--muted); }
.route-groups { border-bottom: 1px solid var(--line); }
.route-groups details { border-top: 1px solid var(--line); }
.route-groups summary { min-height: 56px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; font-weight: 650; list-style: none; }
.route-groups summary::-webkit-details-marker { display: none; }
.route-groups summary .icon { margin-left: auto; color: var(--muted); }
.route-groups details[open] summary .icon { transform: rotate(180deg); }
.route-groups .link-row { padding-bottom: 18px; }
.route-count { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--chip); color: var(--chip-icon); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.meter-trip { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--meter-edge); font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--yellow); }
.meter-trip .icon { flex: none; }
.meter-compare + .meter-trip { border-top: 0; padding-top: 0; margin-top: 0; }
.meter-message { font-size: 17px; color: #EEF0EA; line-height: 1.45; }
.lines { flex: 2 1 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 8px 20px; display: flex; flex-direction: column; }
.line { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-label { font-size: 15px; font-weight: 600; }
.line-source { font-size: 13px; color: var(--muted); }
.line-amount { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-total { border-bottom: 0; padding: 14px 0 10px; }
.line-total .line-label { font-weight: 750; }
.line-total .line-amount { font-size: 18px; font-weight: 800; }
.strip { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.strip span { min-width: 3px; }
.seg-base { background: var(--base-seg); }
.seg-t1 { background: var(--zone-1); }
.seg-t2 { background: var(--zone-2); }
.seg-t3 { background: var(--zone-3); }
.seg-flat { background: var(--zone-4); }
.seg-extra { background: var(--zone-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); padding: 0; margin: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.events { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.events li { display: flex; gap: 10px; }
.events b { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 64px; font-weight: 650; }
.warnings { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.bullets li::before { content: ""; flex: none; margin-top: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.table-wrap th { vertical-align: top; text-align: left; padding: 14px 18px; font-size: 13px; font-weight: 650; color: var(--muted); border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.table-wrap small { display: block; color: var(--muted); font-weight: 500; }
.amount-l { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.amount-m { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.zone-map-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.zone-map { display: block; width: 100%; height: auto; background: var(--map-bg); }
.zone-map path { fill-rule: evenodd; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.zm-service { fill: var(--zone-2-fill); stroke: var(--zone-2); }
.zm-area-1 { fill: var(--zone-1-fill); stroke: var(--zone-1); }
.zm-area-2 { fill: var(--zone-2-fill); stroke: var(--zone-2); }
.zm-charge { fill: var(--zone-3-fill); stroke: var(--zone-3); }
.zm-flat { fill: none; stroke: var(--zone-4); stroke-dasharray: 2 4; stroke-width: 2.5 !important; }
.zm-airport { fill: none; stroke: var(--ink); stroke-dasharray: 6 5; stroke-width: 2 !important; }
.zm-label { font-family: var(--font); font-size: 13px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--map-bg); stroke-width: 4px; }
.zm-route-casing { fill: none; stroke: #15171C; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.zm-route { fill: none; stroke: var(--yellow); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.zm-route-straight { stroke-dasharray: 10 9; stroke-linecap: butt; }
.zm-start { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.zm-end { fill: var(--ink); }
.zm-event { fill: var(--zone-2); stroke: var(--surface); stroke-width: 3; }
.map-legend { padding: 16px 20px; border-top: 1px solid var(--line); }

/* Interactive map (MapLibre), mounted over the SVG once it scrolls into view. */
.map-frame { position: relative; background: var(--map-bg); }
.map-frame.has-map { height: clamp(340px, 60vw, 560px); }
.map-frame.has-map > .zone-map { height: 100%; transition: opacity 0.3s; }
.map-frame.is-live > .zone-map { opacity: 0; pointer-events: none; }
.map-frame > .map-live { position: absolute; inset: 0; } /* beats maplibregl-map, which loads later */
.map-live .maplibregl-ctrl-attrib { font-size: 11px; }
.map-live .maplibregl-popup-content { font: 600 13px/1.4 var(--font); color: #15171C; padding: 8px 12px; border-radius: var(--radius-s); }
.map-marker { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); cursor: pointer; }
.map-marker-start { background: #FFFFFF; border: 4px solid #15171C; }
.map-marker-end { background: #15171C; border: 3px solid #FFFFFF; }
.map-marker-event {
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    background: var(--zone-2); border: 2px solid #FFFFFF; color: #FFFFFF; font: 700 12px/1 var(--font);
}
.swatch-route { height: 5px; width: 18px; box-shadow: 0 0 0 1.5px #15171C; }
.calc-map-link { margin: 0; font-size: 14px; font-weight: 600; }
.calc-map-link a { display: inline-flex; align-items: center; gap: 6px; }

/* "Along the route" is numbered like the markers on the map. */
ol.events { counter-reset: event; }
ol.events li { counter-increment: event; align-items: baseline; }
ol.events li::before {
    content: counter(event); flex: none; width: 20px; height: 20px; border-radius: 50%; align-self: center;
    background: var(--zone-2); color: #FFFFFF; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* "Report a wrong fare" under the calculator. */
.report { border-top: 1px solid var(--calc-line); padding-top: 14px; }
.report summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.report-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); resize: vertical; }
.field input[type=file] { height: auto; padding: 10px; }
.report-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.report-done { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; color: var(--ok); font-weight: 600; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 600; }

/* Contact form: a grid, so no field is ever stretched by its neighbours. */
.contact-card { gap: 20px; padding: clamp(20px, 4vw, 32px); }
.contact-card h2 { font-size: 22px; margin: 0; }
.contact-card .form-error { color: var(--bad); font-size: 15px; }
.contact-form { display: grid; gap: 20px; }
.contact-form[hidden], .contact-thanks[hidden] { display: none; }
.cf-row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.cf-optional { font-weight: 400; color: var(--muted); }
.cf-field input, .cf-field select, .cf-field textarea {
    width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px;
    font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cf-field input, .cf-field select { height: 48px; }
.cf-field textarea { padding: 12px 14px; min-height: 160px; resize: vertical; line-height: 1.5; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.cf-field.has-error input, .cf-field.has-error select, .cf-field.has-error textarea { border-color: var(--bad); }
.contact-card .cf-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--bad); }
.cf-hint { margin: 0; font-size: 13px; color: var(--muted); }
.cf-count { text-align: right; }
.cf-privacy { margin: 0; font-size: 13px; color: var(--muted); }
.cf-submit { justify-self: start; min-width: 200px; }
.cf-submit[disabled] { opacity: 0.7; cursor: progress; }
@media (max-width: 639px) { .cf-submit { justify-self: stretch; } }
.contact-thanks { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--ok-bg, var(--surface)); border: 1px solid var(--line); }
/* Focused by the script so screen readers announce it; no ring around a message. */
.contact-thanks:focus, .contact-thanks:focus-visible { outline: none; box-shadow: none; }
.contact-thanks p { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-thanks .icon-chip { color: var(--ok); flex: none; }

/* Rows of links to airport and route pages. */
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Place search in the calculator. */
.combo { position: relative; }
.combo-list {
    position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; overflow-y: auto;
    margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-m); box-shadow: var(--raise);
}
.combo-list li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--radius-s); cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 550; }
.combo-list li small { color: var(--muted); font-size: 13px; font-weight: 450; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--chip); }

/* The home page's city search (app.js). */
.city-search-icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field .city-search input { padding-left: 44px; }
.city-search-list { max-height: min(480px, 65vh); }
.combo-list .combo-group { display: block; padding: 8px 10px 4px; cursor: default; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.combo-list li.city-option { flex-direction: row; align-items: center; gap: 12px; }
.city-option-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.city-option-name { font-weight: 600; }
.city-option mark { background: none; color: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 2px; }
.combo-list li.city-search-all { display: block; margin-top: 4px; padding: 0; border-top: 1px solid var(--line); border-radius: 0; cursor: default; }
.combo-list li.city-search-all:hover { background: none; }
.city-search-all a { display: block; padding: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.city-search-all a:hover { text-decoration: underline; }
.city-search-note { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--bad); }

/* Dropdowns (app.js turns each <select> into these; the select stays, hidden). */
.select { position: relative; width: 100%; min-width: 0; }
.select-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select-button {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 12px 0 14px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
    font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.select-button:hover { border-color: var(--muted); }
.select-button[aria-expanded="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.select-button.is-placeholder .select-value { color: var(--muted); }
.select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.15s; }
.select-button[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }
.select-button[aria-invalid="true"], .has-error .select-button { border-color: var(--bad); }
.select-list { right: auto; width: max-content; min-width: 100%; max-width: min(360px, calc(100vw - 32px)); max-height: min(320px, 50vh); overscroll-behavior: contain; }
.select.opens-up .select-list { top: auto; bottom: calc(100% + 4px); }
.select.aligns-right .select-list { left: auto; right: 0; }
.select-list li { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: 15px; font-weight: 500; }
.select-list li.select-placeholder { color: var(--muted); }
.select-list li[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.select-list .select-check { flex: none; width: 16px; height: 16px; color: var(--chip-icon); visibility: hidden; }
.select-list li.is-chosen { font-weight: 650; }
.select-list li.is-chosen .select-check { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .select-button, .select-chevron { transition: none; } }
.swatch.zm-service, .swatch.zm-area-1, .swatch.zm-area-2, .swatch.zm-charge { border: 2px solid; }
.swatch.zm-service { background: var(--zone-2-fill); border-color: var(--zone-2); }
.swatch.zm-area-1 { background: var(--zone-1-fill); border-color: var(--zone-1); }
.swatch.zm-area-2 { background: var(--zone-2-fill); border-color: var(--zone-2); }
.swatch.zm-charge { background: var(--zone-3-fill); border-color: var(--zone-3); }
.swatch.zm-flat { border: 2px dotted var(--zone-4); }
.swatch.zm-airport { border: 2px dashed var(--ink); }
.swatch.zm-route { height: 5px; width: 18px; background: var(--yellow); box-shadow: 0 0 0 1.5px #15171C; }
.why { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.why div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.why div:last-child { border-bottom: 0; }
.why strong { flex: 1 1 200px; font-weight: 650; }
.why span { flex: 2 1 320px; color: var(--muted); }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.history time { flex: none; width: 120px; font-weight: 700; font-variant-numeric: tabular-nums; }
.history p { flex: 1 1 300px; color: var(--muted); }
.sources-list { display: flex; flex-direction: column; gap: 14px; }
.source { display: flex; gap: 12px; align-items: flex-start; }
.source .icon-chip { width: 36px; height: 36px; border-radius: 10px; }
.source div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.source a { font-weight: 650; overflow-wrap: anywhere; }
.source small { font-size: 13px; color: var(--muted); }

/* ---------- Plain pages ---------- */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 24px; }
/* Not the dropdown lists app.js builds (the contact form sits in .prose): this display would beat their hidden. */
.prose ul:not(.combo-list) { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
/* The fare engine page: code excerpts, screenshots, the numbers. */
.engine-byline { font-size: 14px; color: var(--muted); }
.engine-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 12px; }
.engine-stats .stat { padding: 16px; gap: 10px; }
.engine-stats .stat-value { font-size: 28px; }
.code-figure, .shot { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.code { margin: 0; overflow-x: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; tab-size: 2; }
.code code { font: inherit; white-space: pre; }
.code-figure figcaption, .shot figcaption { font-size: 14px; color: var(--muted); }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); border: 1px solid var(--line); }
.prose td code { font-size: 13px; white-space: nowrap; }
.feature-grid .card { gap: 8px; }
.feature-grid h3 { font-size: 17px; }
.feature-cities { font-size: 14px; }
.table-wrap tfoot td { border-top: 1px solid var(--line); border-bottom: 0; }
.change-list { list-style: none; margin: 0; padding: 0; }
.change-list li { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline; }
.change-list time { width: 120px; font-weight: 700; font-variant-numeric: tabular-nums; }
.change-list div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 4px; }
.change-list p { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .menu > summary .icon, .faq summary .icon, .calc-more summary .icon, .route-groups summary .icon { transition: transform 150ms ease; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 720px) {
    .menu.lang-menu { order: 2; margin-left: auto; position: relative; }
    .lang-menu .menu-panel-end { left: auto; right: 0; }
    .theme-toggle { order: 2; margin-left: auto; }
    .lang-menu + .theme-toggle, .fx-menu + .theme-toggle { margin-left: 0; }
    .menu.fx-menu { order: 2; }
    .site-header .container { column-gap: 4px; }
    .lang-menu > summary, .fx-menu > summary { padding: 0 8px; gap: 4px; }
    .fx-menu .menu-panel-end { left: var(--gutter); right: var(--gutter); width: auto; }
    .nav { order: 3; flex-basis: 100%; margin-inline: -12px; }
    .menu { position: static; }
    .menu-panel { left: var(--gutter); right: var(--gutter); min-width: 0; }
}
