/* Learn and fix: learn-first pages (explain, worked example, guided try, practice) and find-the-mistake pages. */
.lf{display:flex;flex-direction:column;gap:3.5mm;font-size:11pt}
.lf p{margin:0}
.lf-sec{break-inside:avoid}
.lf-h{display:flex;align-items:center;gap:2mm;font-weight:800;font-size:12pt;margin:0 0 1.5mm!important}
.lf-h span{display:inline-flex;align-items:center;justify-content:center;width:6mm;height:6mm;border-radius:50%;background:#1f3a5f;color:#fff;font-size:9.5pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.lf-learnbox{display:flex;gap:4mm;align-items:center;flex-wrap:wrap;border:.4mm solid #1f3a5f;border-radius:2.5mm;padding:3mm;background:#f3f6fa;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.lf-rule{flex:1 1 90mm;margin:0;padding-inline-start:5mm;line-height:1.45}
.lf-rule li{margin-bottom:.8mm}
.lf-ex,.lf-guide{border:.3mm dashed #666;border-radius:2.5mm;padding:2.5mm 3mm;display:flex;gap:4mm;flex-wrap:wrap;align-items:flex-start}
.lf-ex .lf-q,.lf-guide .lf-q{flex:1 1 100%;font-weight:700}
.lf-steps{flex:1 1 80mm;margin:0;padding-inline-start:5mm;line-height:1.45}
.lf-guide .lf-pr{flex:1 1 100%}
.lf-pr{line-height:2;margin:.5mm 0!important}
.lf-blank{display:inline-block;min-width:14mm;border-bottom:.3mm solid #000;height:5mm;vertical-align:bottom;margin:0 1mm}
.lf-blank.lf-long{min-width:42mm}
.lf-m{unicode-bidi:isolate;white-space:nowrap}
.lf-blank.lf-full{display:block;width:100%;min-width:0;margin:0 0 1mm}
.lf-fill{color:#000;font-weight:700;border-bottom:.3mm solid #999;padding:0 1mm}
.lf-fill.lf-full{display:block;font-weight:600}
.sheet-page[dir=rtl] .lf-fill.lf-full{text-align:right}
.sheet-page[dir=ltr] .lf-fill.lf-full{text-align:left}
.lf-items{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm 5mm;margin:0;padding-inline-start:5mm}
.lf-items.lf-gaps{grid-template-columns:repeat(2,1fr)}
.lf-items.lf-wide{grid-template-columns:1fr}
.lf-items li{break-inside:avoid}
.lf-items .lf-q{margin-bottom:1mm!important}
.lf-gap{line-height:2}
.lf-box{display:inline-block;width:9mm;height:7mm;border:.3mm solid #000;border-radius:1mm;vertical-align:middle;margin:0 .5mm}
/* Column addition */
.lf-col{border-collapse:collapse;font-size:14pt;font-variant-numeric:tabular-nums;margin:0 auto 0 0}
[dir=rtl] .lf-col{margin:0 0 0 auto}
.lf-col td{width:7mm;height:7.5mm;text-align:center;padding:0}
.lf-col .lf-carry td{height:5mm;font-size:9pt;color:#555;vertical-align:bottom}
.lf-items .lf-col .lf-carry td,.lf-guide .lf-col .lf-carry td{border:.2mm dashed #aaa}
.lf-col .lf-res td{border-top:.4mm solid #000}
.lf-items .lf-col .lf-res td,.lf-guide .lf-col .lf-res td{border-bottom:.2mm solid #ccc}
/* Pictures */
.lf-blocks{display:flex;align-items:center;gap:2mm;font-size:10pt}
.lf-ten{display:grid;grid-template-columns:repeat(5,4mm);gap:.6mm;border:.3mm solid #1f3a5f;padding:1mm;border-radius:1mm}
.lf-ten i{width:4mm;height:4mm;background:#e9a23b;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.lf-rod{width:4mm;height:22mm;background:repeating-linear-gradient(#1f3a5f 0 1.8mm,#fff 1.8mm 2.2mm);print-color-adjust:exact;-webkit-print-color-adjust:exact}
.lf-blocks em{font-style:normal;font-weight:700;max-width:22mm}
.lf-bars{display:flex;flex-direction:column;gap:1.5mm;align-items:center}
.lf-bar{display:flex;border:.4mm solid #000}
.lf-bar i{width:7mm;height:7mm;border-inline-end:.3mm solid #000}
.lf-bar i:last-child{border-inline-end:0}
.lf-bar i.a{background:#e9a23b}
.lf-bar i.b{background:#9cb4d4}
.lf-bar i.a,.lf-bar i.b{print-color-adjust:exact;-webkit-print-color-adjust:exact}
.lf-fr{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1;margin:0 .4mm;font-size:.9em}
.lf-fr span:first-child{border-bottom:.25mm solid currentColor;padding:0 .4mm}
.lf-rect svg{display:block;max-width:100%;height:auto}
.lf-rect .g{stroke:#999;stroke-width:.2}
.lf-rect .o{fill:none;stroke:#000;stroke-width:.5}
.lf-rect text{font-size:3.2px;font-family:inherit}
.lf-rect small{font-size:8pt;color:#444}
.lf-tab{border-collapse:collapse;font-size:10pt}
.lf-tab th,.lf-tab td{border:.3mm solid #000;padding:1mm 2mm;text-align:center}
.lf-tab th{background:#fff;font-size:12pt}
.lf-pas{border:.3mm solid #000;border-radius:2mm;padding:2.5mm 3mm;flex:1 1 100%}
.lf-pas b{display:block;text-align:center;margin-bottom:1mm}
.lf-pas ol{margin:0;padding-inline-start:6mm;line-height:1.5}
/* Find the mistake */
.lf-mist{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2.5mm;counter-reset:m}
.lf-mist>li{border:.3mm solid #888;border-radius:2.5mm;padding:2mm 3mm;break-inside:avoid;counter-increment:m;display:grid;grid-template-columns:1fr 1fr;column-gap:5mm;align-items:start}
.lf-mist>li>.lf-who{grid-column:1/-1}
.lf-right .lf-pr{line-height:1.6}
.lf-who{font-weight:800;font-size:10.5pt;color:#1f3a5f}
.lf-who::before{content:counter(m) ". "}
.lf-work{font-size:12.5pt;padding:1mm 0}
.lf-fix .lf-col{margin-block:1mm}
.lf-why{font-size:9.5pt;color:#333}
.lf-own{border:.3mm dashed #666;border-radius:2.5mm;padding:2mm 3mm;break-inside:avoid}
.lf-space{height:16mm}
[data-kind=answers] .lf-space{height:4mm}
