/* ============================================================
   SUSTIRO — Tekstpagina (/methodologie/, /nieuwsbrief/, /contact/,
   /correcties/ en later de juridische paginaset)

   Alle styles gescoped onder #sustiro-tekst, dat de template zelf
   op de wrapper zet. Tokens exact overgenomen uit page-over.css —
   niet opnieuw bedacht, zodat de pagina's niet uit elkaar lopen.
   ============================================================ */
#sustiro-tekst {
  /* ---- Locked tokens ---- */
  --navy:            #2C5F8A;
  --navy-dark:       #1A2A3A;
  --terracotta:      #C86B3A;
  --terracotta-deep: #A65426;
  --green:           #5b6e5a;
  --green-dark:      #2d5a3f;
  --paper:           #FAFAF7;
  --paper-alt:       #EEF2ED;
  --ink:             #1a2332;
  --ink-soft:        #4a5568;
  --border:          #D8DEE5;
  --terracotta-tint: #E4A47C;
  --paper-on-navy:   rgba(250,250,247,.88);
  --hairline-on-navy: rgba(250,250,247,.18);
  /* ---- Typografie ---- */
  --font-body: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Charter', 'Iowan Old Style', "Crimson Text", Georgia, 'Times New Roman', serif;
  --fs-body: 19px;
  --lh-body: 1.7;
  /* ---- Layout ---- */
  --maxw: 1080px;
  --maxw-text: 70ch;
  --pad-x: clamp(20px, 5vw, 48px);
  --section-y: clamp(48px, 7vw, 88px);

  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#sustiro-tekst *,
#sustiro-tekst *::before,
#sustiro-tekst *::after { box-sizing: border-box; }

#sustiro-tekst :focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 3px;
}
#sustiro-tekst ::selection { background: var(--navy); color: var(--paper); }

#sustiro-tekst .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ---- Hero ------------------------------------------------- */
#sustiro-tekst .tp-hero {
  background: var(--navy-dark);
  color: var(--paper);
  padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px);
}
#sustiro-tekst .tp-eyebrow {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta-tint);
  margin: 0 0 .75rem;
}
#sustiro-tekst .tp-titel {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  color: #FFFFFF;
  max-width: 24ch;
  margin: 0;
}
#sustiro-tekst .tp-sub {
  margin: 1.25rem 0 0;
  max-width: 62ch;
  color: var(--paper-on-navy);
  font-size: 1.05rem;
}
#sustiro-tekst .tp-rule {
  margin: clamp(28px, 4vw, 44px) 0 0;
  border: 0;
  border-top: 1px solid var(--hairline-on-navy);
}

/* ---- Body ------------------------------------------------- */
#sustiro-tekst .tp-body { padding-block: var(--section-y); }

#sustiro-tekst .tp-body > .wrap > * { max-width: var(--maxw-text); }

#sustiro-tekst .tp-body h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  margin: clamp(40px, 5vw, 64px) 0 .6em;
  color: var(--ink);
}
#sustiro-tekst .tp-body h2:first-child { margin-top: 0; }

#sustiro-tekst .tp-body h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.18rem, 1.9vw, 1.35rem);
  line-height: 1.3;
  margin: 2em 0 .5em;
  color: var(--ink);
}
#sustiro-tekst .tp-body h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.8em 0 .4em;
  color: var(--ink);
}

#sustiro-tekst .tp-body p { margin: 0 0 1.1em; }
#sustiro-tekst .tp-body ul,
#sustiro-tekst .tp-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
#sustiro-tekst .tp-body li { margin-bottom: .55em; }
#sustiro-tekst .tp-body li > ul,
#sustiro-tekst .tp-body li > ol { margin-top: .55em; }

#sustiro-tekst .tp-body a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#sustiro-tekst .tp-body a:hover { color: var(--terracotta-deep); }

#sustiro-tekst .tp-body strong { font-weight: 700; }

/* Citaat — gebruikt voor de bewijsschaal-uitleg en callouts */
#sustiro-tekst .tp-body blockquote {
  margin: 1.8em 0;
  padding: 1.1em 1.4em;
  background: var(--paper-alt);
  border-left: 4px solid var(--navy);
  border-radius: 0 4px 4px 0;
}
#sustiro-tekst .tp-body blockquote > :last-child { margin-bottom: 0; }

/* Tabel — de bewijsschaal staat als tabel op /methodologie/ */
#sustiro-tekst .tp-body table {
  width: 100%;
  max-width: var(--maxw);
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: .95rem;
}
#sustiro-tekst .tp-body th,
#sustiro-tekst .tp-body td {
  text-align: left;
  vertical-align: top;
  padding: .7em .85em;
  border-bottom: 1px solid var(--border);
}
#sustiro-tekst .tp-body thead th {
  background: var(--paper-alt);
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
}
#sustiro-tekst .tp-body tbody tr:last-child td { border-bottom: 0; }

#sustiro-tekst .tp-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--paper-alt);
  padding: .12em .38em;
  border-radius: 3px;
}

#sustiro-tekst .tp-body img,
#sustiro-tekst .tp-body svg { max-width: 100%; height: auto; }

#sustiro-tekst .tp-body figure { margin: 1.8em 0; max-width: var(--maxw); }
#sustiro-tekst .tp-body figcaption {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: .6em;
  max-width: var(--maxw-text);
}

#sustiro-tekst .tp-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: clamp(36px, 5vw, 56px) 0;
}

/* ---- Voet ------------------------------------------------- */
#sustiro-tekst .tp-voet {
  border-top: 1px solid var(--border);
  padding-block: clamp(24px, 3vw, 36px) clamp(40px, 6vw, 72px);
}
#sustiro-tekst .tp-herzien {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Smal venster ----------------------------------------- */
@media (max-width: 640px) {
  #sustiro-tekst { --fs-body: 18px; }
  #sustiro-tekst .tp-titel { max-width: none; }
  #sustiro-tekst .tp-body table { font-size: .88rem; }
  #sustiro-tekst .tp-body th,
  #sustiro-tekst .tp-body td { padding: .55em .6em; }
}

/* ---- Print ------------------------------------------------ */
@media print {
  #sustiro-tekst .tp-hero { background: none; color: #000; }
  #sustiro-tekst .tp-titel { color: #000; }
  #sustiro-tekst .tp-sub { color: #000; }
}

/* Mobiel (28-09-2026): tabellen op Methodologie liepen op 375px 20px buiten beeld. */
@media (max-width: 640px) {
  #sustiro-tekst .tp-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
