/* Arabic spelling rules: word cards in Naskh, choice chips, write-in boxes, sort table. */
.ar-rules{font-family:'Sheetola Naskh','Noto Naskh Arabic',serif;font-size:14pt}
.ar-rules li{align-items:center}
.ar-card{display:flex;flex-direction:column;align-items:center;gap:2mm;width:100%;border:.3mm solid #000;border-radius:2mm;padding:2mm 1mm 3mm}
.ar-word{display:flex;align-items:center;font-size:28pt;line-height:1.6}
.ar-gap{display:inline-flex;align-items:center;justify-content:center;min-width:11mm;height:13mm;margin:0 1mm;border:.3mm dashed #555;font-size:26pt;line-height:1}
.ar-opts{display:flex;flex-wrap:wrap;justify-content:center;gap:1.5mm 3mm;font-size:16pt}
.ar-opt{padding:0 2mm;border:.35mm solid transparent;border-radius:3mm}
.ar-on{border-color:#000}
.ar-box{display:flex;align-items:center;justify-content:center;width:18mm;height:16mm;border:.3mm dashed #555;font-size:24pt;line-height:1}
.ar-wide{width:40mm}
.ar-name{font-size:13pt;font-weight:700}
.ar-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:2mm 6mm;margin:0 0 5mm;font-size:20pt;line-height:1.5}
.ar-sort{width:100%;border-collapse:collapse;font-size:20pt}
.ar-sort th,.ar-sort td{border:.3mm solid #000;height:12mm;text-align:center;width:50%}
.ar-lines{list-style:arabic-indic;margin:0;padding:0 8mm 0 0}
.ar-lines li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2mm 6mm;padding:2.5mm 0;border-bottom:.2mm dotted #999;break-inside:avoid}
.ar-sent{display:flex;flex-wrap:wrap;align-items:center;gap:0 2mm;font-size:20pt;line-height:1.7}
.ar-gap-w{min-width:18mm;height:11mm;font-size:18pt}
.ar-lines .ar-opts{font-size:16pt}
.ar-lines .ar-box{height:12mm;font-size:18pt}
.ar-parts{flex-direction:column;align-items:stretch!important}
.ar-slots{display:flex;flex-wrap:wrap;gap:2mm 5mm}
.ar-slot{display:flex;align-items:center;gap:2mm}
.ar-lab{font-size:12pt;font-weight:700}
.ar-parts .ar-box{width:34mm}
.ar-cue{font-size:16pt;color:#444}
.ar-word-in{white-space:nowrap}
.ar-word-in .ar-gap{min-width:9mm;height:10mm;font-size:18pt;margin:0 .5mm 0 0}
.ar-lines .ar-name{font-size:13pt;font-weight:400;color:#333}
.ar-card .ar-name{font-size:16pt;text-align:center}
/* 16 pt choices in a word card: up to three stacked rows, kept tight so twelve cards fit Letter paper. */
.ar-card .ar-opts{gap:0 3mm;line-height:1.4}
.ws-grid.ar-rules{row-gap:4mm}
/* Spelling in context: a short text with gaps or planted mistakes, a rule bank, answer tables and the dictation pages.
   Nothing here prints under 12.5pt, and writing lines are 9mm apart or more. */
.sp{display:flex;flex-direction:column;gap:2.5mm;padding-top:1mm;font-size:13pt;line-height:1.55}
.sp p,.sp ol,.sp table{margin:0}
.sp-ui[lang="en"]{font-family:var(--font)}
.sp-note{font-size:13pt;line-height:1.5}
.sp-bank{display:flex;flex-wrap:wrap;gap:.5mm 5mm;padding:1.2mm 3mm;border:.3mm solid #000;border-radius:2mm;font-size:13pt}
.sp-title{font-size:17pt;font-weight:700;line-height:1.3;text-align:center}
.sp-text{padding:0;font-size:22pt;line-height:2.05}
.sp-s2 .sp-text{font-size:18pt;line-height:2}
.sp-s3 .sp-text{font-size:17pt;line-height:2}
ol.sp-text{list-style:arabic-indic;padding-inline-start:9mm}
.sp-text li{display:list-item}
.sp-text li::marker{font-size:13pt;font-weight:700}
.sp-w{white-space:nowrap}
.sp-n{margin:0 .4mm;font-size:12.5pt;font-weight:700;line-height:1;vertical-align:super}
.sp .ar-word-in .ar-gap{min-width:8mm;height:9.5mm;margin:0 .4mm;font-size:17pt;vertical-align:-2.2mm}
.sp-pick{margin:0 .6mm;font-size:20pt}
.sp-s2 .sp-pick{font-size:17pt}
.sp-pick::before{content:'('}
.sp-pick::after{content:')'}
.sp-pick .ar-opt{padding:0 1.3mm}
.sp-err{font-weight:700;text-decoration:underline;text-decoration-thickness:.5mm;text-underline-offset:1.6mm}
.sp-u{text-decoration:underline;text-decoration-thickness:.4mm;text-underline-offset:1.6mm}
.sp-brk{font-weight:700;color:#444}
.sp-blank{display:inline-block;border-bottom:.3mm solid #000}
.sp-long{flex:1;min-width:26mm;height:9mm}
.sp-box{display:inline-flex;align-items:center;justify-content:center;flex:none;width:10mm;height:9mm;border:.3mm solid #000;font-size:14pt;line-height:1}
.sp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5mm 7mm}
.sp-cell{display:flex;align-items:flex-end;gap:2mm;min-height:11mm}
.sp-s1 .sp-cell{min-height:14mm}
.sp-num{flex:none;min-width:5mm;font-size:13pt;font-weight:700;line-height:1.2}
.sp-table{width:100%;border-collapse:collapse;font-size:13pt;line-height:1.4}
.sp-table th,.sp-table td{height:10mm;padding:.6mm 2mm;border:.3mm solid #000;text-align:center}
.sp-table th{height:8mm;font-size:13pt}
.sp-table th:first-child,.sp-table td:first-child{width:9mm;font-weight:700}
.sp-table td.sp-big{width:38mm;font-size:17pt;line-height:1.3}
.sp-table td.sp-why{font-size:12.5pt;text-align:start}
.sp-wide:not(.sp-keytab) td{height:14mm}
.sp-table:not(.sp-keytab):not(.sp-wide) td.sp-why{width:32mm}
.sp-keytab td{height:auto;padding:.2mm 2mm;line-height:1.3}
.sp-key .sp-text{font-size:18pt;line-height:1.7}
.sp-key.sp-s2 .sp-text{font-size:14pt;line-height:1.55}
.sp-key.sp-s3 .sp-text{font-size:13.5pt;line-height:1.5}
.sp-key ol.sp-text li{padding:0}
.sp-keytab td.sp-big{width:32mm;font-size:15pt}
.sp-keynote{font-size:12.5pt;line-height:1.5}
.sp-one li{padding:0 0 3mm}
.sp-line{display:block}
.sp-slots{display:flex;flex-wrap:wrap;align-items:flex-end;gap:1mm 3mm;margin:0 0 1.5mm;font-size:13pt;line-height:1.4}
.sp-slots .sp-long{flex:none;width:48mm}
.sp-lab{font-weight:700}
.sp-fill{font-size:15pt}
.sp-slots .sp-why{flex-basis:100%;font-size:12.5pt}
.sp-adult{padding:1.2mm 3mm;border:.3mm solid #000;border-radius:2mm;font-size:13pt;font-weight:700}
.sp-steps{margin:0;padding-inline-start:7mm;font-size:13pt;line-height:1.45}
.sp-steps li{display:list-item}
.sp-steps[lang="ar"]{list-style:arabic-indic}
.sp.sp-key .sp-script{padding:.5mm 3mm;border-inline-start:1mm solid #000;font-size:15pt;line-height:1.7}
.sp.sp-key:is(.sp-s2,.sp-s3) .sp-script{font-size:14pt;line-height:1.5}
.sp-key .sp-steps,.sp-key .sp-adult,.sp-key .sp-words{font-size:12.5pt;line-height:1.4}
.sp-key .sp-words b{font-size:14pt}
.sp-key .sp-keynote{line-height:1.32}
.sp-key .sp-words{gap:0 5mm}
.sp-key .sp-steps{line-height:1.32}
.sp-sub{font-size:14pt;font-weight:700}
.sp-words{display:flex;flex-wrap:wrap;gap:.5mm 6mm;font-size:13pt}
.sp-words b{font-size:15pt}
.sp-copy{display:grid;grid-template-columns:repeat(3,1fr);gap:1mm 7mm}
.sp-copy .sp-cell{min-height:10.5mm}
.sp-copy .sp-big{flex:none;font-size:16pt;line-height:1.3}
.sp-lines i{display:block;height:12mm;border-bottom:.3mm solid #000}
.sp-s2 .sp-lines i{height:10.5mm}
.sp-s3 .sp-lines i{height:9.5mm}
.sp-redo{display:grid;grid-template-columns:repeat(3,1fr);gap:0 8mm}
.sp-redo .sp-long{height:10mm}
.sp-score{font-weight:700}
.sp-s1:not(.sp-key) :is(.sp-note,.sp-bank,.sp-table,.sp-table th,.sp-slots,.sp-slots .sp-why,.sp-table td.sp-why,.sp-words,.sp-num,.sp-sub,.sp-fill){font-size:16pt}
.sp-s1:not(.sp-key) .sp-text li::marker{font-size:16pt}
.sp-wide:not(.sp-keytab) td.sp-big{width:31mm}
.sp.sp-key{gap:1.6mm}
.sp-cases span{font-family:'Sheetola Naskh',serif;font-size:13pt}
