/* De handleiding op stagekit.nl (docs/HANDLEIDING.md). Ontwerp: canvas Handleiding, Main en
   Artikel. Bouwt op stijl.css: dezelfde kleuren, letters, knoppen en beweging (DESIGN.md, Beweging:
   180, 320 en 480 ms met dezelfde zachte uitloop). */

.weg-tot-focus { position: absolute; left: -10000px; }
.weg-tot-focus:focus { left: 16px; top: 12px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--surface); outline: 3px solid var(--turkoois); }

/* Kop: dezelfde als de voorpagina (stijl.css, .hl-kop). Hier komt alleen het zoekveld erbij. */
.hl-kop .hl-zoek { flex: 1 1 0; min-width: 180px; max-width: 420px; height: 44px; margin-left: auto; }
.hl-kop .hl-zoek + .kop-eind { margin-left: 0; }
/* Past het niet op één regel, dan krijgt het zoekveld een eigen regel: de kop blijft gelijk aan die van de rest van de site. */
@media (max-width: 900px) { .hl-kop .hl-zoek { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; } .hl-kop .hl-zoek + .kop-eind { margin-left: auto; } }

/* Zoeken. Groot op de startpagina, klein in de kop. Wat je vindt, klapt eronder open. */
.hl-zoek { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid #c9c9c3; color: var(--muted); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.hl-zoek:focus-within { border-color: transparent; box-shadow: 0 0 0 3px var(--turkoois); }
.hl-zoek input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); }
.hl-zoek input::-webkit-search-cancel-button { display: none; }
.hl-zoek input::placeholder { color: var(--muted); opacity: 1; }
.hl-zoek kbd { font: 600 13px 'IBM Plex Sans', sans-serif; border: 1px solid #c9c9c3; border-radius: 6px; padding: 1px 7px; color: var(--muted); }
.hl-zoek svg { flex: none; }
.hl-zoek-groot { width: 100%; max-width: 640px; height: 60px; margin-top: 12px; padding: 0 16px 0 18px; border-radius: 20px; border: 2px solid var(--rand-veld); gap: 12px; }
.hl-zoek-groot input { font-size: 18px; }
.hl-zoek-groot kbd { font-size: 14px; padding: 2px 8px; border-radius: 8px; }
@media (hover: none) { .hl-zoek kbd { display: none; } }

.hl-uit { position: absolute; z-index: 20; left: -2px; right: -2px; top: calc(100% + 8px); max-height: min(70vh, 560px); overflow: auto; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px -20px rgba(8, 10, 14, 0.35); text-align: left; color: var(--text); animation: op var(--t-fast) var(--ease) both, omhoog var(--t-mid) var(--ease) both; }
.hl-kop .hl-uit { min-width: min(420px, calc(100vw - 32px)); right: auto; }
@media (max-width: 900px) { .hl-kop .hl-uit { left: -1px; right: -1px; min-width: 0; } }
.hl-uit[hidden] { display: none; }
.hl-uit ul { list-style: none; margin: 0; padding: 0; }
.hl-uit a, .hl-uit button.hl-vraag-knop { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.hl-uit a:hover, .hl-uit a:focus-visible, .hl-uit button.hl-vraag-knop:hover, .hl-uit button.hl-vraag-knop:focus-visible { background: #ebebe7; outline: none; }
.hl-uit b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.hl-uit small { font-size: 14px; color: var(--muted); line-height: 1.4; }
.hl-uit mark { background: none; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--turkoois); text-underline-offset: 3px; }
.hl-uit .hl-geen { padding: 10px 12px; font-size: 15px; color: var(--muted); }
.hl-vraag-knop { border-top: 1px solid var(--line) !important; border-radius: 0 0 12px 12px !important; margin-top: 4px; }
.hl-vraag-knop b { display: flex; align-items: center; gap: 8px; }
.hl-antwoord { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.hl-antwoord p { font-size: 16px; line-height: 1.55; }
.hl-antwoord .hl-bron { font-size: 13px; color: var(--muted); }
.hl-antwoord ul { display: flex; flex-direction: column; gap: 2px; margin: 0 -12px !important; }
.hl-denkt { display: flex; gap: 6px; padding: 14px 12px; }
.hl-denkt i { width: 8px; height: 8px; border-radius: 50%; background: var(--maat-sterk); animation: hl-denk 1.2s var(--ease) infinite; }
.hl-denkt i:nth-child(2) { animation-delay: 0.15s; }
.hl-denkt i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hl-denk { 0%, 60%, 100% { opacity: 0.35; } 30% { opacity: 1; } }

/* Startpagina */
.hl-held { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 56px; padding-bottom: 40px; }
.hl-held p { max-width: 560px; font-size: 19px; line-height: 1.5; }
.hl-sectie { padding-top: 16px; padding-bottom: 24px; }
.hl-sectie + .hl-sectie { padding-top: 32px; }
.hl-sectie-laatst { padding-bottom: 80px; }
.hl-h2 { font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 14px 4px; }
.hl-kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.hl-onderwerpen { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.hl-kaart { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 24px; background: var(--surface); color: var(--text); text-decoration: none; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease); }
a.hl-kaart:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(8, 10, 14, 0.35); }
a.hl-kaart:focus-visible { outline: 3px solid var(--turkoois); outline-offset: 3px; }
.hl-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.hl-kaart-titel { margin: 0; font-family: inherit; font-size: 19px; font-weight: 600; line-height: 1.35; }
.hl-kaart-tekst { font-size: 16px; line-height: 1.5; color: var(--muted); }
.hl-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #ebebe7; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.hl-onderwerp h3 { margin: 4px 0 0; font-size: 19px; }
.hl-onderwerp h3 a, .hl-lijst a, .hl-meer { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
.hl-onderwerp h3 a:hover, .hl-lijst a:hover { color: var(--fout); }
.hl-lijst { list-style: none; margin: 0; padding: 0; }
.hl-lijst a { display: block; padding: 4px 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.hl-meer { font-size: 15px; font-weight: 600; color: var(--turkoois-tekst) !important; min-height: 32px; display: inline-flex; align-items: center; }

/* Onderwerppagina */
.hl-cat { padding-top: 8px; padding-bottom: 32px; }
.hl-cat-kop { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.hl-cat-kop .hl-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--surface); }
.hl-cat-lead { margin: 12px 0 32px; max-width: 640px; font-size: 19px; line-height: 1.5; }
.hl-kaarten-lijst { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.hl-andere { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hl-andere-link { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 6px; border-radius: 16px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 16px; text-decoration: none; }
.hl-andere-link .hl-ico { width: 40px; height: 40px; }
.hl-andere-link:hover { background: #ebebe7; }

/* Kruimelpad: boven een artikel als het label van het onderwerp. */
.hl-kruimel ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hl-kruimel li + li::before { content: '\203A'; margin-right: 6px; }
.hl-kruimel a { color: inherit; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.hl-kruimel a:hover { color: var(--text); }

/* Artikel: links de onderwerpen, midden de tekst, rechts Op deze pagina met de telefoon. */
.hl-rij { display: flex; gap: 40px; align-items: flex-start; padding-top: 8px; padding-bottom: 80px; max-width: 1320px; }
.hl-zij { flex: 0 0 220px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-bottom: 16px; }
.hl-zij ul { list-style: none; margin: 0; padding: 0; }
.hl-zij-kop { margin: 18px 12px 6px; font-size: 14px; font-weight: 600; }
.hl-zij-kop:first-child { margin-top: 4px; }
.hl-zij a { display: block; padding: 6px 12px; border-radius: 10px; font-size: 15px; line-height: 22px; color: var(--muted); text-decoration: none; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.hl-zij a:hover { background: #ebebe7; color: var(--text); }
.hl-zij a[aria-current] { background: var(--surface); color: var(--text); font-weight: 600; }
.hl-midden { flex: 999 1 560px; min-width: 0; max-width: 700px; }
.hl-rechts { flex: 0 0 300px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 1100px) { .hl-rechts { display: none; } }
@media (max-width: 800px) { .hl-zij { display: none; } .hl-rij { display: block; } }

.hl-tekst h1 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 44px); line-height: 1.14; letter-spacing: 0; overflow-wrap: break-word; hyphens: auto; }
.hl-tekst .hl-lead { margin: 0 0 12px; font-size: 19px; line-height: 30px; color: var(--muted); }
.hl-tekst p, .hl-tekst li { font-size: 17px; line-height: 28px; color: #2a2a2f; }
.hl-tekst p { margin: 0 0 16px; }
.hl-tekst h2 { margin: 48px 0 14px; font-family: inherit; font-size: 26px; line-height: 32px; font-weight: 600; scroll-margin-top: 24px; }
.hl-tekst h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.4; scroll-margin-top: 24px; }
.hl-tekst ul, .hl-tekst ol:not(.hl-stappen) { margin: 0 0 16px; padding-left: 24px; }
.hl-tekst li + li { margin-top: 4px; }
.hl-tekst a { color: var(--turkoois-tekst); text-underline-offset: 3px; }
.hl-tekst code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: #ebebe7; }
.hl-stappen { list-style: none; margin: 0 0 16px; padding: 0; }
.hl-stap { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.hl-stap + .hl-stap { margin-top: 0 !important; }
.hl-nr { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.hl-stap .hl-stap-titel { margin: 2px 0 0; font-weight: 600; color: var(--text); }
.hl-stap .hl-stap-uitleg { margin: 4px 0 0; color: var(--muted); }
.hl-tip { display: flex; gap: 12px; margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; background: #fdf1d6; }
.hl-tip > span { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: #9a6400; }
.hl-tip p { margin: 0; font-size: 16px; line-height: 24px; color: #6e4700; }
.hl-tip a { color: #6e4700; }

/* Op deze pagina: een rode streep loopt mee met waar je bent (handleiding.js). Zonder script staat
   hij er niet, de lijst wel. */
.hl-rechts-kop { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.hl-toc { position: relative; padding-left: 16px; }
.hl-toc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--line); }
.hl-toc ul { list-style: none; margin: 0; padding: 0; }
.hl-toc a { display: block; padding: 7px 0; font-size: 15px; line-height: 22px; color: var(--muted); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.hl-toc a:hover { color: var(--text); }
.hl-toc a.is-hier { color: var(--text); font-weight: 600; }
.hl-markering { position: absolute; left: 0; top: 0; width: 2px; height: 36px; border-radius: 1px; background: var(--red); opacity: 0; transform-origin: top; transition: transform var(--t-mid) var(--ease), height var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease); }
.js .hl-markering { opacity: 1; }

/* De telefoon met het echte scherm bij de stap waar je bent. Het oude beeld vervaagt en schuift
   weg, het nieuwe komt van de kant waar je heen scrolt (480 ms). */
.hl-telefoon { align-self: center; width: 270px; aspect-ratio: 270 / 568; padding: 10px; border-radius: 44px; background: var(--frame); box-shadow: var(--rand-licht), 0 30px 60px -30px rgba(8, 10, 14, 0.45); }
.hl-scherm { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 34px; background: #080a0e; }
@supports (corner-shape: squircle) { .hl-telefoon, .hl-scherm { corner-shape: superellipse(1.6); } }
.hl-beeld { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.hl-beeld.is-voor { transform: translateY(-16px); }
.hl-beeld.is-on { opacity: 1; transform: none; }
.hl-beeld img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hl-tik { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); animation: hl-tik 1.6s ease-out infinite; pointer-events: none; }
@keyframes hl-tik { 0% { transform: scale(0.4); opacity: 1; } 70% { transform: scale(1.4); opacity: 0; } 100% { opacity: 0; } }

/* Had je hier iets aan? Duim omhoog groen, omlaag zacht rood (niet het rood van een knop). */
.hl-fb { margin-top: 56px; padding: 22px 24px; border-radius: 24px; background: var(--surface); }
.hl-fb[hidden] { display: none; }
.hl-fb-rij { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.hl-fb h2 { flex: 1 1 200px; margin: 0; font-family: inherit; font-size: 18px; font-weight: 600; }
.hl-fb-knoppen { display: flex; gap: 8px; }
.hl-fb-knoppen[hidden] { display: none; }
.hl-duim { width: 52px; height: 44px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hl-duim-op { background: #e3f3ea; color: #17653a; }
.hl-duim-op:hover { background: #d3ecdf; }
.hl-duim-neer { background: #fbe4e2; color: #b4473d; }
.hl-duim-neer:hover { background: #f7d6d2; }
.hl-duim[aria-pressed='true'] { box-shadow: inset 0 0 0 2px currentColor; }
.hl-fb-dank:empty { display: none; }
.hl-fb-dank { padding: 6px 12px; border-radius: 12px; background: #e3f3ea; color: #17653a; font-size: 15px; font-weight: 500; animation: op var(--t-mid) var(--ease) both; }
.hl-vouw { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease); }
/* Ruimte rondom, zodat de focusrand van het veld en de knop niet wordt afgesneden. */
.hl-vouw > div { overflow: hidden; min-height: 0; margin: 0 -6px; padding: 0 6px 6px; }
.hl-vouw.is-open { grid-template-rows: 1fr; }
.hl-fb-mis { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.hl-vouw.is-open .hl-fb-mis { opacity: 1; transition-delay: calc(var(--t-mid) / 3); }
.hl-fb-mis label { margin-left: 16px; font-size: 16px; font-weight: 600; }
.hl-fb-mis label span { font-weight: 400; }
.hl-fb-mis textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--rand-veld); background: var(--bg); color: var(--text); font: 400 17px/1.5 'IBM Plex Sans', system-ui, sans-serif; resize: vertical; }
.hl-fb-mis textarea:focus-visible { outline: 3px solid var(--turkoois); outline-offset: 1px; border-color: transparent; background: var(--surface); }
.hl-fb-mis textarea:focus { outline: 3px solid var(--turkoois); outline-offset: 1px; border-color: transparent; }
.hl-fb-hint { margin: -2px 0 0 16px; font-size: 14px; color: var(--muted); }
.hl-knop-donker { align-self: flex-start; min-height: 44px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--text); color: #fff; font: 600 16px 'IBM Plex Sans', system-ui, sans-serif; cursor: pointer; }
.hl-knop-donker:hover { background: #2a2a2f; }

.hl-buren { margin-top: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hl-buren a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; max-width: 48%; font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; }
.hl-buren a span { font-size: 14px; font-weight: 600; color: var(--muted); }
.hl-buren a[rel='next'] { margin-left: auto; text-align: right; }
.hl-buren a:hover { color: var(--fout); }
@media (max-width: 600px) { .hl-buren a { max-width: 100%; } }
.hl-bijgewerkt { margin: 28px 0 0; font-size: 14px; color: #65656b; }

@media (max-width: 600px) {
  .hl-held { padding-top: 32px; }
  .hl-held h1 { font-size: 44px; }
  .hl-kaart { padding: 20px; }
  .hl-fb { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hl-tik, .hl-denkt i { animation: none !important; }
  .hl-beeld { transform: none !important; }
}
