/* ================================================================
   KENTEKENRADAR — SITE.CSS
   Dutch Auto Dashboard: kentekenplaat-logo, Barlow Condensed headings,
   scoreboard stats, authoritative data-first layout.
   ================================================================ */

/* ----------------------------------------------------------------
   1. Custom properties
   ---------------------------------------------------------------- */
:root {
  --clr-brand:    #0D1B2A;
  --clr-brand-d:  #07111B;
  --clr-yellow:   #FFC200;
  --clr-yellow-d: #E6AE00;
  --clr-bg:       #EEF2F7;
  --clr-surface:  #FFFFFF;
  --clr-text:     #18273A;
  --clr-muted:    #5A6A7E;
  --clr-border:   #DDE3EC;
  --clr-final:    #16A34A;
  --clr-prov:     #D97706;
  --clr-ev:       #2563EB;

  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-plate:   'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
  --font-sans:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  --max-w:     1200px;
  --nav-h:     62px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-card: 0 2px 8px rgba(0,0,0,.07);
}

/* ----------------------------------------------------------------
   2. Reset & base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
}

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

a { color: var(--clr-brand); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--clr-yellow-d); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-brand);
  letter-spacing: .01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }

ul { list-style: none; }

/* ----------------------------------------------------------------
   3. Accessibility
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--clr-yellow);
  color: var(--clr-brand);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

/* ----------------------------------------------------------------
   4. Layout
   ---------------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.page-main { padding: 2rem 0 3rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-auto-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-auto-side { grid-template-columns: 2fr 1fr; }
}

/* ----------------------------------------------------------------
   5. Header & nav
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-yellow);
  border-bottom: 3px solid var(--clr-brand);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Block AdSense auto-ads from injecting into the sticky header */
.site-header ins,
.site-header ins.adsbygoogle,
.site-header iframe[id*="aswift"],
.site-header div[id*="google_ads"],
.site-header div[data-google-query-id],
.site-header > div:not(.container) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 0;
}

/* ── Logo ─────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 1.75rem;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .nav-logo-img { height: 28px; }
}

/* ── Nav links ───────────────────────────────────────── */
.nav-menu {
  display: none;
  align-items: center;
  gap: .2rem;
  flex: 1;
}
@media (min-width: 768px) {
  .nav-menu { display: flex; }
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: .4rem .85rem;
  color: rgba(13,27,42,.75);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--clr-brand); background: rgba(0,0,0,.07); }
.nav-link.active { color: var(--clr-brand); background: rgba(0,0,0,.1); }
.nav-link:focus-visible { outline-color: var(--clr-brand); }

/* Dropdown */
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav-dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s ease .2s, opacity .1s ease .1s;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 190px;
  z-index: 200;
  border: 1px solid var(--clr-border);
}

/* Transparante brug over de 6px gap — overflow:hidden is weggelaten zodat deze brug werkt */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.nav-dropdown a {
  display: block;
  padding: .6rem 1rem;
  color: var(--clr-text);
  text-decoration: none;
  font-size: .875rem;
  border-left: 3px solid transparent;
  transition: background .12s, border-color .12s;
}
.nav-dropdown a:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.nav-dropdown a:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.nav-dropdown a:hover { background: var(--clr-bg); border-left-color: var(--clr-yellow); }
.nav-dropdown a.sub {
  padding-left: 1.75rem;
  font-size: .8125rem;
  color: var(--clr-muted);
}
.nav-dropdown a.sub:hover { color: var(--clr-text); }

.nav-mobile a.sub.deep {
  padding-left: 4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
@media (min-width: 768px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-brand);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.nav-mobile {
  display: none;
  background: var(--clr-brand-d);
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: .75rem 1.5rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .9375rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-family: var(--font-body);
}
.nav-mobile a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-mobile a.sub { padding-left: 2.5rem; color: rgba(255,255,255,.55); font-size: .875rem; }


/* Section heads inside page-main */
.section-head { margin-bottom: 1.25rem; }
.section-head h2 {
  font-size: 1.2rem;
  color: var(--clr-brand);
  margin-bottom: .25rem;
}
.section-head p {
  font-size: .8125rem;
  color: var(--clr-muted);
  margin: 0;
}
.section-divider {
  border: none;
  border-top: 2px solid var(--clr-border);
  margin: 2.25rem 0 2rem;
}

/* ----------------------------------------------------------------
   6. Hero
   ---------------------------------------------------------------- */
/* Gemeenschappelijke selector voor alle paginakoppen (hero + compacte subheaders) */
.subheader { background: var(--clr-brand); color: #fff; }

.hero {
  background: var(--clr-brand);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture — verwijzing naar wegdek/raster */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,194,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,194,0,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-yellow);
  margin-bottom: .6rem;
}

.hero-title {
  color: #fff;
  margin-bottom: .75rem;
}

.hero-sub {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  max-width: 520px;
}

.hero-search {
  display: flex;
  gap: .5rem;
  max-width: 560px;
}

.hero-search input {
  flex: 1;
  padding: .75rem 1.1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: border-color .15s, background .15s;
}
.hero-search input::placeholder { color: rgba(255,255,255,.4); }
.hero-search input:focus {
  outline: none;
  border-color: var(--clr-yellow);
  background: rgba(255,255,255,.13);
}

.btn-search {
  padding: .75rem 1.4rem;
  background: var(--clr-yellow);
  color: var(--clr-brand);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9375rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-search:hover { background: var(--clr-yellow-d); color: var(--clr-brand); }

/* ----------------------------------------------------------------
   7. Stats strip — scoreboard: donker met gele getallen
   ---------------------------------------------------------------- */
.stats-strip {
  background: var(--clr-brand-d);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* 6-column variant: show as 2×3 on medium, 1×6 on wide */
@media (min-width: 1024px) {
  .stats-inner--6 { grid-template-columns: repeat(6, 1fr); }
}
/* In 3-column mode every 3rd item sits at the right edge — no border there */
@media (max-width: 1023px) {
  .stats-inner--6 .stat-item:nth-child(3n) { border-right: none; }
}

.stat-item {
  padding: 1.4rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-yellow);
  line-height: 1.05;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}

.stat-value em {
  color: #fff;
  font-style: normal;
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: .3rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.stat-meta {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  color: rgba(255,255,255,.28);
  margin-top: .15rem;
}

/* Stats inside white cards — override the dark-strip colours */
.card .stat-label { color: var(--clr-muted); }
.card .stat-value { color: var(--clr-brand); font-size: clamp(1rem, 2vw, 1.3rem); }
.card .stat-item  { border-right-color: var(--clr-border); }

/* ----------------------------------------------------------------
   8. Cards — gele topbalk als visueel accent
   ---------------------------------------------------------------- */
.card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border-top: 3px solid var(--clr-yellow);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--clr-border);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-brand);
  letter-spacing: .01em;
}

.card-subtitle {
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--clr-muted);
}

.card-body { padding: 1.25rem; }

.card-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--clr-border);
  background: #fafbfc;
}

.link-more {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.link-more:hover { color: var(--clr-yellow-d); text-decoration: none; }
.link-more::after { content: '→'; }

/* ----------------------------------------------------------------
   9. Registration & ranking tables
   ---------------------------------------------------------------- */
.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: .9375rem;
}

.reg-table thead th {
  text-align: left;
  padding: .5rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-muted);
  border-bottom: 2px solid var(--clr-border);
  white-space: nowrap;
  font-family: var(--font-body);
}

.reg-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: middle;
}
.reg-table tbody tr:last-child td { border-bottom: none; }
.reg-table tbody tr:hover { background: #f7f9fb; }
.reg-table tbody tr.row-link { cursor: pointer; }
.reg-table tbody tr.row-link:hover { background: #eef2f7; }

.reg-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.reg-table .rank { color: var(--clr-muted); font-size: .875rem; width: 2rem; }
.reg-table .pct-col { font-size: .8rem; font-weight: 400; width: 3.5rem; padding-left: .25rem; }
.reg-table .model-name { font-weight: 600; }
.reg-table .model-make { font-size: .8125rem; color: var(--clr-muted); font-weight: 400; }

/* Inline bar */
.inline-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.inline-bar-track {
  flex: 1;
  height: 4px;
  background: var(--clr-border);
  border-radius: 3px;
  overflow: hidden;
  min-width: 40px;
}
.inline-bar-fill {
  height: 100%;
  background: var(--clr-yellow);
  border-radius: 3px;
}

.badge-prov {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .1em .45em;
  border-radius: 99px;
  background: #FEF3C7;
  color: var(--clr-prov);
  vertical-align: middle;
  font-family: var(--font-body);
}
.badge-final {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .1em .45em;
  border-radius: 99px;
  background: #DCFCE7;
  color: var(--clr-final);
  vertical-align: middle;
  font-family: var(--font-body);
}

/* ----------------------------------------------------------------
   10. Trend chart (SVG server-rendered)
   ---------------------------------------------------------------- */
.trend-chart-wrap {
  width: 100%;
  overflow: hidden;
}
.trend-chart-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------------
   11. Fleet / distribution bar chart
   ---------------------------------------------------------------- */
.dist-list { display: flex; flex-direction: column; gap: .6rem; }

.dist-item { display: flex; flex-direction: column; gap: .25rem; }

.dist-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  font-family: var(--font-body);
}
.dist-item-label { font-weight: 500; }
.dist-item-count { font-variant-numeric: tabular-nums; color: var(--clr-muted); font-size: .8125rem; }

.dist-track {
  height: 7px;
  background: var(--clr-border);
  border-radius: 4px;
  overflow: hidden;
}
.dist-fill {
  height: 100%;
  background: var(--clr-yellow);
  border-radius: 4px;
}
.dist-fill.ev      { background: var(--clr-ev); }
.dist-fill.diesel  { background: #64748B; }
.dist-fill.benzine { background: #F97316; }
.dist-fill.hybride { background: #16A34A; }

/* ----------------------------------------------------------------
   12. Autocomplete dropdown
   ---------------------------------------------------------------- */
.autocomplete-wrap {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 0;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  z-index: 500;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.autocomplete-item {
  display: block;
  padding: .65rem 1rem;
  text-decoration: none;
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: .9375rem;
  border-bottom: 1px solid var(--clr-border);
  transition: background .1s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.ac-focused { background: var(--clr-bg); }
.autocomplete-item mark {
  background: none;
  color: var(--clr-brand);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   12b. Makes grid (modellen overzicht)
   ---------------------------------------------------------------- */
.makes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .4rem .75rem;
}
@media (min-width: 580px)  { .makes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .makes-grid { grid-template-columns: repeat(3, 1fr); } }

.makes-letter-head {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-yellow);
  border-bottom: 2px solid var(--clr-yellow);
  padding-bottom: .2rem;
  margin-top: 1.5rem;
  line-height: 1.2;
}
.makes-letter-head:first-child { margin-top: 0; }

.make-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .65rem .875rem;
  background: var(--clr-surface);
  border-radius: var(--radius-sm);
  border-top: 2px solid var(--clr-yellow);
  text-decoration: none;
  color: var(--clr-text);
  font-size: .9375rem;
  box-shadow: var(--shadow-sm);
  transition: background .12s, color .12s;
}
.make-item:hover { background: var(--clr-brand); color: #fff; }
.make-item:hover .make-count { color: rgba(255,255,255,.5); }

.make-name { font-weight: 600; }
.make-count { color: var(--clr-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ----------------------------------------------------------------
   12c. Sort toggle
   ---------------------------------------------------------------- */
.sort-toggle {
  display: inline-flex;
  gap: 2px;
  background: var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.sort-btn {
  padding: .3rem .85rem;
  background: none;
  border: none;
  border-radius: calc(var(--radius-sm) - 1px);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.sort-btn.active {
  background: #fff;
  color: var(--clr-brand);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* ----------------------------------------------------------------
   13. Ad slot
   ---------------------------------------------------------------- */
.ad-slot {
  min-height: 90px;
  background: #f5f7fa;
  border: 1px dashed var(--clr-border);
  border-radius: var(--radius-md);
  margin: 0;
}
.ad-slot .adsbygoogle { display: block; width: 100%; }

/* ----------------------------------------------------------------
   13. Consent banner
   ---------------------------------------------------------------- */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--clr-brand);
  color: rgba(255,255,255,.9);
  z-index: 9000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  padding: 1rem 0;
  font-size: .9rem;
  border-top: 2px solid rgba(255,194,0,.4);
}
.consent-banner.hidden { display: none; }

.consent-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.consent-text { flex: 1; min-width: 200px; line-height: 1.5; font-family: var(--font-body); }
.consent-text a { color: var(--clr-yellow); }

.consent-buttons {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-consent-accept {
  padding: .55rem 1.3rem;
  background: var(--clr-yellow);
  color: var(--clr-brand);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .875rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.btn-consent-accept:hover { background: var(--clr-yellow-d); }

.btn-consent-decline {
  padding: .55rem 1.3rem;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .875rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.btn-consent-decline:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ----------------------------------------------------------------
   14. Footer
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--clr-brand-d);
  color: rgba(255,255,255,.65);
  padding: 2.75rem 0 1.5rem;
  margin-top: 3rem;
  font-size: .875rem;
  font-family: var(--font-body);
  border-top: 3px solid rgba(255,194,0,.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
  font-weight: 700;
}

.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }

.footer-col a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .12s;
}
.footer-col a:hover { color: var(--clr-yellow); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}

/* ----------------------------------------------------------------
   15. Section header
   ---------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--clr-brand);
}

/* ----------------------------------------------------------------
   16a. View tabs (jaar / maand / dag switch on model page)
   ---------------------------------------------------------------- */
.view-tabs { display: flex; gap: .2rem; }
.tab-btn {
  border: 1px solid var(--clr-border);
  background: transparent;
  padding: .25rem .65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--clr-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.tab-btn:hover  { background: var(--clr-bg); color: var(--clr-brand); }
.tab-btn.active { background: var(--clr-yellow); color: var(--clr-brand); border-color: var(--clr-yellow-d); }
.view-panel[hidden] { display: none !important; }

/* Colour swatch (inline square before label) */
.color-swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.15);
  vertical-align: middle;
  margin-right: .3rem;
}

/* ----------------------------------------------------------------
   16. Utilities & misc
   ---------------------------------------------------------------- */
.text-muted { color: var(--clr-muted); }
.text-sm    { font-size: .875rem; }
.text-xs    { font-size: .8125rem; }
.text-right { text-align: right; }
.font-mono  { font-family: var(--font-mono); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ----------------------------------------------------------------
   17. Chart tooltip
   ---------------------------------------------------------------- */
.chart-tip {
  position: fixed;
  background: #1e293b;
  color: #f8fafc;
  padding: .25rem .625rem;
  border-radius: .25rem;
  font-size: .75rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.chart-pt { cursor: crosshair; }

/* ----------------------------------------------------------------
   18. Responsive overrides
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 1.1rem 1rem;
  }
  .stat-item:last-child { border-bottom: none; }

  .hero { padding: 2.25rem 0 2rem; }
  .hero-search { flex-direction: column; }
  .hero-search input { width: 100%; }

  .card-head { flex-direction: column; gap: .25rem; }
}

@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
