/* VOW rekentool · zelfde logica en knoppen als de aanvraag, gele kaart voor de website */
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo.woff') format('woff'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/space-mono.woff') format('woff'); font-weight: 400; font-display: swap; }
:root {
  --kastanje: #4A1D1E;
  --geel: #FFF7A4;
  --oranje: #FF885C;
  --tekst-op-oranje: #3A0A0A;
  --rood: #B24A22;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --r: 8px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; }
body { color: var(--kastanje); font-family: var(--sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--kastanje); outline-offset: 2px; }

html, body { height: 100%; }
/* Midden in het blok: korte schermen staan verticaal gecentreerd, lange beginnen bovenaan. */
#rk { min-height: 100%; padding: 2px; display: flex; flex-direction: column; justify-content: center; }
#rk > .rk { width: 100%; }
.rk { max-width: 480px; margin: 0 auto; background: var(--geel); border: 1px solid var(--kastanje); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.q { font-weight: 700; font-size: 17px; margin: 0; }
.q.c { text-align: center; }
.voor { text-align: center; font-weight: 700; font-size: 14px; color: var(--rood); }
.quote { text-align: center; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.08; margin: 0; overflow-wrap: anywhere; }
.line { height: 3px; width: 60%; background: var(--kastanje); border-radius: 2px; align-self: center; }
.lbl { font-size: 13px; }

.in { height: 50px; width: 100%; border: 1px solid var(--kastanje); border-radius: var(--r); background: rgba(255, 255, 255, .7); padding: 0 14px; font-size: 17px; }
.in::placeholder { color: rgba(74, 29, 30, .45); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills.c { justify-content: center; }
.pl { min-height: 44px; padding: 0 14px; border: 1px solid var(--kastanje); border-radius: var(--r); background: rgba(255, 255, 255, .6); font-weight: 600; font-size: 15px; }
.pl.on, .tile.on { background: var(--kastanje); color: #FFFFFF; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile { min-height: 52px; border: 1px solid var(--kastanje); border-radius: var(--r); background: rgba(255, 255, 255, .6); font-size: 15px; font-weight: 600; text-align: left; padding: 6px 10px; display: flex; align-items: center; gap: 8px; line-height: 1.2; }
.tile .em { font-size: 18px; line-height: 1; }
.tile.ghost { border-style: dashed; background: transparent; justify-content: center; }

.age { font-family: var(--serif); font-size: 64px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.range { width: 100%; margin: 0; accent-color: var(--kastanje); height: 28px; }
.rl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; margin-top: -8px; }

.step { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.step button { height: 44px; border: 1px solid var(--kastanje); border-radius: var(--r); background: rgba(255, 255, 255, .6); font-size: 22px; font-weight: 600; padding: 0; }
.step button:disabled { opacity: .35; cursor: default; }
.step .v { text-align: center; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }

.prc { background: var(--kastanje); color: var(--geel); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-height: 128px; }
.prc .a { font-family: var(--serif); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.prc .a small { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.prc .a.wait { opacity: .35; }
.prc .m { font-family: var(--mono); font-size: 11px; line-height: 1.55; }

.go { display: flex; align-items: center; justify-content: center; min-height: 54px; width: 100%; border: 1px solid var(--kastanje); border-radius: var(--r); background: var(--oranje); color: var(--tekst-op-oranje); font-weight: 700; font-size: 17px; text-decoration: none; }
.go[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.lnk { background: none; border: 0; padding: 4px 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.lnk.c { align-self: center; }
.nudge { font-family: var(--mono); font-size: 12px; line-height: 1.5; text-align: center; }
.err { font-size: 14px; font-weight: 600; color: var(--rood); }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--kastanje); }
.dots i.f { background: var(--kastanje); }
