/*
 * Noodpakketjes signature ("the calm neighbour who prepared").
 * Elements: checklist as hero (native checkboxes; ticks stored by the site's own JS; prints on one A4),
 * 72-hour line, situation tiles. Load after kit.css + themes/noodpakketjes.css.
 */

/* ---------- Checklist: the list is the hero ---------- */
.np-list { background: var(--zs-surface); border: 2px solid var(--zs-ink); border-radius: var(--zs-radius); }
.np-list__head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-bottom: 2px solid var(--zs-ink); }
.np-list__head h2 { font-size: 1.35rem; }
.np-list__count { font-size: .9rem; color: var(--zs-muted); font-variant-numeric: tabular-nums; }
.np-list__count b { color: var(--zs-ink); }
.np-list__progress { height: .45rem; background: var(--zs-surface-alt); }
.np-list__progress span { display: block; height: 100%; width: var(--done, 0%); background: var(--np-tick); }
.np-group { padding: .6rem 1.1rem .2rem; }
.np-group + .np-group { border-top: 1px dashed var(--zs-line); }
.np-group h3 { font-size: 1rem; color: var(--zs-muted); margin: .2rem 0 .3rem; }
.np-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.np-item { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--zs-line); cursor: pointer; }
.np-item input { appearance: none; width: 1.3rem; height: 1.3rem; margin: 0; border: 2px solid var(--zs-ink); border-radius: 3px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.np-item input::after { content: ""; width: .35rem; height: .7rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.np-item input:checked { background: var(--np-tick); border-color: var(--np-tick); }
.np-item input:checked::after { opacity: 1; }
.np-item input:focus-visible { outline: 3px solid var(--zs-accent); outline-offset: 2px; }
.np-item:has(input:checked) .np-item__name { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--zs-muted); }
.np-item__qty { font-size: .85rem; color: var(--zs-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-list__foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; font-size: .85rem; color: var(--zs-muted); border-top: 2px solid var(--zs-ink); }

/* ---------- 72-hour line: what you need, and when ---------- */
.np-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .np-hours { grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: 0; } }
.np-hours li { position: relative; padding: 0 0 0 2rem; }
.np-hours li::before { content: ""; position: absolute; left: .45rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--zs-bg); border: 3px solid var(--zs-brand); }
.np-hours li:not(:last-child)::after { content: ""; position: absolute; left: .8rem; top: 1.3rem; bottom: -1rem; border-left: 2px solid var(--zs-brand); }
@media (min-width: 52rem) {
  .np-hours li { padding: 2rem 1.5rem 0 0; }
  .np-hours li::before { left: 0; top: 0; }
  .np-hours li:not(:last-child)::after { left: 1.1rem; right: 0; top: .5rem; bottom: auto; border-left: 0; border-top: 2px solid var(--zs-brand); }
}
.np-hours__when { font: 700 1.6rem/1 var(--zs-font-display); font-variant-numeric: tabular-nums; }
.np-hours__when small { font: 600 .9rem var(--zs-font-body); color: var(--zs-muted); margin-left: .3rem; }
.np-hours h3 { font-size: 1.1rem; margin: .35rem 0 .2rem; }
.np-hours p { margin: 0; color: var(--zs-muted); }

/* ---------- Situation tiles ---------- */
.np-situations { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.np-situations a { display: block; height: 100%; padding: 1rem 1.1rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-top: 4px solid var(--zs-brand); border-radius: var(--zs-radius); color: var(--zs-ink); text-decoration: none; }
.np-situations a:hover { border-top-color: var(--zs-accent); }
.np-situations strong { display: block; font: 700 1.15rem/1.25 var(--zs-font-display); }
.np-situations span { display: block; font-size: .92rem; color: var(--zs-muted); margin-top: .25rem; }
.np-situations em { display: block; font-style: normal; font-size: .82rem; font-weight: 600; margin-top: .6rem; color: var(--zs-ink); }

/* ---------- Print: only the checklist, on one A4 ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body:has(.np-list) > *:not(main), main:has(.np-list) > *:not(:has(.np-list)), .np-no-print { display: none !important; }
  .np-list { border-width: 1px; break-inside: avoid; }
  .np-list__progress { display: none; }
  .np-item { padding: .15rem 0; font-size: 10.5pt; }
  .np-item input { width: 1rem; height: 1rem; }
  .np-group ul { grid-template-columns: 1fr 1fr; }
}

/* ================= v2 (Terry 18-11: warmer, own pictograms, bhv/ehbo level) ================= */
/* Pictogram tile: icons/noodpakketjes/sprite.svg, white on storm blue. */
.np-picto { --picto-bg: var(--zs-picto); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; background: var(--picto-bg); color: #fff; border-radius: 12px; }
.np-picto svg { width: 80%; height: 80%; }
.np-picto--sm { width: 2.1rem; height: 2.1rem; border-radius: 9px; }
.np-picto--lg { width: 4.25rem; height: 4.25rem; border-radius: 16px; }
.np-picto--warm { --picto-bg: var(--zs-accent); }

/* Hero band: sand, the big "72", a row of what is in the kit, checklist on the right. */
.np-hero { background: var(--zs-surface-alt); padding: clamp(2rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--zs-line); position: relative; overflow: hidden; }
.np-hero::before { content: ""; position: absolute; right: -8rem; top: -8rem; width: 26rem; height: 26rem; border-radius: 50%; background: radial-gradient(circle, rgb(var(--np-glow) / .22), transparent 65%); pointer-events: none; }
.np-hero__grid { position: relative; display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .np-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; } }
.np-hero h1 { font-size: clamp(2.2rem, 2.8vw + 1.3rem, 3.6rem); line-height: 1.04; }
.np-hero__lead { font-size: 1.15rem; margin: 1rem 0 1.25rem; max-width: 34rem; }
.np-badge { display: inline-flex; align-items: center; gap: .8rem; background: var(--zs-brand); color: var(--zs-on-brand); border-radius: 14px; padding: .55rem 1rem .55rem .6rem; margin-bottom: 1.25rem; }
.np-badge b { font: 700 2.4rem/1 var(--zs-font-display); color: var(--np-warm); background: rgb(255 255 255 / .08); border-radius: 10px; padding: .25rem .55rem; font-variant-numeric: tabular-nums; }
.np-badge span { font-size: .95rem; line-height: 1.3; }
.np-kit { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.np-kit li { display: grid; justify-items: center; gap: .3rem; width: 4.6rem; font-size: .75rem; text-align: center; color: var(--zs-muted); }

/* Checklist groups get a pictogram; checked rows get a warm wash. */
.np-group h3 { display: flex; align-items: center; gap: .6rem; color: var(--zs-ink); font-size: 1.05rem; }
.np-item:has(input:checked) { background: linear-gradient(90deg, rgb(45 106 79 / .07), transparent 70%); }
.np-list { box-shadow: 6px 6px 0 var(--zs-brand); }

/* 72-hour line with pictograms instead of dots. */
.np-hours--picto li { padding-left: 4rem; }
.np-hours--picto li::before { display: none; }
.np-hours--picto .np-picto { position: absolute; left: 0; top: 0; }
.np-hours--picto li:not(:last-child)::after { left: 1.5rem; top: 3.2rem; }
@media (min-width: 52rem) {
  .np-hours--picto li { padding: 4rem 1.5rem 0 0; }
  .np-hours--picto li:not(:last-child)::after { left: 3.6rem; right: .6rem; top: 1.5rem; border-top: 2px dashed var(--zs-brand); }
}

/* Situation tiles: big pictogram, warm hover. */
.np-situations--picto a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; align-items: start; border-top-width: 1px; border-radius: 14px; padding: 1.1rem; transition: transform .15s, box-shadow .15s; }
.np-situations--picto .np-picto { grid-row: span 3; }
.np-situations--picto a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--zs-surface-alt), 0 6px 0 1px var(--zs-line); }
.np-situations--picto span { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .np-situations--picto a { transition: none; } .np-situations--picto a:hover { transform: none; } }
@media print { .np-picto { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .np-list { box-shadow: none; } .np-item:has(input:checked) { background: none; } }
.np-situations--picto .np-picto { display: inline-grid; color: #fff; margin: 0; }
.np-situations--picto a { border-top-color: var(--zs-line); }

/* ================= v3 (Terry 18-11: hero with a photo) =================
 * <section class="np-hero np-hero--photo" style="--hero-img: url(../img/noodpakketjes-hero-kaars-1600.webp)">
 * Dark overlay keeps white text >= 7:1 on the darkest part; checklist card stays white.
 */
.np-hero--photo { background: var(--zs-brand-deep) var(--hero-img) center / cover no-repeat; color: var(--zs-on-brand); border-bottom: 0; }
.np-hero--photo::before { inset: 0; right: 0; top: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(90deg, rgb(12 34 43 / .92) 0%, rgb(12 34 43 / .82) 45%, rgb(12 34 43 / .45) 100%); }
.np-hero--photo h1 { color: #fff; }
.np-hero--photo .np-hero__lead, .np-hero--photo p { color: var(--zs-on-brand); }
.np-hero--photo .np-badge { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .25); }
.np-hero--photo .np-kit li { color: var(--zs-on-brand); }
.np-hero--photo .np-picto { --picto-bg: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.np-hero--photo .np-list { box-shadow: 6px 6px 0 var(--np-warm); color: var(--zs-ink); }
.np-hero--photo .np-list p, .np-hero--photo .np-list .np-list__foot { color: var(--zs-muted); }
.np-hero--photo .np-list .np-picto { --picto-bg: var(--zs-picto); box-shadow: none; }

/* ================= Dark mode (rule 8) ================= */
.np-item input { background: var(--zs-surface); }

/* Palette v2: signal yellow is for filled actions only. Text hovers and the FAQ marker use the readable brand text colour. */
a:hover { color: var(--zs-brand-text); }
.zs-faq summary::after { color: var(--zs-brand-text); }
/* Checklist page: room between the card (and its offset shadow) and the text below it. */
.np-list:not(.np-hero .np-list) { margin-block-end: 2rem; }

/* ================= Risico bij jou thuis (postcode -> flood depth, floodrisk plugin) ================= */
.np-flood { background: var(--zs-surface); border: 2px solid var(--zs-ink); border-radius: var(--zs-radius); box-shadow: 6px 6px 0 var(--zs-brand); padding: 1.1rem; margin-block: 0 2rem; }
.np-flood__ask { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 30rem) { .np-flood__ask { grid-template-columns: minmax(0, 1fr); } }
.np-flood h2 { font-size: 1.35rem; margin: 0 0 .35rem; }
.np-flood__ask p { margin: 0 0 .8rem; }
.np-flood__form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.np-flood__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.np-flood__row input { flex: 1 1 9rem; min-width: 0; max-width: 14rem; font: inherit; font-size: 1.1rem; padding: .55rem .75rem; border: 2px solid var(--zs-ink); border-radius: 6px; background: var(--zs-surface); color: var(--zs-ink); text-transform: uppercase; }
.np-flood__row input::placeholder { text-transform: none; color: var(--zs-muted); }
.np-flood__row input:focus-visible { outline: 3px solid var(--zs-accent); outline-offset: 2px; }
.np-flood__small { font-size: .85rem; color: var(--zs-muted); margin: .6rem 0 0; }
.np-flood__result { border-top: 2px solid var(--zs-ink); margin-top: 1.1rem; padding-top: 1rem; }
.np-flood__result h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.np-flood__table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.np-flood__table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.np-flood__table th, .np-flood__table td { text-align: left; vertical-align: top; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--zs-line); }
.np-flood__table thead th { font-size: .85rem; color: var(--zs-muted); }
.np-flood__table tbody th small { display: block; font-weight: 400; font-size: .82rem; color: var(--zs-muted); }
.np-flood__table td { font-variant-numeric: tabular-nums; min-width: 8rem; }
.np-flood__bar { display: block; height: .45rem; width: calc(var(--d) / 6 * 100%); min-width: 2px; margin-bottom: .3rem; background: var(--zs-picto); border-radius: 2px; }
.np-flood__advice { background: var(--zs-surface-alt); border-radius: var(--zs-radius); padding: .9rem 1rem; }
.np-flood__advice p { margin: 0 0 .5rem; }
.np-flood__advice p:last-child { margin-bottom: 0; }
.np-flood--compact { margin: 0; }
.np-flood__table td.is-dry { color: var(--zs-muted); }
@media (min-width: 48rem) { .np-flood__table td { width: 45%; } }
