/* Design tokens and shared components, ported from the Claude Design prototype.
   Every number the visitor reads uses the text font (Hanken Grotesk); only the big
   result amount and the decorative 01/02/03 use .display (Instrument Serif). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.a6b899943e31.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.c008db4e8a97.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --h: 162;  /* accent hue */
  --hd: 170; /* dark/ink hue */

  --bg: oklch(0.98 0.006 140);
  --ink: oklch(0.24 0.02 var(--hd));
  --muted: oklch(0.45 0.015 var(--hd));
  --muted-2: oklch(0.56 0.015 var(--hd));
  --accent: oklch(0.52 0.12 var(--h));
  --accent-hover: oklch(0.45 0.12 var(--h));
  --link: oklch(0.42 0.11 var(--h));
  --dark: oklch(0.24 0.03 var(--hd));
  --on-dark: oklch(0.85 0.02 var(--h));
  --tint: oklch(0.95 0.03 var(--h));
  --tint-border: oklch(0.87 0.05 var(--h));
  --card: #fff;
  --border: oklch(0.91 0.012 150);
  --border-strong: oklch(0.88 0.012 150);
  --row-divider: oklch(0.94 0.008 150);
  --table-head: oklch(0.97 0.008 150);
  --error: oklch(0.52 0.17 28);

  --dot-ok: oklch(0.6 0.14 150);
  --dot-warn: oklch(0.74 0.15 70);
  --dot-bad: oklch(0.6 0.19 28);
  --dot-none: oklch(0.88 0.01 150);

  --radius-card: 22px;
  --radius-table: 18px;
  --radius-cta: 20px;
  --radius-result: 16px;
  --radius-input: 12px;
  --radius-pill: 99px;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;

  --gutter: 24px;
  --wide: 1160px;
  --article: 760px;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.035em; }
h2 { font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -0.025em; }
h3 { font-size: 20px; letter-spacing: -0.02em; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

.container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 60px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Header ------------------------------------------------------------- */

.site-header { padding: 20px 0; }
.site-header__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
}
.brand__word { white-space: nowrap; }
.brand__max { color: var(--accent-hover); }
.brand__tld { color: oklch(0.55 0.015 170); font-weight: 500; }
/* Roof line in green, apex dot (header only) in ink; recoloured per use. */
.brand-mark { width: 26px; height: 21px; flex: none; }
.brand-mark path { stroke: var(--mark-line, var(--accent)); stroke-width: var(--mark-stroke, 3.2); }
.brand-mark circle { fill: var(--mark-dot, oklch(0.24 0.02 170)); }
.site-header .brand { gap: 9px; }
.site-footer__brand { margin-bottom: 18px; }
.site-footer__brand .brand { gap: 8px; font-size: 16px; color: oklch(0.32 0.02 170); }
.site-footer__brand .brand-mark { width: 22px; height: 18px; --mark-stroke: 3; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--accent); }

/* --- Buttons and pills -------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15.5px; text-decoration: none;
  padding: 11px 18px; line-height: 1.2;
}
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: oklch(0.3 0.03 var(--hd)); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { background: #fff; color: var(--ink); border: 1px solid var(--border-strong); }
.btn--sm { padding: 8px 16px; font-size: 14.5px; }
.site-nav .btn--dark { color: #fff; padding: 9px 16px; }
/* iPhones zoom into any field under 16px when it's tapped, and stay zoomed; this must
   win over every component's own font size, hence !important. */
@media (max-width: 639px) { select, textarea, input:not([type=range]):not([type=checkbox]):not([type=radio]) { font-size: max(16px, 1em) !important; } }
/* Phones and tablets: no menu (below 1024px it wrapped onto rows of its own); the footer
   and the floating button lead on. Each page starts right under the logo. */
@media (max-width: 1023px) {
  .site-nav { display: none; }
  main > :first-child,
  .site-header--home + main .hero__intro { padding-top: 0; }
}

/* --- Cards and blocks --------------------------------------------------- */

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; }
.card--table { border-radius: var(--radius-table); padding: 0; overflow: hidden; }
.cta-dark { background: var(--dark); color: #fff; border-radius: var(--radius-cta); padding: 26px; }
.cta-dark p { color: var(--on-dark); }
.tint-block {
  background: var(--tint); border: 1px solid var(--tint-border); border-radius: 14px; padding: 18px 20px;
}

/* --- Breadcrumb --------------------------------------------------------- */

.breadcrumb { font-size: 14px; color: var(--muted); margin: 8px 0 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* --- Tables ------------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.data-table th {
  background: var(--table-head); text-align: left; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 12px 16px;
}
.data-table td { padding: 13px 16px; border-top: 1px solid var(--row-divider); }
/* Row headers (first column) read as data, not as column headings. */
.data-table tbody th {
  background: none; font-size: inherit; text-transform: none; letter-spacing: normal;
  color: var(--ink); padding: 13px 16px; border-top: 1px solid var(--row-divider);
}
.data-table .num { text-align: right; white-space: nowrap; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dot-none); }
.dot--ok { background: var(--dot-ok); }
.dot--warn { background: var(--dot-warn); }
.dot--bad { background: var(--dot-bad); }

/* --- Footer ------------------------------------------------------------- */

.site-footer { margin-top: 80px; padding: 36px 0 48px; border-top: 1px solid var(--border); }
/* Phones: narrower side margins, so tables get more room, and a tighter footer. */
@media (max-width: 639px) {
  :root { --gutter: 20px; }
  .site-footer { margin-top: 48px; padding-top: 28px; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer-links__button { padding: 0; border: 0; background: none; font: inherit; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }

/* Cookie banner: Akkoord and Liever niet look the same, refusing is as easy as accepting. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__inner { pointer-events: auto; max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 22px; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-result); box-shadow: 0 12px 32px oklch(0.24 0.03 var(--hd) / 0.18); }
.consent__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.consent__text { margin: 0; font-size: 14.5px; line-height: 1.5; }
.consent__text a { color: var(--link); }
.consent__options { margin: 14px 0 0; padding: 0; border: 0; display: grid; gap: 10px; }
.consent__options[hidden] { display: none; }
.consent__option { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.consent__option input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.consent__option strong { display: block; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.consent__actions .btn { min-width: 116px; }
.consent__settings { padding: 0; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent__settings[hidden], .consent__actions .btn[hidden] { display: none; }
.disclaimer { font-size: 13px; color: var(--muted-2); }

/* --- Floating "back to top" -------------------------------------------- */

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* --- Utilities ---------------------------------------------------------- */

@media (max-width: 499px) { .wide-only { display: none; } } /* e.g. "5 jaar vast" → "5 jaar" */
/* Small tables (rate per period, student debt) fit a phone without sideways scrolling. */
@media (max-width: 499px) {
  .data-table--compact th, .data-table--compact td { padding-left: 8px; padding-right: 8px; }
  .data-table--compact th:first-child, .data-table--compact td:first-child { padding-left: 12px; }
  .data-table--compact th:last-child, .data-table--compact td:last-child { padding-right: 12px; }
  .data-table--compact thead th, .data-table--compact thead th.num { white-space: normal; }
}

.row { display: flex; gap: 10px; align-items: center; }
.row--wrap { flex-wrap: wrap; }
.row--tight { gap: 6px; }
.row--end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.stack--tight { gap: 14px; margin-top: 0; }
.italic { font-style: italic; }
.strong { font-weight: 600; }
.h2-sm { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; margin: 0; }
.no-js .js-only { display: none !important; }

/* --- Pills, tabs, inputs, switch --------------------------------------- */

.pill, .tab {
  border-radius: var(--radius-pill); cursor: pointer; font: inherit; font-weight: 600;
  border: 1px solid var(--border-strong); background: #fff; color: oklch(0.34 0.02 var(--hd));
}
.pill { padding: 11px 18px; font-size: 15.5px; }
.pill--sm { padding: 8px 16px; font-size: 14.5px; }
.pill[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.tab { padding: 9px 15px; font-size: 14.5px; border-color: oklch(0.9 0.012 150); color: oklch(0.42 0.015 var(--hd)); }
.tab[aria-pressed="true"] { border-color: var(--accent); background: oklch(0.94 0.03 var(--h)); color: oklch(0.34 0.09 var(--h)); }

.input {
  width: 100%; padding: 14px 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-input);
  background: #fff; font: inherit; font-size: 16px; color: inherit;
}
.input:focus { outline: 2px solid oklch(0.52 0.12 var(--h) / 0.35); outline-offset: 1px; }
.field-label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.error { font-size: 14px; color: var(--error); font-weight: 600; }
.note { margin: 14px 0 0; font-size: 13.5px; color: oklch(0.5 0.015 var(--hd)); line-height: 1.45; }
.link-button {
  padding: 0; border: 0; background: none; font: inherit; font-style: normal; font-weight: 600;
  color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 4px 0 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: oklch(0.91 0.02 150); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: oklch(0.91 0.02 150); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; height: 26px; width: 26px; margin-top: -10px; border-radius: 99px;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px oklch(0.24 0.02 170 / 0.28); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  height: 20px; width: 20px; border-radius: 99px; background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 2px 8px oklch(0.24 0.02 170 / 0.28); cursor: grab;
}

.slider__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slider__head label { font-size: 16px; font-weight: 600; }
.slider__head output { font-size: 21px; font-weight: 600; line-height: 1; }
.slider--compact .slider__head label { font-size: 14px; color: oklch(0.42 0.015 var(--hd)); }
.slider--compact .slider__head output { font-size: 17px; font-weight: 700; }
.slider__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); }
/* Gross monthly income: centred in the scale, or on its own line in compact sliders. */
.slider__month { text-align: center; color: oklch(0.45 0.015 var(--hd)); font-weight: 500; }
.slider__scale .slider__month { flex: 1; padding: 0 6px; }
.slider__month--line { margin-top: 4px; font-size: 13px; text-align: left; }
@media (max-width: 479px) {
  .slider__scale { flex-wrap: wrap; }
  .slider__scale .slider__month { order: 3; flex-basis: 100%; margin-top: 2px; }
}
.slider__more { margin-top: 8px; }
.slider__more label { display: block; font-size: 14px; color: oklch(0.5 0.015 var(--hd)); margin-bottom: 4px; }

.switch {
  display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600; color: oklch(0.34 0.02 var(--hd));
}
.switch__track { position: relative; display: inline-block; width: 44px; height: 26px; border-radius: 99px; background: oklch(0.86 0.015 150); transition: background 0.15s; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px oklch(0.24 0.02 170 / 0.3); transition: left 0.15s; }
.switch[aria-checked="true"] .switch__track { background: var(--accent); }
.switch[aria-checked="true"] .switch__knob { left: 21px; }

.btn--square { border-radius: var(--radius-input); padding: 14px 20px; font-size: 16px; }
.btn--grow { flex: 1; }
.btn--block { width: 100%; margin-top: 14px; padding: 16px; font-size: 17px; }
.btn:disabled { background: var(--border-strong); color: oklch(0.6 0.015 var(--hd)); cursor: not-allowed; }

/* --- Hero + calculator -------------------------------------------------- */

.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start;
  padding-top: 24px;
}
.hero__intro { padding-top: 24px; }
.hero__title { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; margin: 0; text-wrap: balance; }
.hero__sub { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.25; margin: 12px 0 0; color: oklch(0.3 0.02 var(--hd)); }
.lead { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.5; color: oklch(0.42 0.015 var(--hd)); max-width: 30em; margin: 18px 0 0; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; color: oklch(0.34 0.02 var(--hd)); }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; }

.card--flush { padding: 0; overflow: hidden; box-shadow: 0 20px 50px -30px oklch(0.24 0.04 var(--hd) / 0.5); }
.calc__progress { display: flex; gap: 6px; padding: 18px 24px 0; }
.calc__progress span { height: 4px; flex: 1; border-radius: 99px; background: oklch(0.91 0.02 150); }
.calc__progress .is-done { background: var(--accent); }
.calc__body { padding: 20px 24px 26px; }
.calc__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.5 0.015 var(--hd));
}
.calc__meta span { white-space: nowrap; } /* "Inkomen en leeftijd" moves under the title as a whole */
.calc__step { margin-top: 18px; }
.js .calc__step:not(.is-active) { display: none; }
.no-js .calc__step + .calc__step { border-top: 1px solid var(--row-divider); padding-top: 18px; }
.calc__question { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 14px; }
.calc__question--sm { font-size: 18px; margin: 22px 0 12px; }
.calc__total { margin-left: auto; font-size: 14px; font-style: italic; color: oklch(0.52 0.015 var(--hd)); white-space: nowrap; }
/* On phones the total doesn't fit beside the buttons: its own line, under them. */
@media (max-width: 479px) { .calc__total { flex-basis: 100%; margin-left: 0; } }
.calc__intro { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: oklch(0.42 0.015 170); }
.calc__more { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--tint); border: 1px solid var(--tint-border); }
.calc__more-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.calc__more p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: oklch(0.38 0.02 170); }
.calc__more .btn--block { background: #fff; }
.calc__recap { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 14px; font-size: 14px; font-style: italic; color: oklch(0.52 0.015 var(--hd)); }
.calc__nav { display: flex; gap: 12px; margin-top: 22px; }
.calc__link {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid oklch(0.93 0.01 150); font-size: 15px; font-weight: 600; text-decoration: none;
}
.grid-ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }

/* Long titles wrap to two lines; the Nee/Ja buttons never drop below them. */
.debt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.debt__title { flex: 1 1 0; min-width: 0; font-size: 16.5px; font-weight: 600; }
.debt__head > .row { flex: none; }
.help-link { margin-left: 4px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.debt__amount { margin-top: 6px; }
.debt__amount .slider__head output { font-size: 19px; }

.result { padding: 22px; border-radius: var(--radius-result); background: var(--dark); color: #fff; }
.result__label { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.82 0.03 var(--h)); }
.result__amount { font-size: clamp(44px, 8vw, 62px); line-height: 1.02; margin-top: 6px; }
.result__diff { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: oklch(0.86 0.03 var(--h)); }
.result__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 28px; margin: 18px 0 0;
  padding-top: 18px; border-top: 1px solid oklch(1 0 0 / 0.16);
}
.result__grid dt { font-size: 13.5px; color: oklch(0.82 0.03 var(--h)); }
.result__grid dd { margin: 2px 0 0; font-size: 21px; font-weight: 600; }
.result__toets { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: oklch(1 0 0 / 0.08); font-size: 14px; line-height: 1.45; }
.result__label-a { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid oklch(1 0 0 / 0.16); font-size: 15.5px; line-height: 1.45; }
.result__label-a a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.result__note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: oklch(0.82 0.03 var(--h)); }
.result__label { display: flex; align-items: center; gap: 8px; }
.result__label .brand-mark { width: 15px; height: 12px; --mark-line: oklch(0.78 0.12 var(--h)); --mark-stroke: 3.6; }
.result__disclaimer { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: #fff; }
.hint {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--tint); border: 1px solid var(--tint-border);
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 15.5px;
}
.lead-form { margin-top: 22px; }
.lead-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }

/* --- "Wat kan ik kopen" block -------------------------------------------- */

.buy-block { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; min-height: 230px; padding: clamp(24px, 3.5vw, 36px); }
.buy-block__text { flex: 1 1 300px; min-width: 0; }
.buy-block__text p { margin: 8px 0 0; max-width: 32em; }
.buy-block__controls { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.buy-block__sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 32px; }
.buy-block__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid oklch(0.93 0.01 150); }

/* --- Rate table ----------------------------------------------------------- */

.rates { margin-top: 22px; }
.rates__bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 18px 22px;
  background: oklch(0.975 0.007 150); border-bottom: 1px solid oklch(0.93 0.01 150);
}
.rates__date { flex: 1 1 100%; font-size: 15px; font-weight: 600; }
.rates__filter { display: flex; flex-direction: column; gap: 6px; flex: 1 1 120px; max-width: 220px; }
/* Phones: two filters per row, all the same width; the third doesn't stretch alone. */
@media (max-width: 639px) { .rates__filter { flex: 0 1 calc((100% - 18px) / 2); } }
.rates__select {
  padding: 10px 40px 10px 12px; font-size: 15.5px; cursor: pointer;
  /* Own arrow, 14px in from the edge; the native one sits against it. */
  appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23243532' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
.rates__scope { flex: 1 1 100%; margin: 0; color: var(--muted-2); }
.filter__label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.5 0.015 var(--hd)); }
.rates__scroll { overflow-x: auto; }
.rate-table--grid { min-width: 620px; }
/* The lender stays in view while the rates scroll sideways on phones. */
.rate-table--grid th:first-child, .rate-table--grid td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
.rate-table--grid th:first-child { background: var(--table-head); }
.rate-table th.is-selected, .rate-table td.is-selected { background: oklch(0.95 0.04 var(--h)); }
.rate-table td.is-selected { font-weight: 700; color: oklch(0.3 0.08 var(--h)); }
.rate-table__sort { all: unset; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.rate-table__sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.rate-table th.is-selected .rate-table__sort { color: oklch(0.34 0.09 var(--h)); }
/* Eight rows until "Bekijk alle"; without JavaScript every row stays visible. */
.js .rates:not(.is-all) .rate-row:nth-child(n + 9) { display: none; }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th {
  background: var(--table-head); padding: 14px 22px; text-align: left; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.5 0.015 var(--hd));
}
.rate-table td { padding: 16px 22px; border-top: 1px solid var(--row-divider); font-size: 16.5px; }
.rate-table td:first-child { font-weight: 600; }
.rate-table .num { text-align: right; }
.rates__more {
  width: 100%; padding: 15px 22px; border: 0; border-top: 1px solid var(--row-divider); background: #fff; text-align: left;
  font: inherit; font-size: 15.5px; font-weight: 600; color: var(--link); cursor: pointer;
}
.rates__more:hover { background: oklch(0.98 0.008 150); }
.rates__note { margin: 0; padding: 14px 22px; border-top: 1px solid var(--row-divider); font-size: 14.5px; color: oklch(0.45 0.015 var(--hd)); }
.rates__note.small { font-size: 13px; color: var(--muted-2); }
.arrow-link { display: inline-flex; gap: 8px; margin-top: 16px; font-size: 15.5px; font-weight: 600; text-decoration: none; }

/* --- Explanation + CTA ---------------------------------------------------- */

.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.card--sm { border-radius: var(--radius-table); padding: 24px; }
.card--sm h3 { font-size: 18px; font-weight: 600; margin: 8px 0 0; }
.card--sm p { font-size: 15.5px; margin: 6px 0 0; }
.numeral { font-size: 34px; color: var(--accent); line-height: 1; }
.cta-dark--split {
  border-radius: var(--radius-card); padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; align-items: center;
}
.cta-dark--split p { margin: 12px 0 22px; max-width: 34em; font-size: 16.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16.5px; }
.steps li { display: flex; gap: 14px; align-items: baseline; }
.steps .display { font-size: 24px; color: oklch(0.8 0.08 var(--h)); }

/* --- Wat kan ik kopen ----------------------------------------------------- */

.js .no-js-only { display: none; }
.income { padding-top: 20px; }
/* Every page uses the full width, like the header and footer; running text keeps a
   reading width, aligned to the left edge. */
.income .section > p, .income .note, .income .lead { max-width: 46em; }
.legal > * { max-width: var(--article); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 9px 14px 9px 11px;
  border: 1px solid oklch(0.88 0.012 150); border-radius: var(--radius-pill); background: #fff;
  font-size: 14.5px; font-weight: 600; color: oklch(0.34 0.02 170); text-decoration: none;
}
.back-link:hover { border-color: oklch(0.7 0.05 var(--h)); color: var(--ink); }
.income__title { font-size: clamp(32px, 4.8vw, 50px); }
.income__controls { margin-top: 24px; padding: 20px 22px; }
.income__sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; margin-top: 16px; }
a.pill, a.tab { text-decoration: none; }
.pill[aria-current="page"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.income__result {
  margin-top: 16px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid oklch(0.91 0.012 150);
  display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
}
.income__result-main { font-size: 17px; line-height: 1.45; }
.income__result .arrow-link { margin: 0; }

.segmented { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: var(--radius-pill); background: oklch(0.94 0.01 150); }
.segmented button {
  min-width: 172px; padding: 9px 18px; border: none; border-radius: var(--radius-pill); font: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer; background: transparent; color: oklch(0.45 0.015 170);
}
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px oklch(0.88 0.012 150); }
@media (max-width: 480px) { .segmented { display: flex; } .segmented button { min-width: 0; flex: 1; } }

.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 16px 0 10px; color: oklch(0.45 0.015 170); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.loc-table .dot { margin-right: 4px; }
.sort-btn { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; }
.sort-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sort-btn__arrow { color: oklch(0.72 0.015 170); font-size: 12px; }
th[aria-sort] .sort-btn__arrow { color: oklch(0.42 0.11 var(--h)); }
.no-js .sort-btn { cursor: default; }
.no-js .sort-btn__arrow { display: none; }
.data-table--compact { min-width: 0; }
[data-panel] + [data-panel] { margin-top: 28px; }
.js [data-panel] + [data-panel] { margin-top: 0; }

.income__deep h2 { font-size: 26px; }
.income__deep h3 { margin-top: 32px; }
.income__deep p { font-size: 16.5px; line-height: 1.55; color: oklch(0.38 0.015 170); max-width: 42em; }
.income__cta { margin-top: 18px; padding: 20px 22px; border-radius: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.income__cta p { margin: 4px 0 0; font-size: 15px; color: var(--on-dark); max-width: 32em; }
.income__cta-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.tab[aria-current="true"] { border-color: var(--accent); background: oklch(0.94 0.03 var(--h)); color: oklch(0.34 0.09 var(--h)); }

/* --- Legal pages ---------------------------------------------------------- */

.legal { padding-top: 40px; padding-bottom: 40px; font-size: 16.5px; line-height: 1.6; color: oklch(0.3 0.02 170); }
.legal h1 { margin: 32px 0 0; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.legal > h1:first-child { margin-top: 0; }
.legal h2 { margin: 40px 0 8px; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.legal h3 { margin: 0; font-size: inherit; letter-spacing: normal; color: var(--ink); }
.legal p { margin: 10px 0 0; }
.legal h2 + p, .legal h3 + p { margin-top: 0; }
.legal__lead { font-size: 18px; color: oklch(0.38 0.015 170); }
.legal__draft {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: oklch(0.95 0.06 95); color: oklch(0.32 0.06 80); font-size: 14.5px; line-height: 1.5;
}
.legal__draft strong { flex: none; }
.legal__facts { margin: 12px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 20px; font-size: 15.5px; }
.legal__facts dt { color: oklch(0.5 0.015 170); }
.legal__facts dd { margin: 0; }
.legal__facts--strong { gap: 6px 20px; }
.legal__facts--strong dt { color: var(--ink); font-weight: 600; }
.legal__blocks { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.legal__updated { margin-top: 24px !important; font-size: 14.5px; color: oklch(0.5 0.015 170); }
.legal__back { display: inline-block; margin-top: 32px; font-weight: 600; }
@media (max-width: 480px) { .legal__facts { grid-template-columns: 1fr; gap: 0; } .legal__facts dd { margin-bottom: 8px; } }
mark.todo { background: oklch(0.94 0.08 95); color: inherit; padding: 0 4px; border-radius: 4px; }

/* --- Floating actions on sub-pages (V2 changes §8) ------------------------ */

.float-actions {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.float-actions.is-visible { opacity: 1; pointer-events: auto; }
.float-actions__top {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid oklch(0.86 0.012 150);
  border-radius: var(--radius-pill); background: #fff; color: oklch(0.3 0.02 170); font-size: 18px;
  text-decoration: none; box-shadow: 0 8px 24px -10px oklch(0.24 0.04 170 / 0.4);
}
.float-actions__top:hover { background: oklch(0.96 0.01 150); }
.float-actions__cta {
  display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 28px -10px oklch(0.3 0.08 var(--h) / 0.6);
}
.float-actions__cta:hover { background: oklch(0.47 0.12 var(--h)); color: #fff; }
.site-footer--float { padding-bottom: 104px; }
@media (max-width: 639px) {
  .float-actions {
    left: 0; right: 0; bottom: 0; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid oklch(0.9 0.012 150); box-shadow: 0 -8px 24px -16px oklch(0.24 0.04 170 / 0.4);
  }
  .float-actions__top { flex: none; width: 44px; height: 44px; border-radius: var(--radius-input); box-shadow: none; }
  .float-actions__cta { flex: 1; justify-content: center; height: 44px; padding: 0 16px; border-radius: var(--radius-input); box-shadow: none; }
  .float-actions__arrow { display: none; }
  /* Room for the bar (64px plus the iPhone home indicator), so it never covers the last links. */
  .site-footer--float { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* --- Maps (server-drawn SVG) ---------------------------------------------- */

.map { position: relative; margin: 0; }
.map svg { display: block; width: 100%; height: auto; }
.map__hint, .map-hint { font-size: 13.5px; font-weight: 600; color: oklch(0.42 0.11 var(--h)); }
.map__hint { text-align: center; margin-bottom: 6px; }
.map-card { margin-top: 18px; padding: 16px 12px 14px; }
.map-card .map svg { max-width: 640px; margin: 0 auto; }
.map__area { stroke: #fff; stroke-width: 1; cursor: pointer; transition: opacity 0.15s; }
.map__area:hover { opacity: 0.8; }
.map__area[style] { fill: color-mix(in lab, #24715a var(--tone), #e2f2ea); }
.map__area--empty, .map__area--none { fill: #e6e9e7; }
.map__area--ok { fill: #7cc49a; }
.map__area--warn { fill: #f0b44c; }
.map__area--bad { fill: #e0694f; }
.map a:focus-visible .map__area { stroke: var(--ink); stroke-width: 2.5; }
.map__label text, text.map__label {
  pointer-events: none; text-anchor: middle; font-weight: 700; fill: #1f302b;
  paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3px; stroke-linejoin: round;
}
.map__m2 { font-weight: 600; }
.map__chosen { fill: url(#arcering); stroke: #1f302b; stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
.map__legend { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 13px; color: oklch(0.45 0.015 170); margin-top: 4px; }
.map__scale { width: 160px; height: 8px; border-radius: var(--radius-pill); background: linear-gradient(90deg, #e2f2ea, #24715a); }
.map__tip {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; background: #1f302b; color: #fff;
  padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; white-space: nowrap;
}
.map__tip b { font-size: 14.5px; }
.map__tip-hint { opacity: 0.75; }
[data-map="band"] { margin-top: 12px; }

/* --- Location pages ------------------------------------------------------- */

.back-row { display: flex; flex-wrap: wrap; gap: 8px; }
.back-row .back-link { margin-bottom: 18px; }
/* The map keeps the size it had in the narrow layout; at full width it got too tall. */
.location .map { max-width: 812px; margin: 18px auto 0; }
.location__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cta-card {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 20px;
  padding: 16px 20px; border-radius: 14px; background: oklch(0.95 0.03 var(--h)); border: 1px solid oklch(0.87 0.05 var(--h));
  color: oklch(0.28 0.04 170); text-decoration: none; font-size: 16px; line-height: 1.4;
}
.cta-card__go { padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
.cta-card:hover .cta-card__go { background: oklch(0.47 0.12 var(--h)); }
.location__h2 { font-size: 22px; margin: 28px 0 0; }
.location__facts { max-width: 46em; }
.location__facts h2 { font-size: 22px; }
.location__facts h3 { margin: 18px 0 0; font-size: 17px; }
.location__facts p { line-height: 1.6; }
.location__similar { margin: 8px 0 0; padding-left: 20px; line-height: 1.7; }
.location .legend + .card, .location__h2 + .card { margin-top: 12px; }
.location__cta { margin-top: 36px; border-radius: 20px; padding: 26px; }
.location__cta .income__cta-title { font-size: 20px; letter-spacing: -0.02em; }
.loc-table th[scope="row"] a {
  color: var(--ink); text-decoration: underline; text-decoration-color: oklch(0.7 0.02 var(--hd));
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.loc-table th[scope="row"] a:hover { color: var(--accent); text-decoration-color: currentColor; }
.loc-row.is-chosen th, .loc-row.is-chosen td { background: oklch(0.9 0.06 var(--h)); }
.chosen-card {
  margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: oklch(0.95 0.03 var(--h));
  border: 1px solid oklch(0.87 0.05 var(--h)); display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center;
}
.chosen-card__name { flex: 1 1 180px; }
.chosen-card__label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.42 0.09 var(--h)); }
.chosen-card__title { font-size: 20px; font-weight: 700; margin-top: 2px; }
.chosen-card__key { font-size: 13px; color: oklch(0.45 0.015 170); }
.chosen-card__value { font-size: 18px; font-weight: 700; }

/* --- Search box ----------------------------------------------------------- */

.search { margin-top: 22px; }
.search__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.search__box { position: relative; }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: oklch(0.55 0.015 170); }
.search__input {
  width: 100%; padding: 15px 16px 15px 44px; border: 1px solid oklch(0.86 0.012 150); border-radius: 14px;
  background: #fff; font: inherit; font-size: 16.5px; color: var(--ink);
}
.search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.52 0.12 var(--h) / 0.15); }
.search__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 0; list-style: none;
  background: #fff; border: 1px solid oklch(0.9 0.012 150); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px -16px oklch(0.24 0.04 170 / 0.35);
}
.search__option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; }
.search__option + .search__option { border-top: 1px solid oklch(0.95 0.008 150); }
.search__option[aria-selected="true"] { background: oklch(0.96 0.02 var(--h)); }
.search__name { font-weight: 600; }
.search__sub { color: oklch(0.5 0.015 170); font-size: 14px; }
.search__kind { font-size: 12.5px; font-weight: 600; color: oklch(0.45 0.015 170); }
.search__empty { padding: 12px 16px; color: oklch(0.5 0.015 170); font-size: 14.5px; }

/* --- Location tables on phones: place, price, own money; the rest under the name */

.loc-sub, .label-short { display: none; }
@media (max-width: 639px) {
  .loc-table { min-width: 0; font-size: 14px; }
  .loc-table .col-extra { display: none; }
  .loc-table th, .loc-table td { padding: 10px 8px; }
  .loc-table th:first-child, .loc-table td:first-child { padding-left: 14px; }
  .loc-table th:last-child, .loc-table td:last-child { padding-right: 14px; }
  .loc-table thead th { white-space: normal; }
  .loc-table .sort-btn { flex-wrap: wrap; row-gap: 0; }
  .loc-sub > span { white-space: nowrap; }
  .loc-table .loc-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: oklch(0.5 0.015 170); }
  .loc-table .label-full { display: none; }
  .loc-table .label-short { display: inline; }
  .loc-table .dot { margin-right: 2px; }
  /* Amounts take just their own width (at most "€ 999.000"); the name gets the rest.
     Headers may break between words ("Eigen / geld"), long place names hyphenate. */
  .loc-table th.num, .loc-table td.num { width: 1%; padding-left: 6px; padding-right: 6px; }
  .loc-table th.num:last-child, .loc-table td.num:last-child { padding-right: 14px; }
  .loc-table thead th.num { white-space: normal; }
  .loc-table thead th.num .label-short { white-space: nowrap; } /* "Eigen geld" on one line, the arrow below */
  .loc-table tbody th[scope="row"] a { hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 374px) { .loc-sub > span { white-space: normal; } } /* small Androids (360px) */

/* --- Lead form ------------------------------------------------------------- */

.lead-field { display: block; }
.lead-field .input { width: 100%; }
.lead-field__error { display: block; min-height: 0; margin-top: 4px; font-size: 13px; color: oklch(0.5 0.18 28); }
.lead-field__error:empty { display: none; }
.lead-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.lead-form .cf-turnstile { margin-top: 12px; }
.lead-done { margin-top: 22px; padding: 20px; border-radius: 14px; background: oklch(0.95 0.03 var(--h)); border: 1px solid oklch(0.87 0.05 var(--h)); }
.lead-done:focus { outline: none; }
.lead-done__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.lead-done p { margin: 0; }

/* --- Explainer pages (glossary, articles) ----------------------------------- */

.footer-links--secondary a { font-weight: 500; color: var(--muted); }
.article h3 { margin: 22px 0 4px; font-size: 18px; }
/* Same top as the location pages (back link, breadcrumb); text at reading width. */
.legal.article { max-width: var(--article); padding-top: 0; }
.legal.article > h1:first-child, .legal.article > p:first-child { margin-top: 0; }
.article ul { margin: 10px 0 0; padding-left: 22px; }
.article li + li { margin-top: 4px; }
.article__stand { margin: 8px 0 18px !important; font-size: 14.5px; color: var(--muted-2); }
.table-scroll { overflow-x: auto; margin: 14px 0 4px; border: 1px solid var(--border); border-radius: 12px; }
.content-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.content-table th { background: var(--table-head); text-align: left; font-weight: 600; padding: 10px 14px; }
.content-table td { padding: 10px 14px; border-top: 1px solid var(--row-divider); vertical-align: top; }
.content-table th + th, .content-table td + td { min-width: 110px; }
.faq { margin-top: 6px; }
.faq__item { padding: 4px 0 14px; border-bottom: 1px solid var(--row-divider); }
.faq__item h3 { margin-top: 14px; }
.sources { font-size: 15px; }
.article__cta { margin-top: 40px; padding: 22px; border-radius: 14px; background: var(--tint); border: 1px solid var(--tint-border); }
.article__cta p { margin: 0 0 12px; }
.article__cta-title { font-size: 19px; font-weight: 700; color: var(--ink); }
.article__related { margin-top: 28px; }
.article__related-title { font-weight: 700; color: var(--ink); }
.article__related ul { list-style: none; padding: 0; }
.glossary__topics ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
/* Not the article list style: no indent, no margin between the buttons. */
.article .glossary__topics ul { padding-left: 0; }
.article .glossary__topics li + li, .article .overview__movers li + li, .article .overview__archive li + li { margin-top: 0; }
.glossary__topics a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink); background: #fff; }
.glossary { margin: 8px 0 0; }
.glossary dt { margin-top: 18px; font-weight: 700; color: var(--ink); scroll-margin-top: 90px; }
.glossary dd { margin: 2px 0 0; }
.glossary dt:target, .glossary dt:target + dd { background: oklch(0.96 0.04 95); }
.glossary__topic h2 { scroll-margin-top: 90px; }

/* --- Weekly rate overview ------------------------------------------------------ */

.overview__week { margin: 0 0 6px !important; font-size: 14.5px; font-weight: 600; color: var(--muted-2); }
.overview__rate { font-size: 17px; font-weight: 700; color: var(--ink); }
.overview__delta { margin-left: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted-2); }
.overview__delta--down { color: oklch(0.5 0.13 155); }
.overview__delta--up { color: oklch(0.52 0.16 30); }
.overview__lender { display: block; font-size: 13.5px; color: var(--muted); }
.overview__table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.overview__movers, .overview__archive { list-style: none; padding: 0 !important; }
.overview__movers li, .overview__archive li { padding: 6px 0; border-bottom: 1px solid var(--row-divider); }

/* --- Koopkaart (/koopkaart/) ----------------------------------------------------- */

.kk-steps { margin: 24px 0 0; padding: 22px 24px; background: var(--tint); border-color: var(--tint-border); }
.kk-steps__head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.kk-steps__head h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.kk-badge { display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--tint-border); font-size: 13px; font-weight: 700; color: oklch(0.38 0.1 var(--h)); }
.kk-badge--dark { background: oklch(0.32 0.05 var(--h)); border-color: transparent; color: #fff; }
.kk-steps__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kk-steps__list a { display: flex; gap: 10px; height: 100%; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--border); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; }
.kk-steps__list a:hover { border-color: var(--tint-border); }
.kk-steps__num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 13.5px; font-weight: 700; }
.kk-steps__list .is-done .kk-steps__num { background: var(--accent); font-size: 0; }
.kk-steps__list .is-done .kk-steps__num::after { content: "✓"; font-size: 14px; }
.kk-steps__result { margin: 12px 0 0; font-size: 14.5px; font-weight: 600; color: oklch(0.38 0.1 var(--h)); }

.kk-filter { margin-top: 18px; padding: 20px 22px; }
.kk-filter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kk-filter__head output { font-size: 17px; font-weight: 700; }
.kk-histogram { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin: 14px 8px 0; }
.kk-histogram__bar { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: oklch(0.9 0.012 150); transition: height 0.15s; }
.kk-histogram__bar.is-on { background: var(--dot-ok); }
/* Two range inputs on one track: only the thumbs take clicks. */
.kk-range { position: relative; height: 34px; }
.kk-range input { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.kk-range input::-webkit-slider-thumb { pointer-events: auto; }
.kk-range input::-moz-range-thumb { pointer-events: auto; }
.kk-range input + input::-webkit-slider-runnable-track { background: transparent; }
.kk-range input + input::-moz-range-track { background: transparent; }
.kk-counter { margin: 12px 0 0; font-size: 16px; }

.kk-chips { margin-top: 18px; }
.kk-chip[aria-pressed="false"] { background: #fff; color: var(--muted-2); text-decoration: line-through; text-decoration-color: oklch(0.8 0.01 150); }
.kk-chips__all { margin-top: 8px; gap: 18px; }
.kk-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--link); cursor: pointer; }
.kk-map .map__area.is-off { fill: #e6e9e7; }

.kk-table-wrap { position: relative; }
.kk-table td, .kk-table th { white-space: nowrap; }
/* Keeps the visually hidden "In je koopkaart" inside the scroll box (no page-wide scroll). */
.kk-table-wrap .table-scroll { position: relative; }
.kk-blur { filter: blur(5px); color: var(--muted); user-select: none; }
.kk-table th a { color: inherit; }
.income .section > .kk-places { max-width: none; margin: 10px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.kk-row--locked th { color: var(--muted); }
.income .section > .kk-more { max-width: none; margin: 4px 0 0; text-align: center; }
.kk-more a { font-weight: 700; color: var(--link); text-decoration: none; }
.kk-table-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }

.kk-gate { margin-top: 36px; padding: clamp(22px, 3.5vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; scroll-margin-top: 20px; }
.kk-gate h2 { margin: 12px 0 0; font-size: clamp(24px, 3vw, 30px); color: #fff; }
.kk-gate__list { margin: 16px 0 0; padding-left: 20px; color: var(--on-dark); line-height: 1.5; }
.kk-gate__list li + li { margin-top: 6px; }
.kk-form { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; }
.kk-form__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.kk-form__step[hidden] { display: none; }
.kk-form__title { padding: 0; margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.kk-form .income__sliders { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
/* The monthly figure under the income sliders, readable on its own. */
.kk .kk-month { margin-top: 2px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.kk .slider--compact .slider__head label { color: var(--ink); font-size: 15px; }
.kk-form__ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.kk-form__ages .field-label { font-size: 14px; }
.kk-privacy { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; line-height: 1.5; color: var(--ink); }
.kk-privacy p { margin: 0; color: var(--ink); }
.kk-privacy__title { font-weight: 700; }
.kk-privacy ul { margin: 6px 0 6px; padding-left: 18px; }
.kk-privacy li + li { margin-top: 4px; }
.kk-form .cf-turnstile { margin-top: 12px; }
.kk-form .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.kk-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: oklch(0.96 0.06 95); border: 1px solid oklch(0.88 0.09 90); font-size: 14px; line-height: 1.45; }
.kk-extras { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.kk-extras summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.kk-extras[open] summary { margin-bottom: 8px; }
.kk-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.kk-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.kk-consent { margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--tint); }
.kk-back { margin-top: 10px; }
.kk-known { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.kk-known summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--link); }
.kk-known p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.kk-known__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kk-known__row .lead-field { flex: 1 1 200px; }
.kk-known__row .btn { flex: none; }
.kk-known .kk-known__message { color: var(--ink); font-weight: 600; }
.kk-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.kk-progress__bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.kk-progress__bar span { height: 5px; border-radius: 99px; background: var(--border-strong); }
.kk-progress__bar .is-done { background: var(--accent); }
.kk-progress__text { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.kk-report:focus { outline: none; }
.kk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.kk-stat { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.kk-stat__label { display: block; font-size: 13.5px; color: var(--muted); }
.kk-stat__value { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; }
.kk-banner { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--tint); border: 1px solid var(--tint-border); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.kk-banner p { margin: 0; flex: 1 1 100%; font-weight: 600; }
.kk-banner__slider { flex: 1 1 260px; }
.kk-banner .segmented { margin-top: 0; }
.kk-report__map .map-card { margin-top: 16px; }
.kk-provinces { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.kk-prov { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.kk-prov summary { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.kk-prov summary::-webkit-details-marker { display: none; }
.kk-prov__name { font-weight: 700; }
.kk-prov__name::before { content: "▸"; margin-right: 6px; color: var(--muted-2); }
.kk-prov[open] .kk-prov__name::before { content: "▾"; }
.kk-prov__fig { font-weight: 600; font-size: 15px; }
.kk-prov__sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.kk-prov .table-scroll { margin: 0 12px 12px; }
.kk-report__end { margin-top: 24px; }
.kk-report__end p { margin: 6px 0 0; }

@media (max-width: 819px) {
  .kk-steps__list { grid-template-columns: 1fr; }
  .kk-gate { grid-template-columns: 1fr; }
  .kk-stats { grid-template-columns: repeat(2, 1fr); }
  .kk-prov summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kk-prov__name { grid-column: 1 / -1; }
}
@media (max-width: 639px) { .kk-table [data-out="band-text"] { display: none; } }
