/* Art Mile Walking Guide — built for sunlight, one thumb, and a pram in the other hand. */
:root {
  --ink: #0d1f1c;
  --ink-2: #3b4d49;
  --paper: #fbfaf5;
  --card: #ffffff;
  --line: #dfe5df;
  --brand: #0b5d52;
  --brand-deep: #053333;
  --leaf: #a4d284;
  --mint: #eef9e8;
  --river: #2d8fb0;
  --warn-bg: #fff4d6;
  --warn-ink: #5a4100;
  --tree: #3f7d2b;
  --food: #b45309;
  --heritage: #6b4fa0;
  --parking: #1d4ed8;
  /* The two banks. Colour follows the bank, never left/right — those swap when you turn round. */
  --bank-s: #1f6fd1;
  --bank-n: #2e8540;
  --bank-bridge: #7a5a2b;
  /* Filled bank marks with white numbers (pins, badges, walk cards, the walked line): these
     saturated colours in both themes, so white on them stays >= 4.6:1. */
  --bank-s-fill: #1f6fd1;
  --bank-n-fill: #2e8540;
  --bank-bridge-fill: #7a5a2b;
  /* Bank-coloured text on page and card surfaces (chips, list headings): >= 5.8:1 */
  --bank-s-ink: #17539d;
  --bank-n-ink: #226430;
  --bank-bridge-ink: #5c4420;
  /* Bank chip backgrounds: the bank colour at 16% on the card, precomputed (no color-mix) */
  --bank-s-tint: #dbe8f8;
  --bank-n-tint: #deebe0;
  --bank-bridge-tint: #eae5dd;
  --new-ink: #c2410c; --town-tint: #fdeee4;
  /* Ghost button edge, >= 3:1 against paper and card */
  --line-strong: #7a8a86;
  /* Frosted bars and the drag handle, precomputed so older iPhones without color-mix() get them */
  --paper-glass: rgb(251 250 245 / 0.7);
  --card-glass: rgb(255 255 255 / 0.8);
  --handle: rgb(13 31 28 / 0.28);
  /* Screen height: 100dvh where it exists (iOS 15.4+), else 100vh (see @supports below). Used via
     var() on purpose: calc(100dvh - var(--x)) would not fall back to an earlier vh line. */
  --dvh: 100vh;
  /* Landscape notch: the side safe area minus the margin main already has beside its 720px column */
  --safe-l: max(0px, env(safe-area-inset-left, 0px) - max(0px, (100vw - 720px) / 2));
  --safe-r: max(0px, env(safe-area-inset-right, 0px) - max(0px, (100vw - 720px) / 2));
  --radius: 16px;
  --shadow: 0 6px 24px rgb(5 51 51 / 0.14);
  --tap: 52px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef5f2; --ink-2: #b5c7c2; --paper: #0c1a18; --card: #13282a; --line: #25403f;
    --brand: #5cc2b1; --brand-deep: #021c1c; --mint: #173330; --warn-bg: #3a2e0c; --warn-ink: #ffe3a1;
    --bank-s: #4f94e8; --bank-n: #4fae62; --bank-bridge: #b08a52;
    --bank-s-ink: #7bafee; --bank-n-ink: #7bc289; --bank-bridge-ink: #c4a77d;
    --bank-s-tint: #1d3948; --bank-n-tint: #1d3d33; --bank-bridge-tint: #2c3830;
    --new-ink: #fb923c; --town-tint: #3a2415; --line-strong: #5f7c78;
    --paper-glass: rgb(12 26 24 / 0.7); --card-glass: rgb(19 40 42 / 0.8); --handle: rgb(238 245 242 / 0.28);
    --shadow: 0 6px 24px rgb(0 0 0 / 0.45); color-scheme: dark;
  }
  :root:not([data-theme="light"]) .btn.primary, :root:not([data-theme="light"]) .keys .go { color: #042626; }
  :root:not([data-theme="light"]) .raised { --lip: rgb(0 0 0 / 0.6); --lift: rgb(0 0 0 / 0.55); --glint: rgb(255 255 255 / 0.16); }
  :root:not([data-theme="light"]) .btn.primary.raised { --lip: #2f8174; --glint: rgb(255 255 255 / 0.4); }
  :root:not([data-theme="light"]) .btn.raised:not(.primary):not(.route-card) { background: #1f4144; }
  :root:not([data-theme="light"]) .route-card.town.raised { --lip: rgb(251 146 60 / 0.55); --lift: rgb(0 0 0 / 0.55); --glint: rgb(255 255 255 / 0.14); }
  /* the chosen map tab, like the primary button (7.5:1) */
  :root:not([data-theme="light"]) .maptabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #042626; }
}
@supports (height: 100dvh) { :root { --dvh: 100dvh; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--font);
  min-height: var(--dvh); padding-bottom: env(safe-area-inset-bottom);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Kill the 300 ms double-tap wait on everything tappable */
a, button, label, summary, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
button { font: inherit; color: inherit; }
/* Tracking is size-specific: tighter as type grows; leading tighter on big type */
h1, h2, h3 { margin: 0 0 8px; }
h1 { font-size: 30px; font-weight: 800; line-height: 1.08; letter-spacing: -0.022em; }
h2 { font-size: 22px; font-weight: 750; line-height: 1.15; letter-spacing: -0.016em; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.008em; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; letter-spacing: 0.005em; line-height: 1.45; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; border-radius: 6px; }
/* Focus moved by the app (the page heading after each screen change, or the page itself) draws no ring */
#view:focus-visible, [tabindex="-1"]:focus { outline: none; }

/* The top safe area on Home (the notch / status bar). The "Unofficial prototype" strip used to reserve it; it went on 25 Nov 2026 when the Art Mile approved the guide. Pages with a .topbar pad themselves. */
.safe-top { height: env(safe-area-inset-top); }
/* (the strip's old style, kept in case a strip is ever needed again) */
.proto {
  position: relative; z-index: 50; display: block; padding: 4px 12px;
  padding-top: max(4px, env(safe-area-inset-top));
  padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right));
  background: var(--warn-bg); color: var(--warn-ink); font-size: min(12px, 3.3vw); line-height: 1.35; font-weight: 600;
  text-align: center; text-decoration: none; border-bottom: 1px solid rgb(0 0 0 / 0.08);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

main { max-width: 720px; margin: 0 auto; outline: none; padding-left: var(--safe-l); padding-right: var(--safe-r); }
.pad { padding: 16px; }
.stack > * + * { margin-top: 12px; }

/* Top bar for inner screens */
.topbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 4px;
  position: sticky; top: 0; z-index: 20; padding-top: max(8px, env(safe-area-inset-top));
  background: var(--paper-glass);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none;
  background: linear-gradient(to bottom, rgb(5 30 30 / 0.10), transparent); opacity: 0; transition: opacity 200ms ease;
}
body.scrolled .topbar::after { opacity: 1; }
/* Long titles (isiZulu, German) wrap to a second line instead of ending in '…' */
.topbar h2 {
  margin: 0; font-size: 18px; line-height: 1.2; flex: 1; min-width: 0; overflow: hidden; overflow-wrap: break-word; hyphens: auto;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center;
  cursor: pointer; flex: none;
}
.icon-btn:active { background: var(--mint); }
.flag { width: 28px; height: 19px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); overflow: hidden; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 750; font-size: 15px; cursor: pointer; flex: none;
}
.lang-btn:active { background: var(--mint); }
.home-btn { text-decoration: none; color: var(--ink); }
.home-btn svg { width: 20px; height: 20px; }
/* Phones: the Home button is its icon only, so the title has room */
@media (max-width: 420px) { .home-btn span { display: none; } .home-btn { width: 44px; padding: 0; justify-content: center; } }
.lang-tile { display: flex; align-items: center; gap: 8px; }
.icon-btn svg { width: 24px; height: 24px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap);
  padding: 12px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
  font-weight: 650; text-decoration: none; color: var(--ink); cursor: pointer; width: 100%;
  transition: transform 120ms ease-out, background-color 150ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.tile, .item, .nearcard, .vid, .yt-poster, .keys button, .lang-btn, .maptabs button, .layers label, .zoom button, .poi {
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 150ms ease;
}
.tile:active, .item:active, .nearcard:active, .vid:active, .lang-btn:active, .maptabs button:active, .layers label:active { transform: scale(0.97); transition-duration: 80ms; }
.keys button:active, .zoom button:active, .poi:active { transform: scale(0.92); transition-duration: 60ms; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.deep { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 22px; height: 22px; flex: none; }
/* Side-by-side buttons drop onto two lines when their words don't fit (German at 320px) */
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row > * { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--mint); color: var(--brand-deep); font-size: 14px; font-weight: 650;
}
[data-theme] .chip, :root .chip { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip { color: var(--leaf); } }

/* Home */
.hero {
  background: var(--brand-deep); color: #fff; padding: 28px 20px 24px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 240px; height: 240px; border-radius: 50%;
  border: 26px solid rgb(164 210 132 / 0.16); box-shadow: 0 0 0 26px rgb(164 210 132 / 0.08);
}
.wordmark { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf); font-weight: 700; }
.hero h1 { color: #fff; margin-top: 6px; font-size: 34px; }
.hero p { color: #d3e6df; max-width: 32ch; }
.season { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.08); font-size: 14px; color: #e5f2ec; }
.season b { color: #fff; }
/* On Home the season box sits under the Start button, on the page, not in the dark hero. */
.home-actions .season { margin-top: 0; background: var(--mint); color: var(--ink-2); }
.home-actions .season b { color: var(--ink); }
.home-actions { padding: 16px; display: grid; gap: 12px; margin-top: -8px; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--card);
  border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); min-height: 84px;
}
.tile b { font-size: 16px; }
.tile span { font-size: 14px; color: var(--ink-2); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 15px; }

/* Keypad */
.keypad { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; }
.keypad .display {
  height: 56px; border-radius: 12px; background: var(--mint); display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; letter-spacing: 0.1em; color: var(--brand-deep); margin: 8px 0 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .keypad .display { color: var(--leaf); } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button {
  height: 54px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-size: 22px; font-weight: 700; cursor: pointer;
}
.keys button:active { background: var(--mint); }
.keys .go { background: var(--brand); color: #fff; border-color: var(--brand); font-size: 17px; }

/* Map screens */
/* Flat tabs and chips, so the map gets the screen (Gericke, 4 Oct 2026) */
.maptabs { display: flex; gap: 6px; padding: 0 16px 6px; }
.maptabs button {
  position: relative; flex: 1; min-width: 0; padding: 3px 6px; font-size: 14px; line-height: 1.15; min-height: 34px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--card); font-weight: 650; cursor: pointer;
}
.maptabs button::after { content: ""; position: absolute; inset: -5px 0; } /* a 44px tall tap area */
.maptabs button[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.layers { display: flex; gap: 6px; padding: 0 16px 6px; overflow-x: auto; scrollbar-width: none; }
.layers label {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 3px 11px; border-radius: 999px; min-height: 34px;
  border: 1.5px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer;
}
.layers input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }

/* The map fills the screen below the tabs, credit line included: app.js measures --map-top
   (top of #maphost); --map-bottom is room kept below it (0 = the Start button sits below the fold). */
.painted-wrap {
  position: relative; height: calc(var(--dvh) - var(--map-top, 280px) - var(--map-bottom, 0px) - env(safe-area-inset-bottom, 0px)); min-height: 200px; overflow: hidden; background: #fbfaf5;
  border-top: 1px solid var(--line);
  touch-action: none; user-select: none; -webkit-user-select: none; /* every gesture is motion.js's (zoomable) */
}
.painted-wrap:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.painted { position: relative; transform-origin: 0 0; will-change: transform; }
.painted img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.guide-wrap { background: #e7e5dd; }
.pin {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid #fff;
  background: var(--brand-deep); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35); cursor: pointer; padding: 0; transition: transform 150ms ease-out;
}
.pin.S, .mk.S { background: var(--bank-s-fill); }
.pin.N, .mk.N { background: var(--bank-n-fill); }
.pin.bridge, .mk.bridge { background: var(--bank-bridge-fill); }
/* Seen stops keep their full-contrast number and get a small tick on the rim */
.pin.visited::after, .mk.visited::after {
  content: ""; position: absolute; top: -8px; right: -8px; width: 16px; height: 16px; border-radius: 50%; pointer-events: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.9' fill='none' stroke='%230b5d52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.45);
}
/* Invisible 44px hit areas around the map marks; they look the same (offsets are from inside the border).
   z-index -1 keeps every ring under every visible mark, so a ring only catches taps on bare map
   (.painted is its own stacking context and the map image lets taps through). */
.painted { isolation: isolate; }
.painted img { pointer-events: none; }
.pin::before, .mk::before, .painted .poi::before, .street .poi::before { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.pin::before { top: -7px; right: -7px; bottom: -7px; left: -7px; }
.mk::before { top: -8px; right: -8px; bottom: -8px; left: -8px; }
.painted .poi::before, .street .poi::before { top: -9px; right: -9px; bottom: -9px; left: -9px; border-radius: 12px; }
/* while walking, the other bank's pins go away: you can't cross between bridges */
.painted[data-hide="N"] .pin[data-bank="N"], .painted[data-hide="S"] .pin[data-bank="S"] { display: none; }
.mk[hidden] { display: none; }
.walkline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.walkline polyline { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.walkline polyline.casing { stroke: #fff; stroke-width: 9; opacity: 0.95; }
.walkline polyline.S { stroke: var(--bank-s-fill); } .walkline polyline.N { stroke: var(--bank-n-fill); }
/* A short walk being walked: the recorded route steps back, the walk's own line goes over it, the other works fade */
.walkline.dim { opacity: 0.3; }
.walkline.routeline polyline { stroke: #c2410c; stroke-width: 7; }
.walkline.routeline polyline.casing { stroke: #fff; stroke-width: 12; opacity: 0.95; }
/* (!important: MapLibre writes an inline opacity on its markers) */
.pin.off, .mk.off { opacity: 0.4 !important; }
.pin.off:hover, .pin.off:focus-visible, .mk.off:focus-visible { opacity: 1 !important; }
.walkline .arrows path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pin.bridge { z-index: 2; } /* Journey, the footbridge, sits between 16 and 17: keep it on top */
.pin:focus-visible, .pin:hover { z-index: 3; }
.pin.near { transform: scale(1.25); background: #c2410c; z-index: 3; }
/* Arrival: pin swells with a ring on the same frame as the chime */
.pin.arrive { animation: arrive 520ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes arrive {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgb(194 65 12 / 0.55), 0 2px 6px rgb(0 0 0 / 0.35); }
  45% { transform: scale(1.5); }
  100% { transform: scale(1.25); box-shadow: 0 0 0 22px rgb(194 65 12 / 0), 0 2px 6px rgb(0 0 0 / 0.35); }
}
.pin:active { transform: scale(0.94); }
.poi {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 9px; border: 2px solid #fff;
  display: grid; place-items: center; color: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); cursor: pointer; padding: 0;
}
.poi svg { width: 18px; height: 18px; }
.poi.tree { background: var(--tree); } .poi.food { background: var(--food); } .poi.heritage { background: var(--heritage); } .poi.parking { background: var(--parking); }
.me {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1a73e8;
  border: 2.5px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); z-index: 5; pointer-events: none;
}
/* GPS accuracy, to scale: width is set in % of the map (20-50 m across) */
.me-acc {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 4; pointer-events: none;
  background: rgb(26 115 232 / 0.16); border: 1px solid rgb(26 115 232 / 0.45);
}
.zoom { position: absolute; top: 10px; right: 10px; display: grid; gap: 6px; z-index: 6; }
.zoom button svg { width: 24px; height: 24px; }
.zoom button[aria-pressed="true"] { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.maplibregl-ctrl button.follow svg { width: 22px; height: 22px; margin: auto; display: block; }
.maplibregl-ctrl-group button.follow[aria-pressed="true"], .maplibregl-ctrl-group button.follow[aria-pressed="true"]:hover:not(:disabled) { background: var(--brand-deep); color: #fff; }
/* bigger targets for the street map's own controls too (they were 29 px) */
.street .maplibregl-ctrl-group button { width: 40px; height: 40px; }
/* short (sideways) screens: the three guide-map buttons must fit above the walk panel */
@media (max-height: 480px) { .zoom button { width: 40px; height: 40px; } }
.wb-near[hidden], .nearcard[hidden] { display: none; }
.near.arming .nearcard { pointer-events: none; }
.zoom button { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 22px; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.street { height: calc(var(--dvh) - var(--map-top, 280px) - var(--map-bottom, 0px) - env(safe-area-inset-bottom, 0px)); min-height: 200px; border-top: 1px solid var(--line); }
.mk {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--brand-deep); color: #fff;
  font: 800 13px/28px var(--font); text-align: center; box-shadow: 0 2px 6px rgb(0 0 0 / 0.35); cursor: pointer; padding: 0;
}
.mk.near { background: #c2410c; }
.maplibregl-ctrl-attrib { font-size: 11px; }
/* the credits toggle is a <summary>, which our details rule makes 44px tall: one "i", centred */
.maplibregl-ctrl-attrib-button { background-repeat: no-repeat; background-position: center; }
/* Guide map credit (OpenStreetMap). guidemap.js puts it in the map's top-left corner, outside the scroller;
   the map image is light in both themes, so the chip stays light. */
.gm-attrib {
  position: absolute; left: 6px; top: 6px; z-index: 6; padding: 2px 7px; border-radius: 6px; background: rgb(255 255 255 / 0.9);
  color: #0b5d52; font-size: 12px; line-height: 1.4; text-decoration: none; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}

/* Walk bar (bottom sheet while walking) */
.walkbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; max-width: 720px; margin: 0 auto; /* above the prototype strip (50), below toasts (60) */
  background: var(--card-glass);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgb(255 255 255 / 0.45); box-shadow: 0 -10px 34px rgb(0 0 0 / 0.20);
  border-radius: 22px 22px 0 0; padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  padding-left: calc(16px + var(--safe-l)); padding-right: calc(16px + var(--safe-r));
  will-change: transform; touch-action: none; view-transition-name: walkbar;
}
.walkbar .grab {
  display: grid; place-items: center; width: 100%; height: 26px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: grab;
}
.walkbar .handle, .sheet .grabber::before { width: 38px; height: 5px; border-radius: 3px; background: var(--handle); }
.walkbar .near { touch-action: pan-x; }
.walkbar .status { font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.walkbar .dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex: none; }
.walkbar .dot.good { background: #16a34a; } .walkbar .dot.weak { background: #f59e0b; }
.walkbar .near { display: flex; gap: 8px; margin: 10px 0; overflow-x: auto; scrollbar-width: none; }
.nearcard {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); max-width: 260px;
}
.nearcard .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-deep); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; flex: none; }
.nearcard b { display: block; font-size: 15px; line-height: 1.2; }
.nearcard .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--mint); flex: none; background-repeat: no-repeat; }
.near.photos { display: grid; gap: 8px; }
.near.photos .nearcard { max-width: none; }
/* Home's first question, and the invitation that ends an artwork the finder opened (js/app.js, "Standing at an artwork?") */
.front, .more-walk { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--mint); }
.front h2, .more-walk h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.front p, .more-walk p { margin: 0; }
.more-walk { margin-top: 24px; }
.more-walk .nearcard { max-width: none; background: var(--card); }
.nearcard span { font-size: 15px; color: var(--ink-2); }
/* Equal buttons on one row; when the words don't fit (German, isiZulu at 320px) the last drops to a row of its own */
.walkbar .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.walkbar .actions .btn { flex: 1 1 0; width: auto; min-height: 46px; padding: 8px 10px; font-size: 15px; }
.walkbar label { min-height: 44px; }
.walkbar input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }
/* Location turned off: a lasting note in the walk panel, like .notice */
.loc-help { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 15px; line-height: 1.45; }
.loc-help a { color: inherit; font-weight: 700; }
.loc-help p { margin: 0 0 6px; }
.loc-help p:last-child { margin-bottom: 0; }
.loc-help .btn { margin-top: 10px; }
/* The page scrolls clear of the walk panel, however tall it is */
body.walking main { padding-bottom: calc(var(--sheet-h, 190px) + 16px); }
/* ...except the map screen, where the map itself stops at the panel */
body.walking main:has(> #maphost.street), body.walking main:has(> #maphost .painted-wrap) { padding-bottom: 0; }
body.walking .painted-wrap, body.walking .street { height: calc(var(--dvh) - var(--map-top, 280px) - var(--sheet-h, 150px) + 12px); min-height: 0; }
/* the panel overlaps the map's last 12px: keep the street map's credit and controls above it */
body.walking .street .maplibregl-ctrl-bottom-left, body.walking .street .maplibregl-ctrl-bottom-right { bottom: 12px; }
/* While walking the map gets the screen: no layer chips or legend (the panel says which bank you're on) */
body.walking .layers, body.walking .legend { display: none; }
/* Away from the map (an artwork, a landmark) the walk panel is one line with a Map button,
   so the page fills the screen (Art Mile feedback, 4 Oct 2026) */
.walkbar .wb-tomap { display: none; }
body.walk-mini .walkbar { padding-top: 10px; touch-action: auto; }
body.walk-mini .walkbar .grab, body.walk-mini .walkbar .wb-bank, body.walk-mini .walkbar .wb-more { display: none; }
/* ...but an artwork the walker has just arrived at is offered here, one tap from opening (it rises in with the chime) */
body.walk-mini .walkbar .nearcard { border-color: #c2410c; }
body.walk-mini .walkbar .wb-near .near { animation: prompt-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes prompt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.walk-mini .walkbar .wb-near .near { animation: none; } }
body.walk-mini .walkbar .wb-tomap { display: inline-flex; flex: none; width: auto; min-height: 44px; margin-left: auto; padding: 6px 14px; font-size: 15px; gap: 6px; }
body.walk-mini .walkbar .wb-tomap svg { width: 18px; height: 18px; }
body.walk-mini .walkbar .wb-status { min-width: 0; }

/* Stop page */
.stop-hero { position: relative; background: var(--brand-deep); }
.stop-hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.stop-hero.tall img { aspect-ratio: 4 / 5; object-position: 50% 35%; }
.stop-hero .ph { aspect-ratio: 4 / 3; background-repeat: no-repeat; }
.badge {
  position: absolute; left: 16px; bottom: -22px; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-deep);
  color: #fff; font-size: 22px; font-weight: 800; display: grid; place-items: center; border: 4px solid var(--paper);
}
.stop-body { padding: 32px 16px 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.listen { display: flex; gap: 10px; margin: 14px 0 18px; }
.listen > * { min-width: 0; }
/* Listen takes the room that is left; on a narrow phone its duration drops to a second line */
.listen #listen { flex: 1 1 auto; flex-wrap: wrap; row-gap: 0; }
@media (max-width: 360px) { .listen { gap: 8px; } .listen .btn { padding-left: 12px; padding-right: 12px; } }
.prose p { white-space: pre-line; }
.tribute { border-left: 4px solid var(--leaf); padding: 8px 12px; background: var(--mint); border-radius: 0 10px 10px 0; margin: 0 0 14px; }
.section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.yt { margin: 0; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.yt-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.yt-poster .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: #c4302b; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 16px rgb(0 0 0 / 0.4); transition: transform 150ms ease-out; }
.yt-poster .play svg { width: 30px; height: 30px; margin-left: 4px; }
.yt-poster:active .play { transform: scale(0.94); }
.yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.yt figcaption { padding: 10px 12px; font-weight: 650; font-size: 15px; line-height: 1.35; }
.vid { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--card); }
.vid .play { width: 44px; height: 44px; border-radius: 50%; background: #c4302b; color: #fff; display: grid; place-items: center; flex: none; }
details summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.credit { font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.pager { display: flex; gap: 10px; margin-top: 20px; }

/* List */
.list { list-style: none; margin: 0; padding: 0 16px 24px; }
.list li + li { margin-top: 8px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--card);
  border: 1.5px solid var(--line); text-decoration: none; color: var(--ink);
}
.item .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--mint); flex: none; background-repeat: no-repeat; }
.poi-thumb { position: relative; overflow: hidden; }
.poi-thumb > img:not(.crop) { width: 100%; height: 100%; object-fit: cover; }
/* map clips: a big image slid into place, never resized to the box */
img.crop { height: auto !important; aspect-ratio: auto !important; object-fit: fill !important; max-width: none !important; }
.poi.mini { position: absolute; left: auto; top: auto; right: 3px; bottom: 3px; margin: 0; width: 22px; height: 22px; border-radius: 7px; border-width: 1.5px; }
.poi.mini svg { width: 13px; height: 13px; }
.stop-hero .badge.poi { position: absolute; top: auto; left: 16px; bottom: -22px; margin: 0; width: 56px; height: 56px; border-radius: 16px; border: 4px solid var(--paper); }
.stop-hero .badge.poi svg { width: 28px; height: 28px; }
.item .new { display: inline; font-size: 14px; color: var(--new-ink); font-weight: 750; }
.item .num { width: 30px; font-weight: 800; color: var(--brand); text-align: center; flex: none; font-size: 18px; }
.item .t { flex: 1; min-width: 0; }
.item b { display: block; font-size: 16px; line-height: 1.25; }
.item span { font-size: 15px; color: var(--ink-2); }
.item .tick { color: var(--brand); flex: none; }
.group-h { padding: 18px 16px 8px; font-size: 14px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

/* Sheet / dialog */
.sheet {
  border: 0; padding: 0; width: min(560px, 100vw); max-width: 100vw; max-height: calc(var(--dvh) * 0.88); border-radius: 22px 22px 0 0; margin: auto auto 0;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  will-change: transform; touch-action: none; overflow: hidden;
}
/* The grabber is a full-width 28px strip (the bar drawn 8px from the top), so it is easy to catch */
.sheet .grabber { position: relative; height: 28px; cursor: grab; touch-action: none; }
.sheet .grabber::before { content: ""; position: absolute; left: 50%; top: 8px; margin-left: -19px; }
.sheet::backdrop { background: rgb(5 25 25 / 0.5); opacity: var(--dim, 1); }
/* Long sheets (small phones, landscape) scroll inside; the content still starts 33px from the top */
.sheet .inner {
  padding: 5px 16px calc(20px + env(safe-area-inset-bottom)); max-height: calc(var(--dvh) * 0.88 - 28px);
  overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch;
}


.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--brand-deep); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 15px;
  max-width: calc(100vw - 32px);
  pointer-events: none; /* a notice, not a control: it must not catch a tap meant for the button under it */
}
body.walking .toast { bottom: calc(var(--sheet-h, 184px) + 16px); }

/* Flyover */
.fly { position: relative; height: calc(var(--dvh) - 110px); }
.fly .map { position: absolute; inset: 0; }
.fly .hud {
  position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: center;
  background: rgb(5 51 51 / 0.86); color: #fff; padding: 10px; border-radius: 14px; z-index: 5;
}
.fly .hud button { min-height: 44px; border-radius: 10px; border: 0; padding: 0 14px; font-weight: 700; background: #fff; color: var(--brand-deep); cursor: pointer; }
.fly .hud input { flex: 1; accent-color: var(--leaf); }
.fly .label { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 5; background: rgb(255 255 255 / 0.92); color: #053333; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.fly .caption { position: absolute; left: 12px; right: 12px; bottom: 84px; z-index: 5; color: #fff; font-weight: 750; font-size: 18px; text-shadow: 0 2px 8px rgb(0 0 0 / 0.7); }

table.kv { border-collapse: collapse; width: 100%; font-size: 15px; }
table.kv td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Swiping between stops: vertical scroll and pinch stay native */
main.swipeable { touch-action: pan-y pinch-zoom; will-change: transform; }
.swipe-hint {
  position: fixed; top: 45%; z-index: 45; max-width: 60vw; padding: 10px 14px; border-radius: 999px; pointer-events: none;
  background: var(--brand-deep); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--shadow); opacity: 0;
}
.swipe-hint[data-side="right"] { right: max(12px, env(safe-area-inset-right)); }
.swipe-hint[data-side="left"] { left: max(12px, env(safe-area-inset-left)); }

/* Page transitions: deeper slides in from the right, back returns the same way */
.proto { view-transition-name: proto; }
.toast { view-transition-name: toast; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1); }
html[data-nav="forward"]::view-transition-new(root) { animation-name: vt-in-right; }
html[data-nav="forward"]::view-transition-old(root) { animation-name: vt-out-left; }
html[data-nav="back"]::view-transition-old(root) { animation-name: vt-out-right; z-index: 2; }
html[data-nav="back"]::view-transition-new(root) { animation-name: vt-in-left; }
html[data-nav="fade"]::view-transition-old(root), html[data-nav="fade"]::view-transition-new(root) { animation-duration: 180ms; }
@keyframes vt-in-right { from { transform: translateX(100%); } }
@keyframes vt-out-left { to { transform: translateX(-26%); filter: brightness(0.92); } }
@keyframes vt-out-right { to { transform: translateX(100%); } }
@keyframes vt-in-left { from { transform: translateX(-26%); filter: brightness(0.92); } }

/* Accessibility: lighter motion, solid materials, stronger edges when asked */
@media (prefers-reduced-transparency: reduce) {
  .topbar, .walkbar { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .topbar { background: var(--card); backdrop-filter: none; border-bottom: 1.5px solid var(--ink-2); }
  .walkbar { background: var(--card); backdrop-filter: none; border-top: 2px solid var(--ink-2); }
  .tile, .item, .btn, .btn.ghost, .keypad, .nearcard { border-color: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* Banks: dots, chips, list headings, legend */
.bank-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.bank-dot.S { background: var(--bank-s-fill); } .bank-dot.N { background: var(--bank-n-fill); }
.banks-line { font-size: 14px; opacity: 0.92; margin: 8px 0 0; }
.hero .bank-dot { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85); }
:root .bank-chip.S { background: var(--bank-s-tint); color: var(--bank-s-ink); }
:root .bank-chip.N { background: var(--bank-n-tint); color: var(--bank-n-ink); }
:root .bank-chip.bridge { background: var(--bank-bridge-tint); color: var(--bank-bridge-ink); }
:root .bank-chip.route { background: transparent; color: var(--new-ink); box-shadow: inset 0 0 0 1.5px var(--new-ink); }
.bank-chip { font-weight: 700; }
.badge.S { background: var(--bank-s-fill); } .badge.N { background: var(--bank-n-fill); } .badge.bridge { background: var(--bank-bridge-fill); }
.item .num.S, .nearcard .n.S { color: var(--bank-s); } .item .num.N, .nearcard .n.N { color: var(--bank-n); } .item .num.bridge { color: var(--bank-bridge); }
.nearcard .n.S, .nearcard .n.N, .nearcard .n.bridge { color: #fff; } .nearcard .n.S { background: var(--bank-s-fill); } .nearcard .n.N { background: var(--bank-n-fill); } .nearcard .n.bridge { background: var(--bank-bridge-fill); }
.list .bank-h { list-style: none; padding: 14px 4px 6px; font-size: 14px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 3px solid; margin-bottom: 4px; }
.list .bank-h.S { color: var(--bank-s-ink); border-color: var(--bank-s); } .list .bank-h.N { color: var(--bank-n-ink); border-color: var(--bank-n); }
/* Archive: works not on the current map, after the stops; quieter than the two banks */
.list .bank-h.arch { color: var(--ink-2); border-color: var(--line-strong); margin-top: 18px; }
.list .bank-h.route { color: var(--new-ink); border-color: var(--new-ink); }
.list .route-toggle { list-style: none; padding: 2px 4px 8px; }
.list .arch-note { list-style: none; padding: 2px 4px 8px; }
.item .num.arch { color: var(--ink-2); font-weight: 400; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 16px 6px; color: var(--ink-2); }
.legend .bank-dot { width: 12px; height: 12px; }
.bankrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.bankrow .bank-chip { padding: 5px 10px; border-radius: 999px; font-size: 14px; }
.linkish { background: none; border: 0; color: var(--brand); font: inherit; font-size: 14px; font-weight: 650; padding: 8px 4px; min-height: 44px; cursor: pointer; }

/* Recorded narration */
.listen .dur { font-weight: 600; opacity: 0.8; margin-left: 4px; font-variant-numeric: tabular-nums; }
.narr { margin: -6px 0 14px; }
.narr .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.narr .bar span { display: block; height: 100%; width: 0%; background: var(--brand); transition: width 250ms linear; }
.narr p { margin: 6px 0 0; }

/* Photo gallery: swipe sideways for more angles; the next photo peeks in */
.gallery { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; background: var(--brand-deep); }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 90%; margin: 0; position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; max-height: 72vh; background: #0b1c1a; }
.gallery figure:last-child { flex-basis: 100%; }
.gallery img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.gallery figure.wide img { object-fit: contain; }
.gallery figcaption { position: absolute; left: 8px; bottom: 30px; font-size: 14px; color: #fff; background: rgb(0 0 0 / 0.65); padding: 2px 8px; border-radius: 999px; }
.gcount { position: absolute; right: 10px; top: 10px; font-size: 14px; font-weight: 700; color: #fff; background: rgb(0 0 0 / 0.65); padding: 3px 9px; border-radius: 999px; pointer-events: none; font-variant-numeric: tabular-nums; }
.stop-hero.has-gallery img { aspect-ratio: auto; }

/* Home: the Art Mile's partners */
.sponsors { margin-top: 18px; padding: 16px 4px 4px; border-top: 1px solid var(--line); text-align: center; }
.sponsors h2 { font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.sponsors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* Logos sit on white cards: they are drawn for white paper, and stay readable in dark mode. */
.sponsors li { flex: 0 1 calc(50% - 5px); max-width: 170px; height: 84px; padding: 10px 12px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sponsors img { width: auto; height: auto; max-width: 100%; max-height: 62px; object-fit: contain; display: block; min-width: 0; }

/* Home: the Art Mile's social media */
.social { text-align: center; padding: 4px 0 2px; }
.social h2 { font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 10px; }
.social div { display: flex; justify-content: center; gap: 14px; }
.social a { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand-deep);
  border: 1px solid var(--line); }
.social a:active { transform: scale(.94); }
.social svg { width: 26px; height: 26px; }

/* Home: where to start, then one line per bank */
.hero .start-hint { margin-top: 6px; font-weight: 600; }
.hero .banks-line + .banks-line { margin-top: 2px; }
/* A tile that is not available yet: muted, dashed, and no press feedback */
.tile.off { cursor: default; background: var(--paper); border-style: dashed; color: var(--ink-2); }
.tile.off:active { transform: none; }

/* Home: an odd last tile spans both columns */
.links > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* FAQs */
.faq details { border-bottom: 1px solid var(--line); padding: 2px 0 6px; }
.faq details > div p, .faq dd p { margin: 0 0 8px; }
.faq details ul, .faq dd ul { margin: 0 0 8px 1.1em; padding: 0; }
.faq a { color: var(--brand); }
.guide-list { margin: 0; }
.guide-list dt { font-weight: 750; font-size: .875rem; letter-spacing: .05em; margin-top: 12px; }
.guide-list dd { margin: 2px 0 0; }
.faq summary { gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 400; color: var(--brand); line-height: 1; }
.faq details[open] > summary::after { content: "–"; }
/* Short landscape screens while walking: the map keeps some room. */
@media (max-height: 480px) {
  body.walking .painted-wrap, body.walking #maphost.street { min-height: 140px; }
}

/* "How long have you got?": the town walk and the whole Mile as two big cards in the start sheet */
.route-card { display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: 3px; justify-items: start; text-align: left; height: auto; min-height: 64px; padding: 14px 16px; }
.route-card b { font-size: 18px; line-height: 1.2; }
.route-card span { font-size: 15px; font-weight: 550; line-height: 1.35; }
.route-card .small { font-size: 14px; font-weight: 450; opacity: 0.92; }
/* The town walk wears the colour of its line on the map (warm red-orange), so it is not mistaken for the blue south bank or the green north bank */
.route-card.town { background: var(--town-tint); border-color: var(--new-ink); box-shadow: inset 6px 0 0 var(--new-ink); }
.route-card.town b { color: var(--new-ink); }
.route-card.town .why { font-weight: 700; color: var(--ink); }
/* Home's Town walk button: its label is centred like the other two buttons (the size and centring are the shared rule below) */
.home-actions .route-card.town { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; column-gap: 16px; row-gap: 3px; }
.home-actions .route-card.town b { flex: 1 0 100%; }
/* Home's raised buttons (Tell me about this artwork, Walk the whole Art Mile / Start, Back to your walk, Town walk) are all one size, and nothing else may set it.
   Width: the front card's inner width (the card has 14px of padding a side), so a button outside the card is inset by the same 28px.
   Height: room for a label on two lines, as German and isiZulu need on most phones, so a long label never changes it.
   The label (icon and words) is centred across and down, and a wrapped label is centred line by line. */
.home-actions { --home-btn-h: 64px; }
.home-actions > .raised, .front > .raised { height: var(--home-btn-h); min-height: var(--home-btn-h); padding: 0 18px; display: flex; align-items: center; justify-content: center; text-align: center; }
.home-actions > .raised { width: calc(100% - 28px); margin-inline: auto; }
/* Home's big buttons are raised keys, so they look pressable: a lip underneath, a soft shadow, a light edge on top; pressed, the key sinks onto its lip */
.raised { --lip: rgb(13 31 28 / 0.3); --lift: rgb(5 51 51 / 0.26); --glint: rgb(255 255 255 / 0.7); --stripe: 0 0 0 0 transparent;
  box-shadow: inset 0 1px 0 var(--glint), 0 4px 0 var(--lip), 0 10px 16px -4px var(--lift); }
.raised:active { transform: translateY(3px); box-shadow: inset 0 1px 0 var(--glint), 0 1px 0 var(--lip), 0 3px 6px -2px var(--lift); }
.btn.primary.raised { --lip: var(--brand-deep); --glint: rgb(255 255 255 / 0.28); }
.btn.raised:not(.primary):not(.route-card) { border-color: var(--line-strong); }
.route-card.town.raised { --lip: rgb(194 65 12 / 0.65); --lift: rgb(194 65 12 / 0.3); --glint: rgb(255 255 255 / 0.55);
  box-shadow: inset 6px 0 0 var(--new-ink), inset 0 1px 0 var(--glint), 0 4px 0 var(--lip), 0 10px 16px -4px var(--lift); }
.route-card.town.raised:active { box-shadow: inset 6px 0 0 var(--new-ink), inset 0 1px 0 var(--glint), 0 1px 0 var(--lip), 0 3px 6px -2px var(--lift); }

/* Rating a walk (askRating in app.js): five stars in a row, outlines until tapped, then filled; they shrink on a narrow or zoomed screen and
   ignore a tap for the first half second (a tap meant for something else, where the End button was) */
.stars { display: flex; justify-content: center; gap: 4px; margin: 4px 0 2px; }
.stars.arming .star { pointer-events: none; }
.star { flex: 1 1 0; min-width: 0; max-width: 64px; min-height: 60px; padding: 0 2px; border: 0; background: none; cursor: pointer; border-radius: 12px; display: grid; place-items: center; transition: transform 120ms ease-out; }
.star svg { width: min(44px, 14vw); height: auto; overflow: visible; }
.star path { fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linejoin: round; transition: fill 120ms ease-out, stroke 120ms ease-out; }
.star.on path { fill: #f2a813; stroke: #a35f00; }
.star:active { transform: scale(0.9); }
.star:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.star:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) { .star, .star path { transition: none; } }

/* list headings are a heading inside the list item */
.bank-h > h2 { font: inherit; color: inherit; margin: 0; letter-spacing: inherit; text-transform: inherit; }
/* the street map's credit links are told apart from the text by more than colour */
.maplibregl-ctrl-attrib a { text-decoration: underline; }
