/* WhatRally design system (T04). Brand kit v1.0 (decision 51) over mock-up v3; values
   mirror whatrally/core/design.py. Every colour is paired with a shape or text label
   (SPEC §7). Mobile first, 320 px up. Text/background pairs: core/tests/test_contrast.py. */

:root {
  /* Brand palette (design/whatrally-brand-kit/BRAND-BOOK.md). */
  --wr-charcoal: #292929;
  --wr-sand: #DFC287;
  --wr-orange: #DF7201;
  --wr-tan: #AB8F5F;
  --wr-offwhite: #FAF9F6;

  --wr-paper: var(--wr-offwhite);
  --wr-card: #FFFDF8; /* a near-white kept from mock-up v3, a touch lighter than the paper */
  --wr-ink: var(--wr-charcoal);
  --wr-muted: #5E574B;
  --wr-line: #D8CFBF;
  --wr-on-dark: var(--wr-sand);
  --wr-on-dark-muted: var(--wr-tan);
  /* Orange is never text on a light surface (3.05:1, decision 51): the focus ring,
     map pins, rules and large shapes only. On charcoal it may be text (4.53:1). */
  --wr-accent: var(--wr-orange);
  --wr-pip-off: #E3DBCC;
  --wr-pip-you: #8A8273;

  /* Levels: shape + colour + label, always together. Black is charcoal (decision 30). */
  --wr-green: #2E6B2F;
  --wr-blue: #1F5FAD;
  --wr-red: #C1272D;
  --wr-black: #3D3D3D;
  --wr-double-black: #000000;

  /* Terrain palette with clear lightness steps (decision 29). */
  --wr-terrain-tracks: #C9D1D9;
  --wr-terrain-trails: #5F8A44;
  --wr-terrain-rock: #5E5E5E;
  --wr-terrain-sand: #F2C14E;
  --wr-terrain-dunes: #B9581A;
  --wr-terrain-mud: #3F2C20;

  /* Roadbook lexicon colours (decisions 35–37). */
  --wr-lexicon-track: #1F5FAD;
  --wr-lexicon-hazard: #C1272D;
  --wr-lexicon-cap: #F7E03C;

  --wr-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --wr-font-body: 'Barlow', system-ui, sans-serif;
  /* Not in the brand book: roadbook-style figures only (distances, stages, codes,
     the lexicon), as on a real roadbook (decision 51). */
  --wr-font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wr-max-width: 1200px;
  --wr-gutter: 16px;
  --wr-radius: 4px;
  --wr-touch: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wr-paper);
  color: var(--wr-ink);
  font-family: var(--wr-font-body);
  font-size: 18px;
  line-height: 1.5;
}

img, svg { max-width: 100%; }
a { color: var(--wr-ink); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wr-accent); outline-offset: 2px; }

/* Form controls, site-wide (T27): the native elements, in the brand. Borders in
   --wr-muted keep 3:1 or more against the card (WCAG 1.4.11); --wr-line is too
   faint for a control's edge. */
input:where([type=text], [type=email], [type=password], [type=number], [type=url],
  [type=search], [type=tel], [type=date]), select, textarea {
  max-width: 100%; min-height: var(--wr-touch); padding: 6px 10px;
  border: 1.5px solid var(--wr-muted); border-radius: var(--wr-radius);
  background-color: var(--wr-card); color: var(--wr-ink); font: inherit;
}
textarea { min-height: 7rem; line-height: 1.4; }
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--wr-ink) 50%),
    linear-gradient(135deg, var(--wr-ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 13px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
:where(input, select, textarea):hover { border-color: var(--wr-ink); }
:where(input, select, textarea):focus-visible { border-color: var(--wr-ink); }
:where(input, select, textarea):disabled { opacity: 0.6; cursor: not-allowed; }
::placeholder { color: var(--wr-muted); opacity: 1; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--wr-ink); cursor: pointer; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--wr-font-display);
  font-weight: 600;
  line-height: 1.1;
}
h1 { font-size: clamp(36px, 9vw, 56px); }
h2 { font-size: clamp(26px, 6vw, 34px); }
h3 { font-size: 24px; }

.wr-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wr-skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--wr-card);
  color: var(--wr-ink);
  font-weight: 600;
}
.wr-skip-link:focus { top: 8px; }

.wr-container {
  width: 100%;
  max-width: var(--wr-max-width);
  margin: 0 auto;
  padding: 0 var(--wr-gutter);
}

.wr-eyebrow {
  font-family: var(--wr-font-mono);
  font-size: 12px;
  color: var(--wr-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Header and footer */
.wr-header { background: var(--wr-ink); color: var(--wr-on-dark); }
.wr-header a { color: var(--wr-on-dark); }
.wr-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-top: 12px; padding-bottom: 12px;
}
/* The wordmark, never typeset (brand book); clear space of a quarter of the W's height
   (about 12% of the artwork's height) comes from the padding. */
.wr-brand { display: inline-flex; align-items: center; padding: 6px 0; text-decoration: none; }
.wr-brand__wordmark { display: block; width: 200px; height: auto; }
@media (min-width: 768px) { .wr-brand__wordmark { width: 240px; } }
.wr-header__slot { display: flex; align-items: center; gap: 8px; font-weight: 500; }
/* Main navigation: its own row under the wordmark on a phone, inline from 900px. */
.wr-nav { order: 3; flex-basis: 100%; display: flex; gap: 4px 20px; border-top: 1px solid rgb(223 194 135 / .2); padding-top: 4px; }
.wr-nav a { display: inline-flex; align-items: center; min-height: var(--wr-touch); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.wr-nav a:hover, .wr-nav a:focus-visible { border-bottom-color: var(--wr-orange); }
.wr-nav a[aria-current="page"] { border-bottom-color: var(--wr-sand); }
.wr-nav__short { display: none; }
@media (max-width: 420px) { .wr-nav__long { display: none; } .wr-nav__short { display: inline; } }
@media (min-width: 900px) {
  .wr-nav { order: 0; flex-basis: auto; margin-left: auto; margin-right: 12px; border-top: 0; padding-top: 0; gap: 28px; }
}
/* The tagline, set as in the logo artwork (brand book): the home page hero. */
.wr-tagline {
  margin: 0;
  font-family: var(--wr-font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.045em;
}
.wr-main { padding: 24px 0 48px; }
.wr-footer { background: var(--wr-ink); color: var(--wr-on-dark); font-size: 16px; }
.wr-footer__inner { padding-top: 24px; padding-bottom: 32px; display: grid; gap: 12px; }
.wr-footer a { color: var(--wr-on-dark); }
.wr-footer__pages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.wr-footer__pages a { display: inline-block; min-height: 44px; line-height: 44px; } /* touch target */

/* Level badge */
.wr-level {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 3px 7px;
  border-radius: 3px;
  font-family: var(--wr-font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFFFFF;
}
.wr-level--sm { padding: 2px 5px; font-size: 11px; }
.wr-level--lg { padding: 6px 10px; font-size: 15px; }
.wr-level--green { background: var(--wr-green); }
.wr-level--blue { background: var(--wr-blue); }
.wr-level--red { background: var(--wr-red); }
.wr-level--black { background: var(--wr-black); }
.wr-level--double-black { background: var(--wr-double-black); color: var(--wr-paper); }
.wr-level--none { background: var(--wr-card); color: var(--wr-ink); border: 1.5px dashed var(--wr-ink); }
.wr-grade-range { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* Symbols */
.wr-symbol { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; }
.wr-symbol--terrain { background: #FFFFFF; border: 1px solid var(--wr-ink); border-radius: 3px; }

/* Terrain mix */
.wr-terrain-mix { display: grid; gap: 6px; }
.wr-terrain-mix__strip {
  display: flex; height: 26px;
  border: 1px solid var(--wr-ink); border-radius: 3px; overflow: hidden;
}
.wr-terrain-mix__strip--compact { height: 22px; }
.wr-terrain-strip { display: block; }
.wr-terrain-label { display: inline-flex; align-items: center; gap: 6px; }
.wr-terrain-mix__segment { display: flex; align-items: center; justify-content: center; min-width: 0; }
.wr-terrain--tracks { background: var(--wr-terrain-tracks); }
.wr-terrain--trails { background: var(--wr-terrain-trails); }
.wr-terrain--rock { background: var(--wr-terrain-rock); }
.wr-terrain--sand { background: var(--wr-terrain-sand); }
.wr-terrain--dunes { background: var(--wr-terrain-dunes); }
.wr-terrain--mud { background: var(--wr-terrain-mud); }
.wr-terrain-mix__legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin: 0; padding: 0; list-style: none; font-size: 14px;
}
.wr-terrain-mix__legend li { display: inline-flex; align-items: center; gap: 6px; }

/* Roadbook rows (numbered boxes with a tulip) */
.wr-roadbook {
  margin: 0; padding: 0; list-style: none;
  border: 2px solid var(--wr-ink); border-radius: var(--wr-radius);
  background: var(--wr-card); overflow: hidden;
}
.wr-roadbook__row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr);
  border-bottom: 1px solid var(--wr-ink);
}
.wr-roadbook__row:last-child { border-bottom: 0; }
.wr-roadbook__counter {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6px; border-right: 1px solid var(--wr-ink);
  font-family: var(--wr-font-mono); font-size: 11px; line-height: 1.2;
}
.wr-roadbook__number { font-weight: 700; font-size: 14px; }
.wr-roadbook__body { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px; min-width: 0; }
.wr-roadbook__value { font-weight: 600; overflow-wrap: anywhere; }

/* Danger marks and match labels (decision 29: !! stretch, !!! not yet) */
.wr-danger {
  display: inline-block;
  font-family: var(--wr-font-display);
  font-weight: 600;
  font-size: 1.15em;
  line-height: 1;
  color: var(--wr-lexicon-hazard);
  letter-spacing: -0.04em;
}
.wr-match { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.wr-match--easier { color: var(--wr-blue); }
.wr-match--comfortable { color: var(--wr-green); }
.wr-match--stretch { color: var(--wr-ink); }
.wr-match--not-yet { color: var(--wr-muted); }

/* Tulip-arrow button */
.wr-tulip-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 18px;
  border: 0; border-radius: var(--wr-radius);
  font-weight: 500; font-size: 18px; text-decoration: none;
}
/* Primary: an orange fill with charcoal text, 4.53:1 (Jason, 2026-10-23). A fill
   is a shape: orange still never sets text on a light surface. Secondary: an
   outline, charcoal on light, sand on charcoal (decision 51). */
.wr-tulip-button--primary { background: var(--wr-orange); color: var(--wr-charcoal); }
.wr-tulip-button--primary:hover { background: var(--wr-charcoal); color: var(--wr-sand); }
.wr-tulip-button--outline { background: transparent; color: var(--wr-ink); border: 1.5px solid var(--wr-ink); }
.wr-tulip-button--outline:hover { background: var(--wr-ink); color: var(--wr-on-dark); }
.wr-panel--dark .wr-tulip-button--outline, .wr-result__hero .wr-tulip-button--outline { color: var(--wr-sand); border-color: var(--wr-sand); }
.wr-panel--dark .wr-tulip-button--outline:hover, .wr-result__hero .wr-tulip-button--outline:hover { background: var(--wr-sand); color: var(--wr-charcoal); }
button.wr-tulip-button { font-family: inherit; cursor: pointer; }
/* Destructive (T27): red on light, a fill on hover. #C1272D on the paper is 5.6:1. */
.wr-tulip-button--danger { background: transparent; color: var(--wr-red); border: 1.5px solid var(--wr-red); }
.wr-tulip-button--danger:hover { background: var(--wr-red); color: var(--wr-offwhite); }

/* The account page and allauth's pages (T27): a profile header, a card per
   section with its symbol, settings rows, a switch, and deleting last. */
.wr-profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.wr-profile-head h1 { margin: 0; }
.wr-profile-head__initial {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wr-charcoal); color: var(--wr-sand); font-family: var(--wr-font-display); font-size: 28px; font-weight: 700;
}
.wr-profile-head__name { margin: 2px 0 0; color: var(--wr-muted); overflow-wrap: anywhere; }
.wr-account-card { display: grid; gap: 14px; }
.wr-account-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.wr-account-card__head h2 { margin: 0; }
.wr-account-card__line { margin: 2px 0 0; color: var(--wr-muted); font-size: 16px; }
.wr-account-card__actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.wr-settings { margin: 0; padding: 0; list-style: none; display: grid; }
.wr-settings__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--wr-line);
}
.wr-settings__row:has(> form) { grid-template-columns: minmax(0, 1fr); justify-items: start; }
.wr-settings__row:first-child { border-top: 0; padding-top: 0; }
.wr-settings__row > span { display: grid; gap: 2px; min-width: 0; }
.wr-field { display: grid; gap: 6px; min-width: 0; }
.wr-field > :where(input:not([type=checkbox], [type=radio]), select, textarea) { width: 100%; min-width: 0; }
.wr-account > *, .wr-auth-form > * { min-width: 0; }
.wr-account .wr-field, .wr-auth-form .wr-field { max-width: 32rem; }
.wr-field label { font-weight: 600; }
.wr-field--check { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.wr-switch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; cursor: pointer; position: relative; }
.wr-switch input { position: absolute; opacity: 0; width: 52px; height: 30px; margin: 0; }
.wr-switch__track {
  position: relative; width: 52px; height: 30px; border-radius: 15px; background: var(--wr-muted); transition: background 0.2s;
}
.wr-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--wr-offwhite); transition: transform 0.2s;
}
.wr-switch input:checked + .wr-switch__track { background: var(--wr-green); }
.wr-switch input:checked + .wr-switch__track::after { transform: translateX(22px); }
.wr-switch input:focus-visible + .wr-switch__track { outline: 3px solid var(--wr-accent); outline-offset: 2px; }
.wr-switch__text { display: grid; gap: 2px; }
@media (prefers-reduced-motion: reduce) { .wr-switch__track, .wr-switch__track::after { transition: none; } }
.wr-danger-zone { border: 1.5px solid var(--wr-red); }
.wr-danger-zone h2 { color: var(--wr-red); margin: 0; }
.wr-auth-form { max-width: 32rem; }
.wr-auth-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Axis bars: what a category needs vs. you */
.wr-axis-bar { display: grid; gap: 4px; }
.wr-axis-bar__axis { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wr-axis-bar__row { display: grid; grid-template-columns: 52px auto minmax(0, 1fr); align-items: center; gap: 8px; }
.wr-axis-bar__who, .wr-axis-bar__value { font-family: var(--wr-font-mono); font-size: 12px; color: var(--wr-muted); }
.wr-pips { display: inline-flex; gap: 3px; }
.wr-pip { width: 18px; height: 10px; border-radius: 2px; background: var(--wr-pip-off); }
.wr-pip--you { background: var(--wr-pip-you); }
.wr-pip.wr-level--green { background: var(--wr-green); }
.wr-pip.wr-level--blue { background: var(--wr-blue); }
.wr-pip.wr-level--red { background: var(--wr-red); }
.wr-pip.wr-level--black { background: var(--wr-black); }
.wr-pip.wr-level--double-black { background: var(--wr-double-black); }

/* Card */
.wr-card {
  display: flex; flex-direction: column;
  background: var(--wr-card);
  border: 1.5px solid var(--wr-ink); border-radius: 6px;
  overflow: hidden;
}
.wr-card__media { position: relative; line-height: 0; }
.wr-card__media img { width: 100%; height: 140px; object-fit: cover; }
.wr-card__media .wr-illustration { display: block; }
/* Jason's terrain drawings: a fallback, never passed off as the rally's photo. */
.wr-illustration { position: relative; display: block; line-height: 0; }
.wr-illustration img { display: block; width: 100%; object-fit: cover; }
.wr-illustration__label {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px;
  background: rgba(41, 41, 41, 0.85); color: var(--wr-offwhite); font-size: 12px; line-height: 1.4;
}
.wr-card__counter {
  position: absolute; left: 10px; top: 10px;
  padding: 3px 7px;
  background: var(--wr-ink); color: var(--wr-on-dark);
  font-family: var(--wr-font-mono); font-size: 12px; font-weight: 700; line-height: 1.3;
}
.wr-card__grades { position: absolute; left: 10px; bottom: 10px; line-height: 1.3; }
.wr-card__grades .wr-level { border: 1px solid var(--wr-paper); }
.wr-card__body { display: grid; gap: 4px; padding: 12px; }
.wr-card__title { font-size: 26px; }
.wr-card__title a { text-decoration: none; }
.wr-card__title a::after { content: ''; position: absolute; inset: 0; }
.wr-card { position: relative; }
.wr-card__place, .wr-card__dates, .wr-card__match { margin: 0; }
.wr-card__dates { font-family: var(--wr-font-mono); font-size: 13px; color: var(--wr-muted); }

/* Layout helpers */
.wr-stack { display: grid; gap: 16px; }
.wr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.wr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wr-panel { padding: 16px; background: var(--wr-card); border: 1.5px solid var(--wr-line); border-radius: 6px; }
/* Brand surfaces (decision 51): charcoal text on sand or tan; sand text on charcoal.
   On sand and tan, muted text (4.15 and 2.32:1) and the orange focus ring (under
   3:1) don't pass, so both tokens turn charcoal there: every rule that uses them
   follows, whatever its specificity. */
.wr-panel--sand, .wr-panel--tan {
  --wr-muted: var(--wr-charcoal);
  --wr-accent: var(--wr-charcoal);
  color: var(--wr-charcoal);
}
.wr-panel--sand { background: var(--wr-sand); border-color: var(--wr-sand); }
.wr-panel--tan { background: var(--wr-tan); border-color: var(--wr-tan); }
.wr-panel--dark { background: var(--wr-charcoal); border-color: var(--wr-charcoal); color: var(--wr-sand); }
.wr-panel--dark a:not(.wr-tulip-button) { color: var(--wr-sand); }
.wr-swatches { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin: 0; padding: 0; list-style: none; }
.wr-swatch { display: grid; gap: 2px; padding: 12px; border: 1.5px solid var(--wr-line); border-radius: var(--wr-radius); font-size: 16px; }
.wr-swatch__hex { font-family: var(--wr-font-mono); font-size: 14px; }

@media (min-width: 768px) {
  :root { --wr-gutter: 24px; }
}

/* Forms: questions with choice buttons (skill check, T05). The real radio or
   checkbox stays in the label for keyboards and screen readers. */
.wr-question { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
/* The check one step at a time (T27, check-steps.js). */
.wr-stepper { display: grid; gap: 10px; }
.wr-stepper__count { margin: 0; font-weight: 600; }
.wr-stepper__bar { height: 8px; border-radius: 4px; background: var(--wr-pip-off); overflow: hidden; }
.wr-stepper__bar span { display: block; height: 100%; width: 0; background: var(--wr-ink); transition: width 0.25s; }
.wr-stepper__nav { display: flex; gap: 12px; justify-content: space-between; }
.wr-stepper__nav [data-stepper-next] { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .wr-stepper__bar span { transition: none; } }
.wr-stepper__progress { display: grid; gap: 8px; }
.wr-question__legend { padding: 0; font-weight: 600; font-size: 17px; }
.wr-question__hint { margin: 0; font-size: 14px; color: var(--wr-muted); }
.wr-question__error { margin: 0; color: var(--wr-red); font-weight: 600; }
.wr-question--error .wr-choice { border-color: var(--wr-red); }
.wr-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-choices--compact { gap: 4px; }
.wr-choice {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--wr-touch);
  padding: 8px 12px;
  border: 1.5px solid var(--wr-ink); border-radius: var(--wr-radius);
  background: var(--wr-card);
  cursor: pointer;
}
/* In the skill check only (T27): choices as full-width, equal-width cards; the
   terrain grid's three a row. The result page and the bike picker keep theirs. */
.wr-check .wr-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.wr-check .wr-choices--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wr-check .wr-choice { min-height: 56px; padding: 12px 16px; border-radius: 6px; }
.wr-check .wr-choices--compact .wr-choice { min-height: var(--wr-touch); padding: 8px 10px; justify-content: center; }
.wr-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--wr-ink); flex-shrink: 0; }
.wr-choice:has(input:checked) { background: var(--wr-ink); color: var(--wr-on-dark); }
.wr-choice:has(input:checked) input { accent-color: var(--wr-on-dark); }
.wr-choice:has(input:focus-visible) { outline: 3px solid var(--wr-accent); outline-offset: 2px; }
/* Django's RadioSelect / CheckboxSelectMultiple render nested divs: flatten them
   and style each label as a choice button. */
.wr-choices div { display: contents; }
.wr-choices div > label {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--wr-touch); padding: 8px 12px;
  border: 1.5px solid var(--wr-ink); border-radius: var(--wr-radius);
  background: var(--wr-card); cursor: pointer;
}
.wr-choices div > label input { width: 18px; height: 18px; margin: 0; accent-color: var(--wr-ink); flex-shrink: 0; }
.wr-choices div > label:has(input:checked) { background: var(--wr-ink); color: var(--wr-on-dark); }
.wr-choices div > label:has(input:checked) input { accent-color: var(--wr-on-dark); }
.wr-choices div > label:has(input:focus-visible) { outline: 3px solid var(--wr-accent); outline-offset: 2px; }
.wr-experience-row { display: grid; gap: 6px; padding: 6px 0; border-top: 1px solid var(--wr-line); }
.wr-experience-row__label { display: grid; gap: 2px; font-weight: 500; }
.wr-experience-row__label .wr-question__hint { font-weight: 400; }
@media (min-width: 640px) {
  .wr-experience-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.wr-consent { display: flex; gap: 10px; align-items: flex-start; min-height: var(--wr-touch); cursor: pointer; }
.wr-consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--wr-ink); flex-shrink: 0; }
.wr-area-title { display: inline-flex; align-items: center; gap: 10px; }

/* Skill-check result */
.wr-result__hero {
  padding: 20px; border-radius: 6px;
  background: var(--wr-ink); color: var(--wr-on-dark);
}
.wr-result__hero p { margin: 0; max-width: 60ch; }
.wr-eyebrow--on-dark { color: var(--wr-on-dark-muted); }
.wr-area { display: grid; gap: 8px; }
.wr-area__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.wr-area__why { margin: 0; color: var(--wr-muted); }
.wr-change summary {
  display: inline-flex; align-items: center; min-height: var(--wr-touch);
  padding: 0 14px; border: 1.5px solid var(--wr-ink); border-radius: var(--wr-radius);
  cursor: pointer; font-weight: 500; list-style: none;
}
.wr-change summary::-webkit-details-marker { display: none; }
.wr-change[open] summary { background: var(--wr-ink); color: var(--wr-on-dark); }
.wr-change form { margin-top: 12px; }
.wr-js .wr-no-js { display: none; }
.wr-self-pick { padding: 4px; min-height: var(--wr-touch); border: 2px solid transparent; border-radius: var(--wr-radius); background: transparent; cursor: pointer; }
.wr-self-pick--on { border-color: var(--wr-ink); }
.wr-header__level { display: inline-flex; align-items: center; min-height: var(--wr-touch); text-decoration: none; }
.wr-header__account { display: inline-flex; align-items: center; min-height: var(--wr-touch); padding: 0 4px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.wr-header__account:hover, .wr-header__account:focus-visible { border-bottom-color: var(--wr-orange); }
.wr-link-list { list-style: none; padding: 0; margin: 0; }
.wr-link-list a { display: inline-flex; align-items: center; min-height: var(--wr-touch); }

/* Notices after an action (skill check) and a button that reads as a link. */
.wr-notice { margin: 0; padding: 10px 12px; border: 1px solid var(--wr-line); border-left: 4px solid var(--wr-blue); border-radius: var(--wr-radius); background: var(--wr-card); }
.wr-notice--error { border-left-color: var(--wr-red); }
.wr-notice--success { border-left-color: var(--wr-green); }
.wr-link-button { min-height: var(--wr-touch); padding: 0; border: 0; background: none; color: var(--wr-ink); font: inherit; text-decoration: underline; cursor: pointer; }

/* `hidden` always wins over a layout class such as .wr-stack (display: grid). */
[hidden] { display: none !important; }

/* Rally page (T08). */
.wr-rally__back { margin: 0; }
.wr-rally__hero { display: grid; gap: 16px; }
.wr-rally__illustration { border-radius: 6px; overflow: hidden; }
.wr-rally__heading h1 { margin: 0; }
.wr-rally__year { color: var(--wr-muted); }
.wr-rally__place { margin: 0; font-weight: 600; }
.wr-rally__description p:first-child { margin-top: 0; }
.wr-roadbook__note { display: block; color: var(--wr-muted); font-size: 14px; }
.wr-roadbook__source { display: block; }
.wr-source { font-size: 13px; color: var(--wr-muted); }
.wr-source a { color: var(--wr-ink); }
.wr-not-published { color: var(--wr-muted); font-style: italic; }
.wr-cancelled { color: var(--wr-red); text-transform: uppercase; letter-spacing: 0.04em; }
.wr-facts { display: grid; gap: 8px; margin: 0; }
.wr-facts__row { display: grid; gap: 2px; }
.wr-facts__row dt { font-weight: 600; }
.wr-facts__row dd { margin: 0; }
.wr-match-block { padding-top: 12px; border-top: 1px solid var(--wr-line); }
.wr-match-block__label { margin: 0; font-weight: 700; }
.wr-areas, .wr-take, .wr-teams, .wr-editions { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.wr-areas li { display: flex; gap: 8px; }
.wr-areas__mark { flex-shrink: 0; min-width: 28px; color: var(--wr-ink); font-family: var(--wr-font-mono); font-weight: 700; }
.wr-take li { padding-left: 20px; position: relative; }
.wr-take li::before { content: "↱"; position: absolute; left: 0; color: var(--wr-accent); }
@media (min-width: 768px) {
  .wr-rally__hero { grid-template-columns: 320px minmax(0, 1fr); align-items: center; }
  .wr-facts__row { grid-template-columns: 220px minmax(0, 1fr); align-items: baseline; }
}

/* Rally page v2 (Jason, 2026-11-07): a full-width illustration with the name on
   it, a summary strip, every class in one table, shared facts once, gaps in one line. */
.wr-main:has(.wr-rally-hero) { padding-top: 0; }
.wr-rally-hero { position: relative; min-height: clamp(260px, 52vh, 520px); display: flex; align-items: flex-end; color: #fff; background: var(--wr-charcoal); overflow: hidden; }
.wr-rally-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wr-rally-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.75)); }
.wr-rally-hero__label { position: absolute; z-index: 1; top: 12px; right: 16px; font-size: 12px; opacity: .85; }
.wr-rally-hero__text { position: relative; z-index: 1; width: 100%; padding-top: 24px; padding-bottom: 24px; }
.wr-rally-hero h1 { margin: 0; font-family: var(--wr-font-display); font-weight: 600; font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1; text-transform: uppercase; color: #fff; }
.wr-rally-hero .wr-rally__year { color: var(--wr-sand); }
.wr-rally-hero .wr-rally__place { margin: 6px 0 0; font-size: 1.125rem; color: var(--wr-sand); }
.wr-rally-hero .wr-rally__back { margin-bottom: 8px; }
.wr-rally-hero .wr-source, .wr-rally-hero .wr-source a { color: var(--wr-sand); }
.wr-rally-hero .wr-rally__back a { color: #fff; }
/* Decision 87: the organiser's film as the header; their logo above the name. */
.wr-rally-hero--film { min-height: clamp(300px, 62vh, 620px); }
.wr-rally-hero--film::after { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.8)); }
.wr-rally-hero__play {
  position: absolute; z-index: 2; top: 42%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 700; text-shadow: 0 1px 6px rgb(0 0 0 / .6);
}
.wr-rally-hero__play .wr-film__play { position: static; transform: none; width: 76px; height: 76px; transition: transform .15s ease; }
.wr-rally-hero__play:hover .wr-film__play, .wr-rally-hero__play:focus-visible .wr-film__play { transform: scale(1.08); }
.wr-rally-hero__logo { display: inline-block; margin-bottom: 10px; line-height: 0; }
.wr-rally-hero__logo img { height: clamp(40px, 7vw, 64px); width: auto; max-width: 220px; object-fit: contain; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .5)); }
.wr-rally-hero.is-playing { display: block; min-height: 0; }
.wr-rally-hero.is-playing::after, .wr-rally-hero.is-playing .wr-rally-hero__img, .wr-rally-hero.is-playing .wr-rally-hero__label { display: none; }
.wr-rally-hero__frame { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; border: 0; background: #000; }
@media (prefers-reduced-motion: reduce) { .wr-rally-hero__play .wr-film__play { transition: none; } }
.wr-rally-strip { margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--wr-charcoal); color: var(--wr-offwhite); }
.wr-rally-strip > div { padding: 14px 16px; border-right: 1px solid #444; }
.wr-rally-strip dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--wr-sand); }
.wr-rally-strip dd { margin: 2px 0 0; font-family: var(--wr-font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.wr-rally-strip__note, .wr-rally-strip__source { display: block; font-family: var(--wr-font-body); font-weight: 400; }
.wr-rally-strip__note { margin: 2px 0 0; font-size: 13px; color: var(--wr-sand); }
.wr-rally-strip .wr-source, .wr-rally-strip .wr-source a { color: var(--wr-on-dark); }
.wr-rally-strip .wr-level__label { color: var(--wr-offwhite); }
.wr-rally__body { gap: 28px; }
.wr-rally__intro .wr-rally__description { font-size: 1.125rem; max-width: 46em; }
.wr-rally__body h2 { font-family: var(--wr-font-display); text-transform: uppercase; margin: 8px 0 0; }
.wr-class-table-wrap { overflow-x: auto; }
.wr-class-table { width: 100%; border-collapse: collapse; background: var(--wr-card); border: 1px solid var(--wr-line); }
.wr-class-table th, .wr-class-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--wr-line); vertical-align: middle; }
.wr-class-table thead th { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--wr-muted); background: #F3EEE3; }
.wr-class-table tbody th { font-family: var(--wr-font-display); font-weight: 600; font-size: 1.2rem; }
.wr-class-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: var(--wr-touch); font: inherit; color: var(--wr-ink); }
.wr-class-toggle:focus-visible { outline: 3px solid var(--wr-focus, #1F5FAD); outline-offset: 2px; }
.wr-class-toggle__mark { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; flex: none; }
.wr-class-toggle[aria-expanded="true"] .wr-class-toggle__mark { transform: rotate(90deg); }
.wr-class-row { cursor: pointer; }
.wr-class-row:hover { background: #FBF8F1; }
.wr-class-more > td { background: var(--wr-paper); padding: 4px 16px 20px; }
.wr-class-table tbody th small { display: block; font-family: var(--wr-font-body); font-weight: 400; font-size: 13px; color: var(--wr-muted); }
.wr-mini-axes { display: flex; gap: 10px; }
.wr-mini-axis { display: flex; gap: 2px; }
.wr-mini-axes__symbol { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wr-mini-axes__word { font-size: 11px; line-height: 1.2; letter-spacing: .02em; text-transform: none; text-align: center; color: var(--wr-ink); }
.wr-class-table td .wr-mini-axis { width: 84px; justify-content: center; }
.wr-mini-axis i { width: 9px; height: 9px; border-radius: 1px; background: var(--wr-pip-off); display: block; }
@media (max-width: 640px) { .wr-class-table__axes, .wr-class-table__timed { display: none; } }
.wr-good { margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.wr-good > div { background: var(--wr-card); border: 1px solid var(--wr-line); padding: 14px; }
.wr-good dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--wr-muted); }
.wr-good dd { margin: 2px 0 0; font-size: 1.125rem; font-weight: 600; }
.wr-gaps { margin: 0; padding-top: 10px; border-top: 1px dashed var(--wr-line); font-size: 14px; color: var(--wr-muted); }
.wr-class__name { font-family: var(--wr-font-display); font-weight: 600; font-size: 1.2rem; }
.wr-class__body { padding: 0; display: grid; gap: 16px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.wr-class__body > .wr-schedule, .wr-class__body > .wr-match-block { grid-column: 1 / -1; }

/* The numbers strip (landing v2, section 8): roadbook-counter figures. */
.wr-numbers { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 220px)); }
.wr-numbers__item { display: grid; align-content: start; gap: 2px; padding: 12px 14px; background: var(--wr-charcoal); color: var(--wr-sand); border-radius: var(--wr-radius); }
.wr-numbers__value { font-family: var(--wr-font-mono); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--wr-offwhite); }
.wr-numbers__label { font-weight: 500; }
.wr-numbers__note { font-size: 15px; }

/* "Start here" (landing v2, section 2). */
.wr-start { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.wr-start__item a {
  display: grid; gap: 4px; height: 100%; padding: 14px 16px; text-decoration: none; color: var(--wr-ink);
  background: var(--wr-card); border: 1.5px solid var(--wr-line); border-radius: var(--wr-radius);
}
.wr-start__item a:hover { border-color: var(--wr-ink); }
.wr-start__item a:hover .wr-start__name { text-decoration: underline; }
.wr-start__name { font-family: var(--wr-font-display); font-weight: 600; font-size: 1.25rem; }
.wr-start__class { font-weight: 500; }
.wr-start__meta { color: var(--wr-muted); font-size: 16px; }
.wr-start__item .wr-level { justify-self: start; }

/* Riders' stories (landing v2, section 3): quotes, their source named and linked. */
.wr-quotes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wr-quote { display: grid; gap: 8px; align-content: start; padding: 16px; background: var(--wr-card); border: 1.5px solid var(--wr-line); border-left: 4px solid var(--wr-orange); border-radius: var(--wr-radius); }
.wr-quote blockquote { margin: 0; }
.wr-quote blockquote p { margin: 0; font-size: 1.1rem; }
.wr-quote blockquote p::before { content: "“"; }
.wr-quote blockquote p::after { content: "”"; }
.wr-quote__source { margin: 0; font-size: 16px; }

/* "From the bivouac" (landing v2, section 11): headlines in their sources' words. */
.wr-news { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.wr-news__item { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--wr-line); }
.wr-news__headline { font-family: var(--wr-font-display); font-weight: 600; font-size: 1.2rem; color: var(--wr-ink); }
.wr-news__meta { color: var(--wr-muted); font-size: 16px; }
.wr-news__summary { margin: 0; }

/* Home (T07). */
.wr-home__hero h1 { margin: 0; }

/* The hero (decision 62): Jason's clip, poster first, or the tyre-track
   placeholder; the headline over the calm left side (the bottom on a phone),
   on a charcoal scrim so it reads over any frame. */
.wr-hero {
  position: relative; overflow: hidden; display: grid; align-items: end;
  min-height: 420px; border-radius: var(--wr-radius);
  background: var(--wr-charcoal); color: var(--wr-offwhite);
}
.wr-hero__media, .wr-hero__placeholder { position: absolute; inset: 0; }
.wr-hero__media { container-type: size; }
/* The clip's own frame (the portrait clip's ratio, WR_HERO's tall_ratio, 9:16
   unless given; 16:9 landscape), covering the hero like object-fit: cover, so the
   poster, the clip and the tulip share one box and the tulip stays on shot 1's
   roadbook whatever the hero's size. */
.wr-hero__frame {
  /* Centred across; from the top down, so a crop comes off the bottom: the
     riders' heads are in the top fifth of every shot of Jason's clips (helmet
     tops at 0–17% of the frame's height, measured: design/hero/README.md). */
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  aspect-ratio: var(--hero-tall-ratio, 0.5625);
  width: max(100cqw, 100cqh * var(--hero-tall-ratio, 0.5625));
}
.wr-hero__frame > picture, .wr-hero__video { position: absolute; inset: 0; }
.wr-hero__frame > picture img, .wr-hero__video { display: block; width: 100%; height: 100%; }
.wr-hero__placeholder { display: block; width: 100%; height: 100%; }
.wr-hero__video { opacity: 0; transition: opacity 0.6s ease; }
.wr-hero--playing .wr-hero__video { opacity: 1; }
.wr-hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* Up to the eyebrow line on a phone: the least that keeps 4.5:1, with margin,
     over every frame of Jason's clip (measured: design/hero/README.md). */
  background: linear-gradient(0deg, rgba(41, 41, 41, 0.72) 0%, rgba(41, 41, 41, 0.72) 72%, rgba(41, 41, 41, 0) 92%);
}
.wr-hero__text { position: relative; z-index: 1; padding: 180px 20px 24px; max-width: 36rem; }
.wr-hero__text a:not(.wr-tulip-button) { color: var(--wr-sand); }
.wr-hero__tulip {
  position: absolute; z-index: 1;
  left: var(--tulip-left-tall, 56%); top: var(--tulip-top-tall, 8%); width: var(--tulip-width-tall, 30%);
  height: auto;
}
.wr-hero__pause {
  position: absolute; z-index: 2; right: 12px; top: 12px; min-height: var(--wr-touch);
  padding: 6px 12px; border: 1.5px solid var(--wr-sand); border-radius: var(--wr-radius);
  background: var(--wr-charcoal); color: var(--wr-sand); font: inherit; font-weight: 500; font-size: 16px; cursor: pointer;
}
.wr-hero__pause:hover { background: var(--wr-sand); color: var(--wr-charcoal); }
.wr-hero__rut { stroke: var(--wr-sand); stroke-opacity: 0.45; stroke-width: 48; }
.wr-hero__tread { stroke: var(--wr-orange); stroke-width: 7; stroke-dasharray: 4 18; }
.wr-hero__track { transform-box: fill-box; transform-origin: left center; animation: wr-hero-track 3s ease-out both; }
@keyframes wr-hero-track { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .wr-hero__track { animation: none; }
  .wr-hero__video { transition: none; }
}
@media (orientation: landscape) and (min-width: 768px) {
  .wr-hero { align-items: center; min-height: 480px; }
  .wr-hero__media::after {
    /* A flat 0.7 behind the text column (it ends 36rem past the page grid's
       left edge): the least that keeps 4.5:1, with margin, over every frame of
       the clip (measured: design/hero/README.md). Then eased out (a cosine,
       in tenths) over 28% of the width, so its end is never a visible edge. */
    --wr-hero-text-end: calc(max(24px, (100vw - var(--wr-max-width)) / 2 + 24px) + 36rem);
    --wr-hero-fade: 28vw;
    background: linear-gradient(90deg,
      rgba(41, 41, 41, 0.7) 0,
      rgba(41, 41, 41, 0.7) var(--wr-hero-text-end),
      rgba(41, 41, 41, 0.683) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.1),
      rgba(41, 41, 41, 0.633) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.2),
      rgba(41, 41, 41, 0.556) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.3),
      rgba(41, 41, 41, 0.458) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.4),
      rgba(41, 41, 41, 0.350) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.5),
      rgba(41, 41, 41, 0.242) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.6),
      rgba(41, 41, 41, 0.144) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.7),
      rgba(41, 41, 41, 0.067) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.8),
      rgba(41, 41, 41, 0.017) calc(var(--wr-hero-text-end) + var(--wr-hero-fade) * 0.9),
      rgba(41, 41, 41, 0) calc(var(--wr-hero-text-end) + var(--wr-hero-fade)));
  }
  .wr-hero__text { padding: 40px; }
}
/* The same switch as the poster's <source> and the script's choice of clip. */
@media (orientation: landscape) {
  .wr-hero__frame { aspect-ratio: 16 / 9; width: max(100cqw, 100cqh * 16 / 9); }
  .wr-hero__tulip { left: var(--tulip-left, 62%); top: var(--tulip-top, 12%); width: var(--tulip-width, 16%); }
}
/* Full bleed on the home page (T27): edge to edge, straight under the header, no
   rounded box; the text stays on the page grid, inside the container. */
.wr-hero--bleed { border-radius: 0; margin-top: -24px; }
/* On a landscape screen it takes the clip's own 16:9, so the whole frame shows,
   up to the screen's height under the header (96px from 768px wide: the wordmark
   and its padding) and never under the hero's floor (above). Only where the cap
   or the floor bites is the frame cropped, from the bottom (.wr-hero__frame). */
@media (orientation: landscape) {
  /* A set width, so the cap shortens the hero and never narrows it. */
  .wr-hero--bleed { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 96px); }
}
/* The text layer spans the hero: clicks pass through it, except on the text,
   so nothing under it (the pause button) is ever covered. */
.wr-hero--bleed .wr-hero__inner { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.wr-hero--bleed .wr-hero__text { pointer-events: auto; }
.wr-hero--bleed .wr-hero__text { padding-left: 0; padding-right: 0; }
.wr-hero--bleed + .wr-container { margin-top: 24px; }
/* Black and double black read on the charcoal hero with a paper edge, as on cards. */
.wr-hero .wr-level--black, .wr-hero .wr-level--double-black { border: 1px solid var(--wr-paper); }
.wr-home__you { display: grid; gap: 6px; }
.wr-home__summary, .wr-home__counts { margin: 0; }
.wr-home__counts { font-weight: 700; }
/* The five levels as a ladder (T27): stacked on a phone, a rising row of steps on
   wider screens, each with a rung in its colour. */
.wr-ladder { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wr-ladder__step {
  position: relative; display: grid; gap: 8px; align-content: start;
  padding: 14px 14px 14px 22px; border: 1px solid var(--wr-line); border-radius: 6px; background: var(--wr-card);
}
.wr-ladder__rung { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; border-radius: 6px 0 0 6px; }
.wr-ladder__step--green .wr-ladder__rung { background: var(--wr-green); }
.wr-ladder__step--blue .wr-ladder__rung { background: var(--wr-blue); }
.wr-ladder__step--red .wr-ladder__rung { background: var(--wr-red); }
.wr-ladder__step--black .wr-ladder__rung { background: var(--wr-black); }
.wr-ladder__step--double-black .wr-ladder__rung { background: var(--wr-double-black); }
.wr-ladder__step .wr-level { justify-self: start; }
.wr-ladder__meaning { font-size: 16px; line-height: 1.45; }
.wr-ladder__step--you { border: 2px solid var(--wr-ink); }
.wr-ladder__you { font-weight: 700; font-size: 15px; }
@media (min-width: 900px) {
  .wr-ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
  .wr-ladder__step { padding: 22px 14px 16px; margin-top: calc((5 - var(--step)) * 22px); align-content: start; }
  .wr-ladder__rung { left: 0; right: 0; bottom: auto; width: auto; height: 8px; border-radius: 6px 6px 0 0; }
}
.wr-levels, .wr-areas-101, .wr-mini-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wr-levels li, .wr-areas-101 li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.wr-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.wr-filters__field { display: grid; gap: 4px; min-width: 0; font-weight: 500; font-size: 16px; }
.wr-filters__field select { width: 100%; min-width: 0; font-weight: 400; }
.wr-filters__actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wr-views__tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.wr-views__tabs [role=tab] { min-height: var(--wr-touch); padding: 6px 16px; border: 1.5px solid var(--wr-ink); border-radius: var(--wr-radius); background: var(--wr-card); color: var(--wr-ink); font: inherit; font-weight: 500; cursor: pointer; }
.wr-views__tabs [role=tab][aria-selected=true] { background: var(--wr-ink); color: var(--wr-card); }
.wr-views__panels { display: grid; gap: 16px; }
.wr-map { height: 360px; border: 1.5px solid var(--wr-ink); border-radius: 6px; background: var(--wr-pip-off); }
.wr-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--wr-accent); border: 3px solid var(--wr-card); box-shadow: 0 0 0 1.5px var(--wr-ink); }
.wr-pin--on { background: var(--wr-ink); transform: scale(1.35); }
.wr-calendar { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.wr-calendar__month { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--wr-line); }
.wr-calendar__entries { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wr-calendar__entry { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 6px 8px; border-radius: var(--wr-radius); color: var(--wr-ink); text-decoration: none; border: 1.5px solid transparent; }
.wr-calendar__entry:hover, .wr-calendar__entry--on { border-color: var(--wr-ink); background: var(--wr-card); }
.wr-calendar__name { font-weight: 700; text-decoration: underline; }
.wr-calendar__dates { color: var(--wr-muted); font-size: 14px; }
.wr-calendar__empty { margin: 0; color: var(--wr-muted); font-size: 14px; }
.wr-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
/* With JavaScript, one view at a time on a phone; on a desktop, the map and the
   calendar side by side, or the list. */
.wr-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html:not(.wr-js) .wr-view--map { display: none; } /* the map needs JavaScript */
.wr-js .wr-views[data-active] .wr-view { display: none; }
.wr-js .wr-views[data-active=map] .wr-view--map,
.wr-js .wr-views[data-active=calendar] .wr-view--calendar,
.wr-js .wr-views[data-active=list] .wr-view--list { display: block; }
.wr-js .wr-views__tabs--desktop { display: none; }
@media (min-width: 1024px) {
  .wr-js .wr-views__tabs--phone { display: none; }
  .wr-js .wr-views__tabs--desktop { display: flex; }
  .wr-js .wr-views[data-active=map] .wr-views__panels,
  .wr-js .wr-views[data-active=calendar] .wr-views__panels { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .wr-js .wr-views[data-active=map] .wr-view--calendar,
  .wr-js .wr-views[data-active=calendar] .wr-view--map { display: block; }
  .wr-map { height: 560px; }
  .wr-view--calendar { max-height: 600px; overflow-y: auto; }
}

/* Guides and the cost calculator (T15) */
.wr-guide, .wr-calculator { max-width: 46rem; }
.wr-guides > h1, .wr-guides > .wr-guide__intro { max-width: 46rem; }
/* Wide screens: the guide's text stays a readable column; the space beside it holds
   the questions, what to read next and the check (Jason, 2026-11-08). */
.wr-guide-layout { display: grid; gap: 32px; }
.wr-guide-aside { display: grid; gap: 20px; align-content: start; }
.wr-guide-aside h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.wr-guide-aside__toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.wr-guide-aside__toc a { text-decoration: none; }
.wr-guide-aside__toc a:hover, .wr-guide-aside__toc a:focus-visible { text-decoration: underline; }
.wr-guide-aside__next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wr-guide-aside__next a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; min-height: var(--wr-touch); font-weight: 600; }
.wr-guide-aside__next img { width: 96px; height: 54px; object-fit: cover; border-radius: var(--wr-radius); display: block; }
.wr-guide-aside__check { margin: 0; }
.wr-guide-aside__easy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wr-guide-aside__easy a { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; text-decoration: none; color: inherit; }
.wr-guide-aside__name { display: block; font-weight: 700; text-decoration: underline; }
.wr-guide-aside__meta { display: block; font-size: 14px; color: var(--wr-muted); }
.wr-guide-aside__more { margin: 8px 0 0; font-size: 14px; }
.wr-guide-aside__films { display: grid; gap: 12px; }
.wr-guide-aside__films figure { margin: 0; }
.wr-guide-aside__films figcaption { font-size: 14px; margin-top: 4px; font-weight: 600; }
.wr-guide-aside__toc { display: none; }
@media (min-width: 1024px) {
  .wr-guide-layout { grid-template-columns: minmax(0, 46rem) minmax(260px, 1fr); gap: 56px; }
  .wr-guide-aside { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
  .wr-guide-aside__toc { display: block; }
}
.wr-guide__section { scroll-margin-top: 16px; }
.wr-guide__intro { font-size: 1.15rem; font-weight: 600; }
.wr-guide__section h2 { font-size: 1.25rem; margin-bottom: 0.4em; }
.wr-guide__note { border-left: 4px solid var(--wr-accent); padding: 10px 14px; }
/* A guide with a picture opens like a rally page: the picture full width, the title on it. */
.wr-guide-hero { min-height: clamp(280px, 58vh, 600px); }
.wr-guide-hero .wr-rally-hero__img { object-position: center 60%; }
.wr-guide-hero h1 { font-size: clamp(2rem, 5.5vw, 3.75rem); text-transform: none; max-width: 20em; text-shadow: 0 2px 12px rgb(0 0 0 / .45); }
.wr-guide-hero + .wr-container { margin-top: 28px; }
.wr-guide-list__picture { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--wr-radius, 8px); margin-bottom: 8px; }
.wr-guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wr-guide-list h2, .wr-guide-list h3 { font-size: 1.15rem; margin: 0 0 4px; }
.wr-guides__group { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wr-muted, inherit); margin: 12px 0 0; }
.wr-guide-list a { display: inline-flex; align-items: center; min-height: var(--wr-touch); }
.wr-checklist { padding-left: 1.4em; }
.wr-checklist li { margin: 4px 0; }
.wr-symbol-table { display: grid; gap: 12px; }
.wr-symbol-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.wr-symbol-row__symbol { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--wr-ink); }
.wr-symbol-row__text { display: grid; gap: 2px; }
.wr-calculator__field { display: grid; gap: 4px; }
.wr-calculator__field input[type=number] { max-width: 14rem; min-height: var(--wr-touch); font: inherit; padding: 4px 8px; }
.wr-calculator__field fieldset { border: 0; padding: 0; margin: 0; }
.wr-calculator__currency { font-weight: 400; }
.wr-calculator__total { font-size: 1.3rem; }

/* Verdicts (T10) */
.wr-verdict { border-top: 1px solid var(--wr-line); padding-top: 12px; }
.wr-verdict__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wr-verdict__who { font-weight: 600; }
.wr-verdict__what { color: var(--wr-muted); }
.wr-verdict__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; color: var(--wr-muted); }
.wr-verdict__comment p { margin: 0; overflow-wrap: anywhere; }
.wr-verdict__original summary { cursor: pointer; color: var(--wr-muted); min-height: 24px; }
.wr-verdict__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.wr-verdict__photos figure { margin: 0; }
.wr-verdict__photos img { display: block; width: 100%; height: auto; border-radius: var(--wr-radius); }
.wr-verdict__photos figcaption, .wr-verdict__report { font-size: 0.85rem; color: var(--wr-muted); }
.wr-video__player { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.wr-verdict-form select, .wr-verdict-form textarea, .wr-verdict-form input[type=url], .wr-verdict-form input[type=text] { width: 100%; max-width: 36rem; font: inherit; min-height: var(--wr-touch); padding: 4px 8px; box-sizing: border-box; }

/* T24 fact symbols (decision 60, variant 4b): a sand glyph on a charcoal disc
   with an orange ring, the same on every background. */
.wr-fact-symbol { display: inline-flex; flex-shrink: 0; color: var(--wr-sand); vertical-align: middle; }
.wr-fact-symbol__disc { fill: var(--wr-charcoal); stroke: var(--wr-orange); stroke-width: 1.5; }
.wr-symbol-label { display: inline-flex; align-items: center; gap: 8px; }
/* Level keeps its badges, no symbol: its label keeps the symbols' height. */
.wr-filters__field > span { display: inline-flex; align-items: center; min-height: 28px; }
.wr-symbol-sheet { display: grid; gap: 12px; padding: 16px; border-radius: var(--wr-radius); }
.wr-symbol-sheet--offwhite { background: var(--wr-offwhite); color: var(--wr-ink); border: 1px solid var(--wr-ink); }
.wr-symbol-sheet--sand { background: var(--wr-sand); color: var(--wr-charcoal); }
.wr-symbol-sheet--charcoal { background: var(--wr-charcoal); color: var(--wr-offwhite); }
.wr-symbol-sheet__areas, .wr-symbol-sheet__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wr-symbol-sheet__areas { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wr-symbol-sheet__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wr-symbol-sheet li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wr-symbol-sheet li span:last-child { overflow-wrap: break-word; min-width: 0; }
/* The 404 page: Jason's off-route drawing. */
.wr-off-route { max-width: 720px; }
.wr-off-route .wr-illustration img { aspect-ratio: 16 / 9; height: auto; border-radius: 6px; }

/* Sources, once, at the foot of the rally page (7 Nov 2026). */
.wr-sources { padding-top: 16px; border-top: 1px solid var(--wr-line); }
.wr-sources__list { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.wr-sources__list a { word-break: break-all; }
.wr-sources__date { color: var(--wr-muted); font-size: 13px; }

/* ---- Front page showcase (decision 87): coming up, films, organisers ---- */
.wr-showcase__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wr-showcase__head h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.wr-showcase__head a { font-weight: 600; }

/* Coming up: a swipeable strip on a phone, a grid on wider screens. */
.wr-feature-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin: 0 calc(-1 * var(--wr-gutter)); padding-left: var(--wr-gutter); padding-right: var(--wr-gutter);
  scroll-padding-left: var(--wr-gutter);
}
@media (min-width: 900px) {
  .wr-feature-strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
}
.wr-feature {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--wr-charcoal); color: var(--wr-offwhite); border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.12); transition: transform .15s ease, box-shadow .15s ease;
}
.wr-feature:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / 0.18); }
.wr-feature__media { position: relative; aspect-ratio: 16 / 9; background: #1b1b1b; }
.wr-feature__media > img, .wr-feature__media .wr-illustration, .wr-feature__media .wr-illustration img,
.wr-feature__media .wr-film, .wr-feature__media .wr-film__frame { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.wr-feature__logo {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  background: rgb(255 253 248 / 0.94); border-radius: 6px; padding: 6px 8px; line-height: 0;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}
.wr-feature__logo--light { background: rgb(20 20 20 / 0.82); }
.wr-feature__logo img { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.wr-feature__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wr-feature__when { margin: 0; font-family: var(--wr-font-mono); font-size: 12px; text-transform: uppercase; color: var(--wr-sand); letter-spacing: .04em; }
.wr-feature__title { margin: 0; font-family: var(--wr-font-display); font-size: 26px; line-height: 1.05; }
.wr-feature__title a { color: inherit; text-decoration: none; }
.wr-feature__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clicks */
.wr-feature { position: relative; }
.wr-feature .wr-film { position: relative; z-index: 1; } /* the play button wins over the card link */
.wr-feature__place { margin: 0; color: rgb(250 249 246 / 0.82); font-size: 14px; }
.wr-feature__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wr-feature__price { font-weight: 700; color: var(--wr-sand); white-space: nowrap; }
.wr-feature__match { margin: 4px 0 0; font-size: 13px; align-self: flex-start; background: var(--wr-card); color: var(--wr-ink); border-radius: 4px; padding: 2px 8px; }

/* A film: stored poster, a play button, then the player in its place. */
.wr-film { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; color: #fff; }
.wr-film img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease, opacity .3s; opacity: .92; }
.wr-film:hover img, .wr-film:focus-visible img { transform: scale(1.03); opacity: 1; }
.wr-film__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wr-orange); color: #fff; box-shadow: 0 4px 18px rgb(0 0 0 / .4);
}
.wr-film__play svg { margin-left: 3px; }
.wr-film__credit { position: absolute; right: 8px; top: 8px; font-size: 11px; background: rgb(0 0 0 / .55); padding: 2px 6px; border-radius: 3px; }
.wr-film__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.wr-film--vertical, .wr-film__frame.wr-film--vertical { aspect-ratio: 9 / 16; max-height: 80vh; }

.wr-reel { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.wr-reel__item .wr-film, .wr-reel__item .wr-film__frame { border-radius: 8px; }
.wr-reel__caption { margin: 8px 0 0; font-size: 15px; }
.wr-reel__caption a { font-weight: 700; }

.wr-logo-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.wr-logo-wall__item {
  display: grid; place-items: center; height: 84px; padding: 12px; border-radius: 8px;
  background: var(--wr-card); border: 1px solid var(--wr-line); transition: border-color .15s, transform .15s;
}
.wr-logo-wall__item--light { background: var(--wr-charcoal); border-color: var(--wr-charcoal); }
.wr-logo-wall__item:hover { border-color: var(--wr-orange); transform: translateY(-1px); }
.wr-logo-wall__item img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(0.15); }
@media (prefers-reduced-motion: reduce) { .wr-feature, .wr-film img, .wr-logo-wall__item { transition: none; } .wr-feature:hover { transform: none; } }

/* Guide figures: diagrams drawn in code (decision 89), e.g. the labelled roadbook page. */
.wr-figure { margin: 0; display: grid; gap: 12px; }
.wr-figure svg { width: 100%; height: auto; max-width: 460px; display: block; }
.wr-figure__key { margin: 0; padding-left: 1.6em; columns: 2 18em; column-gap: 24px; font-size: 15px; }
.wr-figure__key li { break-inside: avoid; margin: 0 0 4px; }
.wr-figure__key li::marker { color: var(--wr-orange); font-weight: 700; }
.wr-figure__note { margin: 0; font-size: 13px; color: var(--wr-muted); }
.wr-rb { font-family: var(--wr-font-display); color: var(--wr-charcoal); }
.wr-rb text { fill: var(--wr-charcoal); text-anchor: middle; }
.wr-rb .paper { fill: #fff; stroke: var(--wr-charcoal); stroke-width: 2; }
.wr-rb .rule { stroke: var(--wr-charcoal); stroke-width: 2; }
.wr-rb .head { font: 700 12px system-ui, sans-serif; text-anchor: start; }
.wr-rb .head--mid { text-anchor: middle; }
.wr-rb .head--end { text-anchor: end; }
.wr-rb .km { font-size: 46px; font-weight: 700; font-family: system-ui, sans-serif; letter-spacing: -1px; }
.wr-rb .partbox { fill: #fff; stroke: var(--wr-charcoal); stroke-width: 1.5; }
.wr-rb .part { font: 700 14px system-ui, sans-serif; }
.wr-rb .numbox { fill: var(--wr-charcoal); }
.wr-rb .num { font: 700 13px system-ui, sans-serif; fill: #fff; }
.wr-rb .wpbg { fill: #BDEBF5; }
.wr-rb .wp { fill: #5BC8E6; stroke: var(--wr-charcoal); stroke-width: 1.5; }
.wr-rb .wptxt { font: 700 14px system-ui, sans-serif; }
.wr-rb .trk { stroke: var(--wr-charcoal); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wr-rb .tick { stroke: var(--wr-charcoal); stroke-width: 2; }
.wr-rb .route { stroke: var(--wr-lexicon-track); stroke-width: 6; fill: none; stroke-linejoin: round; }
.wr-rb .route.off { stroke-dasharray: 9 6; }
.wr-rb .dot { fill: var(--wr-charcoal); }
.wr-rb .wash { stroke: #6B8FB3; stroke-width: 2.5; fill: none; }
.wr-rb .big { font: 800 40px system-ui, sans-serif; }
.wr-rb .small { font: 700 14px system-ui, sans-serif; }
.wr-rb .cap { fill: var(--wr-lexicon-cap); }
.wr-rb .captxt { font: 800 15px system-ui, sans-serif; }
.wr-rb .danger { font: 900 38px system-ui, sans-serif; fill: var(--wr-lexicon-hazard); }
.wr-rb .redline { stroke: var(--wr-lexicon-hazard); stroke-width: 4; }
.wr-rb .frame { fill: none; stroke: var(--wr-lexicon-hazard); stroke-width: 4; }
.wr-rb .pin circle { fill: var(--wr-orange); stroke: #fff; stroke-width: 1.5; }
.wr-rb .pin text { font: 700 12px system-ui, sans-serif; fill: #fff; }
.wr-guide-list p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Front page, 8 Nov (Jason: "too busy"): organisers' logos as one moving band
   under the hero; labels on cards replace the closing-soon and new sections. */
.wr-logo-band { background: var(--wr-offwhite, #faf8f3); border-bottom: 1px solid rgb(0 0 0 / .08); overflow: hidden; padding: 14px 0; }
.wr-logo-band__track { display: flex; width: max-content; animation: wr-logo-band 60s linear infinite; }
.wr-logo-band:hover .wr-logo-band__track, .wr-logo-band:focus-within .wr-logo-band__track { animation-play-state: paused; }
.wr-logo-band__list { display: flex; align-items: center; gap: 48px; list-style: none; margin: 0; padding: 0 24px; }
.wr-logo-band__item { display: flex; align-items: center; height: 48px; }
.wr-logo-band__item img { max-height: 44px; max-width: 140px; width: auto; object-fit: contain; filter: grayscale(.2); }
.wr-logo-band__item--light { background: var(--wr-charcoal); padding: 4px 10px; border-radius: var(--wr-radius); }
@keyframes wr-logo-band { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .wr-logo-band { overflow-x: auto; }
  .wr-logo-band__track { animation: none; }
  .wr-logo-band__list[aria-hidden] { display: none; }
}
.wr-card__labels { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wr-card__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--wr-sand); color: var(--wr-charcoal); }
.wr-card__label--closing { background: var(--wr-orange); }
.wr-home__next { font-size: 1.1rem; }

/* Front page lists and the rallies page toolbar (Jason, 2026-11-08). */
.wr-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wr-mini-list li { display: grid; gap: 2px; }
.wr-mini-list a { font-weight: 700; }
.wr-mini-list__meta { font-size: 14px; color: var(--wr-muted); }
.wr-home__all { margin: 0; }
.wr-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.wr-toolbar__count { margin: 0; }
.wr-filters-toggle { width: 100%; order: 3; }
.wr-filters-toggle:not([open]) { width: auto; order: 0; }
.wr-filters-toggle__button { display: inline-flex; align-items: center; gap: 8px; min-height: var(--wr-touch); padding: 6px 18px; border: 2px solid var(--wr-ink); border-radius: var(--wr-radius); font-weight: 700; cursor: pointer; list-style: none; }
.wr-filters-toggle__button::-webkit-details-marker { display: none; }
.wr-filters-toggle__button::before { content: "☰"; font-weight: 400; }
.wr-filters-toggle[open] .wr-filters-toggle__button { background: var(--wr-charcoal); color: var(--wr-offwhite); }
.wr-filters-toggle__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--wr-orange); color: var(--wr-charcoal); font-size: 13px; }
.wr-filters-toggle .wr-filters { margin-top: 16px; }
.wr-news-cards { list-style: none; }
.wr-news-card { background: var(--wr-charcoal); color: var(--wr-offwhite); }
.wr-news-card a { color: inherit; }
.wr-news-card__logo { display: block; padding: 14px 16px 0; }
.wr-news-card__logo img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.wr-news-card__summary { margin: 6px 0 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Front page, decision 92: each section its own form ---- */
.wr-main:has(.wr-band) { padding-bottom: 0; }
.wr-band { padding: clamp(40px, 7vw, 72px) 0; }
.wr-band--sand { background: #ece3d1; }
.wr-band--paper { background: #fffdf8; }
.wr-band__eyebrow { font-family: var(--wr-font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; color: var(--wr-muted); }
.wr-band__eyebrow--sand { color: var(--wr-sand); }
.wr-band__title { font-family: var(--wr-font-display); font-size: clamp(34px, 5vw, 56px); line-height: 1; margin: 0 0 28px; }
.wr-band__more { margin: 20px 0 0; font-weight: 700; }

/* Next up: one feature, a short list beside it. */
.wr-next { display: grid; gap: 28px; }
@media (min-width: 900px) { .wr-next { grid-template-columns: 1.6fr 1fr; align-items: stretch; } }
.wr-next__feature { position: relative; border-radius: 8px; overflow: hidden; min-height: 360px; background: #1b1b1b; color: #fff; }
.wr-next__media, .wr-next__media > img, .wr-next__media .wr-film, .wr-next__media .wr-illustration, .wr-next__media .wr-illustration img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.wr-next__media .wr-film { aspect-ratio: auto; }
.wr-next__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .82)); pointer-events: none; }
.wr-next__over { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 20px; display: grid; gap: 6px; pointer-events: none; }
.wr-next__over a { pointer-events: auto; color: inherit; text-decoration: none; }
.wr-next__over a:hover { text-decoration: underline; }
.wr-next__big { margin: 0; font-family: var(--wr-font-display); font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.wr-next__date { margin: 0; font-family: var(--wr-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--wr-sand); }
.wr-next__place { margin: 0; font-size: 15px; opacity: .85; }
.wr-next__grades { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wr-next__list { list-style: none; margin: 0; padding: 0; display: grid; align-content: space-between; border-top: 3px solid var(--wr-ink); }
.wr-next__list li { border-bottom: 1px solid rgb(0 0 0 / .12); }
.wr-next__list a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; color: inherit; }
.wr-next__list .wr-next__date { color: #8a4300; }
.wr-next__list a:hover .wr-next__name { text-decoration: underline; }
.wr-next__name { font-family: var(--wr-font-display); font-size: 28px; line-height: 1; }

/* Deadlines as a roadbook page. */
.wr-roll { background: #fffdf8; border: 3px solid #111; box-shadow: 0 10px 30px rgb(0 0 0 / .12); }
.wr-roll__head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--wr-font-mono); font-weight: 700; font-size: 13px; padding: 8px 14px; background: #111; color: #fff; letter-spacing: .08em; }
.wr-roll__rows { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 900px) { .wr-roll__rows { grid-template-columns: 1fr 1fr; } .wr-roll__rows li:nth-child(odd) { border-right: 3px solid #111; } }
.wr-roll__row { display: grid; grid-template-columns: 112px 104px 1fr; min-height: 128px; height: 100%; border-bottom: 2px solid #111; text-decoration: none; color: #111; }
.wr-roll__row:hover, .wr-roll__row:focus-visible { background: #fff3d6; }
.wr-roll__km { position: relative; border-right: 2px solid #111; display: grid; place-content: center; text-align: center; }
.wr-roll__num { position: absolute; top: 0; left: 0; background: #111; color: #fff; font-family: var(--wr-font-mono); font-size: 12px; font-weight: 700; padding: 2px 7px; }
.wr-roll__days { font-family: var(--wr-font-mono); font-weight: 700; font-size: 46px; line-height: 1; }
.wr-roll__unit { font-family: var(--wr-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.wr-roll__tulip { border-right: 2px solid #111; display: grid; place-items: center; padding: 8px; }
.wr-roll__tulip svg { width: 76px; height: auto; fill: none; stroke: #111; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.wr-roll__tulip circle { fill: #111; }
.wr-roll__tulip .wr-roll__other { stroke-width: 3; stroke: #666; }
.wr-roll__notes { padding: 14px 16px; display: grid; align-content: center; gap: 4px; }
.wr-roll__name { font-family: var(--wr-font-display); font-size: 26px; line-height: 1.05; }
.wr-roll__what { font-family: var(--wr-font-mono); font-size: 13px; text-transform: uppercase; }
.wr-roll__danger { justify-self: start; border: 3px solid var(--wr-lexicon-hazard); color: var(--wr-lexicon-hazard); font-family: var(--wr-font-mono); font-weight: 700; padding: 0 8px; font-size: 18px; line-height: 1.3; }
.wr-roll__danger--2 { border-width: 2px; font-size: 15px; }
@media (max-width: 600px) {
  .wr-roll__row { grid-template-columns: 76px 64px 1fr; min-height: 108px; }
  .wr-roll__days { font-size: 32px; }
  .wr-roll__tulip svg { width: 48px; }
  .wr-roll__notes { padding: 10px 12px; }
  .wr-roll__name { font-size: 21px; }
  .wr-roll__what { font-size: 12px; }
}

/* The levels as a coloured band. */
.wr-colours { background: var(--wr-charcoal); color: var(--wr-offwhite); padding: clamp(48px, 7vw, 72px) 0 0; overflow: hidden; }
.wr-colours__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .wr-colours__grid { grid-template-columns: 1fr 1.4fr; align-items: end; } }
.wr-colours__text { padding-bottom: clamp(32px, 6vw, 72px); }
.wr-colours .wr-band__title { color: #fff; }
.wr-colours__text p { font-size: 18px; max-width: 30em; }
.wr-colours__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 900px) { .wr-colours__steps { grid-template-columns: repeat(5, 1fr); align-items: end; } }
.wr-colours__step { padding: 12px 12px 16px; color: #fff; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; min-width: 0; }
@media (min-width: 900px) { .wr-colours__step { min-height: calc(170px + var(--step) * 48px); } }
.wr-colours__step--green { background: var(--wr-green); }
.wr-colours__step--blue { background: var(--wr-blue); }
.wr-colours__step--red { background: var(--wr-red); }
.wr-colours__step--black { background: #4a4a4a; }
.wr-colours__step--double-black { background: #0d0d0d; box-shadow: inset 0 0 0 1px #555; }
.wr-colours__step--you { box-shadow: inset 0 0 0 4px var(--wr-orange); }
.wr-colours__name { font-family: var(--wr-font-display); font-size: 24px; line-height: 1; }
.wr-colours__meaning { font-size: 13px; line-height: 1.35; opacity: .92; }

/* New listings as a lineup poster. */
.wr-lineup { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--wr-ink); }
.wr-lineup a { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgb(0 0 0 / .12); text-decoration: none; color: inherit; }
.wr-lineup a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.wr-lineup a:not(:has(img)) .wr-lineup__logo { display: none; }
.wr-lineup__logo { grid-row: span 2; height: 56px; display: grid; place-items: center start; }
.wr-lineup__logo img { max-height: 56px; max-width: 130px; object-fit: contain; }
.wr-lineup__logo--light { background: var(--wr-charcoal); place-items: center; border-radius: 4px; }
.wr-lineup__name { font-family: var(--wr-font-display); font-size: clamp(28px, 4.4vw, 54px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.wr-lineup a:hover .wr-lineup__name, .wr-lineup a:focus-visible .wr-lineup__name { color: var(--wr-orange); }
.wr-lineup__meta { font-family: var(--wr-font-mono); font-size: 13px; text-transform: uppercase; color: var(--wr-muted); }
@media (max-width: 600px) {
  .wr-lineup a { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
  .wr-lineup__logo { height: 40px; }
  .wr-lineup__logo img { max-height: 40px; max-width: 60px; }
  .wr-lineup__name { font-size: 26px; }
  .wr-lineup__meta { font-size: 11px; }
}

/* News as a newspaper column. */
.wr-paper { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; border-top: 3px solid var(--wr-ink); }
@media (min-width: 900px) { .wr-paper { grid-template-columns: 1fr 1fr 1fr; } }
.wr-paper li { padding: 16px 0; border-bottom: 1px solid rgb(0 0 0 / .12); }
.wr-paper__headline { display: block; font-family: var(--wr-font-display); font-size: 24px; line-height: 1.1; color: inherit; }
.wr-paper__meta { display: block; margin-top: 6px; font-family: var(--wr-font-mono); font-size: 12px; text-transform: uppercase; color: var(--wr-muted); }
.wr-paper p { margin: 8px 0 0; }

/* The guides as a picture mosaic: one large, two small. */
.wr-mosaic { display: grid; gap: 12px; }
@media (min-width: 900px) { .wr-mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 240px 240px; } .wr-mosaic__tile:first-child { grid-row: span 2; } }
.wr-mosaic__tile { position: relative; display: block; overflow: hidden; border-radius: 8px; min-height: 200px; color: #fff; text-decoration: none; background: #222; }
.wr-mosaic__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.wr-mosaic__tile:hover img, .wr-mosaic__tile:focus-visible img { transform: scale(1.04); }
.wr-mosaic__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 45%, rgb(0 0 0 / .78)); }
.wr-mosaic__title { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 16px; font-family: var(--wr-font-display); font-size: 28px; line-height: 1.05; }
.wr-mosaic__tile:first-child .wr-mosaic__title { font-size: clamp(30px, 3.4vw, 42px); }
@media (prefers-reduced-motion: reduce) { .wr-mosaic__tile img { transition: none; } }

/* ---- Account page, decision 93 ---- */
.wr-main:has(.wr-acct-head) { padding-top: 0; }
.wr-acct-head { background: var(--wr-charcoal); color: var(--wr-offwhite); padding: 36px 0; }
.wr-acct-head__grid { display: grid; gap: 20px 24px; align-items: center; grid-template-columns: auto minmax(0, 1fr); }
@media (min-width: 860px) { .wr-acct-head__grid { grid-template-columns: auto minmax(0, 1fr) auto; } }
.wr-acct-head__initial { width: 72px; height: 72px; border-radius: 50%; background: var(--wr-orange); color: var(--wr-charcoal); display: grid; place-items: center; font-family: var(--wr-font-display); font-size: 36px; font-weight: 600; }
.wr-acct-head h1 { margin: 0; color: #fff; font-size: clamp(34px, 5vw, 52px); line-height: 1; text-transform: uppercase; }
.wr-acct-head__who { margin: 6px 0 0; color: var(--wr-sand); overflow-wrap: anywhere; }
.wr-acct-level { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; border: 1.5px solid var(--wr-tan); border-radius: 6px; padding: 14px 18px; }
@media (min-width: 860px) { .wr-acct-level { grid-column: auto; } }
.wr-acct-level__text a { color: var(--wr-sand); }
.wr-acct-level__chip { font-family: var(--wr-font-display); font-size: 30px; text-transform: uppercase; padding: 8px 18px; border-radius: 4px; color: #fff !important; text-decoration: none; background: var(--wr-black); }
.wr-acct-level__chip--0 { background: var(--wr-green); }
.wr-acct-level__chip--1 { background: var(--wr-blue); }
.wr-acct-level__chip--2 { background: var(--wr-red); }
.wr-acct-level__chip--4 { background: #0d0d0d; box-shadow: inset 0 0 0 1px #666; }
.wr-acct-level__text { display: grid; gap: 2px; font-size: 14px; }
.wr-acct-level__text strong { font-size: 16px; color: #fff; }
.wr-acct { padding-top: 32px; }
.wr-acct__cols { display: grid; gap: 40px; margin-top: 8px; }
@media (min-width: 900px) { .wr-acct__cols { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; } }
.wr-acct__main { display: grid; gap: 36px; }
/* Section heads as the Bikes and support groups (decision 110): uppercase, an orange rule. */
.wr-acct__h2 { font-size: 30px; line-height: 1; margin: 0 0 4px; padding-bottom: 6px; border-bottom: 3px solid var(--wr-accent); text-transform: uppercase; letter-spacing: .02em; }
.wr-acct__h2 small { font-family: var(--wr-font-mono); font-size: 12px; color: var(--wr-muted); font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.wr-acct__empty { color: var(--wr-muted); margin: 12px 0 0; }
.wr-watchlist, .wr-acct__rows { list-style: none; margin: 0; padding: 0; }
.wr-watchlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid rgb(0 0 0 / .12); }
.wr-watchlist a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; color: inherit; }
.wr-watchlist a:hover .wr-watchlist__name, .wr-watchlist a:focus-visible .wr-watchlist__name { text-decoration: underline; }
.wr-watchlist__name { font-family: var(--wr-font-display); font-size: 26px; line-height: 1; text-transform: uppercase; }
.wr-watchlist__meta { font-family: var(--wr-font-mono); font-size: 12px; text-transform: uppercase; color: var(--wr-muted); }
.wr-watchlist__foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wr-watchlist__tag { font-family: var(--wr-font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border: 1.5px solid var(--wr-ink); border-radius: 3px; }
.wr-watchlist__tag--hot { border-color: var(--wr-lexicon-hazard); color: var(--wr-lexicon-hazard); }
.wr-watchlist__unwatch { font: inherit; font-size: 14px; background: none; border: 0; padding: 8px 0; min-height: var(--wr-touch); text-decoration: underline; cursor: pointer; color: var(--wr-muted); }
/* Rallies done and verdicts: the rally's name as on the watchlist, a mono line, then
   the actions; discreet links on the right (Jason, 22 Nov 2026). */
.wr-acct__rows li { padding: 14px 0; border-bottom: 1px solid var(--wr-line); display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.wr-acct__row-main { display: grid; gap: 4px; min-width: 0; }
.wr-acct__row-name { font-family: var(--wr-font-display); font-size: 24px; line-height: 1; text-transform: uppercase; color: inherit; text-decoration: none; }
.wr-acct__row-name:hover, .wr-acct__row-name:focus-visible { text-decoration: underline; }
.wr-acct__row-meta { font-family: var(--wr-font-mono); font-size: 12px; text-transform: uppercase; color: var(--wr-muted); }
.wr-acct__row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-acct__row-tags:empty { display: none; }
.wr-acct__row-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wr-acct__side { display: grid; gap: 24px; }
.wr-acct__box { background: var(--wr-card); border: 1.5px solid var(--wr-ink); border-radius: 6px; padding: 20px; display: grid; gap: 14px; }
.wr-acct__box h2 { font-size: 22px; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.wr-acct__box .wr-field input, .wr-acct__box .wr-field select { width: 100%; max-width: none; }
.wr-acct__links { list-style: none; margin: 0; padding: 0; }
.wr-acct__links li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--wr-touch); border-bottom: 1px solid var(--wr-line); }
.wr-acct__links li:last-child { border-bottom: 0; }
.wr-acct__links span { color: var(--wr-muted); font-family: var(--wr-font-mono); font-size: 11px; text-transform: uppercase; }
.wr-acct__foot { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--wr-line); font-size: 14px; display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
.wr-acct__foot span { color: var(--wr-muted); }
.wr-acct__delete { color: var(--wr-lexicon-hazard); }

/* Garage and photo (decision 94) */
.wr-acct-head__photo { object-fit: cover; padding: 0; }
.wr-garage { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.wr-garage__bike { border: 1.5px solid var(--wr-ink); border-radius: 6px; overflow: hidden; background: var(--wr-card); display: flex; flex-direction: column; }
.wr-garage__bike--riding { border: 2px solid var(--wr-orange); }
.wr-garage__media { position: relative; aspect-ratio: 4 / 3; background: #ece3d1; display: grid; place-items: center; }
.wr-garage__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wr-garage__none { opacity: .5; }
.wr-garage__riding { position: absolute; left: 8px; top: 8px; background: var(--wr-orange); color: var(--wr-charcoal); font-family: var(--wr-font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.wr-garage__body { padding: 12px 14px; display: grid; gap: 4px; }
.wr-garage__name { font-family: var(--wr-font-display); font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.wr-garage__meta { font-family: var(--wr-font-mono); font-size: 11px; text-transform: uppercase; color: var(--wr-muted); }
.wr-garage__actions { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.wr-garage__add { border-style: dashed; background: transparent; }
.wr-garage__add a { flex: 1; min-height: 180px; display: grid; place-content: center; text-align: center; gap: 4px; font-weight: 700; text-decoration: none; color: inherit; }
.wr-garage__add a span { font-size: 40px; line-height: 1; color: var(--wr-orange); }
.wr-garage__add a:hover, .wr-garage__add a:focus-visible { background: #fff3d6; }
/* Rallies I've done (decision 96): how it went as a small mono tag. */
.wr-ridden__how, .wr-ridden__raised { font-family: var(--wr-font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; border: 1px solid currentColor; }
.wr-ridden__how--dnf { color: var(--wr-muted); }
.wr-ridden__verdict { font-family: var(--wr-font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; background: var(--wr-charcoal); color: var(--wr-sand); }
a.wr-ridden__verdict { text-decoration: none; }
a.wr-ridden__verdict:hover, a.wr-ridden__verdict:focus-visible { background: var(--wr-ink); color: #fff; text-decoration: underline; }
/* "See your verdict" from the account lands on it: outlined so the rider finds it. */
.wr-verdict:target { outline: 3px solid var(--wr-accent); outline-offset: 6px; border-radius: 4px; scroll-margin-top: 24px; }
.wr-ridden__raised { background: var(--wr-orange); color: var(--wr-charcoal); border-color: var(--wr-orange); }
.wr-acct__photo-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wr-bike-form { max-width: 36rem; }
.wr-bike-form__photo { max-width: 320px; border-radius: 8px; }

.wr-footer__copy { margin: 16px 0 0; font-size: 13px; opacity: .8; }

/* Short rallies (decision 100): one-day roadbook events under the rallies list. */
.wr-days { margin: 56px 0 24px; }
.wr-days__head { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; border-bottom: 3px solid #111; padding-bottom: 12px; }
.wr-days__kicker { font-family: var(--wr-font-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wr-muted); margin: 0; }
.wr-days h2 { font-family: var(--wr-font-display); font-size: 40px; line-height: 1; margin: 4px 0 0; }
.wr-days__intro { max-width: 62ch; margin: 12px 0 0; }
.wr-days__note { font-family: var(--wr-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--wr-muted); text-align: right; max-width: 28ch; margin: 0; }
.wr-days__list { list-style: none; margin: 0; padding: 0; }
.wr-days__row { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid #d8d2c4; }
.wr-days__date { font-family: var(--wr-font-mono); font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.wr-days__date b { display: block; font-size: 30px; }
.wr-days__date small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .08em; color: var(--wr-muted); font-weight: 400; }
.wr-days__name { font-family: var(--wr-font-display); font-size: 24px; line-height: 1.05; margin: 0; }
.wr-days__meta { font-size: 14px; color: var(--wr-muted); margin: 3px 0 0; }
.wr-days__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.wr-days__tag { font-family: var(--wr-font-mono); font-size: 11px; text-transform: uppercase; padding: 2px 6px; border: 1px solid #111; border-radius: 3px; }
.wr-days__link { font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  .wr-days__row { grid-template-columns: 84px 1fr; }
  .wr-days__link { grid-column: 2; }
  .wr-days__head { grid-template-columns: 1fr; }
  .wr-days__note { text-align: left; }
  .wr-days h2 { font-size: 32px; }
}

/* Card pictures (9 Nov 2026): the organiser's film still or logo before the illustration. */
.wr-card__photo { position: relative; display: block; height: 140px; overflow: hidden; background: #222; line-height: 0; }
.wr-card__photo img { width: 100%; height: 140px; object-fit: cover; display: block; }
.wr-card__photo .wr-illustration__label { position: absolute; right: 8px; bottom: 8px; line-height: normal; }
.wr-card__logo { display: grid; place-items: center; height: 140px; background: #f1ece1; border-bottom: 1px solid #d8d2c4; }
.wr-card__logo--light { background: #1d1d1b; }
.wr-card__logo img { max-width: 62%; max-height: 84px; object-fit: contain; }
/* "Rate it" stands out until the rally is rated; "Change" stays discreet, as "Remove". */
.wr-ridden__rate { font-family: var(--wr-font-display); font-size: 17px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: var(--wr-ink); text-decoration: none; border: 1.5px solid var(--wr-ink); border-radius: 4px; padding: 4px 12px; }
.wr-ridden__rate:hover, .wr-ridden__rate:focus-visible { background: var(--wr-charcoal); color: var(--wr-sand); }
.wr-ridden__change { font-size: 14px; color: var(--wr-muted); white-space: nowrap; }

/* Who finishes (decision 104): starters and finishers per class. */
.wr-finish__year { font-size: 1rem; margin: 0; }
.wr-finish__pct { font-family: var(--wr-font-mono); font-weight: 700; margin-left: 6px; }
.wr-finish__bar { display: block; height: 6px; max-width: 220px; margin-top: 4px; background: var(--wr-line, #ddd); border-radius: 3px; overflow: hidden; }
.wr-finish__bar > span { display: block; height: 100%; background: currentColor; }
.wr-finish__class { display: block; font-weight: 400; font-size: 12px; color: var(--wr-muted); }

/* Bikes and support (decision 110): cards, grouped by what they offer. */
.wr-support__group {
  margin: 12px 0 0; padding-bottom: 4px; border-bottom: 3px solid var(--wr-accent);
  font-family: var(--wr-font-display); font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em;
}
.wr-support__group span { font-family: var(--wr-font-mono); font-size: 14px; color: var(--wr-muted); }
.wr-support-grid {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.wr-support-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px;
  background: var(--wr-card); border: 1.5px solid var(--wr-ink); border-radius: 6px;
}
/* The whole card is the link: the name's link stretches over it. */
.wr-support-card--link .wr-support-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.wr-support-card--link:hover, .wr-support-card--link:focus-within { box-shadow: 0 0 0 2px var(--wr-accent); }
.wr-support-card--organiser { grid-column: 1 / -1; border-color: var(--wr-accent); border-width: 2px; }
.wr-support-card p { margin: 0; }
.wr-support-card__head { display: flex; align-items: center; gap: 12px; }
.wr-support-card__head h1, .wr-support-card__head p { margin: 0; }
.wr-support-mark {
  flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 6px; background: #fff; border: 1px solid var(--wr-line); overflow: hidden;
}
.wr-support-mark--dark { background: var(--wr-charcoal); border-color: var(--wr-charcoal); }
.wr-support-mark img { max-width: 48px; max-height: 48px; object-fit: contain; }
.wr-support-mark--initials {
  background: var(--wr-charcoal); color: var(--wr-sand); border-color: var(--wr-charcoal);
  font-family: var(--wr-font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.03em;
}
.wr-support-provider .wr-support-mark { width: 80px; height: 80px; }
.wr-support-provider .wr-support-mark--dark { background: var(--wr-charcoal); border-color: var(--wr-charcoal); }
.wr-support-mark img { max-width: 70px; max-height: 70px; }
.wr-support-provider .wr-support-mark--initials { font-size: 34px; }
.wr-support-card__name { margin: 0; font-size: 22px; line-height: 1.15; }
.wr-support-card__name a { text-decoration: none; color: inherit; }
.wr-support-card__base { color: var(--wr-muted); font-size: 14px; }
.wr-support-card__note { font-style: italic; font-size: 14px; }
.wr-support-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.wr-support-tag {
  font-family: var(--wr-font-mono); font-size: 11px; text-transform: uppercase;
  padding: 2px 6px; border: 1px solid var(--wr-ink); border-radius: 3px;
}
.wr-support-card__bikes, .wr-support-card__rallies { font-size: 14px; }
.wr-support-card__price {
  margin-top: auto !important; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  padding: 6px 8px; background: var(--wr-paper); border-left: 3px solid var(--wr-accent);
}
.wr-support-card__price strong { font-family: var(--wr-font-display); font-size: 24px; line-height: 1.1; }
.wr-support-card__price span { font-size: 13px; color: var(--wr-muted); }
.wr-support-card__more { margin-top: auto !important; font-weight: 700; }
.wr-support-prices { width: 100%; border-collapse: collapse; font-size: 15px; }
.wr-support-prices caption { text-align: left; font-size: 13px; color: var(--wr-muted); padding-bottom: 4px; }
.wr-support-prices th, .wr-support-prices td { padding: 6px 0; border-top: 1px solid var(--wr-line); vertical-align: top; }
.wr-support-prices th { text-align: left; font-weight: 600; }
.wr-support-prices th span { display: block; font-weight: 400; font-size: 13px; color: var(--wr-muted); }
.wr-support-prices td { text-align: right; white-space: nowrap; font-family: var(--wr-font-display); font-size: 20px; padding-left: 12px; }
.wr-support-rallies {
  display: grid; gap: 12px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.wr-support-rally { background: var(--wr-card); border: 1.5px solid var(--wr-ink); border-radius: 6px; }
.wr-support-rally summary {
  cursor: pointer; padding: 12px 14px; display: grid; gap: 2px 12px; align-items: baseline;
  grid-template-columns: minmax(0, 1fr) auto;
}
.wr-support-rally[open] { grid-column: 1 / -1; max-width: 640px; }
.wr-support-rally summary::marker { content: ""; }
.wr-support-rally__name { font-family: var(--wr-font-display); font-size: 22px; font-weight: 700; }
.wr-support-rally__dates { grid-column: 1; color: var(--wr-muted); font-size: 14px; }
.wr-support-rally__from { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.wr-support-rally__from strong { font-family: var(--wr-font-display); font-size: 22px; }
.wr-support-rally__from small { display: block; color: var(--wr-muted); }
.wr-support-rally__partner {
  grid-column: 1; justify-self: start; font-size: 12px; font-weight: 700; padding: 1px 6px;
  border-radius: 3px; background: var(--wr-sand); color: var(--wr-charcoal);
}
.wr-support-rally[open] summary { border-bottom: 1px solid var(--wr-line); }
.wr-support-rally__body { padding: 12px 14px; }
.wr-support-rally__body p { margin: 0; }
.wr-sources__sub { margin: 12px 0 4px; font-size: 1rem; }
.wr-support-provider__head { display: grid; gap: 10px; }
.wr-support-provider__head p { margin: 0; }
.wr-support-provider__site { font-weight: 700; }
.wr-support-rally__name::before { content: "▸ "; color: var(--wr-accent); }
.wr-support-rally[open] .wr-support-rally__name::before { content: "▾ "; }

/* The shortlist (decision 113): the side-by-side page. Its button sits on the rally
   page beside the organiser's, white with a border (Jason, 22 Nov 2026). */
.wr-rally__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wr-rally__actions form { margin: 0; }
.wr-tulip-button--white { background: #fff; color: var(--wr-ink); border: 1.5px solid var(--wr-ink); }
.wr-tulip-button--white:hover, .wr-tulip-button--white:focus-visible { background: var(--wr-ink); color: var(--wr-on-dark); }
.wr-tulip-button--white.is-on { background: var(--wr-ink); color: var(--wr-on-dark); }
.wr-sl-cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .wr-sl-cols { grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; }
}
.wr-sl { display: grid; gap: 14px; align-content: start; padding: 16px; background: var(--wr-card); border: 1.5px solid var(--wr-ink); border-radius: 6px; }
.wr-sl__head { display: grid; gap: 4px; }
.wr-sl__head p { margin: 0; }
.wr-sl__name { font-size: 26px; margin: 0; }
.wr-sl__name a { text-decoration: none; }
.wr-sl__dates { font-family: var(--wr-font-mono); font-size: 13px; color: var(--wr-muted); }
.wr-sl__form { display: grid; gap: 14px; }
.wr-sl__label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--wr-muted); }
.wr-sl__label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wr-sl__classes { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.wr-sl__class {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "pick name fee" "pick grade fee";
  gap: 2px 8px; align-items: center; padding: 8px; border: 1px solid var(--wr-line); border-radius: var(--wr-radius);
}
div.wr-sl__class { grid-template-columns: 1fr auto; grid-template-areas: "name fee" "grade fee"; }
.wr-sl__class input { grid-area: pick; }
.wr-sl__class-name { grid-area: name; font-weight: 600; }
.wr-sl__class-grade { grid-area: grade; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wr-sl__fee { grid-area: fee; font-family: var(--wr-font-mono); text-align: right; }
.wr-sl__class.is-leaning { border: 2px solid var(--wr-accent); background: var(--wr-paper); }
.wr-sl__support p { margin: 0; }
.wr-sl__support select, .wr-sl__note textarea, .wr-sl-share__url { width: 100%; font: inherit; padding: 8px; border: 1.5px solid var(--wr-line); border-radius: var(--wr-radius); background: var(--wr-card); color: var(--wr-ink); }
.wr-sl__note-text { margin: 0; white-space: normal; }

/* Changing a verdict: the photos and films already up, each with a remove tick. */
.wr-verdict-media { border: 0; padding: 0; margin: 0; }
.wr-verdict-media__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.wr-verdict-media__list li { display: grid; gap: 4px; }
.wr-verdict-media__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1.5px solid var(--wr-ink); border-radius: 6px; }
.wr-verdict-media__film { display: grid; place-content: center; aspect-ratio: 4 / 3; padding: 8px; text-align: center; border: 1.5px solid var(--wr-ink); border-radius: 6px; background: var(--wr-card); font-size: 14px; overflow-wrap: anywhere; }
.wr-verdict-media__film small { font-size: 11px; color: var(--wr-muted); }

/* Readiness checklist (decision 116): the rally page's Documents section, the
   rider's dates form and the shortlist row. */
.wr-docs-check { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wr-line); }
.wr-docs-check__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--wr-line); }
.wr-docs-check__what { flex: 1 1 18rem; }
.wr-docs-check__what small { color: var(--wr-muted); }
.wr-docs-check__status { font-weight: 600; }
.wr-docs-check__item--ok .wr-docs-check__status { color: var(--wr-green); }
.wr-docs-check__item--expired .wr-docs-check__status,
.wr-docs-check__item--expires_during .wr-docs-check__status,
.wr-docs-check__item--too_old .wr-docs-check__status { color: var(--wr-red); }
.wr-docs-check__item--unchecked .wr-docs-check__status,
.wr-docs-check__item--no_date .wr-docs-check__status { color: var(--wr-muted); font-weight: 400; }
.wr-docs-passport { border-left: 3px solid var(--wr-orange); padding-left: .75rem; }
.wr-docs { border-collapse: collapse; width: 100%; }
.wr-docs th, .wr-docs td { text-align: left; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--wr-line); vertical-align: top; }
.wr-docs td { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.wr-docs-list { list-style: none; margin: 0; padding: 0; }
.wr-docs-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--wr-line); }
.wr-docs-list__date { color: var(--wr-muted); }
.wr-sl__docs--problems a { color: var(--wr-red); font-weight: 600; }
.wr-docs-check__source { display: block; margin-top: .15rem; font-size: .85rem; font-style: italic; color: var(--wr-muted); }
.wr-docs-check__source a { font-style: normal; white-space: nowrap; }
.wr-docs-check__licence { display: inline-block; margin-left: .25rem; padding: 0 .4rem; border: 1.5px solid var(--wr-ink); border-radius: 3px; font-size: .8rem; font-weight: 600; }
.wr-docs-check__item--not_needed .wr-docs-check__status { color: var(--wr-green); }
.wr-docs-check__item--wrong_licence .wr-docs-check__status { color: var(--wr-red); }
.wr-docs-check__item--check_licence .wr-docs-check__status,
.wr-docs-check__item--no_type .wr-docs-check__status { color: var(--wr-muted); font-weight: 400; }
