:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --text: #1c2321;
  --muted: #5b6460;
  --line: #dedbd2;
  /* Edges of inputs and option buttons: ≥ 3:1 against the card and the page (WCAG 1.4.11). */
  --control: #7d847f;
  --brand: #1f5f4a;
  --brand-ink: #ffffff;
  --brand-soft: #e3efe9;
  /* Only for "this changes" signals (warnings); ≥ 4.5:1 on --warn-bg. */
  --accent: #a24a23;
  --warn-bg: #fbf0e6;
  --warn-line: #e5b48f;
  --good: #1f7a4d;
  --bad: #a3361f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 24px rgba(20, 30, 25, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Only for code (the embed snippet) and the number plate; amounts use --font with tabular figures. */
  --num: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
  /* Native controls (date picker icon, select popup, scrollbars) follow the theme, so they keep their contrast. */
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Colour pairs are checked in test/site.test.js (WCAG 1.4.3 and 1.4.11); a new text colour fails it until listed there. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121615; --surface: #1a201e; --surface-2: #222a27; --text: #e8ece9; --muted: #a2aca7; --line: #2e3734;
    --control: #6b7771; --brand: #5fbf98; --brand-ink: #0d1a14; --brand-soft: #1d2f28; --accent: #e08a5f;
    --warn-bg: #2b2119; --warn-line: #7a4f33; --good: #6fd19f; --bad: #f08a6f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #121615; --surface: #1a201e; --surface-2: #222a27; --text: #e8ece9; --muted: #a2aca7; --line: #2e3734;
  --control: #6b7771; --brand: #5fbf98; --brand-ink: #0d1a14; --brand-soft: #1d2f28; --accent: #e08a5f;
  --warn-bg: #2b2119; --warn-line: #7a4f33; --good: #6fd19f; --bad: #f08a6f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
}

/* Type: one scale, 13/14/16/18/20/25/32/48 px in rem, weight at most 700 (test/site.test.js). */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* A long Dutch word ("overdrachtsbelasting" in a heading) wraps at 200% text instead of widening the page. */
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 var(--font); overflow-wrap: break-word;
  /* Keep the footer at the bottom of the window on short pages, such as a wizard step. */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* Read by screen readers, not shown (the wizard's result line, ui.js). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::placeholder { color: var(--muted); opacity: 1; }
/* No sliding or growing for visitors who ask their device for less motion (WCAG 2.3.3; ui.js jump() scrolls without it too). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
/* Calculator pages: hero, wizard and what follows the result share one centred column. */
.wrap.col { max-width: 672px; }

/* header / footer (generated by build.js) */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 700; letter-spacing: -.02em; font-size: 1.125rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.logo-mark { width: 28px; height: 28px; flex: none; color: var(--brand); }
.logo-mark path { stroke: var(--brand-ink); }
.nav { display: flex; gap: 0 18px; flex-wrap: wrap; font-size: 1rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 12px 0; min-height: 44px; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }
/* Phones: one 56 px row, so the wizard's question is above the fold. Uitleg and Bronnen are in the footer. */
@media (max-width: 599px) {
  .site-header .wrap { min-height: 55px; } /* plus the 1 px border; at 200% text the menu wraps under the logo instead of off the screen */
  .nav a:not(:first-child) { display: none; }
}
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 20px 0 36px; color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.site-footer p { margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-nav a { color: var(--text); text-decoration: none; padding: 12px 0; min-height: 44px; min-width: 44px; }
.foot-nav a:hover { text-decoration: underline; }
.foot-note strong { color: var(--text); }
.site-footer .foot-maker a { color: var(--muted); }
.foot-tagline { display: block; }
.foot-consent .btn-link { color: var(--muted); font-weight: 500; padding: 4px 0; }
/* over.html#colofon: the company details as a two-column list (stacked on phones). */
.colofon { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 16px; }
.colofon dt { color: var(--muted); }
.colofon dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .colofon { grid-template-columns: 1fr; gap: 0; } .colofon dd { margin-bottom: 8px; } }

/* hero */
.hero { padding: 36px 0 20px; }
.eyebrow { color: var(--muted); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; max-width: 30ch; text-wrap: balance; }
h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 36px 0 10px; line-height: 1.25; }
h3 { font-size: 1.125rem; margin: 20px 0 6px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; margin: 0; }
/* Rules year, checked date and a link to the sources: plain text, below the wizard on a calculator. A tick would read as a certification. */
.checked { font-size: .875rem; color: var(--muted); margin: 14px 0 0; }
.wizard + .checked { max-width: 640px; margin: 14px auto 0; }
.cta-top { margin: 16px 0 0; }
.btn-soft { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.btn-soft:hover { text-decoration: underline; }
button.btn-soft { border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* calculator layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 10px; font-size: 1rem; padding: 0; }
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 4px; }
.hint { display: block; color: var(--muted); font-size: .875rem; margin-top: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
input[type="text"], input[type="number"], input[type="date"], input[type="month"], select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--control);
  border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
/* A focused field gets a ring in the brand colour (≥ 3:1 on the card, WCAG 2.4.7 and 1.4.11), also when clicked. */
input:focus, select:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
.money { position: relative; }
.money::before { content: "€"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.money input { padding-left: 28px; }
.pct { position: relative; }
.pct::after { content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pct input { padding-right: 30px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--control); border-radius: 10px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
/* flex: none on a control in a flex row: a label that wraps on a phone would shrink the box otherwise. */
.choice input { margin-top: 4px; accent-color: var(--brand); flex: none; }
.choice small { display: block; color: var(--muted); }
/* The whole label is the touch target: at least 44px high on phones. */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; margin: 0; padding: 10px 0; min-height: 44px; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.btn-link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--brand); min-height: 44px; }

/* results: amounts in the text font with tabular figures, never in the code font */
.big { font-family: var(--font); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 4px 0 6px;
  font-variant-numeric: lining-nums tabular-nums; }
.big.good { color: var(--good); }
.res-label { color: var(--muted); font-size: 1rem; font-weight: 600; }
.sub { color: var(--muted); font-size: .875rem; margin: 0; }
table.lines { width: 100%; border-collapse: collapse; font-size: .875rem; margin-top: 8px; }
table.lines td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
/* At 200% text the amount column and a long word in the label ("hypotheekakte") are wider than the card: the label may break inside a word, so the table never leaves its card. */
table.lines td:first-child { overflow-wrap: anywhere; }
table.lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
/* The amount stays on one line, a note under it wraps (it made the vermogensgrenzen table 672px wide on a phone). */
table.lines td:last-child .hint, table.timeline td:nth-child(n+2) .hint { white-space: normal; }
/* Headers line up with their column (a browser centres them), so a 3-column table still reads on a phone. */
table.lines th { text-align: left; vertical-align: bottom; }
table.lines th:last-child { text-align: right; }
table.lines tr.total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--text); }
.tag { display: inline-block; font-size: .8125rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; background: var(--surface-2); color: var(--muted); }
.tag.ded { background: var(--brand-soft); color: var(--brand); }
.notice { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 1rem; }
.notice > strong:first-child { display: block; }
.notice.ok { border-color: var(--brand); background: var(--brand-soft); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.compare > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.compare .v { font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 10px; margin: 10px 0 4px; }
.bar-row { display: grid; grid-template-columns: 8.5em 1fr 6.5em; gap: 10px; align-items: center; font-size: .875rem; }
.bar-track { background: var(--surface-2); border-radius: 6px; height: 22px; position: relative; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 6px; transition: width .25s ease; }
.bar-fill.alt { background: var(--accent); }
.bar-val { text-align: right; font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .bar-row { grid-template-columns: 1fr 6.5em; } .bar-row > span:first-child { grid-column: 1 / -1; } }
/* wizard */
.wizard { max-width: 640px; margin: 0 auto; padding: 24px; }
@media (max-width: 599px) {
  h1 { font-size: 1.5625rem; }
  .lead { font-size: 1rem; }
  .hero { padding: 16px 0 14px; }
  .wizard { padding: 16px; }
}
.wz-progress { color: var(--muted); font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.wz-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.wz-bar > span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.wz-q { font-size: 1.25rem; line-height: 1.3; margin: 0 0 16px; }
.wz-q:focus { outline: none; }
.wz-q label { font: inherit; margin: 0; display: inline; }
.wz-step select, .wz-step .money { margin-bottom: 4px; }
.option { position: relative; display: block; width: 100%; text-align: left; font: inherit; font-weight: 600; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--control); border-radius: 12px; padding: 14px 44px 14px 16px; cursor: pointer; min-height: 56px; }
.option::after { content: "›"; content: "›" / ""; position: absolute; right: 18px; top: 50%; transform: translateY(-52%); font-size: 1.5625rem; font-weight: 400; color: var(--muted); }
.option small { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; margin-top: 2px; }
.option:hover, .option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
/* A rare way out (kosten koper "Iets anders"): same control, less weight than the main answers. */
.option.option-quiet { background: transparent; border-style: dashed; font-weight: 500; }
.option:hover::after, .option[aria-pressed="true"]::after { color: var(--brand); }
.wz-error { color: var(--bad); font-weight: 600; font-size: .875rem; margin: 10px 0 0; min-height: 0; }
.wz-error:empty { display: none; }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.btn { font: inherit; font-weight: 700; color: var(--brand-ink); background: var(--brand); border: 0; border-radius: 10px;
  padding: 12px 22px; min-height: 46px; cursor: pointer; margin-left: auto; }
.btn:hover { filter: brightness(1.08); }
.res-label:focus { outline: none; }
/* Bouwjaarcheck: the year with its conclusions beside it (stacked on a phone). */
.year-result { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 10px 0 14px; }
.year-result .result-big { flex: none; margin: 0; }
.year-facts { flex: 1 1 240px; }
.year-facts p { margin: 0; }
.year-facts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
/* The one number a visitor came for: large, in the brand colour, on a soft panel. */
.result-big { font-size: 3rem; color: var(--brand); background: var(--brand-soft); border-radius: 12px;
  padding: 16px 20px 18px; margin: 10px 0 14px; overflow-wrap: anywhere; }
.result-big.good { color: var(--good); }
.result-big.over { color: var(--accent); background: var(--warn-bg); }
.result-line { margin: 0 0 6px; font-size: 1.125rem; }
/* Under the result: which rules year the number rests on, with a link to the sources. */
.result-src { color: var(--muted); font-size: .875rem; margin: 8px 0 0; }
/* Dropdowns ("Hoe komen we aan dit getal?"): the marker is a chevron inside the column, not a ▶ outside it. */
details.how { border-top: 1px solid var(--line); margin-top: 18px; }
details.how + details.how { margin-top: 0; }
details.how > summary { cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 8px 0; }
details.how > summary::-webkit-details-marker { display: none; }
/* The summary is a flex row, where break-word does not shrink a long word ("Overdrachtsbelasting"): anywhere does. */
details.how > summary { overflow-wrap: anywhere; }
details.how > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: -4px 6px 0 auto; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; }
details.how[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.how h3 { font-size: 1rem; margin: 16px 0 6px; }
/* bronnen.html: stacked dropdowns, one per topic; the source list itself is generated by build.js */
details.sources, details.stack { margin-top: 0; }
details.sources .count { display: inline-block; min-width: 1.6em; text-align: center; font-size: .8125rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: var(--brand-soft); color: var(--brand); }
.source-list { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 10px; }
.source-list li { overflow-wrap: anywhere; }
.source-list .hint { margin-top: 1px; }
.wz-restart { margin: 18px 0 0; }
.wz-restart .btn-link { font-weight: 500; color: var(--muted); text-decoration: none; }
.wz-restart .btn-link:hover { color: var(--text); text-decoration: underline; }
.big .per { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
/* Dutch number plate look for the kenteken field */
input.plate { font: 700 1.5625rem/1.2 var(--num); text-transform: uppercase; letter-spacing: .08em; text-align: center; max-width: 260px;
  background: #f4c51b; color: #111; border: 2px solid #111; border-left: 18px solid #1f3f9b; }
input.plate::placeholder { color: rgba(17, 17, 17, .7); font: 600 1rem var(--font); text-transform: none; letter-spacing: 0; }
.no-plate { margin: 14px 0 0; }
.status-note { font-size: .875rem; color: var(--muted); margin: 10px 0 0; }
#carry { margin: 0 0 12px; }
.status-note .btn-link { min-height: 0; padding: 0; }
.next-plain { margin: 8px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.result-actions .btn-soft { padding: 8px 12px; }
.embed .result-actions { display: none; }
/* Every table with a header row sits in one (build.js scrollTables, the calculators' scripts; test/site.test.js), so a
   table too wide for a phone scrolls in its own box. The box takes the table's outer margins. */
.table-scroll { overflow-x: auto; }
.table-scroll > table.lines { margin-top: 0; }
h3 + .table-scroll { margin-top: 8px; }
.prose .table-scroll { margin: 12px 0; }
.prose .table-scroll > table { margin: 0; }
table.timeline th { text-align: left; font-size: .8125rem; color: var(--muted); font-weight: 600; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); }
table.timeline th:nth-child(n+2), table.timeline td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
table.timeline td { padding-right: 8px; }
table.timeline td .hint { margin-top: 1px; }
.next-steps { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
.next-steps h3 { font-size: 1rem; margin: 14px 0 8px; }
.next-steps ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.next-steps li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.next-steps li .hint { margin-top: 2px; }
/* The label on its own line, in line with the link: on a phone it wrapped there anyway, a little indented. */
.next-steps li .tag { display: block; width: fit-content; margin: 4px 0 0; }
.assume-list { margin: 8px 0 12px; padding-left: 18px; display: grid; gap: 8px; font-size: .875rem; }
.assume-list li::marker { color: var(--brand); }
.disclaimer { font-size: .875rem; color: var(--muted); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.error { color: var(--bad); font-weight: 600; }
.ad-slot { margin: 28px 0; }
.ad-slot:empty { display: none; }
.ad-label { color: var(--muted); font-size: .8125rem; margin: 0 0 4px; }
.ad-placeholder { display: block; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .8125rem; text-align: center; padding: 18px; }

/* content */
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--text); }
.prose > p, .prose > ul > li, .prose > ol > li { font-size: 1rem; line-height: 1.65; }
.prose table { border-collapse: collapse; width: 100%; font-size: .875rem; margin: 12px 0; font-variant-numeric: tabular-nums; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.prose th { font-size: .875rem; color: var(--muted); vertical-align: bottom; }
.prose td:first-child { min-width: 7em; }
@media (max-width: 479px) { .prose table { font-size: .875rem; } .prose th, .prose td { padding-right: 8px; } }
.tool { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.tool:hover { border-color: var(--brand); }
@media (prefers-reduced-motion: no-preference) { .tool:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 30, 25, .08), 0 10px 28px rgba(20, 30, 25, .1); } }
.tool h2, .tool h3 { margin: 6px 0 6px; font-size: 1.125rem; }
.tool p { color: var(--muted); margin: 0 0 10px; }
.tool .go { color: var(--brand); font-weight: 700; margin-top: auto; }
.group-title { font-size: 1.25rem; color: var(--text); font-weight: 700; margin: 44px 0 0; }
/* uitleg.html: one card per explainer with its short answer */
.answers { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.answers a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--muted); font-size: .875rem; }
.answers a:hover { border-color: var(--brand); }
.answers b { display: block; color: var(--brand); font-size: 1rem; margin-bottom: 2px; }
/* Home: section dividers, tool boxes and one main box. */
a.option { text-decoration: none; }
.hero-tight { padding: 20px 0 16px; }
.tools-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 8px; color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.tools-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hero-tight + section .tools-title { margin-top: 0; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.tools .option { height: 100%; padding: 10px 36px 10px 14px; background: var(--surface); line-height: 1.35; }
.tools .option small { text-wrap: balance; }
.tools .option:hover { background: var(--brand-soft); }
.tools .tool-main { display: flex; flex-direction: column; justify-content: center; padding: 14px 40px 14px 16px; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-size: 1.25rem; font-weight: 700; }
.tools .tool-main small { color: var(--brand-ink); font-size: 1rem; margin-top: 4px; }
.tools .tool-main::after, .tools .tool-main:hover::after { color: var(--brand-ink); }
.tools .tool-main:hover { background: var(--brand); filter: brightness(1.08); text-decoration: underline; }
@media (min-width: 600px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools > .tool-top { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .tools-three > li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools.tools-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools > .tool-top { grid-column: span 2; grid-row: span 2; }
  .tools .tool-main { padding: 20px 48px 20px 24px; font-size: 1.5625rem; }
  .tools .tool-main small { font-size: 1.125rem; }
}
/* The one next step after a result; partner links and the ad follow it. */
.answers.next-card { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
.links { display: grid; gap: 6px; padding-left: 18px; }
/* embed mode (?embed=1): only the wizard, inside a partner's iframe */
.embed body { min-height: 0; background: transparent; }
.embed .site-header, .embed .site-footer, .embed .hero, .embed .checked, .embed #after-result, .embed .ad-slot, .embed .next-steps, .embed .next-card, .embed .next-plain { display: none !important; }
.embed main.wrap { padding: 0; max-width: none; }
.embed .wizard { max-width: none; box-shadow: none; margin: 0; border: 0; border-radius: 0; padding: 20px; }
.embed-credit { font-size: .8125rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
/* A paying client's button after the result (js/embed.js): their agenda or contact page, in their colours. */
.embed-cta { margin: 18px 0 0; }
.embed-cta .btn { display: inline-flex; align-items: center; margin: 0; text-decoration: none; }

/* voor adviseurs: one 820 px column (the wrap's padding is inside max-width); only the side-by-side demo breaks out. */
.w820 { max-width: 852px; }
.w820 .prose { max-width: none; }
@media (min-width: 880px) { .w820 .demo-pair { width: min(1040px, 100vw - 32px); margin-left: 50%; transform: translateX(-50%); } }
.snippet { position: relative; }
.snippet pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto;
  font: .8125rem/1.5 var(--num); white-space: pre-wrap; word-break: break-all; margin: 8px 0; }
.demo-frame { width: 100%; border: 1px dashed var(--line); border-radius: 14px; height: 640px; background: var(--bg); display: block; }
.hint.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.actions .btn { display: inline-flex; align-items: center; margin: 0; text-decoration: none; }
.demo-pick { max-width: 360px; }
/* Free and white-label side by side on wide screens, stacked on phones. */
.demo-pair { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (min-width: 880px) { .demo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-pair figure { margin: 0; }
.demo-pair figcaption { font-size: .875rem; color: var(--muted); margin: 0 0 8px; }
@media (min-width: 880px) { .demo-pair figcaption { min-height: 4.8em; } }
.demo-pair figcaption b { display: block; color: var(--text); font-size: 1rem; }
.gets li { margin-bottom: 6px; }
.plans { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plans > .card + .card { margin-top: 0; }
.plans + .hint { margin-top: 12px; }
.plan h3 { margin: 0 0 4px; }
.plan-paid { border: 2px solid var(--brand); }
.price { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; }
.price .per { font-size: .875rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-alt { color: var(--muted); margin: 2px 0 0; font-size: .875rem; }
.plan ul { padding-left: 18px; margin: 12px 0; display: grid; gap: 4px; }
.plan-note { font-size: .875rem; color: var(--muted); margin: 0; }
.copy-text { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .875rem !important; }

/* Print: black on white in every theme. A calculator prints only its result, the disclaimer and the date and address (.print-meta, js/ui.js). */
.print-meta { display: none; }
@media print {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #333; --line: #ccc; --brand: #1f5f4a; --brand-soft: #fff; --accent: #a24a23; --warn-bg: #fff;
    --warn-line: #ccc; --good: #1f7a4d; --bad: #a3361f; color-scheme: light;
  }
  body { display: block; min-height: 0; }
  .site-header, .site-footer, .ad-slot, .wrap.col > .hero, .wizard + .checked, #after-result, .wizard details.how, .result-actions, .wz-restart, .next-card, .next-plain, .next-steps { display: none !important; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .print-meta { display: block; font-size: .875rem; }
}
