:root {
  color-scheme: light;
  --ink:#13253a; --muted:#4d6176; --border:#dbe4ee; --canvas:#f1f5f9;
  --paper:#fff; --accent:#1548c8; --navy:#112e66; --blue:#173d88; --soft:#eaf1fe;
  --danger:#9c2929; --shadow:0 5px 20px #19345e0a;
  font-family:"Inter","Segoe UI",system-ui,sans-serif; font-size:16px; line-height:1.55;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);min-height:100vh}
a{color:var(--accent);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
button,input,textarea{font:inherit}
button,summary{cursor:pointer}
:focus-visible{outline:3px solid #2864e5;outline-offset:4px}
h1,h2,h3,p{margin:0 0 .75rem}
h1,h2,h3{line-height:1.14;letter-spacing:-.028em}
h1{font-size:clamp(1.9rem,4.9vw,2.75rem);overflow-wrap:anywhere}
h2{font-size:clamp(1.35rem,3.5vw,1.7rem)}
h3{font-size:1.15rem}
p{color:var(--muted)}
small{font-size:.85rem}
.skip{position:absolute;left:1rem;top:.75rem;z-index:3;transform:translateY(-250%);background:#fff;padding:.75rem}
.skip:focus{transform:none}
.shell{display:grid;grid-template-columns:247px minmax(0,1fr);min-height:100vh}
.sidebar{background:#fff;border-right:1px solid var(--border);padding:1.75rem 1rem 1rem}
.brand{display:flex;gap:.75rem;align-items:center;font-size:1.05rem;font-weight:850;line-height:1.13;letter-spacing:-.025em;text-decoration:none;color:inherit}
.sidebar>.brand{margin:0 .6rem 1.55rem}
.brandmark{width:39px;height:39px;flex:none;background:var(--accent);border-radius:11px;display:grid;place-items:center;position:relative;overflow:hidden}
.brandmark i{position:absolute;width:20px;height:12px;border:1.5px solid white;transform:rotate(-30deg) skewX(25deg);border-radius:2px}
.brandmark i:nth-child(1){top:9px}.brandmark i:nth-child(2){top:13px}.brandmark i:nth-child(3){top:17px}
.navlink{display:flex;align-items:center;gap:.65rem;min-height:44px;padding:.45rem .65rem;margin:.15rem 0;font-size:.9rem;font-weight:650;text-decoration:none;color:var(--muted);border-radius:.55rem}
.navlink:hover,.navlink.selected{background:var(--soft);color:var(--accent)}
.navicon,.navnumber{width:1.55rem;text-align:center;flex:none;color:var(--accent);font-weight:800}
.navnumber{font-size:.76rem;font-family:ui-monospace,monospace}
.navcaption,.eyebrow{font-size:.8rem;letter-spacing:.085em;text-transform:uppercase;font-weight:800;color:#405e81}
.navcaption{margin:1.15rem .65rem .35rem}
.mobile-chapters{display:none}
.profile{display:flex;gap:.65rem;align-items:center;padding:1rem .55rem 0;margin-top:1.1rem;border-top:1px solid var(--border);font-size:.9rem}
.profile small{display:block;color:var(--muted)}
.avatar{display:grid;place-items:center;width:2.3rem;height:2.3rem;flex:none;background:var(--soft);color:var(--accent);border-radius:50%;font-weight:800}
.account{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:0 .55rem;font-size:.86rem}
.main{padding:clamp(1rem,3.2vw,3rem);width:100%;max-width:1500px;margin:auto;margin-top:0}
.pagehead,.sectionhead,.actions{display:flex;gap:.9rem;align-items:center;justify-content:space-between}
.pagehead{margin:0 0 1.2rem}
.pagehead h1,.sectionhead h2,.sectionhead h3{margin:0}
.pagehead p:not(.eyebrow){margin:.5rem 0 0;max-width:60ch}
.eyebrow{margin-bottom:.4rem}
.pill{display:inline-flex;align-items:center;white-space:nowrap;font-size:.82rem;font-weight:750;background:var(--soft);color:#24477f;border-radius:20rem;padding:.3rem .7rem}
.hero,.authvisual{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(112deg,#112e66,#1c4ba3);color:#fff}
.hero{padding:clamp(1.2rem,3vw,2.6rem);border-radius:1rem;min-height:243px;display:grid;align-items:center}
.herocopy{position:relative;z-index:1;max-width:65%}
.hero h2{font-size:clamp(1.85rem,4vw,3.1rem);max-width:16ch}
.hero p,.authvisual p{color:#e1edff}.hero .eyebrow,.authvisual .eyebrow{color:#afccff}
.blueprint{position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(0deg,#bfd9ff16 0 1px,transparent 1px 28px),repeating-linear-gradient(90deg,#bfd9ff16 0 1px,transparent 1px 28px)}
.heroart{left:54%;mask-image:linear-gradient(90deg,transparent,#000 26%)}
.orbit,.core,.axis,.blueprint>i{position:absolute;left:54%;top:50%;transform:translate(-50%,-50%)}
.orbit{width:75%;aspect-ratio:1;border:1px solid #b4d1ffa0;border-radius:50%;max-width:274px;box-shadow:0 0 0 16px #d6e5ff10,inset 0 0 0 22px #d6e5ff12}
.orbit.second{width:49%;max-width:190px;border-style:dashed;box-shadow:none}
.core{width:32%;max-width:120px;aspect-ratio:1;border:1.5px solid #bbdbff;transform:translate(-50%,-50%) rotate(30deg) skew(-12deg);border-radius:18%;box-shadow:12px 11px 0 -1px #214d9a,12px 11px 0 #c5deff99;background:#89b7ff22}
.axis.one{width:85%;border-top:1px dashed #daebff66}.axis.two{height:92%;border-left:1px dashed #daebff66}
.blueprint>i{width:6px;height:6px;border-radius:50%;background:#dfecff;box-shadow:0 0 10px white}
.card{background:var(--paper);border:1px solid var(--border);border-radius:.9rem;box-shadow:var(--shadow);min-width:0}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin:1rem 0 1.65rem}
.stats>.card{padding:.9rem 1.05rem;display:grid;gap:.14rem}
.stats span,.stats small,.module-card>span:not(.module-id),.lesson-row div span{color:var(--muted)}
.stats strong{font-size:1.8rem;line-height:1.2}
.stats em{font-size:1rem;color:var(--muted);font-style:normal}
progress{accent-color:var(--accent);width:100%;height:.65rem}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(210px,1fr);gap:1rem;align-items:start}
.sectionhead{margin:0 0 .8rem;flex-wrap:wrap}
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.module-card{display:flex;flex-direction:column;align-items:flex-start;gap:.22rem;padding:.9rem;color:var(--ink);text-decoration:none;transition:border-color .15s,background .15s}
.module-card:hover,.lesson-row:hover{border-color:#91a9d8;background:#f8faff}
.module-card strong,.lesson-row strong{font-size:1.04rem;line-height:1.24}
.module-card small{color:var(--accent);margin-top:auto;padding-top:.38rem}
.module-id{display:grid;place-items:center;min-width:2rem;height:2rem;padding:0 .42rem;border-radius:.45rem;color:#234d94;background:#e8f0ff;font:750 .85rem ui-monospace,monospace;margin-bottom:.26rem}
.tone2 .module-id,.tone6 .module-id{color:#0d6155;background:#e0f4f0}.tone3 .module-id,.tone7 .module-id{color:#6c3a1d;background:#f9ebde}.tone4 .module-id{color:#553586;background:#eee6fb}
.leaders{padding:.45rem .8rem .75rem}
.leaders ol{list-style:none;padding:0;margin:0 0 .45rem}
.leaders li{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.42rem;border-bottom:1px solid var(--border);padding:.65rem .05rem;font-size:.9rem}
.place{border-radius:50%;width:1.6rem;height:1.6rem;display:grid;place-items:center;background:var(--soft);color:var(--accent);font-weight:750}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.52rem .95rem;border:1px solid transparent;border-radius:.58rem;text-decoration:none;font-size:.95rem;font-weight:750;max-width:100%;text-align:center;transition:background .15s}
.primary{background:var(--accent);color:white}.primary:hover{background:#103998}
.light{background:white;color:#123574}.light:hover{background:#dbeaff}
.secondary{background:var(--soft);color:#193f91}.secondary:hover{background:#dbe7ff}
.textbtn{border:0;background:none;color:var(--accent);padding:.35rem .15rem;min-height:44px;text-decoration:underline;text-underline-offset:3px}
.danger{color:var(--danger)}
.block,.single{padding:clamp(1rem,2.8vw,1.8rem);margin-bottom:1rem}
.single{width:min(90%,550px);margin:2rem auto}
.block p,.block li{max-width:75ch}.block>p:last-child{margin-bottom:0}
.crumb{margin-bottom:1rem;font-size:.91rem;display:flex;flex-wrap:wrap;gap:.4rem;color:var(--muted)}
.tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.tabs a{display:inline-flex;align-items:center;min-height:44px;padding:.45rem .8rem;border-radius:.55rem;background:white;border:1px solid var(--border);text-decoration:none;font-weight:650}
.lessonbody{max-width:980px}
.worked{margin-top:1rem;padding:.95rem 1rem;background:var(--soft);border-left:4px solid #5279c5;border-radius:.2rem .55rem .55rem .2rem}
.worked p:last-child{margin-bottom:0}
.method{margin:1.25rem 0 .55rem}
.quiz-progress{margin-bottom:1rem}
.quiz-steps a{min-width:44px;justify-content:center;gap:.3rem}
.quiz-steps a[aria-current=step]{background:var(--accent);color:white}
.figure-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.source-figure{min-width:0;margin:0;border:1px solid var(--border);border-radius:.65rem;overflow:hidden;background:#fff}
.source-figure a{display:grid;place-items:center;padding:.5rem;min-height:10rem}
.source-figure a:focus-visible{outline-offset:-4px}
.source-figure img{display:block;width:100%;height:auto;max-height:300px;object-fit:contain}
.source-figure figcaption{padding:.75rem .85rem;border-top:1px solid var(--border);color:var(--ink);font-size:.94rem}
.source-figure small{display:block;margin-top:.35rem;color:var(--muted)}
.katex-display{overflow:auto;padding:.1rem .25rem}
.mathtext{white-space:pre-wrap;overflow-wrap:anywhere}
.task+.task,.video-entry+.video-entry{border-top:1px solid var(--border);padding-top:1.1rem;margin-top:1.1rem}
.formstack{display:grid;gap:.85rem;text-align:left;margin:1rem 0;max-width:740px}
.formstack>button{justify-self:start}
.formstack label{display:grid;gap:.35rem;font-weight:650}
.formstack label small,.hint{color:var(--muted);font-weight:400;font-size:.85rem}
input:not([type=radio],[type=checkbox],[type=hidden]),textarea{min-width:0;width:100%;background:#fff;border:1px solid #9eafc4;border-radius:.4rem;padding:.54rem .65rem;min-height:44px;color:var(--ink)}
textarea{resize:vertical}
input[type=file]{padding:.42rem}
fieldset{border:1px solid var(--border);border-radius:.6rem;padding:.7rem 1rem 1rem;margin:.8rem 0;min-width:0}
legend{font-weight:750;padding:0 .3rem}
.choice,.formstack .choice{display:flex;gap:.6rem;align-items:center;min-height:44px;padding:.35rem .2rem;cursor:pointer;font-weight:500}
.choice input{accent-color:var(--accent);width:1.15rem;height:1.15rem;flex:none}
.gallery{display:flex;flex-wrap:wrap;gap:.6rem;margin:.65rem 0}
.gallery img{width:128px;height:96px;object-fit:contain;background:var(--canvas);border:1px solid var(--border);border-radius:.4rem}
.list{display:grid;gap:.65rem}
.lesson-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.85rem;padding:.85rem;color:var(--ink);text-decoration:none}
.lesson-row div span{display:block;font-size:.85rem;margin-top:.2rem}
.notice{border-radius:.55rem;padding:.7rem .9rem;margin:0 0 .9rem;background:#e7efff;color:#213c77}
.notice.success{background:#e6f5ec;color:#1c6140}.notice.error{background:#ffecec;color:#8d2525}
.actions{justify-content:flex-start;flex-wrap:wrap}
summary{min-height:44px;padding:.55rem 0;font-weight:700}
.submission+.submission{border-top:1px solid var(--border)}
.submission summary .pill{margin-left:.45rem}
.submission-inner{padding:.2rem 0 1rem}
.tablewrap{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;font-size:.93rem}
td,th{padding:.65rem .78rem;border-bottom:1px solid var(--border)}
thead th{color:#375679;background:#f1f6fc}
tr.mine{background:var(--soft)}
video{max-width:100%;display:block;margin:.5rem 0}
.authlayout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}
.authvisual{display:flex;flex-direction:column;justify-content:space-between;min-height:640px;padding:clamp(1.4rem,4.4vw,4rem)}
.authvisual .blueprint{inset:11% 0 18%;mask-image:linear-gradient(transparent,#000 20% 80%,transparent)}
.authintro h1{font-size:clamp(2.15rem,5.3vw,5rem);line-height:.98}
.authform{display:grid;place-items:center;background:white;padding:clamp(1.1rem,5vw,4.5rem)}
.authform>div{width:min(100%,390px)}
.authform h2{font-size:clamp(1.8rem,4vw,2.55rem)}
.authform .button{width:100%}
@media(max-width:1060px){.dashboard-grid{grid-template-columns:1fr}.leaders{max-width:none}.shell{grid-template-columns:218px minmax(0,1fr)}}
@media(max-width:760px){
.shell{display:block}.sidebar{border-right:0;border-bottom:1px solid var(--border);padding:.75rem 1rem}.sidebar>.brand{margin:0 0 .55rem}
.sidebar nav{display:flex;gap:.24rem;flex-wrap:wrap}.navlink{margin:0}.desktop-chapters{display:none}
.mobile-chapters{display:block;width:100%;border-top:1px solid var(--border);margin:.25rem 0 0}
.mobile-chapters summary{color:var(--accent);padding:.55rem .65rem}
.modulelink{font-size:.88rem}.navnumber{width:auto}
.profile,.account{display:inline-flex;margin:0;padding:.25rem .55rem .1rem 0;border:0}.profile small{display:none}
.authlayout{grid-template-columns:1fr}.authvisual{min-height:300px}.authvisual .blueprint{left:46%;top:0;bottom:0}.authform{min-height:360px}
}
@media(max-width:470px){.pagehead{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:1fr}.stats>.card{grid-template-columns:1fr auto;align-items:center}.stats small,.stats progress{grid-column:1/-1}.module-grid{grid-template-columns:1fr}.lesson-row{grid-template-columns:auto 1fr}.lesson-row>.pill{grid-column:2;justify-self:start}.heroart{left:42%;opacity:.55}.herocopy{max-width:92%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

