/* OptiFiscaal handleiding. Tokens, kop, knoppen en kaarten komen uit ../portaal/portaal.css.
   Hier staat alleen wat de handleiding zelf nodig heeft. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kop-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: #fff; }
main { padding-top: 0; overflow-wrap: break-word; }
.hl-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Kop */
.hl-nav { margin-left: auto; display: flex; gap: 4px; }
.hl-nav a { color: #C9D6E8; text-decoration: none; font-weight: 500; font-size: .93rem; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 99px; }
.hl-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
@media (max-width: 720px) { .hl-nav { display: none; } }

/* Intro en keuze */
.hl-intro { background: var(--vlak-licht); border-bottom: 1px solid var(--lijn); padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 5vw, 48px); }
.hl-intro h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: .35em; }
.hl-intro .sub { font-size: 1.05rem; }
.hl-keuze { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 640px) { .hl-keuze { grid-template-columns: 1fr; } }
.hl-keuze a { display: block; background: #fff; border: 1px solid var(--lijn); border-top: 4px solid var(--goud); border-radius: var(--radius); padding: 22px 24px; text-decoration: none; color: var(--tekst); transition: border-color .15s, box-shadow .15s; }
.hl-keuze a:hover { border-color: var(--diep); border-top-color: var(--goud); box-shadow: 0 6px 20px rgba(11,31,58,.08); }
.hl-keuze-titel { display: block; font: 400 1.4rem/1.2 var(--kopfont); letter-spacing: -.02em; margin-bottom: 6px; }
.hl-keuze-tekst { display: block; color: var(--grijs); font-size: .95rem; }
.hl-keuze-ga { display: inline-block; margin-top: 12px; color: var(--blauw); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.hl-ookvragen { margin: 20px 0 0; color: var(--grijs); font-size: .95rem; }

/* Deel: inhoudsopgave links, tekst rechts */
.hl-deel { padding: clamp(36px, 6vw, 64px) 0 8px; }
.hl-deel + .hl-deel { border-top: 1px solid var(--lijn); }
.hl-deel-kop { margin-bottom: 28px; }
.hl-deel-kop h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.hl-deel-kop .sub { margin-bottom: 0; }
.hl-indeling { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 980px) {
  .hl-indeling { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .hl-toc { position: sticky; top: calc(var(--kop-h) + 20px); max-height: calc(100vh - var(--kop-h) - 40px); overflow-y: auto; }
}
.hl-toc { background: var(--vlak-licht); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 18px 18px 12px; }
.hl-toc h3 { font: 500 .76rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--grijs); margin: 0 0 8px; }
.hl-toc ol { list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) and (max-width: 979px) { .hl-toc ol { columns: 2; column-gap: 24px; } }
.hl-toc li { break-inside: avoid; }
.hl-toc a { display: flex; align-items: center; min-height: 40px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--tekst); text-decoration: none; font-size: .94rem; }
.hl-toc a:hover { background: #fff; text-decoration: underline; }

.hl-tekst { min-width: 0; max-width: 74ch; }
.hl-sectie { padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid var(--vlak); }
.hl-sectie:last-child { border-bottom: 0; }
.hl-sectie > h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-bottom: .55em; }
.hl-sectie h4 { font: 600 1rem/1.3 var(--sans); margin: 1.5em 0 .5em; color: var(--tekst); }
.hl-sectie ul, .hl-sectie ol { margin: 0 0 1em; padding-left: 1.35em; }
.hl-sectie li { margin-bottom: .45em; }
.hl-sectie li > ul { margin-top: .45em; }

/* Waar je het vindt */
.hl-waar { background: var(--vlak-licht); border-left: 4px solid var(--goud); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 1.1em; }
.hl-waar strong { font-weight: 600; }

/* Genummerde stappen */
.hl-stappen { list-style: none; counter-reset: stap; padding-left: 0 !important; }
.hl-stappen > li { counter-increment: stap; position: relative; padding-left: 44px; margin-bottom: .8em; min-height: 30px; }
.hl-stappen > li::before { content: counter(stap); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--diep); color: #fff; font: 600 .88rem/30px var(--sans); text-align: center; }

/* Wat er daarna gebeurt */
.hl-daarna { border: 1px solid var(--lijn); border-radius: 10px; padding: 14px 16px; margin: 1.1em 0 0; }
.hl-daarna > :last-child { margin-bottom: 0; }
.hl-daarna-kop { font-weight: 600; margin-bottom: .35em; }

/* Let op en nieuw */
.hl-letop { background: var(--goud-zacht); border: 1px solid #EBD6A8; border-radius: 10px; padding: 12px 16px; margin: 1.1em 0; }
.hl-letop > :last-child { margin-bottom: 0; }
.hl-nieuw { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: var(--goud); color: var(--diep); font: 600 .72rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }

/* Tekst die letterlijk zo op het scherm staat: knop, menu of status */
.ui { display: inline; padding: 1px 7px; border: 1px solid var(--lijn); border-radius: 6px; background: var(--vlak-licht); color: var(--tekst); font-weight: 500; font-size: .94em; white-space: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
kbd { display: inline-block; min-width: 1.7em; padding: 1px 6px; border: 1px solid #9FB0C4; border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 500 .86em/1.5 var(--sans); text-align: center; }

/* Begrippenlijst (statussen) */
.hl-begrippen { margin: 0 0 1em; }
.hl-begrippen > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--vlak); }
.hl-begrippen > div:last-child { border-bottom: 1px solid var(--vlak); }
.hl-begrippen dt { font-weight: 600; }
.hl-begrippen dd { margin: 0; }
@media (max-width: 520px) { .hl-begrippen > div { grid-template-columns: 1fr; } }

/* Veelgestelde vragen */
.hl-vragen .hl-tekst { max-width: 80ch; }
.hl-vragen h3 { font: 600 1.08rem/1.35 var(--sans); letter-spacing: 0; margin: 0 0 .5em; }
.hl-vraag { padding: 20px 0; border-top: 1px solid var(--vlak); }
.hl-vraag > :last-child { margin-bottom: 0; }

.hl-omhoog { margin: 0; font-size: .92rem; }
.hl-omhoog a { display: inline-flex; align-items: center; min-height: 44px; }
.hl-voet { border-top: 1px solid var(--lijn); background: var(--vlak-licht); padding: 28px 0 40px; color: var(--grijs); font-size: .93rem; margin-top: 40px; }
.hl-voet p { margin: 0 0 .5em; }

/* Printen: zwart op wit, zonder kop, keuze, inhoudsopgave en navigatie */
@media print {
  @page { margin: 18mm 16mm; }
  html { scroll-behavior: auto; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; line-height: 1.45; overflow: visible; }
  .kop, .skip, .hl-keuze, .hl-ookvragen, .hl-toc, .hl-omhoog, .hl-voet-links { display: none !important; }
  main { padding: 0; min-height: 0; }
  .hl-wrap { width: 100%; }
  .hl-intro { background: none !important; border: 0; padding: 0 0 12pt; }
  .hl-indeling { display: block; }
  .hl-tekst { max-width: none; }
  .hl-deel { padding: 0; border: 0 !important; }
  #kantoor, #vragen { break-before: page; }
  h1, h2, h3, h4, p, li, dt, dd, .sub, .label, .klein-tekst { color: #000 !important; }
  h2, h3, h4 { break-after: avoid; }
  .hl-sectie { border-bottom: 0; padding-bottom: 0; margin-bottom: 18pt; }
  .hl-stappen > li, .hl-daarna, .hl-letop, .hl-waar, .hl-vraag, .hl-begrippen > div { break-inside: avoid; }
  .hl-stappen > li::before { background: #fff !important; color: #000 !important; border: 1px solid #000; line-height: 28px; }
  .hl-waar, .hl-letop, .hl-daarna { background: none !important; border: 1px solid #000; border-radius: 0; }
  .hl-waar { border-left-width: 3px; }
  .ui { background: none !important; border: 0; padding: 0; font-weight: 700; color: #000 !important; }
  .hl-nieuw { background: none !important; color: #000 !important; border: 1px solid #000; }
  .label::before { background: #000 !important; }
  a { color: #000 !important; text-decoration: none; }
  .hl-voet { background: none !important; border-top: 1px solid #000; padding: 10pt 0 0; margin-top: 18pt; color: #000 !important; }
}
