/* Belegger Kees: opmaak van de openbare methode-site.
   Waarden volgen het visuele ontwerpsysteem van Belegger Kees: een achromatisch fundament met één accent,
   Inter voor tekst, JetBrains Mono voor cijfers, afronding 8px, maximale breedte 1120px, geen donkere modus.
   Lettertypen zijn lokaal meegeleverd en worden nooit van internet geladen. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-variable.woff2") format("woff2"); }

:root {
  --white: #FFFFFF; --grey: #F5F5F7; --ink: #1D1D1F; --muted: #68686D; --edge: #D2D2D7;
  --accent: #C4303C; --accent-hover: #A92934;
  --warn-bg: #FEF2F2; --warn-ink: #991B1B;
  --radius: 8px; --max: 1120px; --shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --side: 280px; --gap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-sans);
  font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 1px;
  text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid rgba(196, 48, 60, 0.35); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 12px 20px;
  border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* kop */
.topbar { border-bottom: 1px solid var(--edge); background: var(--white); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand .dot { color: var(--accent); }
.topnav { display: flex; gap: 24px; flex: 1; font-size: .95rem; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.topnav a:hover { color: var(--ink); }
.btn { display: inline-block; background: var(--accent); color: var(--white); font-weight: 600; font-size: .95rem;
  text-decoration: none; padding: 11px 22px; border-radius: var(--radius); transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* indeling */
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: var(--gap); padding-top: 40px; padding-bottom: 80px; }
.side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; overflow-x: hidden; padding-right: 8px; }
.menu { display: none; }
main { min-width: 0; max-width: 800px; }

/* navigatie */
.sidenav { font-size: .9375rem; line-height: 1.4; }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav ul ul { padding-left: 14px; border-left: 1px solid var(--edge); margin: 4px 0 8px 4px; }
.sidenav li { margin: 0; }
.sidenav li::before { content: none; }
.sidenav a { display: block; padding: 5px 8px; text-decoration: none; color: var(--muted); border-radius: 4px; }
.sidenav a:hover { color: var(--ink); background: var(--grey); }
.sidenav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--grey); }
.sidenav details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.sidenav details > summary::-webkit-details-marker { display: none; }
.sidenav details > summary::before { content: "+"; font-family: var(--font-mono); color: var(--muted); width: 14px; flex: none; text-align: center; }
.sidenav details[open] > summary::before { content: "–"; }
.sidenav details > summary a { flex: 1; font-weight: 500; }

/* tekst */
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink); font-style: normal; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 28px; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 64px 0 20px; }
h3 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; margin: 40px 0 14px; }
h4 { font-size: 1.125rem; font-weight: 600; margin: 28px 0 10px; }
p { margin: 0 0 1.15em; }
main > article > p:first-of-type, main > article > .crumbs + h1 + p { font-size: 1.375rem; line-height: 1.55; font-weight: 300; }
strong { font-weight: 600; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--edge); margin: 56px 0 24px; }

ul, ol { margin: 0 0 1.3em; padding: 0; }
ul { list-style: none; }
ul li { position: relative; padding-left: 24px; margin: 0 0 .5em; }
ul li::before { content: "–"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
ul ul, ol ul { margin: .5em 0 .5em; }
ol { padding-left: 24px; }
ol li { padding-left: 6px; margin: 0 0 .5em; }
ol li::marker { color: var(--muted); font-weight: 600; }

blockquote { margin: 32px 0; padding: 20px 24px; background: var(--grey); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
blockquote p { margin: 0 0 .6em; }
blockquote p:last-child { margin: 0; }
blockquote.in-english { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.lbl { font-weight: 600; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }

code { font-family: var(--font-mono); font-size: .875em; background: var(--grey); padding: .12em .4em; border-radius: 4px; }
pre { background: var(--grey); border: 1px solid var(--edge); border-radius: var(--radius); padding: 20px 24px; overflow-x: auto; margin: 28px 0; line-height: 1.5; }
pre code { background: none; padding: 0; font-size: .875rem; }

.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); }
thead th { background: var(--grey); font-weight: 600; font-size: .875rem; }
tbody tr:last-child td { border-bottom: 0; }
td code { font-size: .8em; }

.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; }
.crumbs li { padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--edge); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.disclaimer { background: var(--grey); border: 1px solid var(--edge); border-radius: var(--radius); padding: 24px; margin: 48px 0 32px; font-size: .95rem; line-height: 1.6; color: var(--ink); }
.disclaimer p { margin: 0; }
.updated { color: var(--muted); font-size: .875rem; margin-top: 8px; }

/* startpagina */
main.home h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); margin-bottom: 24px; }

/* voet */
.foot { border-top: 1px solid var(--edge); background: var(--grey); padding: 56px 0 40px; margin-top: 24px; font-size: .9375rem; }
.foot .disclaimer { background: var(--white); margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-h { font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot ul li { padding-left: 0; margin: 0 0 8px; }
.foot ul li::before { content: none; }
.foot a { color: var(--ink); }
.foot-eco { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--edge); }
.foot-brand { margin: 0 0 12px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.foot-brand .dot { color: var(--accent); }
.foot-tag { margin: 0; color: var(--muted); font-size: .9375rem; max-width: 32ch; }
.foot-eco a[aria-current] { font-weight: 600; }
.foot-note { color: var(--muted); font-size: .875rem; margin: 40px 0 0; }

/* mobiel en tablet */
@media (max-width: 1024px) { :root { --gap: 32px; --side: 240px; } .topnav { display: none; } .topbar-in { justify-content: space-between; } .foot-eco { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 20px; }
  .layout { grid-template-columns: 1fr; padding-top: 24px; gap: 0; }
  .side { display: none; }
  .menu { display: block; margin: 0 0 24px; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--grey); }
  .menu > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: .95rem; list-style: none; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > .sidenav { padding: 0 12px 16px; max-height: 60vh; overflow: auto; }
  main > article > p:first-of-type { font-size: 1.125rem; }
  h2 { margin-top: 48px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-eco { grid-template-columns: 1fr; gap: 28px; }
  .btn { padding: 9px 14px; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* knop in de tekst (een alinea met alleen een vetgedrukte link) */
.cta { margin: 28px 0 36px; }
.cta .btn { padding: 14px 28px; font-size: 1rem; }
