/* ─── HANDLEIDING-VENSTER ──────────────────────────────────────────────────────
   Zelfde schuif/overlay-gedrag als het Prijzen-venster; inhoud wordt door
   js/handleiding.js opgebouwd. Alle klassen krijgen de prefix hl- zodat ze niet
   botsen met de rest van de app. Kleuren/afmetingen komen uit de app-tokens. */

#handleiding-overlay { display: none; position: fixed; inset: 0; background: rgba(8,12,24,.42); z-index: 400; }
#handleiding-overlay.show { display: block; }
#handleiding-sheet {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 401;
  max-height: 92vh; flex-direction: column;
  background: var(--paper); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-sheet); padding-bottom: env(safe-area-inset-bottom, 12px);
}
#handleiding-sheet.show { display: flex; }
@media (min-width: 640px) {
  #handleiding-sheet { left: 50%; right: auto; transform: translateX(-50%); width: 520px; }
}

.hl-head { position: relative; padding: 16px 18px 12px; flex-shrink: 0; border-bottom: 1px solid var(--border); }
.hl-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 18px 26px; flex: 1; min-height: 0; }

/* Verplichte onboarding: kruisje weg + "Beginnen"-balk onderaan */
#handleiding-sheet.verplicht .pr-x { display: none; }
.hl-vbar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface); }
#hl-vbar-hint { font-size: 13px; color: var(--muted); }
#hl-vbar-btn { flex-shrink: 0; padding: 11px 24px; border: none; border-radius: 12px; background: var(--accent-green); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
#hl-vbar-btn:disabled { background: var(--border); color: var(--muted); cursor: default; }

.hl-lede { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 12px 0 2px; }

.hl-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin: 14px 0 4px; }
.hl-toc-t { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hl-toc ol { margin: 0; padding: 0; list-style: none; }
.hl-toc li { margin: 0 0 6px; font-size: 14px; }
.hl-toc a { color: var(--slate); text-decoration: none; display: flex; gap: 9px; cursor: pointer; }
.hl-toc a:active { color: var(--accent-green); }
.hl-toc .n { color: var(--accent-green); font-weight: 700; min-width: 20px; font-variant-numeric: tabular-nums; }

.hl-chapter { padding: 22px 0 2px; border-top: 1px solid var(--border); margin-top: 18px; scroll-margin-top: 8px; }
.hl-chapter.first { border-top: none; margin-top: 6px; }
.hl-no { font-size: 12px; font-weight: 800; color: var(--accent-green); font-variant-numeric: tabular-nums; }
.hl-chapter h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--slate); margin: 3px 0 10px; letter-spacing: -.01em; }
.hl-chapter p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.hl-chapter p b { color: var(--slate); font-weight: 700; }

.hl-split { display: flex; flex-direction: column; gap: 14px; }
.hl-split .hl-shot { width: 100%; max-width: 190px; margin-left: auto; margin-right: auto; }
@media (min-width: 440px) {
  .hl-split { flex-direction: row; align-items: flex-start; }
  .hl-split .hl-shot { width: 188px; flex: none; margin-left: 0; margin-right: 0; }
  .hl-split .hl-txt { flex: 1; min-width: 0; }
}

.hl-shot { margin: 0; }
.hl-shot img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.hl-shot figcaption { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 6px; }
.hl-shot.is-missing img { display: none; }
.hl-shot.is-missing figcaption { display: none; }
.hl-shot.is-missing::before {
  content: attr(data-ph); display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 9 / 16; border: 1px dashed var(--border); border-radius: 16px; background: var(--blue-tint);
  color: var(--muted); font-size: 12px; padding: 16px; line-height: 1.45;
}

.hl-legend { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; margin: 4px 0; }
.hl-legend .lt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hl-legrow { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hl-leg { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--slate); }
.hl-dot { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.08); }

.hl-layers { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0; }
@media (min-width: 520px) { .hl-layers { grid-template-columns: 1fr 1fr; } }
.hl-layer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; }
.hl-layer .lh { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.hl-sw { width: 15px; height: 15px; border-radius: 5px; flex: none; }
.hl-layer .ln { font-weight: 700; font-size: 14px; color: var(--slate); }
.hl-layer .ld { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

.hl-laggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0; }
.hl-lag { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.hl-lag-shot { margin: 0; }
.hl-lag-shot img { border: 0; border-radius: 0; }
.hl-lag-b { padding: 10px 12px 12px; }
.hl-lag .lh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hl-lag .ln { font-weight: 700; font-size: 14px; color: var(--slate); }
.hl-lag .ld { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

.hl-status { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.hl-st { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 13px; }
.hl-sd { width: 13px; height: 13px; border-radius: 50%; flex: none; margin-top: 4px; }
.hl-st .sn { font-weight: 700; font-size: 14px; color: var(--slate); }
.hl-st .sx { font-size: 13.5px; color: var(--muted); }
.hl-st .stag { margin-left: auto; align-self: center; flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 20px; background: var(--paper); color: var(--muted); white-space: nowrap; }

.hl-badges { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
.hl-bdg { display: flex; align-items: center; gap: 12px; }
.hl-bdg svg { flex: none; }
.hl-bdg .bn { font-weight: 700; font-size: 14px; color: var(--slate); }
.hl-bdg .bx { font-size: 13.5px; color: var(--muted); }

.hl-cstates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 2px; }
.hl-cs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 13px; }
.hl-cs .sw { width: 100%; height: 30px; border-radius: 8px; margin-bottom: 9px; }
.hl-cs .cn { font-weight: 700; font-size: 14px; color: var(--slate); margin-bottom: 2px; }
.hl-cs .cx { font-size: 13px; color: var(--muted); line-height: 1.5; }

.hl-steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; }
.hl-steps li { position: relative; padding: 0 0 9px 32px; font-size: 14px; color: var(--slate); line-height: 1.5; counter-increment: s; }
.hl-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-deep); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.hl-sub { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--slate); margin: 20px 0 8px; }

.hl-note { margin: 12px 0 2px; background: #FEF6E3; border: 1px solid #F4DCA0; border-radius: 12px; padding: 11px 13px; display: flex; gap: 10px; font-size: 13px; color: #8A5A08; line-height: 1.5; }
.hl-note b { font-weight: 800; flex: none; }
.hl-tip { margin: 12px 0 2px; background: var(--blue-tint); border: 1px solid var(--blue-soft); border-radius: 12px; padding: 11px 13px; font-size: 13px; color: var(--blue-deep); line-height: 1.5; }

.hl-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); line-height: 1.55; }
