/* Scoped editorial component; token fallbacks match editorial-learning-DESIGN.md. */
.te-editorial-learning {
 --tel-ink:var(--ce-ink,#151923); --tel-muted:var(--ce-muted,#5F6878);
 --tel-surface:var(--ce-surface,#F5F7FB); --tel-paper:var(--ce-paper,#FFF9EE);
 --tel-white:var(--ce-elevated,#FFFFFF); --tel-border:var(--ce-border,#E4E8EF);
 --tel-blue:var(--ce-blue,#2563EB); --tel-hover:var(--ce-blue-hover,#1D4ED8);
 --tel-wash:var(--ce-blue-wash,#EAF1FF); --tel-error-wash:var(--ce-error-wash,#FFF3F1);
 --tel-radius:var(--ce-radius-md,16px); --tel-control-radius:var(--ce-radius-sm,10px);
 max-inline-size:52rem; margin:32px auto; padding:24px; color:var(--tel-ink);
 background:var(--tel-white); border:1px solid var(--tel-border); border-radius:var(--tel-radius);
 box-shadow:var(--ce-shadow-raised,0 12px 28px rgb(21 25 35 / 7%));
 font:400 1rem/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 overflow-wrap:anywhere;
}
.te-editorial-learning *, .te-editorial-learning *::before, .te-editorial-learning *::after {box-sizing:border-box;}
.te-editorial-learning [hidden] {display:none!important;}
.te-editorial-learning h2 {font-size:1.875rem;line-height:1.2;margin:0 0 16px;font-weight:700;}
.te-editorial-learning h3 {font-size:1.25rem;line-height:1.3;margin:0 0 12px;font-weight:650;}
.te-editorial-learning p {margin:12px 0;}
.te-editorial-learning .te-learning-grammar {padding:24px;margin-block-end:32px;border-radius:var(--tel-radius);background:var(--tel-paper);}
.te-editorial-learning ul {padding-inline-start:24px;margin:12px 0 0;}
.te-editorial-learning .te-learning-local,.te-editorial-learning [data-previous] {font-size:.875rem;color:var(--tel-muted);}
.te-editorial-learning fieldset {min-inline-size:0;margin:24px 0;padding:24px 0;border:0;border-block-end:1px solid var(--tel-border);}
.te-editorial-learning legend {float:none;inline-size:100%;font-size:1.125rem;font-weight:650;padding:0 0 12px;line-height:1.6;}
.te-editorial-learning label {font-size:1rem;color:var(--tel-ink);}
.te-editorial-learning .te-learning-option {display:flex;align-items:center;gap:12px;min-block-size:44px;padding:8px 12px;margin-block:8px;cursor:pointer;border-radius:var(--tel-control-radius);background:var(--tel-surface);}
.te-editorial-learning .te-learning-option:has(input:checked) {background:var(--tel-wash);}
.te-editorial-learning input[type=radio] {appearance:auto;inline-size:20px;block-size:20px;flex:none;accent-color:var(--tel-blue);margin:0;}
.te-editorial-learning input[type=text],.te-editorial-learning select {display:block;inline-size:100%;max-inline-size:100%;min-inline-size:0;min-block-size:44px;padding:8px 12px;margin-block:8px 16px;color:var(--tel-ink);background:var(--tel-white);border:1px solid var(--tel-muted);border-radius:var(--tel-control-radius);font:inherit;}
.te-editorial-learning .te-learning-pair {display:block;margin-block:12px;}
.te-editorial-learning button {min-block-size:44px;max-inline-size:100%;padding:12px 24px;border:1px solid transparent;border-radius:var(--tel-control-radius);font:650 1rem/1.5 system-ui,sans-serif;color:var(--tel-white);background:var(--tel-blue);cursor:pointer;white-space:normal;transition:transform 180ms ease-out,opacity 180ms ease-out;}
.te-editorial-learning button:hover:not(:disabled) {background:var(--tel-hover);}
.te-editorial-learning button:active:not(:disabled) {transform:scale(.98);}
.te-editorial-learning button:disabled {background:var(--tel-surface);color:var(--tel-muted);border-color:var(--tel-border);cursor:default;}
.te-editorial-learning :is(button,input,select):focus-visible {outline:3px solid var(--tel-blue);outline-offset:3px;}
.te-editorial-learning :is(input,select):disabled {color:var(--tel-ink);opacity:1;background:var(--tel-surface);}
.te-editorial-learning .te-learning-actions {display:flex;flex-wrap:wrap;gap:12px;}
.te-editorial-learning [data-feedback] {margin-block-start:16px;padding:16px;border-radius:var(--tel-control-radius);background:var(--tel-error-wash);}
.te-editorial-learning [data-state=correct] [data-feedback] {background:var(--tel-wash);}
.te-editorial-learning .te-learning-result {margin-block-start:24px;padding:24px;text-align:center;border-radius:var(--tel-radius);background:var(--tel-paper);}
.te-editorial-learning [data-score] {font-size:1.875rem;font-weight:700;}
.te-editorial-learning [data-face] {color:var(--tel-ink);overflow:visible;}
.te-editorial-learning [data-face] circle {fill:var(--tel-paper);stroke:currentColor;stroke-width:3;}
.te-editorial-learning [data-face] ellipse {fill:currentColor;}
.te-editorial-learning [data-face] path {fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;}
.te-editorial-learning [data-band="90"] [data-face] {animation:tel-fly 480ms ease-out;}
.te-editorial-learning [data-band="75"] [data-face] {animation:tel-nod 480ms ease-out;}
.te-editorial-learning [data-band="50"] [data-face] {animation:tel-grow 480ms ease-out;}
.te-editorial-learning [data-band="25"] [data-face] {animation:tel-start 480ms ease-out;}
.te-editorial-learning [data-band="0"] [data-face] {animation:tel-curious 480ms ease-out;}
@keyframes tel-fly {50%{transform:translateY(-8px) rotate(-4deg);}}
@keyframes tel-nod {50%{transform:rotate(8deg);}}
@keyframes tel-grow {50%{transform:scale(1.08);}}
@keyframes tel-start {50%{transform:translateY(-4px);}}
@keyframes tel-curious {50%{transform:rotate(-8deg);}}
@keyframes tel-fade {from{opacity:.5;}to{opacity:1;}}
@media (max-width:40rem) {.te-editorial-learning {padding:16px;margin-block:24px;}.te-editorial-learning .te-learning-grammar {padding:16px;}}
@media (prefers-reduced-motion:reduce) {
 .te-editorial-learning button {transition:opacity 180ms ease-out;}
 .te-editorial-learning button:active:not(:disabled) {transform:none;}
 .te-editorial-learning [data-band] [data-face] {animation:tel-fade 180ms ease-out;}
}
