/* Design v3 on the text pages of the site (ONTWERP_V3_AAN, GOL-704): questions, privacy, terms, colophon, blog,
   calculators, help, partners and the pages a link in a mail lands on. docPage() in src/site/shell.ts puts each
   page's header at the top on the page ground (GOL-827: no gold field any more, gold is an accent); everything
   below is one column. Loaded after the page's own sheet, and every rule starts at html.is-v3, so the old pages are
   untouched. Contrast: ink-2 on white 11:1, --inkt-zacht on white 7.7:1, documented in docs/ontwerp.md. */

/* The head: a short gold rule, the heading, one line of lead. */
html.is-v3 .v3-docvlak--leeg { padding-bottom: 1rem; }
html.is-v3 .v3-kop h1::before { content: ""; display: block; width: clamp(2rem, 1.5rem + 1.5vw, 3rem); height: clamp(0.25rem, 0.2rem + 0.2vw, 0.375rem); margin-bottom: clamp(1rem, 0.75rem + 1vw, 1.5rem); border-radius: 0.375rem; background: var(--goud); }
html.is-v3 .v3-kop { padding-top: clamp(1.5rem, 0.5rem + 3.5vw, 3.5rem); overflow-wrap: anywhere; }
html.is-v3 .v3-kop h1 { margin: 0; font-size: clamp(2.5rem, 1.1rem + 5.6vw, 5.75rem); line-height: 0.98; }
html.is-v3 .v3-kop h1.v3-kop--lang { font-size: clamp(1.75rem, 0.6rem + 5.4vw, 4.5rem); hyphens: auto; }
html.is-v3 .v3-kop .doc-lede { max-width: 48ch; margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; color: inherit; }
html.is-v3 .v3-kop p { color: inherit; }
html.is-v3 .v3-kop > :is(p, ol, ul) { max-width: 62ch; }
html.is-v3 .v3-kop p + p, html.is-v3 .v3-kop > form { margin-top: 1rem; }
html.is-v3 .v3-kop .klein, html.is-v3 .v3-kop .kennis-kicker, html.is-v3 .v3-kop .kennis-meta { font-size: 1rem; color: inherit; }
html.is-v3 .v3-kop .kennis-kicker { margin-bottom: 1rem; font-weight: 600; }
html.is-v3 .v3-kop .kennis-kicker a { color: inherit; }
html.is-v3 .v3-kop .kennis-meta { max-width: 60ch; margin-top: 1.25rem; }
html.is-v3 .v3-kop .knop { margin-top: 0.5rem; }

/* The column below the field. */
html.is-v3 .v3-docwrap { padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }
html.is-v3 .v3-docwrap .doc { width: min(100%, 44rem); margin-inline: 0; }
html.is-v3 .v3-docwrap .voet { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--lijn); }
html.is-v3 .doc :is(p, li) { color: var(--inkt-2); }
html.is-v3 .doc strong { color: var(--inkt); }

/* Headings in the heading face, one size down from the field's. */
html.is-v3 .doc-blok h2, html.is-v3 .kennis-tekst h2, html.is-v3 .uitleg-artikel h2, html.is-v3 .uitleg-groep h2, html.is-v3 .doc h2 {
  margin-top: 1.25rem; font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem) / 1.08 var(--font-kop);
  letter-spacing: var(--kop-spatie-groot); text-transform: none; color: var(--inkt); text-wrap: balance;
}
html.is-v3 .doc-blok h3, html.is-v3 .kennis-tekst h3, html.is-v3 .uitleg-artikel h3 { font: 700 1.25rem / 1.2 var(--font-kop); letter-spacing: -0.02em; color: var(--inkt); }
html.is-v3 .doc-blok { gap: 0.875rem; margin-top: clamp(2rem, 4vw, 3rem); }
html.is-v3 .doc-blok:first-child { margin-top: 0; }
html.is-v3 .doc-lijst { padding-left: 1.25rem; }
html.is-v3 .doc-lijst li::marker { color: var(--inkt); }
html.is-v3 .doc-actie { margin-top: 2.5rem; }
html.is-v3 .nog { color: var(--inkt-zacht); }

/* Questions: the whole line opens, and the words Open and Sluit say what it does (as on /prijzen). */
.v3-vragen { padding-top: 0.5rem; }
.v3-vraag { padding: 1.25rem 0; border-top: 1px solid var(--lijn); }
.v3-vraag:last-child { border-bottom: 1px solid var(--lijn); }
.v3-vraag summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; list-style: none; cursor: pointer; }
.v3-vraag summary::-webkit-details-marker { display: none; }
.v3-vraag :is(h2, h3) { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); }
.v3-vraag__t { flex: none; font-size: 0.875rem; font-weight: 600; text-decoration: underline var(--goud) 0.125rem; text-underline-offset: 0.25rem; }
.v3-vraag__sluit, .v3-vraag[open] .v3-vraag__open { display: none; }
.v3-vraag[open] .v3-vraag__sluit { display: inline; }
.v3-vraag p { max-width: 62ch; margin-top: 0.75rem; }

/* The colophon: a label, a value, a rule. */
html.is-v3 .gegevens { border-top: 0; }
html.is-v3 .gegevens div { grid-template-columns: 11rem minmax(0, 1fr); padding: 0.875rem 0; border-top: 1px solid var(--lijn); border-bottom: 0; }
html.is-v3 .gegevens dt { color: var(--inkt); font-weight: 700; }
html.is-v3 .gegevens dd { color: var(--inkt-2); }

/* The agreement's annex and a plain price table. */
html.is-v3 .verwerker h4 { font: 700 1.125rem / 1.25 var(--font-kop); letter-spacing: -0.02em; }
html.is-v3 table.prijs th, html.is-v3 table.prijs td { border-bottom-color: var(--lijn); }
html.is-v3 table.prijs thead th { color: var(--inkt); font-size: 0.9375rem; font-weight: 700; }
html.is-v3 .kennis-tabel table.prijs th, html.is-v3 .kennis-tabel table.prijs td { padding-right: 1rem; }
html.is-v3 .kennis-tabel table.prijs th:last-child, html.is-v3 .kennis-tabel table.prijs td:last-child { padding-right: 0; }
html.is-v3 table.prijs .num { font-variant-numeric: tabular-nums; }
html.is-v3 .doc-code { border-radius: var(--r-s); background: var(--licht); }

/* Help: the search box sits on the gold field, the groups are headings, the pages are rows. */
html.is-v3 .uitleg-zoek input { max-width: 28rem; }
html.is-v3 .uitleg-groep { margin-top: clamp(2rem, 4vw, 3rem); }
html.is-v3 .uitleg-groep:first-of-type { margin-top: 0; }
html.is-v3 .uitleg-lijst { margin-top: 0.75rem; border-top: 0; }
html.is-v3 .uitleg-lijst a { padding: 0.875rem 0; border-top: 1px solid var(--lijn); border-bottom: 0; text-decoration: none; }
html.is-v3 .uitleg-lijst a strong { font-size: 1.0625rem; font-weight: 700; color: var(--inkt); text-decoration: underline var(--goud) 0.125rem; text-underline-offset: 0.25rem; }
html.is-v3 .uitleg-lijst a:hover strong { color: var(--inkt); text-decoration-color: var(--inkt); }
html.is-v3 .uitleg-lijst a span { color: var(--inkt-2); }
html.is-v3 .uitleg-leeg { color: var(--inkt-2); }

/* Blog and calculators (kennis): the short answer is read first and set large, the list is rows. */
html.is-v3 .kennis-kort { margin-top: 0; padding: 0; border: 0; background: none; }
html.is-v3 .kennis-kort__kop { margin: 0 0 0.5rem; font: 800 1.125rem / 1.2 var(--font-kop); letter-spacing: var(--kop-spatie-groot); text-transform: none; color: var(--inkt); }
html.is-v3 .kennis-kort p:last-child { font-size: 1.375rem; font-weight: 500; line-height: 1.45; color: var(--inkt); }
html.is-v3 .kennis-tekst { margin-top: clamp(2rem, 4vw, 3rem); }
html.is-v3 .kennis-letop { background: var(--licht); border-radius: var(--r-s); }
html.is-v3 .kennis-stappen li::marker { color: var(--inkt); }
html.is-v3 .kennis-lijst { margin-top: 0; border-top: 0; }
html.is-v3 .kennis-item { padding: 1.125rem 0; border-top: 1px solid var(--lijn); border-bottom: 0; }
html.is-v3 .kennis-item strong { font: 800 clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem) / 1.15 var(--font-kop); letter-spacing: -0.03em; text-decoration: underline var(--goud) 0.125rem; text-underline-offset: 0.25rem; }
html.is-v3 .kennis-item a:hover strong { text-decoration-color: var(--inkt); }
html.is-v3 .kennis-item p { max-width: 60ch; margin-top: 0.375rem; color: var(--inkt-2); font-size: 1rem; }
html.is-v3 .kennis-cta { margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.5rem 0 0; border: 0; border-top: 2px solid var(--inkt); border-radius: 0; }
html.is-v3 .kennis-disclaimer { color: var(--inkt-zacht); }
html.is-v3 .reken { margin-top: 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-m); background: var(--licht); }
html.is-v3 .reken-veld label { font-weight: 600; }
html.is-v3 .reken-veld--vink input { accent-color: var(--inkt); }
html.is-v3 .reken-kop { font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem) / 1.1 var(--font-kop); letter-spacing: var(--kop-spatie-groot); }
html.is-v3 .reken-tabel th { color: var(--inkt); }

/* The pages a link in a mail lands on: no drawing, the field says it. */
html.is-v3 .golven { display: none; }

@media (min-width: 561px) { html.is-v3 .kennis-tabel table.prijs th, html.is-v3 .kennis-tabel table.prijs td { padding-right: 1.5rem; } html.is-v3 .kennis-tabel table.prijs th:last-child, html.is-v3 .kennis-tabel table.prijs td:last-child { padding-right: 0; } }

@media (max-width: 560px) {
  html.is-v3 .v3-kop .doc-lede { font-size: 1.125rem; }
  html.is-v3 .gegevens div { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; }
}
