.hero{--hero-ink: #1d294a;--hero-accent: #4956bc;--hero-muted: #4f5d78;overflow:hidden;position:relative;isolation:isolate;color:var(--hero-ink);background:linear-gradient(110deg,#fffbf3 4%,#f7f6f5 47%,#eaf1ff);border-bottom:1px solid #dce2ec}.hero:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle,#919dba55 .9px,transparent 1.2px) 0 0/17px 17px;mask-image:linear-gradient(110deg,transparent 42%,#0007 100%)}.hero-inner{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:3%;min-height:clamp(385px,32vw,475px)}.hero-copy{position:relative;z-index:1;padding:53px 0}.hero-kicker{display:flex;align-items:center;gap:8px;font-weight:625;color:var(--hero-accent);font-size:.89rem;letter-spacing:.005em}.hero-kicker span{font-family:system-ui,sans-serif;font-size:1.55rem;color:#c66a34;line-height:1}.hero h1{color:var(--hero-ink);font-size:clamp(2.7rem,4.2vw,4.05rem);line-height:1.16;letter-spacing:-.065em;margin:17px 0}.hero h1 em{font-style:normal;color:var(--hero-accent)}.hero-period{color:#d47f41}.hero-copy p{max-width:475px;line-height:1.8;color:var(--hero-muted);font-size:1.04rem;text-wrap:pretty}.hero-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.hero-buttons a{min-height:45px;border-radius:12px}.hero-buttons .primary{background:#4356b3;border-color:#4356b3}.hero-buttons .primary:hover{background:#334497}.hero-buttons .outline-button{border-color:#c4cbd9}.hero-buttons .hero-brand{display:inline-flex;align-items:center;padding:4px 5px;color:var(--hero-muted);font-size:.88rem;text-decoration:underline;text-underline-offset:4px}.hero-art{position:relative;display:grid;place-items:center;min-width:0;isolation:isolate}.hero-art:before{content:"";position:absolute;z-index:-1;inset:6% 4% 3% 13%;background:linear-gradient(135deg,#dfeaff,#e4def9);border-radius:56% 44% 62% 38%/48% 58% 42% 52%;transform:rotate(-9deg)}.hero-art img{width:102%;height:auto;display:block;position:relative;filter:drop-shadow(0 10px 11px #24315a13)}.home-paths{padding:34px 0 38px;background:var(--bg)}.home-paths h2{font-size:clamp(1.4rem,2vw,1.85rem);margin-bottom:16px}.path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.path-card{--path-bg: #f1effb;--path-border: #ded9f1;--path-ink: #58498c;--path-icon: #e0daf7;display:flex;align-items:flex-start;gap:14px;padding:20px 18px;min-height:112px;background:var(--path-bg);border:1px solid var(--path-border);border-radius:19px;transition:transform .17s,box-shadow .17s}.path-card.peach{--path-bg: #fff4e7;--path-border: #efdfcb;--path-ink: #914e20;--path-icon: #ffdfb8}.path-card.pink{--path-bg: #fdf0f1;--path-border: #efd9dd;--path-ink: #983d57;--path-icon: #fad2d9}.path-card:hover,.subject-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px #27365d0e}.path-icon{width:45px;height:45px;flex:none;display:grid;place-items:center;border-radius:14px;color:var(--path-ink);background:var(--path-icon)}.path-card>span:last-child{display:grid;gap:3px}.path-card small{font-size:.77rem;font-weight:700;color:var(--path-ink)}.path-card strong{display:flex;gap:8px;align-items:center;font-size:1.15rem;letter-spacing:-.035em;line-height:1.42}.path-card strong svg{opacity:.65}.path-card>span>span{font-size:.87rem;color:var(--muted);line-height:1.55}[data-theme=dark] .hero{--hero-ink: #f3f2fb;--hero-accent: #bdc2ff;--hero-muted: #c2c7d7;border-color:var(--line);background:linear-gradient(120deg,#252240,#19263d 70%,#1c2a46)}[data-theme=dark] .hero-art:before{background:linear-gradient(135deg,#2c3e65,#383556)}[data-theme=dark] .hero-kicker span{color:#ffb97f}[data-theme=dark] .path-card{--path-bg: #29263d;--path-border: #403951;--path-ink: #d9c9ff;--path-icon: #413559}[data-theme=dark] .path-card.peach{--path-bg: #322a26;--path-border: #544239;--path-ink: #ffc491;--path-icon: #533d2f}[data-theme=dark] .path-card.pink{--path-bg: #342632;--path-border: #51394a;--path-ink: #ffb2c7;--path-icon: #523447}@media(max-width:900px){.path-card{padding:16px;gap:11px;flex-direction:column}.hero h1{font-size:clamp(2.2rem,4.6vw,2.9rem)}.hero-copy p{font-size:.98rem}.hero-inner{min-height:345px}}@media(max-width:650px){.hero-inner{grid-template-columns:1fr;gap:0;min-height:initial}.hero-copy{padding:29px 0 0}.hero-kicker{font-size:.78rem}.hero-kicker span{font-size:1.22rem}.hero h1{font-size:clamp(2rem,8vw,2.95rem);margin:12px 0}.hero-copy p{font-size:.94rem;line-height:1.65;max-width:440px}.hero-buttons{margin-top:17px}.hero-buttons a{min-height:40px}.hero-art{justify-self:end;width:min(80%,310px);margin:-2px 1% 8px}.hero-art img{width:100%}.home-paths{padding:25px 0}.path-grid{grid-template-columns:1fr;gap:8px}.path-card{flex-direction:row;min-height:0;padding:11px 14px;align-items:center;border-radius:14px}.path-icon{width:40px;height:40px}.path-card>span:last-child{display:block}.path-card strong{font-size:1.02rem;display:inline-flex;margin-left:7px}.path-card>span>span{display:block;font-size:.85rem}}.course-top.study-top{padding-block:16px 23px}.course-top .crumbs{margin-bottom:14px}.course-top .study-top-inner>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 14px;align-items:center}.course-top .subject-mark{align-self:center}.course-top.study-top h1{font-size:clamp(1.65rem,3vw,2.25rem);margin:0}.course-top .study-top-inner p{grid-column:2;font-size:.94rem}.course-top.study-top .course-quiz-link{margin:0;flex-shrink:0}.lesson-workspace{display:grid;grid-template-columns:clamp(170px,16vw,216px) minmax(0,1fr);align-items:start;gap:clamp(22px,3vw,46px);padding-block:36px 60px}.course-outline{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.outline-heading,.outline-toggle,.outline-group summary,.course-sources summary,.practice-heading,.practice-heading h3,.example-heading,.concept-path{display:flex;align-items:center;gap:8px}.outline-heading,.outline-toggle{padding:15px 16px;background:var(--soft);color:var(--text)}.outline-heading svg,.outline-toggle>svg:first-child,.example-heading svg,.practice-heading svg{color:var(--blue)}.outline-heading h2,.outline-toggle{font-size:1rem;font-weight:700}.outline-toggle{width:100%;border:0}.outline-toggle [data-current-label]{margin-left:auto;color:var(--blue);font-size:.85rem;text-align:right}.outline-toggle[aria-expanded=true]>svg:last-child,.outline-group[open]>summary svg,.course-sources[open]>summary svg{transform:rotate(180deg)}.outline-group{padding-inline:10px;border-top:1px solid var(--line)}.outline-group summary,.course-sources summary{justify-content:space-between;min-height:44px;cursor:pointer;list-style:none}.outline-group summary::-webkit-details-marker,.course-sources summary::-webkit-details-marker{display:none}.outline-group summary{padding:6px;font-size:.92rem;font-weight:670}.outline-group summary svg,.course-sources summary svg{color:var(--subtle)}.outline-group ul{list-style:none;margin:0 0 9px;padding:0}.outline-group a{display:block;padding:6px 10px 6px 15px;color:var(--muted);font-size:.88rem;border-radius:6px}.outline-group a:hover{background:var(--soft)}.outline-group a[aria-current]{background:var(--tint);color:var(--blue);font-weight:700;box-shadow:inset 3px 0 var(--blue)}.course-reader,.concept-note,.concept-practice{min-width:0}.concept-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,29%);gap:clamp(18px,2.5vw,36px);align-items:start}.concept-panel+.concept-panel:not([hidden]){margin-top:26px}.interactive .concept-panel+.concept-panel:not([hidden]){margin-top:0}.concept-path{flex-wrap:wrap;color:var(--blue);font-size:.83rem;font-weight:650}.concept-path span{color:var(--subtle)}.concept-note h2{margin:9px 0 16px;font-size:clamp(1.45rem,2.15vw,2rem);line-height:1.35}.concept-note>p:not(.concept-path){line-height:1.85}.concept-body{color:var(--muted)}.example-heading,.walkthrough-heading{margin:25px 0 7px;font-size:.98rem}.concept-note .example-code{margin:0}.concept-practice{padding:clamp(14px,1.5vw,21px);border:1px solid var(--line);border-radius:14px;background:var(--soft)}.practice-heading{justify-content:space-between}.practice-heading h3{font-size:.98rem}.practice-heading>span{font-size:.8rem;color:var(--muted);white-space:nowrap}.concept-practice>p{margin-top:16px;font-weight:610}.concept-practice .example-code{padding:9px 10px;margin:10px 0 0;border:1px solid var(--line);background:var(--surface);font-size:.81rem}.concept-practice .button{display:flex;justify-content:space-between;margin-top:17px;font-size:.87rem;gap:8px}.course-sources{margin-top:28px;border-top:1px solid var(--line);font-size:.9rem}.course-sources summary{justify-content:flex-start;font-weight:650}.course-sources ul{margin:0;padding-left:1.3rem}.course-sources a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}@media(max-width:859px){.concept-panel{grid-template-columns:minmax(0,1fr)}.concept-practice .button{width:fit-content}}@media(max-width:760px){.course-top .study-top-inner{align-items:flex-start;flex-direction:column;gap:12px}.course-top .study-top-inner p{grid-column:1 / -1;margin-top:5px}.lesson-workspace{grid-template-columns:minmax(0,1fr);gap:22px;padding-block:22px 36px}.course-outline{position:static;max-height:none}.interactive .outline-heading{display:none}.outline-group a{padding-block:10px}}.study-page{background:var(--bg)}.study-top{background:linear-gradient(105deg,#f4f2ff,#edf5ff 75%,#fff9ec);border-bottom:1px solid var(--line);padding:18px 0 34px}[data-theme=dark] .study-top{background:linear-gradient(110deg,#262239,#1b2d44)}.study-top .crumbs{margin-bottom:21px}.study-top-inner{display:flex;align-items:center;justify-content:space-between;gap:28px}.study-top-inner>div{max-width:740px}.study-top-inner>img{width:min(26%,235px);height:auto;flex:none}.study-top h1{font-size:clamp(2.1rem,4vw,3.4rem);margin:6px 0 9px}.study-top p,.subject-groups>section>p,.quiz-lead p{color:var(--muted);line-height:1.8}.study-top a.button,.study-top a.outline-button{margin-top:19px}.subject-groups,.study-reading{padding-block:35px 55px}.subject-groups>section+section{margin-top:35px}.subject-groups h2,.study-reading h2{font-size:clamp(1.45rem,2.2vw,1.9rem);margin:0 0 12px}.subject-groups>section>p{max-width:770px;margin-bottom:10px}.subject-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(215px,100%),1fr));gap:13px}.subject-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:19px;box-shadow:var(--shadow);transition:transform .17s,box-shadow .17s}.subject-mark{display:inline-grid;place-items:center;align-self:flex-start;min-width:43px;height:41px;padding:0 7px;border-radius:12px;font:700 1rem/1 Consolas,monospace;letter-spacing:-.035em}.subject-card h3{font-size:1.14rem;margin:12px 0 6px}.subject-card p{color:var(--muted);font-size:.92rem;line-height:1.65;margin-bottom:15px}.subject-meta,.question-count{font-size:.82rem;color:var(--blue);font-weight:640}.subject-meta{display:flex;gap:6px;align-items:center;margin-top:auto}.study-reading{max-width:800px}.subject-links,.study-return,.step-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.subject-links{margin-top:auto;padding-top:10px;border-top:1px solid var(--line);justify-content:space-between}.subject-links a,.question-feedback a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.subject-links a{font-size:.85rem;font-weight:650;padding-block:4px}.quiz-progress{margin-bottom:22px;padding:16px 20px;background:var(--soft);border:1px solid var(--line);border-radius:13px}.quiz-progress>div,.step-actions{display:flex;justify-content:space-between}.quiz-progress progress{display:block;width:100%;height:8px;margin-top:10px;accent-color:var(--accent)}.step-actions button:disabled{opacity:.5}.quiz-result{margin-bottom:24px}.question-feedback a{display:inline-block;margin-top:6px}.example-code{background:var(--soft);color:var(--text);border:1px solid var(--line);border-left:3px solid #8588ca;border-radius:9px;padding:12px 15px;max-width:100%;overflow:auto;font:.91rem/1.7 Consolas,Monaco,monospace;text-align:left;tab-size:4;white-space:pre}.example-code code{font:inherit}.quiz-block{margin:32px 0;scroll-margin-top:20px}.study-reading>.quiz-block:first-child{margin-top:0}.quiz-lead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.quiz-lead h2{margin-bottom:4px}.question-count,.question-number{background:var(--tint);border-radius:8px;padding:4px 9px;white-space:nowrap}.question{margin:18px 0;padding:12px 18px 17px;border:1px solid var(--line);border-radius:13px;min-width:0;background:var(--surface)}.question legend{font-size:1rem;max-width:97%;padding-right:5px;font-weight:650;color:var(--text);line-height:1.7}.question legend small{font-weight:600;color:var(--subtle);font-size:.8rem;margin-right:5px}.question-number{display:inline-block;border-radius:6px;font-size:.77rem;margin-right:7px;color:var(--blue)}.question .example-code{margin:0 0 12px}.choices{display:grid;gap:7px}.choice{display:flex;align-items:baseline;gap:10px;padding:9px 12px;color:var(--text);background:var(--soft);border:1px solid var(--line);border-radius:8px;cursor:pointer}.choice input{accent-color:var(--accent);margin:0;flex:none}.choice:has(input:checked){border-color:var(--blue);background:var(--tint)}.choice.is-answer{border-color:#5b9a76;background:color-mix(in srgb,#54b778 12%,var(--surface))}.choice:has(input:disabled){cursor:default}.question-feedback,.retry-note{margin-top:12px;color:var(--muted);font-size:.94rem}.question-feedback strong{color:var(--blue)}.question-feedback p{margin:4px 0}.quiz-result{padding:18px 20px;background:var(--tint);border-radius:14px}.quiz-result h3{margin:0 0 10px}.quiz-result output{color:var(--blue);padding-left:4px}.quiz-actions{display:flex;flex-wrap:wrap;gap:8px}.quiz-credit{display:block;margin-top:10px;color:var(--subtle)}@media(max-width:600px){.study-top-inner>img{display:none}.study-top{padding-bottom:24px}.subject-groups,.study-reading{padding-block:25px 36px}.subject-grid{grid-template-columns:1fr}.subject-card{padding:15px}.quiz-lead{align-items:flex-start}.question{padding:11px}.quiz-actions>*{flex:1}.subject-card p{margin-bottom:9px}}
