/* Routes catalogue site. Brand = the app's Tailwind v4 palette. Design language: Flighty formula
   (huge near-black display type on white, floating cards, layered shadows, dark contrast band). */
:root {
  /* Tailwind v4 colour tokens (exact values from tailwindcss v4, matching the app's Palette.swift) */
  --color-blue-50: #EFF6FF; --color-blue-100: #DBEAFE; --color-blue-400: #51A2FF;
  --color-blue-500: #2B7FFF; --color-blue-600: #155DFC; --color-blue-700: #1447E6;
  --color-blue-800: #193CB8; --color-blue-900: #1C398E;
  --color-slate-50: #F8FAFC; --color-slate-100: #F1F5F9; --color-slate-200: #E2E8F0;
  --color-slate-300: #CAD5E2; --color-slate-400: #90A1B9; --color-slate-500: #62748E;
  --color-slate-600: #45556C; --color-slate-700: #314158; --color-slate-800: #1D293D;
  --color-slate-900: #0F172B;
  --color-amber-500: #FE9A00; --color-red-500: #FB2C36; --color-red-800: #9F0712;
  --color-green-600: #00A63E; --color-emerald-600: #009966;
  /* Tailwind radius + spacing scale (v4: --radius-xl=12, 2xl=16, 3xl=24; spacing unit 4px) */
  --radius-lg: 8px; --radius-xl: 12px; --radius-2xl: 16px; --radius-3xl: 24px;
  --spacing-1: 4px; --spacing-2: 8px; --spacing-3: 12px; --spacing-4: 16px;
  --spacing-5: 20px; --spacing-6: 24px; --spacing-8: 32px; --spacing-10: 40px;

  /* Legacy aliases (existing rules reference these) */
  --blue-50: var(--color-blue-50); --blue-400: var(--color-blue-400); --blue-500: var(--color-blue-500);
  --blue-600: var(--color-blue-600); --blue-700: var(--color-blue-700); --blue-800: var(--color-blue-800);
  --blue-900: var(--color-blue-900);
  --slate-100: var(--color-slate-100); --slate-200: var(--color-slate-200); --slate-300: var(--color-slate-300);
  --slate-400: var(--color-slate-400); --slate-500: var(--color-slate-500); --slate-600: var(--color-slate-600);
  --slate-700: var(--color-slate-700); --slate-800: var(--color-slate-800);
  --ink: #0B1220; --paper: #FFFFFF; --page: #FFFFFF; --night: #0C1222;
  --r-l: var(--radius-3xl); --r-m: var(--radius-2xl); --r-s: var(--radius-xl);
  --shadow-card: 0 1px 2px rgba(11,18,32,0.04), 0 2px 8px rgba(11,18,32,0.04), 0 0 0 1px rgba(11,18,32,0.06);
  --shadow-lift: 0 2px 4px rgba(11,18,32,0.05), 0 10px 28px rgba(11,18,32,0.10), 0 0 0 1px rgba(11,18,32,0.07);
  --shadow-float: 0 2px 6px rgba(11,18,32,0.07), 0 18px 44px rgba(11,18,32,0.14);
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Simon (2026-06-10): no Geist Mono anywhere — the data voice is plain Geist
     with tabular numerals. The token stays so every former mono consumer flips
     in one place. Weight tiers: 400 body / 560 medium / 640 semibold / 700 bold
     (h3, cards) / 740 display. */
  --font-mono: var(--font-sans);
  --display: 'Stack Sans Headline', var(--font-sans);
  --section-gap: 48px;
  /* Card-grid minimum widths, one token per card type */
  --grid-road-min: 232px; --grid-collection-min: 244px; --grid-tour-min: 280px;
  --grid-country-min: 196px; --grid-guide-min: 260px; --grid-dir-min: 240px;
}
@font-face {
  font-family: 'Geist';
  src: url('/geist-vf.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.62 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible, .fchip:focus-visible, .f-clear:focus-visible,
.facet > summary:focus-visible, .nav-menu summary:focus-visible, .sat-toggle:focus-visible,
.dir-jump a:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 6px; }
/* Display headings in Stack Sans (rounded warmth = the app's SF Rounded headers);
   h3/card titles stay Geist for legibility at small sizes. Rounded display wants
   slightly less negative tracking than a grotesque. */
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0 0 10px; }
h1, h2 { font-family: var(--display); font-weight: 740; letter-spacing: -0.022em; }
h1 { font-size: clamp(30px, 5.4vw, 56px); }
.page-title { font-size: clamp(30px, 4.4vw, 42px); }
h2 { font-size: 26px; margin-top: var(--section-gap); }
h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: -0.022em; }
p { margin: 0 0 14px; text-wrap: pretty; }
ul { padding-left: 22px; }

/* Header / footer */
@font-face {
  font-family: 'Stack Sans Headline';
  src: url('/stack-sans-headline-vf.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
.brand-name { font-family: var(--display); font-weight: 740; letter-spacing: -0.015em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 640; transition-property: top; transition-duration: 0.15s; }
.skip-link:focus-visible { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.82); -webkit-backdrop-filter: saturate(1.8) blur(14px); backdrop-filter: saturate(1.8) blur(14px); border-bottom: 1px solid rgba(11,18,32,0.07); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-family: var(--display); font-weight: 740; font-size: 19.5px; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 31px; height: 31px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-weight: 560; font-size: 15.5px; }
.site-nav a { color: var(--slate-700); }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }
/* Mobile disclosure menu: a no-JS-safe details sheet; only visible under 640px
   where the text links are hidden. */
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer; color: var(--ink); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 22px; height: 22px; display: block; }
.nav-menu summary:active { transform: scale(0.96); }
.nav-menu[open] summary { background: var(--color-slate-100); }
.nav-sheet { position: absolute; right: 0; top: 48px; min-width: 210px; display: grid; gap: 2px; padding: 8px;
  background: rgba(255,255,255,0.93); -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-float); }
.nav-sheet a { padding: 11px 14px; border-radius: var(--radius-xl); color: var(--ink); font-weight: 560; font-size: 16px; }
.nav-sheet a:hover { background: var(--color-slate-100); text-decoration: none; }
.site-nav .nav-sheet a[aria-current] { color: var(--color-blue-700); font-weight: 640; }
.site-nav .nav-sheet a[aria-current]::after { content: none; }
/* The disclosure menu engages at 728px, not 640: the six text links + button
   need ~707px, so 641-706px viewports side-scrolled every page (pass-6 audit). */
@media (max-width: 728px) { .nav-menu { display: block; } .site-nav > a:not(.btn) { display: none; } }

/* You-are-here: the current section reads ink + semibold, with a brand dot beneath */
.site-nav a[aria-current] { position: relative; color: var(--ink); font-weight: 640; }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--color-blue-600); }
.site-footer { margin-top: 84px; background: var(--paper); border-top: 1px solid var(--slate-200); padding: 44px 0 30px; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px 56px; flex-wrap: wrap; }
.footer-brand { max-width: 420px; }
.footer-tag { color: var(--slate-500); font-size: 15px; margin-top: 10px; }
.footer-store { display: inline-block; margin-top: 14px; }
.footer-col { display: grid; gap: 8px; font-size: 15px; align-content: start; }
.footer-col strong { font-size: 13.5px; font-weight: 640; color: var(--slate-500); margin-bottom: 2px; }
.footer-col a { color: var(--color-slate-600); }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
/* The safety line, promoted from small print to the closing brand moment */
.footer-line { font-family: var(--display); font-weight: 740; font-size: 19px; letter-spacing: -0.015em; color: var(--ink); margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--color-slate-200); }
.footer-legal { color: var(--slate-500); font-size: 13px; margin-top: 10px; }
.footer-legal a { color: var(--slate-500); }

/* Buttons + chips */
.btn { display: inline-block; white-space: nowrap; background: var(--slate-100); color: var(--ink); font-weight: 640; padding: 12px 22px; border-radius: 999px; transition-property: transform, background, box-shadow; transition-duration: 0.14s; transition-timing-function: cubic-bezier(0.2,0,0,1); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 2px 10px rgba(11,18,32,0.22); }
.btn-primary:hover { background: #1b2740; }
.btn-ghost { background: var(--paper); border: 1px solid var(--slate-200); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.btn-small { padding: 8px 16px; font-size: 14.5px; background: var(--ink); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--paper); box-shadow: 0 1px 2px rgba(11,18,32,0.06), 0 0 0 1px rgba(11,18,32,0.07); padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 560; color: var(--slate-700); }
.chip-soft { background: var(--blue-50); box-shadow: none; color: var(--blue-800); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.count { color: var(--slate-500); font-weight: 560; font-size: 0.8em; }

/* Cards (concentric: outer 24, inner media 16, padding 8) */
.card { background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow-card); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-road-min), 1fr)); gap: 16px; margin-top: 18px; }
.road-card { display: block; background: var(--paper); border-radius: var(--r-l); padding: 0; overflow: hidden; color: var(--ink); box-shadow: var(--shadow-card); transition-property: transform, box-shadow; transition-duration: 0.16s; transition-timing-function: cubic-bezier(0.2,0,0,1); }
.road-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.road-card:active { transform: scale(0.96); }
.road-card-map { background: transparent; border-radius: 0; }
/* Muted terrain tone + invisible alt text while the satellite lazy-loads,
   so pre-load cards look intentional instead of raw text on white */
.road-card-map.sat { position: relative; overflow: hidden; background: #3f4a42; }
.road-card-map.sat img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 150; object-fit: cover; color: transparent; }
.road-card-map.sat svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.road-card-map svg { display: block; width: 100%; height: auto; }
.road-card-body { padding: 11px 14px 12px; }
.road-card-body h3 { margin: 0 0 3px; font-size: 16.5px; }
.road-card-meta { margin: 0; color: var(--slate-600); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.road-card-meta + .road-card-meta { margin-top: 3px; }
.road-card-meta .away { color: var(--slate-500); margin-left: 4px; }
.shield { display: inline-block; font-size: 11px; font-weight: 700; font-family: var(--font-mono); letter-spacing: 0.02em; padding: 2px 7px; border-radius: 6px; }

/* Hero (the Flighty formula: white, huge ink type, floating cards + device) */
.hero { background: #fff; padding: 84px 0 24px; text-align: center; }
.hero h1 { max-width: 800px; margin: 0 auto 14px; }
.hero-sub { font-size: 19.5px; max-width: 620px; margin: 0 auto; color: var(--slate-500); }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; color: var(--slate-500); font-size: 14.5px; font-weight: 560; }
.tdot { width: 4px; height: 4px; border-radius: 50%; background: var(--slate-300); }

.hero-stage { position: relative; max-width: 980px; margin: 44px auto -10px; height: 560px; }
.phone { position: relative; z-index: 1; width: 320px; height: 560px; margin: 0 auto; background: #0d0d10; border-radius: 54px; padding: 10px; box-shadow: 0 8px 18px rgba(11,18,32,0.18), 0 34px 80px rgba(11,18,32,0.28), inset 0 0 0 2px #2a2a30; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0d0d10; border-radius: 14px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 44px; overflow: hidden; display: flex; flex-direction: column; }
.phone-top { padding: 58px 18px 6px; text-align: left; }
.phone-app { display: block; font-family: var(--display); font-weight: 740; font-size: 21px; letter-spacing: -0.02em; }
.phone-sub { display: block; color: var(--slate-500); font-size: 12.5px; margin-top: 2px; }
.phone-map { flex: 1; margin: 8px 12px; background: linear-gradient(180deg, #F3F8FF, #E8F1FE); border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); display: flex; align-items: center; }
.phone-map svg { width: 100%; height: auto; }
.phone-chips { display: flex; gap: 6px; padding: 4px 12px 18px; justify-content: center; flex-wrap: wrap; }
.phone-chips .chip { font-size: 11.5px; padding: 5px 10px; }

.float-card { position: absolute; z-index: 3; display: flex; gap: 11px; align-items: center; background: #fff; border-radius: 18px; padding: 13px 17px; box-shadow: var(--shadow-float); text-align: left; max-width: 290px; }
.float-card strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.float-card span:not(.fc-emoji) { display: block; color: var(--slate-500); font-size: 13.5px; }
.fc-emoji { font-size: 22px; }
.fc-dim { opacity: 0.45; filter: saturate(0.8); }
.fc-1 { left: 2%; top: 16%; transform: rotate(-2deg); }
.fc-2 { left: 6%; top: 62%; transform: rotate(1.5deg); }
.fc-3 { right: 2%; top: 24%; transform: rotate(2deg); }
.fc-4 { right: 5%; top: 68%; transform: rotate(-1.5deg); }

.page-sub, .section-sub { color: var(--slate-500); max-width: 680px; }

/* Road page */
.breadcrumbs { font-size: 14px; color: var(--slate-500); margin: 24px 0 8px; }
.breadcrumbs a { color: var(--slate-500); }
.road-sub { color: var(--slate-500); font-size: 18px; margin-top: -2px; }

/* ---- Full-bleed road hero: the app's identity-on-map header ---- */
/* Satellite-first map, edge to edge, with a bottom scrim carrying the road's name.
   The pre-rendered card-map jpg is the instant background + no-JS truth; MapKit
   fades in on top (prod origin only — locally you see the satellite fallback). */
.rhero { position: relative; margin: 0; height: clamp(440px, 58vh, 580px); background: var(--night); }
.rhero-media { position: absolute; inset: 0; z-index: 0; }
.rhero-media .hero-map-fallback { position: absolute; inset: 0; }
.rhero-media .hero-map-fallback img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhero-media .hero-map-fallback svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rhero-media .hero-map-fallback.dark { background: radial-gradient(120% 160% at 20% 0%, #16203a, var(--night)); padding: 48px; }
.rhero-media .hero-map-fallback.dark svg { position: static; width: 100%; height: 100%; }
.rhero-media.live .hero-map-fallback { display: none; }
.rhero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,22,0) 42%, rgba(8,12,22,0.16) 60%, rgba(8,12,22,0.78) 100%); }
.rhero-id { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 0 26px; }
.rhero-id .wrap { width: 100%; }
/* inline-block (not flex) so text-overflow actually ellipsises; the max-width
   reserves room for the absolutely-positioned Map toggle at the hero's right edge
   (long road names were running under it at 390px). */
.rhero-crumbs { display: inline-block; max-width: calc(100% - 96px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(11,18,32,0.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 7px 14px; margin: 0; font-size: 13px; color: rgba(255,255,255,0.85); pointer-events: auto; }
.rhero-crumbs a { color: rgba(255,255,255,0.85); text-decoration-color: rgba(255,255,255,0.35); }
.rhero-crumbs a:hover { text-decoration-color: #fff; }
.rhero-eyebrow { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 13px; font-weight: 560; color: rgba(255,255,255,0.8); margin: 0 0 2px; text-shadow: 0 1px 6px rgba(8,12,22,0.5); }
.rhero-eyebrow .flag-svg { margin-right: 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.4); }
.rhero h1 { color: #fff; margin: 0 0 4px; font-size: clamp(32px, 5vw, 52px); text-shadow: 0 1px 16px rgba(8,12,22,0.45); }
.rhero .road-sub { color: rgba(255,255,255,0.92); margin-top: 2px; font-size: 17px; max-width: 760px; text-shadow: 0 1px 8px rgba(8,12,22,0.4); }
/* White standfirst on the scrim (tour/country/region/collection heroes) */
.rhero .page-sub { color: rgba(255,255,255,0.92); margin: 2px 0 0; font-size: 16.5px; max-width: 720px; text-shadow: 0 1px 8px rgba(8,12,22,0.4); }
/* Static index-page variant: same hero language, slightly shorter, no live map */
.rhero-static { height: clamp(380px, 48vh, 520px); }
.rhero-static h1 { font-size: clamp(30px, 4.4vw, 46px); }
.hero-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 640;
  padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.hero-chip .hc-ic { display: inline-flex; }
.hero-chip .hc-ic svg { width: 13px; height: 13px; display: block; }
/* The Look Around chip links down to the on-page preview where one exists */
a.hero-chip { color: #fff; }
a.hero-chip:hover { text-decoration: none; background: rgba(255,255,255,0.28); }
.la-section h2 { scroll-margin-top: 90px; }
.rhero .sat-toggle { left: auto; right: 14px; top: 14px; }
@media (max-width: 640px) {
  .rhero { height: 400px; }
  .rhero-static { height: 360px; }
  .rhero-crumbs { font-size: 12px; padding: 6px 12px; }
  .rhero .road-sub { font-size: 15px; }
  .rhero .page-sub { font-size: 14.5px; }
}
/* Road page body: same gutter as .wrap without triggering the section hairlines */
.road-body { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.spec-float { position: relative; z-index: 3; margin-top: -34px; box-shadow: var(--shadow-lift); }
@media (max-width: 640px) { .spec-float { margin-top: -24px; } }
/* Short sections pair up on desktop so the right half of the page isn't dead space */
.pair-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
@media (max-width: 720px) { .pair-cols { grid-template-columns: 1fr; } }
.chip-tint { color: var(--ink); font-weight: 640; }
.chip-tint:hover { text-decoration: none; box-shadow: 0 2px 6px rgba(11,18,32,0.1), 0 0 0 1px rgba(11,18,32,0.1); }
/* At a glance: sparse chip families share one cluster under the standfirst instead
   of three heading + single-pill stutters */
.glance-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; max-width: 720px; }
/* Best-months strip: a 12-cell calendar reads faster than word chips */
.months-strip { display: inline-flex; gap: 4px; margin-top: 14px; }
.mcell { width: 30px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--color-slate-100); color: var(--color-slate-400); font-family: var(--font-mono); font-size: 12.5px; font-weight: 560; }
.mcell.on { background: var(--color-blue-600); color: #fff; }
/* Small cells up to 780: in the 721-780 pair-column band the 404px strip
   overflowed its ~322px column into the neighbouring timeline (pass-6 audit).
   The wrap guard is belt-and-braces; it never engages when the strip fits. */
@media (max-width: 780px) { .mcell { width: 24px; height: 30px; border-radius: 8px; } .months-strip { gap: 3px; max-width: 100%; flex-wrap: wrap; } }
/* Directions out of Where-it-runs */
.dir-links { margin: 12px 0 0; color: var(--color-slate-500); font-size: 14.5px; }
/* Percentile caption under the Character grid (computed, never editorial) */
.char-context { margin: 12px 0 0; color: var(--color-slate-500); font-size: 14px; }
/* One-line contextual CTA (the dark band lives 3,500px down) */
/* Conditions card (client-rendered) + app funnel line */
.cond-funnel { color: var(--color-slate-500); font-size: 13.5px; margin: 12px 0 0; }
/* Look Around preview box */
.la-box { position: relative; height: 340px; border-radius: var(--r-l); overflow: hidden; background: var(--color-slate-100); box-shadow: var(--shadow-card); }
.la-box > * { width: 100%; height: 100%; }
/* Loading shimmer + label: the wasm + imagery stream takes seconds, and an
   empty grey box read as broken. Hidden the moment the preview mounts. */
.la-box::before { content: "Loading the view from the road…"; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-slate-500); font-size: 14px; font-weight: 560;
  background: linear-gradient(100deg, var(--color-slate-100) 40%, var(--color-slate-50) 50%, var(--color-slate-100) 60%) 0 0 / 200% 100%;
  animation: la-shimmer 1.6s linear infinite; }
.la-box[data-la="loaded"]::before { content: none; }
@keyframes la-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .la-box::before { animation: none; } }
@media (max-width: 640px) { .la-box { height: 240px; } }

.road-hero { margin: 24px 0 8px; }
.road-hero-map { background: linear-gradient(180deg, #F3F8FF, #E8F1FE); border-radius: var(--r-l); box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(0,0,0,0.04); padding: 10px; overflow: hidden; }
.road-hero-map svg { display: block; width: 100%; height: auto; }
/* When MapLibre takes over, the container becomes the live map canvas at a fixed visual height. */
.road-hero-map.live { padding: 0; height: 480px; }
.road-hero-map.live .hero-map-fallback { display: none; }
.road-hero-map.live .maplibregl-canvas { border-radius: var(--r-l); }
.sat-toggle { position: absolute; top: 10px; left: 10px; z-index: 5; background: #fff; border: 0; border-radius: 10px; padding: 8px 13px; font: 640 13.5px var(--font-sans); color: var(--ink); box-shadow: 0 1px 4px rgba(11,18,32,0.2); cursor: pointer; }
.sat-toggle:hover { background: var(--slate-100); }
.map-dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(11,18,32,0.35); }
@media (max-width: 640px) { .road-hero-map.live { height: 360px; } }
.prose { max-width: 720px; margin-top: 22px; }
.lede { font-size: 21px; font-weight: 560; letter-spacing: -0.012em; line-height: 1.5; }
/* Editor's quote card, mirroring the app's roadbook quote: serif italic pull-quote
   on a soft accent gradient (the app's 10% → 4%), sentence-case caption per the
   no-uppercase web rule. */
.editors-note { position: relative; background: linear-gradient(135deg, rgba(21,93,252,0.10), rgba(21,93,252,0.04)); border-radius: var(--r-m); padding: 26px 24px 18px 56px; margin: 22px 0; }
.en-mark { position: absolute; left: 18px; top: 14px; font-size: 56px; line-height: 1; color: var(--blue-400); opacity: 0.75; font-family: Georgia, 'Times New Roman', serif; }
.en-quote { margin: 0 0 10px; color: var(--slate-700); font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 20px; line-height: 1.5; }
.en-cap { margin: 0; color: var(--blue-800); font-size: 13px; font-weight: 640; }
.elev-card { padding: 12px; border-radius: var(--r-m); }
.elev-card svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.elev-card svg text { font-family: var(--font-mono); }
/* Points of interest: the app's detailListRow — accent glyph in a 24pt slot, semibold
   title, caption note, 12px vertical rhythm, dividers inset past the glyph */
.poi-list { list-style: none; padding: 0; margin: 8px 0 0; }
.poi-list li { display: flex; align-items: flex-start; gap: 8px; padding: 12px 0; }
.poi-list li + li { border-top: 1px solid var(--color-slate-100); }
.poi-ic { flex: 0 0 24px; display: inline-flex; justify-content: center; color: var(--blue-700); padding-top: 1px; }
.poi-ic svg { width: 18px; height: 18px; display: block; }
.poi-body { display: flex; flex-direction: column; gap: 1px; }
.poi-body strong { font-size: 15px; font-weight: 640; letter-spacing: -0.01em; }
.poi-note { color: var(--slate-500); font-size: 13px; }
/* Hazards: the app's card exactly — amber Label title with warning triangle,
   hazard-coloured dot bullets (Theme.Palette.hazard = amber700 #BB4D00) */
.hazards-card { margin-top: var(--section-gap); padding: 20px 22px 16px; border-radius: var(--r-m); }
.hazards-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 20px; color: #BB4D00; }
.haz-ic { display: inline-flex; }
.haz-ic svg { width: 20px; height: 20px; display: block; }
.hazard-list { list-style: none; padding: 0; margin: 0; }
.hazard-list li { position: relative; padding-left: 16px; margin-bottom: 8px; }
.hazard-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: #BB4D00; }
.see-all { margin-top: 14px; font-weight: 560; }

/* Featured road: wide cinematic satellite card leading a region's grid */
.feat-card { position: relative; display: block; height: 300px; margin-top: 18px; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-card); transition-property: transform, box-shadow; transition-duration: 0.16s; transition-timing-function: cubic-bezier(0.2,0,0,1); }
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feat-card:active { transform: scale(0.96); }
.feat-card img { width: 100%; height: 100%; object-fit: cover; display: block; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; border-radius: inherit; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.feat-card:hover img, .feat-card:hover svg { transform: scale(1.03); }
.feat-card svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.feat-card + .card-grid { margin-top: 16px; }
.feat-cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 64px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(8,12,22,0.55) 45%, rgba(8,12,22,0.88)); }
.feat-text { display: grid; gap: 2px; min-width: 0; }
.feat-cap strong { font-size: 24px; letter-spacing: -0.02em; }
.feat-cap .feat-text > span { font-size: 13.5px; color: rgba(255,255,255,0.88); }
.fs-cap .feat-pill { color: var(--ink); }
.feat-pill { flex: 0 0 auto; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 13.5px; font-weight: 640; padding: 9px 16px; border-radius: 999px; box-shadow: 0 2px 10px rgba(8,12,22,0.3); }
@media (max-width: 560px) { .feat-pill { display: none; } .feat-cap strong { font-size: 20px; } }
@media (max-width: 640px) { .feat-card { height: 210px; } }

/* Long-wall rhythm: geographic chapter heads, hairline breaks, double-width
   editor's-choice cards, and the single Grand Tour cross-promo row */
.cluster-head { display: flex; align-items: center; gap: 12px; margin: 44px 0 0; font-size: 17px; letter-spacing: -0.012em; }
.cluster-head .rule { flex: 1; height: 1px; background: var(--color-slate-200); }
.cluster-head .count { flex: 0 0 auto; font-size: 13.5px; }
.cluster-break { display: flex; align-items: center; gap: 14px; margin: 44px 0 0; color: var(--slate-500); font-size: 13.5px; font-weight: 560; }
.cluster-break > span { flex: 0 1 auto; text-align: center; }
.cluster-break::before, .cluster-break::after { content: ""; flex: 1; height: 1px; background: var(--color-slate-200); }
@media (min-width: 640px) {
  .road-card.wide { grid-column: span 2; }
  .road-card.wide .road-card-body h3 { font-size: 19px; }
}
.tour-promo { margin-top: 44px; }
.tour-promo .eyebrow { margin: 0 0 10px; }
.tour-promo .tour-card { min-height: 230px; }

/* Country + collection grids */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-collection-min), 1fr)); gap: 16px; margin-top: 18px; }
/* Collection card: the app's Browse-rail tile — tint gradient + the collection's own
   icon (its real SF Symbol via Phosphor), white text. Gradient matches iOS exactly:
   tint to tint-at-78%-opacity (i.e. 22% white mixed in), lighter at the tail — NOT
   darkened toward black (the earlier web-only darkening read heavier than the app). */
.collection-card { --cc: #1447E6; display: flex; flex-direction: column; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 78%, #fff 22%)); color: #fff; border-radius: var(--r-l); overflow: hidden; padding: 20px; min-height: 172px; box-shadow: var(--shadow-card); transition-property: transform, box-shadow; transition-duration: 0.16s; transition-timing-function: cubic-bezier(0.2,0,0,1); }
.collection-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.collection-card:active { transform: scale(0.96); }
.cc-icon { display: inline-flex; margin-bottom: auto; }
.cc-icon svg { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 1px 4px rgba(8,12,22,0.25)); }
.cc-body { margin-top: 16px; }
.cc-body h3 { color: #fff; margin: 0 0 4px; font-size: 17px; }
.cc-body p { margin: 0 0 8px; color: rgba(255,255,255,0.88); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-body .count { color: rgba(255,255,255,0.82); font-size: 12.5px; }
@media (min-width: 640px) {
  .collection-grid .cc-feature { grid-column: span 2; }
  .collection-grid .cc-feature h3 { font-size: 22px; }
}

/* Collection page: wide satellite hero with every member road overlaid */
.collection-page .spec-strip:not(.spec-float) { margin-top: 18px; }

/* Guide post cards: blog-style editorial cards fronted by the #1 road's satellite */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-l); overflow: hidden; color: var(--ink); box-shadow: var(--shadow-card); transition-property: transform, box-shadow; transition-duration: 0.16s; transition-timing-function: cubic-bezier(0.2,0,0,1); }
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.post-card:active { transform: scale(0.96); }
.post-media { position: relative; aspect-ratio: 640 / 280; background: #3f4a42; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; color: transparent; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.post-card:hover .post-media img, .post-card:hover .post-media svg { transform: scale(1.03); }
.post-media svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.post-body { display: grid; gap: 5px; padding: 16px 18px 18px; align-content: start; }
.post-kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 560; color: var(--color-slate-500); }
.post-body p { margin: 0; color: var(--color-slate-500); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-read { font-size: 13.5px; font-weight: 640; color: var(--color-blue-700); margin-top: 3px; }
@media (min-width: 640px) {
  .post-grid .post-feature { grid-column: span 2; }
  .post-grid .post-feature h3 { font-size: 24px; }
  .post-grid .post-feature .post-media { aspect-ratio: 640 / 240; }
}

/* Countries index: satellite cards in the tour-card language */
.country-sat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.country-sat { position: relative; display: flex; align-items: flex-end; min-height: 170px; border-radius: var(--r-l); overflow: hidden; color: #fff; box-shadow: var(--shadow-card); background: radial-gradient(120% 160% at 10% 0%, #16203a, var(--night)); transition-property: transform, box-shadow; transition-duration: 0.16s; transition-timing-function: cubic-bezier(0.2,0,0,1); }
.country-sat:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.country-sat:active { transform: scale(0.96); }
.country-sat > img:not(.flag-svg) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.country-sat:hover > img:not(.flag-svg) { transform: scale(1.03); }
.country-sat .tc-scrim { position: absolute; inset: 0; }
.cs-body { position: relative; z-index: 1; display: grid; gap: 2px; padding: 16px 18px; }
.cs-body strong { font-size: 18px; letter-spacing: -0.015em; text-shadow: 0 1px 8px rgba(8,12,22,0.4); }
.cs-body span { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 560; text-shadow: 0 1px 6px rgba(8,12,22,0.4); }

/* Guide rows: a satellite thumb anchors each ranked entry */
.guide-thumb { position: relative; flex: 0 0 96px; height: 60px; border-radius: var(--radius-xl); overflow: hidden; background: #3f4a42; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; color: transparent; }
.guide-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.guide-colhead { margin: 24px 0 -14px; text-align: right; font-family: var(--font-mono); font-size: 12px; font-weight: 560; color: var(--color-slate-500); }
@media (max-width: 560px) { .guide-thumb { flex-basis: 72px; height: 48px; } .guide-colhead { display: none; } }

/* Editorial guides: ranked list + guide cards */
.guide-intro { max-width: 760px; margin-bottom: 8px; }
.guide-list { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: none; }
.guide-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid var(--color-slate-100); }
.guide-row:first-child { border-top: 0; }
.guide-rank { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--color-slate-100); color: var(--slate-600); font-family: var(--display); font-weight: 740; font-size: 15px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.guide-body { flex: 1 1 auto; min-width: 0; }
.guide-name { color: var(--ink); }
.guide-name:hover { text-decoration: none; }
.guide-meta { margin: 2px 0 4px; color: var(--slate-600); font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.guide-note { margin: 0; color: var(--slate-500); font-size: 14px; line-height: 1.5; }
.guide-stat { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; }
.guide-stat strong { font-family: var(--font-mono); font-weight: 640; font-size: 19px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.guide-stat span { color: var(--slate-500); font-size: 12px; }
/* Phones keep the stat (it is the ranking's evidence), just smaller */
@media (max-width: 560px) {
  .guide-row { gap: 12px; }
  .guide-stat strong { font-size: 15px; }
  .guide-stat span { font-size: 10.5px; }
}

/* Region links: pill row of sub-region landing pages on country/region pages */
.region-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.region-links a { background: var(--paper); box-shadow: 0 1px 2px rgba(11,18,32,0.06), 0 0 0 1px rgba(11,18,32,0.07); border-radius: 999px; padding: 8px 15px; font-size: 14.5px; font-weight: 640; color: var(--slate-700); white-space: nowrap; }
.region-links a:hover { text-decoration: none; color: var(--ink); box-shadow: 0 2px 6px rgba(11,18,32,0.1), 0 0 0 1px rgba(11,18,32,0.1); }
.region-intro { max-width: 760px; }

/* Eyebrow: quiet section label (sentence case, never uppercase) */
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--slate-500); font-family: var(--font-mono); font-size: 13px; font-weight: 560; margin: var(--section-gap) 0 2px; }
.eyebrow + h2, .eyebrow + .page-title, .eyebrow + .road-head h1, .eyebrow + h1 { margin-top: 4px; }
.eyebrow + .road-head { margin-top: 0; }
.eyebrow + .road-head h1, .breadcrumbs + .eyebrow + .road-head h1 { margin-top: 2px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc, var(--blue-600)); }
.breadcrumbs + .eyebrow { margin-top: 18px; }
main > section .eyebrow, main > .wrap .eyebrow { margin-bottom: 0; }
section .eyebrow + h2 { margin-top: 2px; }

/* Grand Tours */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-tour-min), 1fr)); gap: 16px; margin-top: 18px; }
/* Homepage bento: the first tour goes wide and cinematic, breaking the uniform 3x3
   satellite wall (only once two columns actually exist). */
@media (min-width: 640px) {
  /* 2x2 hero tile: with 9 tours the grid fills exactly (4 + 8 = 12 cells = 4 rows of 3) */
  .tour-grid.bento .tour-card:first-child { grid-column: span 2; grid-row: span 2; }
  .tour-grid.bento .tour-card:first-child h3 { font-size: 28px; }
  .tour-grid.bento .tour-card:first-child p { font-size: 16px; -webkit-line-clamp: 3; }
}
.tour-card { --cc: #1447E6; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; color: #fff; border-radius: var(--r-l); padding: 18px 20px 18px; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 72%, #fff 28%)); box-shadow: var(--shadow-card); overflow: hidden; transition-property: transform, box-shadow; transition-duration: 0.16s; transition-timing-function: cubic-bezier(0.2,0,0,1); }
.tour-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tour-card:hover .tc-sat, .tour-card:hover .tc-lines { transform: scale(1.03); }
.tour-card:active { transform: scale(0.96); }
/* Satellite variant: full-bleed imagery, day-coloured lines, text on a bottom scrim */
.tc-sat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.tc-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.tc-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,22,0.42) 0%, rgba(8,12,22,0.05) 30%, rgba(8,12,22,0.10) 55%, rgba(8,12,22,0.92) 100%); pointer-events: none; }
.tour-card .tour-kicker-row, .tour-card .tc-content { position: relative; z-index: 1; }
.tc-content { margin-top: auto; }
.tour-kicker { display: block; font-size: 13px; font-weight: 640; color: rgba(255,255,255,0.86); }
.tour-card h3 { color: #fff; font-size: 22px; margin-bottom: 5px; text-shadow: 0 1px 8px rgba(8,12,22,0.35); }
.tour-card p { color: rgba(255,255,255,0.92); font-size: 14.5px; line-height: 1.45; margin-bottom: 10px; text-shadow: 0 1px 6px rgba(8,12,22,0.4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-meta { color: rgba(255,255,255,0.85); font-size: 13.5px; font-weight: 560; text-shadow: 0 1px 6px rgba(8,12,22,0.4); }

/* NYT-style gate: days 2+ stay in the DOM (declared via paywalled-content JSON-LD)
   but fade out under a white gradient into the gate card. The fade reaches solid
   white well before the cut so no half-rendered cards or sliced words show. */
.tour-gated { position: relative; max-height: 340px; overflow: hidden; }
.tour-gated::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 280px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 52%, #fff 82%); }
.tour-gate { position: relative; z-index: 1; margin: -96px auto 8px; max-width: 660px; text-align: center; padding: 30px 28px 28px;
  background: rgba(255,255,255,0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: var(--r-l); box-shadow: var(--shadow-lift); }
.tour-gate h2 { margin: 0 0 8px; font-size: 24px; }
.tour-gate p { max-width: 540px; margin: 0 auto 18px; color: var(--slate-600); }
.tour-gate .gate-sub { margin-top: 12px; font-size: 13px; color: var(--slate-500); }
.dn-locked { opacity: 0.62; }
.tour-gate .btn-primary { padding: 14px 28px; }

/* When-to-go: an icon note line under the dek, not a 70-character pill */
.tour-when { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: #8a5a00; font-size: 15px; font-weight: 560; }
.tour-when .tag-ic svg { width: 16px; height: 16px; }
/* Area chip + when-to-go, below the full-bleed tour hero */
.tour-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; }
.tour-meta-row .tour-when { margin: 0; }

/* Day jump nav on tour pages */
.day-nav { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.day-nav::-webkit-scrollbar { display: none; }
.day-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); box-shadow: 0 1px 2px rgba(11,18,32,0.06), 0 0 0 1px rgba(11,18,32,0.07); border-radius: 999px; padding: 7px 15px 7px 7px; font-size: 14px; font-weight: 640; color: var(--ink); white-space: nowrap; }
.day-nav a:hover { text-decoration: none; box-shadow: 0 2px 6px rgba(11,18,32,0.1), 0 0 0 1px rgba(11,18,32,0.1); }
.day-nav-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-family: var(--display); font-weight: 740; font-size: 13px; }
.tour-day { scroll-margin-top: 86px; }
.tour-day { margin-top: 14px; }
.tour-day-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.tour-day-head h2 { margin: 0; }
.tour-day-n { color: #fff; font-family: var(--display); font-weight: 740; font-size: 14px; padding: 6px 13px; border-radius: 999px; box-shadow: 0 2px 8px rgba(11,18,32,0.18); }
.tour-day-note { color: var(--slate-500); max-width: 720px; margin-top: 10px; }
.tour-fallback svg { max-height: 420px; }

/* App CTA: the dark contrast band */
.app-cta { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; background: radial-gradient(120% 160% at 10% 0%, #16203a 0%, var(--night) 58%); color: #fff; border-radius: var(--r-l); padding: 34px 36px; margin: 56px 0 8px; box-shadow: 0 18px 50px rgba(11,18,32,0.28); }
.app-cta-lead { display: flex; align-items: center; gap: 20px; flex: 1 1 420px; }
.cta-icon { width: 58px; height: 58px; border-radius: 13.5px; flex: 0 0 auto; box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.12); }
.app-cta h2 { color: #fff; margin: 0 0 7px; font-size: 25px; }
.app-cta p { margin: 0; color: rgba(255,255,255,0.78); max-width: 560px; font-size: 15.5px; }
@media (max-width: 640px) { .app-cta-lead { flex-direction: column; align-items: flex-start; gap: 14px; } }
/* Homepage split feature: copy left, full-bleed satellite editorial right */
.feature-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; margin-top: 64px; }
.fs-copy h2 { margin-top: 2px; }
.why-list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-ic { flex: 0 0 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--color-slate-50); box-shadow: 0 0 0 1px rgba(11,18,32,0.06); }
.why-ic svg { width: 19px; height: 19px; display: block; }
.why-list strong { display: block; font-size: 16.5px; letter-spacing: -0.012em; margin-bottom: 2px; }
.why-list span { color: var(--slate-500); font-size: 15px; line-height: 1.55; }
.fs-feature { position: relative; display: block; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; }
.fs-feature img { width: 100%; height: 100%; object-fit: cover; display: block; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; border-radius: inherit; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.fs-feature:hover img, .fs-feature:hover svg { transform: scale(1.03); }
.fs-feature svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.fs-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 20px 16px; color: #fff; background: linear-gradient(180deg, transparent, rgba(8,12,22,0.78)); }
.fs-cap strong { display: block; font-size: 19px; letter-spacing: -0.015em; }
.fs-cap span { font-size: 13.5px; color: rgba(255,255,255,0.88); }
@media (max-width: 880px) { .feature-split { grid-template-columns: 1fr; gap: 22px; } }

main > .wrap > section:first-of-type h2, main.wrap h1 { margin-top: 28px; }
@media (max-width: 880px) {
  .fc-2, .fc-4 { display: none; }
  .fc-1 { left: -4%; top: 6%; }
  .fc-3 { right: -4%; top: 58%; }
}
@media (max-width: 640px) {
  .site-nav { gap: 12px; font-size: 14px; }
  .hero { padding: 56px 0 44px; }
  .hero-stage:not(.fan) { height: 480px; margin-top: 30px; }
  .phone { width: 270px; height: 470px; }
  .float-card { max-width: 200px; padding: 10px 13px; }
  .fc-1 { left: 6px; top: 4%; }
  .fc-3 { right: 6px; top: 60%; }
  /* A nowrap button with a long label ("Download Routes on the App Store") inside the
     padded CTA band forced a ~450px minimum page width: every page clipped on phones. */
  .btn { white-space: normal; text-align: center; }
  .app-cta { padding: 26px 22px; }
}
/* Settle-on-scroll (the app's card entrance). Uses the separate `translate`
   property so it composes with the transform-based hover lift. Classes are
   JS-applied: without JS nothing ever hides. */
.settle { opacity: 0; translate: 0 14px; transition-property: opacity, translate; transition-duration: 0.5s; transition-timing-function: cubic-bezier(0.2,0,0,1); }
.settle.settled { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .road-card, .collection-card { transition: none; }
  .settle { opacity: 1; translate: none; transition: none; }
}

/* Pro badging (tours are a Pro app feature; web stays an open shop window) */
.tour-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-stage.has-photo { display: flex; align-items: center; justify-content: center; }

/* Roads directory (/roads/) */
.dir-tools { position: sticky; top: 62px; z-index: 9; background: rgba(255,255,255,0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 12px 0 10px; margin: 4px 0 6px; border-bottom: 1px solid var(--color-slate-200); }
.dir-search { width: 100%; max-width: 460px; font: 560 16px/1 var(--font-sans); color: var(--ink); background: var(--color-slate-100); border: 0; border-radius: 999px; padding: 13px 20px; }
.dir-search:focus-visible { outline: 3px solid var(--color-blue-400); outline-offset: 2px; }
.dir-search::placeholder { color: var(--color-slate-500); }
.dir-search-row { display: flex; align-items: center; gap: 14px; }
.dir-count { font-family: var(--font-mono); font-size: 13px; font-weight: 560; color: var(--color-slate-500); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Facet groups: one compact button per family opening a chip popover (AllTrails
   pattern); selections show as count badges so closed groups still read. */
.facet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 0; }
.facet { position: relative; }
.facet > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--paper); box-shadow: 0 1px 2px rgba(11,18,32,0.06), 0 0 0 1px rgba(11,18,32,0.07);
  border-radius: 999px; padding: 6px 12px; font: 560 13px var(--font-sans); color: var(--color-slate-700); }
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.facet[open] > summary { background: var(--ink); color: #fff; box-shadow: none; }
.facet[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.facet-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; display: flex; flex-wrap: wrap; gap: 6px;
  width: max-content; max-width: min(340px, calc(100vw - 48px)); padding: 12px; background: #fff;
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-float); }
.f-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--color-blue-600); color: #fff; font-size: 11px; font-weight: 640; padding: 0 5px; }
.f-badge:empty { display: none; }
.facet[open] .f-badge { background: rgba(255,255,255,0.25); }
.f-clear { background: none; border: 0; cursor: pointer; color: var(--color-blue-700); font: 560 13px var(--font-sans); padding: 6px 10px; }
.f-clear[hidden] { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 0; cursor: pointer;
  box-shadow: 0 1px 2px rgba(11,18,32,0.06), 0 0 0 1px rgba(11,18,32,0.07); border-radius: 999px; padding: 6px 12px;
  font: 560 13px var(--font-sans); color: var(--color-slate-700); transition-property: background, box-shadow, color; transition-duration: 0.14s; }
.fchip:hover { box-shadow: 0 2px 6px rgba(11,18,32,0.1), 0 0 0 1px rgba(11,18,32,0.1); }
.fchip:active { transform: scale(0.96); }
.fchip[aria-pressed] { background: var(--ink); color: #fff; box-shadow: none; }
.fchip .dot { width: 8px; height: 8px; }
.fchip .tag-ic svg { width: 13px; height: 13px; display: block; }
.dir-jump { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
/* Only genuinely wide viewports see every country at once: at 900-1279 the 27
   pills wrapped to 4-5 rows inside the sticky tools, walling off half the
   viewport. The compact rail stays through tablet. The scroll-margins match
   the REAL sticky chrome per mode (header + tools: ~220px rail, ~351px wrap). */
@media (min-width: 1280px) { .dir-jump { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } .dir-country { scroll-margin-top: 370px; } }
.dir-jump .jump-n { margin-left: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--color-slate-500); font-variant-numeric: tabular-nums; }
.dir-jump a.live { background: var(--ink); color: #fff; }
.dir-jump a.live .jump-n { color: rgba(255,255,255,0.7); }
/* Country-jump anchors land clear of the sticky header + tools chrome */
.dir-country { scroll-margin-top: 230px; }
.map-toggle { margin-left: auto; white-space: nowrap; font-size: 14.5px; font-weight: 640; }

/* Explore: the whole catalogue on one clustered map */
.explore-map { position: relative; height: min(72vh, 720px); margin-top: 22px; border-radius: var(--r-l); overflow: hidden; background: var(--color-slate-100); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; }
.explore-fallback { color: var(--color-slate-500); max-width: 360px; text-align: center; }
/* App-style selection card: picking a road (dot or line) raises this at the
   map's bottom-left with the satellite thumb, stats and roadbook link */
.ex-card { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: min(420px, calc(100% - 28px)); padding: 12px 46px 12px 16px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-float);
  animation: ex-card-in 0.22s cubic-bezier(0.2, 0, 0, 1); }
.ex-card[hidden] { display: none; }
.ex-card-body { display: grid; gap: 2px; min-width: 0; }
.ex-card-body strong { font-size: 15.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-card-body span { color: var(--color-slate-500); font-size: 13px; white-space: nowrap; }
.ex-card .btn { white-space: nowrap; flex: none; }
.ex-card-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--color-slate-100); color: var(--color-slate-600); font-size: 17px; line-height: 1; cursor: pointer; }
.ex-card-x:hover { background: var(--color-slate-200); }
.ex-card-x:active { transform: scale(0.96); }
@keyframes ex-card-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .ex-card { animation: none; } }
.dir-jump::-webkit-scrollbar { display: none; }
.dir-jump a { flex: 0 0 auto; font-size: 13.5px; font-weight: 640; color: var(--color-slate-700); background: var(--color-slate-100); border-radius: 999px; padding: 7px 13px; }
/* :not(.live) - a plain :hover ties with .live on specificity and sits later
   in the file, so it stole the active pill's ink background and left its
   white text on pale blue */
.dir-jump a:hover:not(.live) { background: var(--color-blue-50); }
.dir-jump a:hover { text-decoration: none; }
.dir-country { margin-top: var(--section-gap); }
.dir-country-head { display: flex; align-items: baseline; gap: 10px; }
.dir-country-head .count { color: var(--color-slate-500); font-weight: 640; font-size: 15px; }
.dir-country-head .all-link { margin-left: auto; font-size: 14.5px; font-weight: 640; white-space: nowrap; }
/* Fixed shield column so every road name aligns to the same x, whether or not the
   road has a number (81 roads have none, and shields vary in width). Without this
   the names made a jagged left edge. */
/* Long names ellipsise (full name in the title attr) so rows stay single-line. */
.dir-none { color: var(--color-slate-500); padding: 24px 0; display: none; }
.road-card-meta .away { white-space: nowrap; }
/* Hero photo (Simon's framed screenshot replaces the CSS phone) */
.hero-stage.has-photo .phone { display: none; }
.hero-photo { display: block; width: 330px; max-width: 82%; height: auto; margin: 0 auto; filter: drop-shadow(0 24px 60px rgba(11,18,32,0.28)); }
@media (max-width: 640px) { .hero-photo { width: 270px; } }

/* App-Store-style spec strip (mirrors the app's statsRow) */
.spec-strip { display: flex; align-items: stretch; background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow-card); padding: 16px 6px 13px; margin-top: 16px; }
.spec { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 8px; text-align: center; min-width: 0; }
.spec + .spec { border-left: 1px solid var(--color-slate-200); }
.spec-label { font-size: 12.5px; font-weight: 640; letter-spacing: 0.01em; color: var(--color-slate-500); white-space: nowrap; }
.spec-value { font-family: var(--font-mono); font-weight: 640; font-size: 22px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.spec-diff { font-size: 18px; }
.spec-sub { font-size: 12px; color: var(--color-slate-500); white-space: nowrap; }
.character h2 { margin-top: var(--section-gap); }
/* Character grid (the app's 2x3 stat cells) */
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.char { background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow-card); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.char-n { font-family: var(--font-mono); font-weight: 640; font-size: 24px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.char-sub { color: var(--color-slate-500); font-size: 12.5px; }
@media (max-width: 560px) { .char-grid { grid-template-columns: 1fr 1fr; } .char-n { font-size: 20px; } }

.char-ic { display: inline-flex; margin-right: 6px; vertical-align: -2px; }
.char-ic svg { width: 13px; height: 13px; display: block; }
.spec-label { display: inline-flex; align-items: center; }

/* Elevation hover tooltip: SaaS-dashboard card, not raw svg text */
.elev-tip { position: absolute; z-index: 6; pointer-events: none; display: grid; gap: 1px; padding: 8px 12px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lift); white-space: nowrap; }
.elev-tip strong { font-size: 14px; letter-spacing: -0.01em; }
.elev-tip span { font-size: 12px; color: var(--color-slate-500); }

/* Scenery | Best seasons: two columns at desktop, like the app's paired tag sections */

/* Where it runs */
.where-runs h2 { margin-top: var(--section-gap); }
.run-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.run-row + .run-row { border-top: 1px solid var(--color-slate-100); }
.runs { position: relative; }
.runs.has-line::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: #BEDBFF; }
.run-dot { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; background: var(--color-blue-600); box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(11,18,32,0.25); }
.run-dot.end { background: #fff; box-shadow: inset 0 0 0 3px var(--color-blue-600), 0 0 0 3px #fff, 0 1px 4px rgba(11,18,32,0.25); }
.run-row strong { display: block; font-size: 16.5px; letter-spacing: -0.01em; }
.run-row div span { color: var(--color-slate-500); font-size: 13.5px; }

/* Elevation head with range badge */
.elev-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.elev-range { color: var(--color-slate-500); font-family: var(--font-mono); font-size: 13px; font-weight: 560; font-variant-numeric: tabular-nums; }

/* Road header shields sit inline with the sub line */
.road-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.road-sub .shield { font-size: 12.5px; padding: 3px 9px; }
/* App-style tag chips: neutral fill, coloured glyph, primary text */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--color-slate-100); border-radius: 999px; padding: 8px 14px; font-size: 14.5px; font-weight: 640; color: var(--ink); white-space: nowrap; }
.tag-chip svg, .tag-ic svg { width: 15px; height: 15px; flex: 0 0 auto; display: block; }
.tag-ic { display: inline-flex; flex: 0 0 auto; }
@media (max-width: 560px) {
  .spec-value { font-size: 18px; }
  .spec-diff { font-size: 15px; }
  .spec-label { font-size: 11.5px; }
  /* 4-up strips overflow a phone: wrap to a 2x2 grid and drop the dividers */
  .spec-strip { display: grid; grid-template-columns: 1fr 1fr; row-gap: 14px; padding: 14px 6px 12px; }
  .spec + .spec { border-left: 0; }
  .spec:nth-child(even) { border-left: 1px solid var(--color-slate-200); }
  /* A 3-stat strip would orphan its third cell bottom-left; span it full width */
  .spec-strip:not(.spec-float) > .spec:nth-child(3):last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--color-slate-200); padding-top: 12px; }
  /* The road page's 3-up strip keeps one compact row — no orphaned third stat */
  .spec-strip.spec-float { display: flex; padding: 13px 4px 11px; }
  .spec-float .spec { padding: 0 4px; }
  .spec-float .spec + .spec { border-left: 1px solid var(--color-slate-200); }
  .spec-float .spec-value { font-size: 16px; }
  .spec-float .spec-diff { font-size: 13.5px; }
  .spec-float .spec-label { font-size: 11px; }
  .spec-float .spec-sub { font-size: 10.5px; }
}
/* Vendored circle-flag SVGs: identical cross-platform rendering, sized per slot */
.flag-svg { display: inline-block; vertical-align: -0.15em; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 1px rgba(11,18,32,0.08); }
.cc-body .count .flag-svg { margin-right: 3px; vertical-align: -0.2em; }
.dir-jump .flag-svg { margin-right: 6px; }

/* Country cards: full names beat ellipses — wrap to two lines when needed */

/* Five-phone deck fan: centre upright, pairs stepped down + rotated. The stage
   sizes to its content (height: auto overrides the 560px base) so no phone is
   ever cut by the section below. Entrance rise animates the separate `translate`
   property so it composes with each phone's static rotate. */
/* padding-bottom is only a small guard for the tilted outer phones' corners —
   at desktop the fan's visual bottom matched the content edge and the old 84px
   was pure air (180px measured to the Grand Tours eyebrow; ~90px now). */
.hero-stage.fan { display: flex; align-items: flex-start; justify-content: center; max-width: 1180px; height: auto; margin: 52px auto 0; padding-bottom: 12px; }
/* Every phone is shown whole: sizes fit the viewport at each width (no horizontal crop),
   a gentle vertical step gives the fan shape (no bottom crop), no clip and no fade. */
.fan-phone { flex: 0 0 auto; height: auto; }
.fp-c { width: 300px; z-index: 5; position: relative; }
.fp-2 { width: 250px; z-index: 4; margin-right: -52px; transform: rotate(-5deg) translateY(30px); }
.fp-3 { width: 250px; z-index: 4; margin-left: -52px; transform: rotate(5deg) translateY(30px); }
.fp-1 { width: 210px; z-index: 3; margin-right: -46px; transform: rotate(-10deg) translateY(70px); }
.fp-4 { width: 210px; z-index: 3; margin-left: -46px; transform: rotate(10deg) translateY(70px); }
@media (prefers-reduced-motion: no-preference) {
  .fan-phone { animation: fanrise 0.7s cubic-bezier(0.2, 0, 0, 1) both; }
  .fp-2, .fp-3 { animation-delay: 0.09s; }
  .fp-1, .fp-4 { animation-delay: 0.18s; }
  @keyframes fanrise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
}
/* Below desktop: drop the two outer phones, keep three whole */
@media (max-width: 1080px) {
  .hero-stage.fan { padding-bottom: 44px; }
  .fp-1, .fp-4 { display: none; }
  .fp-c { width: 280px; }
  .fp-2, .fp-3 { width: 230px; }
  .fp-2 { margin-right: -50px; } .fp-3 { margin-left: -50px; }
}
@media (max-width: 860px) {
  .hero-stage.fan { padding-bottom: 36px; }
  .fp-c { width: 232px; }
  .fp-2, .fp-3 { width: 184px; transform: rotate(-5deg) translateY(24px); }
  .fp-3 { transform: rotate(5deg) translateY(24px); }
  .fp-2 { margin-right: -44px; } .fp-3 { margin-left: -44px; }
}
/* Small phones: a single clean device, fully visible, no fan to crop */
@media (max-width: 560px) {
  .hero-stage.fan { margin-top: 36px; padding-bottom: 8px; }
  .fp-2, .fp-3 { display: none; }
  .fp-c { width: min(280px, 74vw); transform: none; }
}

/* Photo hero: full device, breathing room, real-UI float shots */
.hero-stage.has-photo { display: block; position: relative; height: auto; max-width: 980px; margin: 64px auto 0; text-align: center; }
.hero-stage.has-photo .hero-photo { position: relative; z-index: 1; width: 340px; max-width: 78%; margin: 0 auto; }
.float-shot { position: absolute; z-index: 3; height: auto; border-radius: 18px; box-shadow: var(--shadow-float); background: #fff; }
.fs-1 { width: 195px; left: 5%; top: 5%; transform: rotate(-3deg); }
.fs-2 { width: 250px; right: 3%; top: 16%; transform: rotate(2deg); }
.fs-3 { width: 300px; left: 2%; top: 56%; transform: rotate(2deg); }
.fs-4 { width: 295px; right: 4%; top: 72%; transform: rotate(-2deg); }
@media (max-width: 880px) {
  .fs-1 { width: 160px; left: 1%; }
  .fs-2 { width: 205px; right: 0; }
  .fs-3 { width: 240px; left: 0; top: 58%; }
  .fs-4 { display: none; }
}
@media (max-width: 640px) {
  .hero-stage.has-photo { margin-top: 44px; }
  .hero-stage.has-photo .hero-photo { width: 265px; }
  .fs-1 { width: 130px; top: 2%; }
  .fs-2 { width: 165px; top: 14%; }
  .fs-3 { width: 195px; top: 60%; }
}

/* ---- World-class pass: Vercel/Stripe surface language ---- */
/* Dotted grid backdrop behind the hero, fading out (Vercel motif) */
.hero { position: relative; }
/* Inset 0 (no -40px overhang) so the hero needs no overflow clip — that clip was
   slicing the phone tops/bottoms and their shadows. The radial mask still fades the dots. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, #BEDBFF 1px, transparent 1px); /* blue-200: a quiet brand moment before the phones */
  background-size: 22px 22px; opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 70%); }
/* Hero entrance: headline block rises in, staggered (phones already fanrise) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .hero-sub, .hero .hero-ctas, .hero .trust-row { animation: herorise 0.7s cubic-bezier(0.2,0,0,1) both; }
  .hero .hero-sub { animation-delay: 0.08s; }
  .hero .hero-ctas { animation-delay: 0.16s; }
  .hero .trust-row { animation-delay: 0.24s; }
  @keyframes herorise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
}
/* Section rhythm: hairline top borders + eyebrow labels read as a system */
main > .wrap > section + section { border-top: 1px solid var(--color-slate-100); }
/* Refined link + button micro-interactions */
.btn-primary { background: linear-gradient(180deg, #16202F, #0B1220); box-shadow: 0 1px 2px rgba(11,18,32,0.3), inset 0 1px 0 rgba(255,255,255,0.08); }
.btn-primary:hover { background: linear-gradient(180deg, #1B2740, #101A2C); }
.btn-ghost:hover { border-color: var(--color-slate-300); background: var(--color-slate-50); }
/* Footer: quiet, structured, Stripe-calm */
.site-footer { background: var(--color-slate-50); border-top: 1px solid var(--color-slate-200); }
/* Selection + focus tuned to brand */
::selection { background: var(--color-blue-100); color: var(--color-blue-900); }
/* Tabular numerals on all stats and metas */
.spec-value, .road-card-meta { font-variant-numeric: tabular-nums; }
/* Headings: tighter optical rhythm above sections */
section > h2 { letter-spacing: -0.025em; }
.section-sub { margin-top: -4px; }
/* Images get the standards-grade hairline (pure black alpha, per the interface guide) */
.road-card-map.sat img, .hero-photo { outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; border-radius: inherit; }

/* Sources demoted to small print under the hazards card */
.sources-line { margin: 14px 0 0; color: var(--color-slate-500); font-size: 13px; }
.sources-line a { color: var(--color-slate-500); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--color-slate-300); }

/* Explore: the map IS the page — full-bleed under the header with a glass count chip */
.explore-page .explore-map { height: min(78vh, 860px); border-radius: 0; margin: 22px calc(50% - 50vw) 0; box-shadow: none; }
.explore-map .sat-toggle { left: auto; right: 14px; }
/* Flat catalogue dots: no balloon, no position transition (the balloon-splay
   lesson), ring + count for clusters. The selected road's dot gets a halo;
   the scale/shadow transition is safe - it never animates position. */
.ex-dot { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(11,18,32,0.35); transition-property: transform, box-shadow; transition-duration: 0.15s; }
.ex-dot.sel { transform: scale(1.3); box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(20,71,230,0.3), 0 1px 6px rgba(11,18,32,0.4); }
.ex-cluster { display: flex; align-items: center; justify-content: center; color: #fff; font: 640 12px var(--font-sans); }
.explore-hud { position: absolute; top: 14px; left: 14px; z-index: 5; display: grid; gap: 8px; justify-items: start; }
.explore-filters { display: flex; flex-wrap: wrap; gap: 6px; max-width: 260px; }
.explore-filters .fchip[aria-pressed="false"] { opacity: 0.45; }
.explore-count { background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 640; color: var(--ink); box-shadow: 0 1px 4px rgba(11,18,32,0.2); }

/* Accessibility: links inside text blocks are underlined, not colour-only */
.prose a, .section-sub a, .page-sub a, .see-all a, .footer-tag a, .tour-day-note a {
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--color-slate-300);
}
.prose a:hover, .section-sub a:hover, .page-sub a:hover, .see-all a:hover { text-decoration-color: currentColor; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--color-slate-300); }
.breadcrumbs a:hover { text-decoration-color: currentColor; }

/* Home mobile rails: sections swipe sideways instead of stacking 12,000px deep */
@media (max-width: 640px) {
  /* grid-template-columns: none clears the stacked grid's explicit tracks —
     left in place, the FIRST card sat in the explicit (narrower) track while
     the rest used grid-auto-columns, so card one rendered 52px slimmer. */
  .rail-m { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px;
    margin-left: -22px; margin-right: -22px; padding: 0 22px 6px; scroll-padding-left: 22px; overscroll-behavior-x: contain; }
  .rail-m::-webkit-scrollbar { display: none; }
  .rail-m > * { scroll-snap-align: start; }
  .tour-grid.bento.rail-m .tour-card:first-child { grid-column: auto; grid-row: auto; }
}
/* Three-card sections at two-column widths render 2+1 with a dangling orphan;
   promote the first card to a full-width feature so it reads 1 + a clean pair. */
@media (min-width: 641px) and (max-width: 930px) {
  .tour-grid > .tour-card:first-child:nth-last-child(3),
  .country-sat-grid > .country-sat:first-child:nth-last-child(3),
  .collection-grid > .collection-card:first-child:nth-last-child(3) { grid-column: 1 / -1; }
}
/* Elevation grade key (the line colours explained, same voice as the range label) */
.grade-key { display: inline-flex; gap: 12px; margin-left: auto; color: var(--color-slate-500); font-size: 12.5px; }
.grade-key span { display: inline-flex; align-items: center; gap: 5px; }
.grade-key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.elev-head { flex-wrap: wrap; gap: 6px 12px; }
@media (max-width: 560px) { .grade-key { display: none; } }
/* Guide headings promoted to h2 keep their card-scale styling */
.post-body h2.post-h { font-family: var(--font-sans); font-size: 19px; font-weight: 700; letter-spacing: -0.022em; margin: 0; }
.post-grid .post-feature h2.post-h { font-size: 24px; }
h2.guide-h { font-family: var(--font-sans); margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.022em; }
.guide-name:hover h2.guide-h { color: var(--blue-700); }
/* Print: the roadbook on paper, not the chrome */
@media print {
  body { min-height: auto; display: block; } /* the 100vh flex shell printed a blank trailing page */
  .skip-link, .site-header, .site-footer, .app-cta, .sat-toggle, .rhero-crumbs, .hero-chip-row, .nav-menu, .dir-tools, .cond-funnel, .nearby-sec, .see-all { display: none !important; }
  .rhero { height: 300px; }
  .road-body, main { max-width: 100%; }
  a { color: inherit; text-decoration: none; }
}

/* Explore HUD hides until the map actually boots (no-JS users keep just the fallback link) */
.explore-hud { display: none; }
.explore-map.live .explore-hud { display: grid; }

/* 404 search form */
.nf-search { display: flex; gap: 10px; margin-top: 22px; max-width: 460px; }
.nf-search .dir-search { flex: 1; }
.nf-search .btn { white-space: nowrap; }

/* Sticky road dock (prototype, ?dock=1) */
.road-dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,0.92); -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px);
  border-radius: 18px; padding: 10px 12px 10px 16px; box-shadow: var(--shadow-float); }
.road-dock[hidden] { display: none; }
.rd-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rd-id strong { font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-meta { color: var(--color-slate-500); font-size: 12.5px; white-space: nowrap; }
@media (min-width: 720px) { .road-dock { left: auto; right: 22px; max-width: 420px; } .rd-meta { display: inline; } }
@media (max-width: 480px) { .rd-meta { display: none; } }

