/* statistiekfaq.nl - theme v1 "Grafiekpapier" (29-11-2026)
   Graph paper: a pale blue millimetre grid behind white sheets, a blue axis line under the header, yellow marker
   highlights. Fira Sans for text and headings, Fira Mono for numbers and formulas. Answers are one sheet; the
   calculator sits under it, wider, and writes out every step. Bump ?v= in head-assets and the faq templates. */

@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fira Mono"; src: url("/assets/fonts/fira-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Mono"; src: url("/assets/fonts/fira-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f6f9ff; --grid: rgba(29,78,216,.07); --grid-2: rgba(29,78,216,.13); --sheet: #ffffff; --line: #d7e0f2;
  --ink: #14213d; --blue: #1d4ed8; --blue-d: #1e3a8a; --blue-l: #e8efff; --muted: #5a6680;
  --yellow: #ffd166; --yellow-l: #fff4d1; --red: #c2410c; --green: #15803d;
  --sans: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Fira Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 70rem; --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.68 var(--sans);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--blue-d); background: var(--yellow-l); }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-top: .25em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
code, .num { font-family: var(--mono); font-size: .93em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 9; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; }
.ic { width: 1.05em; height: 1.05em; fill: currentColor; vertical-align: -.15em; flex: none; }
.kicker { display: inline-flex; gap: .45rem; align-items: center; margin: 0 0 .3rem; font: 500 .82rem/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.kicker a { color: inherit; text-decoration: none; }
.lead { font-size: 1.15rem; color: #34405c; max-width: 44rem; }
.muted { color: var(--muted); font-size: .93rem; }
mark, .hl { background: linear-gradient(transparent 55%, var(--yellow) 55%); color: inherit; padding: 0 .1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* header */
.site-header { background: var(--sheet); border-bottom: 3px solid var(--blue); position: relative; }
.site-header__inner { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; display: flex; align-items: center; gap: 1rem; min-height: 4.2rem; }
.brand { margin-right: auto; display: inline-flex; }
.brand:hover { background: none; }
.brand__logo { height: 1.95rem; width: auto; display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.site-nav__link { display: block; padding: .5rem .8rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.site-nav__link:hover { background: var(--blue-l); color: var(--blue-d); }
.is-current .site-nav__link { background: var(--blue); color: #fff; }
.menu-toggle { display: none; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); padding: .4rem .8rem; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; border-radius: var(--r); }
.menu-toggle svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
@media (max-width: 56rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sheet); border-bottom: 3px solid var(--blue); padding: .5rem 1rem 1rem; z-index: 5; }
  .js .site-nav.is-open { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .js .site-nav__list { flex-direction: column; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: .6rem; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
}

/* crumbs */
.crumbs { font: 400 .82rem var(--mono); color: var(--muted); padding: 1.1rem 0 .6rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: #a3b0cc; }
.crumbs a { color: var(--muted); text-decoration: none; }

/* hero */
.hero { padding: 2.6rem 0 2rem; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; align-items: center; }
.hero__curve { width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--line); padding: .8rem; border-radius: var(--r); box-shadow: 4px 4px 0 var(--blue-l); }
.hero__curve .ax { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.hero__curve .bell { stroke: var(--blue); stroke-width: 3; fill: rgba(29,78,216,.08); }
.hero__curve .mu { stroke: var(--yellow); stroke-width: 3; }
.hero__curve .sd { stroke: #9db1e6; stroke-width: 1.5; stroke-dasharray: 4 4; }
.hero__curve text { font: 500 13px var(--mono); fill: var(--ink); }
@media (max-width: 52rem) { .hero__inner { grid-template-columns: 1fr; } .hero__curve { max-width: 20rem; } }

/* sheets */
.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.2rem, 4vw, 2.6rem); max-width: 50rem; box-shadow: 6px 6px 0 var(--blue-l); margin-bottom: 1.6rem; position: relative; }
.sheet--wide { max-width: none; }
.home-body { padding: 0 0 1rem; }
.prose.prose--wide { max-width: none; }
.prose { max-width: 44rem; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.2em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.table-wrap table { margin: 0; }
.prose th, .prose td { text-align: left; padding: .45rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--blue-l); }
.prose td.n, .prose th.n { text-align: right; font-family: var(--mono); }
.prose--answer > p:first-child { border-left: 5px solid var(--yellow); background: var(--yellow-l); padding: .9rem 1.1rem; font-size: 1.1rem; }
.prose--answer > p:first-child::before { content: "In het kort"; display: block; font: 500 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8a6100; margin-bottom: .3rem; }
.formula { font: 500 1.08rem/1.5 var(--mono); background: var(--blue-l); border: 1px dashed #9db1e6; padding: .7rem 1rem; border-radius: var(--r); overflow-x: auto; white-space: nowrap; }
.worked { border: 1px solid var(--line); border-left: 5px solid var(--blue); background: #fbfcff; padding: .9rem 1.1rem; margin: 0 0 1.2em; border-radius: 0 var(--r) var(--r) 0; }
.worked__head { font: 500 .78rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin: 0 0 .4rem; }
.worked p:last-child, .worked ol:last-child { margin-bottom: 0; }

/* home blocks */
.calcs { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: .7rem; }
.calcs a { display: block; height: 100%; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; text-decoration: none; color: var(--ink); box-shadow: 3px 3px 0 var(--blue-l); }
.calcs a:hover { border-color: var(--blue); background: var(--sheet); box-shadow: 3px 3px 0 var(--yellow); }
.calcs strong { display: block; font-weight: 600; }
.calcs code { color: var(--blue); font-size: .85rem; }
.topics { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; counter-reset: tp; }
.topics li { counter-increment: tp; }
.topics a { display: block; height: 100%; background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--r); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); }
.topics a::before { content: counter(tp); display: block; font: 500 .8rem var(--mono); color: var(--blue); margin-bottom: .2rem; }
.topics a:hover { background: var(--sheet); border-top-color: var(--yellow); }
.topics strong { display: block; font-size: 1.1rem; font-weight: 800; margin-bottom: .2rem; }
.topics span { font-size: .93rem; color: var(--muted); }

/* listing syllabus */
.syllabus { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.6rem 2rem; counter-reset: ch; }
.syllabus__ch { counter-increment: ch; }
.syllabus__title { margin: 0 0 .5rem; font-size: 1.2rem; display: flex; gap: .5rem; }
.syllabus__title::before { content: counter(ch) "."; color: var(--blue); font-family: var(--mono); }
.syllabus__title a { color: var(--ink); text-decoration: none; }
.syllabus__list { list-style: none; margin: 0; padding: 0; counter-reset: it; }
.syllabus__list li { counter-increment: it; border-top: 1px solid var(--line); display: flex; gap: .6rem; }
.syllabus__list li::before { content: counter(ch) "." counter(it); font: 400 .82rem/2.6 var(--mono); color: var(--muted); min-width: 2.2rem; }
.syllabus__list a { display: block; padding: .45rem 0; text-decoration: none; color: var(--ink); flex: 1; }
.syllabus__list a:hover { color: var(--blue); }

/* category exercises */
.exercises { list-style: none; margin: 1.4rem 0 2rem; padding: 0; display: grid; gap: .6rem; counter-reset: ex; }
.exercises li { counter-increment: ex; }
.exercise { display: grid; grid-template-columns: 3.4rem 1fr; grid-template-rows: auto auto; column-gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.exercise::before { content: "#" counter(ex); grid-row: 1 / 3; font: 500 1.4rem/1.2 var(--mono); color: var(--blue); }
.exercise:hover { border-color: var(--blue); background: var(--blue-l); }
.exercise__q { font-weight: 600; font-size: 1.05rem; }
.exercise__x { font-size: .93rem; color: var(--muted); }
.tabs { margin: 0 0 1.6rem; }
.tabs__head { font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .4rem; }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tabs a { display: inline-block; padding: .4rem .9rem; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.tabs a:hover { border-color: var(--blue); color: var(--blue); }

/* after the answer */
.after { max-width: 50rem; }
.next { margin: 0 0 1.6rem; }
.next__head { font-size: 1.15rem; margin: 0 0 .6rem; }
.next__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem; }
.next__list a { display: block; height: 100%; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.next__list a:hover { border-color: var(--blue); background: var(--sheet); color: var(--blue); }
.next__list small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: .2rem; }

/* calculator */
.calc-block { margin: 0 0 1.8rem; }
.calc { background: var(--sheet); border: 2px solid var(--blue); border-radius: var(--r); padding: clamp(1rem, 3vw, 1.8rem); box-shadow: 6px 6px 0 var(--yellow); }
.calc__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 .2rem; }
.calc__intro { color: var(--muted); margin: 0 0 1rem; }
.calc__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; }
.calc__field { display: block; margin-bottom: .8rem; }
.calc__field[hidden] { display: none; }
.calc__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.calc__hint { display: block; font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.calc__input { width: 100%; font: 400 1rem var(--mono); padding: .55rem .7rem; border: 1px solid #b9c6e4; border-radius: var(--r); background: #fff; color: var(--ink); }
.calc__input--area { min-height: 5.5rem; resize: vertical; }
.calc__input--cell { width: 5.5rem; text-align: right; }
.calc__gridwrap { overflow-x: auto; margin-bottom: .8rem; }
.calc__grid { border-collapse: collapse; }
.calc__grid td { padding: .2rem; }
.calc__bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--blue); color: #fff; border: 0; border-radius: var(--r); padding: .6rem 1.15rem; font: 600 .98rem var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--blue-d); color: #fff; }
.btn--ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn--ghost:hover { background: var(--blue-l); color: var(--blue-d); }
.calc__out:empty { display: none; }
.calc__out { border-top: 1px dashed #9db1e6; padding-top: 1rem; }
.calc__steps { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: st; }
.calc__steps li { counter-increment: st; display: grid; grid-template-columns: 2rem 1fr; column-gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.calc__steps li::before { content: counter(st); grid-row: 1 / 4; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blue-l); color: var(--blue); font: 500 .85rem/1.6rem var(--mono); text-align: center; }
.calc__lbl { font-weight: 600; }
.calc__f { font-family: var(--mono); font-size: .92rem; color: #33405f; overflow-wrap: anywhere; }
.calc__r { font: 500 1rem var(--mono); color: var(--blue-d); }
.calc__result { background: var(--yellow-l); border-left: 5px solid var(--yellow); padding: .8rem 1rem; font-weight: 600; margin: 0 0 1rem; }
.calc__err { color: var(--red); font-weight: 600; }
.calc__note { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }
.calc__tablewrap { overflow-x: auto; margin: 0 0 1rem; }
.calc__table { border-collapse: collapse; font: 400 .92rem var(--mono); min-width: 18rem; }
.calc__table th, .calc__table td { border: 1px solid var(--line); padding: .3rem .7rem; text-align: right; }
.calc__table th { background: var(--blue-l); font-weight: 500; }
.calc__plot { display: block; width: 100%; max-width: 36rem; height: auto; margin: 0 0 1rem; }
.calc__plot .ax { stroke: var(--ink); stroke-width: 1.2; }
.calc__plot .w { stroke: var(--ink); stroke-width: 2; }
.calc__plot .box { fill: var(--blue-l); stroke: var(--blue); stroke-width: 2; }
.calc__plot .med { stroke: var(--blue-d); stroke-width: 3; }
.calc__plot .out { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.5; }
.calc__plot .pt { fill: var(--blue); fill-opacity: .8; }
.calc__plot .reg { stroke: #e0a400; stroke-width: 3; }
.calc__plot text { font: 400 12px var(--mono); fill: var(--muted); }

/* books (theme layer over the kit) */
.bcm-books { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.bcm-books__title { margin-top: 0; font-size: 1.2rem; }

/* footer */
.site-footer { background: var(--blue-d); color: #d5def7; margin-top: 3rem; font-size: .93rem; }
.site-footer__inner { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }
.site-footer__logo { height: 1.9rem; width: auto; display: block; margin-bottom: .8rem; }
.site-footer__head { font-weight: 800; color: #fff; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #d5def7; text-decoration: none; line-height: 2; }
.site-footer a:hover { color: var(--yellow); background: none; }
.site-footer__small { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; padding: 1rem 0 1.6rem; border-top: 1px solid rgba(255,255,255,.15); font: 400 .8rem var(--mono); color: #a9b8e6; }
@media (max-width: 48rem) { .site-footer__inner { grid-template-columns: 1fr; } }

.disclosure-slot { font-size: .85rem; color: var(--muted); padding: 1rem 0; }
.share { margin: 2rem 0; background: var(--sheet); }

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .share, .crumbs, .bcm-books, .disclosure-slot, .tabs, .next, .calc__bar, .calc__note { display: none; }
  .sheet, .calc { box-shadow: none; border: 0; padding: 0; }
}
