/* kraanwaterkwaliteit.nl - theme v1 (06-11-2026) "meetrapport"
   Lab report / measurement card look: warm paper, ink navy, one petrol blue; figures in IBM Plex Mono. The verdict
   colours (onder de richtwaarde green, erboven amber, onbekend grey) always come with a word, never colour alone.
   Unlike zwemwatercheck (teal waves), waterhardheidswijzer (system font, blue cards) and tijgermuggen (comic):
   ruled lines, a grid-paper hero, a left table of contents on text pages. */

@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f7f5ef; --card: #ffffff; --ink: #14213d; --ink-2: #3a4660; --muted: #5d6779; --rule: #d9d4c7; --rule-2: #ebe7dc;
  --petrol: #0f5c8c; --petrol-dark: #0a4468; --petrol-soft: #e4eff6;
  --ok: #2f6f45; --ok-soft: #e3f1e7; --warn: #8f4a00; --warn-soft: #fbeedd; --unk: #59606e; --unk-soft: #eceef1;
  --focus: #e3a21a;
  --wrap: 74rem; --text: 42rem; --gutter: clamp(1rem, 4vw, 2rem); --radius: 6px;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: clamp(1rem, .97rem + .15vw, 1.0625rem); line-height: 1.65; }
main { flex: 1; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--petrol); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--petrol-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--card); color: var(--ink); padding: .6rem .9rem; border: 2px solid var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); font-weight: 700; margin-top: 2rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4rem; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); }
.mono, .fig { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; }

/* header: a label strip, then the logo row on a ruled line */
.topstrip { background: var(--ink); color: #dfe6f2; font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }
.topstrip .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .35rem; padding-bottom: .35rem; }
.topstrip span:last-child { color: #9fd0f0; }
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand__logo { display: block; height: 38px; width: auto; }
.menu-toggle { display: none; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border: 2px solid var(--ink);
  border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; 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; }
.site-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem; margin: 0; padding: 0; }
.site-nav__link { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 3px solid transparent; }
.site-nav__link:hover { color: var(--petrol); border-bottom-color: var(--petrol-soft); }
.site-nav__item.is-current .site-nav__link { color: var(--petrol); border-bottom-color: var(--petrol); }
@media (max-width: 58rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; border-top: 1px solid var(--rule); }
  .site-nav__link { border-bottom: 1px solid var(--rule-2); }
}

/* home: verdict first, then the check */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(1.8rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.hero__verdict { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .85rem; color: var(--ok);
  background: var(--ok-soft); padding: .3rem .6rem; border-radius: 999px; margin-bottom: 1rem; }
.hero__verdict::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); }
.check { margin-top: 1.4rem; }
.check label { display: block; font-weight: 600; margin-bottom: .35rem; }
.check__row { display: flex; gap: .5rem; max-width: 28rem; }
.check input { flex: 1; min-width: 0; min-height: 50px; padding: 0 .9rem; font: 500 1.25rem var(--mono); letter-spacing: .08em;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.check__hint { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 50px; padding: 0 1.2rem;
  font: 600 1rem var(--sans); color: #fff; background: var(--petrol); border: 2px solid var(--petrol); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--petrol); }
.btn--ghost:hover { background: var(--petrol-soft); color: var(--petrol-dark); }
.btn--small { min-height: 40px; padding: 0 .8rem; font-size: .92rem; }

/* the measurement card */
.card-report { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--rule);
  background-image: linear-gradient(var(--rule-2) 1px, transparent 1px), linear-gradient(90deg, var(--rule-2) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px; }
.card-report__inner { background: rgba(255,255,255,.93); margin: 14px; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--rule); }
.card-report__label { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--mono); font-size: .78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px dashed var(--rule); padding-bottom: .5rem; margin-bottom: .8rem; }
.card-report h2 { margin-top: 0; font-size: 1.3rem; }
.readings { list-style: none; margin: 0 0 .8rem; padding: 0; }
.readings li { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule-2); }
.readings li:last-child { border-bottom: 0; }
.readings .fig { font-size: 1.15rem; text-align: right; white-space: nowrap; }
.readings small { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.meter { grid-column: 1 / -1; position: relative; height: 8px; background: var(--rule-2); border-radius: 4px; margin-top: .2rem; }
.meter__bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--petrol); }
.meter__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: .35rem; font: 600 .82rem var(--sans); padding: .2rem .55rem; border-radius: 999px; }
.tag::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.tag--ok { color: var(--ok); background: var(--ok-soft); }
.tag--warn { color: var(--warn); background: var(--warn-soft); }
.tag--unk { color: var(--unk); background: var(--unk-soft); }
.answer { border-left: 4px solid var(--petrol); padding: .2rem 0 .2rem .9rem; margin: .4rem 0 1rem; }
.answer--ok { border-color: var(--ok); }
.answer--warn { border-color: var(--warn); }
.answer p:last-child { margin-bottom: 0; }
.stations { margin: .6rem 0 0; padding: 0; list-style: none; font-size: .92rem; }
.stations li { display: flex; justify-content: space-between; gap: .8rem; border-top: 1px dotted var(--rule); padding: .35rem 0; }
.stations .fig { font-size: .95rem; }
.source { font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: .8rem; }
.card-report .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* sections on the home page and in bodies */
.section { padding: clamp(1.6rem, 3vw, 2.6rem) 0; border-top: 1px solid var(--rule); }
.section > h2:first-child { margin-top: 0; }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card h3 { margin-top: 0; }
.card--petrol { border-top-color: var(--petrol); }
.card--ok { border-top-color: var(--ok); }
.card--warn { border-top-color: var(--warn); }
.card p:last-child { margin-bottom: 0; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }
.callout { background: var(--petrol-soft); border-left: 4px solid var(--petrol); padding: .9rem 1.1rem; margin: 1.2rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.callout--warn { background: var(--warn-soft); border-left-color: var(--warn); }
.callout--ok { background: var(--ok-soft); border-left-color: var(--ok); }
.callout p:last-child { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .75rem; height: .4rem; border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.crosses { list-style: none; padding: 0; }
.crosses li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.crosses li::before { content: "\00d7"; position: absolute; left: .25rem; top: -.1em; font-weight: 700; font-size: 1.25rem; color: var(--warn); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 1rem 2.8rem; border-left: 2px solid var(--rule); margin-left: 1rem; }
.steps > li:last-child { border-left-color: transparent; }
.steps > li::before { content: counter(s); position: absolute; left: -1rem; top: -.15rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ink); color: #fff; font: 500 .95rem/2rem var(--mono); text-align: center; }
.download { display: flex; gap: 1rem; align-items: center; background: var(--card); border: 2px dashed var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.download p { margin: 0; }
.download__icon { flex: none; width: 3rem; height: 3.6rem; border: 2px solid var(--ink); border-radius: 3px; font: 500 .8rem/3.6rem var(--mono); text-align: center; background: var(--paper); }

/* tables (comparison) */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--rule-2); }
thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .86rem; white-space: nowrap; }
tbody tr:nth-child(even) td { background: #fbfaf6; }
td .fig, td.fig { white-space: nowrap; }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--warn); font-weight: 600; }
.part { color: var(--unk); font-weight: 600; }

/* text pages: contents on the left */
.page-head { padding: clamp(1.4rem, 3vw, 2.4rem) 0 .4rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.6rem; }
.page-head .lead { margin-bottom: .6rem; max-width: var(--text); }
.layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.toc { position: sticky; top: 1.2rem; font-size: .92rem; }
.toc__head { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4rem; }
.toc ol { list-style: none; margin: 0 0 1.4rem; padding: 0; border-left: 2px solid var(--rule); }
.toc ol a { display: block; padding: .3rem .8rem; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc ol a:hover, .toc ol a.is-here { color: var(--petrol); border-left-color: var(--petrol); }
.toc .aside-check { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: .9rem 1rem; }
.toc .aside-check p { margin-bottom: .6rem; }
.prose { max-width: var(--text); }
.prose > h2:first-child { margin-top: 0; }
.prose img { height: auto; border-radius: var(--radius); }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1rem; }
.crumbs a { color: var(--muted); }

/* newsletter */
.nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 2rem 0;
  padding: 1.4rem 1.5rem; background: var(--ink); color: #eef2f8; border-radius: var(--radius); }
.nl h2 { color: #fff; margin-top: 0; font-size: 1.35rem; }
.nl p { margin-bottom: .5rem; }
.nl__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.nl__row input[type=email] { flex: 1; min-width: 12rem; min-height: 48px; padding: 0 .8rem; border: 0; border-radius: var(--radius); font: inherit; }
.nl__row button { min-height: 48px; padding: 0 1rem; border: 0; border-radius: var(--radius); background: #9fd0f0; color: var(--ink); font: 600 1rem var(--sans); cursor: pointer; }
.nl__consent, .nl__small { font-size: .82rem; color: #c3cde0; }
.nl__consent a { color: #9fd0f0; }
.nl__hp { position: absolute; left: -9999px; }
.nl__msg.is-ok { color: #b9e4c6; } .nl__msg.is-err { color: #ffd59a; }
.nl__done-title { font-weight: 700; font-size: 1.15rem; color: #fff; }
.nl a { color: #9fd0f0; }

/* disclosure + footer */
.disclosure-slot { font-size: .85rem; color: var(--muted); margin: 1.5rem 0; }
.disclosure-affiliate { background: var(--card); border: 1px solid var(--rule); padding: .6rem .8rem; border-radius: var(--radius); }
.site-footer { margin-top: 3rem; background: var(--ink); color: #c9d2e3; font-size: .92rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-top: 2.2rem; padding-bottom: 1.4rem; }
.site-footer__logo { height: 32px; width: auto; margin-bottom: .8rem; }
.site-footer__head { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #9fd0f0; margin-bottom: .4rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: .25rem 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__small { border-top: 1px solid #2c3a59; padding-top: .9rem; padding-bottom: 1.2rem; font-size: .8rem; color: #9aa6bd; }

@media (max-width: 52rem) {
  .hero, .grid--2, .grid--3, .layout, .nl, .site-footer__inner { grid-template-columns: 1fr; }
  .toc { display: none; }
  .topstrip span:last-child { display: none; }
  .card-report { box-shadow: 4px 4px 0 var(--rule); }
}
@media print {
  .topstrip, .site-header, .site-footer, .toc, .nl, .check, .disclosure-slot { display: none !important; }
  body { background: #fff; }
  .layout { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
