/* Hulp en Over: hero, tegels, uitklapbare vragen. Alleen tokens uit site.css en plannen.css. */
main.hulp-pagina { max-width: 64rem; }
.crumb-bar + main.hulp-pagina { padding-top: 1.1rem; }
.hulp-pagina p, .hulp-pagina li { line-height: 1.65; }
.hulp-pagina a { text-underline-offset: .15em; }

/* Hero */
.hp-hero {
  position: relative; overflow: hidden; margin: .4rem 0 1.6rem; padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line); border-radius: 1.4rem;
  background:
    radial-gradient(60% 140% at 100% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 62%),
    linear-gradient(160deg, var(--surface), var(--surface-muted));
  box-shadow: var(--soft-shadow, 0 8px 28px rgba(0,0,0,.18));
}
.hp-hero h1 { margin: 0; font-size: clamp(1.75rem, 4.2vw, 2.5rem); }
.hp-hero .hp-lead { margin: .65rem 0 0; max-width: 38rem; color: var(--caption); font-size: 1.04rem; }
.hp-hero .hp-meta { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; }
.hp-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; margin-bottom: .9rem;
  border-radius: .95rem; color: var(--accent-label, var(--accent));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-muted));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
}
/* Zelfde kruimelbalk als de haltepagina's. De tekst blijft in de kolom van de hulppagina. */
.crumb-bar { background: var(--surface-muted); border-bottom: 1px solid var(--line); }
.crumb-bar .crumb-in { max-width: 64rem; margin: 0 auto; padding: .6rem var(--pad); }
.crumb-bar .crumbs { margin: 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-bar .crumbs a { color: var(--muted); text-decoration: none; }
.crumb-bar .crumbs a:hover { color: var(--cream); text-decoration: none; }
.crumb-bar .crumbs [aria-current] { color: var(--caption); }

/* Zoeken in de hub */
.hp-search { position: relative; margin-top: 1.2rem; max-width: 30rem; }
.hp-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hp-search input {
  width: 100%; box-sizing: border-box; padding: .8rem 1rem .8rem 2.6rem; border-radius: .9rem;
  border: 1px solid var(--line); background: var(--bg); color: var(--cream); font: inherit; font-size: 1rem;
}
.hp-search input:focus { outline: 2px solid var(--accent-label, var(--accent)); outline-offset: 1px; }
.hp-empty { margin: 1.2rem 0; color: var(--muted); }
.hp-empty[hidden], .hp-tile[hidden] { display: none; }

/* Tegels */
.hp-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: .85rem; }
.hp-tiles li + li { margin: 0; }
.hp-tile {
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .9rem; height: 100%; box-sizing: border-box;
  padding: 1rem 1rem 1rem 1.05rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--surface);
  color: var(--cream); text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.hp-tile:hover, .hp-tile:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--soft-shadow, 0 10px 26px rgba(0,0,0,.2)); }
.hp-ic {
  display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .9rem;
  color: var(--accent-label, var(--accent)); background: color-mix(in srgb, var(--accent) 13%, var(--surface-muted));
}
.hp-tx strong { display: block; font: 700 1.04rem/1.3 var(--display); letter-spacing: -.01em; }
.hp-tx span { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.hp-go { color: var(--muted); transition: transform .16s ease, color .16s ease; }
.hp-tile:hover .hp-go, .hp-tile:focus-visible .hp-go { transform: translateX(3px); color: var(--accent-label, var(--accent)); }
@media (prefers-reduced-motion: reduce) { .hp-tile, .hp-go { transition: none; } .hp-tile:hover { transform: none; } }

/* Op deze pagina */
.hp-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.hp-jump li + li { margin: 0; }
.hp-jump a {
  display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--caption); font-size: .87rem; line-height: 1.3; text-decoration: none;
}
.hp-jump a:hover, .hp-jump a:focus-visible { border-color: var(--accent-label, var(--accent)); color: var(--cream); }

/* Vragen */
.faq-list { display: grid; gap: .6rem; }
.faq { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); scroll-margin-top: calc(var(--header, 4.25rem) + 1rem); }
.faq[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; cursor: pointer; list-style: none; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary:focus-visible { outline: 2px solid var(--accent-label, var(--accent)); outline-offset: 2px; border-radius: 1rem; }
.faq > summary h2 { margin: 0; font: 650 1.05rem/1.4 var(--display); letter-spacing: -.01em; }
.faq > summary svg { flex: none; color: var(--muted); transition: transform .18s ease; }
.faq[open] > summary svg { transform: rotate(180deg); color: var(--accent-label, var(--accent)); }
.faq-a { padding: 0 1.1rem 1.05rem; color: var(--caption); }
.faq-a p { margin: 0 0 .7rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* Meer hulp, vorige/volgende, CTA */
.hp-h { margin: 2.2rem 0 .8rem; font-size: 1.15rem; }
.hp-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.hp-chips li + li { margin: 0; }
.hp-chips a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--cream); font-size: .9rem; text-decoration: none; }
.hp-chips a:hover, .hp-chips a:focus-visible { border-color: var(--accent-label, var(--accent)); }
.hp-chips svg { color: var(--accent-label, var(--accent)); }
.hp-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding: 1.2rem 1.3rem;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 1.2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, var(--surface)), var(--surface));
}
.hp-cta strong { display: block; font: 700 1.05rem/1.3 var(--display); }
.hp-cta span { display: block; margin-top: .2rem; color: var(--muted); font-size: .92rem; }
.hp-btn { display: inline-block; padding: .65rem 1.15rem; border-radius: .85rem; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.hp-btn:hover { filter: brightness(1.08); }

/* Over-pagina */
.hp-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .85rem; }
.hp-feat li + li { margin: 0; }
.hp-feat a { display: block; height: 100%; box-sizing: border-box; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--surface); color: var(--cream); text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.hp-feat a:hover, .hp-feat a:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.hp-feat .hp-ic { margin-bottom: .75rem; }
.hp-feat strong { display: block; font: 700 1.05rem/1.3 var(--display); }
.hp-feat span { display: block; margin-top: .3rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.hp-section { margin-top: 2rem; }
.hp-section h2 { margin-bottom: .6rem; }
.hp-note { margin: 1.8rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); border-radius: .3rem 1rem 1rem .3rem; background: var(--surface); }
.hp-note h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.hp-note p { margin: 0; color: var(--caption); }
.faq-a ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.faq-a li { margin: 0 0 .35rem; }
.faq-a li + li { margin-top: 0; }
.faq-a strong { color: var(--cream); }

/* Toegankelijk verborgen label (inline style mag niet door de CSP). */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* contact.css (.sources-page ul / li + li) mag de hulp-lijsten niet laten inspringen. */
main.hulp-pagina :is(.hp-tiles, .hp-jump, .hp-chips, .hp-feat) { padding-left: 0; line-height: normal; }
main.hulp-pagina :is(.hp-tiles, .hp-jump, .hp-chips, .hp-feat) > li + li { margin-top: 0; }

/* Tegels schuiven bij laden en filteren rustig na elkaar in. */
@keyframes hpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hp-tiles > li { animation: hpIn .34s cubic-bezier(.22, 1, .36, 1) backwards; }
.hp-tiles > li:nth-child(2) { animation-delay: 30ms; }
.hp-tiles > li:nth-child(3) { animation-delay: 60ms; }
.hp-tiles > li:nth-child(4) { animation-delay: 90ms; }
.hp-tiles > li:nth-child(5) { animation-delay: 120ms; }
.hp-tiles > li:nth-child(6) { animation-delay: 150ms; }
.hp-tiles > li:nth-child(7) { animation-delay: 180ms; }
.hp-tiles > li:nth-child(8) { animation-delay: 210ms; }
.hp-tiles > li:nth-child(n+9) { animation-delay: 240ms; }

/* Gevonden vragen onder de zoekbalk. */
.hp-res { margin: 1rem 0 0; max-width: 40rem; }
.hp-res[hidden] { display: none; }
.hp-res-h { margin: 0 0 .5rem; color: var(--muted); font-size: .85rem; }
.hp-res ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hp-res li + li { margin: 0; }
.hp-res a {
  display: block; padding: .7rem .95rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface);
  color: var(--cream); text-decoration: none; animation: hpIn .28s cubic-bezier(.22, 1, .36, 1) backwards;
  transition: border-color .16s ease;
}
.hp-res a:hover, .hp-res a:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.hp-res b { display: block; font-weight: 650; }
.hp-res small { display: block; margin-top: .15rem; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.hp-res mark { background: none; color: var(--accent-label, var(--accent)); font-weight: 700; }

/* Vragen schuiven open/dicht; de gekozen vraag licht even op. */
.faq.hp-anim > .faq-a { overflow: hidden; }
@keyframes hpFlash { 0%, 35% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.faq.hp-flash { animation: hpFlash 1.6s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .hp-tiles > li, .hp-res a, .faq.hp-flash { animation: none; }
}

/* Verfijning: contact.css zette de marge van de pills op 0. */
main.hulp-pagina .hp-jump { margin: 0 0 1.6rem; }
/* Open vraag: zachtere rand, dun lijntje en wat lucht tussen vraag en antwoord. */
.faq[open] { border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); }
.faq[open] > .faq-a { border-top: 1px solid var(--line); margin: 0 1.1rem; padding: .85rem 0 1.05rem; }
/* Vorige / volgende onderwerp */
.hp-pn { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: 2rem; }
.hp-pn a { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--cream); text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.hp-pn a:hover, .hp-pn a:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.hp-pn .hp-pn-next { justify-content: flex-end; text-align: right; grid-column: 2; }
.hp-pn small { display: block; color: var(--muted); font-size: .8rem; }
.hp-pn span { font-weight: 650; line-height: 1.3; }
.hp-pn svg { flex: none; color: var(--accent-label, var(--accent)); }
@media (max-width: 560px) { .hp-pn { grid-template-columns: 1fr; } .hp-pn .hp-pn-next { grid-column: 1; } .hp-pn > span:empty { display: none; } }
@media (prefers-reduced-motion: reduce) { .hp-pn a { transition: none; } .hp-pn a:hover { transform: none; } }

/* Meer hulp: het onderwerp waar je nu bent blijft staan, gemarkeerd. */
.hp-chips a.is-here { border-color: var(--accent-label, var(--accent)); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-weight: 650; cursor: default; }

/* Over: eerste blok direct onder de kop (inline style mag niet door de CSP). */
.hp-section.hp-first { margin-top: 1.4rem; }
/* Over: blokken komen rustig in beeld, net als de tegels. */
.hp-section, .hp-note { animation: hpIn .4s cubic-bezier(.22, 1, .36, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .hp-section, .hp-note { animation: none; } }

/* Over: tekstblokken als kaart, zelfde stijl als de vragen op Hulp. */
.hp-section.hp-card { margin-top: 1rem; padding: .95rem 1.1rem 1.05rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.hp-section.hp-card + .hp-section.hp-card { margin-top: .6rem; }
.hp-section.hp-card h2 { margin: 0 0 .45rem; font: 650 1.05rem/1.4 var(--display); letter-spacing: -.01em; }
.hp-section.hp-card p { margin: 0; color: var(--caption); }
.hp-section.hp-card p + p { margin-top: .7rem; }
.hp-section.hp-card.hp-first { margin-top: 1.4rem; }

/* contact.css (.sources-page h2) gaf de kop in het oranje blok een grote bovenmarge. */
main.hulp-pagina .hp-note h2 { margin: 0 0 .4rem; }
/* Precies 4 tegels: 2×2 in plaats van 3 + 1. */
@media (min-width: 44rem) { .hp-tiles:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
/* Google Play-badge onder de kop van Over (zelfde badge als op de startpagina, iets kleiner). */
.hp-play { margin: 1rem 0 0; }
.hp-play .badge img { height: 3.4rem; }

.hp-hero,
.hp-tile,
.faq,
.hp-feat a,
.hp-pn a,
.hp-section.hp-card {
  border-top-color: var(--hairline);
}
