/* A fixed workspace frame; only the lesson/case pane scrolls. */
html{scrollbar-gutter:stable}
body.learning-page:not(.access-screen):not(.workspace-active) .top{height:104px;min-height:104px;padding:16px 32px}
body.learning-page .top .brand img{width:176px!important;max-width:100%!important;height:48px!important;object-fit:contain}
body.workspace-active{--workspace-header:104px;height:100dvh;overflow:hidden;font-size:14px}
body.workspace-active .top.workspace-top{height:var(--workspace-header);min-height:var(--workspace-header);padding:16px 32px;display:grid;grid-template-columns:176px minmax(0,1fr) auto;gap:30px;align-items:center;position:relative;z-index:20;flex-wrap:nowrap;background-color:var(--accent);background-image:linear-gradient(90deg,#14243dfa 0%,#14243df0 60%,#14243da8 100%),url('/assets/adult-business-meeting-1600.jpg');background-position:center 46%;background-size:cover;color:#fff;border-bottom:1px solid #ffffff20;box-shadow:0 4px 20px #14243d10}
body.academy.workspace-active .top.workspace-top{background-image:linear-gradient(90deg,#3c2c63ff 0%,#3c2c63f0 60%,#3c2c639c 100%),url('/media/400493fa0e5d4643a686f71fee979c6b9ed57d99a4f2a3003c409e19cea48d74.webp')}
body.workspace-active .workspace-top .brand{display:flex;align-items:center;min-width:0;max-width:none;width:176px}
body.workspace-active .workspace-top .brand img{width:176px!important;max-width:100%!important;height:48px!important;object-fit:contain;object-position:left center}
.workspace-context{min-width:0;align-self:center}
body.workspace-active .workspace-top h1{font-size:22px;line-height:1.35;font-weight:600;letter-spacing:0;color:#fff;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.workspace-location{display:flex;align-items:center;gap:9px;min-width:0;margin:0;color:#ffffffb8;font-size:11px;line-height:1.5;white-space:nowrap}
.workspace-location strong{color:#fff;font-weight:500;overflow:hidden;text-overflow:ellipsis}
body.workspace-active .workspace-top .top-actions{width:auto;margin:0;display:flex;align-items:center;gap:18px;flex-wrap:nowrap;min-width:0}
body.workspace-active .workspace-top #identity{max-width:140px;color:#ffffffc4;font-size:11px}
body.workspace-active .workspace-top #logout{font-size:12px;color:#fff;padding:8px 0}
.workspace-program{display:block;min-width:0}
.workspace-program select{width:210px;max-width:100%;border:1px solid #ffffff35;border-radius:8px;background:#ffffff10;color:#fff;padding:10px 28px 10px 12px;font-size:12px;line-height:1.5}
.workspace-program option{background:var(--card);color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.workspace-active main.workspace-main{width:100%;max-width:none;height:calc(100dvh - var(--workspace-header));min-height:0;margin:0;padding:26px 32px 24px;overflow:hidden}
body.workspace-active .workspace-main .portal-layout{height:100%;display:grid;grid-template-columns:208px minmax(0,1fr);gap:32px;min-height:0}
body.workspace-active .workspace-main .portal-sidebar{position:static;top:auto;min-height:0;height:100%;max-height:none;padding:0 12px 0 0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin}
body.workspace-active .workspace-main .portal-sidebar>.eyebrow{font-size:10px;margin:4px 0 18px;padding-left:12px;color:var(--muted)}
body.workspace-active .workspace-main .portal-sidebar .tabs{display:grid;grid-template-columns:1fr;gap:5px;margin:0 0 24px;padding:0;border:0;overflow:visible}
body.workspace-active .workspace-main .portal-sidebar .tabs button{min-height:44px;display:flex;gap:12px;padding:12px;border:0;border-radius:8px;font-size:12px;line-height:1.5;white-space:normal;transition:background .12s,color .12s}
body.workspace-active .workspace-main .portal-sidebar .tabs button span{font-size:10px;flex:none}
body.workspace-active .workspace-main .portal-sidebar .tabs button.active{background:var(--accent);color:white}
body.workspace-active .workspace-main .portal-content{min-width:0;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 12px 32px 0;scroll-padding-top:20px;overflow-anchor:none}
body.workspace-active>footer{display:none}
.workspace-section-field{display:none}
body.workspace-active .workspace-main .loading{min-height:320px;padding:60px 24px}
body.workspace-active .workspace-main h2{font-size:23px;line-height:1.45}
body.workspace-active .workspace-main h3{font-size:17px;line-height:1.5}
body.workspace-active .workspace-main .lead{font-size:14px;line-height:1.85;margin-top:12px;max-width:none}
body.workspace-active .workspace-main .reading-intro{margin:0 0 24px}
body.workspace-active .workspace-main .reading-intro h2{font-size:26px;margin:6px 0 12px}
body.workspace-active .workspace-main :is(.card,.metric){padding:24px;border-radius:12px;border:1px solid var(--line);box-shadow:none}
body.workspace-active .workspace-main .card>h2,body.workspace-active .workspace-main .card>h3{margin-bottom:16px}
body.workspace-active .workspace-main .card>p{font-size:14px;line-height:1.85}
body.workspace-active .workspace-main .card>p+p{margin-top:16px}
body.workspace-active .workspace-main .native-document{font-size:15px;line-height:1.9}
body.workspace-active .workspace-main .native-document h2{font-size:24px;line-height:1.5;margin:24px 0 20px}
body.workspace-active .workspace-main .native-document .reading-chapter>h2:first-child{margin-top:0}
body.workspace-active .workspace-main .native-document h3{font-size:18px;line-height:1.5;margin:26px 0 14px}
body.workspace-active .workspace-main .native-document p{margin:0 0 18px}
body.workspace-active .workspace-main .guide-header{gap:16px;padding-bottom:24px}
body.workspace-active .workspace-main .guide-header h2{font-size:26px}
body.workspace-active .workspace-main .guide-header p{font-size:14px}
body.workspace-active .workspace-main .reading-chapter{padding-top:28px;padding-bottom:32px;scroll-margin-top:20px}
body.workspace-active .workspace-main .reading-chapter>p{max-width:none}
body.workspace-active .workspace-main .marketmind-intro{margin-bottom:24px;max-width:none}
body.workspace-active .workspace-main .marketmind-intro h2{font-size:28px;margin-bottom:14px}
body.workspace-active .workspace-main .marketmind-admission h3{font-size:18px;margin:0 0 16px}
body.workspace-active .workspace-main .marketmind-summary{gap:20px}
body.workspace-active .workspace-main .metric b{font-size:28px}
body.workspace-active .workspace-main .metric p{font-size:12px;line-height:1.8}
body.workspace-active .workspace-main .case-tile{padding:0;border:1px solid var(--line);border-radius:12px;transform:none;transition:border-color .12s,box-shadow .12s}
body.workspace-active .workspace-main .case-tile:hover{transform:none;border-color:var(--accent);box-shadow:0 4px 16px #14243d0b}
body.workspace-active .workspace-main .case-tile h3{font-size:20px;line-height:1.5;margin-bottom:12px}
body.workspace-active .workspace-main .case-meeting{font-size:14px;line-height:1.65;padding:16px 20px;background:var(--accent-soft);color:var(--accent)}
body.workspace-active .workspace-main .case-description{padding:22px}
body.workspace-active .workspace-main .case-description>p{font-size:13px;line-height:1.85}
body.workspace-active .workspace-main .case-cover{display:block;width:100%;height:auto;aspect-ratio:16/8;object-fit:cover}
body.workspace-active .workspace-main .case-open{font-size:12px}
body.workspace-active .workspace-main .case-document{max-width:none;width:100%;font-size:15px;line-height:1.9;margin-top:20px}
body.workspace-active .workspace-main .case-document h1{font-size:28px;line-height:1.5;margin:12px 0 20px}
body.workspace-active .workspace-main .case-document :is(h2,h3){scroll-margin-top:20px}
body.workspace-active .workspace-main .case-document .case-context{color:var(--muted);font-size:12px;margin-bottom:18px}
body.workspace-active .workspace-main .case-document img{display:block;height:auto;aspect-ratio:1400/788;object-fit:cover}
.case-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:24px 0;border-block:1px solid var(--line);margin:24px 0 32px}
.case-figures>div{display:grid;gap:8px}.case-figures strong{font-size:24px;color:var(--accent)}.case-figures span{font-size:12px;color:var(--muted)}
@media(max-width:768px){body.workspace-active .workspace-main .case-document{font-size:14px}body.workspace-active .workspace-main .case-document h1{font-size:24px}.case-figures{grid-template-columns:1fr;gap:20px}}
body.workspace-active .workspace-main .portal-sidebar .reading-toc a{font-size:12px;line-height:1.6;padding:10px}
body.workspace-active .workspace-main .portal-sidebar .program-contents{margin:0;padding-top:16px;border-top:1px solid var(--line)}
body.workspace-active .workspace-main .portal-sidebar .program-contents>summary{font-size:12px}
body.workspace-active .workspace-main .quiz-shell{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 16px 32px 0;scrollbar-gutter:stable}
body.workspace-active .workspace-main .quiz-card h2{font-size:19px;line-height:1.8}
@media(max-width:1150px){body.workspace-active .workspace-top #identity{display:none}.workspace-program select{width:190px}}
@media(max-width:900px){body.workspace-active .top.workspace-top{grid-template-columns:148px minmax(0,1fr) auto;gap:20px;padding-inline:24px}body.workspace-active .workspace-top .brand{width:148px}.workspace-location>span:first-child{display:none}.workspace-location>span[aria-hidden]{display:none}body.workspace-active .workspace-top h1{font-size:20px}body.workspace-active .workspace-main .portal-layout{grid-template-columns:180px minmax(0,1fr);gap:22px}body.workspace-active main.workspace-main{padding-inline:24px}.workspace-program select{width:165px}}
@media(max-width:768px){body.workspace-active{--workspace-header:128px}.top.workspace-top{position:relative}body.workspace-active .top.workspace-top{grid-template-columns:138px minmax(0,1fr);grid-template-rows:42px 1fr;gap:10px 16px;padding:12px 20px}body.workspace-active .workspace-top .brand{width:138px;grid-column:1;grid-row:1}body.workspace-active .workspace-top .brand img{height:38px!important}body.workspace-active .workspace-context{grid-column:1/-1;grid-row:2}body.workspace-active .workspace-top h1{font-size:18px;line-height:1.4;margin-top:3px;-webkit-line-clamp:1}.workspace-location{font-size:10px}body.workspace-active .workspace-top .top-actions{grid-column:2;grid-row:1;justify-self:end;gap:12px}body.workspace-active .workspace-top #logout{font-size:11px}.workspace-program select{width:148px;font-size:10px;padding:8px}.workspace-program{max-width:calc(100vw - 230px)}body.workspace-active main.workspace-main{padding:18px 16px 12px}body.workspace-active .workspace-main .portal-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:16px}body.workspace-active .workspace-main .portal-sidebar{height:auto;max-height:220px;padding:0;scrollbar-gutter:auto}body.workspace-active .workspace-main .portal-sidebar>.eyebrow,body.workspace-active .workspace-main .portal-sidebar .tabs{display:none}.workspace-section-field{display:block}.workspace-section-field select{width:100%;padding:11px 14px;background:var(--card);border:1px solid var(--line);border-radius:8px;color:var(--accent);font-size:13px;font-weight:600}body.workspace-active .workspace-main .portal-sidebar .program-contents{margin-top:10px;padding-top:10px}body.workspace-active .workspace-main .portal-content{padding-right:6px;padding-bottom:24px}body.workspace-active .workspace-main .case-grid{grid-template-columns:1fr}body.workspace-active .workspace-main .case-tile h3{font-size:18px}body.workspace-active .workspace-main .case-description{padding:20px}body.workspace-active .workspace-main .native-document{font-size:14px;line-height:1.9}body.workspace-active .workspace-main .native-document h2{font-size:22px}body.workspace-active .workspace-main .native-document h3{font-size:17px}body.workspace-active .workspace-main .marketmind-intro h2,body.workspace-active .workspace-main .guide-header h2{font-size:24px}body.workspace-active .workspace-main :is(.card,.metric){padding:20px}body.workspace-active .workspace-main .case-tile{padding:0}.workspace-location strong{max-width:100%}body.workspace-active .workspace-main .metric b{font-size:25px}}
@media(prefers-reduced-motion:reduce){body.workspace-active *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:420px){body.workspace-active .top.workspace-top{grid-template-columns:124px minmax(0,1fr);padding-inline:16px;column-gap:12px}body.workspace-active .workspace-top .brand{width:124px}body.workspace-active .workspace-top .top-actions{gap:10px}.workspace-program{max-width:calc(100vw - 218px)}}
@media(max-width:768px){body.learning-page:not(.access-screen):not(.workspace-active) .top{height:128px;min-height:128px;padding:12px 20px}}

/* Primary sections belong to the header; only contextual contents stay left. */
.workspace-menu{display:contents}
.workspace-menu-toggle{display:none}
body.workspace-active{--workspace-header:164px}
body.workspace-active .top.workspace-top{grid-template-rows:minmax(48px,1fr) 48px;gap:12px 24px;padding-block:16px}
body.workspace-active .workspace-top .brand{grid-column:1;grid-row:1}
body.workspace-active .workspace-context{grid-column:2;grid-row:1}
body.workspace-active .workspace-top .top-actions{grid-column:3;grid-row:1}
#workspace-navigation{grid-column:1/-1;grid-row:2;min-width:0}
body.workspace-active .workspace-primary-nav{display:flex;align-items:center;gap:6px;margin:0;padding:0;border:0;overflow-x:auto;scrollbar-width:thin}
body.workspace-active .workspace-primary-nav button{flex:none;min-height:44px;border:1px solid transparent;border-radius:8px;background:transparent;color:#ffffffcf;font-size:12px;padding:10px 14px;white-space:nowrap}
body.workspace-active .workspace-primary-nav button.active{background:#ffffff20;color:#fff;border-color:#ffffff55}
body.workspace-active .workspace-primary-nav button:hover{background:#ffffff15;color:#fff}
body.workspace-active .workspace-primary-nav button:focus-visible,.workspace-menu-toggle:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
body.workspace-active .workspace-main .portal-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
body.workspace-active .workspace-main .portal-layout.has-submenu{grid-template-columns:220px minmax(0,1fr)}
body.workspace-active .workspace-main .portal-sidebar[hidden]{display:none}
body.workspace-active .workspace-main .portal-sidebar .program-contents{border-top:0;padding-top:0}
body.workspace-active .portal-sidebar .marketmind-toc{margin:0;padding:0;background:transparent;border:0}
body.workspace-active .portal-sidebar .marketmind-toc nav{grid-template-columns:1fr;gap:12px}
body.workspace-active .portal-sidebar .marketmind-toc a{font-size:12px}
@media(max-width:768px){
 body.workspace-active{--workspace-header:128px}
 body.workspace-active .top.workspace-top{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:42px minmax(0,1fr);gap:10px 16px;padding:12px 20px}
 body.workspace-active .workspace-context{grid-column:1/-1;grid-row:2}
 body.workspace-active .workspace-menu-toggle{display:flex;grid-column:2;grid-row:1;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #ffffff60;border-radius:8px;background:transparent;color:white;font-size:26px}
 body.workspace-active .workspace-menu{display:none;position:absolute;top:100%;left:16px;right:16px;max-height:calc(100dvh - var(--workspace-header) - 20px);overflow:auto;padding:16px;background:var(--accent);border:1px solid #ffffff35;border-radius:0 0 12px 12px;box-shadow:0 12px 24px #14243d30}
 body.workspace-active .workspace-top.menu-open .workspace-menu{display:block}
 body.workspace-active .workspace-primary-nav{display:grid;gap:6px;overflow:visible}
 body.workspace-active .workspace-primary-nav button{text-align:left;white-space:normal;padding:13px 14px}
 body.workspace-active .workspace-top .workspace-menu .top-actions{margin-top:12px;padding-top:12px;border-top:1px solid #ffffff35;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
 body.workspace-active .workspace-menu .workspace-program{max-width:100%;flex:1}
 body.workspace-active .workspace-menu .workspace-program select{width:100%;max-width:100%;font-size:12px}
 body.workspace-active .workspace-main .portal-layout.has-submenu{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 body.workspace-active .workspace-main .portal-sidebar{max-height:220px}
}
.workspace-menu-toggle[hidden]{display:none!important}

/* The welcome page is an editorial landing, with progress in its own section. */
body.workspace-active.landing-home{height:auto;min-height:100dvh;overflow:auto}
body.workspace-active.landing-home .top.workspace-top{position:absolute;top:0;left:0;right:0;background:transparent;box-shadow:none;border:0;z-index:20}
body.workspace-active.landing-home .workspace-context{display:none}
body.workspace-active.landing-home .workspace-top .top-actions{grid-column:2/-1;justify-content:flex-end}
body.workspace-active.landing-home main.workspace-main{height:auto;overflow:visible;padding:0;max-width:none}
body.workspace-active.landing-home .workspace-main .portal-layout{height:auto;display:block}
body.workspace-active.landing-home .workspace-main .portal-content{height:auto;overflow:visible;padding:0;scrollbar-gutter:auto}
.portal-home{background:var(--bg)}
.home-hero{min-height:760px;min-height:max(760px,100svh);display:flex;align-items:center;justify-content:center;padding:210px 32px 80px;background:linear-gradient(180deg,#101827b8,#10182785),url('/assets/adult-business-meeting-1600.jpg') center/cover;color:white;text-align:center}
body.academy .home-hero{background-image:linear-gradient(180deg,#21162d9c,#21162d70),url('/media/400493fa0e5d4643a686f71fee979c6b9ed57d99a4f2a3003c409e19cea48d74.webp')}
.home-hero-content{max-width:1120px;margin:auto}
.home-eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:.12em;color:#e8d3a1;margin:0 0 28px}
body.workspace-active .workspace-main .home-hero h1{font-size:clamp(42px,6.6vw,92px);font-weight:600;line-height:1.2;letter-spacing:-.025em;color:white;margin:0 0 32px}
.home-hero-content>p:not(.home-eyebrow){max-width:680px;margin:0 auto;font-size:18px;line-height:1.9;color:#f0edf4}
.home-hero-actions{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:38px;flex-wrap:wrap}
.home-primary{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:52px;padding:16px 24px;border:0;border-radius:4px;background:var(--gold,#e8bd54);color:#14243d;font-weight:600;font-size:14px}
body.academy .home-primary{background:#efbb48;color:#3c2c63}
.home-scroll{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border:1px solid #ffffff80;border-radius:50%;color:white;font-size:28px;text-decoration:none}
.home-content{max-width:1200px;margin:auto;padding:90px 40px}
.home-intro{max-width:800px;padding-bottom:60px}
body.workspace-active .workspace-main .home-intro h2{font-size:clamp(30px,4vw,48px);line-height:1.35;margin:20px 0}
.home-intro>p:last-child{font-size:17px;color:var(--muted);line-height:1.9}
.home-section{display:grid;grid-template-columns:220px minmax(0,1fr);gap:60px;padding:56px 0;border-top:1px solid var(--line)}
.home-section-label{display:flex;gap:18px;align-items:baseline;color:var(--muted);font-size:13px;line-height:1.8}
.home-section-label span{color:var(--accent);font-size:13px;font-variant-numeric:tabular-nums}
body.workspace-active .workspace-main .home-section h2{font-size:clamp(26px,3vw,38px);line-height:1.45;margin:0 0 20px}
.home-description{max-width:760px;font-size:17px;line-height:2;color:var(--muted);margin:0}
.home-link{display:inline-flex;align-items:center;gap:24px;background:transparent;border:0;border-bottom:1px solid var(--accent);border-radius:0;padding:12px 0 8px;margin-top:24px;color:var(--accent);font-size:14px;font-weight:600;text-align:left}
.home-help{margin-top:50px;padding:50px;background:var(--accent);color:white}
body.workspace-active .workspace-main .home-help h2{font-size:34px;margin:20px 0;color:white}
.home-help .eyebrow{color:#e8d3a1}.home-help p{max-width:680px;line-height:1.9;color:#ffffffce}.home-help .home-primary{margin-top:28px}
.portal-home :is(button,a):focus-visible{outline:3px solid var(--gold);outline-offset:5px}
@media(max-width:768px){
 body.workspace-active.landing-home .top.workspace-top{height:112px;min-height:112px;grid-template-rows:48px;align-content:start;padding-top:22px}
 body.workspace-active.landing-home .workspace-top .top-actions{justify-content:space-between}
 .home-hero{min-height:720px;min-height:100svh;padding:160px 22px 64px;background-position:55% center}
 body.workspace-active .workspace-main .home-hero h1{font-size:clamp(34px,8.5vw,58px);line-height:1.3;margin-bottom:24px}
 .home-hero-content>p:not(.home-eyebrow){font-size:15px;line-height:1.9}
 .home-eyebrow{font-size:10px;letter-spacing:.06em;margin-bottom:22px}
 .home-hero-actions{gap:18px;margin-top:28px}.home-primary{font-size:12px;padding:15px 18px}
 .home-content{padding:54px 24px}.home-intro{padding-bottom:35px}.home-intro>p:last-child{font-size:15px}
 .home-section{grid-template-columns:minmax(0,1fr);gap:22px;padding:36px 0}.home-description{font-size:15px}
 .home-section-label{gap:14px}.home-link{font-size:13px;margin-top:18px}
 .home-help{padding:30px 24px;margin-top:30px}body.workspace-active .workspace-main .home-help h2{font-size:26px}
 body.workspace-active.landing-home .workspace-menu{top:88px}
}
