/* Teacher-only openers: legible on a phone and from the back of a classroom. */
.lo-entry{margin-block:12px}.lo-wrap{max-width:1100px;margin-inline:auto}.lo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:12px}.lo-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lo-filter label,.lo-card h3{font-weight:800}.lo-card{display:flex;flex-direction:column}.lo-card .btn{align-self:flex-start;margin-top:auto}.lo-card p{line-height:1.65}.lo-show{margin-top:12px}.lo-show{border:2px solid #dcd1f8;border-radius:24px;padding:clamp(16px,5vw,54px);max-width:1000px;margin-inline:auto;background:linear-gradient(148deg,#f5f1ff,#fff 67%);min-height:min(72vh,640px)}.lo-show h1{font-size:clamp(1.65rem,4.3vw,3.6rem);color:#452b83;line-height:1.2;margin:0 0 .5em}.lo-eyebrow{color:#59409a;font-weight:800;margin-block:0 .7em}.lo-prompt{font-size:clamp(1.25rem,3.8vw,3.2rem);line-height:1.7;margin-block:.45em 1em;font-weight:700}.lo-math{display:inline-block;font-variant-numeric:tabular-nums;white-space:nowrap}.lo-fr{display:inline-grid;grid-template-rows:auto auto;text-align:center;vertical-align:middle;line-height:1.03;margin-inline:.14em}.lo-fr span:first-child{border-bottom:1.5px solid currentColor;padding:0 .14em .08em}.lo-fr span:last-child{padding:.08em .14em 0}.lo-solution{background:#fff;border:1px solid #dad2e9;border-radius:13px;padding:.2em .85em;color:#271b43}.lo-solution summary{cursor:pointer;padding-block:.58em;font-weight:750;min-height:44px}.lo-solution p{line-height:1.55;margin-block:.3em .8em;font-size:clamp(1rem,2.15vw,1.6rem)}.lo-actions{margin-top:1.3em;gap:.6em;flex-wrap:wrap}.lo-card .btn,.lo-show .btn,.lo-filter select{min-height:44px}.lo-wrap :focus-visible,.lo-show :focus-visible{outline:3px solid #5e3eb5;outline-offset:2px}

.lo-skill{font-size:.84rem;color:#4c347b;margin:0 0 .4rem;font-weight:740}.lo-answer{margin-block:0 .65rem;border:1px solid #cbbfe8;border-radius:13px;background:#faf8ff;padding:.18em .85em}.lo-answer summary{cursor:pointer;font-weight:750;padding-block:.6em;min-height:44px}.lo-form fieldset{border:0;margin:0;padding:0;min-width:0}.lo-form legend{margin:0 0 .6em;font-weight:670}.lo-input{display:inline-flex;flex-direction:column;margin:0 .25em .45em;gap:.24em;max-width:9em}.lo-input input{width:100%}.lo-options{display:flex;gap:.5rem;flex-wrap:wrap}.lo-option{display:flex;align-items:center;gap:.3rem;border:1px solid #cbbfe8;background:#fff;border-radius:12px;padding:.35em .7em;min-height:44px}.lo-result{margin:.5em 0 .3em;font-weight:680;color:#65480e}.lo-result[data-result=right]{color:#175b45}.lo-result:empty{display:none}#lo-sheet{display:none}
@media print{
  @page loA4{size:A4 portrait;margin:16mm}
  html:has(#lo-sheet),html:has(#lo-sheet) body{background:white!important;color:#000!important;margin:0!important;padding:0!important;min-height:0!important}
  body:has(#lo-sheet)>:not(#app),#app:has(#lo-sheet)>:not(#lo-sheet){display:none!important}
  #app:has(#lo-sheet){width:100%!important;max-width:none!important;padding:0!important;margin:0!important;min-height:0!important}
  #lo-sheet{page:loA4;display:block!important;color:#000;background:#fff;line-height:1.5;break-inside:avoid;font-size:13pt}
  #lo-sheet header{border-bottom:1pt solid #000;margin-bottom:10mm;display:flex;justify-content:space-between;align-items:center}#lo-sheet header p{margin:0 0 3mm}#lo-sheet h1{font-size:21pt;margin:0 0 4mm}#lo-sheet h2{font-size:14pt;margin:13mm 0 2mm}.lo-sheet-question{font-size:16pt;margin:0}.lo-lines i{display:block;height:13mm;border-bottom:.6pt solid #000}
}

.lo-board{display:grid;gap:.55rem;margin-block:.45rem;min-width:0}.lo-slots,.lo-palette{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}.lo-slots{padding:.45rem;border:1px solid #bcb0df;border-radius:10px;background:white;min-height:54px}.lo-empty{color:#625377;padding-inline:.2em}.lo-token-slot{display:inline-grid;place-items:center;min-width:2.1em;padding:.18em;font-weight:800;font-size:1.16em;color:#3a2574}.lo-palette .lo-token{min-width:44px;justify-content:center}.lo-token:disabled{opacity:.46;cursor:default}.lo-undo{justify-self:start}.lo-paper-bank{margin-top:7mm}.lo-paper-bank p{margin:0}.lo-paper-bank ul{margin-block:.25em 0;list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.5em 1.25em}.lo-paper-bank li{white-space:nowrap}@media(max-width:420px){.lo-prompt .lo-math{white-space:normal}}@media print{#lo-sheet .lo-paper-bank h2{margin-top:4mm}}
.lo-display-bank{display:flex;justify-content:center;flex-wrap:wrap;gap:.4em;padding-block:0 .85em;font-size:clamp(1.1rem,2.65vw,2.25rem)}.lo-display-bank>span{border:1px solid #cfc3ea;border-radius:9px;padding:.18em .55em;background:#fff}.lo-show:has(.lo-answer[open]) .lo-display-bank{display:none}

.lo-why{display:grid;gap:.35em;margin-block:.65em;font-weight:700}.lo-why textarea{width:100%;border:1px solid #ab9ccd;background:#fff;border-radius:9px;padding:.65em;min-height:58px;resize:vertical;color:#261f39;font:inherit}.lo-reasons{padding-inline-start:1.35em;line-height:1.6}.lo-reasons li+li{margin-top:.45em}.lo-result[data-result=discuss]{border-inline-start:3px solid #7452b9;padding:.3em .65em;color:#34255a}
@media print{#lo-sheet .lo-paper-discuss ul{direction:ltr;justify-content:center;gap:6mm}#lo-sheet .lo-paper-discuss li{display:grid;place-items:center;padding:3mm;min-width:20mm;min-height:16mm;border:.6pt solid #555;border-radius:2mm;font-size:19pt}}

.lo-feature{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(12px,2.4vw,30px);align-items:center;margin-block:0 16px;padding:clamp(15px,3.3vw,36px);border-radius:24px;border:1px solid #4e367b;color:#fff;background:linear-gradient(145deg,#43246e,#59328b 55%,#563384);overflow:hidden;box-shadow:0 10px 23px #43246e33}.lo-feature-mark{display:grid;place-items:center;width:clamp(47px,7vw,89px);aspect-ratio:1;color:#301953;background:#ffe6a6;border-radius:24%;font-size:clamp(2rem,5vw,4.3rem);font-weight:900;transform:rotate(-5deg)}.lo-feature h2{font-size:clamp(1.75rem,4.2vw,3.35rem);line-height:1.13;letter-spacing:normal;margin:.12em 0 .25em;color:#fff}.lo-feature p{margin:0 0 .56em;color:#fbf7ff;line-height:1.55}.lo-feature p.lo-feature-kicker{font-size:.85rem;font-weight:800;color:#ffefad;margin:0}.lo-feature-stats{display:inline-block;padding:.3em .65em;border:1px solid #ffffff50;border-radius:9px;background:#ffffff16;color:#fff;font-weight:700;font-size:.85rem}.lo-feature-cta{display:inline-flex;align-items:center;justify-content:center;gap:.55em;min-height:47px;padding:.62em .87em;border-radius:11px;background:#ffecb9;color:#362058!important;font-weight:850;text-decoration:none;text-align:center}.lo-feature-cta:focus-visible{outline:3px solid white;outline-offset:3px}@media(max-width:620px){.lo-feature{grid-template-columns:auto minmax(0,1fr)}.lo-feature-cta{grid-column:1/-1}.lo-feature-mark{align-self:start;margin-top:5px}}

/* Designed classroom slides. Quiet paper surface for every question; no answer information in the art. */
.lo-show .lo-scene-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(165px,27%);grid-template-areas:"copy art";align-items:stretch;gap:12px;padding:12px;background:#29234b;background-image:radial-gradient(circle at 2px 2px,#776693 1px,transparent 1.5px);background-size:24px 24px;border-radius:19px;margin:0 0 16px}.lo-show .lo-scene-copy{grid-area:copy;background:#fff9ed;border-radius:12px;padding:clamp(14px,2.15vw,28px);min-width:0;color:#251e42}.lo-show .lo-scene-copy h1{margin:5px 0 12px;color:#211a3d}.lo-show .lo-scene-copy .lo-eyebrow{color:#5d477e;margin:0}.lo-show .lo-scene-copy .lo-prompt{margin:0;color:#2d254c}.lo-scene{grid-area:art;min-height:135px;display:grid;place-items:center;background:radial-gradient(ellipse at 52% 48%,var(--lo-shade),var(--lo-base) 73%);border-radius:12px;overflow:hidden}.lo-scene svg{display:block;width:100%;max-width:330px;height:auto}.lo-show .lo-scene-hero:has(.lo-scene-copy:only-child){grid-template-columns:1fr;grid-template-areas:"copy"}
@media(max-width:600px){.lo-show .lo-scene-hero{grid-template-columns:1fr;grid-template-areas:"art" "copy";gap:7px;padding:8px;margin-bottom:10px}.lo-scene{min-height:88px;height:88px}.lo-scene svg{width:132px}.lo-show .lo-scene-copy{padding:12px}.lo-show .lo-scene-copy h1{margin:3px 0 8px}}
@media print{.lo-scene-hero,.lo-scene{display:none!important}}

/* Keep the entire opening question in the first screen at classroom projection widths. */
@media(min-width:601px){.lo-show .lo-scene-copy h1{font-size:clamp(2rem,3.25vw,3.25rem);line-height:1.16}.lo-show .lo-scene-copy .lo-prompt{font-size:clamp(1.45rem,2.6vw,2.4rem);line-height:1.47}.lo-show .lo-scene-hero{grid-template-columns:minmax(0,1fr) minmax(160px,27%)}}

/* Five original puzzle diagrams, separate from decorative hero art and printable without backgrounds. */
.lo-riddle{border-radius:16px;margin:0 auto 14px;padding:8px 10px;background:#faf5ee;border:1px solid #ded6ec;max-width:min(100%,560px);color:#292242}.lo-riddle-illustration{display:block;max-width:100%;width:100%;height:auto;margin-inline:auto}.lo-riddle-shapes{max-width:330px}.lo-riddle-symbols{max-width:310px}.lo-riddle-grid{max-width:285px}.lo-show:has(.lo-answer[open]) .lo-riddle-grid{display:none}.lr-grid{--lr-size:clamp(44px,10vw,56px);width:max-content;max-width:100%;margin:0 auto 8px}.lr-grid-row{display:grid;grid-template-columns:17px repeat(3,var(--lr-size));gap:6px;margin-block:6px;align-items:center;text-align:center;font-size:1.32rem;font-weight:800}.lr-grid .lr-box,.lr-grid input.lr-digit{display:block;width:var(--lr-size);height:var(--lr-size);min-width:0;border:1.8px solid #51467e;border-radius:8px;background:#fffef9;padding:0;text-align:center;font-size:1.55rem}.lr-grid .lr-underline{border-bottom:2px solid #292242;margin-block-start:8px}.lr-code-entry{display:flex;flex-wrap:wrap;gap:8px}.lr-code-entry .lo-input{min-width:58px;flex:1}.lr-code-entry .lo-input span{unicode-bidi:plaintext}.lr-clues{width:100%;border-collapse:collapse;font-size:clamp(1rem,1.8vw,1.24rem);line-height:1.4}.lr-clues caption{font-weight:800;padding:.28em}.lr-clues th,.lr-clues td{text-align:start;border-bottom:1px solid #dfd5ea;padding:.32em .52em}.lr-clues thead th{background:#eee7fb}.lr-clues tbody th{font-variant-numeric:tabular-nums;white-space:nowrap;color:#43257a}.lo-riddle-symbols+.lo-answer{margin-top:10px}
@media print{#lo-sheet .lo-riddle{background:#fff!important;border:1px solid #333;margin:4mm auto;padding:2mm;break-inside:avoid;max-width:105mm}#lo-sheet .lo-riddle-illustration{max-height:65mm;filter:grayscale(1)}#lo-sheet .lo-riddle-grid{max-width:54mm}#lo-sheet .lr-grid{--lr-size:11mm}#lo-sheet .lr-clues th,#lo-sheet .lr-clues td{background:#fff;color:#111;border-color:#888;padding:.25em .5em}#lo-sheet .lo-riddle~.lo-lines i{height:8mm}#lo-sheet .lo-riddle~h2{margin:6mm 0 2mm}}

/* Model of the given quantities, separate from the answer and solution. */
.lom{min-width:0;margin:0;background:#fbf7ff;color:#2e254b;padding:.6em .76em .78em;border-radius:12px;border:1px solid #d3c7e8;display:grid;gap:.48em;align-content:center}.lom figcaption{font-size:clamp(1rem,1.58vw,1.22rem);font-weight:850}.lom-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.lom-body{min-width:0;display:grid;gap:8px;align-items:center}.lom svg{display:block;width:100%;height:auto;max-height:120px;margin:auto;direction:ltr;font-family:system-ui,sans-serif;overflow:visible}.lom-row,.lom-wire{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;min-width:0}.lom-row>.lom-tile{flex:1 1 85px}.lom-tile{background:#fff;border:1px solid #cfc5e1;border-radius:9px;color:#2e2247;display:grid;justify-items:center;align-content:center;gap:5px;padding:5px 7px;min-width:0;max-width:100%}.lom-tile>.lom-svg{max-height:102px}.lom-label{font-size:clamp(.92rem,1.44vw,1.17rem);text-align:center;font-weight:760}.lom-chip,.lom-slots i{padding:.13em .38em;background:#fff;border:1px solid #746496;border-radius:6px;font-size:clamp(1rem,1.68vw,1.35rem);font-weight:820;line-height:1.35}.lom-arrow,.lom-step-gap{font-size:clamp(1rem,1.92vw,1.65rem);font-weight:850;padding-inline:1px}.lom-minishape{display:block;width:clamp(17px,3vw,33px)}.lom-minishape svg{width:100%;height:auto}.lom-slots{display:flex;justify-content:center;gap:4px}.lom-slots i{color:#544a66;font-style:normal;border-style:dashed}.lom-place{border-collapse:collapse;width:100%;max-width:375px;table-layout:fixed;margin:auto;background:#fff}.lom-place th,.lom-place td{padding:.2em .16em;text-align:center;border:1px solid #b3a7c8;overflow-wrap:anywhere}.lom-place td{font-variant-numeric:tabular-nums;font-weight:850;font-size:1.22rem}.lom[data-model="5-2"] .lom-place :is(th,td):nth-child(2){border-left:3px solid #635981}.lom[data-model="5-8"] .lom-tile>svg{max-height:105px}.lom[data-model="1-1"] .lom-body{min-height:110px}.lom[data-model="1-2"] .lom-row>.lom-tile{flex-basis:118px}.lom[data-model="2-1"] .lom-tile>svg{max-height:68px}.lom[data-model="6-1"] .lom-body>.lom-tile>.lom-svg{width:42px;max-height:38px}.lom[data-model="1-6"] .lom-tile>svg{max-height:44px}.lom[data-model="1-6"] .lom-row>.lom-tile{flex-basis:46px}
.lo-show .lo-scene-hero.lo-has-model{grid-template-columns:minmax(0,1.07fr) minmax(0,1fr);grid-template-areas:"copy model"}.lo-has-model>.lom{grid-area:model}.lo-has-model .lo-scene{float:inline-end;width:clamp(59px,7.2vw,104px);height:auto;min-height:0;aspect-ratio:1;margin-inline-start:.55em;margin-block-end:.15em;border:1px solid #dccde5}.lo-has-model .lo-scene svg{width:100%}
@media(max-width:690px){.lo-show .lo-scene-hero.lo-has-model{grid-template-columns:1fr;grid-template-areas:"copy" "model"}.lo-has-model .lo-scene{width:57px}.lom{padding:.52em}.lom-row>.lom-tile{flex-basis:64px}.lom-tile{padding:4px 5px}.lom svg{max-height:95px}.lom-wire .lom-chip{padding-inline:.27em}.lom-minishape{width:21px}.lom-wire:has(.lom-minishape){gap:2px}}
@media print{#lo-sheet .lom{padding:2mm 3mm;margin:3mm 0;background:#fff;color:#171717;border:1px solid #444;break-inside:avoid;filter:grayscale(1);print-color-adjust:exact;-webkit-print-color-adjust:exact}#lo-sheet .lom figcaption{font-size:11pt}#lo-sheet .lom .lom-svg{max-height:27mm}#lo-sheet .lom .lom-tile{border-color:#777}#lo-sheet .lom .lom-label{font-size:10pt}#lo-sheet .lom .lom-chip,#lo-sheet .lom .lom-slots i{font-size:10pt}#lo-sheet .lom .lom-body{min-height:0}#lo-sheet .lom~.lo-lines i{height:8mm}#lo-sheet .lom~h2{margin:4mm 0 2mm}}

/* Keep both data and question within the classroom frame; the decorative badge never takes a grid column. */
@media(min-width:691px){.lo-show .lo-has-model .lo-scene-copy{padding:18px}.lo-show .lo-has-model .lo-scene-copy .lo-prompt{font-size:clamp(1.25rem,2.12vw,2rem);line-height:1.36}.lo-show .lo-has-model .lo-scene-copy h1{font-size:clamp(1.8rem,3.01vw,2.65rem);margin-bottom:.22em}}

@media screen and (min-width:950px){#app:has(>.lo-show>.lo-has-model){max-width:1100px}}
.lom[data-model="4-2"] .lom-wire .lom-tile{min-width:42px}.lom[data-model="4-2"] .lom-wire .lom-tile>.lom-svg{width:33px;height:31px}.lo-has-model #lo-show-h:focus{outline:none}

@media screen{.lo-print-controls{padding:16px 18px;margin-bottom:12px;color:#29213a;background:#f7f2fe;border:1px solid #cdbfe4;border-radius:14px}.lo-print-controls h1{margin:0;font-size:clamp(1.15rem,3vw,1.57rem)}.lo-print-controls p{margin:.6em 0 0}.lo-print-controls .actions{margin-top:.7em}.lo-print-controls .btn{min-height:44px}.lo-print-controls a{display:inline-grid;place-items:center;text-decoration:none}#lo-sheet.lo-print-preview{display:block;border:1px solid #9b93a2;border-radius:11px;background:#fff;color:#161417;padding:clamp(14px,3vw,35px);box-shadow:0 4px 12px #35274d20;margin:auto;max-width:780px}#lo-sheet.lo-print-preview header{display:flex;align-items:center;justify-content:space-between;gap:.8em;border-bottom:1px solid #444}#lo-sheet.lo-print-preview .lom,#lo-sheet.lo-print-preview .lo-riddle{filter:grayscale(1)}#lo-sheet.lo-print-preview .lo-lines i{display:block;height:35px;border-bottom:1px solid #777}}
