/* MediaWright Motors: a MediaWright demo (the dealer is fictional).
 * Hand-maintained, not generated. One stylesheet for all five pages.
 *
 * Palette: "claret and stone", chosen to be distinct from the four door
 * accents on mediawright.uk (green, blue, orange, purple). Dark mode has its
 * own palette. Fonts are self-hosted and reused from /fonts/ (no third-party
 * requests).
 *
 * Contrast, computed from relative luminance (WCAG 2.1), not eyeballed: AA
 * needs 4.5:1 for text and 3:1 for large text and UI. Each line is
 *   scope | foreground on background | kind | ratio
 * where scope is light, dark, or a fixed theme-preview palette that looks
 * the same in both colour schemes. test-unit/car-contrast.test.mjs recomputes
 * every line from the token values below and fails if a pair is missing,
 * stale or under its minimum. Any new text/background pair must be added.
 *
 *   light | ink on paper | text | 15.85
 *   light | ink on card | text | 16.91
 *   light | ink on stone | text | 13.95
 *   light | muted on paper | text | 7.22
 *   light | muted on card | text | 7.70
 *   light | muted on stone | text | 6.36
 *   light | claret on paper | text | 8.49
 *   light | claret on card | text | 9.06
 *   light | claret on stone | text | 7.47
 *   light | claret on wash | text | 7.54
 *   light | ink on wash | text | 14.08
 *   light | on-claret on claret | text | 9.06
 *   light | ok-ink on ok-bg | text | 8.17
 *   light | warn-ink on warn-bg | text | 8.55
 *   light | sold-ink on sold-bg | text | 9.58
 *   light | chip-ink on chip-bg | text | 13.95
 *   light | bar-ink on bar-bg | text | 16.91
 *   light | on-claret on claret | ui | 9.06
 *   light | band-ink on band | text | 15.55
 *   light | band-link on band | text | 10.92
 *   light | error on paper | text | 7.29
 *   light | error on card | text | 7.78
 *   light | error on error-wash | text | 6.66
 *   light | ink on error-wash | text | 14.48
 *   light | focus on paper | ui | 8.49
 *   light | focus on card | ui | 9.06
 *   light | focus on stone | ui | 7.47
 *   light | focus on bar-bg | ui | 9.06
 *   light | band-link on band | ui | 10.92
 *   light | field-border on card | ui | 4.87
 *   light | field-border on paper | ui | 4.56
 *   light | claret on paper | ui | 8.49
 *   light | chip-border on paper | ui | 4.56
 *   light | chip-border on card | ui | 4.87
 *   dark | ink on paper | text | 16.03
 *   dark | ink on card | text | 14.60
 *   dark | ink on stone | text | 13.37
 *   dark | muted on paper | text | 9.97
 *   dark | muted on card | text | 9.09
 *   dark | muted on stone | text | 8.32
 *   dark | claret on paper | text | 8.81
 *   dark | claret on card | text | 8.02
 *   dark | claret on stone | text | 7.35
 *   dark | claret on wash | text | 7.19
 *   dark | ink on wash | text | 13.09
 *   dark | on-claret on claret | text | 8.81
 *   dark | ok-ink on ok-bg | text | 9.08
 *   dark | warn-ink on warn-bg | text | 8.26
 *   dark | sold-ink on sold-bg | text | 9.43
 *   dark | chip-ink on chip-bg | text | 13.37
 *   dark | bar-ink on bar-bg | text | 14.60
 *   dark | on-claret on claret | ui | 8.81
 *   dark | band-ink on band | text | 14.18
 *   dark | band-link on band | text | 9.96
 *   dark | error on paper | text | 9.03
 *   dark | error on card | text | 8.23
 *   dark | error on error-wash | text | 7.53
 *   dark | ink on error-wash | text | 13.37
 *   dark | focus on paper | ui | 8.81
 *   dark | focus on card | ui | 8.02
 *   dark | focus on stone | ui | 7.35
 *   dark | focus on bar-bg | ui | 8.02
 *   dark | band-link on band | ui | 9.96
 *   dark | field-border on card | ui | 5.79
 *   dark | field-border on paper | ui | 6.35
 *   dark | claret on paper | ui | 8.81
 *   dark | chip-border on paper | ui | 5.46
 *   dark | chip-border on card | ui | 4.97
 *   theme-claret | t-ink on t-bg | text | 15.85
 *   theme-claret | t-muted on t-bg | text | 7.22
 *   theme-claret | t-accent on t-bg | text | 8.49
 *   theme-claret | t-on-accent on t-accent | text | 9.06
 *   theme-claret | t-accent on t-bg | ui | 8.49
 *   theme-teal | t-ink on t-bg | text | 14.32
 *   theme-teal | t-muted on t-bg | text | 6.81
 *   theme-teal | t-accent on t-bg | text | 7.12
 *   theme-teal | t-on-accent on t-accent | text | 7.87
 *   theme-teal | t-accent on t-bg | ui | 7.12
 *   theme-brass | t-ink on t-bg | text | 15.24
 *   theme-brass | t-muted on t-bg | text | 6.78
 *   theme-brass | t-accent on t-bg | text | 5.90
 *   theme-brass | t-on-accent on t-accent | text | 6.65
 *   theme-brass | t-accent on t-bg | ui | 5.90
 *
 * --line, --shadow and the card edge are decorative only, never text.
 * Status is always also said in words ("Sold", "Reserved"), never by colour alone.
 */

@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/fonts/atkinson-next-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/fonts/atkinson-next-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #FAF7F4;
  --card: #FFFFFF;
  --stone: #EFE8E3;
  --wash: #F7E6EC;
  --ink: #241A1E;
  --muted: #5E4F55;
  --claret: #8A1C3F;
  --on-claret: #FFFFFF;
  --ok-bg: #DDEFE0;
  --ok-ink: #1B4D2A;
  --warn-bg: #F6E8BE;
  --warn-ink: #553B00;
  --sold-bg: #E6DCE0;
  --sold-ink: #3F2D34;
  --chip-bg: #EFE8E3;
  --chip-ink: #241A1E;
  --chip-border: #7D6D74;
  --bar-bg: #FFFFFF;
  --bar-ink: #241A1E;
  --band: #2E1420;
  --band-ink: #FBF3F5;
  --band-link: #F5C2D0;
  --error: #A4141F;
  --error-wash: #FCE9EA;
  --field-border: #7D6D74;
  --focus: #8A1C3F;
  --line: #DCCFD3;

  --sans: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1B1316;
    --card: #271B20;
    --stone: #2F2228;
    --wash: #3A1F2A;
    --ink: #F7EEF1;
    --muted: #CDBBC2;
    --claret: #F29BB6;
    --on-claret: #1B1316;
    --ok-bg: #1F3A27;
    --ok-ink: #BFE6C8;
    --warn-bg: #4A3A0F;
    --warn-ink: #F3DE9A;
    --sold-bg: #3D2D34;
    --sold-ink: #E8D8DE;
    --chip-bg: #2F2228;
    --chip-ink: #F7EEF1;
    --chip-border: #9C8790;
    --bar-bg: #271B20;
    --bar-ink: #F7EEF1;
    --band: #3A1A27;
    --band-ink: #FBF3F5;
    --band-link: #F5C2D0;
    --error: #FF9AA2;
    --error-wash: #3F1A20;
    --field-border: #A8939B;
    --focus: #F29BB6;
    --line: #4A3840;
  }
}

/* Theme preview palettes: fixed, the same in light and dark. */
.theme-claret { --t-bg: #FAF7F4; --t-ink: #241A1E; --t-muted: #5E4F55; --t-accent: #8A1C3F; --t-on-accent: #FFFFFF; }
.theme-teal { --t-bg: #EEF5F4; --t-ink: #102626; --t-muted: #44585A; --t-accent: #0F5B5B; --t-on-accent: #FFFFFF; }
.theme-brass { --t-bg: #F5F1E8; --t-ink: #1F1B10; --t-muted: #5A5340; --t-accent: #7A5600; --t-on-accent: #FFFFFF; }

* { box-sizing: border-box; }

html { scroll-padding-bottom: 7rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
.plain { list-style: none; padding: 0; margin: 0; }

a { color: var(--claret); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--ink); color: var(--paper); padding: 12px 18px; }
.skip-link:focus { left: 0; }

/* The demo banner: always first, always visible. */
.demo-banner { --focus: var(--band-link); background: var(--band); color: var(--band-ink); font-size: .95rem; }
.demo-banner p { margin: 0 auto; padding-top: 10px; padding-bottom: 10px; }
.demo-banner a { color: var(--band-link); font-weight: 700; }

/* Header and nav */
.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand small { margin-left: 10px; font-size: .85rem; font-weight: 400; color: var(--muted); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--claret); border-bottom-color: var(--claret); }

main { display: block; padding: 28px 0 56px; }
.page-head { margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

/* Buttons and button-like links */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 44px; padding: 0 22px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--on-claret); background: var(--claret); border: 2px solid var(--claret); border-radius: 999px;
}
.button.secondary { color: var(--claret); background: transparent; }
.button:hover { text-decoration: underline; }
.button[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color .15s ease, color .15s ease; }
}

/* Badges, chips, key facts */
.badge { display: inline-block; margin: 0 0 .5rem; padding: 2px 12px; font-size: .9rem; font-weight: 700; border-radius: 999px; }
.badge.sold { color: var(--sold-ink); background: var(--sold-bg); }
.badge.reserved { color: var(--warn-ink); background: var(--warn-bg); }
.card > .badge { position: absolute; top: 10px; left: 10px; z-index: 1; margin: 0; }
.badge.available { color: var(--ok-ink); background: var(--ok-bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; font: inherit; font-weight: 700; color: var(--chip-ink); background: var(--chip-bg); border: 2px solid var(--chip-border); border-radius: 999px; cursor: pointer; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; list-style: none; margin: 0 0 .75rem; padding: 0; color: var(--muted); font-size: .95rem; }

.price { margin: 0 0 .25rem; font-size: 1.5rem; font-weight: 700; }

/* Vehicle cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card[hidden] { display: none; }
.card img { width: 100%; aspect-ratio: 8 / 5; }
.card-body { padding: 14px 16px 16px; }
.card-title { margin: 0 0 .35rem; font-size: 1.1rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: underline; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-title a:focus-visible { outline: none; }
.card .price { font-size: 1.3rem; }

/* Stock page */
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.type-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--stone); border: 2px solid transparent; border-radius: 999px; }
.type-tabs a:hover { text-decoration: underline; }
.type-tabs a[aria-current="page"] { color: var(--on-claret); background: var(--claret); }

.stock-layout { display: grid; gap: 22px; }
@media (min-width: 56rem) {
  .stock-layout { grid-template-columns: 17rem 1fr; align-items: start; }
}
.filters-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters-panel h2 { font-size: 1.25rem; }
.filters-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 12px; }
.results-bar p { margin: 0; font-weight: 700; }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.empty-state { padding: 22px; background: var(--card); border: 2px dashed var(--field-border); border-radius: var(--radius); }
.empty-state { margin-bottom: 20px; }
.empty-state[hidden] { display: none; }
.empty-state .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.load-error { margin: 0 0 18px; padding: 14px 18px; color: var(--ink); background: var(--error-wash); border: 3px solid var(--error); border-radius: var(--radius); }
.load-error p { margin: 0 0 .4em; }
.load-error a { color: var(--ink); font-weight: 700; }
.load-error-text { color: var(--error); font-weight: 700; }
.noscript-note { padding: 12px 16px; background: var(--wash); border-left: 4px solid var(--claret); border-radius: 6px; }

dialog.filters-dialog { width: min(34rem, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: auto; color: var(--ink); background: var(--card); border: 2px solid var(--claret); border-radius: var(--radius); }
dialog.filters-dialog::backdrop { background: rgba(20, 8, 12, .6); }
dialog.filters-dialog .filters-panel { border: 0; border-radius: 0; }
.dialog-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); }
.dialog-actions .button { flex: 1 1 8rem; }

/* Forms */
.field { margin: 0 0 16px; }
.field[hidden] { display: none; }
label, .label { display: block; margin-bottom: 4px; font-weight: 700; }
.hint { margin: 0 0 6px; font-size: .95rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--ink);
  background: var(--card); border: 2px solid var(--field-border); border-radius: 8px;
}
textarea { min-height: 8rem; }
.input-unit { display: flex; align-items: stretch; }
.input-unit .unit { display: inline-flex; align-items: center; padding: 0 12px; font-weight: 700; color: var(--ink); background: var(--stone); border: 2px solid var(--field-border); }
.input-unit .unit:first-child { border-right: 0; border-radius: 8px 0 0 8px; }
.input-unit .unit:last-child { border-left: 0; border-radius: 0 8px 8px 0; }
.input-unit input { border-radius: 0; min-width: 0; }
.input-unit .unit:first-child + input { border-radius: 0 8px 8px 0; }
.input-unit input:has(+ .unit) { border-radius: 8px 0 0 8px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { margin: 4px 0 0; font-weight: 700; color: var(--error); }
.field-error[hidden] { display: none; }

.error-summary { margin: 0 0 18px; padding: 14px 18px; color: var(--ink); background: var(--error-wash); border: 3px solid var(--error); border-radius: var(--radius); }
.error-summary[hidden] { display: none; }
.error-summary h3, .error-summary h2 { margin: 0 0 .4em; font-size: 1.15rem; color: var(--error); }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--ink); font-weight: 700; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.form-status { margin-top: 12px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status { padding: 12px 16px; color: var(--ok-ink); background: var(--ok-bg); border-radius: 8px; }

.two-col { display: grid; gap: 24px; }
@media (min-width: 56rem) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Finance result */
.finance-result { margin-top: 20px; }
.result-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.result-list div { padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.result-list dt { font-size: .95rem; color: var(--muted); }
.result-list dd { margin: 0; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.result-list .key-figure dd { font-size: 1.3rem; }
#result-title:focus { outline-offset: 4px; }
.result-list div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 40rem) {
  .result-list dd { font-size: 1.4rem; }
  .result-list .key-figure dd { font-size: 1.6rem; }
  .result-list div { padding: 12px 16px; }
}
.disclosure { padding: 12px 16px; background: var(--wash); border-left: 4px solid var(--claret); border-radius: 6px; }

/* Vehicle page */
.vehicle-head { margin-bottom: 16px; }
.vehicle-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.gallery { margin: 0 0 24px; }
.gallery-main { width: 100%; max-width: 40rem; aspect-ratio: 8 / 5; background: var(--stone); border-radius: var(--radius); }
.gallery-status { margin: 8px 0; font-weight: 700; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.thumbs button { display: block; width: 88px; min-height: 44px; padding: 2px; cursor: pointer; background: var(--card); border: 2px solid var(--field-border); border-radius: 8px; }
.thumbs button[aria-pressed="true"] { border-color: var(--claret); outline: 2px solid var(--claret); outline-offset: 1px; }
.thumbs img { width: 100%; border-radius: 6px; aspect-ratio: 8 / 5; }
.photo-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.spec-table { width: 100%; max-width: 40rem; border-collapse: collapse; background: var(--card); }
.spec-table caption { padding: 8px 0; text-align: left; font-weight: 700; }
.spec-table th, .spec-table td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); }
.spec-table th { width: 40%; font-weight: 700; }
.missing { padding: 24px; background: var(--card); border: 2px dashed var(--field-border); border-radius: var(--radius); }
.missing[hidden] { display: none; }

/* Quick actions: only on phones. In normal flow at the very end of the page,
 * and sticky to the bottom only when the screen is big enough that the bar
 * cannot cover what has focus (never at 320px wide or on a short screen,
 * which is what 400% zoom looks like). */
.action-bar { display: none; }
@media (max-width: 47.99rem) {
  .action-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 12px 16px; color: var(--bar-ink); background: var(--bar-bg); border: 1px solid var(--line); border-radius: var(--radius); }
  .action-bar[hidden] { display: none; }
}
@media (max-width: 47.99rem) and (min-width: 22.5rem) and (min-height: 35rem) {
  .action-bar { position: sticky; bottom: 0; z-index: 5; margin-left: -16px; margin-right: -16px; border-radius: 0; border-width: 1px 0 0; }
}

/* Home */
.hero { display: grid; gap: 22px; align-items: center; margin-bottom: 40px; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1fr 1fr; }
}
.hero-image { border-radius: var(--radius); }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.section { margin: 0 0 44px; }
.placeholder { padding: 18px 22px; color: var(--ink); background: var(--stone); border: 2px dashed var(--field-border); border-radius: var(--radius); }
.runs-on { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.section > h3 { margin-top: 2.25rem; }
.section .cards + p { margin-top: 22px; }
.open-today { margin: 0 0 20px; padding: 12px 16px; font-weight: 700; background: var(--wash); border-left: 4px solid var(--claret); border-radius: 6px; }
.open-today[hidden] { display: none; }
.illustration { margin: 12px 0 8px; }
.illustration img { width: 100%; max-width: 44rem; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); }
.illustration figcaption { max-width: 44rem; margin: 8px auto 0; font-weight: 700; }
.theme-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; margin: 0 0 8px; padding: 0; }
.theme-card { padding: 16px; color: var(--t-ink); background: var(--t-bg); border: 2px solid var(--t-accent); border-radius: var(--radius); }
.theme-card h4 { margin: 0 0 .4rem; font-size: 1.1rem; }
.theme-card .muted { margin: 0 0 .5rem; color: var(--t-muted); }
.theme-card .link-text { color: var(--t-accent); font-weight: 700; text-decoration: underline; }
.theme-card .fake-button { display: inline-block; padding: 8px 18px; font-weight: 700; color: var(--t-on-accent); background: var(--t-accent); border-radius: 999px; }
.hours-table { width: 100%; max-width: 32rem; border-collapse: collapse; background: var(--card); }
.hours-table caption { padding: 8px 0; text-align: left; font-weight: 700; }
.hours-table th, .hours-table td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); }
.today-tag { margin-left: 8px; padding: 1px 10px; font-size: .85rem; color: var(--on-claret); background: var(--claret); border-radius: 999px; }
.map { width: 100%; max-width: 34rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--stone); }
.map .m-land { fill: var(--stone); }
.map .m-river { fill: none; stroke: var(--claret); stroke-opacity: .5; stroke-width: 18; }
.map .m-road { fill: none; stroke: var(--field-border); stroke-width: 10; stroke-linecap: round; }
.map .m-route { fill: none; stroke: var(--claret); stroke-width: 5; stroke-dasharray: 12 8; }
.map .m-pin { fill: var(--claret); }
.map .m-label { font: 700 22px var(--sans); fill: var(--ink); }
.map .m-label-big { font-size: 30px; }

.site-footer { padding: 24px 0 40px; color: var(--ink); background: var(--stone); }
.site-footer p { margin: 0 0 .5em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
