/* Stage Stays — generated from tokens.json */
:root, [data-theme="light"] {
  --paper: #f7f3ea; /* Page background: warm chalk in light, night tarmac in dark. */
  --paper-raised: #ffffff; /* Cards, table body, key-point blocks, menus. */
  --paper-sunk: #efe8da; /* Rest-day rows, zebra rows, reserved blocks, embed placeholder ground. */
  --tarmac: #24262a; /* Header, footer, painted-title bands and the share-image profile band. Same role in both themes. */
  --on-tarmac: #f7f3ea; /* Text and the logo on `tarmac` (13:1). */
  --on-tarmac-muted: #a9a49a; /* Secondary text on `tarmac` (6:1). */
  --line-on-tarmac: #3d4046; /* Hairlines inside header and footer. */
  --road-paint: #f7f3ea; /* Dashed centre line and painted lettering on `tarmac`. */
  --ink: #17181a; /* Body text and headings on `paper`, `paper-raised`, `paper-sunk` (14:1+ in both themes). */
  --ink-muted: #55565a; /* Secondary text, table headers, credit line on `paper`, `paper-raised`, `paper-sunk` (6:1+). */
  --line: #ddd4c3; /* Hairlines between rows and around cards. Decorative only, never the only boundary of a control. */
  --line-strong: #8a826f; /* Control borders (inputs, outline buttons, switchers): 3.4:1 on `paper`. */
  --stone-body: #ffffff; /* Body of the kilometre stone and of the logo mark, in both themes. */
  --stone-cap: #c4281f; /* Cap of the kilometre stone and of the logo mark; the red ring of road-sign glyphs. White text on it (5.7:1). */
  --stone-ink: #17181a; /* Outline and number on `stone-body` (17:1). */
  --sign-blue: #1f4f9c; /* French direction-sign blue. Links, primary buttons, the edition switcher, start pins. Text on `paper` and `paper-raised` (7:1). */
  --on-sign-blue: #ffffff; /* Text and inner sign rule on a `sign-blue` fill (7.9:1). */
  --stone-red: #c4281f; /* Kilometre-stone red. The stone cap, the route line family, danger marks. Text on `paper` (5.2:1). */
  --on-stone-red: #ffffff; /* Text on a `stone-red` fill (5.7:1 light, 7.3:1 dark). */
  --sun: #f3b81b; /* July sun. Warm accent: highlights, the selected map point, the passage-time chip. A fill, never text on paper. */
  --on-sun: #17181a; /* Text on a `sun` fill (9.9:1). */
  --focus: #1f4f9c; /* Focus ring on `paper` surfaces: 2px solid, 2px offset (7:1 light, 10:1 dark). */
  --focus-on-tarmac: #f3b81b; /* Focus ring inside header and footer (8.4:1 on `tarmac`). */
  --notice: #fff4d1; /* Road-closure and estimate notice background. */
  --on-notice: #5a4300; /* Text on `notice` (8.5:1 light, 11.7:1 dark). */
  --stage-flat: #2b7a4b; /* Flat stage badge fill; text `on-stage` (5.3:1). Always with the flat glyph and the word. */
  --stage-hilly: #8f5a00; /* Hilly stage badge fill; text `on-stage` (5.8:1). Always with glyph and word. */
  --stage-mountain: #b3261e; /* Mountain stage badge fill; text `on-stage` (6.5:1). Always with glyph and word. */
  --stage-tt: #1f4f9c; /* Time-trial badge fill; text `on-stage` (7.9:1). Always with glyph and word. */
  --on-stage: #ffffff; /* Text and glyph on any `stage-*` fill. */
  --cat-4: #f5c84c; /* Category 4 climb fill and pin; text `on-cat-light` (11:1). */
  --cat-3: #ec8a1c; /* Category 3 climb fill and pin; text `on-cat-light` (7:1). */
  --cat-2: #c2410c; /* Category 2 climb fill and pin; text `on-cat-dark` (5.2:1). */
  --cat-1: #9e1c1c; /* Category 1 climb fill and pin; text `on-cat-dark` (8:1). */
  --cat-hc: #4a0f12; /* Hors catégorie climb fill and pin; text `on-cat-dark` (15:1). On dark maps it gets a `map-label-halo` ring. */
  --on-cat-light: #17181a; /* Text on `cat-4` and `cat-3`. */
  --on-cat-dark: #ffffff; /* Text on `cat-2`, `cat-1`, `cat-hc`. */
  --map-base: #ece6d8; /* Map placeholder ground and the land tint when styling vector tiles. */
  --map-water: #cfdbe6; /* Sea and lakes on the map. */
  --map-grid: #ddd4c3; /* Graticule lines on the placeholder map. */
  --map-route: #d6281f; /* Route line, 4px (overview 3px). 4:1 on `map-base` light, 4.9:1 dark. */
  --map-route-casing: #ffffff; /* Casing under the route line, 2px wider each side. */
  --map-route-muted: #b9ae98; /* Other stages on a stage map; transfers (dashed). */
  --map-start: #1f4f9c; /* Start pin: square with a flag glyph. */
  --map-finish: #17181a; /* Finish pin: chequered square. */
  --map-selected: #f3b81b; /* Selected point: a 4px ring around the pin and the highlighted list row. */
  --map-label: #17181a; /* Town and climb labels on the map. */
  --map-label-halo: #ffffff; /* 3px halo behind map labels so they read on any base. */
  --profile-fill: #e6dac0; /* Stage-profile area fill (sand). */
  --profile-line: #17181a; /* Stage-profile top line, 2px. */
  --profile-grid: #ddd4c3; /* Altitude and km grid lines in the profile. */
  --art-road: #24262a; /* Hero road floor only: the thin road under the faint race-profile hills. Lifted in dark so it separates from `paper`. */
  --shadow-menu: 0 8px 24px rgba(23,24,26,0.18); /* Open switcher and language menus only. Cards use `line`, not shadows. */
}
[data-theme="dark"] {
  --paper: #121416;
  --paper-raised: #1b1e21;
  --paper-sunk: #0d0f10;
  --tarmac: #08090a;
  --on-tarmac: #f2eee6;
  --on-tarmac-muted: #a8a59e;
  --line-on-tarmac: #26292d;
  --road-paint: #f2eee6;
  --ink: #f2eee6;
  --ink-muted: #a8a59e;
  --line: #2c3035;
  --line-strong: #6b6f75;
  --stone-body: #ffffff;
  --stone-cap: #c4281f;
  --stone-ink: #17181a;
  --sign-blue: #8fb0f0;
  --on-sign-blue: #0d1a33;
  --stone-red: #ff7b6e;
  --on-stone-red: #2a0a07;
  --sun: #f5c542;
  --on-sun: #17181a;
  --focus: #f5c542;
  --focus-on-tarmac: #f5c542;
  --notice: #2a2208;
  --on-notice: #ffd98a;
  --stage-flat: #2b7a4b;
  --stage-hilly: #8f5a00;
  --stage-mountain: #b3261e;
  --stage-tt: #1f4f9c;
  --on-stage: #ffffff;
  --cat-4: #f5c84c;
  --cat-3: #ec8a1c;
  --cat-2: #c2410c;
  --cat-1: #b52a2a;
  --cat-hc: #6e1a1f;
  --on-cat-light: #17181a;
  --on-cat-dark: #ffffff;
  --map-base: #23272b;
  --map-water: #1a2633;
  --map-grid: #2f343a;
  --map-route: #ff5a4e;
  --map-route-casing: #121416;
  --map-route-muted: #4a4f56;
  --map-start: #8fb0f0;
  --map-finish: #f2eee6;
  --map-selected: #f5c542;
  --map-label: #f2eee6;
  --map-label-halo: #121416;
  --profile-fill: #3a3530;
  --profile-line: #f2eee6;
  --profile-grid: #2c3035;
  --art-road: #2c3035;
  --shadow-menu: 0 8px 24px rgba(0,0,0,0.6);
}
:root {
  --space-1: 4px; /* Icon to label gap, badge padding (vertical). */
  --space-2: 8px; /* Badge padding (horizontal), tight stacks, table cell padding (vertical). */
  --space-3: 12px; /* Card inner gaps, list gaps. */
  --space-4: 16px; /* Mobile page gutter, card padding. */
  --space-5: 24px; /* Desktop gutter, block padding, grid gaps. */
  --space-6: 32px; /* Between blocks on a page. */
  --space-7: 48px; /* Between page sections on desktop. */
  --space-8: 64px; /* Above the footer; hero padding on desktop. */
  --radius-sm: 3px; /* Badges, the sign switcher, buttons. Road signs have small corners. */
  --radius-md: 6px; /* Cards, key-point blocks, embeds, menus. */
  --radius-stone: 28px; /* Top corners of the kilometre stone (stage number). Bottom corners use `radius-sm`. */
  --radius-pill: 999px; /* Passage-time chip and stage-number map labels only. */
  --size-container: 1200px; /* Max content width. */
  --size-embed-h: 450px; /* Stay22 iframe height (width 100%). */
  --size-tap: 44px; /* Minimum tap target height. */
  --size-stone: 56px; /* Kilometre-stone width in cards and rows (40px compact, 96px stage head). */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-display-xl: 800 64px/60px var(--font-sans); /* Share image and painted title bands. Uppercase, `font-stretch: 75%` (class `ss-display`). */
  --text-display: 800 44px/44px var(--font-sans); /* Page H1 on desktop. Uppercase, condensed. Mobile drops to `h1`. */
  --text-h1: 800 32px/34px var(--font-sans); /* Page H1 on mobile; section titles on desktop. Condensed. */
  --text-h2: 750 24px/28px var(--font-sans); /* Key-point and section headings. Condensed. */
  --text-h3: 700 18px/24px var(--font-sans); /* Sub-headings inside blocks. Normal width. */
  --text-body: 400 16px/24px var(--font-sans); /* All running text. */
  --text-body-sm: 400 14px/20px var(--font-sans); /* Notes, table cells on mobile, menus. */
  --text-label: 650 12px/16px var(--font-sans); /* Uppercase labels: table heads, fact labels, stone cap. Never for sentences. */
  --text-credit: 400 12px/16px var(--font-sans); /* Credit line only, in `ink-muted`. */
  --text-data-xl: 800 40px/40px var(--font-sans); /* Headline facts (km, D+, gradient). Tabular figures, condensed. */
  --text-data: 600 16px/22px var(--font-sans); /* Km, times, gradients in tables and fact lists. Always `font-variant-numeric: tabular-nums` (class `ss-num`). */
}
.display-xl {
  font-family: var(--font-sans);
  font-size: 64px;
  line-height: 60px;
  font-weight: 800;
  letter-spacing: 0;
}
.display {
  font-family: var(--font-sans);
  font-size: 44px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: 0;
}
.h1 {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 34px;
  font-weight: 800;
  letter-spacing: 0;
}
.h2 {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 28px;
  font-weight: 750;
  letter-spacing: 0;
}
.h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}
.body-sm {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
  letter-spacing: 0.06em;
}
.credit {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.data-xl {
  font-family: var(--font-sans);
  font-size: 40px;
  line-height: 40px;
  font-weight: 800;
  letter-spacing: 0;
}
.data {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-StageStays.woff2") format("woff2");
  font-weight: 400 850;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
