/* kidsfaq.nl - theme v1 "Weetjesdoos" (29-11-2026)
   A box of questions: lilac page, white rounded cards with a chunky shadow, purple and sunny yellow, and one colour
   per topic (animals green, body pink, nature and space blue, technology orange) through data-cat. Fredoka for
   headings, Andika for text (large, made for beginning readers). Bump ?v= in head-assets and templates. */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Andika"; src: url("/assets/fonts/andika-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("/assets/fonts/andika-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f0ff; --card: #ffffff; --line: #e4d8fb; --ink: #2a1747; --muted: #6b5a88;
  --purple: #6d28d9; --purple-d: #4c1d95; --purple-l: #ede4ff; --yellow: #ffd43b; --yellow-l: #fff6cc; --orange: #f97316;
  --c: var(--purple); --cl: var(--purple-l);
  --head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Andika", "Verdana", system-ui, sans-serif;
  --wrap: 66rem; --r: 22px;
}
[data-cat="dieren"] { --c: #15803d; --cl: #dcfce7; }
[data-cat="lichaam"] { --c: #be185d; --cl: #fce7f3; }
[data-cat="natuur-en-ruimte"] { --c: #1d4ed8; --cl: #dbeafe; }
[data-cat="techniek"] { --c: #c2410c; --cl: #ffedd5; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.18rem/1.75 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--purple-d); }
h1, h2, h3 { font-family: var(--head); color: var(--purple-d); line-height: 1.15; margin: 1.4em 0 .45em; font-weight: 650; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: .2em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 9; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; border-radius: 99px; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.17em; flex: none; }
.kicker { display: inline-block; margin: 0 0 .5rem; font: 600 .9rem/1 var(--head); background: var(--c); color: #fff; padding: .4rem .9rem; border-radius: 99px; }
.kicker a { color: inherit; text-decoration: none; }
.lead { font-size: 1.25rem; max-width: 42rem; }
.muted { color: var(--muted); font-size: 1rem; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }

/* header */
.site-header { padding: .8rem 0 0; position: relative; }
.site-header__inner { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; display: flex; align-items: center; gap: 1rem; background: var(--card); border-radius: 99px; padding: .55rem .7rem .55rem 1.3rem; box-shadow: 0 4px 0 var(--line); }
.brand { margin-right: auto; display: inline-flex; }
.brand__logo { height: 2.3rem; width: auto; display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; flex-wrap: wrap; }
.site-nav__link { display: block; padding: .45rem 1rem; border-radius: 99px; font: 600 1.02rem var(--head); text-decoration: none; color: #fff; background: var(--purple); }
.site-nav__item:nth-child(1) .site-nav__link { background: #15803d; }
.site-nav__item:nth-child(2) .site-nav__link { background: #be185d; }
.site-nav__item:nth-child(3) .site-nav__link { background: #1d4ed8; }
.site-nav__item:nth-child(4) .site-nav__link { background: #c2410c; }
.site-nav__link:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.is-current .site-nav__link { box-shadow: 0 0 0 3px var(--yellow); }
.menu-toggle { display: none; align-items: center; gap: .4rem; background: var(--purple); border: 0; padding: .5rem 1rem; font: 600 1rem var(--head); color: #fff; cursor: pointer; border-radius: 99px; }
.menu-toggle svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
@media (max-width: 56rem) {
  .js .menu-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; border-radius: var(--r); }
  .js .site-nav { display: none; width: 100%; padding: .3rem 0 .4rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav__list { flex-direction: column; }
  html:not(.js) .site-nav { width: 100%; }
}

/* crumbs */
.crumbs { font: 500 .95rem var(--head); color: var(--muted); padding: 1rem 0 .4rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "\203A"; margin-right: .35rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.band .crumbs, .band .crumbs a { color: rgba(255,255,255,.85); }

/* hero + band */
.hero { position: relative; overflow: hidden; background: var(--purple); color: #fff; margin: 1rem auto 0; width: min(100% - 2rem, var(--wrap)); border-radius: var(--r); padding: 2.6rem 0 3rem; }
.hero .wrap { width: min(100% - 3rem, var(--wrap)); position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 3.6rem); }
.hero .lead { color: #efe7ff; }
.hero__q { position: absolute; font: 700 9rem/1 var(--head); color: var(--yellow); opacity: .9; transform: rotate(12deg); }
.hero__q--1 { right: 4%; top: -.6rem; }
.hero__q--2 { right: 18%; bottom: -2.4rem; font-size: 6rem; color: #a78bfa; transform: rotate(-14deg); }
.hero__q--3 { right: 30%; top: .4rem; font-size: 4.5rem; color: var(--orange); }
@media (max-width: 40rem) { .hero__q { font-size: 5rem; opacity: .35; } .hero__q--2, .hero__q--3 { display: none; } }
.band { background: var(--c); color: #fff; margin: 1rem auto 0; width: min(100% - 2rem, var(--wrap)); border-radius: var(--r); padding: .2rem 0 2rem; }
.band .wrap { width: min(100% - 3rem, var(--wrap)); }
.band h1 { color: #fff; }
.band .lead { color: rgba(255,255,255,.92); }
.page-title { margin-top: .4em; }

/* cards */
.card { background: var(--card); border-radius: var(--r); padding: clamp(1.2rem, 4vw, 2.4rem); box-shadow: 0 6px 0 var(--line); margin-bottom: 1.6rem; }
.card--page, .card--answer { max-width: 48rem; }
.prose { max-width: 44rem; }
.prose.prose--wide { max-width: none; }
.prose li { margin-bottom: .4em; }
.prose--answer > p:first-child { position: relative; background: var(--yellow-l); border: 3px solid var(--yellow); border-radius: 18px; padding: 1rem 1.2rem; font-size: 1.3rem; font-weight: 700; margin-bottom: 1.6rem; }
.prose--answer > p:first-child::after { content: ""; position: absolute; left: 2rem; bottom: -14px; width: 22px; height: 22px; background: var(--yellow-l); border-right: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(45deg); }
.prose .try { background: var(--cl); border-radius: 18px; padding: 1rem 1.2rem; }
.prose .try__head { font: 650 1.1rem var(--head); color: var(--c); margin: 0 0 .3rem; }
.read { display: inline-flex; align-items: center; gap: .5rem; background: var(--purple-l); color: var(--purple-d); border: 0; border-radius: 99px; padding: .5rem 1.1rem; font: 600 1.05rem var(--head); cursor: pointer; margin: 0 0 1.2rem; }
.read:hover, .read.is-on { background: var(--purple); color: #fff; }
.read[hidden] { display: none; }

/* home */
.home-body { padding: 2rem 0 .5rem; }
.doors { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.doors a { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.2rem 1.3rem; border-radius: var(--r); color: #fff; text-decoration: none; background: var(--purple); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.doors li:nth-child(1) a { background: #15803d; } .doors li:nth-child(2) a { background: #be185d; } .doors li:nth-child(3) a { background: #1d4ed8; } .doors li:nth-child(4) a { background: #c2410c; }
.doors a:hover { color: #fff; transform: translateY(-3px); }
.doors strong { font: 650 1.45rem/1.15 var(--head); }
.doors span { font-size: 1rem; opacity: .95; }
.doors--small a { padding: .8rem 1rem; } .doors--small a { font: 600 1.1rem var(--head); }
.qgrid { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.qcard { position: relative; display: flex; flex-direction: column; gap: .3rem; height: 100%; background: var(--card); border-radius: var(--r); padding: 1.1rem 1.2rem 1.1rem 4rem; text-decoration: none; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.qcard::before { content: "?"; position: absolute; left: 1rem; top: 1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--c); color: #fff; font: 700 1.4rem/2.3rem var(--head); text-align: center; }
.qgrid li:nth-child(4n+2) .qcard::before { background: var(--orange); }
.qgrid li:nth-child(4n+3) .qcard::before { background: #0ea5e9; }
.qgrid li:nth-child(4n+4) .qcard::before { background: #db2777; }
[data-cat] .qgrid li .qcard::before { background: var(--c); }
.qcard:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 0 var(--yellow); }
.qcard__q { font: 600 1.15rem/1.3 var(--head); color: var(--purple-d); }
.qcard__x { font-size: .98rem; color: var(--muted); }
.qgrid--small .qcard { padding-top: .9rem; padding-bottom: .9rem; }
.qgrid--small .qcard::before { width: 2rem; height: 2rem; font-size: 1.15rem; line-height: 2rem; top: .8rem; }

/* listing boxes */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.2rem; margin: 1.4rem 0 2rem; }
.box { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 6px 0 var(--line); }
.box__title { margin: 0; background: var(--c); padding: .9rem 1.2rem; font-size: 1.4rem; }
.box__title a { color: #fff; text-decoration: none; }
.box__list { list-style: none; margin: 0; padding: .4rem 1.2rem .8rem; }
.box__list li { border-bottom: 2px dashed var(--cl); }
.box__list li:last-child { border-bottom: 0; }
.box__list a { display: block; padding: .6rem 0; text-decoration: none; color: var(--ink); font-weight: 700; }
.box__list a:hover { color: var(--c); }

/* more, others, parents */
.more__head, .others__head { font-size: 1.4rem; margin: 1.4rem 0 .6rem; }
.more .qgrid { margin-top: .4rem; }
.parents { margin: 2rem 0 0; }
.bcm-books { background: var(--card); border-radius: var(--r); padding: 1.2rem 1.4rem; box-shadow: 0 5px 0 var(--line); font-size: 1rem; }
.bcm-books__title { margin-top: 0; font-size: 1.3rem; }
.bcm-books__title::after { content: " (voor ouders)"; font: 400 .95rem var(--body); color: var(--muted); }

/* weetjeskaart */
.tool-block { margin: 0 0 2rem; max-width: 48rem; }
.wk { background: var(--card); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: 0 6px 0 var(--line); }
.wk__title { font: 650 1.4rem var(--head); color: var(--purple-d); margin: 0 0 .2rem; }
.wk__intro { color: var(--muted); font-size: 1rem; }
.wk__card { display: block; width: min(100%, 26rem); aspect-ratio: 3 / 2; margin: .4rem 0 1rem; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1000px; font: inherit; color: inherit; }
.wk__inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.wk__card.is-flipped .wk__inner { transform: rotateY(180deg); }
.wk__face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; padding: 1.2rem 1.4rem; border-radius: var(--r); backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; }
.wk__front { background: var(--c); color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.2); }
.wk__back { background: var(--yellow); color: var(--ink); transform: rotateY(180deg); box-shadow: 0 6px 0 #e0b400; }
.wk__icon { width: 3rem; height: 3rem; fill: currentColor; }
.wk__q { font: 650 1.3rem/1.25 var(--head); }
.wk__hint { font: 500 .9rem var(--head); opacity: .85; }
.wk__label { font: 700 1rem var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--purple-d); }
.wk__fact { font: 700 1.12rem/1.45 var(--body); }
.wk__site { font: 500 .8rem var(--head); color: var(--purple-d); opacity: .8; }
.wk__bar { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--purple); color: #fff; border: 0; border-radius: 99px; padding: .65rem 1.3rem; font: 600 1.05rem var(--head); cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--purple-d); }
.btn:hover { color: #fff; transform: translateY(-1px); }

/* footer */
.site-footer { background: var(--purple-d); color: #e9dcff; margin-top: 3.5rem; font-size: 1rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 20px; background: radial-gradient(circle at 20px 0, transparent 20px, var(--purple-d) 21px) repeat-x; background-size: 40px 20px; transform: scaleY(-1); }
.site-footer__inner { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 2.4rem 0 1.4rem; }
.site-footer__logo { height: 2.2rem; width: auto; display: block; margin-bottom: .8rem; }
.site-footer__head { font: 650 1.1rem var(--head); color: var(--yellow); margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #e9dcff; text-decoration: none; line-height: 2; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__small { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; padding: 1rem 0 1.6rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: #c9b6f2; }
@media (max-width: 48rem) { .site-footer__inner { grid-template-columns: 1fr; } }

.disclosure-slot { font-size: .9rem; color: var(--muted); padding: 1rem 0; }
.share { margin: 2rem 0; background: var(--card); border-radius: var(--r) !important; }

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .share, .crumbs, .parents, .disclosure-slot, .more, .others, .read, .wk__bar, .wk__intro { display: none; }
  .card, .wk { box-shadow: none; }
  body.print-card main > :not(.tool-block) { display: none; }
  body.print-card .wk__title { text-align: center; }
  .wk__card { width: auto; aspect-ratio: auto; perspective: none; }
  .wk__inner { transform: none !important; display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: auto; }
  .wk__face { position: static; transform: none; backface-visibility: visible; min-height: 8cm; border: 2px dashed #999; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* single-column pages: centre the reading column */
[data-page="faq-detail"] main.wrap, main.wrap:has(> .card--page) { width: min(100% - 2rem, 50rem); }
