/* ThuisSaldo huisstijl "Thuis" (oktober 2026)
 * Laatste stijllaag op elke publieke pagina (zie scripts/tools/apply_website_editorial.py, shared()).
 * Kleuren uit het app-icoon: petrol, zonnegeel en crème, met salie als rustige ondergrond.
 * Koppen in Bricolage Grotesque, lopende tekst in Manrope. Kleine, wisselende hoeken; weinig schaduw.
 * Deze laag verandert alleen vormgeving: geen inhoud, geen SEO-elementen.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/brand/fonts/bricolage-grotesque-latin.woff2?v=a79fdb52d4a5') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens: licht (standaard) ---------- */
:root,
:root[data-theme="light"] {
  color-scheme: only light;

  /* Merkkleuren */
  --ts-petrol: #123f3a;
  --ts-petrol-deep: #0c2e2a;
  --ts-gold: #f2b84b;
  --ts-gold-text: #8a5a00;
  --ts-cream: #f7f5ef;
  --ts-sage: #e6ede4;
  --ts-sage-deep: #dbe5d7;
  --ts-ink: #1c2b28;
  --ts-on-dark: #f7f5ef;
  --ts-on-dark-muted: rgba(247, 245, 239, .78);

  /* Typografie */
  --font: Manrope, "Segoe UI", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", Manrope, "Segoe UI", system-ui, sans-serif;

  /* Oppervlakken en tekst (bestaande tokennamen, zodat alle lagen meekleuren) */
  --bg-canvas: #f7f5ef;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #e6ede4;
  --bg-header: #f7f5ef;
  --text-primary: #1c2b28;
  --text-secondary: #4f5d58;
  --text-dim: #5e6b66;
  --text-muted: #5e6b66;
  --border: #e2ddd0;
  --border-strong: #868173;
  --link: #123f3a;

  --brand-cream: #f7f5ef;
  --brand-ink: #1c2b28;
  --brand-petrol: #123f3a;
  --brand-solar: #f2b84b;
  --green: #1f6b4f;
  --green-dark: #185a42;
  --green-deep: #123f3a;
  --blue: #123f3a;
  --accent-green: #1f6b4f;
  --gold: #8a5a00;
  --gold-light: #f2b84b;
  --accent-gold: #f2b84b;

  --btn-primary-bg: #123f3a;
  --btn-primary-bg-hover: #0c2e2a;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: transparent;
  --btn-secondary-border: #868173;
  --label-bg: #e6ede4;
  --label-border: #d3ddd0;
  --label-text: #2d4a33;

  --hero-text: #1c2b28;
  --hero-text-muted: #4f5d58;
  --hero-eyebrow: #8a5a00;
  --accent-title: #123f3a;
  --panel-bg: #ffffff;
  --hero-gradient: none;
  --footer-bg: #e6ede4;
  --cta-band-bg: #e6ede4;

  --focus-ring: 3px solid #8a5a00;
  --radius: 1rem;
  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-input: .625rem;
  --shadow-card: none;
  --shadow-glow: none;

  --product-stage: #e6ede4;
  --product-stage-alt: #eef2ea;
  --mint-surface: #e3efe6;
  --solar-surface: #fbf0d4;
}

/* ---------- Tokens: donker (alleen na een expliciete keuze via de themaknop) ---------- */
:root[data-theme="dark"] {
  color-scheme: only dark;

  --ts-petrol: #9ad9c6;
  --ts-petrol-deep: #123f3a;
  --ts-gold: #f2b84b;
  --ts-gold-text: #f2b84b;
  --ts-cream: #0f1c1a;
  --ts-sage: #1b2c29;
  --ts-sage-deep: #1e302d;
  --ts-ink: #eef2ef;
  --ts-on-dark: #eef2ef;
  --ts-on-dark-muted: rgba(238, 242, 239, .78);

  --bg-canvas: #0f1c1a;
  --bg-surface: #172624;
  --bg-elevated: #1e302d;
  --bg-muted: #1b2c29;
  --bg-header: #0f1c1a;
  --text-primary: #eef2ef;
  --text-secondary: #b4c3bd;
  --text-dim: #9fb0aa;
  --text-muted: #9fb0aa;
  --border: #2b3f3b;
  --border-strong: #6f857e;
  --link: #9ad9c6;

  --brand-cream: #eef2ef;
  --brand-ink: #eef2ef;
  --brand-petrol: #9ad9c6;
  --brand-solar: #f2b84b;
  --green: #7fd3ab;
  --green-dark: #7fd3ab;
  --green-deep: #9ad9c6;
  --blue: #9ad9c6;
  --accent-green: #7fd3ab;
  --gold: #f2b84b;
  --gold-light: #f2b84b;
  --accent-gold: #f2b84b;

  --btn-primary-bg: #f2b84b;
  --btn-primary-bg-hover: #f6c96d;
  --btn-primary-text: #1c2b28;
  --btn-secondary-border: #6f857e;
  --label-bg: #1e302d;
  --label-border: #2b3f3b;
  --label-text: #9ad9c6;

  --hero-text: #eef2ef;
  --hero-text-muted: #b4c3bd;
  --hero-eyebrow: #f2b84b;
  --accent-title: #9ad9c6;
  --panel-bg: #172624;
  --footer-bg: #0b1615;
  --cta-band-bg: #172624;
  --focus-ring: 3px solid #f2b84b;

  --product-stage: #1e302d;
  --product-stage-alt: #1b2c29;
  --mint-surface: #183530;
  --solar-surface: #3a2f17;
}

/* ---------- Basis ---------- */
html { background: var(--bg-canvas); }
body { background: var(--bg-canvas); color: var(--text-primary); font-family: var(--font); }

h1, h2, h3,
.premium-heading h2,
.landing-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
}

::selection { background: var(--ts-gold); color: #1c2b28; }

/* ===== Componenten: hieronder (shell, knoppen, formulieren, sjablonen) ===== */
/* ---------- 0. Componenttokens ---------- */
:root,
:root[data-theme="light"] {
  --ts-wrap: 80rem;
  --ts-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ts-measure: 65ch;
  --ts-r-card: 16px;
  --ts-r-panel: 18px;
  --ts-r-row: 14px;
  --ts-r-btn: 10px;
  --ts-r-input: 10px;
  --ts-copy: #33423e;
  --ts-band: #123f3a;
  --ts-band-line: rgba(247, 245, 239, .18);
  --ts-band-soft: rgba(247, 245, 239, .07);
  --ts-chip-bg: #f8e2ad;
  --ts-chip-text: #5c3c00;
  --ts-bezel: #1c2b28;
  --ts-focus: #8a5a00;
  --ts-error-bg: #fbeae5;
  --ts-error-line: #b3261e;
  --ts-scrim: rgba(28, 43, 40, .42);
  --ts-scroll-shadow: rgba(28, 43, 40, .3);
  --ts-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%231c2b28' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ts-plus: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  --ts-minus: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat;
}
:root[data-theme="dark"] {
  --ts-copy: #d3ddd8;
  --ts-band: #123f3a;
  --ts-band-line: rgba(238, 242, 239, .16);
  --ts-band-soft: rgba(238, 242, 239, .06);
  --ts-chip-bg: #3a2f17;
  --ts-chip-text: #f6c96d;
  --ts-bezel: #0b1615;
  --ts-focus: #f2b84b;
  --ts-error-bg: #3a1d19;
  --ts-error-line: #ff9b8f;
  --ts-scrim: rgba(0, 0, 0, .55);
  --ts-scroll-shadow: rgba(0, 0, 0, .6);
  --ts-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23eef2ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (max-width: 40rem) {
  :root, :root[data-theme] { --header-h: 60px; }
}
@media (min-width: 40.0625rem) and (max-width: 63.99rem) {
  :root, :root[data-theme] { --header-h: 4rem; }
}
@media (min-width: 64rem) {
  :root, :root[data-theme] { --header-h: 4.5rem; }
}

/* ---------- 1. Basis: tekst, links, focus ---------- */
body { font-size: 1rem; line-height: 1.55; }
h1, h2, h3, h4 { color: var(--text-primary); text-wrap: balance; }
body:not(.site--marketing) main :is(h1, h2, h3) { font-weight: 700; }
p, li { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--ts-gold); }
:focus-visible { outline: 3px solid var(--ts-focus); outline-offset: 3px; }
.btn:focus-visible,
.btn--primary:focus-visible,
.site-nav a:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle-btn:focus-visible,
summary:focus-visible { outline: 3px solid var(--ts-focus); outline-offset: 3px; border-radius: var(--ts-r-btn); }
code { padding: .1em .35em; border-radius: 6px; background: var(--bg-muted); font-size: max(.9em, .875rem); }
.skip-link {
  padding: .625rem 1rem;
  border: 2px solid var(--ts-focus);
  border-radius: var(--ts-r-btn);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: none;
}

/* ---------- 2. Shell: header, navigatie, menu ---------- */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header__inner {
  max-width: calc(var(--ts-wrap) + 2 * var(--ts-gutter));
  min-height: 0;
  height: 100%;
  padding-inline: var(--ts-gutter);
}
.brand {
  gap: .625rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
.brand__mark { width: 2.25rem; height: 2.25rem; }
.brand__wordmark-thuis,
.brand__wordmark-saldo { color: var(--text-primary) !important; font-weight: 700; }

.theme-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--ts-r-btn);
  background: var(--bg-header);
  color: var(--text-primary);
}
.theme-toggle:hover { background: var(--bg-muted); }
:root[data-theme] .nav-toggle-btn,
:root:not([data-theme]) .nav-toggle-btn {
  gap: .5rem;
  min-height: 44px;
  height: 44px;
  padding: 0 .875rem 0 .75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--ts-r-btn);
  background: var(--bg-header);
  color: var(--text-primary);
  box-shadow: none;
  font-size: .9375rem;
  font-weight: 700;
}
:root[data-theme] .nav-toggle-btn:hover { background: var(--bg-muted); border-color: var(--text-primary); color: var(--text-primary); }
.nav-toggle-btn__text { font-size: .9375rem; font-weight: 700; }

@media (min-width: 64rem) {
  .site-header__inner { gap: 1.5rem; }
  .site-nav { gap: .25rem 1.75rem; font-size: .9375rem; }
  .site-nav a:not(.site-nav__cta) {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .5rem 0;
    border-bottom: 0;
    color: var(--text-primary);
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: underline 2px transparent;
    text-underline-offset: .5em;
    transition: text-decoration-color .15s ease;
  }
  .site-nav a:not(.site-nav__cta):hover,
  .site-nav a:not(.site-nav__cta)[aria-current] {
    color: var(--text-primary);
    text-decoration-color: var(--ts-gold);
  }
  .site-nav__cta,
  .site-nav .site-nav__cta {
    margin-left: .25rem;
    min-height: 44px;
    padding: .625rem 1.125rem !important;
    border-radius: var(--ts-r-btn);
    font-size: .9375rem !important;
    font-weight: 700;
  }
}
.site-nav__cta,
.site-nav .site-nav__cta {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-bg);
  box-shadow: none;
  text-decoration: none;
}
.site-nav__cta:hover,
.site-nav .site-nav__cta:hover {
  background: var(--btn-primary-bg-hover) !important;
  color: var(--btn-primary-text) !important;
  transform: none;
}

@media (max-width: 63.99rem) {
  .site-header { background: var(--bg-header); box-shadow: none; }
  .site-header .brand { font-size: 1.125rem; }
  .site-nav {
    padding: .25rem max(var(--ts-gutter), env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom, 0px)) max(var(--ts-gutter), env(safe-area-inset-left));
    background: var(--bg-canvas);
    border-top: 1px solid var(--border);
  }
  .site-nav a:not(.site-nav__cta) {
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.75rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -.015em;
    text-decoration: none;
  }
  .site-nav a:not(.site-nav__cta)::after {
    content: "\2192";
    color: var(--ts-petrol);
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 600;
  }
  .site-nav a:not(.site-nav__cta):hover,
  .site-nav a:not(.site-nav__cta)[aria-current] {
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: inset 0 -2px 0 var(--ts-gold);
  }
  .site-nav__cta,
  .site-nav .site-nav__cta {
    margin-top: 1.5rem;
    min-height: 3.25rem;
    border-radius: var(--ts-r-btn);
    font-size: 1rem !important;
  }
  .site-nav-backdrop:not([hidden]) {
    background: var(--ts-scrim);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 40rem) {
  .site-header__inner { padding: 8px var(--ts-gutter); gap: 8px; }
  .site-header .brand { font-size: 1.0625rem; gap: .5rem; }
  .site-header .brand__mark { width: 30px; height: 30px; }
  :root[data-theme] .nav-toggle-btn { min-width: 0; padding: 0 .75rem 0 .625rem; }
}

/* ---------- 3. Knoppen en tekstlinks ---------- */
.btn,
.btn--primary,
.btn--secondary,
.btn--ghost {
  min-height: 44px;
  padding: .7rem 1.2rem;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: var(--ts-r-btn);
  box-shadow: none;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, text-decoration-color .15s ease;
}
.btn:hover,
.btn--primary:hover { transform: none; }
.btn--primary {
  background: var(--btn-primary-bg);
  background-image: none;
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: none;
}
.btn--primary:hover {
  background: var(--btn-primary-bg-hover);
  border-color: var(--btn-primary-bg-hover);
  color: var(--btn-primary-text);
  box-shadow: none;
}
.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.btn--ghost {
  padding-inline: .125rem;
  background: transparent;
  border-color: transparent;
  color: var(--text-primary);
  text-decoration: underline 2px var(--ts-gold);
  text-underline-offset: .45em;
}
.btn--ghost:hover {
  background: transparent;
  border-color: transparent;
  color: var(--text-primary);
  text-decoration-color: currentColor;
}

/* ---------- 4. Formulieren ---------- */
:is(.calc-form, .lead-form, .content) :is(input[type="number"], input[type="email"], input[type="text"], input[type="date"], select, textarea),
.editorial-page .calc-form label:not(.calc-field) > :is(input[type="number"], input[type="email"], select),
.editorial-page .launch-waitlist__form input[type="email"],
.launch-waitlist__form input[type="email"],
#calc-contract-year-form input[type="date"] {
  min-height: 48px;
  max-width: none;
  padding: .7rem .875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--ts-r-input);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
:is(.calc-form, .lead-form, .content) :is(input, select, textarea)::placeholder { color: var(--text-dim); opacity: 1; }
:is(.calc-form, .content) select:not([multiple]),
.editorial-page .calc-form label:not(.calc-field) > select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: var(--ts-chevron);
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 14px 9px;
  text-overflow: ellipsis;
}
:is(.calc-form, .lead-form, .content) :is(input, select, textarea):hover { border-color: var(--text-primary); }
:is(.calc-form, .lead-form, .content) :is(input, select, textarea):focus-visible,
.editorial-page .calc-form label:not(.calc-field) > :is(input[type="number"], input[type="email"], select):focus-visible {
  border-color: var(--ts-petrol);
  outline: 3px solid var(--ts-focus);
  outline-offset: 2px;
}
input[type="checkbox"],
input[type="radio"],
input[type="range"] { accent-color: var(--ts-petrol); }
.lead-consent input[type="checkbox"],
.calc-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; min-width: 1.25rem; accent-color: var(--ts-petrol); }
.calc-form label:not(.calc-field),
.editorial-page .calc-form label:not(.calc-field) {
  color: var(--text-primary);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
}
.editorial-page .calc-form label:not(.calc-field) > :is(input, select) { margin-top: .45rem; }
.calc-form fieldset legend,
.editorial-page .calc-form fieldset legend {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
}
.calc-help,
.field-hint,
.calc-disclaimer,
.calc-form .calc-disclaimer,
.editorial-page :is(.calc-disclaimer, .calc-help) {
  max-width: 65ch;
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.55;
}
.editorial-page .calc-form label:not(.calc-field):has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-weight: 500;
}
.editorial-page .calc-form label:not(.calc-field) > input[type="checkbox"] { flex: none; margin: .15rem 0 0; }
.calc-form-error {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--ts-error-line) 45%, transparent);
  border-radius: var(--ts-r-input);
  background: var(--ts-error-bg);
  color: var(--text-primary);
  font-size: .9375rem;
}

/* ---------- 5. Paginaopbouw: breedte, kruimelpad, hero ---------- */
main.editorial-page,
.site--sub main.editorial-page {
  max-width: calc(var(--ts-wrap) + 2 * var(--ts-gutter));
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--ts-gutter) clamp(3rem, 6vw, 5rem);
}
body:not(.site--marketing) main:not(.editorial-page):not(.premium-main) {
  width: 100%;
  max-width: calc(var(--ts-wrap) + 2 * var(--ts-gutter));
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--ts-gutter) clamp(3rem, 6vw, 5rem);
}
.breadcrumbs,
.editorial-page .breadcrumbs {
  margin: 0 0 .5rem;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.6;
}
.breadcrumbs a,
.editorial-page .breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-decoration-thickness: 1px;
}
.breadcrumbs a:hover,
.editorial-page .breadcrumbs a:hover { color: var(--text-primary); text-decoration-color: var(--ts-gold); text-decoration-thickness: 2px; }

.premium-eyebrow {
  display: block;
  margin: 0 0 .875rem;
  color: var(--ts-gold-text);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}
.editorial-page .landing-hero,
.editorial-page[data-page-kind] .landing-hero,
.editorial-page:not([data-page-kind="legal"]):not([data-page-kind="tool"]) .landing-hero {
  max-width: 56rem;
  margin: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(2rem, 4vw, 3.25rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.editorial-page .landing-hero .premium-eyebrow {
  display: block;
  margin: 0 0 .875rem;
  color: var(--ts-gold-text);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: 0;
}
.editorial-page .landing-hero .premium-eyebrow::before { content: none; display: none; }
.editorial-page .landing-hero h1,
.editorial-page[data-page-kind] .landing-hero h1 {
  max-width: 21ch;
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-size: clamp(2.25rem, 1.35rem + 3.1vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.editorial-page[data-page-kind="tool"] .landing-hero h1,
.editorial-page[data-page-kind="legal"] .landing-hero h1 {
  max-width: 24ch;
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.25rem);
}
.editorial-page .landing-hero .lead,
.editorial-page[data-page-kind="tool"] .landing-hero .lead {
  max-width: 40rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.55;
}
.editorial-page .editorial-byline {
  width: auto;
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: 0;
  color: var(--text-secondary);
  font-size: .875rem;
}
.editorial-page .editorial-byline a { color: inherit; }

/* Oudere pagina's zonder editorial-sjabloon */
body:not(.site--marketing) main:not(.editorial-page) :is(.landing-hero, .page-hero) {
  max-width: 56rem;
  margin: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
body:not(.site--marketing) main:not(.editorial-page) :is(.landing-hero, .page-hero) h1 {
  max-width: 22ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.025em;
}
body:not(.site--marketing) main:not(.editorial-page) :is(.landing-hero, .page-hero) .lead {
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.55;
}
body:not(.site--marketing) main:not(.editorial-page) .landing-hero > p.product-status {
  display: block;
  width: auto;
  max-width: 40rem;
  min-height: 0;
  margin: 1.25rem 0 0;
  padding: .75rem 1rem;
  border: 0;
  border-radius: var(--ts-r-input);
  background: var(--bg-muted);
  color: var(--ts-copy);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.5;
}
body:not(.site--marketing) main:not(.editorial-page) .landing-hero > p.product-status strong { color: var(--text-primary); }
body:not(.site--marketing) main:not(.editorial-page):not(.premium-main) > p {
  max-width: var(--ts-measure);
  color: var(--ts-copy);
  font-size: 1.0625rem;
  line-height: 1.6;
}
body:not(.site--marketing) main:not(.editorial-page):not(.premium-main) > p .btn + .btn { margin-left: .5rem; }

/* ---------- 6. Editorial: kolommen, tekst, inhoudsopgave, bronnen ---------- */
.editorial-page .editorial-layout {
  grid-template-columns: minmax(0, 46rem) minmax(14rem, 17.5rem);
  justify-content: space-between;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.editorial-page .editorial-copy { max-width: 46rem; }
.editorial-page[data-page-kind="hub"] .editorial-copy { max-width: none; }
.editorial-page .editorial-copy :is(p, li),
body:not(.site--marketing) .landing-content :is(p, li) {
  max-width: var(--ts-measure);
  color: var(--ts-copy);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.editorial-page .editorial-copy :is(td, th) :is(p, li) { font-size: inherit; }
.editorial-page .editorial-copy h2,
.editorial-page[data-page-kind] .editorial-copy h2,
body:not(.site--marketing) .landing-content h2 {
  margin: 2.75rem 0 .875rem;
  color: var(--text-primary);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.editorial-page .editorial-copy section:first-child h2 { margin-top: 0; }
.editorial-page .editorial-copy h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.editorial-page .editorial-copy strong { color: var(--text-primary); }
.editorial-page .editorial-copy a:not(.premium-tool):not(.btn) {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.editorial-page .editorial-copy a:not(.premium-tool):not(.btn):hover { text-decoration-color: var(--ts-gold); text-decoration-thickness: 2px; }
.editorial-page .editorial-copy li::marker { color: var(--ts-petrol); }
.editorial-page .editorial-copy ul,
.editorial-page .editorial-copy ol { padding-left: 1.25rem; }
.editorial-page .editorial-copy > section + section { margin-top: 2.75rem; padding-top: 0; }
.editorial-page[data-page-kind="hub"] .editorial-copy > section + section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.editorial-page .editorial-brand-note { max-width: 65ch; margin-top: 2.5rem; color: var(--text-secondary); font-size: .875rem; }

.editorial-page .editorial-aside {
  top: calc(var(--header-h) + 1.75rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.editorial-page[data-page-kind="legal"] .editorial-aside { background: transparent; }
.editorial-page .editorial-aside h2 {
  margin: 0 0 .625rem;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: 0;
}
.editorial-page .editorial-aside nav { border-top: 1px solid var(--border); }
.editorial-page .editorial-aside nav a {
  display: block;
  min-height: 0;
  margin: 0;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.4;
  text-decoration: none;
}
.editorial-page .editorial-aside nav a:hover {
  background: none;
  color: var(--text-primary);
  text-decoration: underline 2px var(--ts-gold);
  text-underline-offset: .25em;
}
.editorial-page .editorial-next {
  margin-top: 1.75rem;
  padding: 1.25rem 1.25rem .5rem;
  border: 0;
  border-radius: var(--ts-r-row);
  background: var(--bg-muted);
}
.editorial-page .editorial-next strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.editorial-page .editorial-next p { margin: .5rem 0 .75rem; color: var(--text-secondary); font-size: .9375rem; line-height: 1.5; }
.editorial-page .editorial-next > a,
.editorial-page .editorial-aside .editorial-next > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.875rem;
  margin: 0;
  padding: .5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 14%, transparent);
  color: var(--text-primary);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.editorial-page .editorial-next > a:hover { color: var(--text-primary); text-decoration: underline 2px var(--ts-gold); text-underline-offset: .25em; }
.editorial-page .editorial-next > a > span[aria-hidden],
.editorial-page .premium-tool__go { font-size: 0; }
.editorial-page .editorial-next > a > span[aria-hidden]::before,
.editorial-page .premium-tool__go::before {
  content: "\2192";
  color: var(--ts-petrol);
  font-size: 1.125rem;
  font-weight: 600;
}

.editorial-page .editorial-copy .editorial-sources,
.editorial-page .editorial-sources {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border: 0;
  border-radius: var(--ts-r-row);
  background: var(--bg-muted);
}
.editorial-page .editorial-copy .editorial-sources h2 {
  margin: 0 0 .5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}
.editorial-page .editorial-copy .editorial-sources :is(p, li) {
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.55;
}
.editorial-page .editorial-copy .editorial-sources li + li { margin-top: .35rem; }

/* Korte antwoordblokken en losse uitleg */
:is(.editorial-page, main) .aeo-block {
  max-width: 46rem;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--ts-r-row);
  background: var(--bg-surface);
  box-shadow: none;
  color: var(--ts-copy);
  font-size: 1rem;
  line-height: 1.6;
}
:is(.editorial-page, main) .aeo-block > :first-child { margin-top: 0; }
:is(.editorial-page, main) .aeo-block > :last-child { margin-bottom: 0; }
:is(.editorial-page, main) .aeo-block li::marker { color: var(--ts-petrol); }

/* ---------- 7. Tabellen ---------- */
.table-scroll,
.editorial-page .table-scroll {
  margin-block: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--ts-r-row);
  /* Schaduw aan de rand waar nog kolommen verborgen zijn (verdwijnt aan het begin en eind). */
  background:
    linear-gradient(to right, var(--bg-surface) 35%, transparent) left center / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--bg-surface) 35%, transparent) right center / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--ts-scroll-shadow), transparent) left center / 1rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--ts-scroll-shadow), transparent) right center / 1rem 100% no-repeat scroll,
    var(--bg-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
@media (max-width: 40rem) {
  .table-scroll :is(th, td),
  .editorial-page .editorial-copy .table-scroll :is(th, td) { min-width: 9rem; }
  .table-scroll :is(th, td):first-child { min-width: 7.5rem; }
}
.editorial-page .editorial-copy table,
.data-table,
.content table { font-size: .9375rem; line-height: 1.5; }
.editorial-page .editorial-copy :is(th, td),
.data-table :is(th, td) {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.editorial-page .editorial-copy thead th,
.data-table thead th {
  background: var(--bg-muted);
  color: var(--text-primary);
  font-size: .875rem;
  font-weight: 700;
}
.editorial-page .editorial-copy tbody th,
.data-table tbody th {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}
.editorial-page .editorial-copy td,
.data-table td { color: var(--ts-copy); }
.editorial-page .editorial-copy tr:last-child :is(td, th),
.data-table tbody tr:last-child :is(td, th) { border-bottom: 0; }
.data-table small,
.editorial-page .editorial-copy td small,
td small { color: var(--text-secondary); font-size: .875rem; }
.data-table a { color: var(--link); }
.comparison-table__highlight { background: color-mix(in srgb, var(--ts-gold) 14%, var(--bg-surface)); }
.comparison-table__highlight th { color: var(--text-primary); }

/* ---------- 8. Uitklapblokken en FAQ ---------- */
main:not(.premium-main) details > summary { list-style: none; cursor: pointer; }
main:not(.premium-main) details > summary::-webkit-details-marker { display: none; }
main:not(.premium-main) details > summary::marker { content: ""; }
.editorial-page .editorial-copy details,
.faq-list details,
main .calc-contract-scenario {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.editorial-page .editorial-copy :not(details) + details,
.editorial-page .editorial-copy details:first-child,
.faq-list details:first-child { border-top: 1px solid var(--border); }
.editorial-page .editorial-copy details > summary,
.faq-list details > summary,
main .calc-contract-scenario > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: .875rem 0;
  border: 0;
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}
.editorial-page .editorial-copy details > summary::after,
.faq-list details > summary::after,
main .calc-contract-scenario > summary::after,
.editorial-page .editorial-mobile-toc > summary::after,
.data-table details > summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--ts-petrol);
  background: var(--ts-plus);
}
.editorial-page .editorial-copy details[open] > summary::after,
.faq-list details[open] > summary::after,
main .calc-contract-scenario[open] > summary::after,
.editorial-page .editorial-mobile-toc[open] > summary::after,
.data-table details[open] > summary::after { background: var(--ts-minus); }
.editorial-page .editorial-copy details > summary:hover,
.faq-list details > summary:hover { text-decoration: underline 2px var(--ts-gold); text-underline-offset: .25em; }
.editorial-page .editorial-copy details > :not(summary),
.faq-list details > :not(summary) { margin: 0 0 1.125rem; }
.faq-list details[open] summary { border-bottom: 0; }
.faq-list details p { padding: 0; color: var(--ts-copy); font-size: 1rem; }

/* Toelichting in tabellen (monitor) */
.data-table details,
.editorial-page .editorial-copy td details { border: 0; margin-top: .25rem; }
.data-table details > summary,
.editorial-page .editorial-copy td summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem 0;
  color: var(--link);
  font-size: .875rem;
  font-weight: 600;
}
.data-table details > summary::after {
  width: 10px;
  height: 10px;
  background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat;
}
.data-table details[open] > summary::after { background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat; }
.data-table details p { margin: 0 0 .75rem; color: var(--ts-copy); font-size: .875rem; line-height: 1.55; }

/* Inhoudsopgave op telefoon en tablet */
@media (max-width: 64rem) {
  .editorial-page .editorial-mobile-toc {
    margin: 0 0 2rem;
    padding: 0 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--ts-r-row);
    background: var(--bg-surface);
  }
  .editorial-page .editorial-mobile-toc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding-block: .75rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
  }
  .editorial-page .editorial-mobile-toc nav { padding: 0 0 .5rem; }
  .editorial-page .editorial-mobile-toc a {
    display: flex;
    align-items: center;
    min-height: 2.875rem;
    padding: .5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    font-size: .9375rem;
    line-height: 1.4;
    text-decoration: none;
  }
  .editorial-page .editorial-mobile-toc a:hover { text-decoration: underline 2px var(--ts-gold); text-underline-offset: .25em; }
}

/* ---------- 9. Overzichten en kaarten ---------- */
.editorial-page .premium-hub-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.editorial-page .premium-hub-grid .premium-tool {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: .5rem 1.25rem;
  padding: 1.5rem 1.5rem 1.625rem;
  border: 1px solid var(--border);
  border-radius: var(--ts-r-card);
  background: var(--bg-surface);
  box-shadow: none;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color .15s ease;
}
.editorial-page .premium-hub-grid .premium-tool:nth-child(4n+2),
.editorial-page .premium-hub-grid .premium-tool:nth-child(4n+3) { background: var(--bg-surface); }
.editorial-page .premium-tool strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.editorial-page .premium-tool p {
  max-width: 54ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.55;
}
.editorial-page .premium-tool__go {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  line-height: 1.6;
  text-align: right;
}
.editorial-page .premium-tool:hover {
  border-color: var(--ts-petrol);
  background: var(--bg-surface);
}
.editorial-page .premium-tool:hover strong {
  text-decoration: underline 2px var(--ts-gold);
  text-underline-offset: .2em;
}

/* "Verder voor jouw woning" op overzichtspagina's: rustige linkregels in kolommen */
.hub-more,
.editorial-page .editorial-copy ul.hub-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border);
}
.hub-more > li,
.editorial-page .editorial-copy .hub-more > li {
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--border);
}
.hub-more > li::marker { content: ""; }
.hub-more a,
.editorial-page .editorial-copy .hub-more a:not(.premium-tool):not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: .75rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.hub-more a::after {
  content: "\2192";
  flex: none;
  color: var(--ts-petrol);
  font-size: 1.125rem;
  font-weight: 600;
  transition: transform .2s ease;
}
.hub-more a:hover,
.editorial-page .editorial-copy .hub-more a:not(.premium-tool):not(.btn):hover {
  color: var(--text-primary);
  text-decoration: underline 2px var(--ts-gold);
  text-underline-offset: .25em;
}
.hub-more a:hover::after { transform: translateX(4px); }
@media (min-width: 36rem) {
  .hub-more,
  .editorial-page .editorial-copy ul.hub-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56.25rem) {
  .hub-more,
  .editorial-page .editorial-copy ul.hub-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Gerelateerde rekenhulpen: rustige lijst met pijl per regel */
.related-tools,
.editorial-page .related-tools { margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
.related-tools > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.related-tools .tool-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0 2rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.related-tools .tool-card,
.editorial-page .related-tools .tool-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: .25rem;
  min-height: 0;
  padding: 1.125rem 2.25rem 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-primary);
  transform: none;
}
.related-tools .tool-card::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: .25rem;
  color: var(--ts-petrol);
  font-size: 1.25rem;
  transform: translateY(-50%);
  transition: transform .2s ease;
}
.related-tools .tool-card:hover { border-color: var(--border); transform: none; }
.related-tools .tool-card:hover::after { transform: translate(4px, -50%); }
.related-tools .tool-card:hover strong { text-decoration: underline 2px var(--ts-gold); text-underline-offset: .2em; }
.tool-card__label {
  margin: 0;
  color: var(--ts-gold-text);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.related-tools .tool-card strong {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}
.related-tools .tool-card p { margin: 0; color: var(--text-secondary); font-size: .9375rem; line-height: 1.5; }

/* Productbeeld bij app- en koppelingspagina's */
.editorial-page .product-page-visual {
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 0;
  border-radius: var(--ts-r-panel);
  background: var(--bg-muted);
}
.editorial-page .product-page-visual img {
  border: 6px solid var(--ts-bezel);
  border-radius: 28px;
  box-shadow: none;
}
.editorial-page .product-page-visual figcaption {
  max-width: 24rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}
.editorial-page .product-page-visual figcaption strong {
  margin-bottom: .75rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.editorial-page .product-page-visual figcaption span {
  margin-top: 1.25rem;
  padding-top: .875rem;
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent);
  color: var(--text-secondary);
  font-size: .875rem;
}
.editorial-page:has(>.product-page-visual) .product-page-visual figcaption { padding: 0; font-size: .9375rem; line-height: 1.55; }
/* Eén kolom: telefoon centraal op salie, bijschrift klein eronder. Geen tweede kop naast de H1. */
.editorial-page .product-page-visual,
.editorial-page:has(>.product-page-visual) > .product-page-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.editorial-page .product-page-visual img,
.editorial-page:has(>.product-page-visual) .product-page-visual img {
  width: auto;
  max-width: 100%;
  max-height: 26rem;
  margin: 0 auto;
}
.editorial-page .product-page-visual figcaption,
.editorial-page:has(>.product-page-visual) .product-page-visual figcaption {
  max-width: 24rem;
  padding: 0;
  text-align: center;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.editorial-page .product-page-visual figcaption strong,
.editorial-page:has(>.product-page-visual) .product-page-visual figcaption strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}
.editorial-page .product-page-visual figcaption span,
.editorial-page:has(>.product-page-visual) .product-page-visual figcaption span {
  margin-top: .75rem;
  padding-top: .625rem;
  font-size: .875rem;
}
@media (min-width: 72rem) {
  .editorial-page:has(>.product-page-visual) {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .editorial-page[data-page-kind]:has(>.product-page-visual) > .landing-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.5rem, 1.5rem + 2.1vw, 3.5rem);
  }
}
@media (max-width: 40rem) {
  .editorial-page .product-page-visual img,
  .editorial-page:has(>.product-page-visual) .product-page-visual img { max-height: 22rem; }
}
.landing-visual img { border: 6px solid var(--ts-bezel); border-radius: 26px; box-shadow: none; }

/* ---------- 10. Rekenhulpen ---------- */
.editorial-page[data-page-kind="tool"] > :is(.calc-form, .calc-workspace, .calc-results, .calc-contract-scenario, .calc-dynamisch-chart) { max-width: 60rem; }
.editorial-page .calc-form,
.editorial-page .calc-workspace,
.calc-workspace {
  margin: 0 0 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--ts-r-card);
  background: var(--bg-surface);
  box-shadow: none;
}
.editorial-page .calc-workspace,
.calc-workspace { padding: 0; overflow: hidden; }
.editorial-page .calc-form--embedded {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.calc-workspace__grid { display: flex; flex-direction: column; }
.calc-workspace__form,
.calc-workspace .calc-workspace__form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 0;
}
.calc-workspace__results,
.calc-workspace .calc-workspace__results {
  position: static;
  padding: 0;
  border: 0;
  background: var(--ts-band);
}
.calc-workspace__results:has(> .calc-results[hidden]) { display: none; }
.calc-form fieldset,
.editorial-page .calc-form fieldset { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.editorial-page .calc-grid { gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem); }
.editorial-page .calc-grid > fieldset,
.editorial-page .calc-form:not(:has(.calc-field)) .calc-grid > fieldset { display: block; margin: 0; }
.editorial-page .calc-form .calc-grid > fieldset > label:not(.calc-field) { display: block; margin: 0 0 1rem; }
.editorial-page .calc-form #calc-2027-tariffs:not([hidden]) {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0 1.5rem;
}
.editorial-page .calc-form .calc-grid:has(+ fieldset) { padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.editorial-page .calc-form > .btn { margin-top: .5rem; }
.editorial-page .calc-form > .btn + .btn { margin-left: .5rem; }
.editorial-page .calc-form .calc-disclaimer { max-width: 60ch; margin: .25rem 0 1rem; }

/* Uitkomst: petrol vlak met grote gouden waarde, zoals op de homepage */
:is(.editorial-page, main) .calc-results,
.calc-results {
  margin: 1rem 0 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 0;
  border-radius: var(--ts-r-card);
  background: var(--ts-band);
  color: var(--ts-on-dark);
}
:is(.editorial-page, main) .calc-form:has(+ .calc-results:not([hidden])) {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
:is(.editorial-page, main) .calc-form + .calc-results {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.calc-workspace__results .calc-results:not([hidden]),
.calc-workspace__results .calc-results--live,
:is(.editorial-page, main) .calc-workspace__results .calc-results {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 0;
  border-radius: 0;
  background: transparent;
}
:is(.editorial-page, main) .calc-results :is(h2, h3),
.calc-workspace__results .calc-results__title {
  margin: 0 0 .25rem;
  color: var(--ts-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.015em;
}
:is(.editorial-page, main) .calc-results :is(p, li),
.calc-results__subtitle,
.calc-workspace__results .calc-results__subtitle {
  color: var(--ts-on-dark-muted);
  font-size: .9375rem;
}
:is(.editorial-page, main) .calc-results > :is(h2, h3):not(:first-child),
:is(.editorial-page, main) .calc-results .calc-kpi-grid + :not(.calc-kpi-section-title):not(.calc-kpi-grid) { margin-top: 1.75rem; }
:is(.editorial-page, main) .calc-results a:not(.btn) { color: var(--ts-on-dark); text-decoration-color: color-mix(in srgb, var(--ts-on-dark) 60%, transparent); }
:is(.editorial-page, main) .calc-results a:not(.btn):hover { text-decoration-color: var(--ts-gold); }
:is(.editorial-page, main) .calc-results .calc-kpi-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0 2rem;
  margin: 1rem 0 0;
}
:is(.editorial-page, main) .calc-results .calc-kpi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .25rem 1rem;
  min-width: 0;
  padding: .8rem 0;
  border: 0;
  border-top: 1px solid var(--ts-band-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:is(.editorial-page, main) .calc-results .calc-kpi__label {
  margin: 0;
  color: var(--ts-on-dark-muted);
  font-size: .9375rem;
  line-height: 1.4;
}
:is(.editorial-page, main) .calc-results .calc-kpi > :not(.calc-kpi__label):not(strong) {
  grid-column: 1 / -1;
  color: var(--ts-on-dark-muted);
  font-size: .875rem;
  line-height: 1.5;
}
:is(.editorial-page, main) .calc-results .calc-kpi strong {
  max-width: 100%;
  color: var(--ts-on-dark);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}
:is(.editorial-page, main) .calc-results .calc-kpi--accent,
:is(.editorial-page, main) .calc-results .calc-kpi--hero {
  display: block;
  grid-column: 1 / -1;
  order: -1;
  padding: .25rem 0 1.25rem;
  border-top: 0;
}
:is(.editorial-page, main) .calc-results .calc-kpi-grid--hero { gap: 0 2rem; }
:is(.editorial-page, main) .calc-results .calc-kpi-grid--hero > .calc-kpi { grid-column: auto; }
:is(.editorial-page, main) .calc-results :is(.calc-kpi--accent, .calc-kpi--hero) .calc-kpi__label { display: block; }
:is(.editorial-page, main) .calc-results :is(.calc-kpi--accent, .calc-kpi--hero) strong {
  display: block;
  margin-top: .375rem;
  color: var(--ts-on-dark);
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
:is(.editorial-page, main) .calc-results .calc-kpi--accent strong {
  color: var(--ts-gold);
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem);
}
.calc-kpi-section-title,
.calc-workspace__results .calc-kpi-section-title {
  margin: 1.5rem 0 0;
  color: var(--ts-on-dark-muted);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.calc-kpi-section-title + .calc-kpi-grid { margin-top: .5rem; }
.calc-insight {
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  border: 0;
  border-radius: var(--ts-r-input);
  background: var(--ts-band-soft);
  color: var(--ts-on-dark);
}
.calc-insight:empty { display: none; }
.calc-insight :is(p, li, strong) { color: var(--ts-on-dark); }
.calc-results .calc-disclaimer,
.calc-results__disclaimer,
:is(.editorial-page, main) .calc-results .calc-results__disclaimer {
  max-width: 65ch;
  margin: 1.25rem 0 0;
  color: var(--ts-on-dark-muted);
  font-size: .875rem;
  line-height: 1.5;
}
.calc-results__next,
.calc-workspace__results .calc-results__next {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ts-band-line);
}
.calc-results__next-label,
:is(.editorial-page, main) .calc-results .calc-results__next-label {
  margin: 0 0 .125rem;
  color: var(--ts-on-dark);
  font-size: .9375rem;
  font-weight: 700;
}
.calc-results__next-sub,
:is(.editorial-page, main) .calc-results .calc-results__next-sub { margin: .25rem 0 0; color: var(--ts-on-dark-muted); font-size: .875rem; }
.calc-results .btn--primary,
.calc-results__next .btn--primary {
  background: var(--ts-gold);
  border-color: var(--ts-gold);
  color: #1c2b28;
}
.calc-results .btn--primary:hover { background: #f6c96d; border-color: #f6c96d; color: #1c2b28; }
.calc-results .btn--secondary { border-color: rgba(247, 245, 239, .5); color: var(--ts-on-dark); }
.calc-results :focus-visible { outline-color: var(--ts-gold); }

/* Losse kerncijfers buiten een uitkomstvlak (scenario- en leverancierspagina's) */
:is(.editorial-page, main) .calc-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}
:is(.editorial-page, main) .calc-kpi {
  padding: 1rem 1.125rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--ts-r-row);
  background: var(--bg-surface);
  box-shadow: none;
}
:is(.editorial-page, main) .calc-kpi__label {
  display: block;
  margin-bottom: .375rem;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.4;
}
:is(.editorial-page, main) .calc-kpi strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
:is(.editorial-page, main) .calc-kpi--accent {
  border-color: var(--ts-band);
  background: var(--ts-band);
}
:is(.editorial-page, main) .calc-kpi--accent .calc-kpi__label { color: var(--ts-on-dark-muted); }
:is(.editorial-page, main) .calc-kpi--accent strong { color: var(--ts-gold); }

/* Contractjaarscenario en uurprijzen */
main .calc-contract-scenario {
  margin: 0 0 2rem;
  padding: 0 clamp(1.125rem, 3vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--ts-r-row);
  background: var(--bg-surface);
}
main .calc-contract-scenario > summary { min-height: 3.75rem; }
main .calc-contract-scenario[open] { padding-bottom: 1.5rem; }
main .calc-contract-scenario > h2 { margin: .5rem 0 .75rem; font-size: 1.375rem; }
main .calc-contract-scenario > p { max-width: var(--ts-measure); color: var(--ts-copy); }
main .calc-contract-scenario .calc-form { margin-top: 1.25rem; padding: 0; border: 0; background: transparent; }
.calc-hour {
  border-color: var(--border);
  border-radius: var(--ts-r-input);
  background: var(--bg-surface);
}
.calc-hour--cheap {
  border-color: var(--ts-petrol);
  background: color-mix(in srgb, var(--ts-petrol) 10%, var(--bg-surface));
}
.calc-hour__bar { background: color-mix(in srgb, var(--ts-petrol) 45%, var(--bg-muted)); border-radius: 3px; }
.calc-hour--cheap .calc-hour__bar { background: var(--ts-gold); }
.calc-hour__label { color: var(--text-secondary); }

/* App-in-voorbereiding bij rekenhulpen: een rustige regel. De downloadband verderop is het
   echte aanmeldblok; badge, lange tekst en tweede link blijven in de DOM maar verborgen. */
:is(.editorial-page, main) .calc-prelaunch-nudge,
.calc-prelaunch-nudge {
  max-width: 46rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: .625rem 0;
  border: 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
:is(.editorial-page, main) .calc-prelaunch-nudge > :is(.badge-coming, p),
:is(.editorial-page, main) .calc-prelaunch-nudge .calc-prelaunch-nudge__actions .btn--ghost { display: none; }
:is(.editorial-page, main) .calc-prelaunch-nudge h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}
:is(.editorial-page, main) .calc-prelaunch-nudge .calc-prelaunch-nudge__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
:is(.editorial-page, main) .calc-prelaunch-nudge .calc-prelaunch-nudge__actions .btn--primary {
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  text-decoration: underline 2px var(--ts-gold);
  text-underline-offset: .45em;
}
:is(.editorial-page, main) .calc-prelaunch-nudge .calc-prelaunch-nudge__actions .btn--primary:hover {
  background: transparent;
  color: var(--text-primary);
  text-decoration-color: currentColor;
}
.calc-results__next .btn--primary,
:is(.editorial-page, main) .calc-results .calc-results__next .btn--primary {
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ts-on-dark);
  text-decoration: underline 2px var(--ts-gold);
  text-underline-offset: .45em;
}
.calc-results__next .btn--primary:hover,
:is(.editorial-page, main) .calc-results .calc-results__next .btn--primary:hover {
  background: transparent;
  color: var(--ts-on-dark);
  text-decoration-color: currentColor;
}
.badge-coming,
:is(.editorial-page, main) .badge-coming,
.editorial-page .calc-prelaunch-nudge .badge-coming,
.editorial-page .cta-band--subpage .badge-coming {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  border: 0;
  border-radius: 999px;
  background: var(--ts-chip-bg);
  color: var(--ts-chip-text);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

/* Badge en lange tekst van de rekenhulp-regel blijven verborgen (na de algemene badge-regel). */
:is(.editorial-page, main) .calc-prelaunch-nudge > :is(.badge-coming, p) { display: none; }

/* ---------- 11. Wachtlijst, downloadband en sticky CTA ---------- */
.landing-cta:not(.landing-cta--compact),
.editorial-page .landing-cta:not(.landing-cta--compact),
:is(main, .editorial-page) .cta-band--subpage {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 0;
  border-radius: var(--ts-r-panel);
  background: var(--ts-band);
  box-shadow: none;
  color: var(--ts-on-dark);
  text-align: left;
}
.landing-cta:not(.landing-cta--compact),
.editorial-page .landing-cta:not(.landing-cta--compact) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.landing-cta:not(.landing-cta--compact) h2,
.editorial-page .landing-cta:not(.landing-cta--compact) h2,
:is(main, .editorial-page) .cta-band--subpage > h2 {
  max-width: 16ch;
  margin: 0 0 1rem;
  color: var(--ts-on-dark);
  font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-align: left;
}
.landing-cta:not(.landing-cta--compact) .premium-eyebrow,
.editorial-page .landing-cta:not(.landing-cta--compact) .premium-eyebrow { color: var(--ts-gold); font-weight: 600; }
.landing-cta:not(.landing-cta--compact) p,
.landing-cta:not(.landing-cta--compact) .calc-help,
:is(main, .editorial-page) .cta-band--subpage p {
  color: var(--ts-on-dark-muted);
}
.landing-cta:not(.landing-cta--compact) > div > p { max-width: 34rem; font-size: 1.0625rem; line-height: 1.55; }
.landing-cta:not(.landing-cta--compact) .calc-help { font-size: .875rem; }
.landing-cta:not(.landing-cta--compact) .launch-waitlist,
.editorial-page .landing-cta:not(.landing-cta--compact) .launch-waitlist,
:is(main, .editorial-page) .cta-band--subpage > .launch-waitlist {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__lead {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  color: var(--ts-on-dark-muted);
  font-size: .9375rem;
  line-height: 1.55;
  text-align: left;
}
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__form { gap: .75rem; margin-top: 0; }
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__label {
  color: var(--ts-on-dark);
  font-size: .9375rem;
  font-weight: 700;
}
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__form input[type="email"],
.editorial-page :is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__form input[type="email"] {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #1c2b28;
}
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__form input[type="email"]::placeholder { color: #5e6b66; }
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__form input[type="email"]:focus-visible { outline-color: var(--ts-gold); border-color: #ffffff; }
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .lead-consent {
  color: var(--ts-on-dark-muted);
  font-size: .875rem;
  line-height: 1.5;
}
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .lead-consent input[type="checkbox"] { accent-color: var(--ts-gold); }
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) a:not(.btn),
.editorial-page :is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .lead-consent a {
  color: var(--ts-on-dark);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ts-on-dark) 60%, transparent);
}
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) a:not(.btn):hover { text-decoration-color: var(--ts-gold); }
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .btn--primary,
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__form .btn--primary {
  width: auto;
  justify-self: start;
  background: var(--ts-gold);
  border-color: var(--ts-gold);
  color: #1c2b28;
}
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .btn--primary:hover { background: #f6c96d; border-color: #f6c96d; color: #1c2b28; }
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .btn--secondary {
  border-color: rgba(247, 245, 239, .55);
  background: transparent;
  color: var(--ts-on-dark);
}
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .btn--secondary:hover { border-color: var(--ts-on-dark); background: var(--ts-band-soft); color: var(--ts-on-dark); }
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .lead-status { color: var(--ts-on-dark); font-size: .9375rem; text-align: left; }
:is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) :focus-visible { outline-color: var(--ts-gold); }
.landing-cta.landing-cta--compact {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.landing-cta.landing-cta--compact .btn + .btn { margin-left: 0; }
.landing-cta.landing-cta--compact > p {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  max-width: none;
  margin: 0;
  color: inherit;
}
.landing-cta.landing-cta--compact .btn--primary { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-text); }
.landing-cta.landing-cta--compact .btn--secondary { border-color: var(--border-strong); color: var(--text-primary); }

/* Downloadband (rekenhulpen en oudere pagina's): een rustige wachtlijstkaart, net als .landing-cta.
   De door download.js gevulde winkelbadges ("Gepland") en de voetnoot herhalen alleen de status
   en blijven verborgen; de twee vervolglinks worden rustige tekstlinks. */
:is(main, .editorial-page) .cta-band--subpage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "title form" "intro form" "links form";
  grid-template-rows: auto auto 1fr;
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
:is(main, .editorial-page) .cta-band--subpage > h2 { grid-area: title; margin: 0; }
:is(main, .editorial-page) .cta-band--subpage > .download-lead {
  grid-area: intro;
  max-width: 34rem;
  margin: 0;
  color: var(--ts-on-dark-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-align: left;
}
:is(main, .editorial-page) .cta-band--subpage > :is(.store-badges, .cta-band__soon) { display: none; }
:is(main, .editorial-page) .cta-band--subpage > .launch-waitlist { grid-area: form; }
:is(main, .editorial-page) .cta-band--subpage > .cta-band__actions {
  grid-area: links;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0 1.75rem;
  margin: 0;
}
:is(main, .editorial-page) .cta-band--subpage > .cta-band__actions .btn {
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ts-on-dark);
  font-weight: 700;
  text-decoration: underline 2px var(--ts-gold);
  text-underline-offset: .45em;
}
:is(main, .editorial-page) .cta-band--subpage > .cta-band__actions .btn:hover {
  background: transparent;
  color: var(--ts-on-dark);
  text-decoration-color: currentColor;
}

/* Wachtlijst los op een pagina (zonder band) */
.launch-waitlist {
  border: 1px solid var(--border);
  border-radius: var(--ts-r-card);
  background: var(--bg-surface);
  box-shadow: none;
}
.launch-waitlist__label { color: var(--text-primary); font-size: .9375rem; font-weight: 700; }
.lead-consent { color: var(--text-secondary); font-size: .875rem; line-height: 1.5; }

.mobile-sticky-cta,
.mobile-sticky-cta:not([hidden]) { display: none !important; }
.mobile-sticky-cta {
  gap: .625rem;
  padding: .75rem var(--ts-gutter) calc(.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.mobile-sticky-cta__primary,
.mobile-sticky-cta__secondary {
  min-height: 44px;
  padding: .5rem .75rem;
  border-radius: var(--ts-r-btn);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.mobile-sticky-cta__primary { flex: 1 1 auto; }
.mobile-sticky-cta__secondary { flex: 0 0 auto; padding-inline: 1.125rem; }
.mobile-sticky-cta__primary { border: 1px solid var(--btn-primary-bg); background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.mobile-sticky-cta__secondary { border: 1px solid var(--border-strong); background: transparent; color: var(--text-primary); }

/* ---------- 12. Oudere sjablonen: juridisch, 404, support, checklists ---------- */
main > .content:first-child { margin-top: clamp(1.25rem, 3vw, 2.25rem); }
main .content {
  max-width: 52rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--ts-r-card);
  background: var(--bg-surface);
  box-shadow: none;
}
.site--legal .content { max-width: 52rem; }
main .content h1 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
main .content .meta { margin: 0 0 2rem; color: var(--text-secondary); font-size: .9375rem; }
main .content h2 {
  margin: 2.5rem 0 .75rem;
  color: var(--text-primary);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}
main .content h3 { margin: 1.5rem 0 .5rem; font-size: 1.125rem; letter-spacing: -.01em; }
main .content :is(p, li) { max-width: var(--ts-measure); color: var(--ts-copy); line-height: 1.65; }
main .content strong { color: var(--text-primary); }
main .content :is(th, td) { padding: .75rem .875rem; border-color: var(--border); }
main .content th { background: var(--bg-muted); color: var(--text-primary); }
.contact-box {
  padding: 1.25rem 1.5rem;
  border: 0;
  border-radius: var(--ts-r-row);
  background: var(--bg-muted);
}
.faq-item { margin: 0; padding: 1.125rem 0; border-top: 1px solid var(--border); }
.faq-item h3 { margin: 0 0 .375rem; font-size: 1.0625rem; }
.faq-item p { color: var(--ts-copy); }
.page-404-actions { gap: .75rem 1rem; margin-top: 1.75rem; }
.resource-checklist .checklist-items li { padding: .875rem 0; border-bottom: 1px solid var(--border); }
.resource-checklist .checklist-items label { color: var(--ts-copy); font-size: 1rem; }
.embed-code { border-radius: var(--ts-r-input); background: var(--bg-muted); color: var(--text-primary); font-size: .875rem; }
.calc-promo {
  border: 0;
  border-radius: var(--ts-r-card);
  background: var(--bg-muted);
}
.page-reviewed { color: var(--text-secondary); }
.compliance-note,
.prelaunch-banner { border-radius: var(--ts-r-row); color: var(--ts-copy); }

/* ---------- 13. Cookiemelding ---------- */
#ts-consent-banner {
  right: max(.75rem, env(safe-area-inset-right));
  bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  left: max(.75rem, env(safe-area-inset-left));
  max-width: 60rem;
  margin-inline: auto;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--ts-r-card);
  background: var(--bg-surface);
  box-shadow: 0 2px 10px rgba(28, 43, 40, .08);
  color: var(--text-primary);
}
.ts-consent__inner { max-width: none; gap: .75rem 1.5rem; background: transparent; }
.ts-consent__text { color: var(--text-secondary); font-size: .875rem; line-height: 1.5; }
.ts-consent__text strong { color: var(--text-primary); }
.ts-consent__text a { color: var(--link); text-decoration: underline; }
.ts-consent__actions { gap: .625rem; }
.ts-consent__btn,
.ts-consent__btn--primary {
  min-width: 7.5rem;
  min-height: 44px;
  padding: .625rem 1.25rem;
  border: 1px solid var(--btn-primary-bg);
  border-radius: var(--ts-r-btn);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
}
.ts-consent__btn:hover,
.ts-consent__btn--primary:hover { border-color: var(--btn-primary-bg-hover); background: var(--btn-primary-bg-hover); }
.ts-consent__btn:focus-visible { outline: 3px solid var(--ts-focus); outline-offset: 3px; }

/* ---------- 14. Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--ts-gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  color: var(--text-secondary);
  font-size: .9375rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: var(--ts-wrap);
  margin: 0 auto;
}
.site-footer__brand { margin-bottom: 1.5rem; }
.site-footer__brand .brand { font-size: 1.1875rem; }
.site-footer__brand .brand__mark { width: 2rem; height: 2rem; }
.site-footer__brand p {
  max-width: 22rem;
  margin: .875rem 0 0;
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.55;
}
.site-footer__group { border-top: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent); }
.site-footer__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: .625rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.site-footer__group > summary::-webkit-details-marker { display: none; }
.site-footer__group > summary::marker { content: ""; }
.site-footer__group > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: .25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.site-footer__group[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.site-footer ul { margin: 0; padding: 0 0 .75rem; list-style: none; }
.site-footer li { margin: 0; }
.site-footer li a,
.site-footer__consent-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: .9375rem;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.site-footer li a:hover,
.site-footer__consent-button:hover {
  color: var(--text-primary);
  text-decoration: underline 2px var(--ts-gold);
  text-underline-offset: .25em;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  max-width: var(--ts-wrap);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  color: var(--text-secondary);
  font-size: .875rem;
  text-align: left;
}
.site-footer__bottom p { margin: 0; color: var(--text-secondary); }
.site-footer__legal { max-width: 46rem; margin: 0; font-size: .875rem; line-height: 1.6; }
.site-footer__legal strong { color: var(--text-primary); }
.site-footer__legal a,
.site-footer__bottom a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.site-footer__legal a:hover,
.site-footer__bottom a:hover { color: var(--text-primary); text-decoration-color: var(--ts-gold); }

@media (min-width: 56.25rem) {
  .site-footer__bottom { margin-top: 2.5rem; }
  .site-footer__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem clamp(1.5rem, 3vw, 3rem);
    align-items: start;
  }
  .site-footer__brand { grid-column: 1 / -1; margin: 0; }
  .site-footer__group,
  .site-footer__group:last-of-type { border: 0; }
  .site-footer__group:last-of-type { grid-column: 4; grid-row: 2 / span 2; }
  .site-footer__group > summary {
    min-height: 0;
    padding: 0 0 .5rem;
    font-size: .9375rem;
    cursor: default;
  }
  .site-footer__group[open] > summary::after { display: none; }
  .site-footer__group:not([open]) > summary { cursor: pointer; }
  .site-footer ul { padding: 0; }
  .site-footer li a,
  .site-footer__consent-button { min-height: 2.25rem; }
}
@media (min-width: 75rem) {
  .site-footer__inner { grid-template-columns: minmax(14rem, 1.35fr) repeat(4, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1; grid-row: 1 / span 2; padding-right: 1rem; }
  .site-footer__group:last-of-type { grid-column: 5; grid-row: 1 / span 2; }
}

/* ---------- 15. Donker thema: aanvullingen ---------- */
:root[data-theme="dark"] .site-header { border-bottom-color: var(--border); }
:root[data-theme="dark"] .editorial-page .product-page-visual figcaption span { border-top-color: var(--border); }
:root[data-theme="dark"] #ts-consent-banner { box-shadow: none; }
:root[data-theme="dark"] .calc-results,
:root[data-theme="dark"] .calc-workspace__results,
:root[data-theme="dark"] :is(.editorial-page, main) .calc-kpi--accent,
:root[data-theme="dark"] .landing-cta:not(.landing-cta--compact),
:root[data-theme="dark"] .cta-band--subpage {
  box-shadow: inset 0 0 0 1px rgba(154, 217, 198, .16);
}
:root[data-theme="dark"] .calc-workspace__results .calc-results,
:root[data-theme="dark"] :is(.editorial-page, main) .calc-results .calc-kpi--accent { box-shadow: none; }
:root[data-theme="dark"] .comparison-table__highlight { background: color-mix(in srgb, var(--ts-gold) 10%, var(--bg-surface)); }

/* ---------- 16. Responsief ---------- */
/* Rekenhulpen op brede schermen: formulier, uitkomst en uitleg in de hoofdkolom,
   gerelateerde rekenhulpen als rustige zijkolom. Alleen plaatsing, dezelfde DOM. */
@media (min-width: 68.75rem) {
  .editorial-page[data-page-kind="tool"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem);
    column-gap: clamp(2.5rem, 4vw, 4.5rem);
    row-gap: 0;
    align-items: start;
  }
  .editorial-page[data-page-kind="tool"] > * { grid-column: 1; min-width: 0; }
  .editorial-page[data-page-kind="tool"] > :is(.breadcrumbs, .landing-hero, .cta-band--subpage) { grid-column: 1 / -1; }
  .editorial-page[data-page-kind="tool"] > :is(.calc-form, .calc-workspace, .calc-results, .calc-contract-scenario, .calc-dynamisch-chart) { max-width: none; }
  .editorial-page[data-page-kind="tool"] > .related-tools {
    grid-column: 2;
    grid-row: 3 / span 14;
    align-self: start;
    margin: 0;
  }
  .editorial-page[data-page-kind="tool"] > .related-tools > h2 {
    margin: 0 0 .625rem;
    font-family: var(--font);
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: 0;
  }
  .editorial-page[data-page-kind="tool"] > .related-tools .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .editorial-page[data-page-kind="tool"] > .related-tools .tool-card { padding-block: .875rem 1rem; }
  .editorial-page[data-page-kind="tool"] > .related-tools .tool-card p { font-size: .875rem; }
}
@media (min-width: 68.75rem) and (min-height: 50rem) {
  .editorial-page[data-page-kind="tool"] > .related-tools {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
@media (min-width: 72rem) {
  .editorial-page:not([data-page-kind="legal"]):not([data-page-kind="tool"]):has(>.product-page-visual)>.landing-hero { margin-block: 2rem 3rem; }
}
@media (max-width: 64rem) {
  .editorial-page .editorial-layout { display: block; }
  .editorial-page .editorial-copy { max-width: 46rem; }
}
@media (max-width: 56.24rem) {
  .landing-cta:not(.landing-cta--compact),
  .editorial-page .landing-cta:not(.landing-cta--compact),
  :is(main, .editorial-page) .cta-band--subpage { display: block; }
  .landing-cta:not(.landing-cta--compact) .launch-waitlist,
  .editorial-page .landing-cta:not(.landing-cta--compact) .launch-waitlist { margin-top: 2rem; }
  :is(main, .editorial-page) .cta-band--subpage > h2 { margin-bottom: 1rem; }
  :is(main, .editorial-page) .cta-band--subpage > .download-lead { margin-bottom: 1.75rem; }
  :is(main, .editorial-page) .cta-band--subpage > .launch-waitlist { margin: 0 0 1rem; }
}
@media (max-width: 48rem) {
  .editorial-page .premium-hub-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .editorial-page .premium-hub-grid .premium-tool { padding: 1.25rem 1.25rem 1.375rem; }
  .cta-band__actions { flex-direction: column; align-items: stretch; }
  .cta-band__actions .btn { width: 100%; }
  :is(main, .editorial-page) .cta-band--subpage > .cta-band__actions { flex-direction: row; align-items: center; }
  .editorial-page .calc-form > .btn { width: 100%; }
  .editorial-page .calc-form > .btn + .btn { margin: .625rem 0 0; }
  :is(.landing-cta:not(.landing-cta--compact), .cta-band--subpage) .launch-waitlist__form .btn--primary { width: 100%; justify-self: stretch; }
}
@media (max-width: 40rem) {
  .editorial-page:not([data-page-kind="legal"]):not([data-page-kind="tool"]):has(>.product-page-visual)>.landing-hero {
    padding: 0;
    border-bottom: 0;
  }
  .editorial-page .landing-hero h1,
  .editorial-page[data-page-kind] .landing-hero h1 {
    font-size: clamp(2rem, 1.2rem + 4.6vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -.02em;
  }
  .editorial-page[data-page-kind="tool"] .landing-hero h1,
  .editorial-page[data-page-kind="legal"] .landing-hero h1 { font-size: clamp(1.875rem, 1.2rem + 3.8vw, 2.25rem); }
  .editorial-page .landing-hero .lead { font-size: 1.0625rem; }
  .editorial-page .editorial-copy :is(p, li) { font-size: 1rem; }
  .editorial-page .editorial-copy h2 { margin-top: 2.25rem; font-size: 1.5rem; }
  .editorial-page .product-page-visual { padding: 1.25rem; gap: 1.25rem; }
  .editorial-page .product-page-visual img { border-width: 5px; border-radius: 24px; }
  .editorial-page .editorial-copy .editorial-sources { padding: 1.125rem 1.25rem; }
  .editorial-page .editorial-copy :is(th, td),
  .data-table :is(th, td) { padding: .75rem .875rem; }
  .editorial-page .calc-form { padding: 1.25rem; }
  :is(.editorial-page, main) .calc-results .calc-kpi { flex-wrap: wrap; }
  :is(.editorial-page, main) .calc-results .calc-kpi-grid--hero { grid-template-columns: minmax(0, 1fr); }
  :is(.editorial-page, main) .calc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  :is(.editorial-page, main) .calc-kpi { padding: .875rem .875rem 1rem; }
  :is(.editorial-page, main) .calc-results .calc-kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-cta:not(.landing-cta--compact) h2,
  .editorial-page .landing-cta:not(.landing-cta--compact) h2,
  :is(main, .editorial-page) .cta-band--subpage > h2 { font-size: clamp(1.5rem, 1.1rem + 2.4vw, 1.75rem); }
  main .content,
  .site--legal main .content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  #ts-consent-banner { padding: .875rem 1rem; }
  .ts-consent__btn,
  .ts-consent__btn--primary { min-width: 0; }
}
@media print {
  .calc-results,
  .calc-workspace__results,
  :is(.editorial-page, main) .calc-kpi--accent { background: none !important; color: #111 !important; box-shadow: none !important; }
  .calc-results *,
  :is(.editorial-page, main) .calc-kpi--accent * { color: #111 !important; }
  .cta-band--subpage,
  .calc-prelaunch-nudge,
  .related-tools,
  .mobile-sticky-cta,
  #ts-consent-banner { display: none !important; }
}
