/* The article on the share of projects at 0,00 (/blog/nul-komma-nul/). Loaded after site.css and
   built from its tokens. Data wears Natura green and ink, as on the stikstofkaart: a project at
   0,00 is green, a project above 0,00 is ink. No cards: hairlines and the legend's symbol column. */

.nz { background: var(--paper); }
.nz-green { color: var(--n2k-deep); }
.nz p, .nz dd, .nz figcaption { text-wrap-style: pretty; }
.nz figure { margin: 0; }
.nz figcaption { margin-top: 0.9rem; max-width: 36rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.nz figcaption strong { display: block; margin-bottom: 0.2rem; font-size: 1rem; font-weight: 650; color: var(--ink); }

/* ---------- Opening: the claim left, every project as a dot right ---------- */
.nz-open { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; padding-top: clamp(2.25rem, 4vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.nz-intro { align-self: center; }
.nz-title { max-width: 14em; margin-bottom: 0.6em; font-size: clamp(2rem, 3.3vw, 2.95rem); line-height: 1.06; }
.nz-intro .lead { max-width: 34rem; }
.nz-key { list-style: none; margin-top: clamp(1.4rem, 2.4vw, 2rem); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.nz-key li { display: grid; grid-template-columns: 22px 5.6rem minmax(0, 1fr); gap: 0 0.85rem; align-items: center; padding: 0.8rem 0; }
.nz-key li + li { border-top: 1px solid var(--line); }
.nz-key b { font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 650; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; white-space: nowrap; }
.nz-key span { font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); }
.nz-key-symbol { width: 22px; height: 22px; }
.nz-sym-zero { fill: var(--n2k); }
.nz-sym-above { fill: var(--ink); }

.nz-units { position: relative; padding-top: 2.75rem; }
.nz-date { top: 0; right: 0; z-index: 2; }
.nz-date a { text-decoration: none; }
.nz-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(0.9rem, 2vw, 1.6rem); align-items: end; }
.nz-col svg { display: block; width: 100%; height: auto; }
.nz-dots { fill: none; stroke-linecap: round; }
.nz-dots-zero { stroke: var(--n2k); }
.nz-dots-above { stroke: var(--ink); }
.nz-col-label { display: grid; margin: 0.7rem 0 0; padding-top: 0.55rem; border-top: 1px solid var(--line-2); line-height: 1.25; }
.nz-col-label b { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 650; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
.nz-col-label > span { min-height: 2.5em; margin-top: 0.15rem; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.nz-col-label small { font-size: 0.82rem; color: var(--muted); }

/* ---------- Where: provinces and areas ---------- */
.nz-band { padding: var(--space-section) 0; background: var(--ground); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nz-band-title { max-width: 20em; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.nz-pair { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.nz-map svg { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto; overflow: visible; }
.nz-provinces path { fill: var(--n2k); stroke: #fff; stroke-width: 1.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nz-provinces path:hover { stroke: var(--ink); }
.nz-province-labels text { text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 7px; stroke-linejoin: round; fill: var(--ink); pointer-events: none; }
.nz-pv-pct { font-size: 40px; font-weight: 650; letter-spacing: -0.02em; }
.nz-pv-n { font-size: 28px; font-weight: 500; fill: var(--ink-2); }

.nz-area-list { list-style: none; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.nz-area-list li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(4rem, 1fr) 2.9rem 2.6rem; gap: 0 0.9rem; align-items: center; padding: 0.5rem 0; }
.nz-area-list li + li { border-top: 1px solid var(--line); }
.nz-area-name { font-size: 0.95rem; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.nz-bar { position: relative; height: 12px; background: var(--ink); border-radius: 2px; overflow: hidden; }
.nz-bar i { position: absolute; inset: 0 auto 0 0; background: var(--n2k); border-right: 2px solid #fff; }
.nz-area-pct { font-size: 1.05rem; font-weight: 650; text-align: right; }
.nz-area-n { font-size: 0.82rem; color: var(--muted); text-align: right; }

/* ---------- What it means: text left, distance right ---------- */
.nz-meaning { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-top: var(--space-section); padding-bottom: var(--space-section); }
.nz-meaning-text p { max-width: 34rem; color: var(--ink-2); }
.nz-meaning-text p:last-child { margin-bottom: 0; }
.nz-bands { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(0.5rem, 1.5vw, 1rem); border-bottom: 1px solid var(--line-2); }
.nz-bands li { display: grid; grid-template-rows: auto 12rem auto; justify-items: center; }
.nz-bands b { margin-bottom: 0.35rem; font-size: 1.15rem; font-weight: 650; }
.nz-column { position: relative; width: min(3.2rem, 100%); background: var(--ink); border-radius: 2px 2px 0 0; overflow: hidden; }
.nz-column i { position: absolute; inset: auto 0 0 0; background: var(--n2k); border-top: 2px solid #fff; }
.nz-band-label { padding: 0.5rem 0 0.6rem; font-size: 0.82rem; line-height: 1.25; color: var(--ink-2); text-align: center; }

/* ---------- Method ---------- */
.nz-method { padding-bottom: var(--space-section); }
.nz-more { max-width: 52rem; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.nz-more summary { padding: 0.9rem 0; font-weight: 600; cursor: pointer; }
.nz-more summary:hover { color: var(--ink-2); }
.nz-facts { margin: 0 0 1.25rem; }
.nz-facts div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 1.5rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.nz-facts dt { font-weight: 650; }
.nz-facts dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

.nz-close { padding-top: 0; }
.nz-back { margin: 1.5rem 0 0; font-size: 0.95rem; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .nz-open, .nz-pair, .nz-meaning { grid-template-columns: minmax(0, 1fr); }
  .nz-units { max-width: 40rem; }
  .nz-map svg { max-width: 26rem; }
}
@media (max-width: 760px) {
  .nz-cols { gap: 0 0.6rem; }
  .nz-col-label b { font-size: 1.3rem; }
  .nz-col-label > span { min-height: 3.75em; font-size: 0.8rem; }
  .nz-col-label small { font-size: 0.74rem; }
  .nz-of { display: block; }
  .nz-key li { grid-template-columns: 22px 4.6rem minmax(0, 1fr); }
  .nz-area-list li { grid-template-columns: minmax(0, 1fr) 2.9rem 2.6rem; grid-template-areas: "name pct n" "bar bar bar"; gap: 0.3rem 0.75rem; }
  .nz-area-name { grid-area: name; }
  .nz-bar { grid-area: bar; }
  .nz-area-pct { grid-area: pct; }
  .nz-area-n { grid-area: n; }
  .nz-bands li { grid-template-rows: auto 9rem auto; }
  .nz-band-label { font-size: 0.72rem; white-space: nowrap; }
  .nz-facts div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}
