/*
 * OnboardCamera.tv publieke site: de eigen CSS van de site (na kit.css).
 * Overgenomen uit het goedgekeurde concept v2 (site.css), aangevuld met wat de echte site nodig heeft
 * (fonts, standaardbeeld zonder autofoto, iframe-speler, /live-pagina, contact, foutpagina's): zie het
 * deel "echte site" onderaan. Geen inline styles in de templates (CSP style-src 'self'): posities en
 * varianten staan hier als klasse.
 */

/* ---------------------------------------------------------------- fonts (lokaal, OFL; assets/fonts) */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/host-grotesk/host-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- palet (huisstijl: bijna zwart, logo-rood) */
:root {
  --p-bg: #0e1216; --p-surface: #171c22; --p-ink: #f1f3f5; --p-muted: #9aa3af;
  --p-accent: #e52421; --p-accent-ink: #ffffff; --p-action: #e52421; --p-action-ink: #ffffff;
  --p-inv-bg: #f1f3f5; --p-inv-surface: #dfe1e3; --p-inv-ink: #0e1216; --p-inv-muted: #5a5d61;
  --p-inv-accent: #e52421; --p-inv-accent-ink: #ffffff; --p-inv-action: #e52421; --p-inv-action-ink: #ffffff;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}
/* hoekradius: één schaal voor de hele site, veel kleiner dan "soft" uit de kit (8/12/20): foto's, kaarten, panelen en de
   speler hooguit 6 px. Knoppen houden hun eigen 2 px (data-buttons="block"). */
html[data-radius="soft"] { --r-sm: 3px; --r-md: 4px; --r-lg: 6px; }
[hidden] { display: none !important; }

.nav__logo img { height: 46px; width: auto; display: block; }   /* logo-mark.svg: zonder tagline, dus grotere letters */
@media (max-width: 639px) { .nav__logo img { height: 40px; } }

/* ---------------------------------------------------------------- small parts */
.carno { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s-3); border-radius: var(--r-sm); background: var(--p-ink); color: var(--p-bg); font: 500 14px/1 var(--font-mono); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot--live { background: var(--p-accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--p-accent) 60%, transparent); animation: live-pulse 2s ease-out infinite; }
.dot--ok { background: #3fb58a; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--p-accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--p-accent) 0%, transparent); }
}
.badge-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--r-sm); background: var(--p-accent); color: #fff; font: 600 12px/1 var(--font-mono); letter-spacing: .06em; }
.badge-live .dot { background: #fff; width: 6px; height: 6px; }
.mono { font-family: var(--font-mono); }

/* the nav's live signal: only there while a car is live */
.nav-live { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--btn-h); padding: 0 var(--s-3); border-radius: var(--r-md); color: var(--ink); font: 500 15px/1 var(--font-text); white-space: nowrap; }
.nav-live:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.nav-live[hidden] { display: none; }
.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
/* Instagram: een icoon in de balk (44px tikvlak), in het mobiele menu een tekstlink met icoon onder de knop */
.nav-social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); color: var(--ink); }
.nav-social:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.nav-social__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1023px) {
  .nav.is-open .nav__actions .nav-social { display: inline-flex; order: 2; width: auto; gap: var(--s-2); justify-self: center; padding-inline: var(--s-3); font-size: var(--t-body); }
  .nav.is-open .nav-social__word { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (max-width: 1023px) { .nav-live { padding: 0 var(--s-2); font-size: 14px; } }
@media (max-width: 639px) { .nav-live .nav-live__word { display: none; } }

/* "Watch live" carries live emphasis only while something is live */
[data-live-cta] .dot { margin-right: var(--s-2); }
html:not(.is-live) [data-live-cta] .dot { display: none; }
html:not(.is-live) [data-live-cta].btn--primary { background: transparent; color: var(--ink); border-color: var(--line-strong); }

/* ---------------------------------------------------------------- hero: the onboard film with the words on it */
.hero--film .hero__media { min-height: 560px; }
.hero--film .hero__media > video, .hero--film .hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--film .hero__media > video { opacity: 0; transition: opacity .8s ease; }
.hero--film .hero__media.is-playing > video { opacity: 1; }
.hero--film .hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgb(8 10 12 / .88) 0%, rgb(8 10 12 / .55) 38%, rgb(8 10 12 / 0) 70%),
              linear-gradient(to right, rgb(8 10 12 / .55) 0%, rgb(8 10 12 / 0) 60%); }
.hero--film .hero__over > :first-child { background: none; color: #fff; padding: 0; max-width: 640px;
  --ink: #fff; --muted: rgb(255 255 255 / .78); --bg: transparent; --line-strong: rgb(255 255 255 / .45); --action: var(--p-accent); --action-ink: #fff; }
.hero--film .hero__over .hero__lead { color: rgb(255 255 255 / .86); }
.hero--film .hero__over h1 { color: #fff; max-width: 14ch; }
.hero-ctl { display: inline-flex; align-items: center; gap: var(--s-3); color: #fff; font: 500 14px/1.3 var(--font-text); text-align: right; }
.hero-ctl small { display: block; color: rgb(255 255 255 / .7); font-weight: 400; }
.hero-ctl button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); background: rgb(8 10 12 / .4); color: #fff; cursor: pointer; flex: none; }
.hero-ctl button:hover { background: rgb(8 10 12 / .7); }
.hero-ctl button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-ctl svg { width: 16px; height: 16px; }
@media (max-width: 1023px) { .hero-ctl { order: 2; justify-self: start; text-align: left; } }
@media (max-width: 639px) { .hero--film .hero__media { min-height: 0; } .hero-ctl small { display: none; } }

.hero-live { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-5); padding: 8px 12px; border-radius: 999px; background: rgb(8 10 12 / .6); border: 1px solid rgb(255 255 255 / .18); color: #fff; font: 500 14px/1 var(--font-text); text-decoration: none; }
.hero-live[hidden] { display: none; }
.hero-live .dot--live { background: var(--p-accent); }

/* ---------------------------------------------------------------- the live section */
.live-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-bottom: var(--s-6); }
.live-status { display: flex; align-items: center; gap: var(--s-3); font: 500 var(--t-lead)/1.3 var(--font-text); margin: 0; }
.live-conn { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--t-small); }
.live-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--gutter, 24px); }
.live-empty { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-8); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.live-empty[hidden] { display: none; }
.live-empty p { margin: 0; max-width: 46ch; }

.lcard { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--card, var(--surface)); border: 1px solid var(--line); overflow: hidden; transform-origin: 50% 50%; }
.lcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 1px solid var(--p-accent); opacity: 0; animation: card-pulse 3.2s ease-in-out infinite; }
@keyframes card-pulse { 0%, 100% { opacity: 0; } 50% { opacity: .55; } }
.lcard__media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(8 10 12 / .7), rgb(8 10 12 / 0) 55%); }
.lcard__top { pointer-events: none;  position: absolute; z-index: 1; top: var(--s-3); left: var(--s-3); right: var(--s-3); display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.lcard__viewers { color: #fff; font: 500 13px/1 var(--font-mono); background: rgb(8 10 12 / .55); padding: 6px 8px; border-radius: var(--r-sm); }
.lcard__play { position: absolute; z-index: 1; inset: 0; display: flex; align-items: flex-end; gap: var(--s-3); padding: var(--s-4); color: #fff; font: 500 15px/1.2 var(--font-text); text-decoration: none; }
.lcard__play > span:last-child { padding-bottom: 14px; }
.lcard__play .disc { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #111; transition: transform var(--dur, .2s) var(--ease, ease); }
.lcard__play svg { width: 16px; height: 16px; margin-left: 2px; }
.lcard__play:hover .disc { transform: scale(1.06); }
.lcard__media:has(.lcard__play:focus-visible) { outline: 2px solid var(--p-accent); outline-offset: -2px; }
.lcard__body { display: grid; gap: var(--s-3); padding: var(--s-5); align-content: start; }
.lcard__body h3 { margin: 0; font-size: var(--t-card, 20px); }
.lcard__body dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-4); margin: 0; font-size: var(--t-small); }
.lcard__body dt { color: var(--muted); }
.lcard__body dd { margin: 0; }
.lcard__event { color: var(--muted); font-size: var(--t-small); margin: 0; display: flex; align-items: center; gap: var(--s-2); }

.to-top { position: fixed; z-index: 59; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in oklab, var(--p-bg) 85%, transparent); color: var(--p-ink); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease; backdrop-filter: blur(6px); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
/* hover: de knop kleurt rood en de pijl schuift iets omhoog; indrukken: de knop geeft even mee */
@media (hover: hover) {
  .to-top.is-shown:hover { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
  .to-top.is-shown:hover svg { transform: translateY(-2px); }
}
.to-top.is-shown:active { transform: scale(.94); }
.to-top:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- the Series menu: every public series
   Up to three photo cards, then every other series in a compact list with its colour dot (tidy from 4 to about 12).
   In the phone sheet the cards are text rows already; the list continues them as plain rows. */
.menu-more { grid-column: 1 / -1; display: grid; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.menu-more .t-label { margin: 0; color: var(--muted); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 var(--gutter); }
.menu-list a { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; column-gap: var(--s-3); padding: 10px 0; color: var(--ink); font-weight: 500; line-height: 1.35; text-decoration: none; }
.menu-list a::before { content: ""; width: 8px; height: 8px; margin-top: .4em; border-radius: 2px; background: var(--c, var(--muted)); }
.menu-list a:hover { color: var(--action); }
@media (max-width: 1023px) {
  .nav.is-open .menu-more { gap: 0; padding-top: var(--s-2); }
  .nav.is-open .menu-list { grid-template-columns: 1fr; }
  .nav.is-open .menu-list a { padding: 12px 0; }
}

/* ---------------------------------------------------------------- consent for statistics (Matomo; analytics.js shows it)
   Not a modal: a card at the bottom right, clear of the hero's words (a sheet on a phone); the page stays usable.
   Three buttons of equal weight: refusing is as easy as accepting. */
.consent { position: fixed; z-index: 70; right: 16px; bottom: 16px; display: grid; gap: var(--s-4); width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: var(--s-5); border: 1px solid rgb(255 255 255 / .16); border-radius: var(--r-lg); background: var(--p-surface); color: var(--p-ink); box-shadow: 0 16px 48px rgb(0 0 0 / .5); font-size: var(--t-small); }
.consent__title { margin: 0; font: 500 18px/1.3 var(--font-text); }
.consent__text { margin: 0; color: #c3cad3; }
.consent__text a { color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; }
.consent__opts { display: grid; gap: var(--s-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.consent__opt { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--s-3); align-items: start; cursor: pointer; }
.consent__opt:has(input:disabled) { cursor: default; }
.consent__opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--p-accent); cursor: inherit; }
.consent__opt strong { display: block; color: var(--p-ink); font-weight: 500; }
.consent__opt small { display: block; color: var(--p-muted); font-size: 13px; line-height: 1.45; }
.consent__btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.consent__btn { flex: 1 1 auto; height: 44px; padding: 0 var(--s-4); border: 1px solid rgb(255 255 255 / .3); border-radius: var(--r-btn, 2px); background: transparent; color: var(--p-ink); font: 500 14px/1 var(--font-text); white-space: nowrap; cursor: pointer; }
.consent__btn:hover { border-color: var(--p-ink); background: rgb(255 255 255 / .06); }
.consent__btn:focus-visible, .footer__consent:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
@media (max-width: 639px) { .consent { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100dvh - 16px); padding: var(--s-4); } }
.footer__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.footer__consent { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer__consent:hover { color: var(--action); }
@media (max-width: 639px) { .footer__consent { min-height: 44px; } }

/* ---------------------------------------------------------------- the player (a modal dialog, broadcast style) */
.player-dlg { width: min(1180px, calc(100vw - 32px), calc((100dvh - 300px) * 16 / 9)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #262d35; border-radius: var(--r-lg); background: #0a0d10; color: #f1f3f5; overflow: auto; }
.player-dlg::backdrop { background: rgb(4 6 8 / .82); backdrop-filter: blur(4px); }
.player-dlg[open] { animation: dlg-in .24s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.pl__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid #1e252c; }
.pl__title { display: flex; align-items: center; gap: var(--s-3); min-width: 0; flex: 1; font-weight: 500; }
.pl__title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.pl__viewers { color: #9aa3af; font: 500 13px/1 var(--font-mono); white-space: nowrap; }
.pl__btn { display: inline-grid; place-items: center; height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid #2c343d; border-radius: var(--r-md); background: transparent; color: #f1f3f5; cursor: pointer; font: 500 13px/1 var(--font-text); gap: 6px; grid-auto-flow: column; }
.pl__btn:hover { background: #161b21; }
.pl__btn:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.pl__btn svg { width: 16px; height: 16px; }
.pl__screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pl__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl__screen .pl__bug { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.pl__note { position: absolute; right: 12px; top: 12px; color: rgb(255 255 255 / .75); font: 500 11px/1 var(--font-mono); background: rgb(0 0 0 / .5); padding: 5px 7px; border-radius: 4px; pointer-events: none; }
.pl__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-6); padding: var(--s-5) var(--s-4); align-items: start; }
.pl__info dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-4); margin: 0; font-size: 14px; }
.pl__info dt { color: #9aa3af; }
.pl__info dd { margin: 0; }
.pl__info a { color: #f1f3f5; text-decoration: underline; text-underline-offset: 3px; }
.pl__others { padding: 0 var(--s-4) var(--s-4); }
.pl__others h3 { margin: 0 0 var(--s-3); font: 500 13px/1 var(--font-mono); color: #9aa3af; letter-spacing: .04em; }
.pl__strip { display: flex; gap: var(--s-3); overflow-x: auto; padding-bottom: 4px; }
.pl__car { display: grid; grid-template-columns: 88px auto; gap: var(--s-3); align-items: center; flex: none; padding: 6px; padding-right: var(--s-4); border: 1px solid #262d35; border-radius: var(--r-md); background: #0f1418; color: #f1f3f5; cursor: pointer; text-align: left; font: 500 13px/1.3 var(--font-text); }
.pl__car img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); display: block; }
.pl__car small { display: block; color: #9aa3af; font-weight: 400; }
.pl__car:hover, .pl__car:focus-visible { border-color: var(--p-accent); outline: none; }
.pl__offline { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; background: rgb(0 0 0 / .6); color: #fff; font-weight: 500; }
.pl__offline[hidden] { display: none; }
.live-note { margin-top: var(--s-5); }
.pl__copied { color: #9aa3af; font-size: 13px; }
/* while the player is open the page behind it does not scroll (one scrollbar at most: the dialog's own, on small screens) */
html:has(.player-dlg[open]) { overflow: hidden; scrollbar-gutter: stable; }
/* wide screens: the picture on the left, the car's facts, "Get updates" and the other live cars in a column on the right.
   The width follows from the window's height (bar 61px + 16:9 picture + borders), so the whole dialog fits without a
   scrollbar; the right column scrolls on its own if it holds many cars (contain: size keeps it to the picture's height). */
@media (min-width: 1024px) {
  .player-dlg { --pl-side: 320px; width: min(1400px, calc(100vw - 32px), calc((100dvh - 112px) * 16 / 9 + var(--pl-side) + 4px)); overflow: hidden; }
  .player-dlg[open] { display: grid; grid-template-columns: minmax(0, 1fr) var(--pl-side); grid-template-rows: auto auto; }
  .pl__bar { grid-column: 1 / -1; }
  .pl__side { contain: size; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; border-left: 1px solid #1e252c; }
  .pl__side .pl__info { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5); }
  .pl__side .pl__others { padding: var(--s-5); border-top: 1px solid #1e252c; }
  .pl__side .pl__strip { flex-direction: column; overflow: visible; padding-bottom: 0; }
  .pl__side .pl__car { grid-template-columns: 88px minmax(0, 1fr); width: 100%; }
}
@media (max-width: 639px) {
  .player-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pl__info { grid-template-columns: 1fr; }
  .pl__viewers, .pl__btn .lbl { display: none; }
}

/* ---------------------------------------------------------------- the schedule: one list, every series, by date */
.sched-filter { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.sched-filter button { display: inline-flex; align-items: center; gap: var(--s-2); height: 36px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font: 500 14px/1 var(--font-text); cursor: pointer; }
.sched-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sched-filter button:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--muted)); }
/* serie-kleuren (Catalog: bekende series 1-3, andere om de beurt 4-6) */
[data-c="1"] { --c: #d9a441; }
[data-c="2"] { --c: #3fb5a3; }
[data-c="3"] { --c: #6b9cf0; }
[data-c="4"] { --c: #c77dd8; }
[data-c="5"] { --c: #e0805a; }
[data-c="6"] { --c: #8fbf5a; }
.sched { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sched li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 11rem 6.5rem; gap: var(--s-2) var(--s-5); align-items: center; min-height: 50px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sched li[hidden] { display: none; }
.sched__date { font: 500 15px/1.3 var(--font-mono); }
.sched__name { font-weight: 500; }
.sched__name small { display: inline; margin-left: var(--s-3); color: var(--muted); font-weight: 400; font-size: var(--t-small); }
.sched__state { justify-self: end; display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); font-size: var(--t-small); color: var(--muted); }
.sched li.is-live { border-left: 2px solid var(--p-accent); padding-left: var(--s-4); }
.sched li.is-past { color: var(--muted); }
.sched-note { margin-top: var(--s-4); color: var(--muted); font-size: var(--t-small); }
@media (max-width: 767px) {
  .sched li { grid-template-columns: 1fr auto; gap: 4px var(--s-4); }
  .sched__date { grid-column: 1; grid-row: 1; }
  .sched .chip { grid-column: 2; grid-row: 1; justify-self: end; }
  .sched__name { grid-column: 1 / -1; }
  .sched__state { grid-column: 1 / -1; justify-self: start; }
  .sched__state:empty { display: none; }
}

/* ---------------------------------------------------------------- series cards and clients */
.series-card { display: grid; gap: var(--s-3); color: inherit; text-decoration: none; }
.series-card .panel { --p-h: 260px; }
.series-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.series-card p { margin: 0; color: var(--muted); }
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--gutter, 24px); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.clients h3 { margin: 0 0 var(--s-4); font: 500 13px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); text-transform: none; }
.clients ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.clients li { font: var(--display-weight) clamp(22px, 2.1vw, 30px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.clients-note { margin-top: var(--s-8); color: var(--muted); max-width: 60ch; }
@media (max-width: 767px) { .clients { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------------------------------------------------------------- one shared background: faint telemetry traces */
.has-tele { position: relative; isolation: isolate; }
.has-tele > .tele { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; display: block; }

/* ---------------------------------------------------------------- the signal path: a schematic in SVG (signal.php, signal.js) */
.sig { position: relative; height: clamp(380px, 60svh, 560px); border-radius: var(--r-lg); border: 1px solid var(--line); background: #0b0f13; overflow: hidden; }
/* wide (900 px and up): the drawing fits the box (the section is one screen tall, the box takes what is left);
   narrower: the upright drawing, as tall as it needs, at most 440 px wide */
.sig__svg { display: block; width: 100%; height: auto; }
.sig__svg--wide { position: absolute; inset: 0; height: 100%; }
.sig__svg--tall { display: none; }
/* hairlines: 1 px at every size, whatever the scale of the drawing */
.sig__svg :is(.sig__route, .sig__road, .sig__node) { vector-effect: non-scaling-stroke; }
.sig__svg .sig__node * { vector-effect: non-scaling-stroke; }
/* contrast op #0b0f13: lijnen 3,2:1, knopen 5,9:1, grijze labels 7:1 */
.sig__route { fill: none; stroke: #5b6570; stroke-width: 1; }
.sig__route--air { stroke-dasharray: 3 4; }
.sig__road { fill: none; stroke: #3a434d; stroke-width: 1; }
.sig__node { fill: none; stroke: #8b95a0; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; transition: stroke .6s ease; }
.sig__node .f { fill: #8b95a0; stroke: none; transition: fill .6s ease; }
.sig__node.is-hit { stroke: var(--p-accent); transition-duration: .15s; }
.sig__node.is-hit .f { fill: var(--p-accent); transition-duration: .15s; }
.sig__joint { fill: #8b95a0; }
/* --sig-fs comes from signal.js (about 13 px on screen at any scale); the sizes below are for a page without the script */
.sig__label { fill: #c9cfd6; font-family: var(--font-mono); font-weight: 500; font-size: var(--sig-fs, 11px); }
.sig__sub { fill: #949ea9; font-weight: 400; }
/* the light: a comet with a glow and a bright head, only while signal.js runs; the still has no pulses */
.sig__tail { fill: none; stroke: var(--p-accent); stroke-width: 3; stroke-linecap: round; opacity: .35; }
.sig__head { fill: none; stroke: #ff5a4e; stroke-width: 2.4; stroke-linecap: round; }
.sig__glow { fill: var(--p-accent); opacity: .22; }
.sig__dot { fill: #ffd9d4; }
.sig__pulses { display: none; }
.sig.is-live .sig__pulses { display: inline; }
@media (max-width: 1279px) { .sig__svg--wide { --sig-fs: 13px; } }
@media (max-width: 1023px) { .sig__svg--wide { --sig-fs: 15px; } }
@media (max-width: 899px) { .sig { height: auto; } .sig__svg--wide { display: none; } .sig__svg--tall { display: block; max-width: 440px; margin-inline: auto; --sig-fs: 12px; } }
@media (max-width: 639px) { .sig .loop-pause { display: none; } }
.sig-steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter, 24px); counter-reset: s; }
.sig-steps li { border-top: 1px solid var(--line-strong); padding-top: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.sig-steps li strong { display: block; color: var(--ink); font-weight: 500; font-size: var(--t-body); margin-bottom: 2px; }
@media (max-width: 767px) { .sig-steps { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- camera, form */
.counter { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter, 24px); }
.counter .t-stat { margin: 0; }
#camera .split-photo { --ratio: 75%; }
#interest .int-photo { --ratio: 66%; }
#interest textarea { min-height: 96px; padding-block: var(--s-3); resize: vertical; }
.form__guard { display: flex; align-items: center; gap: var(--s-2); margin: 0; color: var(--muted); font-size: var(--t-small); }
.form__guard svg { width: 14px; height: 14px; flex: none; }
.form.is-verifying [type="submit"] { opacity: .7; pointer-events: none; }
.form__status:empty { display: none; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- footer: the white line logo on a dark ground */
.footer.footer--v2 { --bg: #080a0d; --surface: #12171c; --ink: #f1f3f5; --muted: #9aa3af; --line: rgb(255 255 255 / .1); --line-strong: rgb(255 255 255 / .2);
  --action: var(--p-accent); --action-ink: #fff; background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
.footer--v2 .footer__mark img { height: 72px; width: auto; display: block; }
@media (max-width: 639px) { .footer--v2 .footer__mark img { height: 64px; } }

/* ---------------------------------------------------------------- series page */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0 0 var(--s-4); padding: 0; font-size: var(--t-small); color: rgb(255 255 255 / .8); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); opacity: .6; }
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.series-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); color: rgb(255 255 255 / .85); font-size: var(--t-small); }
.series-meta span { display: inline-flex; align-items: center; gap: var(--s-2); }
.tcard { display: grid; gap: var(--s-3); }
.tcard .panel { --p-h: 220px; }
.tcard h3 { margin: 0; display: flex; align-items: center; gap: var(--s-3); }
.tcard p { margin: 0; color: var(--muted); font-size: var(--t-small); }
.does { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter, 24px); }
.does article { border-top: 1px solid var(--line-strong); padding-top: var(--s-4); }
.does h3 { margin: 0 0 var(--s-2); }
.does p { margin: 0; color: var(--muted); }
@media (max-width: 767px) { .does { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- reduced motion: nothing pulses or drifts */
@media (prefers-reduced-motion: reduce) {
  .dot--live, .lcard::after, .spin { animation: none; }
  .lcard::after { opacity: .4; }
  .player-dlg[open] { animation: none; }
  .to-top, .hero--film .hero__media > video { transition: none; }
  .to-top svg { transition: none; transform: none !important; }
  .to-top.is-shown:active { transform: none; }
}
.btn--primary .dot--live { background: #fff; }
.hero--film .hero__over h1 { max-width: 20ch; }

.sched-side { display: grid; gap: var(--s-6); align-content: start; }
.sched-side h2 { margin: 0; }
@media (min-width: 1024px) { .sched-filter { flex-direction: column; align-items: flex-start; margin: 0; } }
.lcard__top { justify-content: flex-start; }
.lcard__viewers { margin-left: auto; }
.lcard__event { flex-wrap: wrap; row-gap: 2px; }
.hero--film .hero__over > :first-child { max-width: 780px; }
/* series page */
.cal-next { margin-top: var(--s-6); }
#calendar .cal-photo { height: 480px; }
.sched--series li { grid-template-columns: 8.5rem minmax(0, 1fr) auto; }
.does-list { display: grid; gap: var(--s-4); align-content: start; }
.does-list h3 { margin: 0; }
.does-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.does-rows li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.does-rows li .ic { color: var(--ink); margin-top: 2px; }
.does-rows strong { display: block; color: var(--ink); font-weight: 500; font-size: var(--t-lead); margin-bottom: 4px; }
.tcard .link { justify-self: start; }
@media (max-width: 767px) { #calendar .cal-photo { height: auto; aspect-ratio: 4 / 3; } .sched--series li { grid-template-columns: 1fr auto; } }

/* ================================================================ v2 round 2 */
/* the shared background: a tiled SVG of telemetry traces on a ::before layer, drifting by transform only */
.has-tele { position: relative; overflow: clip; }
.has-tele::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 1200px); z-index: 0; pointer-events: none;
  background: url("../img/telemetry.svg") repeat-x 0 0 / 1200px 100%; animation: tele-drift 150s linear infinite; animation-play-state: paused; }
.has-tele.tele-on::before { animation-play-state: running; }
@keyframes tele-drift { to { transform: translateX(-1200px); } }
.has-tele > .wrap { position: relative; z-index: 1; }

/* the live line's dot hangs in the margin, so its words start on the page's left line */
.live-status { position: relative; }
.live-status > .dot { position: absolute; left: -20px; top: 50%; margin-top: -4px; }
@media (max-width: 639px) { .live-status > .dot { left: -14px; } }


/* live cards (home, series, "Other cars live") and the series page's car cards: one card, one border and surface,
   the picture flush at the top. The live pulse runs on the card's own edge (::after over the 1px border). */
.lcard, .tcard { background: var(--card, var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lcard { overflow: visible; }
.lcard::after { inset: -1px; z-index: 2; }
.lcard__media { border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; overflow: hidden; }
.tcard { gap: 0; grid-template-rows: auto 1fr; overflow: hidden; }
.tcard > .panel { --p-r: 0; border-radius: 0; }
.tcard__body { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); }
.live-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.live-grid:has(> .lcard:only-child) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 767px) { .live-grid:has(> .lcard:only-child) { grid-template-columns: 1fr; } }

/* the counters' second column on the grid's own line */
@media (min-width: 640px) { .counter { grid-template-columns: calc((100% - 4 * var(--gutter, 24px)) * 2 / 5 + var(--gutter, 24px)) 1fr; } }

.sig-steps li { color: #bcc3cb; }

/* schedule */
.sched li { min-height: 56px; }
.sched li.is-live { border-left: 0; padding-left: 0; background: linear-gradient(90deg, color-mix(in oklab, var(--p-accent) 16%, transparent), transparent 45%); }
.sched-photo { margin: 0; height: 260px; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.sched-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .sched-photo { height: auto; aspect-ratio: 16 / 9; } }

/* series and clients fill their screen */
.series-card .panel { --p-h: 380px; }
@media (max-width: 639px) { .series-card .panel { --p-h: 300px; } }
.clients { border-top: 0; padding-top: 0; }
.clients li { font-size: clamp(26px, 2.7vw, 40px); }
.clients .t-label { margin: 0 0 var(--s-4); }
.clients-note { font-size: var(--t-lead); color: var(--ink); max-width: 52ch; }

/* the hero's words stay readable over a busy frame on a phone */
@media (max-width: 639px) {
  .hero--film .hero__media::after { background: linear-gradient(to top, rgb(8 10 12 / .94) 0%, rgb(8 10 12 / .8) 55%, rgb(8 10 12 / .5) 100%); }
}
@media (prefers-reduced-motion: reduce) { .has-tele::before { animation: none; } }

/* ================================================================ v2 round 3 */
/* the hero: the onboard film from edge to edge, the words on the page's own lines over a dark gradient */
/* it starts as a dark plane in the brand colour; the film fades in once it plays, the photo only as the fallback */
.hero--bleed { position: relative; display: flex; align-items: flex-end; min-height: calc(100svh - 72px); padding: 0; overflow: clip; background: var(--p-bg); color: #fff; }
.hero--bleed > .hero__bg, .hero--bleed > noscript > .hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* only the home hero waits for its film (or the fallback photo); a page hero with its own photo (series) shows it at once */
.hero--bleed > :is(video.hero__bg, img.hero__photo) { opacity: 0; transition: opacity .8s ease; }
.hero--bleed.is-playing > video.hero__bg, .hero--bleed.is-photo > img.hero__photo { opacity: 1; }
.hero--bleed::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(8 10 12 / .9) 0%, rgb(8 10 12 / .55) 40%, rgb(8 10 12 / 0) 72%),
              linear-gradient(to right, rgb(8 10 12 / .6) 0%, rgb(8 10 12 / 0) 62%); }
.hero--bleed > .wrap { position: relative; z-index: 1; flex: none; width: min(100% - 2 * var(--gut), var(--container)); margin-inline: auto; height: auto; grid-template-rows: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-6); padding-block: var(--s-10) var(--s-8); }
.hero__words { max-width: 780px; --ink: #fff; --muted: rgb(255 255 255 / .78); --bg: transparent; --line-strong: rgb(255 255 255 / .45); --action: var(--p-accent); --action-ink: #fff; color: #fff; }
.hero__words h1 { color: #fff; max-width: 20ch; margin: 0; }
.hero__words .hero__lead { color: rgb(255 255 255 / .88); margin-top: var(--s-4); max-width: 46ch; }
.hero__words .btn-row { margin-top: var(--s-6); }
@media (max-width: 1023px) { .hero--bleed > .wrap { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .hero--bleed { min-height: calc(100svh - 56px); }
  .hero--bleed::after { background: linear-gradient(to top, rgb(8 10 12 / .94) 0%, rgb(8 10 12 / .8) 55%, rgb(8 10 12 / .5) 100%); }
  .hero--bleed > .wrap { padding-block: var(--s-8) var(--s-6); }
}
@media (prefers-reduced-motion: reduce) { .hero--bleed > :is(video.hero__bg, img.hero__photo) { transition: none; } }

/* the live bar: words and the connection line on one row */
.live-status > .dot { position: static; margin: 0; }
.live-bar { flex-wrap: wrap; }

/* one size for every h3 */
.lcard__body h3 { font-size: inherit; }
@media (max-width: 639px) { .series-card .panel { --p-h: 360px; } }
.live-conn { order: 2; }
main > section.hero--bleed > .wrap.hero__bar { display: grid; flex-direction: initial; }

/* ================================================================ v2 round 4 */
/* the film starts under the fixed bar, so nothing of it lies beneath the bar */
.hero--bleed > .hero__bg, .hero--bleed > noscript > .hero__bg { top: var(--nav-h, 72px); height: calc(100% - var(--nav-h, 72px)); }
.hero--bleed::after { top: var(--nav-h, 72px); }
main > section.hero--bleed > .wrap.hero__bar { display: block; }
/* the words and the film control on the page's 12 columns */
.hero__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter, 24px); align-items: end; row-gap: var(--s-6); }
.hero__cols > .hero__words { grid-column: 1 / span 8; }
.hero__cols > .hero-ctl, .hero__cols > .hero-live { grid-column: 10 / span 3; justify-self: start; text-align: left; }
@media (max-width: 1023px) { .hero__cols > .hero__words, .hero__cols > .hero-ctl, .hero__cols > .hero-live { grid-column: 1 / -1; } }
.hero-ctl { order: 0; }
/* one size for every h3 */
.lcard__body h3, .series-card h3 { font-size: 24px; line-height: 1.25; }
@media (max-width: 639px) { .lcard__body h3, .series-card h3 { font-size: 20px; } }
/* the live cards' picture a little wider, so two rows of words fit the screen */
.lcard__media { aspect-ratio: 2 / 1; }

/* ================================================================ site v1: delen die het concept niet had */
/* secties met wisselende inhoud (live, schema, series, auto's, kalender, de losse pagina's): minstens één
   scherm, maar ze groeien mee in plaats van over de volgende sectie te lopen */
@media (min-width: 1280px) {
  main > :is(section, .section).grow { height: auto; min-height: 100vh; min-height: 100svh; }
}
/* een footer zonder afsluitende band (contact, privacy, /live, foutpagina's) is zo hoog als zijn inhoud */
footer.closing.footer--plain { height: auto; min-height: 0; }
html:not(.js) .hero-ctl { display: none; }
.pos-40-50 { --pos: 40% 50%; object-position: 40% 50%; }
.pos-50-55 { --pos: 50% 55%; object-position: 50% 55%; }

/* kruimelpad op een gewone pagina (zonder foto eronder) */
.crumbs--page { color: var(--muted); }
.crumbs--page a { color: var(--ink); }
.page-top .section-head { margin-bottom: var(--s-6); }

/* een auto zonder foto: een donker vlak met het nummer */
.car-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 30% 20%, #1d242c, #0b0f13); color: rgb(255 255 255 / .82); font: 500 clamp(28px, 4vw, 56px)/1 var(--font-mono); letter-spacing: -.02em; }
.lcard__media > .car-ph, .pl__still > .car-ph, .car-screen > .car-ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.car-ph--sm { width: 88px; border-radius: var(--r-sm); font-size: 13px; }
.tcard .panel > .car-ph { border-radius: inherit; }

/* de speler: stilstaand beeld, iframe en de link naar een los tabblad */
.pl__still { position: absolute; inset: 0; }
.pl__still > img, .car-screen__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pl__screen > iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: #000; }
.pl__offline { z-index: 2; align-content: center; gap: 6px; padding: var(--s-5); text-align: center; }
.pl__offline small { display: block; color: rgb(255 255 255 / .78); font-weight: 400; font-size: var(--t-small); }
.pl__open { position: absolute; left: 50%; bottom: var(--s-5); z-index: 2; margin: 0; transform: translateX(-50%); white-space: nowrap; }
.pl__open a, .car-open a { display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid rgb(255 255 255 / .35); background: rgb(8 10 12 / .8); color: #fff; font: 500 14px/1 var(--font-text); text-decoration: none; }
.pl__open a:hover, .car-open a:hover { border-color: #fff; }

/* /live/{auto}: kop, speler, gegevens en "Get updates" */
.car-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-6); }
.car-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin: 0; }
.carno--lg { height: 1.15em; padding: 0 .3em; border-radius: var(--r-md); font-size: .7em; }
.car-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: 0; color: var(--muted); font-size: var(--t-small); }
.car-state__text { color: var(--ink); font-weight: 500; font-size: var(--t-card); }
.car-grid { row-gap: var(--s-6); }
.car-screen { border-radius: 0; overflow: hidden; }   /* de speler op /live: geen afronding */
.car-open { margin: var(--s-4) 0 0; }
.car-open a { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.car-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-3) var(--s-5); margin: var(--s-6) 0 0; }   /* onder de speler */
.car-facts dt { color: var(--muted); font-size: var(--t-small); padding-top: 2px; }
.car-facts dd { margin: 0; }
.car-updates { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.car-updates h2 { margin: 0 0 var(--s-2); }
.car-updates > p { margin: 0 0 var(--s-5); font-size: var(--t-small); }
.form--narrow { grid-template-columns: minmax(0, 1fr); }

/* formulieren: de honeypot buiten beeld (niet display: none, dan slaan bots hem over), meldingen */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__note { font-size: var(--t-small); color: var(--muted); }
.form__status.is-error { color: var(--error); font-weight: 500; }

/* het schema per jaar */
.sched-year + .sched-year { margin-top: var(--s-7); }
.sched-year > .t-label { margin: 0 0 var(--s-3); }
#calendar .t-label { margin: 0 0 var(--s-3); }
#calendar .t-label.cal-next { margin-top: var(--s-7); }

/* tekstpagina's (privacy, foutpagina's) */
.prose { max-width: 68ch; }
.prose h1 { margin: 0 0 var(--s-5); }
.prose h2 { margin: var(--s-7) 0 var(--s-3); font-size: var(--t-h3); }
.prose p { margin: 0 0 var(--s-4); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); padding-left: 1.25em; list-style: disc; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 500; }
.prose__btn { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.prose__btn:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.error-page .btn-row { margin-top: var(--s-6); }
.error-detail { margin-top: var(--s-6); padding: var(--s-4); max-height: 40vh; overflow: auto; border-radius: var(--r-md); background: var(--surface); font: 13px/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* contact: e-mailadres en Instagram zijn lange woorden zonder spatie; de kit begrenst waarden op smalle schermen op 11ch */
@media (max-width: 479px) { .rows--contact .rows__value { max-width: none; overflow-wrap: anywhere; } }

/* formuliervelden: de kit-rand (--line-strong) haalt op deze donkere grond maar ca. 1,8:1; een veld moet 3:1 halen.
   Rust 44% inkt (ca. 4:1), hover 64% (ca. 7:1), focus blijft de rode ring van de kit, een fout de rode rand. */
.field :is(input, select, textarea) { border-color: color-mix(in oklab, var(--ink) 44%, transparent); }
html .field :is(input, select, textarea):hover:not(:focus):not([aria-invalid="true"]) { border-color: color-mix(in oklab, var(--ink) 64%, transparent); }

/* 1.0.2: koppen van een sectie mogen de hele breedte van de wrap gebruiken; lopende tekst blijft op 60ch (kit) */
.section-head, .section--hero .section-head, .section-head--split > div, .section-head--row > div, .section-head p { max-width: none; }

/* 1.0.2: raceschema met binnenmarge links en rechts, zodat datum en LIVE NOW niet tegen de rand staan */
.sched li, .sched li.is-live { padding-inline: var(--s-4); }

/* 1.0.2: de stip van "Live updates" volgt de verbinding (site.js zet data-state). Groen en pulserend = verbonden,
   amber = verbinden, rood zonder puls = onderbroken. De tekst ernaast zegt hetzelfde; kleur is nooit het enige teken. */
.live-conn .dot { position: relative; background: var(--muted); }
.live-conn[data-state="connecting"] .dot { background: #d9a441; }
.live-conn[data-state="on"] .dot { background: #3fb58a; }
.live-conn[data-state="retry"] .dot { background: var(--p-accent); }
.live-conn[data-state="on"] .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3fb58a;
  animation: conn-pulse 2s cubic-bezier(.2, .6, .4, 1) infinite;
}
@keyframes conn-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-conn[data-state="on"] .dot::after { animation: none; opacity: 0; } }
html[data-motion="off"] .live-conn[data-state="on"] .dot::after { animation: none; opacity: 0; }
