/* English phonics: sound boxes, word rows, family sort table, sentence lines. */
.ph{flex:1;font-family:'Sheetola Print',Arial,sans-serif;font-size:16pt;list-style:none;margin:0;padding:0;counter-reset:q}
.ph li{counter-increment:q;position:relative;padding-inline-start:7mm;break-inside:avoid}
.ph li::before{content:counter(q) ".";position:absolute;inset-inline-start:0;font-size:11pt;color:#555;top:.4em}
.ph-grid{display:grid;grid-template-columns:repeat(var(--cols,2),1fr);gap:6mm 10mm;align-content:space-around}
.ph-grid li{display:flex;align-items:center;gap:2mm;font-size:20pt}
.ph-sound{display:inline-flex;align-items:center;justify-content:center;min-width:14mm;height:13mm;padding:0 2mm;border:.35mm solid #000;border-radius:2mm}
.ph-a{display:inline-block;min-width:30mm;border-bottom:.35mm solid #000;text-align:center;font-weight:700}
.ph-on{border-color:transparent}
.ph-rows{display:flex;flex-direction:column;justify-content:space-around;gap:4mm}
.ph-rows li{display:flex;flex-wrap:wrap;align-items:center;gap:2mm 4mm}
.ph-target{min-width:24mm;font-weight:700;font-size:18pt}
.ph-row{display:flex;flex-wrap:wrap;gap:2mm 5mm;flex:1}
.ph-w{padding:.5mm 2.5mm;border:.35mm solid transparent;border-radius:5mm}
.ph-hit{border-color:#000}
.ph-n{display:inline-block;width:12mm;height:10mm;border:.35mm solid #000;border-radius:1.5mm;text-align:center;font-weight:700}
.ph-sen{flex-direction:column;align-items:stretch!important}
.ph-sen .ph-w{border-color:#888;border-style:dashed}
.ph-end{font-weight:700}
.ph-line{display:block;min-height:11mm;border-bottom:.35mm solid #000;font-weight:700}
.ph-line.ph-on{border-color:transparent}
.ph-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:2mm 6mm;margin:0 0 6mm;font-size:18pt;padding:3mm;border:.3mm dashed #555;border-radius:2mm}
.ph-sort{width:100%;border-collapse:collapse;font-size:18pt}
.ph-sort th,.ph-sort td{border:.3mm solid #000;height:13mm;text-align:center}
.ph-wd{flex:1;font-size:22pt;letter-spacing:.5mm}
.ph-wd u.ph-hit{text-decoration:none;border:.35mm solid #000;border-radius:5mm;padding:0 1mm}
.ph-ltr{min-width:9mm;height:10mm;font-size:16pt}
.ph-split{min-width:60mm}
.ph-wrong{font-size:17pt}
/* Decodable reading: one student page, one key page. Passage type follows the internal print standard:
   ages 5-6 about 20pt, ages 7-8 15-17pt; tasks are smaller because an adult may read them aloud. */
.phd{display:flex;flex-direction:column;gap:2.5mm;font-family:'Sheetola Print',Arial,sans-serif;font-size:14pt;line-height:1.4}
.phd p{margin:0}
.phd-kind{text-align:center;font-size:10pt;color:#444}
.phd-title{margin:0;text-align:center;font-size:18pt;line-height:1.2}
.phd-title small{display:block;font-size:9.5pt;font-weight:400;color:#444}
.phd-warm{display:flex;flex-wrap:wrap;gap:1mm 8mm;padding:1.5mm 4mm;border:.3mm dashed #555;border-radius:2mm}
.phd-warm b{font-size:10pt;margin-inline-end:1mm}
.phd-chip{display:inline-block;margin:0 2.5mm 0 0}
.phd-text{display:flex;flex-direction:column;gap:1mm;border:.3mm solid #000;border-radius:2mm;padding:2mm 4mm;font-size:20pt;line-height:1.65;word-spacing:.12em}
.phd-pn{display:inline-flex;align-items:center;justify-content:center;width:5.5mm;height:5.5mm;margin-inline-end:2mm;border:.3mm solid #555;border-radius:50%;font-size:8.5pt;line-height:1;vertical-align:middle;color:#333}
.phd-q{margin:0;padding:0;padding-inline-start:7mm;display:flex;flex-direction:column;gap:2mm}
.phd-q>li{break-inside:avoid}
.phd-q>li::marker{font-size:.85em;color:#555}
.phd-ch{display:flex;flex-wrap:wrap;gap:1mm 12mm;margin-top:1mm!important;padding-inline-start:4mm;font-size:1.15em}
.phd-pair{white-space:pre}
.phd-ord{margin:1mm 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:1mm}
.phd-box{display:inline-block;width:8mm;height:6.5mm;border:.3mm solid #000;border-radius:1mm;margin-inline-end:2.5mm;vertical-align:middle}
.phd-lines i{display:block;height:10mm;border-bottom:.3mm solid #000}
.phd-sort{display:flex;gap:5mm;margin-top:1mm}
.phd-sort p{flex:1;display:flex;align-items:flex-end;gap:2mm}
.phd-sort i{flex:1;height:9mm;border-bottom:.3mm solid #000}
.phd-s1,.phd-s2{font-size:15pt}
.phd-s1 .phd-lines i,.phd-s2 .phd-lines i{height:12mm}
.phd-s3 .phd-text,.phd-s4 .phd-text{font-size:18.5pt;line-height:1.5}
.phd-s3 .phd-lines i,.phd-s4 .phd-lines i{height:10mm}
.phd-s5,.phd-s6,.phd-s7,.phd-s8{font-size:13pt}
.phd-s5 .phd-lines i,.phd-s6 .phd-lines i,.phd-s7 .phd-lines i,.phd-s8 .phd-lines i{height:9mm}
.phd-s5 .phd-q,.phd-s6 .phd-q,.phd-s7 .phd-q,.phd-s8 .phd-q{gap:1.5mm}
.phd-s5 .phd-text,.phd-s6 .phd-text{font-size:17pt;line-height:1.55}
.phd-s7 .phd-text,.phd-s8 .phd-text{font-size:16pt;line-height:1.45}
.phd-key{font-size:11.5pt;gap:3mm;line-height:1.45}
.phd-key .phd-title{font-size:15pt}
.phd-tbl{width:100%;border-collapse:collapse}
.phd-tbl th,.phd-tbl td{border:.3mm solid #000;padding:1.5mm 2mm;vertical-align:top;text-align:start}
.phd-tbl th{background:#eee}
.phd-tbl td:first-child{text-align:center;width:8mm}
.phd-tbl td:nth-child(2){width:24mm}
.phd-tbl td:last-child{width:46mm}
.phd-note{display:flex;flex-direction:column;gap:1.5mm;font-size:10.5pt}
/* US Letter is 18 mm shorter than A4: slightly tighter writing lines and spacing so the type keeps its size. */
[data-paper=letter] .phd{gap:2mm}
[data-paper=letter] .phd-lines i{height:9mm}
[data-paper=letter] .phd-s1 .phd-lines i,[data-paper=letter] .phd-s2 .phd-lines i{height:11mm}
[data-paper=letter] .phd-s5 .phd-lines i,[data-paper=letter] .phd-s6 .phd-lines i,[data-paper=letter] .phd-s7 .phd-lines i,[data-paper=letter] .phd-s8 .phd-lines i{height:8.5mm}
[data-paper=letter] .phd-text{line-height:1.45}
[data-paper=letter] .phd-q{gap:1.2mm}
/* Stages 7-8 on Letter: keep the passage at 16pt by trimming the task area, not the story. */
[data-paper=letter] .phd-s7,[data-paper=letter] .phd-s8{font-size:12.5pt;gap:1.6mm}
[data-paper=letter] .phd-s7 .phd-text,[data-paper=letter] .phd-s8 .phd-text{line-height:1.38;padding:1.5mm 4mm}
[data-paper=letter] .phd-s7 .phd-lines i,[data-paper=letter] .phd-s8 .phd-lines i{height:8mm}
