/* Rustig oefenen – eigen opmaak. De vaste onderdelen komen uit ../gedeeld/stijl-v1.css. */
:root { --mlp-vak: var(--mlp-rekenen); } /* app.js zet het vak (rekenen, spelling, lezen) */
.ro-pagina { max-width: 1040px; }
.ro-intro { margin: 6px 0 14px; }
.ro-kop { font-size: 20px; margin: 22px 0 10px; }

/* Voor jou vandaag: drie rustige tegels */
.ro-tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.ro-tegel { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 18px; min-height: 84px; border: 2px solid var(--mlp-rand); border-radius: var(--mlp-rond); background: #fff; box-shadow: 0 4px 0 var(--mlp-rand); cursor: pointer; }
.ro-tegel:first-child { border-color: var(--mlp-hoofd-licht); background: var(--mlp-vlak); }
.ro-tegel b { font-size: 20px; }
.ro-tegel span { font-size: 16px; color: var(--mlp-zacht); }
.ro-tegel:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--mlp-rand); }
.ro-tegel:focus-visible { outline: 4px solid var(--mlp-hoofd-licht); outline-offset: 2px; }
.ro-onderwerpen .mlp-keuze { font-size: 18px; min-height: 60px; padding: 8px; }
.ro-onderwerpen .mlp-keuze[aria-checked="true"] { border-color: var(--mlp-hoofd); background: var(--mlp-vlak); }
.ro-groep { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.ro-groep > span:first-child { font-weight: 700; }
.ro-groep .mlp-knop { min-width: 52px; padding: 8px 12px; }
.ro-groep .mlp-knop[aria-pressed="true"] { border-color: var(--mlp-hoofd); background: var(--mlp-vlak); }
.ro-volwassen { margin-top: 28px; text-align: center; }
.ro-link { background: none; border: 0; padding: 10px; font-size: 16px; color: var(--mlp-zacht); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* Oefenen: opdracht in het midden, cijfers altijd rechts (breed) of eronder (smal) */
.ro-voortgang { max-width: 420px; margin: 0 auto 14px; }
.ro-voortgang i.gedaan { background: var(--mlp-hoofd-licht); }
.ro-oefen { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; }
.ro-opdracht { text-align: center; padding: 22px 18px 26px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.ro-instructie { font-size: 21px; margin: 0 0 8px; color: var(--mlp-navy); }
.ro-samen { display: inline-block; align-self: center; margin: 0 0 10px; padding: 4px 14px; border-radius: 999px; background: var(--mlp-warm-zacht); font-weight: 700; color: #8a5300; }
.ro-verhaal { font-size: 22px; line-height: 1.55; text-align: left; max-width: 34em; margin: 4px auto 10px; }
.ro-beeldvak { display: flex; justify-content: center; margin: 6px 0; }
.ro-beeldvak:empty { display: none; }
.ro-beeld { width: 100%; max-width: 560px; height: auto; max-height: 230px; }
.ro-som { font-size: clamp(40px, 9vw, 64px); font-weight: 700; margin: 10px 0 4px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.ro-som-klein { font-size: 32px; color: var(--mlp-zacht); }
.ro-getal { display: block; width: 100%; }
.ro-los { display: block; width: 100%; }
.ro-vak { display: inline-block; min-width: 2.4em; padding: 0 .25em; border: 3px solid var(--mlp-hoofd-licht); border-radius: 14px; background: #fff; line-height: 1.25; text-align: center; white-space: pre; }
.ro-vak.leeg { border-style: dashed; }
.ro-vak.goed { border-color: var(--mlp-goed); background: var(--mlp-goed-zacht); }
.ro-vak.uitleg { border-color: var(--mlp-half); background: var(--mlp-half-zacht); }
.ro-stap { font-weight: 700; }
.ro-stapteller { margin: 6px 0 0; font-size: 15px; color: var(--mlp-zacht); }
.ro-opdracht .mlp-feedback { text-align: left; max-width: 560px; align-self: center; width: 100%; }

.ro-toetsen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; border-radius: var(--mlp-rond); background: var(--mlp-navy); position: sticky; top: 84px; }
.ro-toets { min-height: 64px; border: 0; border-radius: 14px; background: #fff; font-size: 30px; font-weight: 700; color: var(--mlp-navy); box-shadow: 0 4px 0 #0b1d2f; cursor: pointer; touch-action: manipulation; }
.ro-toets:active { transform: translateY(2px); box-shadow: 0 2px 0 #0b1d2f; }
.ro-toets:focus-visible { outline: 4px solid var(--mlp-hoofd-licht); outline-offset: 2px; }
.ro-toets:disabled { opacity: .5; }
.ro-toets svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ro-wis { background: #fde3e4; color: #8f1f22; }
.ro-ok { background: var(--mlp-hoofd-licht); color: #fff; }
.ro-klaar { position: absolute; left: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); font-size: 16px; }

/* Pauze en slot */
.ro-laag { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(17, 44, 57, .45); }
.ro-pauze { max-width: 420px; width: 100%; text-align: center; }
.ro-knoppen { display: flex; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ro-slotinvoer { font: inherit; font-size: 28px; width: 120px; text-align: center; padding: 6px; border: 3px solid var(--mlp-rand); border-radius: 12px; }

/* Afronding */
.ro-afronding { max-width: 560px; margin: 10px auto; }
.ro-vervolg-kop { margin: 18px 0 8px; font-weight: 700; }
.ro-vervolg { width: 100%; text-align: center; align-items: center; }

/* Rapport voor volwassenen */
.ro-rapport .mlp-kaart { margin: 14px 0; }
.ro-rapport h3 { margin: 0; font-size: 20px; }
.ro-vd-kop { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.ro-chip { padding: 2px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.ro-chip.grijs { background: #eef2f1; color: var(--mlp-zacht); }
.ro-chip.groen { background: var(--mlp-goed-zacht); color: #1f6e2f; }
.ro-chip.oranje { background: var(--mlp-half-zacht); color: #8a5300; }
.ro-chip.paars { background: #efe9fb; color: #5b3d99; }
.ro-waarschuwing { padding: 10px 14px; border-radius: 12px; background: var(--mlp-warm-zacht); font-size: 16px; }
.ro-log { font-size: 16px; padding-left: 22px; }
.ro-log li { margin: 4px 0; }

/* Versie 2: vakken, keuzeknoppen, lettertoetsen en leesteksten */
.ro-vakken { margin: 4px 0 12px; }
.ro-vakken .mlp-keuze { font-size: 19px; min-height: 56px; }
.ro-vakken .mlp-keuze[aria-checked="true"] { border-color: var(--kleur, var(--mlp-vak)); background: color-mix(in srgb, var(--kleur, var(--mlp-vak)) 12%, #fff); box-shadow: 0 4px 0 color-mix(in srgb, var(--kleur, var(--mlp-vak)) 40%, #fff); }
.ro-oefen.ro-vorm-keuze { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.ro-oefen.ro-vorm-woord { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.ro-oefen.ro-met-tekst { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); max-width: 1040px; }
.ro-leestekst { text-align: left; padding: 20px 22px; max-height: 70vh; overflow: auto; }
.ro-leestekst h2 { margin: 0 0 8px; font-size: 22px; }
.ro-leestekst p { font-size: 20px; line-height: 1.6; margin: 0 0 12px; }
.ro-leestekst.kort p { font-size: 22px; }
.ro-tekst-voor { padding: 4px 0; min-height: 40px; }
.ro-met-tekst .ro-opdracht { min-height: 0; justify-content: flex-start; }
.ro-groot { font-size: clamp(32px, 7vw, 52px); font-weight: 700; margin: 8px 0; }
.ro-zin { font-size: 24px; line-height: 1.7; margin: 8px auto 6px; max-width: 34em; }
.ro-gat { display: inline-block; min-width: 3em; border-bottom: 3px dashed var(--mlp-hoofd-licht); color: var(--mlp-zacht); }
.ro-woordvak { min-width: 5em; font-size: 26px; padding: 2px 10px; text-align: left; }
.ro-som-woord .ro-woordvak { font-size: clamp(30px, 7vw, 44px); min-width: 6em; text-align: center; }
.ro-eenheid { font-size: .55em; margin-left: .2em; color: var(--mlp-zacht); }
.ro-opties { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 14px 0 6px; text-align: left; }
.ro-optie { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border: 3px solid var(--mlp-rand); border-radius: 16px; background: #fff; font: inherit; font-size: 21px; color: var(--mlp-tekst); box-shadow: 0 4px 0 var(--mlp-rand); cursor: pointer; text-align: left; touch-action: manipulation; }
.ro-optie:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--mlp-rand); }
.ro-optie:focus-visible { outline: 4px solid var(--mlp-hoofd-licht); outline-offset: 2px; }
.ro-optie-nr { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mlp-vlak); font-size: 15px; font-weight: 700; color: var(--mlp-zacht); }
.ro-optie.goed { border-color: var(--mlp-goed); background: var(--mlp-goed-zacht); }
.ro-optie.uitleg { border-color: var(--mlp-half); background: var(--mlp-half-zacht); opacity: 1; }
.ro-optie.weg, .ro-optie:disabled { opacity: .45; cursor: default; }
.ro-optie.goed:disabled { opacity: 1; }
.ro-luister { align-self: center; margin-bottom: 10px; gap: 8px; }
.ro-luister svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ro-letters { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--mlp-rond); background: var(--mlp-navy); }
.ro-rij { display: flex; justify-content: center; gap: 6px; }
.ro-letter { flex: 1 1 0; max-width: 64px; min-width: 0; min-height: 54px; border: 0; border-radius: 12px; background: #fff; font: inherit; font-size: 24px; font-weight: 700; color: var(--mlp-navy); box-shadow: 0 3px 0 #0b1d2f; cursor: pointer; touch-action: manipulation; }
.ro-letter:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b1d2f; }
.ro-letter:disabled { opacity: .5; }
.ro-letter svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ro-letter.ro-shift[aria-pressed="true"] { background: var(--mlp-warm); }
.ro-letter.ro-spatie { flex: 3 1 0; max-width: 220px; font-size: 18px; }
.ro-letter.ro-ok, .ro-letter.ro-wis { flex: 1.4 1 0; max-width: 90px; }
.ro-letter.ro-wis { background: #fde3e4; color: #8f1f22; }
.ro-letter.ro-ok { background: var(--mlp-hoofd-licht); color: #fff; }
.ro-toets.ro-komma { grid-column: 1 / -1; }
.ro-uitleg { max-width: 720px; margin: 0 auto; }
.ro-uitleg-kop { margin: 0 0 8px; font-size: 26px; }
.ro-regel { font-size: 22px; line-height: 1.5; margin: 0 auto 12px; max-width: 32em; }
.ro-voorbeeld { margin: 8px auto 0; padding: 12px 16px; max-width: 34em; border-radius: 14px; background: var(--mlp-vlak); }
.ro-voorbeeld-som { font-size: 26px; font-weight: 700; margin: 6px 0; }
@media (max-width: 760px) {
  .ro-oefen.ro-met-tekst { grid-template-columns: 1fr; }
  .ro-leestekst { max-height: none; }
  .ro-letter { min-height: 46px; font-size: 20px; }
  .ro-rij { gap: 4px; }
  .ro-letters { padding: 8px 6px; }
  .ro-optie { font-size: 19px; min-height: 56px; }
}

@media (max-width: 760px) {
  .ro-oefen { grid-template-columns: 1fr; }
  .ro-opdracht { min-height: 0; }
  .ro-toetsen { position: static; max-width: 340px; width: 100%; margin: 0 auto; padding: 10px; gap: 8px; }
  .ro-toets { min-height: 54px; font-size: 26px; }
  .ro-klaar { position: static; }
}
@media print {
  .mlp-balk, .mlp-onder, .ro-laag { display: none !important; }
  .ro-rapport .mlp-kaart { break-inside: avoid; }
}

/* Cijferen: de som onder elkaar, een vakje per cijfer */
.ro-cijfer { --ro-cel: clamp(2.1rem, 9vw, 2.8rem); display: inline-flex; flex-direction: column; align-items: flex-end; margin: .4rem auto 0; font-size: clamp(1.4rem, 5vw, 1.9rem); font-variant-numeric: tabular-nums; }
.ro-crij { display: flex; align-items: center; gap: .25rem; }
.ro-cop { width: 1.4em; text-align: center; font-weight: 700; }
.ro-c, .ro-cv { width: var(--ro-cel); height: var(--ro-cel); display: inline-flex; align-items: center; justify-content: center; }
.ro-ck { width: .5em; text-align: center; font-weight: 700; }
.ro-cv { border: 2px dashed var(--mlp-rand, #b9d3cc); border-radius: .5rem; background: var(--mlp-kaart, #fff); font: inherit; font-weight: 700; color: inherit; cursor: pointer; padding: 0; }
.ro-cv.klein { height: calc(var(--ro-cel) * .62); font-size: .62em; border-style: dotted; color: var(--mlp-zacht, #557); }
.ro-cv.actief { border: 3px solid var(--mlp-vak, var(--mlp-hoofd, #2bb5a0)); background: color-mix(in srgb, var(--mlp-vak, #2bb5a0) 10%, white); }
.ro-cv.rood { border: 3px solid #d9534f; background: #fdecec; }
.ro-cv.goed { border: 3px solid #2e9e6a; background: #e9f7ef; }
.ro-cv.uitleg { border: 3px solid #e3a33b; background: #fff6e6; }
.ro-claatste { border-bottom: 3px solid currentColor; padding-bottom: .25rem; margin-bottom: .25rem; }
.ro-conthoud { margin-bottom: .1rem; }
.ro-ctip { margin: .5rem 0 0; font-size: .9rem; color: var(--mlp-zacht, #557); text-align: center; }
.ro-opdracht:has(.ro-cijfer) { text-align: center; }
