/* Stroomindex. Eén rustige leeskolom; de statusblokken zijn het enige uitgesproken element. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #F3F6F7;
  --surface: #FFFFFF;
  --ink: #12202A;
  --muted: #53636E;
  --line: #D3DCE1;
  --accent: #0B6A86;
  --accent-ink: #FFFFFF;
  --s0: #2F8A55; --s1: #B08A12; --s2: #D0702A; --s3: #B83A2E; --sx: #8A979F;
  --note-bg: #FFF6DE; --note-ink: #5E4500;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F171C; --surface: #16222A; --ink: #E4ECEF; --muted: #97A7B1; --line: #2A3A44;
    --accent: #4FB3D1; --accent-ink: #0B1418;
    --s0: #4CB97A; --s1: #D9B43E; --s2: #E98E4A; --s3: #E0645A; --sx: #6E7C85;
    --note-bg: #2E2715; --note-ink: #F0D78E;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 780px; margin: 0 auto; padding-inline: 20px; }
main.wrap { padding-block: 8px 72px; display: flex; flex-direction: column; gap: 44px; }

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-inner { max-width: 780px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 23px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand svg { width: 22px; height: 22px; fill: var(--accent); }
.mainnav { display: flex; gap: 18px; font-size: 15px; }
.mainnav a { color: var(--ink); text-decoration: none; }
.mainnav a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(32px, 7vw, 48px); font-stretch: 78%; font-weight: 800; letter-spacing: -0.005em; }
h2 { font-size: 27px; font-stretch: 85%; font-weight: 700; }
h2 a { color: inherit; }
h3 { font-size: 18px; font-weight: 700; font-stretch: 95%; }
p { margin: 0; max-width: 66ch; }
.lede { font-size: 19px; }
.small { font-size: 15px; color: var(--muted); }
.meta { font-family: var(--data); font-size: 13px; color: var(--muted); display: flex; gap: 4px 18px; flex-wrap: wrap; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; margin-bottom: -28px; }
.crumbs a { color: var(--muted); }
.intro { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.hero { padding-top: 32px; gap: 18px; }
section { display: flex; flex-direction: column; gap: 14px; }

/* status */
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kind { font-family: var(--data); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.verdict { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 22px; line-height: 1.2; }
.verdict.s0 { color: var(--s0); } .verdict.s1 { color: var(--s1); } .verdict.s2 { color: var(--s2); } .verdict.s3 { color: var(--s3); } .verdict.sx { color: var(--sx); }
.bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; gap: 2px; background: var(--line); }
.seg { flex-basis: 0; min-width: 3px; }
.s0.seg, .dot.s0 { background: var(--s0); } .s1.seg, .dot.s1 { background: var(--s1); }
.s2.seg, .dot.s2 { background: var(--s2); } .s3.seg, .dot.s3 { background: var(--s3); } .sx.seg, .dot.sx { background: var(--sx); }
.barlegend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.barlegend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chip { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }

/* postcodecheck */
.checkblock { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; }
.pccheck { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.pccheck label { font-weight: 600; font-size: 15px; }
.pcrow { display: flex; gap: 8px; }
.pcrow input { flex: 1; min-width: 0; text-transform: uppercase; }
.pcrow input::placeholder { text-transform: none; }
.pcresult { margin-top: 8px; padding: 14px 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pcresult .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pcresult .lbl { min-width: 110px; color: var(--muted); font-size: 15px; }

input, select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; }
button { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px; padding: 11px 18px; cursor: pointer; }
button:hover { filter: brightness(1.08); }

/* voedingsgebieden */
.vglist { display: flex; flex-direction: column; gap: 14px; }
.vg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vg header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.share { font-family: var(--data); font-size: 13px; color: var(--muted); }
.vgchips { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.vgchips > span { display: inline-flex; align-items: center; gap: 8px; }
dl.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; font-size: 15px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-family: var(--data); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }

/* grafiek */
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.chart.empty { border-style: dashed; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-family: var(--data); }
.chart .line-a { stroke: var(--s3); stroke-width: 2.5; }
.chart .line-o { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 4; }
.chart .line-a-dot { fill: var(--s3); } .chart .line-o-dot { fill: var(--accent); }
.chartlegend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.chartlegend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--s3); margin-right: 6px; vertical-align: 4px; }
.chartlegend i.line-o { border-top: 3px dashed var(--accent); }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 26px; }
.options div { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 2px solid var(--line); min-width: 0; }

/* formulier */
.lead { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 16px; }
.lead label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.lead label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--muted); }
.lead label.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.lead button { align-self: flex-start; }
.opt { font-weight: 400; color: var(--muted); }
.formmsg, .soon { font-size: 15px; background: var(--note-bg); color: var(--note-ink); padding: 12px 14px; border-radius: 8px; }

.faq details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; }

.nearby { display: flex; flex-wrap: wrap; gap: 8px; }
.nearby a { font-size: 15px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); }
.nearby a:hover { border-color: var(--accent); color: var(--accent); }

/* provincietabel */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
tbody th { font-weight: 600; }
.mini { display: inline-flex; align-items: center; gap: 10px; }
.minibar { display: inline-block; width: 90px; height: 8px; background: var(--line); border-radius: 2px; overflow: hidden; }
.minibar span { display: block; height: 100%; }
.fill-a { background: var(--s3); } .fill-o { background: var(--accent); }
.num { font-family: var(--data); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 4.5em; }
.legendlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

footer.site { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding-block: 24px 40px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-inner a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .lede { font-size: 18px; }
  .minibar { width: 54px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* lagen: TenneT en regionaal net */
.layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.layer { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.layer .sub { font-size: 14px; font-weight: 600; margin-bottom: -4px; }
.projects { display: flex; flex-direction: column; gap: 8px; }
.projects ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.projects li { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; padding-block: 8px; border-top: 1px solid var(--line); font-size: 15px; }
.projects li:last-child { border-bottom: 1px solid var(--line); }
.projects.inline li { font-size: 14px; padding-block: 6px; }
.pmeta { font-family: var(--data); font-size: 13px; color: var(--muted); white-space: nowrap; }

/* wijzigingen */
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 16px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.ev:last-child { border-bottom: 1px solid var(--line); }
.evdate { font-family: var(--data); font-size: 13px; color: var(--muted); padding-top: 2px; }
.evtext { min-width: 0; }
.evdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--sx); }
.d-beter .evdot { background: var(--s0); }
.d-slechter .evdot { background: var(--s3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.evlegend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.evlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.provgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.provgrid a { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--ink); }
.provgrid a:hover { border-color: var(--accent); }
.provgrid .num { color: var(--muted); }
@media (max-width: 480px) { .ev { grid-template-columns: 1fr; gap: 2px; } }

/* in het kort, planning, toelichtingen */
.kort { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 20px; }
.kortgrid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.kortgrid div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kortgrid dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.kortgrid dd { margin: 0; font-size: 16px; font-weight: 600; }
.kortgrid .chip { font-size: 15px; white-space: normal; }
table.plan td.num { font-family: var(--data); font-size: 14px; white-space: nowrap; }
.notes { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--accent); padding-block: 6px; }
.prose section { gap: 10px; }
.links { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 18px; }
.steps h2 { font-size: 20px; margin-bottom: 4px; }
.colorlist { display: flex; flex-direction: column; gap: 18px; }
.colorrow { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 18px; align-items: start; }
.colorrow h2 { font-size: 19px; margin-bottom: 4px; }
@media (max-width: 480px) { .colorrow { grid-template-columns: 1fr; } }
