/* serenet.nl reading pages: the mediawijsheid index and articles, privacy, support, account deletion and the 404.
   Loaded after site.css, which owns the header, footer, tokens and every hover/focus state. This file only sets
   page layout and type for long text. Colours come from the site.css tokens (with the same value as fallback). */

/* Reading column: about 66-70 characters per line at 18px. */
.lees{max-width:calc(41rem + 64px);margin:0 auto}
.inhoud{font-size:18px;line-height:1.7;color:var(--sn-ink,#323A3D)}
.inhoud p{margin:0 0 1.15em}
.inhoud h2{margin:2.4em 0 .55em;font-family:var(--sn-font-display,Surgena,Figtree,Inter,sans-serif);font-weight:600;font-size:clamp(23px,2.6vw,27px);line-height:1.2;letter-spacing:-.018em;color:var(--sn-night,#1C2224);text-wrap:balance}
.inhoud h2:first-child{margin-top:0}
.inhoud h3{margin:1.8em 0 .35em;font-family:var(--sn-font-text,Inter,system-ui,sans-serif);font-weight:600;font-size:18px;line-height:1.35;color:var(--sn-night,#1C2224)}
.inhoud ul,.inhoud ol{margin:0 0 1.15em;padding-left:1.3em}
.inhoud li{margin-bottom:.5em}
.inhoud li::marker{color:var(--sn-mist,#4F686B)}
.inhoud strong{font-weight:600;color:var(--sn-night,#1C2224)}
.inhoud a{text-underline-offset:.18em;text-decoration-thickness:1px}
.inhoud h2[id],.inhoud h3[id]{scroll-margin-top:24px}

/* Article header */
.terug{display:inline-block;margin-top:40px;font-size:15px;color:var(--sn-mist,#4F686B);text-decoration:none}
.eyebrow{margin:28px 0 0;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--sn-mist,#4F686B)}
article h1{margin:12px 0 0;font-family:var(--sn-font-display,Surgena,Figtree,Inter,sans-serif);font-weight:600;font-size:clamp(32px,4.8vw,48px);line-height:1.08;letter-spacing:-.028em;color:var(--sn-night,#1C2224);text-wrap:balance}
article .onder{margin:20px 0 0;font-size:20px;line-height:1.55;color:var(--sn-ink-soft,#56625F)}
article .meta{margin:18px 0 0;font-size:15px;color:var(--sn-ink-soft,#56625F)}
/* The photo runs wider than the text column on large screens. */
article .hoofdbeeld{display:block;width:min(56rem,calc(100vw - 64px));max-width:none;margin:36px 0 0;position:relative;left:50%;transform:translateX(-50%);aspect-ratio:2/1;object-fit:cover;border-radius:var(--sn-radius-lg,24px);background:var(--sn-sand-light,#F0E9DD)}
article .hoofdbeeld + .inhoud{margin-top:44px}
.bronnoot{margin:48px 0 0;padding-top:18px;border-top:1px solid var(--sn-line,#E2DCD0);font-size:14px;line-height:1.55;color:var(--sn-ink-soft,#56625F)}

/* Article list: the index groups and "Verder lezen". Horizontal cards in two columns, so ten articles never leave
   one card alone on a row. */
.groepkop{margin:72px 0 24px;font-family:var(--sn-font-display,Surgena,Figtree,Inter,sans-serif);font-weight:600;font-size:clamp(25px,3vw,32px);line-height:1.15;letter-spacing:-.02em;color:var(--sn-night,#1C2224)}
.lijst{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
a.kaart{display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);background:var(--sn-white,#FFFFFF);border:1px solid var(--sn-line,#E2DCD0);border-radius:var(--sn-radius-md,18px);overflow:hidden;color:inherit;text-decoration:none}
.kaart .beeld{display:block;width:100%;height:100%;min-height:180px;object-fit:cover;background:var(--sn-sand-light,#F0E9DD)}
.kaart .tekst{display:flex;flex-direction:column;gap:8px;padding:22px 24px 22px}
.kaart h2{margin:0;font-family:var(--sn-font-display,Surgena,Figtree,Inter,sans-serif);font-weight:600;font-size:20px;line-height:1.25;letter-spacing:-.012em;color:var(--sn-night,#1C2224);text-wrap:balance}
.kaart p{margin:0;font-size:15px;line-height:1.5;color:var(--sn-ink-soft,#56625F)}
.kaart .voet{margin-top:auto;padding-top:6px;font-size:14px;color:var(--sn-mist,#4F686B)}
.article-list{padding-bottom:96px}
.verder{margin:72px 0 96px;padding-top:32px;border-top:1px solid var(--sn-line,#E2DCD0)}
.verder > h2{margin:0 0 20px;font-family:var(--sn-font-display,Surgena,Figtree,Inter,sans-serif);font-weight:600;font-size:22px;color:var(--sn-night,#1C2224)}
/* Inside an article the column is narrow: stack the two cards. */
.lees .lijst{grid-template-columns:1fr}

/* Legal and help pages: text column under the dark page intro. */
/* Left edge shared with the intro above, as on /functies/ and /pilot/. */
.page-intro + .lees{margin-left:max(0px,calc((100% - 1200px) / 2));padding-top:56px;padding-bottom:96px}
.inhoud .meta{margin:0 0 24px;font-size:15px;color:var(--sn-ink-soft,#56625F)}
.kader{margin:0 0 1.15em;padding:22px 24px;background:var(--sn-white,#FFFFFF);border:1px solid var(--sn-line,#E2DCD0);border-radius:var(--sn-radius-md,18px)}
.kader p:last-child{margin-bottom:0}
/* Support questions: one block per question, separated by a rule, so the list can be scanned. */
.vraag{padding:20px 0;border-top:1px solid var(--sn-line,#E2DCD0)}
.vraag:last-of-type{border-bottom:1px solid var(--sn-line,#E2DCD0);margin-bottom:1.15em}
.vraag h3{margin:0 0 6px}
.vraag p{margin:0}

/* Tables (privacy): white card; below 640px each row becomes a small card with the column name above each value. */
.tabel{margin:0 0 1.4em;overflow-x:auto}
.tabel table{width:100%;border-collapse:separate;border-spacing:0;background:var(--sn-white,#FFFFFF);border:1px solid var(--sn-line,#E2DCD0);border-radius:var(--sn-radius-md,18px);font-size:15.5px;line-height:1.5}
.tabel th,.tabel td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--sn-line,#E2DCD0)}
.tabel tr:last-child td{border-bottom:0}
.tabel th{background:var(--sn-mist-light,#E3EAEA);font-weight:600;color:var(--sn-night,#1C2224)}
.tabel tr:first-child th:first-child{border-top-left-radius:17px}
.tabel tr:first-child th:last-child{border-top-right-radius:17px}

/* Privacy contents: a list of the chapters. Beside the text on wide screens (sticky), above it on smaller ones. */
.toc{margin:0 0 40px;padding:20px 24px;background:var(--sn-white,#FFFFFF);border:1px solid var(--sn-line,#E2DCD0);border-radius:var(--sn-radius-md,18px);font-size:15px;line-height:1.45}
.toc-title{margin:0 0 10px;font-weight:600;color:var(--sn-night,#1C2224)}
.toc ol{margin:0;padding-left:1.4em;columns:2 15rem;column-gap:28px}
.toc li{margin:0 0 6px;break-inside:avoid}
.toc li::marker{color:var(--sn-mist,#4F686B)}
.toc a{color:var(--sn-ink,#323A3D);text-decoration:none}
@media (min-width:1100px){
  .lees.with-toc{max-width:1200px;display:grid;grid-template-columns:15rem minmax(0,41rem);justify-content:start;gap:64px;align-items:start}
  .toc{position:sticky;top:24px;margin:0;padding:0;background:none;border:0;border-radius:0}
  .toc ol{columns:auto;padding-left:1.5em}
  .toc li{margin-bottom:9px}
}

/* 404: the footer sits at the bottom of the window, not halfway up the page. */
body.page-404{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body.page-404 main{flex:1 0 auto;display:flex;flex-direction:column;background:var(--sn-night,#1C2224)}
body.page-404 .page-intro{flex:1 0 auto}
.page-intro .page-lead a{color:inherit;text-underline-offset:.18em}

@media (max-width:900px){
  .lijst{grid-template-columns:1fr}
}
@media (max-width:640px){
  .inhoud{font-size:17px}
  .terug{margin-top:28px}
  article .onder{font-size:18px}
  article .hoofdbeeld{width:100%;left:0;transform:none;aspect-ratio:16/10;border-radius:var(--sn-radius-md,18px)}
  .groepkop{margin-top:48px}
  /* Compact list rows on a phone: a square photo beside the title; the summary stays. */
  a.kaart{grid-template-columns:96px minmax(0,1fr);border-radius:var(--sn-radius-sm,12px)}
  .kaart .beeld{min-height:0;height:100%}
  .kaart .tekst{padding:14px 16px;gap:6px}
  .kaart h2{font-size:17px}
  .kaart p{font-size:14.5px}
  .kaart .voet{font-size:13px}
  .page-intro + .lees{padding-top:36px;padding-bottom:64px}
  .tabel{overflow:visible}
  .tabel table,.tabel tbody,.tabel tr,.tabel td{display:block;width:auto}
  .tabel table{background:none;border:0;border-radius:0}
  .tabel tr:first-child{display:none}
  .tabel tr{margin:0 0 12px;padding:4px 0;background:var(--sn-white,#FFFFFF);border:1px solid var(--sn-line,#E2DCD0);border-radius:var(--sn-radius-sm,12px)}
  .tabel td{padding:8px 16px;border-bottom:0}
  .tabel td::before{content:attr(data-label);display:block;font-size:13px;font-weight:600;color:var(--sn-mist,#4F686B)}
  .tabel td:first-child{font-weight:600;color:var(--sn-night,#1C2224)}
  .tabel td:first-child::before{display:none}
}
