/*
 * De oefenbladen zelf: A4 staand, zwart-wit-vriendelijk, klaar om te printen.
 *
 * De tekst staat in Andika, een lettertype dat SIL tekende voor beginnende
 * lezers: een enkelvoudige a, een duidelijke l en geen letters die je met
 * elkaar kan verwarren. De titels staan in dezelfde letter als de site.
 */

@page { size: A4 portrait; margin: 12mm; }

.blad {
  width: 210mm;
  min-height: 297mm;
  padding: 14mm 15mm 12mm;
  background: #fff;
  color: #111;
  border: 1px solid var(--rand, #ddd);
  box-shadow: 0 2px 0 rgba(35, 48, 63, .05), 0 14px 30px -16px rgba(35, 48, 63, .5);
  display: flex;
  flex-direction: column;
  font-size: 11.5pt;
  line-height: 1.45;
  font-family: 'Andika', 'Nunito', sans-serif;
}

.blad h1, .blad h2, .blad h3 { margin: 0; letter-spacing: -.01em; font-family: 'Baloo 2', 'Nunito', sans-serif; }

.blad-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 12mm; border-bottom: 1.5pt solid #111; padding-bottom: 3mm; }
.blad-kop h2 { font-size: 18pt; display: flex; align-items: center; gap: 2.5mm; }
.blad-kop h2 .icoon { width: 8mm; height: 8mm; flex: none; stroke-width: 1.6; }
.blad-kop .doelregel { margin: 1.5mm 0 0; font-size: 9.5pt; color: #333; max-width: 105mm; }
.blad-kop .doelcode { margin: 1mm 0 0; font-size: 8.5pt; color: #555; font-variant-numeric: tabular-nums; }
.blad-kop-rechts { text-align: right; display: flex; flex-direction: column; gap: 1mm; flex: none; }
.blad-kop-rechts .typenaam { font-size: 8.5pt; color: #555; max-width: 55mm; }
.blad-kop-rechts .bladnr { font-size: 9pt; font-weight: 600; }
.blad-kop-rechts .niveau { font-size: 13pt; letter-spacing: 1px; color: #d09410; }

.naamregel { display: flex; gap: 12mm; margin: 4mm 0 3.5mm; font-size: 10.5pt; align-items: flex-end; }
.invullijn {
  display: inline-block;
  width: 55mm;
  height: 4mm;
  border-bottom: .8pt solid #444;
  border-top: .5pt dotted #aaa;
  vertical-align: bottom;
}
.invullijn.kort { width: 32mm; }

.instructie {
  background: #fdf1d6;
  border-left: 4pt solid #111;
  padding: 2.5mm 4mm;
  margin: 0 0 3mm;
  border-radius: 0 3mm 3mm 0;
  font-size: 11pt;
  font-weight: 700;
}
.tip {
  margin: 0 0 4mm;
  font-size: 9.5pt;
  color: #333;
  border: .8pt dashed #999;
  padding: 2mm 3.5mm;
  border-radius: 3mm;
}
.tip strong { font-family: 'Baloo 2', sans-serif; }

.bladinhoud { flex: 1; }

.blad-voet { display: flex; justify-content: space-between; font-size: 8pt; color: #666; border-top: .6pt solid #bbb; padding-top: 2mm; margin-top: 6mm; }

/* Opgaven */
.raster { display: grid; gap: 4mm 6mm; }
.raster.kolommen-2 { grid-template-columns: repeat(2, 1fr); }
.raster.kolommen-3 { grid-template-columns: repeat(3, 1fr); }
.raster.kolommen-4 { grid-template-columns: repeat(4, 1fr); }
.raster.ruim { gap: 10mm 6mm; }
.opgave { display: flex; gap: 2.5mm; align-items: flex-start; break-inside: avoid; }
.opgave .nr { font-size: 9pt; color: #555; min-width: 5mm; padding-top: .8mm; font-variant-numeric: tabular-nums; }
.opgave-inhoud { flex: 1; }
.opgave.breed { margin-bottom: 1.5mm; }
.vragen .opgave { margin-bottom: 3mm; }
.schrijfopgave .opgave-inhoud { line-height: 2; }

.som { font-size: 13pt; white-space: nowrap; font-variant-numeric: tabular-nums; }
.woord { font-size: 13pt; letter-spacing: .02em; }
.hulp { font-size: 9.5pt; color: #555; }

.schrijflijn { display: inline-block; width: var(--breedte, 28mm); border-bottom: .6pt solid #444; vertical-align: baseline; }
.antwoordvak { display: inline-block; width: var(--zijde, 14mm); height: 7mm; border: .8pt solid #444; vertical-align: middle; margin: 0 1mm; }

/* Klok */
.klok-opgave { display: flex; flex-direction: column; align-items: center; gap: 2mm; }
.klok { width: var(--klok, 34mm); height: var(--klok, 34mm); }
.klok .wijzerplaat { fill: #fff; stroke: #111; stroke-width: 2; }
.klok .streep-groot { stroke: #111; stroke-width: 2; }
.klok .streep-klein { stroke: #888; stroke-width: 1; }
.klok .klokcijfer { font-size: 11px; text-anchor: middle; fill: #111; font-family: inherit; }
.klok .wijzer-uur { stroke: #111; stroke-width: 5; stroke-linecap: round; }
.klok .wijzer-minuut { stroke: #111; stroke-width: 3; stroke-linecap: round; }
.klok .wijzeras { fill: #111; }
.klok-tijd { font-size: 12pt; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Rooster en tabellen */
table.rooster { border-collapse: collapse; margin: 0 auto 5mm; }
table.rooster th, table.rooster td { border: .8pt solid #333; width: 17mm; height: 14mm; text-align: center; vertical-align: middle; }
table.rooster th { background: #f2f2f0; font-size: 10pt; width: 10mm; height: 10mm; font-family: 'Baloo 2', sans-serif; }
table.rooster .symbool { font-size: 15pt; }

table.gegevenstabel { border-collapse: collapse; margin: 0 auto 5mm; min-width: 110mm; }
table.gegevenstabel caption { font-weight: 700; font-size: 12.5pt; padding-bottom: 2mm; font-family: 'Baloo 2', sans-serif; }
table.gegevenstabel th, table.gegevenstabel td { border: .8pt solid #333; padding: 2.5mm 4mm; text-align: center; font-size: 11pt; }
table.gegevenstabel th { background: #f2f2f0; }
table.gegevenstabel td { font-variant-numeric: tabular-nums; }
table.prijslijst { min-width: 85mm; }
table.prijslijst th { text-align: left; font-weight: 500; }
table.prijslijst td { text-align: right; font-weight: 600; }

/* Getallenas */
.getallenas { width: 100%; height: auto; margin-bottom: 4mm; }
.getallenas .as { stroke: #111; stroke-width: 2; }
.getallenas .as-streep { stroke: #111; stroke-width: 1.5; }
.getallenas .as-getal { font-size: 15px; text-anchor: middle; fill: #111; }
.getallenas .as-vak { fill: #fff; stroke: #444; stroke-width: 1.2; }
.tussentitel { font-size: 10pt; font-weight: 600; margin: 4mm 0 2mm; }

/* Taal */
.leestekst { border: .9pt solid #333; border-radius: 3mm; padding: 4mm 5mm; margin-bottom: 5mm; background: #fbfaf6; }
.leestekst h3 { font-size: 14pt; margin-bottom: 2mm; }
.leestekst p { margin: 0; font-size: 11.5pt; line-height: 1.75; }

/* Op niveau 3 zijn de teksten langer: iets compacter, zodat alles op één A4 blijft. */
.blad[data-niveau="3"] .leestekst { padding: 3mm 4mm; }
.blad[data-niveau="3"] .leestekst p { font-size: 11pt; line-height: 1.65; }
.blad[data-niveau="3"] .schrijfopgave .opgave-inhoud { line-height: 1.85; }

.woordenbank { display: flex; flex-wrap: wrap; gap: 2mm; margin-bottom: 2mm; }
.woordenbank.groot { justify-content: center; margin-bottom: 5mm; }
.woordkaart { border: .9pt solid #444; border-radius: 3mm; padding: 1mm 3.5mm; font-size: 11.5pt; background: #fff; }
.schrijfregels { display: flex; flex-direction: column; gap: 1.5mm; }

.sorteerkolommen { display: flex; gap: 4mm; }
.sorteerkolom { flex: 1; border: .9pt solid #333; border-radius: 3mm; padding: 2mm; }
.sorteerkolom .kop { font-weight: 700; font-family: 'Baloo 2', sans-serif; font-size: 11pt; text-align: center; border-bottom: .8pt solid #333; padding-bottom: 1.5mm; margin-bottom: 3mm; }
.sorteerlijn { border-bottom: .6pt solid #666; height: 8mm; }
.sorteerlijn.extra { border-bottom-style: dashed; }

table.leesraster { width: 100%; border-collapse: collapse; margin-bottom: 5mm; }
table.leesraster td { border: .5pt solid #ccc; padding: 3mm 2mm; text-align: center; font-size: 13pt; letter-spacing: .03em; }
.tijdvakken { display: flex; gap: 5mm; justify-content: center; }
.tijdvak { border: .9pt solid #333; border-radius: 3mm; padding: 2mm 4mm; text-align: center; min-width: 32mm; }
.tijdvak span { font-size: 9pt; color: #555; display: block; }
.tijdvak em { display: block; height: 8mm; border-bottom: .6pt solid #444; }
.ontleedzin { font-size: 13pt; line-height: 2.4; }

/* Voorblad */
.voorblad { justify-content: flex-start; }
.voorblad-kop { border-bottom: 1.5pt solid #111; padding-bottom: 4mm; margin-bottom: 5mm; display: flex; justify-content: space-between; align-items: flex-start; gap: 8mm; }
.voorblad-logo { width: 36mm; height: auto; flex: none; }
.voorblad .merk { font-size: 11pt; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 3mm; color: #555; font-family: 'Baloo 2', sans-serif; font-weight: 700; }
.voorblad h1 { font-size: 26pt; line-height: 1.1; }
.voorblad .onder { font-size: 13pt; margin: 2mm 0 0; color: #333; }
.samenvatting { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3mm 8mm; margin: 0 0 6mm; }
.samenvatting dt { font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; color: #666; }
.samenvatting dd { margin: 1mm 0 0; font-size: 12pt; font-weight: 700; font-family: 'Baloo 2', sans-serif; }
.voorblad-titel { font-size: 13pt; margin-bottom: 3mm; }
table.doelentabel { width: 100%; border-collapse: collapse; }
table.doelentabel td { border-bottom: .6pt solid #bbb; padding: 2mm; vertical-align: top; font-size: 10pt; line-height: 1.35; }
table.doelentabel td.code { width: 22mm; font-variant-numeric: tabular-nums; font-weight: 700; font-family: 'Baloo 2', sans-serif; }
table.doelentabel .doelzin { font-size: 8.5pt; color: #333; }
table.doelentabel .anker { font-size: 8pt; color: #666; }
.voetnoot { font-size: 8pt; color: #555; margin-top: auto; padding-top: 5mm; line-height: 1.45; }

ol.inhoudsopgave { margin: 0; padding-left: 6mm; columns: 2; column-gap: 10mm; font-size: 9.5pt; }
ol.inhoudsopgave li { margin-bottom: 1.5mm; break-inside: avoid; }
ol.inhoudsopgave li span:first-child { padding-right: 2mm; }
.inhoud-niveau { color: #d09410; letter-spacing: .5px; }

/* Een voorblad met veel doelen wordt compacter zodat het op één A4 blijft. */
.voorblad.veel-doelen h1 { font-size: 22pt; }
.voorblad.veel-doelen table.doelentabel td { font-size: 9pt; padding: 1.5mm 2mm; }
.voorblad.veel-doelen table.doelentabel .doelzin { font-size: 8pt; }
.voorblad.veel-doelen .samenvatting { margin-bottom: 4mm; }
.voorblad.veel-doelen .voetnoot { font-size: 7.5pt; padding-top: 3mm; }
.voorblad.veel-doelen ol.inhoudsopgave { font-size: 9pt; }

/* Antwoordkaart */
.antwoordkaart .antwoorden { list-style: none; padding: 0; margin: 5mm 0 0; column-count: 1; }
.antwoordkaart .antwoorden li { margin-bottom: 4mm; break-inside: avoid; font-size: 10pt; }
.antwoordkaart .antwoorden li strong { font-family: 'Baloo 2', sans-serif; font-size: 11pt; }
.antwoordkaart .antwoordrij { display: flex; flex-wrap: wrap; gap: 1.5mm 4mm; margin-top: 1.5mm; }
.antwoordkaart .ant { font-size: 10pt; font-variant-numeric: tabular-nums; }
.antwoordkaart .ant em { color: #666; font-style: normal; font-size: 8.5pt; }

/* Dyslexievriendelijke weergave: meer wit tussen letters, woorden en regels. */
.ruimer .blad { font-size: 13.5pt; line-height: 1.9; letter-spacing: .04em; word-spacing: .12em; }
.ruimer .som, .ruimer .woord { font-size: 15pt; }
.ruimer .leestekst p { line-height: 2.1; font-size: 13pt; }
.ruimer .opgave { margin-bottom: 3mm; }

@media print {
  .blad {
    width: auto;
    min-height: 271mm;
    padding: 0;
    border: none;
    box-shadow: none;
    break-after: page;
  }
  .blad:last-child { break-after: auto; }
  .instructie { background: #fdf1d6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.rooster th, table.gegevenstabel th, .leestekst { background: #f2f2f0 !important; }
  .blad, .blad * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
