/* EMSwise — one stylesheet, no external requests.
   Palette taken from the logo; see the brand basics document. */

:root {
  --green: #096C12;
  --deep: #04380A;
  --mid: #2E8B3A;
  --lime: #8CC63F;
  --cream: #F9F1E6;
  --soft: #FDF9F3;
  --ink: #1B2A1D;
  --muted: #6E7B70;
  --border: #DCE4DC;
  --white: #fff;
  --measure: 36rem;
  --gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern", "liga";
}

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; max-width: 20ch; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); font-weight: 700; max-width: 26ch; }
h3 { font-size: 1.0625rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: var(--green); text-decoration-thickness: .06em; text-underline-offset: .2em; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--mid); outline-offset: 2px; border-radius: 2px; }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul:not(.plain) { max-width: var(--measure); padding-left: 1.1rem; }
ul:not(.plain) li, ol:not(.plain) li { margin-bottom: .4rem; }

.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 42rem; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--deep);
  color: #fff; padding: .7rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* ---- header ---- */
.topbar { border-bottom: 1px solid var(--border); background: var(--white); }
.topbar-in {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap; padding: .85rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
  color: var(--deep); text-decoration: none; margin-right: auto;
}
.brand-mark {
  width: 1.1rem; height: 1.1rem; border-radius: .28rem;
  background: var(--green); box-shadow: inset 0 0 0 .22rem var(--lime);
}
.menu { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 500; }
.menu a:hover, .menu a[aria-current] { color: var(--green); }
.menu a[aria-current] { box-shadow: inset 0 -2px 0 var(--lime); }
.langs ul { display: flex; gap: .45rem; }
.langs a {
  display: block; padding: .15rem .45rem; font-size: .82rem; font-weight: 600;
  color: var(--muted); text-decoration: none; border: 1px solid var(--border);
  border-radius: .25rem;
}
.langs a[aria-current] { background: var(--deep); border-color: var(--deep); color: #fff; }

/* ---- hero and sections ---- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs a { color: var(--muted); }
.hero { padding: 2.6rem 0 1.2rem; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 44rem; color: #35453a; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; max-width: none; }

.btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: .7rem 1.25rem; border-radius: .3rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--green);
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn--quiet { background: transparent; color: var(--deep); border-color: var(--border); }
.btn--quiet:hover { background: var(--soft); color: var(--deep); border-color: var(--mid); }

.section { padding: 2.2rem 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }
.section--tint { background: var(--soft); padding-inline: 1.25rem; border-radius: .4rem; }

/* ---- the five layers: the one bold element on the site ---- */
.layers-wrap { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 58rem) { .layers-wrap { grid-template-columns: 1.05fr .95fr; } }

.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.layer {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem;
  align-items: start; padding: .95rem 1.1rem;
  background: var(--soft); border: 1px solid var(--border); border-radius: .35rem;
}
.layer p { margin: 0; color: var(--muted); font-size: .95rem; }
.layer h3 { margin: 0 0 .15rem; }
.layer-n {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: .35rem; background: var(--mid); color: #fff; font-weight: 700;
}
.layer-top {
  background: var(--deep); border-color: var(--deep); color: #fff;
  margin-bottom: .55rem;
}
.layer-top h3 { font-size: 1.2rem; }
.layer-top p { color: #d7e6d9; }
.layer-top .layer-n { background: var(--lime); color: var(--deep); }

.drives { align-self: start; }
.drives-h { font-size: .95rem; color: var(--green); margin-bottom: .7rem; }
.drives-list { display: grid; gap: .4rem; }
@media (min-width: 30rem) { .drives-list { grid-template-columns: 1fr 1fr; } }
.drives-list li {
  border: 1px solid var(--mid); border-radius: .35rem; padding: .7rem .85rem;
}
.drives-list h3 { margin: 0 0 .15rem; font-size: .95rem; }
.drives-list p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---- cards, steps, tables ---- */
.cards { display: grid; gap: .8rem; }
@media (min-width: 42rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--border); border-radius: .35rem; padding: 1.1rem;
  background: var(--white);
}
.card h3 { color: var(--deep); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; max-width: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 46rem; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; align-items: start; }
.steps h3 { margin: 0 0 .15rem; }
.steps p { margin: 0; color: var(--muted); }
.step-n {
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; border: 1px solid var(--mid); color: var(--green);
  font-weight: 700; font-size: .9rem;
}

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--deep); color: #fff; border-bottom: 0; }
tbody th { font-weight: 600; background: var(--soft); width: 30%; }

/* ---- faq and glossary ---- */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; padding: .9rem 0; list-style: none;
  display: flex; align-items: center; gap: .6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; }
.faq summary::before {
  content: "+"; color: var(--green); font-weight: 700; font-size: 1.2rem;
  width: 1rem; flex: none;
}
.faq details[open] summary::before { content: "−"; }
.answer { padding: 0 0 1rem 1.6rem; }

.defs { display: grid; gap: 1.1rem; max-width: 46rem; }
.def { border-left: 3px solid var(--lime); padding-left: 1rem; }
.def h3 { color: var(--deep); margin-bottom: .2rem; }
.def .short { font-weight: 600; margin-bottom: .3rem; }
.def p { margin-bottom: 0; color: var(--muted); }
.def .short { color: var(--ink); }

/* ---- cta and footer ---- */
.cta {
  background: var(--deep); color: #fff; border-radius: .4rem;
  padding: 1.8rem 1.5rem; margin-top: 1rem;
}
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { color: #d7e6d9; max-width: 40rem; }
.cta .btn { background: var(--lime); border-color: var(--lime); color: var(--deep); }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--deep); }

.foot { margin-top: 3rem; border-top: 1px solid var(--border); background: var(--soft); }
.foot-in { display: grid; gap: 1.2rem; padding: 2rem 0; }
@media (min-width: 48rem) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } }
.foot-brand { font-weight: 800; color: var(--deep); margin-bottom: .2rem; }
.foot nav ul { display: grid; gap: .4rem; }
.foot a { color: var(--ink); }
.updated { font-size: .85rem; grid-column: 1 / -1; margin: 0; }

/* ---- language picker ---- */
.pick main { padding: 4rem 0; }
.brand--big { font-size: 1.4rem; }
.langpick { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.langpick a {
  display: block; border: 1px solid var(--border); border-radius: .3rem;
  padding: .8rem 1.2rem; text-decoration: none; color: var(--deep); font-weight: 600;
}
.langpick a:hover { border-color: var(--mid); background: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* EMSwise — visuele blokken. Achteraan emswise.css plakken.
   Zelfde palet, zelfde aanpak: geen externe bron, geen JavaScript. */

/* ---- grafiek ---- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.c-grid line { stroke: var(--border); stroke-width: 1; }
.c-ax { font-size: 10px; fill: var(--muted); }
.c-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.c-solid { stroke: var(--green); }
.c-dashed { stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 5 4; opacity: .8; }
.c-fill { fill: var(--mid); opacity: .10; }
.c-cap { stroke: var(--green); stroke-width: 1; stroke-dasharray: 3 5; opacity: .65; }
.c-caplab { font-size: 10px; fill: var(--green); font-weight: 600; }
.c-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.c-legend li { display: flex; align-items: center; gap: .45rem; }
.c-sw { width: .85rem; height: .2rem; border-radius: .1rem; flex: none; }
.c-sw-solid { background: var(--green); }
.c-sw-dashed { background: repeating-linear-gradient(90deg, var(--muted) 0 .22rem, transparent .22rem .4rem); }
.chart figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; max-width: var(--measure); }

/* ---- capaciteitstariefrekenaar ---- */
.peak { max-width: 46rem; }
.pk-f { border: 1px solid var(--border); border-radius: .4rem; padding: 1.2rem; margin: 0; background: var(--soft); }
.pk-leg { font-weight: 600; font-size: .95rem; padding: 0 .4rem; }
.pk-r { position: absolute; opacity: 0; pointer-events: none; }
.pk-ls { display: flex; flex-wrap: wrap; gap: .4rem; }
.pk-l {
  border: 1px solid var(--border); background: var(--white); border-radius: .3rem;
  padding: .45rem .7rem; font-weight: 600; font-size: .95rem; cursor: pointer;
  color: var(--deep); line-height: 1.2;
}
.pk-l:hover { border-color: var(--mid); }
.pk-u { font-weight: 400; color: var(--muted); font-size: .8rem; }
.pk-r:focus-visible + .pk-ls .pk-l { outline: none; }
.pk-ps { margin-top: 1.1rem; }
.pk-p { display: none; gap: .8rem; }
@media (min-width: 30rem) { .pk-p { grid-template-columns: 1fr 1fr; } }
.pk-c { border: 1px solid var(--border); border-radius: .35rem; padding: .9rem 1rem; background: var(--white); }
.pk-win { border-color: var(--mid); background: #f2f8f1; }
.pk-k { display: block; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pk-c strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: .15rem 0 .1rem; }
.pk-win strong { color: var(--green); }
.pk-y { font-size: .82rem; color: var(--muted); }
.pk-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; max-width: none; }

/* Elke radio toont het paneel op dezelfde plaats in de rij, en kleurt
   zijn eigen label. Puur CSS, dus de CSP mag script-src 'none' blijven. */
.pk-r:nth-of-type(1):checked  ~ .pk-ps .pk-p:nth-of-type(1),
.pk-r:nth-of-type(2):checked  ~ .pk-ps .pk-p:nth-of-type(2),
.pk-r:nth-of-type(3):checked  ~ .pk-ps .pk-p:nth-of-type(3),
.pk-r:nth-of-type(4):checked  ~ .pk-ps .pk-p:nth-of-type(4),
.pk-r:nth-of-type(5):checked  ~ .pk-ps .pk-p:nth-of-type(5),
.pk-r:nth-of-type(6):checked  ~ .pk-ps .pk-p:nth-of-type(6),
.pk-r:nth-of-type(7):checked  ~ .pk-ps .pk-p:nth-of-type(7),
.pk-r:nth-of-type(8):checked  ~ .pk-ps .pk-p:nth-of-type(8),
.pk-r:nth-of-type(9):checked  ~ .pk-ps .pk-p:nth-of-type(9),
.pk-r:nth-of-type(10):checked ~ .pk-ps .pk-p:nth-of-type(10),
.pk-r:nth-of-type(11):checked ~ .pk-ps .pk-p:nth-of-type(11),
.pk-r:nth-of-type(12):checked ~ .pk-ps .pk-p:nth-of-type(12) { display: grid; }

.pk-r:nth-of-type(1):checked  ~ .pk-ls .pk-l:nth-of-type(1),
.pk-r:nth-of-type(2):checked  ~ .pk-ls .pk-l:nth-of-type(2),
.pk-r:nth-of-type(3):checked  ~ .pk-ls .pk-l:nth-of-type(3),
.pk-r:nth-of-type(4):checked  ~ .pk-ls .pk-l:nth-of-type(4),
.pk-r:nth-of-type(5):checked  ~ .pk-ls .pk-l:nth-of-type(5),
.pk-r:nth-of-type(6):checked  ~ .pk-ls .pk-l:nth-of-type(6),
.pk-r:nth-of-type(7):checked  ~ .pk-ls .pk-l:nth-of-type(7),
.pk-r:nth-of-type(8):checked  ~ .pk-ls .pk-l:nth-of-type(8),
.pk-r:nth-of-type(9):checked  ~ .pk-ls .pk-l:nth-of-type(9),
.pk-r:nth-of-type(10):checked ~ .pk-ls .pk-l:nth-of-type(10),
.pk-r:nth-of-type(11):checked ~ .pk-ls .pk-l:nth-of-type(11),
.pk-r:nth-of-type(12):checked ~ .pk-ls .pk-l:nth-of-type(12) {
  background: var(--deep); border-color: var(--deep); color: #fff;
}
.pk-r:nth-of-type(1):checked  ~ .pk-ls .pk-l:nth-of-type(1) .pk-u,
.pk-r:nth-of-type(2):checked  ~ .pk-ls .pk-l:nth-of-type(2) .pk-u,
.pk-r:nth-of-type(3):checked  ~ .pk-ls .pk-l:nth-of-type(3) .pk-u,
.pk-r:nth-of-type(4):checked  ~ .pk-ls .pk-l:nth-of-type(4) .pk-u,
.pk-r:nth-of-type(5):checked  ~ .pk-ls .pk-l:nth-of-type(5) .pk-u,
.pk-r:nth-of-type(6):checked  ~ .pk-ls .pk-l:nth-of-type(6) .pk-u,
.pk-r:nth-of-type(7):checked  ~ .pk-ls .pk-l:nth-of-type(7) .pk-u,
.pk-r:nth-of-type(8):checked  ~ .pk-ls .pk-l:nth-of-type(8) .pk-u,
.pk-r:nth-of-type(9):checked  ~ .pk-ls .pk-l:nth-of-type(9) .pk-u,
.pk-r:nth-of-type(10):checked ~ .pk-ls .pk-l:nth-of-type(10) .pk-u,
.pk-r:nth-of-type(11):checked ~ .pk-ls .pk-l:nth-of-type(11) .pk-u,
.pk-r:nth-of-type(12):checked ~ .pk-ls .pk-l:nth-of-type(12) .pk-u { color: #cfe3cf; }

.pk-r:focus-visible ~ .pk-ls .pk-l { outline: 1px dotted var(--mid); outline-offset: 2px; }

/* ---- foto ---- */
.fig { margin: 0; }
.fig img { width: 100%; height: auto; border-radius: .35rem; border: 1px solid var(--border); display: block; }
.fig figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; max-width: var(--measure); }
.fig-ph {
  aspect-ratio: 3 / 2; border: 1px dashed var(--mid); border-radius: .35rem;
  background: repeating-linear-gradient(45deg, var(--cream) 0 10px, var(--white) 10px 20px);
  display: grid; place-items: center; padding: 1.2rem; text-align: center;
}
.fig-ph span { font-size: .85rem; color: var(--muted); max-width: 26ch; }

/* ---- twee kolommen: tekst naast beeld ---- */
.section--split { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 58rem) { .section--split { grid-template-columns: 1fr 1.1fr; } }
.section--split > h2, .section--split > .lead { grid-column: 1; max-width: 32ch; }
.section--split > .lead { margin-bottom: 0; }
.section--split > .chart, .section--split > .fig, .section--split > .peak {
  grid-column: 2; grid-row: 1 / span 3;
}
@media (max-width: 58rem) {
  .section--split > .chart, .section--split > .fig, .section--split > .peak {
    grid-column: 1; grid-row: auto;
  }
}

/* ---- identificatiegegevens in de voet ---- */
.foot .legal { font-size: .82rem; line-height: 1.5; }

/* ---- tweede rij voetlinks: juridische pagina's ---- */
.foot-legal { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--border); }
.foot-legal li { margin-bottom: .3rem; }
.foot-legal a { font-size: .85rem; color: var(--muted); }
