/* WTC Pedaal Laarne 2027 · richting "Lus"
   Elke rit is een lus vanuit Laarne. De lijn van die lus, gelezen uit de kaarten van de club, is het beeldmerk.
   Eén signatuur (de routelijn), één ondersteunend motief (het rugnummer), verder rust. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #eff2f5;
  --paper-3: #e3e8ee;
  --ink: #1b1f26;
  --ink-2: #464e59;
  --muted: #5f6977;
  --line: #d9dfe6;
  --asphalt: #0c1a30;
  --asphalt-2: #16294a;
  --night-glow: #1d3a66;
  --sky: #4aa6e6;
  --pink: #e2416b;
  --g-a: #e2416b; --g-b: #2f86e8; --g-b2: #6cc3ef; --g-c: #f4b41a;
  --on-dark: #f3f5f8;
  --on-dark-2: #b9c1cc;
  --blue: #1a5ce0;
  --blue-ink: #154fc2;
  --red: #dc3a5c;
  --red-ink: #b51f45;
  --gold: #f4b41a;
  --strava: #c63c00;
  --route: var(--blue);
  --hole: var(--paper-3);
  --focus: #1a5ce0;
  --on-accent: #ffffff;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.03rem, 1rem + 0.15vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.36rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.7vw, 1.72rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.25vw, 2.3rem);
  --step-4: clamp(2.1rem, 1.7rem + 2vw, 3.1rem);
  --step-5: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-6: clamp(3rem, 1.6rem + 6.4vw, 7.4rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 7rem;
  --wrap: 80rem;
  --narrow: 44rem;
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 3rem);
  --head-h: 4.25rem;
  --tab-h: 0px;
}
@media (max-width: 959px) { :root { --tab-h: calc(4rem + env(safe-area-inset-bottom)); --head-h: 3.5rem; } }

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14181e; --paper-2: #1c2129; --paper-3: #262c35; --ink: #eef1f5; --ink-2: #c3cad3; --muted: #97a1ae; --line: #2e353f;
  --asphalt: #08121f; --asphalt-2: #12233d; --blue: #7aa2ff; --blue-ink: #9bb9ff; --red: #ff6b88; --red-ink: #ff8aa2; --gold: #ffc94a; --focus: #ffc94a; --on-accent: #0e1115;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #14181e; --paper-2: #1c2129; --paper-3: #262c35; --ink: #eef1f5; --ink-2: #c3cad3; --muted: #97a1ae; --line: #2e353f;
    --asphalt: #08121f; --asphalt-2: #12233d; --blue: #7aa2ff; --blue-ink: #9bb9ff; --red: #ff6b88; --red-ink: #ff8aa2; --gold: #ffc94a; --focus: #ffc94a; --on-accent: #0e1115;
  }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  overflow-x: clip; padding-bottom: var(--tab-h);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--space-3) var(--space-4); border-radius: var(--r-s); }
.skip:focus { top: var(--space-4); }
main:focus { outline: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display); line-height: 1.05; margin: 1.6em 0 0.5em;
  font-weight: 750; font-stretch: 112%; letter-spacing: -0.012em; text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 820; font-stretch: 125%; letter-spacing: -0.025em; line-height: 0.95; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 { font-size: var(--step-0); font-stretch: 100%; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 700; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); }
.full-bleed { margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - var(--wrap) / 2)); }

/* ---------- iconen ---------- */
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; background: none; border: 0; color: inherit; border-radius: 999px; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn svg, .tb svg, .team-l svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================================
   Kop
   ===================================================================== */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--asphalt); color: var(--on-dark); }
.head-in { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: var(--space-4); min-height: var(--head-h); }
.brand { flex: none; display: flex; align-items: center; min-height: 44px; }
.brand img { height: calc(var(--head-h) - 0.9rem); width: auto; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.nav-list > li { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; gap: 0.35em; min-height: var(--head-h); padding: 0 0.7rem;
  background: none; border: 0; color: var(--on-dark-2); font-family: var(--f-display); font-size: 0.82rem; font-weight: 650; font-stretch: 108%;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; position: relative;
}
.nav-top:hover, .nav-list > li.is-active > .nav-top { color: var(--on-dark); }
.nav-list > li.is-active > .nav-top::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; }
.chev { width: 0.45em; height: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
[aria-expanded="true"] > .chev { transform: translateY(2px) rotate(-135deg); }
.sub {
  list-style: none; margin: 0; padding: var(--space-2); position: absolute; left: 0; top: calc(100% - 6px); min-width: 15rem;
  background: var(--paper); color: var(--ink); border-radius: var(--r-m); box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.45), 0 0 0 1px var(--line);
  display: none;
}
.has-sub > [aria-expanded="true"] + .sub { display: block; }
.sub a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); color: var(--ink); text-decoration: none; border-radius: var(--r-s); font-weight: 600; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--paper-2); color: var(--blue-ink); }
.nav-tools { display: flex; align-items: center; gap: var(--space-2); }
.nav-search { display: flex; align-items: center; background: var(--asphalt-2); border-radius: 999px; padding-left: var(--space-4); }
.nav-search input[type=search] { width: 9rem; min-height: 40px; padding: 0; background: none; border: 0; color: var(--on-dark); font: inherit; font-size: 0.95rem; }
.nav-search input::placeholder { color: var(--on-dark-2); }
.nav-search input:focus { outline: none; }
.nav-search:focus-within { box-shadow: 0 0 0 3px var(--gold); }
.nav-search .icon-btn { color: var(--on-dark-2); }
.theme-btn { color: var(--on-dark-2); }
.head-search { display: none; color: var(--on-dark-2); }

/* tabbalk (gsm) */
.tabbar { display: none; }
.sheet { display: none; }
@media (max-width: 959px) {
  .head-in { justify-content: space-between; }
  .head-search { display: inline-grid; margin-left: auto; }
  .nav {
    position: fixed; inset: var(--head-h) 0 var(--tab-h) 0; z-index: 50; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: var(--asphalt); padding: var(--space-5) var(--gutter) var(--space-7); overflow-y: auto; overscroll-behavior: contain;
  }
  [data-menu-open] .nav { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list > li { border-bottom: 1px solid rgb(255 255 255 / 0.1); }
  .nav-top { width: 100%; justify-content: space-between; font-size: 1.15rem; min-height: 56px; padding: 0; color: var(--on-dark); }
  .nav-list > li.is-active > .nav-top { color: var(--gold); }
  .nav-list > li.is-active > .nav-top::after { content: none; }
  .sub { position: static; box-shadow: none; background: none; padding: 0 0 var(--space-3); min-width: 0; }
  .sub a { color: var(--on-dark); font-size: var(--step-0); padding-left: var(--space-4); }
  .sub a:hover, .sub a[aria-current="page"] { background: var(--asphalt-2); color: var(--gold); }
  .nav-tools { margin-top: var(--space-5); }
  .nav-search { flex: 1; }
  .nav-search input[type=search] { width: 100%; }
  body[data-menu-open], body[data-sheet-open] { overflow: hidden; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-top: 1px solid var(--line);
  }
  .tb {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px;
    background: none; border: 0; color: var(--muted); font-family: var(--f-display); font-size: 0.72rem; font-weight: 650; font-stretch: 100%;
    text-decoration: none; cursor: pointer; position: relative; padding: 0;
  }
  .tb[aria-current], .tb[aria-expanded="true"] { color: var(--blue-ink); }
  .tb[aria-current]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
  .sheet { display: block; position: fixed; inset: 0 0 var(--tab-h) 0; z-index: 55; background: rgb(10 12 16 / 0.45); }
  .sheet[hidden] { display: none; }
  .sheet-in { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper); border-radius: var(--r-l) var(--r-l) 0 0; padding: var(--space-4) var(--gutter) var(--space-5); box-shadow: 0 -12px 40px rgb(0 0 0 / 0.2); }
  .sheet-in::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto var(--space-3); }
  .sheet-t { margin: 0 0 var(--space-2); font-family: var(--f-display); font-weight: 750; font-stretch: 112%; font-size: var(--step-1); }
  .sheet ul { list-style: none; margin: 0; padding: 0; }
  .sheet a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step-1); border-bottom: 1px solid var(--line); }
  .sheet li:last-child a { border-bottom: 0; }
  .sheet a[aria-current="page"] { color: var(--blue-ink); }
  .sheet a::after { content: ""; margin-left: auto; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: 0.5; }
  @media (prefers-reduced-motion: no-preference) { .sheet:not([hidden]) .sheet-in { animation: sheetUp 0.22s cubic-bezier(.2,.8,.2,1); } @keyframes sheetUp { from { transform: translateY(100%); } } }
}

/* =====================================================================
   Knoppen, chips, rugnummer
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 46px; padding: 0.55em 1.2em;
  border: 1.5px solid var(--ink); border-radius: 999px; background: none; color: var(--ink);
  font-family: var(--f-display); font-size: 0.95rem; font-weight: 650; font-stretch: 105%; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-strava { background: var(--strava); border-color: var(--strava); color: #fff; }
.btn-strava:hover { background: var(--ink); border-color: var(--ink); }
.btn.is-empty { border-style: dashed; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn.is-empty:hover { background: none; color: var(--muted); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-garmin::before {
  content: ""; width: 1.1em; height: 1.1em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='18' r='2.5'/%3E%3Ccircle cx='19' cy='6' r='2.5'/%3E%3Cpath d='M7.5 18H15a3.5 3.5 0 0 0 0-7H9a3.5 3.5 0 0 1 0-7h7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='18' r='2.5'/%3E%3Ccircle cx='19' cy='6' r='2.5'/%3E%3Cpath d='M7.5 18H15a3.5 3.5 0 0 0 0-7H9a3.5 3.5 0 0 1 0-7h7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
a[data-download]::after { content: " (PDF)"; font-size: 0.8em; color: var(--muted); }
a[data-download][href$=".gpx"]::after { content: " (GPX)"; }
.btn[data-download]::after { color: inherit; opacity: 0.75; }

.chip {
  min-height: 44px; padding: 0 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-family: var(--f-display); font-size: 0.9rem; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 0.4em; font-family: var(--f-display); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--red); margin: 0; }

/* rugnummer: wit doek, vier speldengaatjes, breed cijfer */
.bib {
  --hole-r: 2.1px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  padding: 0.5em 0.75em 0.42em; min-width: 3.4em; border-radius: 5px; color: #12151a; position: relative;
  background:
    radial-gradient(circle at 7px 7px, var(--hole) var(--hole-r), transparent calc(var(--hole-r) + 0.6px)),
    radial-gradient(circle at calc(100% - 7px) 7px, var(--hole) var(--hole-r), transparent calc(var(--hole-r) + 0.6px)),
    radial-gradient(circle at 7px calc(100% - 7px), var(--hole) var(--hole-r), transparent calc(var(--hole-r) + 0.6px)),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), var(--hole) var(--hole-r), transparent calc(var(--hole-r) + 0.6px)),
    #fbfbfa;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.06);
  font-family: var(--f-display);
}
.bib-k { font-size: 0.62em; font-weight: 650; font-stretch: 100%; letter-spacing: 0.01em; color: #5b636e; white-space: pre; }
.bib-n { font-size: 1.5em; font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bib-team { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); min-width: 2.6em; padding: 0.38em 0.5em 0.3em; }
.bib-team .bib-n { font-size: 1.35em; }
.bib-lg { font-size: 1.35rem; }

/* =====================================================================
   Routelijn (signatuur)
   ===================================================================== */
.glyph { display: block; width: 100%; height: auto; overflow: visible; }
.glyph use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.glyph .g-casing { stroke: var(--glyph-bg, var(--paper)); stroke-width: calc(var(--gw, 3px) + 4px); }
.glyph .g-line { stroke: var(--route); stroke-width: var(--gw, 3px); }
.glyph-stack { display: block; width: 100%; height: auto; overflow: visible; }
.glyph-stack use { fill: none; stroke: currentColor; stroke-width: 1.4px; stroke-opacity: 0.22; stroke-linejoin: round; stroke-linecap: round; }
.prof { display: block; width: 100%; height: 72px; overflow: visible; }
.prof .p-area { fill: color-mix(in srgb, var(--route) 14%, transparent); }
.prof .p-line { fill: none; stroke: var(--route); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* parcours: dorpen met een pijltje ertussen (rijrichting), hellingen als bergje, stop als bidon */
:root {
  --ico-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --ico-climb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 20 9 7l4 6 3-4 7 11Z'/%3E%3C/svg%3E");
  --ico-bidon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 1h4v2.2h1.2v2.3c1.6.7 2.6 2.2 2.6 4v11.3c0 1.8-1.4 3.2-3.2 3.2H9.4c-1.8 0-3.2-1.4-3.2-3.2V9.5c0-1.8 1-3.3 2.6-4V3.2H10ZM8.6 11.5v2.2h6.8v-2.2Zm0 4v2.2h6.8v-2.2Z'/%3E%3C/svg%3E");
}
.lint { line-height: 1.95; }
.lint .sep {
  display: inline-block; width: 10px; height: 10px; margin: 0 5px 0 6px; vertical-align: 0;
  background: color-mix(in srgb, var(--route) 70%, var(--muted)); font-size: 0; color: transparent; overflow: hidden;
  -webkit-mask: var(--ico-next) center / contain no-repeat; mask: var(--ico-next) center / contain no-repeat;
}
.lint .climb {
  display: inline-flex; align-items: center; gap: 0.3em; padding: 0.02em 0.5em 0.02em 0.38em; margin: 0 0.05em;
  border-radius: 6px; background: color-mix(in srgb, var(--red) 10%, var(--paper)); color: var(--red-ink);
  font-family: var(--f-display); font-size: 0.86em; font-weight: 750; font-stretch: 100%; line-height: 1.55; letter-spacing: 0.01em; white-space: normal; overflow-wrap: anywhere; max-width: 100%; vertical-align: baseline;
}
.lint .climb::before { content: ""; width: 1.05em; height: 1.05em; flex: none; background: currentColor; -webkit-mask: var(--ico-climb) center / contain no-repeat; mask: var(--ico-climb) center / contain no-repeat; }
.lint .climb .climb { padding: 0; margin: 0; background: none; }
.lint .climb .climb::before { content: none; }
.lint .climb .sep { background: var(--red); }
.lint .stop { margin-top: 0; vertical-align: baseline; padding: 0.02em 0.6em 0.02em 0.45em; font-size: 0.86em; line-height: 1.55; }
.hl { color: var(--red); }
.stop {
  display: inline-flex; align-items: center; gap: 0.45em; margin-top: 0.4em; padding: 0.3em 0.8em 0.3em 0.55em; border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 11%, var(--paper)); color: var(--ink); font-size: 0.92em; line-height: 1.35;
}
.stop::before { content: ""; width: 1.15em; height: 1.15em; flex: none; background: var(--blue); -webkit-mask: var(--ico-bidon) center / contain no-repeat; mask: var(--ico-bidon) center / contain no-repeat; }
.stop strong { color: var(--blue-ink); }
.climbs { list-style: none; padding: 0 !important; margin: 0 0 var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.climbs li { display: inline-flex; align-items: center; gap: 0.35em; max-width: none; padding: 0.3em 0.75em; border-radius: 6px; background: color-mix(in srgb, var(--red) 10%, var(--paper)); color: var(--red-ink); font-family: var(--f-display); font-weight: 750; font-size: 0.9rem; }
.climbs li::marker { content: none; }
.climbs li::before { content: ""; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--ico-climb) center / contain no-repeat; mask: var(--ico-climb) center / contain no-repeat; }
.km { display: inline-block; font-family: var(--f-display); font-size: 0.85rem; font-weight: 750; font-stretch: 110%; padding: 0.22em 0.65em; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-ico { width: 44px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[data-cat="mount"] .cat-ico { stroke: var(--red); }
[data-cat="hill"] .cat-ico { stroke: var(--blue); }

/* =====================================================================
   Home
   ===================================================================== */
.hero { background: var(--paper); position: relative; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-6) var(--space-7); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-title { margin: 0; font-size: var(--step-6); font-weight: 860; font-stretch: 125%; letter-spacing: -0.035em; line-height: 0.88; text-wrap: balance; }
.hero-tag { margin: var(--space-4) 0 0; font-size: var(--step-1); color: var(--ink-2); font-family: var(--f-display); font-stretch: 100%; font-weight: 500; }
.lastride { display: block; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none; max-width: 40rem; }
.lr-title { display: block; font-family: var(--f-display); font-size: var(--step-1); font-weight: 750; font-stretch: 110%; }
.lastride:hover .lr-title { color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.lr-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-3) 0 var(--space-3); }
.lr-facts div { display: flex; flex-direction: column; }
.lr-facts dt { font-size: 0.82rem; color: var(--muted); }
.lr-facts dd { margin: 0; font-family: var(--f-display); font-size: var(--step-2); font-weight: 800; font-stretch: 118%; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lr-path { display: block; color: var(--ink-2); }
.hero-shape { margin: 0; position: relative; display: grid; gap: var(--space-3); max-width: 34rem; justify-self: end; width: 100%; }
.hero-glyph { --gw: 5px; aspect-ratio: 1; width: 100%; }
.hero-prof { height: 96px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-glyph .g-line, .hero-glyph .g-casing { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.55,.05,.25,1) 0.2s forwards; }
  .hero-prof { animation: rise 0.8s ease-out 1.8s both; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes rise { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .hero-copy { display: contents; }
  .hero-title { order: 1; } .hero-tag { order: 2; margin-top: 0; } .hero-shape { order: 3; } .lastride { order: 4; margin-top: var(--space-2); }
  .hero-shape { max-width: 22rem; justify-self: start; grid-template-columns: 1fr; }
  .hero-glyph { max-width: 16rem; }
  .hero-prof { height: 56px; }
}

.sec-title { font-size: var(--step-4); margin: 0 0 var(--space-5); font-weight: 820; font-stretch: 125%; letter-spacing: -0.025em; line-height: 0.95; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.sec-head .sec-title { margin: 0; }

.teams { padding-block: var(--space-6) var(--space-8); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--space-4); }
.team {
  position: relative; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5); min-height: 15rem;
  border-radius: var(--r-l); background: var(--paper-2); overflow: hidden; isolation: isolate; color: var(--ink);
}
.team-art { position: absolute; right: -10%; top: -18%; width: 66%; z-index: -1; color: var(--ink); transition: color 0.3s; }
.team:hover .team-art, .team:focus-within .team-art { color: var(--blue); }
.team-art use { stroke-opacity: 0.11; }
.team:hover .team-art use { stroke-opacity: 0.3; }
.team .bib { align-self: flex-start; }
.team-ls { display: grid; margin-top: auto; }
.team-l { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 650; border-top: 1px solid var(--line); }
.team-l svg { color: var(--muted); }
.team-l::after { content: ""; margin-left: auto; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: 0.45; }
.team-l:hover { color: var(--blue-ink); }

.club { position: relative; background: var(--asphalt); color: var(--on-dark); }
.club-photo-wrap { position: relative; }
.club-photo { width: 100%; height: clamp(16rem, 34vw, 30rem); object-fit: cover; object-position: center 30%; }
.club-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--asphalt) 100%); }
.club-in { position: relative; margin-top: calc(-1 * clamp(4rem, 8vw, 7rem)); padding-bottom: var(--space-8); }
.club .sec-title { color: #fff; }
.waypoints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--space-4); }
.wayp { max-width: none !important; }
.wayp-link {
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-2); height: 100%; padding: var(--space-5);
  border-radius: var(--r-m); background: var(--asphalt-2); color: var(--on-dark); text-decoration: none; border: 1px solid rgb(255 255 255 / 0.06);
}
.wayp-link:hover { background: color-mix(in srgb, var(--asphalt-2) 80%, var(--blue)); }
.wayp-t { margin: 0; font-size: var(--step-2); font-weight: 780; font-stretch: 115%; }
.wayp-d { margin: 0; color: var(--on-dark-2); }
.wayp-more { font-family: var(--f-display); font-weight: 650; color: var(--gold); font-size: 0.9rem; }

.news { padding-block: var(--space-8) var(--space-6); }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ni { display: grid; gap: var(--space-3); }
.ni-img { display: block; border-radius: var(--r-m); overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 10; }
.ni-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ni:hover .ni-img img { transform: scale(1.03); }
.ni-meta { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin: 0; font-size: 0.85rem; color: var(--muted); }
.ni-cats a { color: var(--muted); }
.ni-meta { gap: 0 0.3em !important; }
.ni-meta time { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ni-t { margin: 0; font-size: var(--step-1); font-weight: 750; font-stretch: 108%; line-height: 1.15; }
.ni-t a { color: var(--ink); text-decoration: none; }
.ni-t a:hover { color: var(--blue-ink); text-decoration: underline; }
.ni-lead .ni-t { font-size: var(--step-3); font-stretch: 118%; }
.ni-ex { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ni-list { display: grid; gap: 0; }
.ni-list .ni { grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.ni-list .ni:first-child { padding-top: 0; }
.ni-list .ni-img { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.ni-list .ni-body { display: grid; gap: 2px; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

.strava { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strava .sec-title { margin: 0; font-size: var(--step-2); }
.partners { padding-block: var(--space-7) var(--space-8); }
.partners .sec-title { font-size: var(--step-2); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--space-3); }
.logos li { display: grid; place-items: center; height: 6.5rem; padding: var(--space-4); background: #fff; border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); }
.logos img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter 0.2s, opacity 0.2s; }
.logos li:hover img { filter: none; opacity: 1; }

/* =====================================================================
   Donkere kopband (kalender, routes, klassement)
   ===================================================================== */
.kal-head, .at-head, .rank-head { background: var(--asphalt); color: var(--on-dark); --glyph-bg: var(--asphalt); --hole: var(--asphalt); }
.kal-head h1, .at-head h1, .rank-head h1 { color: #fff; }
.seg { display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px; border-radius: 999px; background: var(--asphalt-2); margin-bottom: var(--space-5); }
.seg-i { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1em; border-radius: 999px; color: var(--on-dark-2); text-decoration: none; font-family: var(--f-display); font-weight: 650; font-size: 0.9rem; white-space: nowrap; }
.seg-i:hover { color: #fff; }
.seg-i.is-on { background: #fff; color: #12151a; }
.stats { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); margin: var(--space-5) 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 0.88rem; color: var(--on-dark-2); }
.stats dd { margin: 0; font-family: var(--f-display); font-size: var(--step-4); font-weight: 850; font-stretch: 125%; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats small { font-size: 0.4em; font-weight: 600; font-stretch: 100%; color: var(--on-dark-2); letter-spacing: 0; }

/* =====================================================================
   Kalender: seizoensboek
   ===================================================================== */
.t-kalender .page-body { padding-top: 0; }
.kal-head { margin-inline: calc(50% - 50vw); }
.kal-head-in { padding-block: var(--space-6) var(--space-6); }
.kal-title { margin: 0; font-size: var(--step-5); font-weight: 860; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.92; }
.kal-legend { margin-top: var(--space-4); color: var(--on-dark-2); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: baseline; }
.kal-legend > *, .kal-legend p { margin: 0; max-width: none; }
.kal-legend .d-grp, .kal-legend .cb, .kal-legend .d-sec, .kal-legend .d-row, .kal-legend .d-col { display: contents; }
.kal-legend ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.kal-legend li { max-width: none; padding: 0.25em 0.75em; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 999px; }
.kal-legend li::marker { content: none; }
.kal-legend strong { color: var(--gold); }
.kal-legend h2, .kal-legend h3, .kal-legend h4 { margin: 0; font-size: 0.92rem; color: var(--on-dark); font-stretch: 100%; }

.ribbon { -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent); display: flex; gap: var(--space-4); margin-top: var(--space-6); overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: thin; scrollbar-color: var(--asphalt-2) transparent; }
.rb-m { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--space-2); }
.rb-mr { display: flex; gap: 6px; padding-bottom: var(--space-2); border-bottom: 2px solid rgb(255 255 255 / 0.14); }
.rb-ml { font-size: 0.82rem; font-weight: 600; color: var(--on-dark-2); white-space: nowrap; }
.rb-t { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--asphalt-2); padding: 6px; --route: #fff; --gw: 1.6px; }
.rb-t .g-casing { stroke: none; }
.rb-t.is-mount { --route: #ff8c80; }
.rb-t.is-hill { --route: #9ebcff; }
.rb-t.no-g::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-dark-2); opacity: 0.5; }
.rb-t:hover, .rb-t:focus-visible { background: #fff; --route: var(--blue); }

.months { position: sticky; top: var(--head-h); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - var(--wrap) / 2)); }
.months ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.months li { max-width: none; flex: none; }
.months a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 0.9em; color: var(--muted); text-decoration: none; font-family: var(--f-display); font-weight: 650; white-space: nowrap; position: relative; }
.months a:hover { color: var(--ink); }
.months a[aria-current="true"] { color: var(--ink); }
.months a[aria-current="true"]::after { content: ""; position: absolute; left: 0.9em; right: 0.9em; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }

.kal-book { padding-bottom: var(--space-8); }
.kal-month { scroll-margin-top: 3.25rem; padding-top: var(--space-6); }
.kal-m { margin: 0 0 var(--space-2); font-size: var(--step-3); font-weight: 820; font-stretch: 125%; letter-spacing: -0.02em; }
.kal-month h2:not(.kal-m) { display: none; }
.t-kalender .kal-head, .kal-head > .kal-head-in { margin-top: 0 !important; }
.kal-m + h3, .kal-m + h2, .kal-m + .d-grp > h3:first-child { display: none; }
.rides { list-style: none; margin: 0; padding: 0 !important; }
.ride {
  display: grid; grid-template-columns: 8.5rem 6.5rem minmax(0, 1fr) auto; gap: var(--space-2) var(--space-5); align-items: center;
  padding: var(--space-4) var(--space-3); border-top: 1px solid var(--line); scroll-margin-top: 4.25rem; max-width: none !important; position: relative;
}
.ride:last-child { border-bottom: 1px solid var(--line); }
.ride.is-target { background: color-mix(in srgb, var(--gold) 16%, var(--paper)); border-radius: var(--r-m); }
.r-when p { margin: 0; max-width: none; }
.r-k { font-size: 0.75rem !important; font-weight: 600; color: var(--muted); margin: 0 0 1px !important; }
.r-nr { font-size: 0.85rem; color: var(--muted); }
.lbl { color: var(--muted); }
.r-date { font-family: var(--f-display); font-size: var(--step-3); font-weight: 850; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.r-time { margin-top: var(--space-1) !important; font-size: 0.85rem; }
.r-time strong { font-family: var(--f-display); font-size: 1.05rem; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.r-shape { display: grid; place-items: center; width: 6.5rem; aspect-ratio: 1; border-radius: var(--r-m); background: var(--paper-2); padding: 0.55rem; --glyph-bg: var(--paper-2); --gw: 2.4px; text-decoration: none; transition: background-color 0.2s; }
a.r-shape:hover, a.r-shape:focus-visible { background: color-mix(in srgb, var(--blue) 12%, var(--paper)); --glyph-bg: transparent; --gw: 3.2px; }
.r-shape.is-empty { background: none; }
.ride[data-cat="mount"] .r-shape { --route: var(--red); }
.r-route { min-width: 0; }
.r-path { margin: 0; max-width: 64ch !important; }
.r-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: var(--space-2) 0 0; font-size: 0.9rem; font-family: var(--f-display); font-weight: 650; }
.r-link { color: var(--blue-ink); }
.r-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(3.4rem, auto)); gap: var(--space-1) var(--space-4); align-items: end; }
.fact dt { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.fact dd { margin: 0; font-family: var(--f-display); font-size: var(--step-2); font-weight: 800; font-stretch: 118%; line-height: 1; font-variant-numeric: tabular-nums; }
.fact-special dd { font-size: 1rem; color: var(--muted); }
.fact-special.is-set dd { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.3em 0.6em; border-radius: 6px; background: var(--gold); color: #1b1f26; font-weight: 750; }
.fact-special.is-stop dd::before { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--ico-bidon) center / contain no-repeat; mask: var(--ico-bidon) center / contain no-repeat; }
@media (max-width: 900px) {
  .ride { grid-template-columns: 5.5rem minmax(0, 1fr) auto; grid-template-areas: "shape when facts" "route route route"; padding-inline: 0; align-items: start; }
  .r-shape { grid-area: shape; width: 5.5rem; }
  .r-when { grid-area: when; }
  .r-route { grid-area: route; }
  .r-facts { grid-area: facts; grid-template-columns: repeat(3, auto); gap: 0 var(--space-3); }
  .fact dd { font-size: var(--step-1); }
}
@media (max-width: 520px) {
  .ride { grid-template-columns: 4.5rem minmax(0, 1fr); grid-template-areas: "shape when" "facts facts" "route route"; }
  .r-shape { width: 4.5rem; }
  .r-facts { justify-content: start; }
}

/* =====================================================================
   Routes: atlas van alle lussen
   ===================================================================== */
.t-gpx .page-body { padding: 0; }
.at-head { overflow: hidden; position: relative; }
.at-head-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-6); align-items: center; padding-block: var(--space-6) var(--space-7); }
.at-h1 { margin: 0; font-size: var(--step-5); font-weight: 860; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.92; }
.at-intro { margin-top: var(--space-5); display: grid; gap: var(--space-2); max-width: 38rem; }
.at-intro p { margin: 0; color: var(--on-dark-2); max-width: none; }
.at-warn { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2) var(--space-3); border-radius: var(--r-s); background: rgb(246 181 25 / 0.12); font-size: 0.95rem; }
.at-warn svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.at-art { color: #fff; width: 100%; max-width: 30rem; justify-self: end; }
.at-art use { stroke-opacity: 0.16; stroke-width: 1.3px; }
@media (max-width: 860px) { .at-head-in { grid-template-columns: minmax(0, 1fr); } .at-art { position: absolute; right: -20%; top: 0; width: 80%; opacity: 0.5; z-index: 0; } .at-head-text { position: relative; z-index: 1; } }

.at-shell { padding-bottom: var(--space-8); }
.at-tools {
  position: sticky; top: var(--head-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  padding: var(--space-3) 0; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: var(--space-5); border-bottom: 1px solid var(--line);
}
.at-search { flex: 1 1 15rem; display: flex; align-items: center; gap: var(--space-2); padding-left: var(--space-4); border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.at-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.at-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.at-search input[type=search] { border: 0; background: none; min-height: 44px; padding: 0 var(--space-3) 0 0; outline: none; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.at-count { margin: 0 0 0 auto; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .at-count { margin-left: 0; flex-basis: 100%; } .at-tools { position: static; } }

.at-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: var(--space-3); }
@media (max-width: 560px) { .at-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); } .at-pick .bib { font-size: 0.7rem; } .at-cl { display: none; } }
.at-tile { max-width: none !important; min-width: 0; }
.at-pick { min-width: 0; overflow: hidden; }
.at-meta { min-width: 0; flex-wrap: nowrap; }
.at-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-s); filter: grayscale(0.4); opacity: 0.85; }
.at-tile[hidden] { display: none; }
.at-pick {
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-2); height: 100%; padding: var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--r-m); background: var(--paper-2); color: var(--ink); text-decoration: none; position: relative;
  --glyph-bg: var(--paper-2); --gw: 2.2px; transition: background-color 0.2s, box-shadow 0.2s;
}
.at-pick .bib { justify-self: start; font-size: 0.78rem; }
.at-pick .glyph { width: 82%; margin: var(--space-1) auto; aspect-ratio: 1; }
.at-noglyph { display: block; aspect-ratio: 1; }
.at-pick:hover, .at-pick:focus-visible { background: color-mix(in srgb, var(--blue) 10%, var(--paper)); --glyph-bg: transparent; --gw: 3px; }
.at-pick[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.at-tile[data-cat="mount"] .at-pick { --route: var(--red); }
.at-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); min-height: 1.6rem; }
.at-cl { font-family: var(--f-display); font-size: 0.8rem; font-weight: 700; color: var(--red-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.at-nolink { position: absolute; right: var(--space-3); top: var(--space-3); font-size: 0.75rem; color: var(--muted); }
.at-empty { padding: var(--space-6) 0; color: var(--muted); }

.at-stage { margin-top: var(--space-8); }
.at-detail { scroll-margin-top: calc(var(--head-h) + 5rem); padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.at-detail:focus { outline: none; }
.at-dh { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.at-title { margin: 0; display: flex; align-items: center; gap: var(--space-3); font-size: inherit; }
.at-step { display: flex; gap: var(--space-1); }
.at-step .icon-btn { border: 1px solid var(--line); }
.at-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.at-step [hidden] { display: none; }
.at-close { display: none; }
.at-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-6); align-items: start; }
.at-shape { display: grid; gap: var(--space-3); padding: var(--space-5); border-radius: var(--r-l); background: var(--paper-2); --glyph-bg: var(--paper-2); }
.at-big { --gw: 4px; aspect-ratio: 1; }
.at-detail[data-cat="mount"] { --route: var(--red); }
.at-route { font-size: var(--step-1); line-height: 1.7; margin: 0 0 var(--space-4); max-width: none !important; }
.at-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.at-cta { min-height: 52px; padding-inline: 1.6em; font-size: 1.05rem; }
.at-missing { flex-basis: 100%; margin: 0; font-size: 0.9rem; color: var(--muted); }
.at-map { margin: 0; }
.at-map a { display: block; position: relative; border-radius: var(--r-m); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.at-map-img { width: 100%; height: auto; }
.at-zoom { position: absolute; right: var(--space-3); top: var(--space-3); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); }
.at-zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.at-map a:hover .at-zoom { background: var(--blue); }
@media (max-width: 860px) { .at-body { grid-template-columns: minmax(0, 1fr); } .at-shape { max-width: 26rem; } }
.at-body > * { min-width: 0; }

/* met JavaScript: detail als blad over de atlas */
.js .at-stage { margin: 0; }
.js .at-detail { display: none; }
.js.at-open .at-stage { position: fixed; inset: 0; z-index: 70; background: rgb(10 12 16 / 0.5); display: flex; justify-content: flex-end; }
.js.at-open .at-detail.is-on {
  display: block; width: min(68rem, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--paper);
  padding: 0 clamp(1rem, 3vw, 2.5rem) var(--space-8); border-top: 0; box-shadow: -24px 0 60px rgb(0 0 0 / 0.25);
}
.js.at-open .at-dh { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.js .at-close { display: inline-grid; }
.js.at-open, .js.at-open body { overflow: hidden; }
@media (max-width: 959px) { .js.at-open .at-stage { bottom: 0; } .js.at-open .at-detail.is-on { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .js.at-open .at-detail.is-on { animation: slideIn 0.26s cubic-bezier(.2,.8,.2,1); }
  .js.at-open .at-detail.is-on .at-big .g-line, .js.at-open .at-detail.is-on .at-big .g-casing { stroke-dasharray: 1; animation: draw 1.4s cubic-bezier(.55,.05,.25,1) 0.1s both; }
  @keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
}
.at-big path { }

/* =====================================================================
   Klassement
   ===================================================================== */
.t-klassement .page-body { padding-top: 0; }
.rank-head { margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - var(--wrap) / 2)); padding-block: var(--space-6) var(--space-6); margin-bottom: var(--space-6); }
.rank-head p, .rank-head > .cb > p { color: var(--on-dark-2); }
.rank-title { margin: 0 0 var(--space-3); font-size: var(--step-5); font-weight: 860; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.92; max-width: 22ch; }
.rank-head .cb:not(:has(*)) { display: inline-block; margin-top: var(--space-2); padding: 0.3em 0.8em; border-radius: 999px; background: var(--gold); color: #1b1f26; font-weight: 700; font-size: 0.9rem; }
.rank-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.rank-nav a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border-radius: var(--r-m); background: var(--asphalt-2); color: var(--on-dark); text-decoration: none; font-family: var(--f-display); font-weight: 700; min-height: 56px; }
.rank-nav a:hover { background: color-mix(in srgb, var(--asphalt-2) 70%, var(--blue)); }
.rank-nav .jersey { width: 40px; height: 38px; }
.rank-sec { scroll-margin-top: calc(var(--head-h) + 1rem); margin-bottom: var(--space-8); }
.rank-sec > .cb:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: end; }
.rank-sec h2 { font-size: var(--step-4); font-weight: 830; font-stretch: 125%; letter-spacing: -0.02em; margin: 0 0 var(--space-2); }
.leader { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto auto; column-gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-radius: var(--r-m); background: var(--paper-2); }
.leader .jersey { grid-row: 1 / 4; width: 76px; height: 72px; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.18)); }
.ld-l { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.ld-n { font-family: var(--f-display); font-size: var(--step-2); font-weight: 800; font-stretch: 112%; line-height: 1.1; }
.ld-v { font-family: var(--f-display); font-size: var(--step-1); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--blue-ink); }
.rank-berg .ld-v { color: var(--red); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--space-2); max-width: 40rem; margin: var(--space-6) 0 var(--space-5); }
.pd { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.pd-n { font-family: var(--f-display); font-weight: 750; line-height: 1.15; }
.pd-v { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-b { display: grid; place-items: center; width: 100%; margin-top: var(--space-2); border-radius: 8px 8px 0 0; background: var(--paper-2); color: var(--ink); font-family: var(--f-display); font-size: var(--step-3); font-weight: 900; font-stretch: 125%; }
.pd-1 .pd-b { height: 112px; box-shadow: inset 0 4px 0 var(--gold); }
.pd-2 .pd-b { height: 84px; box-shadow: inset 0 4px 0 #b8bec7; }
.pd-3 .pd-b { height: 64px; box-shadow: inset 0 4px 0 #c08a5b; }
.rank-sec table.is-wide td.heat { background-color: color-mix(in srgb, var(--hc, var(--blue)) calc(var(--h) * 50%), var(--paper)); }
.rank-berg { --hc: var(--red); }
.rank-sprint { --hc: var(--gold); }
.rank-km { --hc: var(--blue); }
.rank-km table.is-wide td.heat { background-color: color-mix(in srgb, var(--hc) 12%, var(--paper)); }
.rank-sec td.tot, .rank-sec th.tot { font-weight: 800; font-size: 1.05em; box-shadow: inset -1px 0 0 var(--line); }
.rank-sec tr.top1 td:first-child, .rank-sec tr.top2 td:first-child, .rank-sec tr.top3 td:first-child { font-weight: 800; }
.rank-sec tr.top1 td:first-child::after, .rank-sec tr.top2 td:first-child::after, .rank-sec tr.top3 td:first-child::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.rank-sec tr.top2 td:first-child::after { background: #b8bec7; }
.rank-sec tr.top3 td:first-child::after { background: #c08a5b; }
@media (max-width: 760px) { .rank-sec > .cb:first-child { grid-template-columns: 1fr; } }

/* =====================================================================
   Pagina's, inhoud
   ===================================================================== */
.page-head { padding-block: var(--space-7) var(--space-5); margin-bottom: var(--space-5); }
.page-title { margin: 0; font-size: var(--step-5); font-weight: 860; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.92; max-width: 20ch; }
.page-body { padding-bottom: var(--space-8); }
.page-body > :first-child > :first-child { margin-top: var(--space-5); }
.t-kalender .page-body > :first-child, .t-klassement .page-body > :first-child, .t-gpx .page-body > :first-child { margin-top: 0 !important; }
.t-klassement .page-body > .d-sec:first-child > .d-row:first-child, .t-klassement .page-body > :first-child > :first-child > :first-child > :first-child { margin-top: 0; }
.d-sec { margin-block: 0 var(--space-6); }
.d-row { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin-bottom: var(--space-5); }
@media (min-width: 700px) {
  .d-row[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-row[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-row[data-cols="4"], .d-row[data-cols="5"], .d-row[data-cols="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .d-row[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .d-row[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .d-row[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.d-col, .d-grp { min-width: 0; }
.d-col > :first-child, .d-grp > :first-child { margin-top: 0; }
.page-body p, .page-body li, .prose p, .prose li { max-width: 70ch; }
.page-body h1 { font-size: var(--step-5); margin-top: var(--space-5); }
.page-body h2, .prose h2 { font-size: var(--step-3); }
.d-img img, .prose img { border-radius: var(--r-s); }
.d-img { margin: 0 0 var(--space-4); }
.prose > :first-child { margin-top: 0; }
.prose ul, .page-body ul, .prose ol, .page-body ol { padding-left: 1.25em; }
.prose li::marker, .page-body li::marker { color: var(--blue); }
.prose img.alignleft, .prose .alignleft { float: left; margin: 0.3em var(--space-5) var(--space-4) 0; max-width: 45%; }
.prose img.alignright, .prose .alignright { float: right; margin: 0.3em 0 var(--space-4) var(--space-5); max-width: 45%; }
.prose::after { content: ""; display: table; clear: both; }
hr { border: 0; height: 1px; background: var(--line); margin: var(--space-6) 0; }
blockquote { margin: var(--space-5) 0; padding-left: var(--space-5); border-left: 3px solid var(--blue); color: var(--ink-2); }
.b { font-weight: 700; }
.blurb { padding: var(--space-5); border-radius: var(--r-m); background: var(--paper-2); }
.blurb h1, .blurb h2, .blurb h3, .blurb h4 { margin: var(--space-3) 0 var(--space-1); font-size: var(--step-1); }
.blurb-img { margin: 0; }
.blurb-img img { width: 100%; max-width: 12rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.promo { padding: var(--space-5); border-radius: var(--r-m); background: var(--paper-2); margin-block: var(--space-4); }
.subnav ul { list-style: none; padding: 0; margin: var(--space-5) 0; display: grid; gap: var(--space-2); max-width: 34rem; }
.subnav a { display: flex; align-items: center; min-height: 60px; padding: 0 var(--space-5); border-radius: var(--r-m); background: var(--paper-2); color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 750; font-size: var(--step-1); }
.subnav a::after { content: ""; margin-left: auto; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: 0.5; }
.subnav a:hover { background: color-mix(in srgb, var(--blue) 12%, var(--paper)); color: var(--blue-ink); }
.d-code { overflow-wrap: anywhere; }
.d-code .cs { margin-right: 0.35em; }
.d-code .cb:has(> .cs + .cs) { display: flex; flex-wrap: wrap; gap: 0 0.6em; align-items: baseline; }
.prose, .page-body, .main-col, .ev-desc, .pc-body, .sr-item { overflow-wrap: anywhere; min-width: 0; }

/* tabellen */
.table-wrap { overflow-x: auto; margin: var(--space-4) 0 var(--space-6); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 0.95em; font-variant-numeric: tabular-nums; }
th, td { padding: 0.6em 0.8em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th, tr:first-child > th { background: var(--paper-2); font-family: var(--f-display); font-weight: 700; position: sticky; top: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
table.is-wide { width: max-content; min-width: 100%; font-size: 0.88em; }
table.is-wide th, table.is-wide td { white-space: nowrap; padding: 0.45em 0.6em; text-align: right; }
table.is-wide th:nth-child(-n+2), table.is-wide td:nth-child(-n+2) { text-align: left; position: sticky; background: var(--paper); z-index: 1; }
table.is-wide th:nth-child(1), table.is-wide td:nth-child(1) { left: 0; min-width: 2.6em; }
table.is-wide th:nth-child(2), table.is-wide td:nth-child(2) { left: 2.6em; box-shadow: 1px 0 0 var(--line); }
table.is-wide thead th, table.is-wide tr:first-child > th { background: var(--paper-2); z-index: 2; }
table.is-wide th .cs, table.is-wide th small { display: block; font-weight: 500; color: var(--muted); }
.is-wide-wrap { max-height: 80vh; overflow: auto; }

/* tabs */
.tabs { margin-block: var(--space-4) var(--space-6); }
.tablist { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.tab { flex: none; min-height: 46px; padding: 0 var(--space-4); border: 0; background: none; color: var(--muted); font-family: var(--f-display); font-size: 0.95rem; font-weight: 650; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }

/* accordeon */
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 56px; padding: var(--space-3) 0; font-family: var(--f-display); font-weight: 750; font-size: var(--step-1); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 0.55em; height: 0.55em; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc-body { padding-bottom: var(--space-5); }

/* galerij en lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 6px; margin-block: var(--space-5); }
.g-item { margin: 0; }
.g-item a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-s); background: var(--paper-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.g-item a:hover img { transform: scale(1.04); }
.g-item figcaption { font-size: 0.85rem; color: var(--muted); padding-top: var(--space-1); }
.g-more { margin-top: var(--space-4); }
.lb { position: fixed; inset: 0; z-index: 90; background: rgb(8 10 13 / 0.96); display: grid; grid-template-rows: auto 1fr auto; color: #f3f5f8; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) var(--gutter); font-variant-numeric: tabular-nums; }
.lb-fig { margin: 0; display: grid; place-items: center; padding: 0 var(--space-4); min-height: 0; }
.lb-fig img { max-height: 78vh; width: auto; border-radius: var(--r-s); background: #fff; }
.lb-nav { display: flex; justify-content: center; gap: var(--space-4); padding: var(--space-4); }
.lb .icon-btn { color: inherit; border: 1px solid rgb(255 255 255 / 0.3); }
.lb .icon-btn svg { width: 20px; }
.video { margin-block: var(--space-5); }
.video video, .video iframe { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-m); background: #000; }

/* =====================================================================
   Nieuws en berichten
   ===================================================================== */
.postlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--space-7) var(--space-5); }
.pc { display: flex; flex-direction: column; gap: var(--space-3); }
.pc-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-m); background: var(--paper-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.pc:hover .pc-img img { transform: scale(1.03); }
.pc-title { margin: 0 0 var(--space-2); font-size: var(--step-1); font-weight: 760; font-stretch: 108%; line-height: 1.15; }
.pc-title a { color: var(--ink); text-decoration: none; }
.pc-title a:hover { color: var(--blue-ink); text-decoration: underline; }
.pc-meta { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 var(--space-2); margin-bottom: var(--space-2); }
.pc-meta time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.pc-cats a { color: var(--muted); }
.pc-ex { color: var(--ink-2); font-size: 0.97em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
@media (min-width: 900px) {
  .postlist-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .postlist-feature > .pc:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
  .postlist-feature > .pc:first-child .pc-title { font-size: var(--step-4); font-stretch: 120%; letter-spacing: -0.02em; line-height: 1; }
  .postlist-feature > .pc:first-child .pc-ex { -webkit-line-clamp: 5; font-size: var(--step-0); }
}
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-block: var(--space-7); }
.pager-pos { color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--f-display); font-weight: 650; }
.empty { color: var(--muted); padding: var(--space-6) 0; }
.list-tools { display: grid; gap: var(--space-5); margin-bottom: var(--space-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .list-tools { grid-template-columns: minmax(0, 24rem) 1fr; align-items: end; } }
.cat-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cat-chips a { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; padding: 0 0.95em; border-radius: 999px; background: var(--paper-2); color: var(--ink); text-decoration: none; font-family: var(--f-display); font-size: 0.9rem; font-weight: 650; }
.cat-chips a:hover { background: var(--ink); color: var(--paper); }
.cat-chips .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-chips a:hover .n { color: inherit; opacity: 0.7; }

.post-head { padding-block: var(--space-7) var(--space-5); }
.crumbs { margin: 0 0 var(--space-3); font-family: var(--f-display); font-size: 0.9rem; font-weight: 650; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::before { content: ""; display: inline-block; width: 0.45em; height: 0.45em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 0.45em; vertical-align: 0.1em; }
.crumbs a:hover { color: var(--ink); }
.post-title { margin: 0; font-size: var(--step-5); font-weight: 860; font-stretch: 122%; letter-spacing: -0.03em; line-height: 0.95; }
.post-meta { color: var(--muted); font-size: 0.92rem; margin: var(--space-4) 0 0; }
.post-meta time { color: var(--ink-2); font-weight: 700; }
.post-hero { margin: 0 0 var(--space-6); }
.post-hero img { width: 100%; border-radius: var(--r-l); }
.prose { font-size: var(--step-0); line-height: 1.7; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-block: var(--space-7) var(--space-8); }
.pn { display: block; padding: var(--space-4) var(--space-5); border-radius: var(--r-m); background: var(--paper-2); color: var(--ink); text-decoration: none; }
.pn:hover { background: color-mix(in srgb, var(--blue) 10%, var(--paper)); }
.pn-new { text-align: right; }
.pn-k { display: block; font-size: 0.85rem; color: var(--muted); }
.pn-t { font-family: var(--f-display); font-weight: 750; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .pn-new { text-align: left; } }

/* ritten (events) */
.ev-head { padding-block: var(--space-6) var(--space-4); }
.ev-top { display: flex; align-items: center; gap: var(--space-5); }
.ev-top .bib { flex: none; }
.ev-date { margin: var(--space-3) 0 0; font-family: var(--f-display); font-weight: 650; color: var(--ink-2); }
.ev-route { display: grid; grid-template-columns: 10rem minmax(0, 1fr); grid-template-areas: "g p" "g a"; gap: var(--space-3) var(--space-5); align-items: center; padding: var(--space-4); border-radius: var(--r-l); background: var(--paper-2); margin-bottom: var(--space-6); --glyph-bg: var(--paper-2); }
.ev-glyph { grid-area: g; --gw: 3px; aspect-ratio: 1; }
.ev-prof { grid-area: p; align-self: end; }
.ev-route-a { grid-area: a; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.event[data-group] .ev-route:not(:has(.ev-glyph)) { grid-template-columns: 1fr; grid-template-areas: "a"; }
@media (max-width: 560px) { .ev-route { grid-template-columns: 6rem minmax(0, 1fr); grid-template-areas: "g p" "a a"; } }
.with-aside { display: grid; gap: var(--space-7); grid-template-columns: 1fr; padding-bottom: var(--space-8); }
@media (min-width: 900px) { .with-aside { grid-template-columns: minmax(0, 1fr) 17rem; } }
.ev-desc { font-size: var(--step-1); }
.post-route { margin: 0 0 var(--space-6); }
.widget-title { font-size: var(--step-1); margin: 0 0 var(--space-3); }

/* formulieren */
select, input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  width: 100%; min-height: 46px; padding: 0.55em 0.8em; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, var(--paper)); border-radius: var(--r-s);
}
textarea { resize: vertical; min-height: 9rem; }
select:hover, input:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.ev-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-4); align-items: end; margin-bottom: var(--space-4); }
.ev-filter .grow { grid-column: span 2; }
@media (max-width: 560px) { .ev-filter .grow { grid-column: auto; } }
.views { display: flex; gap: var(--space-1); flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.ev-list { list-style: none; padding: 0; margin: 0; }
.ev-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.ev-day { font-variant-numeric: tabular-nums; line-height: 1.1; }
.ev-day b { display: block; font-family: var(--f-display); font-size: var(--step-3); font-weight: 850; font-stretch: 125%; }
.ev-day span { font-size: 0.85rem; color: var(--muted); }
.ev-row h3 { margin: 0 0 var(--space-1); font-size: var(--step-1); }
.ev-row h3 a { color: var(--ink); }
.ev-row p { margin: 0; color: var(--ink-2); font-size: 0.95em; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { min-height: 5.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--space-1) var(--space-2); font-size: 0.85rem; min-width: 0; }
.cal .dow { min-height: 0; font-weight: 700; background: var(--paper-2); }
.cal .out { background: var(--paper-2); color: var(--muted); }
.cal .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.cal a { display: block; margin-top: 2px; padding: 2px 4px; border-radius: 3px; background: color-mix(in srgb, var(--blue) 14%, var(--paper)); color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .cal > div { min-height: 3.5rem; } .cal a { font-size: 0; height: 8px; padding: 0; } }
.yr { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--space-4); }
.yr section { border-top: 2px solid var(--ink); padding-top: var(--space-2); }
.yr h3 { margin: 0 0 var(--space-2); font-size: var(--step-1); }
.yr ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.yr li { padding: 2px 0; }
.search-out, .ev-out { min-height: 70vh; }

.cform { display: grid; gap: var(--space-4); max-width: 40rem; margin-block: var(--space-5); }
.cform h2 { margin: 0; }
.field label { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.field-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.field-err { color: var(--red); font-size: 0.9rem; margin: var(--space-1) 0 0; font-weight: 700; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 0.15em; flex: none; accent-color: var(--blue); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-status { margin: 0; font-weight: 700; }
.form-status[data-state="ok"] { color: #12804a; }
.form-status[data-state="error"] { color: var(--red); }
.cform[data-state="busy"] .btn-solid::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.comments { margin-block: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.comments h2 { margin-top: 0; font-size: var(--step-2); }
.search-form label { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.sf-row { display: flex; gap: var(--space-2); }
.sf-row input { flex: 1; }
.search-form.big input { font-size: var(--step-1); }
.sr-count { color: var(--muted); }
.sr-item { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.sr-item h2 { margin: 0 0 var(--space-1); font-size: var(--step-1); }
.sr-item p { margin: 0; color: var(--ink-2); }
.sr-k { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
mark { background: color-mix(in srgb, var(--gold) 55%, transparent); color: inherit; padding: 0 0.1em; border-radius: 2px; }

/* 404 */
.e404 { padding-block: var(--space-8); max-width: 44rem; }
.e404-art { width: 100%; max-width: 30rem; height: auto; margin-bottom: var(--space-5); }
.e404-road { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; }
.e404-end { fill: var(--red); }
.e404-gap { stroke: var(--line); stroke-width: 5; stroke-dasharray: 6 12; stroke-linecap: round; }
.e404 .lead { font-size: var(--step-1); color: var(--ink-2); }
.e404-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }

/* voet */
.site-foot { background: var(--asphalt); color: var(--on-dark); }
.foot-in { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: var(--space-7); display: grid; gap: var(--space-5); grid-template-columns: auto 1fr; align-items: start; }
.foot-logo { height: 5rem; width: auto; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.foot-links a { color: var(--on-dark); display: inline-flex; min-height: 44px; align-items: center; font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.copy { grid-column: 1 / -1; margin: 0; color: var(--on-dark-2); font-size: 0.85rem; }
.to-top { position: fixed; right: var(--space-4); bottom: calc(var(--tab-h) + var(--space-4)); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); z-index: 30; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* oud profiel (ritten zonder kaart) */
.profile { display: block; width: 100%; height: 56px; overflow: visible; }
.profile-wrap { position: relative; display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
@media print {
  .site-head, .site-foot, .to-top, .comments, .post-nav, .tabbar, .sheet, .months, .at-tools { display: none !important; }
  body { padding: 0; }
  .js .at-detail { display: block !important; }
}

/* smalle schermen: de breedte-as van Archivo vangt lange woorden op */
@media (max-width: 560px) {
  .hero-title, .kal-title, .at-h1, .rank-title, .page-title, .post-title, .sec-title, h1 { font-stretch: 100%; overflow-wrap: break-word; hyphens: auto; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .kal-title, .at-h1, .rank-title, .page-title, .post-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .r-date { font-stretch: 112%; }
  .stats dd { font-size: var(--step-3); }
}

/* =====================================================================
   Clubinfo en klassementen
   ===================================================================== */
.sec-band { background: var(--asphalt); color: var(--on-dark); margin-inline: calc(50% - 50vw); --hole: var(--asphalt); }
.page > .sec-band { margin-inline: 0; }
.sec-band-in { padding-block: var(--space-6) var(--space-7); }
.band-title { margin: 0; color: #fff; font-size: var(--step-5); font-weight: 860; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.92; max-width: 22ch; }
.sec-band .seg { margin-bottom: var(--space-5); }
.page-body:has(> .d-sec):not(:has(.kal-head, .rank-head)) { padding-top: var(--space-6); }

/* lange documenten */
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.doc-aside { position: sticky; top: calc(var(--head-h) + var(--space-5)); }
.toc-t { margin: 0 0 var(--space-2); font-family: var(--f-display); font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0 !important; border-left: 2px solid var(--line); }
.toc li { max-width: none; }
.toc li::marker { content: none; }
.toc a { display: block; padding: 0.4em 0 0.4em var(--space-4); margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 0.92rem; line-height: 1.35; }
.toc a:hover { color: var(--blue-ink); border-left-color: var(--blue); }
.doc-body { min-width: 0; max-width: 46rem; }
.doc-title { margin: 0 0 var(--space-5); font-size: var(--step-3); font-weight: 820; font-stretch: 112%; line-height: 1.1; }
.doc-body > p { font-size: var(--step-1); color: var(--ink-2); }
.chap { padding-block: var(--space-6); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 1rem); }
.chap h2, .chap h3:first-child { margin-top: 0; scroll-margin-top: calc(var(--head-h) + 1rem); }
.chap h2 { font-size: var(--step-2); }
.chap h3:first-child { font-size: var(--step-2); font-weight: 780; }
.chap h3 { font-size: var(--step-1); margin-top: var(--space-5); }
.chap ul, .chap ol { padding-left: 1.2em; }
.chap li { margin-bottom: 0.35em; }
.chap blockquote { background: var(--paper-2); border-left: 0; border-radius: var(--r-m); padding: var(--space-4) var(--space-5); color: var(--ink); }
.chap blockquote p { margin: 0; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-aside { position: static; } .toc ol { columns: 2; column-gap: var(--space-5); } }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* reglement: tabs als segmentkeuze */
.p-reglement .tablist { border: 0; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; display: inline-flex; max-width: 100%; margin-bottom: var(--space-6); }
.p-reglement .tab { border: 0; border-radius: 999px; min-height: 44px; margin: 0; }
.p-reglement .tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* geschiedenis: tijdlijn */
.timeline { position: relative; max-width: 52rem; }
.era { position: relative; display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-5); border-top: 1px solid var(--line); }
.era > h3 { margin: 0; font-size: var(--step-1); font-weight: 850; font-stretch: 100%; letter-spacing: -0.02em; line-height: 1; color: var(--ink); position: sticky; top: calc(var(--head-h) + var(--space-4)); align-self: start; }
.era > ul { list-style: none; margin: 0; padding: 0 0 0 var(--space-5) !important; border-left: 3px solid var(--route); }
.era > ul > li { position: relative; margin: 0 0 var(--space-4); max-width: 62ch; }
.era > ul > li::before { content: ""; position: absolute; left: calc(-1 * var(--space-5) - 8px); top: 0.45em; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--route); }
.era ul ul { margin-top: var(--space-2); padding-left: 1.1em !important; }
.era .yr { display: inline-block; font-family: var(--f-display); font-weight: 850; font-stretch: 118%; font-size: 1.05em; margin-right: 0.15em; }
@media (max-width: 760px) { .era { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } .era > h3 { position: static; } }

/* bestuur */
.people .d-row { gap: var(--space-4); }
.person { display: grid; gap: 2px; }
.person .d-img { margin: 0 0 var(--space-3); border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.person .d-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s; }
.person:hover .d-img img { transform: scale(1.03); }
.person .p-name, .person h6.p-name { margin: 0; font-family: var(--f-display); font-size: var(--step-1); font-weight: 780; font-stretch: 108%; line-height: 1.15; }
.person .p-role { margin: 0; color: var(--muted); font-size: 0.95rem; }
.people:first-of-type .person .p-name { font-size: var(--step-2); }
.contact-card { margin-top: var(--space-7); padding: var(--space-6); border-radius: var(--r-l); background: var(--paper-2); }
.contact-card h3 { margin: 0; font-size: var(--step-3); font-weight: 830; font-stretch: 118%; }
.contact-card .cform { margin: 0; }

/* eindklassement 2025 */
.p-klassement-2025 .page-body > .d-sec .cb > p:first-child { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-3); margin-block: var(--space-6); }
.winner { position: relative; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5); border-radius: var(--r-l); background: var(--paper-2); overflow: hidden; }
.winner:first-child { background: var(--asphalt); color: var(--on-dark); grid-column: 1 / -1; }
.winner:first-child h2 { color: #fff; font-size: var(--step-4); }
.winner:first-child p { color: var(--on-dark-2); }
.w-ico { font-size: 2rem; line-height: 1; margin-bottom: var(--space-2); }
.w-k { font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.winner:first-child .w-k { color: var(--gold); }
.winner h2 { margin: 0; font-size: var(--step-2); font-weight: 820; font-stretch: 115%; line-height: 1.05; }
.w-v { font-family: var(--f-display); font-size: var(--step-2); font-weight: 850; font-stretch: 120%; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.winner p { margin: var(--space-2) 0 0; font-size: 0.95rem; color: var(--ink-2); }
.top5s { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--space-4); margin-block: var(--space-6); }
.top5 { padding: var(--space-5); border-radius: var(--r-l); border: 1px solid var(--line); }
.t5-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.t5-h h3 { margin: 0; font-size: var(--step-1); }
.t5-h .hl { font-family: var(--f-display); font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.t5-r { display: flex; justify-content: space-between; gap: var(--space-3); padding: 0.55em 0; border-top: 1px solid var(--line); }
.t5-r:first-child { border-top: 0; }
.t5-r:first-child .t5-n strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.t5-n strong { font-weight: 650; }
.t5-v { font-family: var(--f-display); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* kampioenen: palmares */
.years { position: sticky; top: var(--head-h); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin: 0 calc(50% - 50vw) var(--space-5); padding-inline: max(var(--gutter), calc(50vw - var(--wrap) / 2)); }
.years ul { list-style: none; margin: 0; padding: 0 !important; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.years li { flex: none; max-width: none; }
.years a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.8em; color: var(--muted); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; position: relative; white-space: nowrap; }
.years a:hover, .years a[aria-current="true"] { color: var(--ink); }
.years a[aria-current="true"]::after { content: ""; position: absolute; left: 0.8em; right: 0.8em; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); }
.pal-y { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-5); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 4rem); }
.pal-l { margin: 0; font-size: var(--step-3); font-weight: 860; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pal-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: var(--space-3); }
.pal-c { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-radius: var(--r-m); background: var(--paper-2); }
.pal-c::before { content: ""; grid-row: 1 / 3; width: 40px; height: 38px; background: var(--jersey, var(--line)); -webkit-mask: var(--ico-jersey) center / contain no-repeat; mask: var(--ico-jersey) center / contain no-repeat; }
.pal-c.is-club { --jersey: linear-gradient(90deg, var(--blue), var(--red)); }
.pal-c.is-sprint { --jersey: var(--gold); }
.pal-c.is-berg { --jersey: radial-gradient(circle, var(--red) 0 2.4px, #fff 2.8px) 0 0 / 8px 8px; }
.pal-c.is-name { grid-template-columns: minmax(0, 1fr); }
.pal-more { grid-column: 1 / -1; padding: var(--space-4) var(--space-5); border-radius: var(--r-m); border: 1px solid var(--line); }
.pal-more h3 { font-size: var(--step-0); margin: var(--space-3) 0 var(--space-1); }
.pal-more .blurb, .pal-more .d-row { display: block; padding: 0; background: none; }
.pal-c.is-name::before { content: none; }
.pal-k { margin: 0; font-family: var(--f-display); font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.pal-c p { margin: 0; font-family: var(--f-display); font-weight: 760; font-size: 1.05rem; line-height: 1.2; }
:root { --ico-jersey: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 60'%3E%3Cpath d='M20 4 L8 10 L2 24 L11 28 L14 22 L14 56 L50 56 L50 22 L53 28 L62 24 L56 10 L44 4 C41 9 36 11 32 11 S23 9 20 4Z'/%3E%3C/svg%3E"); }
@media (max-width: 700px) { .pal-y { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } }

/* hall of fame */
.hof-title { font-size: var(--step-3); margin: 0 0 var(--space-3); max-width: 30ch; }
.p-test .d-col > p:first-of-type { font-size: var(--step-1); color: var(--ink-2); }
.hof-card { padding: var(--space-5) var(--space-6); border-radius: var(--r-l); background: var(--paper-2); margin-block: var(--space-4); }
.hof-h { margin: 0 0 var(--space-3); font-size: var(--step-2); }
.hof { list-style: none; margin: 0; padding: 0 !important; }
.hof li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; grid-template-areas: "m n x" "m y x"; column-gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line); max-width: none; }
.hof li:first-child { border-top: 0; }
.hof-m { grid-area: m; font-size: 1.4rem; }
.hof-n { grid-area: n; font-family: var(--f-display); font-size: var(--step-1); font-weight: 780; }
.hof-y { grid-area: y; color: var(--muted); font-size: 0.92rem; }
.hof-x { grid-area: x; font-family: var(--f-display); font-size: var(--step-3); font-weight: 860; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.hof-more { color: var(--ink-2); font-size: 0.95rem; margin: var(--space-3) 0 0; }
.crowns { list-style: none; margin: 0; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--space-2); }
.crowns li { max-width: none; padding: var(--space-3) var(--space-4); border-radius: var(--r-m); background: var(--paper); }
.crowns strong { display: block; font-family: var(--f-display); font-size: var(--step-2); font-weight: 860; font-stretch: 120%; color: var(--gold); line-height: 1; -webkit-text-stroke: 0.5px #9a6f00; }

/* tijdrit */
.record { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "k k" "t n" "t y"; column-gap: var(--space-5); align-items: end; padding: var(--space-6); border-radius: var(--r-l); background: var(--asphalt); color: var(--on-dark); margin-block: var(--space-6) var(--space-5); }
.rec-k { grid-area: k; font-family: var(--f-display); font-weight: 700; color: var(--gold); margin-bottom: var(--space-2); }
.rec-t { grid-area: t; font-family: var(--f-display); font-size: var(--step-6); font-weight: 860; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.85; color: #fff; }
.rec-n { grid-area: n; font-family: var(--f-display); font-size: var(--step-2); font-weight: 780; }
.rec-y { grid-area: y; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.tt-wrap { box-shadow: none; border-radius: 0; overflow: visible; }
table.tt { font-size: 1rem; }
table.tt td { padding: 0.65em 0.6em; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tt tr.tt-h td { border-bottom: 2px solid var(--ink); }
table.tt tr.tt-h h4, table.tt tr.tt-h h5 { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
table.tt td:first-child { width: 4rem; font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; }
table.tt td:nth-child(3) { font-family: var(--f-display); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tt td:nth-child(4) { color: var(--muted); font-variant-numeric: tabular-nums; width: 5rem; }
table.tt tr.tt-rec td { background: color-mix(in srgb, var(--gold) 16%, var(--paper)); }
table.tt .hl { color: inherit; }
.p-tijdrit .acc { border: 0; background: var(--paper-2); border-radius: var(--r-l); padding: 0 var(--space-5); }
.p-tijdrit .acc-body p { max-width: 70ch; }
.p-tijdrit .tablist { border: 0; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; display: inline-flex; max-width: 100%; }
.p-tijdrit .tab { border: 0; border-radius: 999px; margin: 0; }
.p-tijdrit .tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* groepen */
.p-groepen .d-row[data-cols="4"] { gap: var(--space-4); }
.group-card { display: flex; flex-direction: column; gap: var(--space-2); height: 100%; padding: var(--space-5); border-radius: var(--r-l); background: var(--paper-2); }
.group-card .d-img { margin: 0 0 var(--space-3); width: 5rem; }
.group-card .d-img img { border-radius: 50%; }
.group-card h4, .group-card h5 { margin: 0 0 var(--space-2); font-size: var(--step-2); font-weight: 830; font-stretch: 118%; }
.group-card p { font-size: 0.97rem; margin-bottom: 0.7em; }
.group-card ul { margin: 0 0 var(--space-3); }
.group-card li p { margin: 0; }
.group-card > .btn { margin-top: auto; align-self: flex-start; }

/* klassement: stand zoals een koersuitslag */
.stand { margin-block: var(--space-5); }
.stand-h, .sr summary { display: grid; grid-template-columns: 3rem minmax(10rem, 15rem) minmax(0, 1fr) 7rem 5rem; gap: var(--space-4); align-items: center; }
.stand-h { padding: 0 var(--space-3) var(--space-2); border-bottom: 2px solid var(--ink); font-family: var(--f-display); font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.stand-h span:nth-child(n+4) { text-align: right; }
.stand-l { list-style: none; margin: 0; padding: 0 !important; }
.sr { max-width: none !important; border-bottom: 1px solid var(--line); }
.sr summary { list-style: none; cursor: pointer; padding: var(--space-3); border-radius: var(--r-s); }
.sr summary::-webkit-details-marker { display: none; }
.sr summary:hover { background: var(--paper-2); }
.sr[open] summary, .sr details[open] summary { background: var(--paper-2); }
.sr-pos { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 8px; font-family: var(--f-display); font-weight: 850; font-variant-numeric: tabular-nums; background: var(--paper-2); }
.top1 .sr-pos { background: var(--gold); color: #1b1f26; }
.top2 .sr-pos { background: #c9ced6; color: #1b1f26; }
.top3 .sr-pos { background: #d7a77c; color: #1b1f26; }
.sr-name { font-family: var(--f-display); font-weight: 750; font-size: 1.05rem; line-height: 1.2; }
.top1 .sr-name { font-size: 1.2rem; }
.sr-strip { display: flex; align-items: flex-end; gap: 2px; height: 28px; min-width: 0; }
.sr-strip i { flex: 1 1 0; min-width: 2px; height: calc(4px + var(--v) * 24px); border-radius: 2px; background: var(--hc, var(--blue)); opacity: 0.75; }
.sr-strip i.e { height: 3px; background: var(--line); opacity: 1; }
.sr-tot { text-align: right; font-family: var(--f-display); font-size: var(--step-1); font-weight: 850; font-stretch: 112%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-tot small { font-size: 0.6em; font-weight: 600; color: var(--muted); }
.sr-gap { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.92rem; }
.sr-more { padding: var(--space-3) var(--space-3) var(--space-5) calc(3rem + var(--space-4) + var(--space-3)); }
.sr-n { margin: 0 0 var(--space-2); font-size: 0.85rem; color: var(--muted); }
.sr-cells { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 4px; }
.sr-cells div { padding: 0.4em 0.6em; border-radius: 6px; background: var(--paper-2); }
.sr-cells div.e { opacity: 0.45; }
.sr-cells dt { font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.sr-cells dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.sr-cells div.e dd::before { content: "·"; }
.sr-berg dt::before { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-right: 0.3em; vertical-align: -0.1em; background: var(--red); -webkit-mask: var(--ico-climb) center / contain no-repeat; mask: var(--ico-climb) center / contain no-repeat; }
.rank-full { margin-top: var(--space-5); }
.rank-full > summary { cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 1em; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--f-display); font-weight: 650; list-style: none; }
.rank-full > summary::-webkit-details-marker { display: none; }
.rank-full > summary:hover { border-color: var(--ink); }
.rank-full[open] > summary { margin-bottom: var(--space-3); }
@media (max-width: 760px) {
  .stand-h { display: none; }
  .sr summary { grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: "p n t" "p s g"; row-gap: 4px; column-gap: var(--space-3); }
  .sr-pos { grid-area: p; } .sr-name { grid-area: n; } .sr-tot { grid-area: t; } .sr-strip { grid-area: s; height: 18px; } .sr-gap { grid-area: g; font-size: 0.82rem; }
  .sr-more { padding-left: var(--space-3); }
}
.js .rank-sec:not(.is-on) { display: none; }
.rank-nav a[aria-current="true"] { background: #fff; color: #1b1f26; }
.rank-head .seg { margin-bottom: var(--space-5); }

/* =====================================================================
   Verfijning uit de clubsong "Nobody Rides Alone": nacht, goud, trui
   ===================================================================== */
.site-head, .site-foot { background: var(--asphalt); }
.kal-head, .at-head, .rank-head, .sec-band, .hero, .club, .winner:first-child, .record {
  background: radial-gradient(120% 140% at 75% -10%, var(--night-glow) 0%, var(--asphalt) 55%, #08111f 100%);
}
.club { background: var(--asphalt); }
/* routelijn op de nacht: goud met gloed, zoals de rit in de clip */
.kal-head .rb-t { --route: var(--gold) !important; }
.kal-head .rb-t.is-mount { --route: #ff8aa2 !important; }
.rb-t:hover, .rb-t:focus-visible { --route: var(--asphalt) !important; background: var(--gold); }
.at-art { color: var(--gold); }
.at-art use { stroke-opacity: 0.2; }
.glow .g-line, .hero-glyph .g-line { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold) 70%, transparent)); }
/* home: de rit vertrekt in de nacht */
.hero { color: var(--on-dark); --glyph-bg: transparent; --route: var(--gold); }
.hero-title { color: #fff; }
.hero-tag { color: var(--sky); }
.lastride { border-top-color: var(--gold); color: var(--on-dark); }
.lastride:hover .lr-title { color: var(--gold); }
.lr-facts dt { color: var(--on-dark-2); }
.lr-facts dd { color: #fff; }
.lr-path { color: var(--on-dark-2); }
.hero .lint .sep { background: var(--gold); }
.hero .lint .climb { background: color-mix(in srgb, var(--pink) 22%, transparent); color: #ffb3c4; }
.hero .g-casing { stroke: none; }
.hero-prof .p-area { fill: color-mix(in srgb, var(--gold) 16%, transparent); }
.hero-prof .p-line { stroke: var(--gold); }
.hero-g { position: relative; }
.hero-dot { position: absolute; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: #fff7d6; box-shadow: 0 0 18px 6px color-mix(in srgb, var(--gold) 70%, transparent); left: var(--end-x, 50%); top: var(--end-y, 6%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .hero-dot { animation: dot 0.6s ease-out 2.5s forwards; } @keyframes dot { to { opacity: 1; } } }
@media (prefers-reduced-motion: reduce) { .hero-dot { opacity: 1; } }
/* grote cijfers met een gouden streep (zoals 1971 OPGERICHT) */
.stats div, .lr-facts div { position: relative; padding-top: 10px; }
.stats div::before, .lr-facts div::before { content: ""; position: absolute; left: 0; top: 0; width: 2.2rem; height: 3px; border-radius: 2px; background: var(--gold); }
/* ploegkleuren: A roze, B blauw, B2 hemelsblauw, C goud */
.team { border-top: 6px solid var(--team, var(--line)); }
.team[data-team="a"] { --team: var(--g-a); } .team[data-team="b"] { --team: var(--g-b); } .team[data-team="b2"] { --team: var(--g-b2); } .team[data-team="c"] { --team: var(--g-c); }
.team .bib { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), inset 0 -5px 0 var(--team); }
.team:hover .team-art, .team:focus-within .team-art { color: var(--team); }
.event[data-group="a"] .ev-top .bib { box-shadow: inset 0 -5px 0 var(--g-a), 0 0 0 1px rgb(0 0 0 / 0.08); }
.event[data-group="b"] .ev-top .bib { box-shadow: inset 0 -5px 0 var(--g-b), 0 0 0 1px rgb(0 0 0 / 0.08); }
.event[data-group="c"] .ev-top .bib { box-shadow: inset 0 -5px 0 var(--g-c), 0 0 0 1px rgb(0 0 0 / 0.08); }
/* finishlijn-dambord als scheiding onder donkere banden */
.kal-head::after, .at-head::after, .sec-band::after, .rank-head::after { content: ""; display: block; height: 8px; background: repeating-conic-gradient(#fff 0 25%, #0c1a30 0 50%) 0 0 / 8px 8px; opacity: 0.9; }
.at-head { padding-bottom: 0; }
.sec-band, .kal-head, .rank-head { position: relative; }
.t-klassement .rank-head { margin-top: 0 !important; padding-bottom: 0; }
.rank-head > :last-child { margin-bottom: var(--space-6); }
