.teach-lesson{max-width:660px;margin:0 auto 12px}
.teach-path{display:flex;justify-content:space-between;gap:10px;color:#5d547b;font-size:.89rem;font-weight:900;margin:0 0 9px}
.teach-path a{color:#6047bb;text-decoration:underline;text-underline-offset:3px}
.teach-card{padding:clamp(13px,4.2vw,28px)}
.teach-card h1{font-size:clamp(1.55rem,4.9vw,2.25rem);line-height:1.12;margin:10px 0 14px;outline:0}
.teach-card h2{font-size:clamp(.99rem,3.9vw,1.3rem);line-height:1.22;margin:5px 0 8px}
.radical-map{display:block;width:min(100%,405px);height:auto;margin:12px auto;background:#f4f0fc;border:1px solid #e1daf4;border-radius:15px;color:#312657;overflow:visible}
.radical-map text{fill:#372862;font-weight:850;font-size:14px}
.radical-map .root-index{font-size:16px}
.radical-map .root-number{font-size:33px;fill:#4d349f}
.root-arrow,.root-bracket{stroke:#6653b8;fill:none;stroke-width:1.55}
.root-arrow{marker-end:url(#root-arrow)}
.root-glyph{stroke:#4d349f;stroke-width:3.6;stroke-linejoin:round;stroke-linecap:round;fill:none}
.teach-caption{margin-bottom:16px;color:#4b435e}
.teach-sequence{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:900;color:#594797;font-size:.85rem}
.teach-sequence b{color:#7958c3}
.teach-demo,.teach-practice{padding:12px 13px;border-radius:13px;border:1px solid #e5dff2;background:#f8f5fd}
.teach-practice{margin-top:15px;background:#fff; border-color:#e9e1f0}
.teach-mini{font-size:.73rem;font-weight:950;letter-spacing:.025em;color:#544089}
.teach-formula{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:clamp(4px,1.85vw,12px);min-height:60px;padding:5px 0 4px;color:#2e2351;font-size:clamp(1.27rem,6.9vw,2.3rem);font-weight:950;font-variant-numeric:lining-nums tabular-nums}
.teach-formula b{font-weight:800;color:#635496}
.teach-radical{display:inline-flex;align-items:center;white-space:nowrap}
.teach-radical>span:first-child{font-size:1.28em;line-height:.85;color:#5f3fbb}
.teach-radicand{position:relative;padding:4px .17em 0}
.teach-radicand::before{content:"";position:absolute;left:-.025em;right:0;top:0;border-top:2px solid #5f3fbb;transform-origin:left}
.teach-coefficient,.teach-blank{color:#533690}
.teach-replay{margin-top:7px;padding:6px 10px}
.teach-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(112px,100%),1fr));gap:6px}
.teach-option{grid-template-columns:23px minmax(0,1fr);min-height:42px;padding:6px 8px;gap:6px;font-size:.91rem}
.teach-option .option-letter{width:22px;height:22px}
.teach-practice .button{margin-top:10px}
.teach-restart{margin-top:8px}
.teach-run .worked-example .teach-radicand::before{animation:teach-overbar .88s ease-out both}
.teach-run .worked-example .changed{animation:teach-land .90s .46s both}
.teach-run .worked-example .carried{animation:teach-land .76s .2s both}
.teach-reveal{animation:teach-reveal .48s 1.34s both}
@keyframes teach-overbar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes teach-land{from{opacity:0;transform:translateY(-8px) scale(.92)}65%{opacity:1;transform:translateY(1px) scale(1.04)}to{opacity:1;transform:none}}
@keyframes teach-reveal{from{opacity:0;visibility:hidden;transform:translateY(5px)}to{opacity:1;visibility:visible;transform:none}}
@media(prefers-reduced-motion:reduce){
 .teach-run .worked-example .teach-radicand::before,.teach-run .worked-example .changed,.teach-run .worked-example .carried,.teach-reveal{animation:none}
}
.hero-lesson-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px}
.hero-lesson-actions .hero-button{margin:0}
.hero-practice{border-color:#ffffff58;background:#ffffff12;color:#ffffff;font-weight:950}
.hero-practice:hover{background:#ffffff22}

.teach-example-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(106px,1fr);gap:8px;align-items:center}
.teach-motion{position:relative;min-width:0}
.teach-motion .teach-formula{font-size:clamp(1rem,4.95vw,1.75rem);gap:clamp(3px,1vw,8px)}
.teach-segment{display:inline-flex;align-items:center;gap:.12em;white-space:nowrap}
.teach-segment b{font-size:.8em}
.teach-why{padding:6px 0 6px 8px;border-left:1px solid #baaae5;color:#4f416d;font-size:clamp(.72rem,2.8vw,.88rem);line-height:1.34;font-weight:750}
.teach-ghost{position:absolute;z-index:2;pointer-events:none;line-height:1;font-variant-numeric:tabular-nums;color:#5433aa;font-size:clamp(1rem,4.95vw,1.75rem);font-weight:950}
.teach-flow-hidden{visibility:hidden}
.teach-run .teach-output .teach-radicand::before{animation:teach-overbar .70s .36s ease-out both}
.teach-identify{display:grid;place-items:center;padding:17px 8px 24px;margin-bottom:10px;border-radius:13px;background:#f6f2fc;color:#35255e}
.teach-identify-whole{position:relative;display:inline-flex;align-items:center;letter-spacing:-.03em;padding:8px 12px 8px 15px;font-weight:950;font-variant-numeric:tabular-nums}
.teach-identify-whole sup{position:absolute;top:7px;left:6px;font-size:1rem;letter-spacing:0}
.teach-identify-sign{font-size:2.8rem;line-height:1}
.teach-identify-number{font-size:2rem;line-height:1.18;border-top:2px solid currentColor;padding:1px 3px 0}
.is-identified{background:#e3d4ff;box-shadow:0 0 0 2px #9974e2;border-radius:4px;color:#50298a}
.teach-vocab-options{display:grid;gap:6px}
.teach-next{margin-top:10px}
.teach-correction .button{max-width:100%}
#teach-practice-heading{scroll-margin-block:128px 88px;outline:none}
.teach-naming .root-glyph{stroke-dasharray:175;animation:draw-root .94s ease-out both}
.teach-naming .root-arrow{animation:point-root .70s .66s both}
@keyframes draw-root{from{stroke-dashoffset:175}to{stroke-dashoffset:0}}
@keyframes point-root{from{opacity:.12}to{opacity:1}}
@media(max-width:355px){
  .teach-example-grid{grid-template-columns:minmax(0,1fr)}
  .teach-why{border-left:0;border-top:1px solid #d8cbea;padding:6px 1px 0}
}
@media(prefers-reduced-motion:reduce){
 .teach-run .teach-output .teach-radicand::before,.teach-naming .root-arrow,.teach-naming .root-glyph{animation:none}
}
.identify-pulse .is-identified{animation:identify-part .96s ease-out}
@keyframes identify-part{0%,100%{transform:scale(1)}48%{transform:scale(1.17)}}
@media(prefers-reduced-motion:reduce){.identify-pulse .is-identified{animation:none}}

.teach-run .teach-motion{padding-top:31px}
.teach-sequence{justify-content:center;text-align:center}
.teach-card>h1,.teach-practice>h2,.step-challenge>h3,.step-challenge>.step-cue,.math-phase>.step-equation{text-align:center}
.teach-why{display:flex;align-items:flex-start;gap:7px}
.teach-step-number{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:linear-gradient(150deg,#9a70eb,#6945bb);color:#fff;box-shadow:0 3px 0 #50368f,inset 0 1px 0 #ccb5f8;font-size:.79rem;font-weight:950;line-height:1}
.teach-flow-arrows{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;color:#6549aa;z-index:1}
.teach-flow-arrows path{stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;fill:none}
.teach-path-curve{stroke-dasharray:1;animation:path-draw .55s ease-out both}
.teach-arrowhead{animation:point-root .2s .43s both}
.teach-flow-caption{position:absolute;pointer-events:none;top:3px;left:50%;transform:translateX(-50%);white-space:nowrap;z-index:3;background:#efe6ff;color:#4a3291;border-radius:999px;padding:4px 7px;font-size:.66rem;line-height:1.15;font-weight:950}
@keyframes path-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.teach-reveal{animation-delay:3.22s;animation-duration:.96s}
.teach-run .teach-output .teach-radicand::before{animation-duration:1.4s;animation-delay:.72s}
.teach-naming .root-glyph{animation-duration:1.88s}
.teach-naming .root-arrow{animation-duration:1.40s;animation-delay:1.32s}
.identify-pulse .is-identified{animation-duration:1.92s}
@media(prefers-reduced-motion:reduce){.teach-run .teach-motion{padding-top:0}}

.teach-purpose{
  margin:0 auto 12px;max-width:39rem;text-align:left;padding:9px 11px;
  border-radius:12px;border:1px solid #e2d4fb;border-inline-start:3px solid #8958bd;
  background:#f6efff;color:#332650;font-size:.88rem;line-height:1.32;
}
.teach-purpose strong{display:block;margin-bottom:2px;color:#682ca4;font-weight:950}
