:root{
  --bg:#fbfcfe;
  --surface:#ffffff;
  --surface-2:#f7f9fc;
  --soft:#f4f7fb;
  --soft-blue:#eef5ff;
  --text:#101828;
  --muted:#667085;
  --muted-2:#98a2b3;
  --border:#e3e8ef;
  --border-strong:#d0d5dd;
  --blue:#1167f2;
  --blue-dark:#0757d4;
  --purple:#6f3ff5;
  --green:#079455;
  --navy:#0f1730;
  --shadow-xs:0 1px 2px rgba(16,24,40,.035);
  --shadow-sm:0 8px 28px rgba(16,24,40,.055);
  --shadow:0 18px 50px rgba(16,24,40,.075);
  --shadow-strong:0 30px 80px rgba(17,42,85,.14);
  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:20px;
  --radius-xl:26px;
  --container:1510px;
  --font-body:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-display:Poppins,Inter,system-ui,sans-serif;
  --fs-base:16px;
  --fs-lead:18px;
  --fs-card:20px;
  --fs-subsection:24px;
  --fs-section:32px;
  --fs-page:40px;
  --fs-feature:48px;
  --fs-hero:64px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);font-size:var(--fs-base);line-height:1.55;color:var(--text);background:radial-gradient(circle at 50% -190px,rgba(17,103,242,.055),transparent 430px),var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
img,svg{max-width:100%}
h1,h2,h3,h4,.brand,.nav-links,.btn,.eyebrow,.code,.section-kicker,.pill,.feature-number,.foot-brand{font-family:var(--font-display)}
h1,h2,h3,h4,p{margin-top:0}.wrap{width:min(calc(100% - 80px),var(--container));margin:auto}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);border-bottom:1px solid transparent}
.site-header.scrolled{border-bottom-color:color-mix(in srgb,var(--border) 82%,transparent);box-shadow:0 8px 30px rgba(16,24,40,.045)}
.nav{height:86px;display:grid;grid-template-columns:280px 1fr 280px;align-items:center;gap:20px}
.brand{display:flex;align-items:center;gap:11px;font-weight:700;letter-spacing:-.01em}
.brand-mark{width:48px;height:42px;border-radius:14px;display:grid;place-items:center;color:var(--blue);background:linear-gradient(145deg,rgba(17,103,242,.12),rgba(111,63,245,.07));border:1px solid rgba(17,103,242,.12)}
.brand-mark svg{width:29px;height:29px;stroke-width:2}
.brand strong{display:block;font-size:18px;line-height:1.15}
.brand small{display:block;margin-top:3px;color:var(--muted);font-family:var(--font-body);font-size:16px;font-weight:500;letter-spacing:-.005em}
.nav-links{display:flex;justify-content:center;align-items:center;gap:18px;font-size:16px;font-weight:500}
.nav-links a{min-height:42px;padding:0 12px;border-radius:11px;display:inline-flex;align-items:center}
.nav-links a:hover,.nav-links a:focus-visible{background:var(--soft);color:var(--blue)}
.actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}
.btn{min-height:48px;padding:0 20px;border-radius:13px;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--surface);font-size:16px;font-weight:600;line-height:1.2}
.btn svg{width:18px;height:18px}
.btn:hover,.btn:focus-visible{border-color:#c9d2df;background:#fbfcfe;box-shadow:var(--shadow-sm)}
.btn.primary{color:#fff;border-color:var(--blue);background:var(--blue);box-shadow:0 10px 24px rgba(17,103,242,.18)}
.btn.primary:hover,.btn.primary:focus-visible{background:var(--blue-dark);border-color:var(--blue-dark)}
.menu{display:none;width:44px;height:44px;border:1px solid var(--border);border-radius:12px;background:#fff;place-items:center}
.mobile{display:none}

/* Hero */
.hero{position:relative;overflow:hidden;padding:68px 0 96px;text-align:center}
.hero::before,.hero::after{content:"";position:absolute;border-radius:50%;pointer-events:none;filter:blur(2px)}
.hero::before{width:520px;height:520px;left:-260px;top:120px;background:radial-gradient(circle,rgba(17,103,242,.065),transparent 68%)}
.hero::after{width:520px;height:520px;right:-280px;top:20px;background:radial-gradient(circle,rgba(111,63,245,.065),transparent 68%)}
.hero-grid{position:relative;z-index:1}
.eyebrow,.section-kicker{width:max-content;max-width:100%;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--blue);font-size:16px;font-weight:700;letter-spacing:.075em;text-transform:uppercase}
.eyebrow::before,.section-kicker::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 6px rgba(17,103,242,.09);flex:0 0 auto}
.hero h1{max-width:1160px;margin:0 auto;font-size:var(--fs-hero);line-height:1.03;letter-spacing:-.047em;font-weight:700}
.hero h1 span{background:linear-gradient(90deg,var(--blue),var(--purple));-webkit-background-clip:text;background-clip:text;color:transparent}
.promise{max-width:920px;margin:24px auto 0;font-family:var(--font-display);font-size:24px;font-weight:600;line-height:1.38;letter-spacing:-.018em}
.lead{max-width:900px;margin:17px auto 0;color:var(--muted);font-size:20px;line-height:1.62}
.hero-actions{margin-top:28px;display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.hero-trust{margin:26px auto 0;display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.pill{min-height:38px;padding:0 13px;border:1px solid var(--border);border-radius:999px;background:color-mix(in srgb,var(--surface) 92%,transparent);display:inline-flex;align-items:center;gap:7px;font-size:16px;font-weight:600;color:var(--muted);box-shadow:0 4px 14px rgba(16,24,40,.03)}
.pill svg{width:16px;height:16px;color:var(--blue)}

.hero-media{max-width:1240px;min-height:454px;margin:70px auto 0;border-radius:var(--radius-xl);border:1px solid rgba(255,255,255,.11);background:radial-gradient(circle at 72% 24%,rgba(68,203,210,.14),transparent 29%),radial-gradient(circle at 18% 24%,rgba(93,112,255,.19),transparent 31%),linear-gradient(145deg,#071123,#081b37 54%,#061226);box-shadow:0 34px 90px rgba(4,17,38,.28);position:relative;overflow:hidden;text-align:left}
.hero-media::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.034) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.034) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 88%);pointer-events:none}
.hero-media-top{position:absolute;left:24px;right:24px;top:20px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;color:rgba(255,255,255,.75);font-size:16px;font-weight:600;letter-spacing:.035em}
.hero-media-top span{display:inline-flex;align-items:center;gap:8px}.hero-media-top span::before{content:"";width:8px;height:8px;border-radius:50%;background:#68dce2;box-shadow:0 0 0 5px rgba(104,220,226,.12)}
.hero-media-top strong{padding:6px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.055);color:#fff;font-family:var(--font-display);font-size:16px;font-weight:600}
.hero-system{position:relative;z-index:2;padding:100px 36px 34px;height:100%;display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center}
.hero-system-copy{padding:18px 0 40px}
.hero-system-copy .system-label{font-family:var(--font-display);font-size:16px;font-weight:700;letter-spacing:.07em;color:#68dce2;text-transform:uppercase}
.hero-system-copy strong{display:block;margin-top:12px;color:#fff;font-family:var(--font-display);font-size:48px;line-height:1.08;letter-spacing:-.04em;font-weight:700}
.hero-system-copy p{max-width:590px;margin:16px 0 0;color:rgba(255,255,255,.73);font-size:18px;line-height:1.6}
.hero-pillar-grid{display:grid;gap:12px}
.hero-pillar{min-height:92px;padding:18px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(255,255,255,.055);backdrop-filter:blur(10px);display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:center}
.hero-pillar .icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:rgba(104,220,226,.1);color:#68dce2;border:1px solid rgba(104,220,226,.15)}
.hero-pillar .icon svg{width:22px;height:22px}
.hero-pillar b{display:block;color:#fff;font-family:var(--font-display);font-size:18px;font-weight:600}
.hero-pillar span{display:block;margin-top:4px;color:rgba(255,255,255,.64);font-size:16px;line-height:1.35}
.hero-stage-row{position:absolute;left:28px;right:28px;bottom:24px;z-index:4;display:flex;gap:9px;flex-wrap:wrap}
.hero-stage-row span{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);color:rgba(255,255,255,.87);display:inline-flex;align-items:center;font-size:16px;font-weight:500}

/* Sections */
.section{padding:100px 0}.section.soft{background:linear-gradient(180deg,transparent,var(--soft),transparent)}
.section-head{max-width:900px;margin:0 auto 56px;text-align:center}
.section-head .section-kicker{margin-bottom:18px}
.section-head h2{margin:0;font-size:var(--fs-section);line-height:1.25;letter-spacing:-.032em;font-weight:700}
.section-head p{margin:16px 0 0;color:var(--muted);font-size:19px;line-height:1.6}
.grid-3,.grid-4,.grid-6{display:grid;gap:22px}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-6{grid-template-columns:repeat(3,1fr)}
.card{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px;box-shadow:var(--shadow-xs)}
.card:hover{border-color:color-mix(in srgb,var(--blue) 22%,var(--border));box-shadow:var(--shadow-sm)}
.card .label,.code{font-family:var(--font-display);font-size:16px;font-weight:700;color:var(--blue)}
.card h3{margin:12px 0 10px;font-size:20px;line-height:1.4;letter-spacing:-.018em;font-weight:600}
.card p{margin:0;color:var(--muted);font-size:16px;line-height:1.65}
.xpress-card{padding:24px;min-height:210px;display:flex;flex-direction:column}
.xpress-card .feature-number{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(17,103,242,.12),rgba(111,63,245,.07));border:1px solid rgba(17,103,242,.1);color:var(--blue);font-size:16px;font-weight:700}
.xpress-card .stage{margin-top:20px;color:var(--blue);font-family:var(--font-display);font-size:16px;font-weight:700}
.xpress-card .pillar{margin-top:auto;padding-top:22px;color:#344054;font-size:16px;font-weight:600}
.subject-card{min-height:248px;padding-bottom:68px}
.subject-card .subject-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.subject-card .subject-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--soft-blue);color:var(--blue);border:1px solid rgba(17,103,242,.1)}
.subject-card .subject-icon svg{width:22px;height:22px}
.status{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:16px}.status i{width:8px;height:8px;border-radius:50%;background:var(--green)}
.go{position:absolute;left:28px;bottom:26px;color:var(--blue);font-family:var(--font-display);font-size:16px;font-weight:600;display:inline-flex;align-items:center;gap:7px}
.go svg{width:17px;height:17px}
.section-action{text-align:center;margin-top:30px}

/* Page */
.page-hero{padding:64px 0 38px}.page-hero .eyebrow{margin-left:0;justify-content:flex-start}.page-hero h1{font-size:var(--fs-page);line-height:1.2;letter-spacing:-.032em;margin-bottom:12px}.page-hero p{max-width:840px;color:var(--muted);font-size:18px;line-height:1.6}
.page-section{padding-top:30px}
.subject-overview{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:start}
.subject-overview .subject-summary{padding:30px}
.subject-overview .subject-summary h2{font-size:28px;line-height:1.3;margin:10px 0 12px}
.subject-overview .source-panel{padding:24px;background:linear-gradient(145deg,var(--soft-blue),var(--surface));border-color:rgba(17,103,242,.17)}
.source-panel strong{font-family:var(--font-display);display:block;font-size:18px}.source-panel p{margin-top:9px;overflow-wrap:anywhere}
.notice{padding:18px 20px;border:1px solid var(--border);border-radius:16px;background:var(--soft);font-size:16px;line-height:1.6}

/* Auth */
.login-wrap{min-height:calc(100vh - 160px);display:grid;place-items:center;padding:54px 0}
.login-shell{width:min(100%,980px);display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--border);border-radius:24px;overflow:hidden;box-shadow:var(--shadow-strong)}
.login-brand{padding:42px;background:radial-gradient(circle at 20% 20%,rgba(104,220,226,.13),transparent 32%),linear-gradient(145deg,#071123,#081b37);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:520px}
.login-brand .brandline{font-family:var(--font-display);font-size:18px;font-weight:700}.login-brand h2{font-size:40px;line-height:1.12;letter-spacing:-.035em;margin:32px 0 14px}.login-brand p{color:rgba(255,255,255,.72);font-size:18px;line-height:1.6}.login-brand .mini{font-size:16px;color:rgba(255,255,255,.58)}
.login-card{padding:42px;align-self:center}.login-card .eyebrow{margin-left:0;justify-content:flex-start}.login-card h1{font-size:32px;margin-bottom:8px}.login-card>p{color:var(--muted);line-height:1.6}
label{display:block;margin:18px 0 7px;font-family:var(--font-display);font-size:16px;font-weight:600}
input{width:100%;min-height:50px;padding:0 14px;border:1px solid var(--border-strong);border-radius:12px;background:#fff;font-size:16px;outline:none}
input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(17,103,242,.08)}
.flash{padding:14px 16px;border-radius:12px;margin:16px auto;max-width:var(--container);font-size:16px;font-weight:600}.flash.error{background:#fff1f0;border:1px solid #fecdca;color:#b42318}.flash.success{background:#ecfdf3;border:1px solid #abefc6;color:#067647}

/* Footer */
.footer{border-top:1px solid var(--border);background:color-mix(in srgb,var(--soft) 66%,var(--bg));padding:72px 0 30px}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:60px}.footer .foot-brand{font-size:22px;font-weight:700;letter-spacing:-.02em}.footer h4{font-family:var(--font-display);font-size:18px;font-weight:600;margin:0 0 14px}.footer p,.footer a{display:block;margin:0 0 10px;color:var(--muted);font-size:16px;line-height:1.5}.copy{margin-top:60px;padding-top:22px;border-top:1px solid var(--border);color:var(--muted);font-size:16px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

@media(max-width:1180px){
  .nav{grid-template-columns:230px 1fr 230px}.nav-links{gap:8px}.grid-4{grid-template-columns:repeat(2,1fr)}.hero-system{grid-template-columns:1fr 1fr}.hero-system-copy strong{font-size:42px}.footer-grid{grid-template-columns:1.6fr repeat(3,1fr);gap:36px}
}
@media(max-width:900px){
  .hero-system{grid-template-columns:1fr;padding-bottom:116px}.hero-system-copy{padding-bottom:0}.hero-pillar-grid{grid-template-columns:repeat(3,1fr)}.hero-pillar{grid-template-columns:1fr;text-align:center}.hero-pillar .icon{margin:auto}.subject-overview{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-brand{min-height:320px}.footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  .wrap{width:min(calc(100% - 30px),var(--container))}.nav{height:72px;grid-template-columns:1fr auto}.nav-links,.actions .primary{display:none}.menu{display:grid}.mobile{display:none;border-top:1px solid var(--border);padding:8px 15px 18px;background:var(--bg)}.mobile.open{display:block}.mobile a{display:block;padding:12px 0;font-family:var(--font-display);font-size:16px;font-weight:600}
  .hero{padding:46px 0 72px}.hero h1{font-size:44px}.promise{font-size:21px}.lead{font-size:17px}.hero-media{min-height:610px;margin-top:48px}.hero-system{padding:92px 18px 130px}.hero-system-copy strong{font-size:38px}.hero-system-copy p{font-size:17px}.hero-pillar-grid{grid-template-columns:1fr}.hero-pillar{grid-template-columns:44px 1fr;text-align:left}.hero-pillar .icon{margin:0}.hero-stage-row{left:18px;right:18px;bottom:18px}.section{padding:74px 0}.section-head{margin-bottom:38px}.section-head p{font-size:17px}.grid-3,.grid-6{grid-template-columns:1fr}.grid-4{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr;gap:28px}.login-brand,.login-card{padding:30px}.login-brand h2{font-size:34px}
}
@media(max-width:560px){.grid-4{grid-template-columns:1fr}.page-hero h1{font-size:34px}.login-brand{min-height:280px}.copy{display:block}.copy span{display:block;margin-top:8px}.hero-trust{align-items:stretch}.pill{width:100%;justify-content:center}}
.subject-main-column{display:grid;gap:22px}.subject-main-column>.grid-3{margin:0}.login-submit{width:100%;margin-top:22px}


/* Phase 4 public syllabus map */
.section-head.compact{text-align:left;max-width:none;margin-bottom:26px}.semester-public-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.semester-public-card{position:relative;overflow:hidden}.semester-number{font-family:var(--font-display);font-size:42px;font-weight:700;color:#d9e6fb;letter-spacing:-.04em}.semester-public-card h3{margin:2px 0 16px;font-size:22px}.public-topic-list{display:grid;gap:9px}.public-topic-list>div{display:grid;grid-template-columns:42px 1fr;gap:10px;padding:10px 0;border-top:1px solid var(--border);align-items:start}.public-topic-list span{font-family:var(--font-display);font-weight:700;color:var(--blue);font-size:16px}.public-topic-list strong{font-size:16px;line-height:1.45;font-weight:600}.public-topic-list p{font-size:16px;color:var(--muted)}
@media(max-width:900px){.semester-public-grid{grid-template-columns:1fr}}


/* PHASE 5 — XPRESS learner/public runtime */
.public-xpress-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.public-xpress-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;transition:border-color .16s ease,box-shadow .16s ease}.public-xpress-item:hover{border-color:rgba(17,103,242,.28);box-shadow:var(--shadow-soft)}.public-xpress-item span{display:block;color:var(--muted);font-size:16px;margin-bottom:4px}.public-xpress-item strong{font-family:var(--font-display);font-size:18px;line-height:1.4}.public-xpress-item>svg{width:20px;color:var(--blue);flex:0 0 auto}
.xpress-learn-hero{padding-bottom:28px}.preview-notice{display:inline-flex;margin-top:16px;padding:8px 12px;border-radius:999px;background:#fff6ed;color:#b54708;border:1px solid #fedf89;font-family:var(--font-display);font-size:16px;font-weight:600}.xpress-learning-section{padding-top:22px}.xpress-learning-shell{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;align-items:start}.xpress-stage-nav{position:sticky;top:102px;border:1px solid var(--border);border-radius:19px;background:#fff;overflow:hidden;box-shadow:0 1px 0 rgba(16,24,40,.02)}.xpress-stage-nav-head{padding:18px;border-bottom:1px solid var(--border);background:linear-gradient(145deg,var(--soft-blue),#fff)}.xpress-stage-nav-head span{display:block;color:var(--blue);font-family:var(--font-display);font-size:16px;font-weight:700}.xpress-stage-nav-head strong{display:block;font-size:16px;margin-top:3px}.xpress-stage-nav a{display:grid;grid-template-columns:42px 1fr;gap:11px;align-items:center;padding:13px 15px;border-bottom:1px solid #edf0f3}.xpress-stage-nav a:last-child{border-bottom:0}.xpress-stage-nav a:hover,.xpress-stage-nav a.active{background:#f8fbff}.xpress-stage-nav a.active{box-shadow:inset 3px 0 0 var(--blue)}.stage-index{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#f2f4f7;color:#475467;font-family:var(--font-display);font-size:16px;font-weight:700}.xpress-stage-nav a.active .stage-index{background:var(--soft-blue);color:var(--blue)}.xpress-stage-nav small{display:block;color:var(--blue);font-family:var(--font-display);font-size:16px;font-weight:700}.xpress-stage-nav strong{display:block;font-size:16px;line-height:1.35;margin-top:2px}.xpress-learning-content{border:1px solid var(--border);border-radius:20px;background:#fff;padding:30px;box-shadow:0 1px 0 rgba(16,24,40,.02);min-height:560px}.learning-kicker{font-family:var(--font-display);font-size:16px;font-weight:700;color:var(--blue);letter-spacing:.045em}.xpress-learning-content h2{font-size:32px;line-height:1.25;letter-spacing:-.025em;margin:7px 0 8px}.learning-purpose{font-size:17px;color:var(--muted);line-height:1.65;margin:0 0 24px}.learning-block{padding:20px 0;border-top:1px solid var(--border)}.learning-block.soft{padding:18px;border:1px solid #dbe5ff;background:#f7faff;border-radius:15px;margin-bottom:18px}.learning-block>span{display:block;font-family:var(--font-display);font-size:16px;font-weight:700;color:#475467;margin-bottom:8px}.learning-block p,.learning-text{font-size:17px;line-height:1.75;color:#344054;margin:0}.learning-block.activity{margin-top:12px;padding:20px;border:1px solid var(--border);border-radius:15px;background:#fbfcfe}.learning-guidance{margin-top:18px;border:1px solid #d7e3fb;border-radius:15px;background:#f8fbff;overflow:hidden}.learning-guidance summary{list-style:none;cursor:pointer;min-height:52px;padding:0 16px;display:flex;align-items:center;gap:9px;font-family:var(--font-display);font-size:16px;font-weight:600;color:#344054}.learning-guidance summary::-webkit-details-marker{display:none}.learning-guidance summary svg{width:19px;color:var(--blue)}.learning-guidance>div{border-top:1px solid #d7e3fb;padding:16px;font-size:17px;line-height:1.7;color:#344054}.learning-empty{text-align:center;padding:80px 20px;color:var(--muted)}.learning-empty svg{width:38px;height:38px}.learning-empty h3{font-size:21px;color:var(--text);margin:13px 0 6px}.learning-empty p{font-size:16px;margin:0}
@media(max-width:940px){.public-xpress-list{grid-template-columns:1fr}.xpress-learning-shell{grid-template-columns:1fr}.xpress-stage-nav{position:static;display:grid;grid-template-columns:repeat(2,1fr)}.xpress-stage-nav-head{grid-column:1/-1}.xpress-stage-nav a{border-right:1px solid #edf0f3}.xpress-learning-content{padding:24px}}
@media(max-width:620px){.xpress-stage-nav{grid-template-columns:1fr}.xpress-stage-nav-head{grid-column:auto}.xpress-learning-content{padding:20px 16px}.xpress-learning-content h2{font-size:28px}}


/* =========================================================
   v0.8.8 — SHELL & LAYOUT STABILITY
   Prevent horizontal page jump, accidental viewport overflow,
   and intermediate-breakpoint navigation collisions.
   ========================================================= */
html{min-width:320px;overflow-y:scroll;overflow-x:hidden;overflow-x:clip;scrollbar-gutter:stable}
body.public-shell{width:100%;min-width:320px;overflow-x:hidden;overflow-x:clip}
i[data-lucide]{display:inline-block;width:1.125em;height:1.125em;flex:0 0 auto}
.wrap{width:100%;max-width:calc(var(--container) + 80px);padding-left:40px;padding-right:40px;margin-left:auto;margin-right:auto}
.site-header,.footer,main,section{max-width:100%}
.nav,.hero-grid,.section-head,.footer-grid,.subject-main-column,.subject-overview,.semester-public-grid,.public-xpress-list,.xpress-learning-shell{min-width:0}
.nav>*,.hero-system>*,.grid-3>*,.grid-4>*,.grid-6>*,.footer-grid>*,.subject-overview>*,.semester-public-grid>*,.public-xpress-list>*,.xpress-learning-shell>*{min-width:0}
.card,.public-xpress-item,.semester-public-card,.xpress-learning-content{max-width:100%;overflow-wrap:anywhere}
img,video,canvas,iframe{max-width:100%;height:auto}
pre{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}

/* Move to compact navigation before columns become crowded. */
@media(max-width:980px){
  .wrap{padding-left:24px;padding-right:24px}
  .nav{height:78px;grid-template-columns:minmax(0,1fr) auto;gap:14px}
  .nav-links,.actions .primary{display:none}
  .menu{display:grid}
  .mobile{display:none;border-top:1px solid var(--border);padding:8px 24px 18px;background:var(--bg)}
  .mobile.open{display:block}
  .mobile a{display:block;padding:12px 0;font-family:var(--font-display);font-size:16px;font-weight:600}
}
@media(max-width:820px){
  .wrap{width:100%;padding-left:15px;padding-right:15px}
  .mobile{padding-left:15px;padding-right:15px}
}

/* =========================================================
   v0.8.9 — PUBLIC LEARNING VIEWPORT LOCK
   Root-cause fix for XPRESS pages shifting / clipping left-right.
   ========================================================= */
html{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
  overflow-y:scroll;
  scrollbar-gutter:stable both-edges;
}
body.public-shell{
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  overflow-x:hidden;
}

/* One authoritative public container rule. Do not combine width:100%
   with internal horizontal padding; the container itself is viewport-safe. */
body.public-shell .wrap{
  width:calc(100% - 48px) !important;
  max-width:var(--container) !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* XPRESS learning pages use a deliberately narrower reading frame. */
body.public-shell .xpress-learn-hero > .wrap,
body.public-shell .xpress-learning-section > .wrap{
  width:calc(100% - 48px) !important;
  max-width:1280px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.site-header,
.site-header > .wrap,
body.public-shell main,
body.public-shell main > section,
body.public-shell .xpress-learning-section,
body.public-shell .xpress-learning-shell,
body.public-shell .xpress-learning-content{
  min-width:0;
  max-width:100%;
}

body.public-shell .nav{
  width:100%;
  max-width:100%;
}
body.public-shell .xpress-learning-shell{
  width:100%;
  grid-template-columns:300px minmax(0,1fr);
  gap:18px;
}
body.public-shell .xpress-stage-nav,
body.public-shell .xpress-learning-content{
  width:100%;
  min-width:0;
  max-width:100%;
}
body.public-shell .xpress-learning-content{
  overflow:hidden;
}
body.public-shell .xpress-learning-content > *,
body.public-shell .learning-block,
body.public-shell .learning-block > *,
body.public-shell .learning-guidance,
body.public-shell .learning-guidance > *{
  min-width:0;
  max-width:100%;
}
body.public-shell .learning-purpose,
body.public-shell .learning-block p,
body.public-shell .learning-text,
body.public-shell .learning-guidance > div,
body.public-shell .xpress-stage-nav strong,
body.public-shell .xpress-stage-nav small{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}

/* Switch to one-column learning before the content column becomes cramped. */
@media(max-width:980px){
  body.public-shell .xpress-learning-shell{grid-template-columns:1fr}
  body.public-shell .xpress-stage-nav{
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.public-shell .xpress-stage-nav-head{grid-column:1/-1}
}
@media(max-width:820px){
  body.public-shell .wrap,
  body.public-shell .xpress-learn-hero > .wrap,
  body.public-shell .xpress-learning-section > .wrap{
    width:calc(100% - 30px) !important;
  }
}
@media(max-width:620px){
  body.public-shell .xpress-stage-nav{grid-template-columns:1fr}
  body.public-shell .xpress-stage-nav-head{grid-column:auto}
}
