/* Course-detail experience: canonical palette, frozen curriculum, native modal focus. */
.course-dialog{width:min(860px,calc(100% - 32px));height:min(90svh,940px);max-height:94svh;padding:0;border:0;border-radius:18px;background:var(--ivory);color:var(--ink);overflow:hidden;box-shadow:0 24px 90px color-mix(in srgb,var(--night) 55%,transparent)}
.course-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.course-dialog::backdrop{background:color-mix(in srgb,var(--night) 86%,transparent)}
.course-dialog>.dialog-close{position:absolute;top:16px;right:16px;z-index:4;margin:0;padding:0;width:44px;height:44px;display:grid;place-items:center;color:var(--white);font-size:27px;line-height:1;background:color-mix(in srgb,var(--white) 8%,transparent);border-radius:50%;transition:background-color 160ms var(--out)}
.course-cover{--course-accent:var(--glow-blue);position:relative;isolation:isolate;padding:24px 36px 26px;background:var(--night);color:var(--white);overflow:hidden}
.course-dialog[data-course-id="103"] .course-cover{--course-accent:var(--orange)}
.course-cover::before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 95% 8%,color-mix(in srgb,var(--course-accent) 20%,transparent),transparent 62%),linear-gradient(110deg,var(--night),var(--navy))}
.course-cover::after{content:'';position:absolute;bottom:0;left:36px;right:36px;height:1px;background:var(--course-accent);box-shadow:0 0 8px var(--course-accent)}
.course-switcher{display:flex;align-items:center;gap:10px;margin:0 54px 22px 0}
.course-switcher button{height:44px;min-width:54px;padding:0 14px;border-radius:999px;border:1px solid transparent;color:var(--text-soft);font:700 13px/1 Montserrat,sans-serif;transition:background-color 160ms var(--out),border-color 160ms var(--out)}
.course-switcher>span{color:var(--text-quiet);font-size:13px}
.course-switcher button[aria-pressed="true"]{background:color-mix(in srgb,var(--course-accent) 13%,var(--night));border-color:var(--course-accent);color:var(--white)}
.course-number{position:absolute;right:28px;bottom:12px;font:700 clamp(100px,13vw,162px)/1 Montserrat,sans-serif;letter-spacing:-.06em;color:var(--course-accent);opacity:.1;z-index:-1;user-select:none}
.course-cover-title{max-width:590px;position:relative}
.course-cover .course-kicker{display:block;font:700 12px/1.4 Lato,sans-serif;letter-spacing:.07em;color:var(--course-accent);margin-bottom:10px}
.course-cover h2{font:700 clamp(27px,3.2vw,36px)/1.08 Montserrat,sans-serif;letter-spacing:-.025em;margin:0;color:var(--white);max-width:570px;text-wrap:balance}
.course-cover .course-meta{display:flex;gap:32px;margin:22px 0 0;padding:0;border:0}
.course-cover .course-meta>div{display:flex;gap:10px;align-items:baseline}
.course-cover .course-meta dt{font-size:12px;color:var(--text-soft)}
.course-cover .course-meta dd{margin:0;font:700 17px/1.3 Lato,sans-serif;color:var(--white);font-variant-numeric:tabular-nums}
.course-scroll{min-height:0;overflow:auto;padding:26px 36px 32px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--navy) var(--surface-soft)}
.course-scroll>#course-description{font-size:16px;line-height:1.55;max-width:72ch;color:var(--navy)}
.course-dialog .course-teaching-design{margin-top:20px;background:transparent;border-top:0;border-bottom:1px solid var(--line)}
.course-dialog .course-teaching-design summary{padding:0 0 18px;font-size:14px;line-height:1.45;min-height:44px}
.course-dialog .course-teaching-design>div{padding:0 0 18px}
.course-dialog .course-teaching-design p{font-size:15px;line-height:1.5;color:var(--navy)}
.syllabus-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:26px 0 6px}
.syllabus-heading h3{font:700 18px/1.3 Montserrat,sans-serif;letter-spacing:-.015em;color:var(--ink)}
.syllabus-count{font-size:12px;color:var(--navy)}
.course-dialog .course-lessons{list-style:none;margin:0;padding:0}
.course-dialog .course-lessons li{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;padding:16px 0 16px 22px;min-height:70px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.45}
.course-dialog .course-lessons li::before{content:'';position:absolute;left:0;top:29px;width:6px;height:6px;border-radius:50%;background:var(--navy)}
.course-dialog .course-lessons li::after{content:'';position:absolute;left:2.5px;top:43px;bottom:-15px;width:1px;background:var(--line)}
.course-dialog .course-lessons li:last-child::after{display:none}
.lesson-copy{min-width:0}
.course-dialog .lesson-id{display:block;font:400 11px/1.4 Lato,sans-serif;color:var(--text-muted);margin:0 0 4px;letter-spacing:.035em}
.lesson-name{display:block;color:var(--ink)}
.course-dialog .lesson-runtime{font:700 12px/1.3 Lato,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--navy);padding:6px 10px;border-radius:999px;background:color-mix(in srgb,var(--navy) 6%,var(--ivory));align-self:center}
.course-dialog .course-footer{position:relative;bottom:auto;display:flex;align-items:center;gap:28px;margin:0;padding:20px 36px;background:var(--night);border-top:1px solid var(--rule-dark);color:var(--white);z-index:2}
.course-dialog .course-footer .curriculum-status{margin:0;padding:0;flex:1;color:var(--text-soft);font-size:12px!important;line-height:1.5;max-width:370px}
.course-dialog .course-footer .action{flex:none;margin:0;min-width:210px;min-height:58px;font-size:14px}
@media(hover:hover){.course-switcher button:hover{background:color-mix(in srgb,var(--course-accent) 12%,var(--night));border-color:var(--course-accent)}.course-dialog>.dialog-close:hover{background:color-mix(in srgb,var(--white) 16%,transparent)}}
@media(max-width:760px){
 .course-dialog{width:calc(100% - 20px);height:94svh;max-height:96svh;border-radius:16px}
 .course-cover{padding:18px 22px 22px}
 .course-dialog>.dialog-close{top:14px;right:12px}
 .course-switcher{gap:6px;margin:0 50px 18px 0}
 .course-switcher button{min-width:44px;padding:0 10px;font-size:12px}
 .course-switcher>span{font-size:11px}
 .course-cover h2{font-size:27px;line-height:1.1;max-width:100%}
 .course-cover .course-kicker{margin-bottom:8px;font-size:12px}
 .course-number{font-size:100px;right:18px;bottom:14px;opacity:.08}
 .course-cover .course-meta{gap:22px;margin-top:18px}
 .course-cover .course-meta>div{gap:7px}
 .course-cover .course-meta dt{font-size:12px}
 .course-cover .course-meta dd{font-size:16px}
 .course-cover::after{left:22px;right:22px}
 .course-scroll{padding:22px}
 .course-scroll>#course-description{font-size:15px;line-height:1.5}
 .course-dialog .course-teaching-design summary{font-size:14px}
 .course-dialog .course-lessons li{gap:12px;padding-left:18px;font-size:14px}
 .course-dialog .lesson-runtime{font-size:12px;padding:6px 8px}
 .course-dialog .course-footer{display:block;padding:16px 22px 18px}
 .course-dialog .course-footer .curriculum-status{max-width:none;font-size:12px!important}
 .course-dialog .course-footer .action{display:flex;margin-top:12px;width:100%}
 .syllabus-heading{margin-top:22px}
 .syllabus-heading h3{font-size:17px}
}
/* Native-scroll headline: sticky only when the complete hero fits on screen. */
.hero-stage{position:relative;background:var(--night)}
.hero-stage.is-pinned>.hero{position:sticky;top:var(--hero-pin-top)}
.hero h1 .line{height:1.18em;min-height:1.18em;overflow:visible}
.hero h1 .line>span{position:relative;white-space:nowrap}
.hero.is-typing h1 .line>span[data-caret="true"]::after{content:'';display:inline-block;height:.76em;width:2px;margin-left:.08em;background:var(--orange);vertical-align:-.04em}
.hero.is-trust h1 em{color:var(--orange);text-shadow:0 0 16px color-mix(in srgb,var(--orange) 12%,transparent)}
@supports(background-clip:text){.hero.is-trust h1 em{background-image:linear-gradient(180deg,var(--warm-high) 14%,var(--orange) 58%,color-mix(in srgb,var(--orange) 88%,var(--night)) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:none}}
@media(prefers-reduced-motion:reduce){.hero-stage{height:auto!important}.hero-stage.is-pinned>.hero{position:relative;top:auto}.course-dialog *, .course-dialog, .hero h1 *{animation:none!important;transition:none!important}.hero.is-typing h1 .line>span::after{display:none}}

.course-cover-title{min-height:106px}
@media(max-width:760px){.course-cover-title{min-height:106px}.course-switcher button{font-size:14px}.course-cover .course-kicker{font-size:14px}.course-cover .course-meta dt{font-size:14px}.course-dialog .lesson-id,.course-dialog .lesson-runtime,.syllabus-count{font-size:14px}.course-dialog .course-footer .curriculum-status{font-size:14px!important}}
@media(max-width:380px){.course-cover h2{font-size:24px}.course-cover-title{min-height:94px}}

.course-dialog .course-footer{justify-content:space-between}
@media(max-width:760px){.course-cover .course-meta>div{display:block}.course-cover .course-meta dt,.course-cover .course-meta dd{white-space:nowrap}.course-cover .course-meta dd{margin-top:4px}}
