/* =====================================================================
   12Collect: de handleiding op /help (HelpController). Bovenop landing.css
   (zelfde tokens, kop en voet), alleen geladen op de help-pagina's.
   Geen JavaScript: zoeken is een gewoon formulier, de inhoudsopgave op de
   telefoon een <details>.
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hh-home {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); padding: 8px 4px;
}
.hh-home:hover { color: var(--gold-2); }

.help { min-height: 60vh; }
.help a:not(.btn) { color: var(--gold-2); }
.help a:not(.btn):hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.help mark { background: none; color: var(--gold-2); font-weight: 600; }
.hmuted { color: var(--muted); font-size: 14.5px; }

/* --- zoeken ----------------------------------------------------------- */
.hsearch {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 6px 6px 44px;
  transition: border-color .15s, box-shadow .15s;
}
.hsearch:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hsearch-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 19px; height: 19px; }
.hsearch input {
  flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent;
  color: var(--fg); font-family: inherit; font-size: 16px;
}
.hsearch input::placeholder { color: var(--faint); }
.hsearch input::-webkit-search-cancel-button { filter: invert(.6); }
.hsearch .btn { flex: none; height: 42px; }

/* --- startpagina ------------------------------------------------------- */
.hhero { position: relative; overflow: hidden; padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hhero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 140%; pointer-events: none;
  background: radial-gradient(ellipse 45% 50% at 30% 20%, var(--gold-soft), transparent 62%);
}
.hhero .wrap { position: relative; }
.hhero h1 { font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.01em; margin: 14px 0 0; text-wrap: balance; }
.hhero-sub { font-size: 17px; color: var(--fg-2); margin: 16px 0 28px; max-width: 54ch; }

.hidx { padding-top: 48px; padding-bottom: 80px; }
.hidx-h { font-family: var(--font-disp); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 20px; letter-spacing: -.005em; scroll-margin-top: 84px; }
.hidx-h + .hgrid { margin-bottom: 56px; }
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hcard {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 22px 18px; transition: border-color .15s, background .15s;
}
.hcard:hover { border-color: var(--line-2); background: var(--surface-2); }
.hcard-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold); }
.hcard h3 { font-family: var(--font-disp); font-weight: 400; font-size: 25px; line-height: 1.15; margin: 6px 0 8px; }
.help .hcard h3 a { color: var(--fg); }
.help .hcard h3 a:hover { color: var(--gold-2); text-decoration: none; }
.hcard p { font-size: 14px; color: var(--fg-2); margin: 0 0 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hcard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hcard li a { display: inline-block; padding: 4px 0; font-size: 14px; }
.help .hcard li a { color: var(--fg-2); }
.help .hcard li a:hover { color: var(--gold-2); }

.hcontact {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 48px; padding: 20px 22px;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2);
}
.hcontact-ic { color: var(--gold); margin-top: 2px; }
.hcontact strong { font-weight: 600; }
.hcontact p { margin: 4px 0 0; color: var(--fg-2); font-size: 14.5px; }

/* --- hoofdstuk --------------------------------------------------------- */
.hpage { padding-top: 28px; padding-bottom: 80px; }
.hpage-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.hpage-top .hsearch { flex: 1 1 320px; max-width: 460px; }
.hcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.help .hcrumb a { color: var(--gold); }

.hlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.htoc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.htoc-h { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.htoc ol, .htoc-m ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.htoc li a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line-2); font-size: 14px; line-height: 1.4; }
.help .htoc li a { color: var(--fg-2); }
.help .htoc li a:hover { color: var(--gold-2); border-left-color: var(--gold); text-decoration: none; }
.htoc-m { display: none; }

.hdoc { max-width: 760px; font-size: 16px; line-height: 1.72; color: var(--fg-2); overflow-wrap: anywhere; }
.hdoc h1, .hdoc h2, .hdoc h3, .hdoc h4 { color: var(--fg); scroll-margin-top: 88px; overflow-wrap: normal; }
.hdoc h1 { font-family: var(--font-disp); font-weight: 400; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 18px; text-wrap: balance; }
.hdoc h1 + p { font-size: 18px; color: var(--fg-2); }
.hdoc h2 {
  font-family: var(--font-disp); font-weight: 400; font-size: clamp(27px, 3vw, 34px); line-height: 1.12;
  margin: 56px 0 14px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hdoc h3 { font-size: 18.5px; font-weight: 600; line-height: 1.35; margin: 34px 0 8px; }
.hdoc h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 24px 0 6px; font-weight: 500; }
.hdoc p { margin: 0 0 14px; }
.hdoc strong { color: var(--fg); font-weight: 600; }
.hdoc code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--fg); }
.hdoc ol, .hdoc ul { margin: 0 0 16px; padding-left: 24px; }
.hdoc li { margin: 6px 0; padding-left: 4px; }
.hdoc li > ol, .hdoc li > ul { margin: 6px 0 4px; }
.hdoc ol > li::marker { color: var(--gold); font-family: var(--font-mono); font-size: .9em; }
.hdoc ul > li::marker { color: var(--gold); }

.hnote {
  margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--gold);
  background: var(--gold-soft); border-radius: 0 var(--r) var(--r) 0; color: var(--fg);
}
.hnote p { margin: 0 0 8px; }
.hnote > :last-child { margin-bottom: 0; }
.hnote.warn { border-left-color: #d98b6a; background: rgba(217, 139, 106, .12); }
.hnote.warn strong:first-child { color: #f0b49b; }
.hnote strong:first-child { color: var(--gold-2); }

.hshot { margin: 22px 0 26px; }
.hshot img {
  display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); background: var(--surface);
}
.hshot.phone img { max-width: 300px; border-radius: 22px; }

.htable { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.htable table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.htable th { background: var(--surface-2); text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); padding: 11px 14px; font-weight: 500; white-space: nowrap; }
.htable td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: normal; }

.hpn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.hpn a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface);
}
.help .hpn a { color: var(--fg); }
.help .hpn a:hover { border-color: var(--gold); text-decoration: none; }
.hpn-next { grid-column: 2; text-align: right; }
.hpn-l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hpn-t { font-family: var(--font-disp); font-size: 21px; line-height: 1.2; }

/* --- zoekresultaten ---------------------------------------------------- */
.hsearch-page { max-width: 820px; }
.hsearch-h { font-weight: 400; font-size: clamp(32px, 4vw, 46px); margin: 18px 0 18px; letter-spacing: -.01em; }
.hsearch-page .hsearch { margin-bottom: 18px; }
.hresults { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hres { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.help .hres { color: var(--fg); }
.help .hres:hover { border-color: var(--line-2); background: var(--surface-2); text-decoration: none; }
.hres-trail { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.hres-t { font-size: 17px; font-weight: 600; color: var(--fg); }
.hres-s { font-size: 14.5px; color: var(--fg-2); line-height: 1.55; }
.hnone { padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.hnone p { margin: 0 0 14px; color: var(--fg-2); }

/* --- smaller ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hlayout { display: block; }
  .htoc { display: none; }
  .htoc-m {
    display: block; margin: 0 0 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface);
  }
  .htoc-m summary {
    list-style: none; cursor: pointer; padding: 14px 18px; min-height: 48px; display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  }
  .htoc-m summary::-webkit-details-marker { display: none; }
  .htoc-m summary::after { content: "+"; font-size: 16px; transition: transform .2s; }
  .htoc-m[open] summary::after { transform: rotate(45deg); }
  .htoc-m ol { padding: 0 8px 10px; }
  .htoc-m li a { display: block; padding: 11px 10px; border-top: 1px solid var(--line); font-size: 15px; }
  .help .htoc-m li a { color: var(--fg-2); }
}
@media (max-width: 680px) {
  .hh-home { letter-spacing: .1em; padding: 8px 2px; }
  .hhero { padding: 36px 0 32px; }
  .hhero-sub { font-size: 16px; margin-bottom: 22px; }
  .hgrid { grid-template-columns: minmax(0, 1fr); }
  .hidx { padding-top: 36px; }
  .hpage { padding-top: 20px; }
  .hpage-top { margin-bottom: 20px; }
  .hpage-top .hsearch { flex-basis: 100%; max-width: none; }
  .hsearch { padding-left: 40px; }
  .hsearch-ic { left: 12px; }
  .hsearch .btn { padding: 0 12px; }
  .hdoc { font-size: 15.5px; }
  .hdoc h2 { margin-top: 44px; padding-top: 20px; }
  .hshot.phone img { max-width: 240px; }
  .hpn { grid-template-columns: 1fr; }
  .hpn-next { grid-column: 1; }
  .hcontact { padding: 16px; }
}

/* De kop op de telefoon: "Terug naar de app" moet passen (natest 2026-11-19). Het
   woord Hulp en de taalcode vallen weg (de vlag blijft), de knop wordt iets kleiner. */
@media (max-width: 520px) {
  .hh-home { display: none; }
  .hdr .lang-code { display: none; }
  .hdr-right { gap: 8px; }
  .hdr-right .btn.sm { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}
