/* Word problems: story, space to work, answer line. */
.wp{flex:1;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;justify-content:space-between;counter-reset:q;gap:3mm}
.wp li{counter-increment:q;flex:1;display:flex;flex-direction:column;border:.3mm solid #999;border-radius:2mm;padding:2.5mm 3.5mm;position:relative;break-inside:avoid}
.wp li::before{content:counter(q) ")";position:absolute;inset-inline-start:1.5mm;top:2.5mm;font-size:10pt;font-weight:700}
.wp-ar li::before{content:counter(q,arabic-indic) ")"}
.wp-t{margin:0 0 0 0;padding-inline-start:6mm;font-size:14pt;line-height:1.45}
.wp-sm .wp-t{font-size:11.5pt}
/* Work space and answer line share one row, so the story keeps its size and the work space its height. */
.wp-row{flex:1;display:flex;align-items:flex-end;gap:4mm}
.wp-work{flex:1;align-self:stretch;min-height:10mm;display:flex;align-items:center;justify-content:center}
.wp-eq{direction:ltr;unicode-bidi:isolate;font-size:15pt;font-weight:700}
.wp-ans{display:flex;align-items:baseline;gap:2mm;justify-content:flex-end;font-size:14pt}
.wp-sm .wp-ans{font-size:12pt}
/* Numbers up to 20 (ages 6-8): story and answer line at 16 pt. */
.wp-lg .wp-t,.wp-lg .wp-ans{font-size:16pt}
.wp-a{display:inline-block;min-width:30mm;border-bottom:.3mm solid #000;text-align:center;font-weight:700}
.wp-a.wp-on{border:0}
