/* De doorstroomtoets voor ouders (stromie.nl/oudertoets).
   Huisstijl C "Uitzending" (gedeeld/stromie-showplan/stand/huisstijl/huisstijl.md). Alleen deze pagina:
   kop en voet blijven die van de site (assets/style.css). Alles hier zit onder .ot, zodat de rest van
   de site er niets van merkt. */
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-800i.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }

.ot {
  --inkt: #0C1330; --inktVlak: #26315C; --grond: #EDEFF5; --wit: #FFFFFF;
  --tekstZacht: #4A5270; --opInktZacht: #D5DAEC; --lijn: #D9DDE8; --uit: #E1E4ED; --uitTekst: #535B78;
  --signaal: #FFD21A;
  --goed: #19B85A; --goedTekst: #0B6630; --goedZacht: #E3F7EA;
  --nogNiet: #F28C00; --nogNietTekst: #874500; --nogNietZacht: #FFF0DC;
  --link: #1D3FB8;
  /* de vier antwoordknoppen zoals in de show; wit erop */
  --antw-a: #1F4FE0; --antw-b: #6C2BD9; --antw-c: #C8175D; --antw-d: #0A6E7F;
  --cut: 10px;
  --knip: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--inkt);
  background: var(--grond);
  line-height: 1.45;
  padding-bottom: 48px;
}
.ot :focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 0; }
.ot [hidden] { display: none !important; }

/* ---- kopband met de studio ---- */
.ot-kop {
  position: relative; color: var(--wit); background: var(--inkt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
  padding: 32px 0 60px;
  overflow: hidden;
}
.ot-kop::before {
  content: ''; position: absolute; inset: 0;
  background: url('studio.webp') center 74% / cover no-repeat;
}
.ot-kop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,19,48,.55), rgba(12,19,48,.82));
}
.ot-kop > * { position: relative; z-index: 1; }
.ot-binnen { max-width: 600px; margin: 0 auto; padding: 0 16px; }
.ot-label {
  display: inline-block; background: var(--signaal); color: var(--inkt);
  font-size: 14px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 2px; transform: skewX(-12deg);
}
.ot-label > span { display: inline-block; transform: skewX(12deg); }
.ot-titel {
  margin-top: 12px; font-size: 32px; font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: -.01em; line-height: 1.08; color: var(--wit);
  text-wrap: balance;  /* geen los woord op de laatste regel (360 breed: AAN? stond alleen) */
}
@media (min-width: 700px) { .ot-titel { font-size: 44px; } }
.ot-onder { margin-top: 8px; font-size: 17px; color: var(--opInktZacht); }

/* voortgang: een rij blokjes van 8 hoog, nooit een gladde balk */
.ot-voortgang { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ot-blokjes { display: flex; gap: 3px; flex: 1; }
.ot-blokjes i { flex: 1; height: 8px; background: rgba(255,255,255,.35); }
.ot-blokjes i.goed { background: var(--goed); }
.ot-blokjes i.fout { background: var(--nogNiet); }
.ot-blokjes i.nu { background: var(--signaal); }
.ot-teller { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--wit); }

/* ---- inhoud ---- */
.ot-inhoud { max-width: 600px; margin: -16px auto 0; padding: 0 16px; position: relative; z-index: 2; }
.ot-kaart {
  background: var(--wit); border-radius: 4px; box-shadow: 0 1px 0 rgba(12,19,48,.10);
  padding: 16px; margin-top: 16px;
}
.ot-kaart.vraag { box-shadow: inset 5px 0 0 var(--signaal), 0 1px 0 rgba(12,19,48,.10); padding-left: 21px; }
.ot-kaart p + p { margin-top: 12px; }
.ot-tekst { font-size: 17px; }
.ot-klein { font-size: 14px; font-weight: 600; color: var(--tekstZacht); }
.ot-klein a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ot-vak {
  display: inline-block; background: var(--inkt); color: var(--wit);
  font-size: 14px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 2px; transform: skewX(-12deg);
}
.ot-vak > span { display: inline-block; transform: skewX(12deg); }
.ot-vraag { margin-top: 12px; font-size: 21px; font-weight: 600; line-height: 1.35; white-space: pre-line; outline: none; }

/* de vier antwoordknoppen */
.ot-keuzes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ot-keuze {
  width: 100%; min-height: 54px; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 0; clip-path: var(--knip); padding: 10px 16px 10px 12px; cursor: pointer;
  font: 700 17px/1.3 'Barlow', sans-serif; color: var(--wit);
}
.ot-keuze[data-l="A"] { background: var(--antw-a); }
.ot-keuze[data-l="B"] { background: var(--antw-b); }
.ot-keuze[data-l="C"] { background: var(--antw-c); }
.ot-keuze[data-l="D"] { background: var(--antw-d); }
.ot-keuze:hover:not([disabled]) { filter: brightness(1.08); }
.ot-keuze:focus-visible { outline: 3px solid var(--inkt); outline-offset: 2px; box-shadow: inset 0 0 0 3px var(--signaal); }
.ot-letter {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 2px;
  background: var(--wit); color: var(--inkt); font-weight: 800; font-size: 14px;
}
.ot-keuze[disabled] { cursor: default; background: var(--uit); color: var(--uitTekst); }
.ot-keuze.is-goed[disabled] { background: var(--goed); color: var(--inkt); }
.ot-keuze.is-fout[disabled] { background: var(--nogNiet); color: var(--inkt); }
.ot-merk { margin-left: auto; font-size: 14px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

/* uitleg na een antwoord: inkt met een gele rand, zoals in de show */
.ot-uitleg {
  margin-top: 16px; background: var(--inkt); color: var(--wit); border-top: 4px solid var(--signaal);
  padding: 16px; border-radius: 0 0 4px 4px;
}
.ot-uitleg h2 { font-size: 21px; font-weight: 700; line-height: 1.25; outline: none; }
.ot-uitleg h2 .ot-oordeel { display: inline-block; padding: 0 8px; margin-right: 8px; border-radius: 2px; color: var(--inkt); font-style: italic; text-transform: uppercase; font-weight: 800; }
.ot-uitleg h2 .ot-oordeel.goed { background: var(--goed); }
.ot-uitleg h2 .ot-oordeel.fout { background: var(--nogNiet); }
.ot-uitleg p { margin-top: 12px; font-size: 17px; }
.ot-uitleg .ot-wie { color: var(--signaal); font-weight: 700; }
.ot-uitleg .ot-valkuil { color: var(--opInktZacht); }

/* knoppen */
.ot-knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px;
  border: 0; clip-path: var(--knip); cursor: pointer; text-decoration: none;
  background: var(--signaal); color: var(--inkt);
  font: italic 800 17px/1 'Barlow', sans-serif; text-transform: uppercase; letter-spacing: .02em;
}
.ot-knop:hover { filter: brightness(1.04); }
.ot-knop:focus-visible { outline: 3px solid var(--inkt); outline-offset: 3px; }
.ot-knop.breed { width: 100%; margin-top: 16px; }
.ot-knop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; }
.ot-tweede {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 0; clip-path: var(--knip); cursor: pointer; text-decoration: none;
  background: var(--wit); color: var(--inkt); box-shadow: inset 0 0 0 2px var(--inkt);
  font: 700 17px/1.2 'Barlow', sans-serif;
}
.ot-tweede:hover { background: var(--grond); }
.ot-tweede svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.ot-tekstknop { background: none; border: 0; padding: 12px 0; min-height: 48px; color: var(--link); font: 700 17px 'Barlow', sans-serif; text-decoration: underline; cursor: pointer; }

/* uitslag */
.ot-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ot-score b { font-size: 64px; font-weight: 800; font-style: italic; line-height: 1; }
.ot-score span { font-size: 21px; font-weight: 700; }
.ot-band { margin-top: 8px; font-size: 21px; font-weight: 700; outline: none; }
.ot-vakjes { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; margin-top: 16px; list-style: none; padding: 0; }
.ot-vakjes li { aspect-ratio: 1; border-radius: 2px; display: grid; place-items: center; }
.ot-vakjes li.goed { background: var(--goed); }
.ot-vakjes li.fout { background: var(--nogNiet); }
.ot-vakjes li svg { width: 70%; height: 70%; fill: none; stroke: var(--inkt); stroke-width: 3; stroke-linecap: square; }
.ot-plaatje { margin-top: 16px; }
.ot-plaatje img { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--inkt); }
.ot-vorm { display: flex; gap: 8px; margin-top: 8px; }
.ot-vorm button {
  flex: 1; min-height: 48px; border: 0; clip-path: var(--knip); cursor: pointer;
  font: 700 17px 'Barlow', sans-serif; background: var(--wit); color: var(--inkt); box-shadow: inset 0 0 0 2px var(--lijn);
}
.ot-vorm button[aria-pressed="true"] { background: var(--inkt); color: var(--signaal); box-shadow: none; }
.ot-deel { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 520px) { .ot-deel { grid-template-columns: 1fr 1fr; } .ot-deel .ot-knop { grid-column: 1 / -1; } }
.ot-melding { min-height: 24px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--goedTekst); }
.ot-kaart h2 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.ot-kaart a:not(.ot-knop):not(.ot-tweede) { color: var(--link); font-weight: 700; }
.ot-fout { color: var(--nogNietTekst); font-weight: 700; }
/* de kop van de site blijft bovenaan staan: wat we in beeld schuiven, mag er niet onder verdwijnen */
.ot-vraag, .ot-uitleg h2, .ot-band, .ot-uitleg, .ot-scherm { scroll-margin-top: 88px; }

/* ---- tijdens de vragen: smalle kopband ----
   Alleen het label, de blokjes en "Vraag x van 15"; geen grote titel en geen lege ruimte, zodat op een telefoon
   (390x664 en 360x640) de vraag en alle vier de keuzes zonder schuiven in beeld staan. Start en uitslag houden de
   grote kopband. Gemeten met stand/oudertoets/meet_kopband.py. */
.ot-smal .ot-kop { padding: 8px 0 32px; }
.ot-smal .ot-titel { display: none; }
.ot-smal .ot-voortgang { margin-top: 8px; }
.ot-smal .ot-kaart.vraag { margin-top: 0; padding-top: 12px; padding-bottom: 12px; }
.ot-smal .ot-vraag { margin-top: 8px; }
.ot-smal .ot-keuzes { margin-top: 12px; }
/* met de smalle kopband is het vraagscherm korter dan het scherm; zonder deze regel komt de voet van de site onder de
   plek van Volgende, en een tweede snelle tik opent dan een voetlink (gemeten: /hoe-het-werkt bij vraag 8) */
.ot-smal #ot-vraagscherm { min-height: 100vh; }
/* past een vraag dan nog niet, dan zet de pagina stap voor stap een van deze klassen (oudertoets.js, pasIn) */
.ot-krap1 .ot-kaart.vraag { padding-top: 8px; padding-bottom: 8px; }
.ot-krap1 .ot-keuzes { margin-top: 8px; gap: 4px; }
.ot-krap1 .ot-keuze { min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
/* in de huisstijl hoort bij elke grootte één gewicht: 14 is "klein" (600), 17 is "tekst" (500) */
.ot-krap2 .ot-keuze { font-size: 14px; font-weight: 600; }
.ot-krap3 .ot-vraag { font-size: 17px; font-weight: 500; }
/* lage schermen (iPhone SE in Safari met adresbalk en knoppenbalk: 375x553): tijdens de vragen alleen de blokjes en
   "Vraag x van 15" op één regel, zonder het label erboven. Gemeten met meet_kopband.py (ronde 3). */
@media (max-height: 620px) {
  .ot-smal .ot-kop .ot-label { display: none; }
  .ot-smal .ot-voortgang { margin-top: 0; }
}
.ot-tweede.breed { width: 100%; margin-top: 16px; }
