/* Semantic visibility backs the view state owners. No quiz starts through CSS. */
[hidden]{display:none!important}
dialog:not([open]){display:none!important}
:root{--sc-header-height:128px;--sc-nav-reserve:76px;--sc-quiz-reserve:98px;--sc-light-border:#E4DDCF}
html{scroll-padding-top:calc(var(--sc-header-height) + 12px)}
body.sc-soft-ui{padding-top:0}
.sc-soft-ui .hub-header{position:sticky;top:0;z-index:42;padding-top:env(safe-area-inset-top,0px);background:var(--sc-brand-ivory);isolation:isolate}
.sc-soft-ui .hub-header-inner{padding-top:10px;padding-bottom:10px}
.sc-soft-ui .hub-header .brand{min-width:0;max-width:100%}
.sc-soft-ui .hub-header .brand-mark{flex:0 0 46px}
.sc-soft-ui .hub-header .brand small{line-height:1.7}
.sc-soft-ui :is([data-mm],[lang=my]){font-family:'Noto Sans Myanmar','Myanmar Text',sans-serif;letter-spacing:0!important;word-break:normal;overflow-wrap:break-word;hyphens:none;text-transform:none}
.sc-soft-ui :is(p,li,label,summary,button,a)[data-mm]{line-height:1.9}
.sc-soft-ui :is(h1,h2,h3,h4)[data-mm]{line-height:1.8}
.sc-soft-ui :is(button,.button,.small-button,.hub-button){height:auto;min-height:44px;overflow:visible}
.sc-soft-ui :is(.hub-home-hero h1,.hub-home-hero h1[lang=en]){font-size:clamp(38px,4.4vw,62px);line-height:1.12;letter-spacing:-.035em;margin-bottom:22px}
.sc-soft-ui .hub-home-hero h1 em{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-style:italic;text-decoration:none;background:linear-gradient(transparent 90%,#BCA26E55 90%);padding-bottom:.015em}
.sc-soft-ui .hub-home-hero #hub-home-copy{max-width:52ch;line-height:1.95;margin-bottom:22px}
.sc-soft-ui #hub-home-start{min-height:48px;padding:10px 26px;line-height:1.9}
.sc-soft-ui .hub-board-subjects{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:10px}
.sc-soft-ui .hub-board-subjects a{display:grid;grid-template-columns:20px minmax(0,1fr) 18px;gap:8px;min-height:62px;padding:14px;border-radius:18px;text-align:left;font-size:16px;line-height:1.5}
.sc-soft-ui .hub-board-subjects .hub-subject-name{padding:0;border:0;background:transparent;font:inherit;min-width:0}
.sc-soft-ui .hub-board-subjects a>svg{width:20px;height:20px}
.sc-soft-ui .hub-board-subjects a>span:last-child{display:flex;align-items:center;justify-content:flex-end;padding:0}
.sc-soft-ui .hub-board-subjects a>span:last-child svg{width:18px;height:18px}
.sc-soft-ui .hub-frontdoor-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px}
.sc-soft-ui .hub-frontdoor{padding:20px;min-height:104px;align-items:center}
.sc-soft-ui .hub-frontdoor-copy h3{font-size:20px;line-height:1.4;margin:0 0 6px}
.sc-soft-ui .hub-frontdoor-copy p{margin:0;font-size:16px;line-height:1.9}
.sc-soft-ui .hub-frontdoor-link{margin-left:auto;flex:none}
.sc-soft-ui .method{padding-block:36px;background:transparent;color:var(--sc-brand-teal,#304A53)}
/* Soft UI uses a cream surface; do not inherit home-v6 dark-surface text. */
.sc-soft-ui .method :is(.kicker,h2 em){color:var(--sc-brand-gold-text,#78613B)}
.sc-soft-ui .method .fine{color:var(--sc-brand-slate,#637177)}
.sc-soft-ui .method .step>span{background:var(--sc-brand-gold-tint,#F1EBDD);color:var(--sc-brand-gold-text,#78613B)}
.sc-soft-ui .method-grid{gap:32px;align-items:start}
.sc-soft-ui .method h2{font-size:clamp(26px,3vw,36px);line-height:1.35;margin-block:12px 18px}
.sc-soft-ui .method p{font-size:16px;line-height:1.95;color:var(--sc-brand-slate,#637177)}
.sc-soft-ui .method .step{border-color:var(--sc-light-border);padding-block:14px}
.sc-soft-ui .method .step h3{font-size:19px;line-height:1.8}
.sc-soft-ui .hub-enrollment{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px;background:var(--bg-card);border:1px solid var(--sc-light-border);border-radius:24px;margin-block:24px 36px}
.sc-soft-ui .hub-enrollment h2{font-size:24px;line-height:1.8;margin:8px 0}
.sc-soft-ui .hub-enrollment p{font-size:16px;line-height:1.95;margin:0}
.sc-soft-ui .hub-enrollment>a{flex:none}
#practice-landing{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:20px;border:1px solid var(--sc-light-border);border-radius:20px;background:var(--accent-math)}
#practice-landing>div{flex:1 1 280px}
#practice-landing .practice-instructions{flex-basis:100%;color:var(--text-muted)}
#practice-landing p{font-size:16px;line-height:1.95;margin:0}
#practice-landing>button{flex:0 1 auto;max-width:100%}
.practice-resources{margin-block:22px}
.practice-resources h2{font-size:22px;line-height:1.85}
.practice-resources>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.practice-resources article{padding:18px;background:var(--bg-card);border:1px solid var(--sc-light-border);border-radius:18px}
.practice-resources h3{font-size:18px;margin:0 0 8px}
.practice-resources article a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}
.sc-soft-ui .sc-contact-float{right:max(16px,env(safe-area-inset-right,0px));border-color:var(--sc-brand-gold)}
@supports(overflow:clip){body.sc-soft-ui{overflow-x:clip}}
@media(max-width:760px){
 body.sc-soft-ui{padding-bottom:calc(var(--sc-nav-reserve) + env(safe-area-inset-bottom,0px) + 24px)!important}
 .sc-soft-ui .hub-header-inner{min-height:64px;width:calc(100% - 32px);gap:12px}
 .sc-soft-ui .hub-header .brand-mark{width:40px;height:40px;flex-basis:40px}
 .sc-soft-ui .hub-header .brand-mark svg{width:40px;height:40px}
 .sc-soft-ui .hub-header .brand-name{font-size:24px;line-height:1.2}
 .sc-soft-ui .hub-header .brand small{font-size:9px;letter-spacing:.045em;margin-top:4px}
 .sc-soft-ui .hub-bottom-nav{z-index:44;background:var(--bg-card);padding:4px max(8px,env(safe-area-inset-right,0px)) max(4px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))}
 .sc-soft-ui .hub-bottom-nav a{min-height:52px;gap:3px;font-size:12px!important;padding:4px;line-height:1.5}
 .sc-soft-ui .hub-bottom-nav svg{width:21px;height:21px}
 .sc-soft-ui .hub-bottom-nav a[aria-current=page]{background:transparent;box-shadow:inset 0 -2px var(--sc-brand-gold);border-radius:12px}
 body.sc-soft-ui.sc-mobile-quiz-active{padding-bottom:calc(var(--sc-quiz-reserve) + env(safe-area-inset-bottom,0px) + 20px)!important}
 body.sc-mobile-quiz-active .hub-bottom-nav{display:none!important}
 #sc-mobile-quiz-nav:not([hidden]){z-index:45;padding:10px max(12px,env(safe-area-inset-right,0px)) max(10px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));gap:6px;isolation:isolate}
 #sc-mobile-quiz-nav button{min-width:0;min-height:48px;font-size:16px;line-height:1.7;flex:1 1 0;padding:10px 9px}
 #sc-mobile-quiz-nav [data-mobile-previous]{flex:0 0 44px;min-width:44px}
 #sc-mobile-quiz-nav [data-mobile-position]{flex:0 0 34px;font-size:12px}
 .sc-soft-ui #practice-active{scroll-margin-top:calc(var(--sc-header-height) + 12px)}
 .sc-soft-ui #workspace{scroll-margin-top:calc(var(--sc-header-height) + 12px)}
 .sc-soft-ui .hub-home-hero{padding-top:26px;padding-bottom:24px;gap:24px}
 .sc-soft-ui .hub-home-hero h1{font-size:clamp(34px,9vw,44px);line-height:1.15;margin-bottom:18px}
 .sc-soft-ui .hub-home-hero #hub-home-copy{font-size:16px;line-height:1.95;margin-bottom:18px}
 .sc-soft-ui .hub-frontdoor-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .sc-soft-ui .hub-frontdoor{padding:16px;min-height:0;gap:12px}
 .sc-soft-ui .hub-frontdoor-copy h3{font-size:18px}
 .sc-soft-ui .hub-frontdoor-copy p{font-size:16px}
 .sc-soft-ui .hub-frontdoor-art{width:44px;height:44px;flex-basis:44px}
 .sc-soft-ui .method{padding-block:24px}
 .sc-soft-ui .method-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .sc-soft-ui .hub-enrollment{display:block;padding:20px;margin-block:20px 28px}
 .sc-soft-ui .hub-enrollment>a{margin-top:16px;max-width:100%}
 #practice-landing{padding:18px;gap:12px}
 #practice-landing>button{width:100%}
 .sc-soft-ui .sc-contact-float{bottom:calc(var(--sc-nav-reserve) + env(safe-area-inset-bottom,0px) + 14px)}
 .practice-resources>div{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
 .sc-soft-ui .hub-board-subjects a{grid-template-columns:minmax(0,1fr) 18px;padding:12px;min-height:96px;align-content:space-between}
 .sc-soft-ui .hub-board-subjects a>svg{grid-column:1;grid-row:1}
 .sc-soft-ui .hub-board-subjects .hub-subject-name{grid-column:1/-1;grid-row:2}
 .sc-soft-ui .hub-board-subjects a>span:last-child{grid-column:2;grid-row:1}
}
@media(max-width:480px){.sc-soft-ui .hub-mobile-label{display:none}.sc-soft-ui .hub-header .brand-name{font-size:23px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
