/* watrijdtdaar.nl
   One loud thing: the Dutch number plate. Everything around it stays quiet.
   Palette: kentekengeel (plate only), EU-blauw (links, actions, chart marks),
   asfalt (text) on wegdek (page) and papier (panels). Red/green/amber are status only. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700.woff2) format("woff2"); }

:root {
  --geel: #f4c300;
  --geel-diep: #d9ad00;
  --eu: #1d3e9e;
  --eu-donker: #142c73;
  --asfalt: #22262b;
  --berm: #596170;
  --lijn: #d6dbe1;
  --wegdek: #edeff2;
  --papier: #ffffff;
  --groen: #1b7a43;
  --groen-bg: #e7f4ec;
  --rood: #b3261e;
  --rood-bg: #fbeceb;
  --amber: #8a5a00;
  --amber-bg: #fff3d6;
  --grid: #e6e9ed;

  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, sans-serif;

  /* type scale, ratio 1.25 from 17px */
  --t-xs: 0.8125rem;  /* 13 */
  --t-s: 0.9375rem;   /* 15 */
  --t-m: 1.0625rem;   /* 17 */
  --t-l: 1.3125rem;   /* 21 */
  --t-xl: 1.625rem;   /* 26 */
  --t-2xl: 2.0625rem; /* 33 */
  --t-3xl: 2.5625rem; /* 41 */

  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--t-m)/1.55 var(--sans);
  color: var(--asfalt);
  background: var(--wegdek);
}
a { color: var(--eu); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--eu-donker); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--eu); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: var(--t-xl); margin-bottom: 0.75rem; }
h3 { font-size: var(--t-l); font-weight: 600; }
p { margin: 0 0 1rem; max-width: 40em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--berm); }
.small { font-size: var(--t-s); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the plate ---------- */
.plaat {
  --h: 3.25rem;
  display: inline-flex;
  align-items: stretch;
  height: var(--h);
  background: var(--geel);
  border-radius: calc(var(--h) * 0.12);
  box-shadow: inset 0 0 0 calc(var(--h) * 0.045) var(--asfalt), inset 0 0 0 calc(var(--h) * 0.08) var(--geel),
              0 1px 0 rgba(34, 38, 43, 0.25);
  color: var(--asfalt);
  overflow: hidden;
  vertical-align: middle;
}
.plaat-nl {
  flex: none;
  width: calc(var(--h) * 0.56);
  background: var(--eu);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: calc(var(--h) * 0.1);
  margin: calc(var(--h) * 0.045) 0 calc(var(--h) * 0.045) calc(var(--h) * 0.045);
  border-radius: calc(var(--h) * 0.08) 0 0 calc(var(--h) * 0.08);
  font: 600 calc(var(--h) * 0.24)/1 var(--cond);
}
.plaat-nl svg { width: 72%; height: auto; margin-bottom: auto; margin-top: calc(var(--h) * 0.1); }
.plaat-tekst, .plaat input {
  font: 700 calc(var(--h) * 0.72)/1 var(--cond);
  letter-spacing: 0.06em;
  padding: 0 calc(var(--h) * 0.3) 0 calc(var(--h) * 0.22);
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plaat input {
  border: 0;
  background: transparent;
  color: inherit;
  text-transform: uppercase;
  /* border-box: the width includes the side padding and the letter-spacing of 8 characters */
  width: calc(8.4ch + 0.5em + var(--h) * 0.52);
  min-width: 0;
}
.plaat input::placeholder { color: rgba(34, 38, 43, 0.32); }
.plaat input:focus { outline: none; }
.plaat:focus-within { box-shadow: inset 0 0 0 calc(var(--h) * 0.045) var(--asfalt), inset 0 0 0 calc(var(--h) * 0.08) var(--geel),
                                  0 0 0 3px var(--papier), 0 0 0 6px var(--eu); }
.plaat--s { --h: 2.25rem; }
.plaat--xl { --h: clamp(4.25rem, 13vw, 6.5rem); }

/* ---------- header / footer ---------- */
.site-head { background: var(--papier); border-bottom: 1px solid var(--lijn); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.merkteken { font: 700 var(--t-l)/1 var(--cond); color: var(--asfalt); text-decoration: none; letter-spacing: 0.01em; }
.merkteken span { color: var(--berm); font-weight: 600; }
.zoek-klein { display: flex; gap: 0.5rem; align-items: center; }
.knop {
  font: 600 var(--t-m)/1 var(--sans);
  background: var(--eu);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0 1.1rem;
  min-height: 2.75rem;
  cursor: pointer;
}
.knop:hover { background: var(--eu-donker); }
.zoek-klein .knop { min-height: 2.25rem; padding: 0 0.85rem; font-size: var(--t-s); }

.site-foot { margin-top: 4rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--lijn); color: var(--berm); font-size: var(--t-s); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.75rem; }

/* ---------- home ---------- */
.hero { padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 6vw, 4rem); }
.hero h1 { font-size: clamp(var(--t-2xl), 6vw, 3.5rem); max-width: 14em; margin-bottom: 1.5rem; }
.hero-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-form .knop { min-height: clamp(3.25rem, 9vw, 4rem); font-size: var(--t-l); padding: 0 1.6rem; }
.hero-uitleg { margin-top: 1.25rem; color: var(--berm); }
.form-fout { color: var(--rood); font-weight: 500; }
.form-fout:empty { display: none; }

.gratis { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2.5rem; padding: 2rem 0 1rem; border-top: 1px solid var(--lijn); }
.gratis h3 { margin-bottom: 0.4rem; }
.gratis p { color: var(--berm); margin: 0; }

.lijstkolommen { columns: 15rem auto; column-gap: 2.5rem; padding: 0; margin: 0; list-style: none; }
.lijstkolommen li { break-inside: avoid; padding: 0.3rem 0; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--grid); }
.lijstkolommen .n { color: var(--berm); font-variant-numeric: tabular-nums; font-size: var(--t-s); }
.sectie { padding-top: 2.75rem; }

/* ---------- plate page ---------- */
.kop { padding: 2rem 0 1.5rem; }
.kop .plaat { margin-bottom: 1.25rem; }
.kop h1 { font-size: clamp(var(--t-2xl), 5vw, var(--t-3xl)); }
.kop .sub { font-size: var(--t-l); color: var(--berm); margin: 0.35rem 0 0; }
.kruimel { font-size: var(--t-s); color: var(--berm); padding-top: 1rem; }
.kruimel a { color: var(--berm); }

.oordelen { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.5rem; max-width: 46rem; }
.oordeel { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; align-items: start; background: var(--papier); padding: 0.85rem 1rem; border-radius: 6px; }
.oordeel strong { font-weight: 600; }
.oordeel .toelichting { display: block; color: var(--berm); font-size: var(--t-s); }
.oordeel svg { width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; }
.oordeel--goed svg { color: var(--groen); }
.oordeel--let-op { background: var(--amber-bg); }
.oordeel--let-op svg { color: var(--amber); }
.oordeel--slecht { background: var(--rood-bg); }
.oordeel--slecht svg { color: var(--rood); }
.oordeel--info svg { color: var(--berm); }

.kolommen { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2.5rem; align-items: start; }
@media (max-width: 56rem) { .kolommen { grid-template-columns: 1fr; } }
.blok { padding-top: 2.5rem; }
.blok > p.muted { margin-top: -0.25rem; }

.terugroep { background: var(--papier); border-radius: 6px; padding: 1.1rem 1.25rem; margin-bottom: 0.75rem; border-left: 4px solid var(--rood); }
.terugroep--klaar { border-left-color: var(--lijn); }
.terugroep h3 { font-family: var(--sans); font-size: var(--t-m); font-weight: 600; line-height: 1.4; margin-bottom: 0.5rem; }
.terugroep dl { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.35rem 1rem; font-size: var(--t-s); }
.terugroep dt { color: var(--berm); }
.terugroep dd { margin: 0; }
@media (max-width: 34rem) {
  .terugroep dl { grid-template-columns: 1fr; gap: 0; }
  .terugroep dt { margin-top: 0.5rem; }
}

.tijdlijn { list-style: none; margin: 0; padding: 0; position: relative; }
.tijdlijn::before { content: ""; position: absolute; left: 0.4rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--lijn); }
.tijdlijn > li { position: relative; padding: 0 0 1.5rem 2rem; }
.tijdlijn > li::before { content: ""; position: absolute; left: 0; top: 0.4rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--papier); box-shadow: inset 0 0 0 3px var(--groen), 0 0 0 2px var(--wegdek); }
.tijdlijn > li.met-gebrek::before { box-shadow: inset 0 0 0 3px var(--rood), 0 0 0 2px var(--wegdek); }
.tijdlijn .datum { font-weight: 600; }
.tijdlijn ul { margin: 0.35rem 0 0; padding: 0; list-style: none; font-size: var(--t-s); }
.tijdlijn ul li { padding: 0.15rem 0; }
.tag { display: inline-block; font-size: var(--t-xs); font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 4px; background: var(--wegdek); color: var(--berm); margin-left: 0.35rem; vertical-align: 0.1em; }
.tag--advies { background: var(--amber-bg); color: var(--amber); }

.zones { width: 100%; border-collapse: collapse; background: var(--papier); border-radius: 6px; overflow: hidden; font-size: var(--t-s); }
.zones th, .zones td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--grid); vertical-align: top; }
.zones th { font-weight: 600; }
.zones tr:last-child td { border-bottom: 0; }
.ja { color: var(--groen); font-weight: 600; }
.nee { color: var(--rood); font-weight: 600; }

.specs { background: var(--papier); border-radius: 6px; padding: 0.4rem 1.1rem; margin-bottom: 1.25rem; }
.specs h2 { font-size: var(--t-l); margin: 0.8rem 0 0.4rem; }
.specs dl { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--grid); font-size: var(--t-s); }
.specs dt { color: var(--berm); }
.specs dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

.ontbreekt { border: 1px dashed var(--lijn); border-radius: 6px; padding: 1rem 1.1rem; font-size: var(--t-s); }
.ontbreekt h2 { font-size: var(--t-l); margin-bottom: 0.4rem; }
.ontbreekt p:last-child { margin-bottom: 0; }

/* ---------- model page charts (single series, EU-blauw, no legend) ---------- */
.feiten { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 0.5rem 0 1rem; }
.feit dt { color: var(--berm); font-size: var(--t-s); }
.feit dd { margin: 0; font: 700 var(--t-2xl)/1.1 var(--cond); font-variant-numeric: tabular-nums; }

.kolomgrafiek { background: var(--papier); border-radius: 6px; padding: 1rem 1rem 0.5rem; }
.kolomgrafiek .vlak { position: relative; height: 11rem; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--lijn);
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 25%; }
.kolomgrafiek .kol { flex: 1 1 0; display: flex; justify-content: center; align-items: flex-end; height: 100%; position: relative; }
.kolomgrafiek .kol span { display: block; width: 100%; max-width: 24px; background: var(--eu); border-radius: 4px 4px 0 0; min-height: 1px; }
.kolomgrafiek .kol:hover span, .kolomgrafiek .kol:focus span { background: var(--eu-donker); }
.kolomgrafiek .as { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--berm); padding: 0.35rem 0 0.25rem; font-variant-numeric: tabular-nums; }
.kolomgrafiek .kol .tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--asfalt); color: #fff;
  font-size: var(--t-xs); padding: 0.3rem 0.5rem; border-radius: 4px; white-space: nowrap; z-index: 2; max-width: none; width: auto; min-height: 0; }
.kolomgrafiek .kol:hover .tip, .kolomgrafiek .kol:focus .tip { display: block; }
.kolomgrafiek .kol:focus { outline: none; }
.kolomgrafiek .kol:focus-visible span { outline: 2px solid var(--asfalt); outline-offset: 2px; }

.balken { list-style: none; margin: 0; padding: 1rem 1.1rem; background: var(--papier); border-radius: 6px; display: grid; gap: 0.65rem; }
.balken li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem; font-size: var(--t-s); }
.balken .label { display: flex; justify-content: space-between; gap: 1rem; }
.balken .waarde { font-variant-numeric: tabular-nums; color: var(--berm); white-space: nowrap; }
.balken .spoor { height: 12px; }
.balken .spoor span { display: block; height: 100%; background: var(--eu); border-radius: 0 4px 4px 0; min-width: 2px; }
details.tabel { margin-top: 0.5rem; font-size: var(--t-s); }
details.tabel summary { cursor: pointer; color: var(--eu); }
details.tabel table { border-collapse: collapse; margin-top: 0.5rem; }
details.tabel td, details.tabel th { padding: 0.2rem 1rem 0.2rem 0; text-align: left; font-variant-numeric: tabular-nums; }

.melding { background: var(--papier); border-radius: 6px; padding: 1.25rem; max-width: 40rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero .plaat--xl { animation: plaat-in 420ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes plaat-in { from { transform: translateY(6px) rotate(-1.2deg); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (forced-colors: active) {
  .plaat { border: 2px solid CanvasText; }
  .kolomgrafiek .kol span, .balken .spoor span { background: CanvasText; }
}

/* ---------- performance: distribution of all vehicles, this one highlighted ---------- */
.prestaties { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.prestatie { background: var(--papier); border-radius: 6px; padding: 1rem 1.1rem 0.75rem; }
.prestatie h3 { font-family: var(--sans); font-size: var(--t-s); font-weight: 500; color: var(--berm); }
.prestatie .waarde-groot { font: 700 var(--t-2xl)/1.1 var(--cond); font-variant-numeric: tabular-nums; margin: 0.15rem 0 0.25rem; }
.prestatie .waarde-groot small { font-size: var(--t-l); font-weight: 600; color: var(--berm); }
.prestatie p { font-size: var(--t-s); margin: 0 0 0.75rem; }
.verdeling { margin: 0; }
.verdeling .vlak { position: relative; height: 4.5rem; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--lijn); margin-top: 1.4rem; }
.verdeling .kol { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.verdeling .kol > span:first-child { display: block; width: 100%; max-width: 24px; background: #aab2bd; border-radius: 2px 2px 0 0; }
.verdeling .kol--deze > span:first-child { background: var(--eu); }
.verdeling .kol:hover > span:first-child { background: var(--berm); }
.verdeling .kol--deze:hover > span:first-child { background: var(--eu-donker); }
.verdeling .tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--asfalt); color: #fff;
  font-size: var(--t-xs); padding: 0.25rem 0.45rem; border-radius: 4px; white-space: nowrap; z-index: 3; }
.verdeling .kol:hover .tip { display: block; }
.verdeling .markering { position: absolute; top: -1.4rem; font-size: var(--t-xs); font-weight: 600; color: var(--eu); white-space: nowrap; transform: translateX(-50%); }
.verdeling .markering--links { transform: translateX(-0.5rem); }
.verdeling .markering--rechts { transform: translateX(calc(-100% + 0.5rem)); }
.verdeling .as { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--berm); padding-top: 0.3rem; font-variant-numeric: tabular-nums; }
.prestatie-noot { font-size: var(--t-xs); color: var(--berm); margin-top: 0.75rem; }
