.thp-learning:not(.lm-themed){--lm-surface:var(--ds-surface);--lm-text:var(--ds-ink);--lm-heading:var(--ds-heading);--lm-accent:var(--ds-link);--lm-button:var(--ds-brand);--lm-button-text:var(--ds-on-brand);--lm-radius:8px;--lm-scale:1}
/* Scoped to Academy only. Individual keeps its existing structure and default theme. */
:is(.lm-themed,.thp-learning){background:var(--lm-surface);color:var(--lm-text);font-size:calc(1rem * var(--lm-scale));--accent:var(--lm-accent)}
:is(.lm-themed,.thp-learning) .learning-header,:is(.lm-themed,.thp-learning) .learning-sidebar,:is(.lm-themed,.thp-learning) .learning-content,:is(.lm-themed,.thp-learning) .content-detail,:is(.lm-themed,.thp-learning) .card{background:var(--lm-surface);color:var(--lm-text)}
:is(.lm-themed,.thp-learning) :is(h1,h2,h3,h4){color:var(--lm-heading)}:is(.lm-themed,.thp-learning) a{color:var(--lm-accent)}
:is(.lm-themed,.thp-learning) :is(button,.button){background:var(--lm-button);color:var(--lm-button-text);border:2px solid var(--lm-button);border-radius:var(--lm-radius)}
:is(.lm-themed,.thp-learning) :is(button,.button):is(:hover,:focus-visible){background:var(--lm-button);color:var(--lm-button-text);text-decoration:underline}
:is(.lm-themed,.thp-learning) :is(input,textarea,select){background:var(--lm-surface);color:var(--lm-text);border:1px solid var(--lm-accent)}
:is(.lm-themed,.thp-learning) :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--lm-accent);outline-offset:3px}
:is(.lm-themed,.thp-learning) .learning-header a,:is(.lm-themed,.thp-learning) .learning-curriculum a{color:var(--lm-accent);background:transparent}:is(.lm-themed,.thp-learning) .learning-curriculum a[aria-current]{border:2px solid var(--lm-accent);color:var(--lm-text);background:var(--lm-surface)}
.lm-lesson .content-body{max-width:70ch;font-size:1em;line-height:1.75}.lm-lesson img,.lm-lesson video{max-width:100%;height:auto}.lm-lesson-cover{display:block;width:100%;max-height:45vh;object-fit:contain}.lm-lesson figure{margin:1rem 0}.lm-sources{border-top:1px solid currentColor;margin-top:2rem;padding-top:1rem}.lm-sources li{margin-block:.75rem}.lm-sources p{margin-block:.25rem}
[data-learning-mode="children"] :is(button,.button,input,select){min-height:48px}[data-learning-mode="children"] :is(button,.button){padding:.7rem 1rem}[data-learning-mode="children"] .learning-content{min-width:0;overflow-wrap:anywhere}[data-learning-mode="children"] .content-body{font-size:1.125em;line-height:1.8}
.lm-progress-path{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0}.lm-progress-path span{display:grid;place-items:center;width:2.5rem;height:2.5rem;border:2px solid var(--lm-accent);border-radius:50%;font-weight:700}
.lm-child-intro{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.lm-child-intro img{object-fit:contain}.lm-divider{width:100%;height:28px;color:var(--lm-accent)}
.lm-celebrate{padding:1rem;border:2px solid var(--lm-accent);border-radius:var(--lm-radius);animation:lm-arrive .35s ease-out}.lm-calm .lm-celebrate{animation:none}.lm-calm .lm-divider{display:none}@keyframes lm-arrive{from{transform:translateY(4px);opacity:.5}to{transform:none;opacity:1}}
#lm-grownup{max-width:min(32rem,calc(100vw - 2rem));border:2px solid var(--lm-accent);border-radius:var(--lm-radius);background:var(--lm-surface);color:var(--lm-text);padding:1.5rem}#lm-grownup::backdrop{background:rgb(0 0 0/.6)}.lm-audience-courses .cp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}.lm-labels{display:flex;flex-wrap:wrap;gap:.4rem}
html.thp-high-contrast :is(.lm-themed,.thp-learning),html.thp-high-contrast [data-learning-mode]{--lm-surface:Canvas;--lm-text:CanvasText;--lm-heading:CanvasText;--lm-accent:LinkText;--lm-button:ButtonFace;--lm-button-text:ButtonText}
@media(prefers-reduced-motion:reduce){.lm-celebrate{animation:none!important}.lm-divider{display:none}}
@media(max-width:600px){:is(.lm-themed,.thp-learning) .learning-header{gap:.5rem}:is(.lm-themed,.thp-learning) .learning-header nav{display:flex;flex-wrap:wrap}:is(.lm-themed,.thp-learning) .learning-content{padding:1rem}:is(.lm-themed,.thp-learning) .content-detail{padding:0}:is(.lm-themed,.thp-learning) .learning-step-navigation{flex-wrap:wrap}:is(.lm-themed,.thp-learning) .learning-header-title{overflow-wrap:anywhere;min-width:0}}

.thp-learning :is(.content-body,.quiz-question,.learning-skip){background:var(--lm-surface);color:var(--lm-text)}.thp-learning :is(summary,summary small,.learning-progress strong,.learning-curriculum small,.learning-status){color:var(--lm-accent)}.thp-learning .learning-curriculum a:hover{background:var(--lm-surface);color:var(--lm-accent)}

.lm-themed{--ds-surface:var(--lm-surface);--ds-canvas:var(--lm-surface);--ds-ink:var(--lm-text);--ds-heading:var(--lm-heading);--ds-brand:var(--lm-button);--ds-on-brand:var(--lm-button-text);--ds-link:var(--lm-accent);--ds-line:var(--lm-accent)}
.thp-learning .eyebrow{color:var(--lm-accent)}

.lm-child-intro .lm-progress-path{flex-basis:100%;margin:0 0 .5rem}
