:root{--site-paper:#FAF9F6;--site-surface:#FFFFFF;--site-ink:#1E293B;--site-muted:#526071;--site-line:#E2E8F0;--site-primary:#1D4ED8;--site-primary-soft:#EFF6FF;--site-radius:12px;--site-focus:0 0 0 3px rgba(29,78,216,.2)}
html{scroll-padding-top:5rem}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(29,78,216,.72);outline-offset:3px}
:where(h1,h2,h3){text-wrap:balance}

/* Resource catalogue */
body.mc-home{background:var(--site-paper)!important;color:var(--site-ink)!important}
body.mc-home #globalSearchInput,body.mc-home #searchInput{min-height:52px;border:1px solid #CBD5E1!important;border-radius:10px!important;background:#fff!important;color:var(--site-ink)!important;box-shadow:none!important}
body.mc-home #globalSearchInput:focus,body.mc-home #searchInput:focus{border-color:var(--site-primary)!important;box-shadow:var(--site-focus)!important}
body.mc-home .library-filter-tabs{gap:8px;padding:4px 2px 10px;scrollbar-width:thin}
body.mc-home .library-filter-tabs .cat-btn{min-height:48px;padding-inline:15px!important;border:1px solid #D7DEE8!important;border-radius:9px!important;background:#fff!important;color:#334155!important;font-size:.78rem!important;font-weight:650!important}
body.mc-home .library-filter-tabs .cat-btn.active-tab{border-color:var(--site-primary)!important;background:var(--site-primary)!important;color:#fff!important}
body.mc-home .library-refinement-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;border:1px solid var(--site-line);border-radius:var(--site-radius);background:#fff}
body.mc-home .library-refinement-field{display:grid;min-width:0;gap:7px}
body.mc-home .library-refinement-field label{color:#475569;font-size:.78rem;font-weight:700}
body.mc-home .library-refinement-field select{width:100%;min-width:0;min-height:48px;padding:10px 38px 10px 12px;border:1px solid #CBD5E1!important;border-radius:9px!important;background:#fff!important;color:var(--site-ink)!important;font:inherit;font-size:.86rem}
body.mc-home .library-refinement-field select:focus{border-color:var(--site-primary)!important;box-shadow:var(--site-focus)}
body.mc-home .personal-library-toolbar{padding:16px;border:1px solid var(--site-line)!important;border-radius:var(--site-radius)!important;background:#fff!important}
body.mc-home .personal-view-btn{min-height:48px!important;padding-inline:13px!important;border-radius:9px!important}
body.mc-home #resourceGrid .mc-material-row{border:1px solid var(--site-line)!important;border-radius:var(--site-radius)!important;background:#fff!important;box-shadow:none!important}
body.mc-home #resourceGrid .mc-material-row:hover{border-color:#B8C7DC!important;box-shadow:0 5px 18px rgba(30,41,59,.06)!important;transform:translateY(-2px)}
body.mc-home #resourceGrid .mc-material-main h3{color:var(--site-ink)!important;font-size:1.02rem!important;line-height:1.42}
body.mc-home #resourceGrid .mc-material-scope{color:var(--site-muted)!important}
body.mc-home #resourceGrid .mc-material-publisher{border:1px solid #C7D7F8;background:var(--site-primary-soft)!important;color:#1E40AF!important}
body.mc-home #resourceGrid .mc-material-action{min-height:48px;border-radius:9px!important}
body.mc-home #resourceGrid .mc-material-action.mc-material-open{border-color:var(--site-primary)!important;background:var(--site-primary)!important;color:#fff!important}
body.mc-home #mainSubjectGrid .mc-subject-item{border:1px solid var(--site-line)!important;border-radius:var(--site-radius)!important;background:#fff!important;box-shadow:none!important;transition:border-color .16s ease,transform .16s ease}
body.mc-home #mainSubjectGrid .mc-subject-item:hover{border-color:#B8C7DC!important;transform:translateY(-2px)}
body.mc-home .library-legal{border:1px solid var(--site-line)!important;border-radius:var(--site-radius)!important;background:#fff!important}
body.mc-home .library-legal-copy{color:#475569!important}
body.mc-home .library-legal-copy :is(h3,strong){color:var(--site-ink)!important}
@media(max-width:620px){body.mc-home .library-refinement-filters{grid-template-columns:minmax(0,1fr)}body.mc-home .library-filter-tabs{scroll-snap-type:x proximity}body.mc-home .library-filter-tabs .cat-btn{scroll-snap-align:start}body.mc-home #resourceGrid .mc-material-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){body.mc-home #resourceGrid .mc-material-row,body.mc-home #mainSubjectGrid .mc-subject-item{transition:none!important}body.mc-home #resourceGrid .mc-material-row:hover,body.mc-home #mainSubjectGrid .mc-subject-item:hover{transform:none!important}}

/* Login */
body.mc-login{background:var(--site-paper)!important;color:var(--site-ink)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important}
body.mc-login:before{display:none!important}
body.mc-login .brand{color:var(--site-ink)!important}body.mc-login .brand span,body.mc-login .eyebrow{color:var(--site-primary)!important}
body.mc-login .card{border:1px solid var(--site-line)!important;border-radius:14px!important;background:#fff!important;color:var(--site-ink)!important;box-shadow:0 12px 36px rgba(30,41,59,.07)!important;backdrop-filter:none!important}
body.mc-login :is(h1,h2,label){color:var(--site-ink)!important}body.mc-login p,body.mc-login .login-legal-footer,body.mc-login .login-legal-footer a{color:#526071!important}
body.mc-login input{min-height:48px;border-color:#CBD5E1!important;border-radius:9px!important;background:#fff!important;color:var(--site-ink)!important;box-shadow:none!important}
body.mc-login button,body.mc-login .btn{min-height:48px;border-radius:9px!important}
body.mc-login .primary{border-color:var(--site-primary)!important;background:var(--site-primary)!important;color:#fff!important;box-shadow:none!important}
body.mc-login .secondary{border-color:var(--site-line)!important;background:#F8FAFC!important;color:var(--site-ink)!important}

/* Dashboard and admin */
body.mc-dashboard{background:var(--site-paper)!important;color:var(--site-ink)!important}
body.mc-dashboard>header{border-color:var(--site-line)!important;background:#fff!important;color:var(--site-ink)!important;backdrop-filter:none!important}
body.mc-dashboard>header :is(a,span),body.mc-dashboard :is(h1,h2,h3,h4){color:var(--site-ink)!important}
body.mc-dashboard :is(.dashboard-hero,.dashboard-card,.dashboard-panel,.dashboard-section){border-color:var(--site-line)!important;background:#fff!important;color:var(--site-ink)!important;box-shadow:none!important}
body.mc-dashboard :is(button,input,select,textarea,a.dashboard-secondary){min-height:48px}
body.mc-dashboard :is(input,select,textarea){border-color:#CBD5E1!important;background:#fff!important;color:var(--site-ink)!important}
body.mc-admin{background:var(--site-paper)!important;color:var(--site-ink)!important}
body.mc-admin>header{border-bottom:1px solid var(--site-line)!important;background:#fff!important;color:var(--site-ink)!important}
body.mc-admin .card{border:1px solid var(--site-line)!important;border-radius:var(--site-radius)!important;background:#fff!important;box-shadow:none!important}
body.mc-admin :is(h1,h2,h3,label){color:var(--site-ink)!important}
body.mc-admin :is(input,select,textarea,button){min-height:48px;border-radius:9px!important}

/* Blog and FAQ */
body.editorial-page{background:var(--site-paper)!important;color:var(--site-ink)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
body.editorial-page .editorial-header{border-color:var(--site-line)!important;background:#fff!important}
body.editorial-page .editorial-brand,body.editorial-page .editorial-title,body.editorial-page .editorial-content :is(h2,h3),body.editorial-page .editorial-card h2{color:var(--site-ink)!important}
body.editorial-page .editorial-brand span{color:var(--site-primary)!important}
body.editorial-page .editorial-nav a,body.editorial-page a{color:var(--site-primary)!important}
body.editorial-page .editorial-eyebrow,body.editorial-page .editorial-tag{color:#1E40AF!important}
body.editorial-page .editorial-lede,body.editorial-page .editorial-content,body.editorial-page .editorial-card p,body.editorial-page .editorial-breadcrumb{color:#526071!important}
body.editorial-page .editorial-card,body.editorial-page .editorial-faq details{border-color:var(--site-line)!important;border-radius:var(--site-radius)!important;background:#fff!important;box-shadow:none!important}
body.editorial-page .editorial-content strong,body.editorial-page .editorial-faq summary{color:var(--site-ink)!important}
body.editorial-page .editorial-callout{border-color:#C7D7F8!important;background:#EFF6FF!important}
body.editorial-page .editorial-content th{background:#F1F5F9!important;color:var(--site-ink)!important}
body.editorial-page .editorial-footer{border-color:var(--site-line)!important;color:#526071!important}
body.editorial-page .reading-progress{background:var(--site-primary)!important}

/* Legal pages */
body.mc-legal-page{background:var(--site-paper)!important;color:var(--site-ink)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important}
body.mc-legal-page header,body.mc-legal-page .site-header{border-color:var(--site-line)!important;background:#fff!important}
body.mc-legal-page .brand,body.mc-legal-page h1,body.mc-legal-page h2{color:var(--site-ink)!important}
body.mc-legal-page .brand span,body.mc-legal-page a{color:var(--site-primary)!important}
body.mc-legal-page p,body.mc-legal-page li,body.mc-legal-page .updated{color:#526071!important}
body.mc-legal-page .notice{border:1px solid var(--site-line)!important;border-left:3px solid var(--site-primary)!important;border-radius:10px!important;background:#fff!important}
body.mc-legal-page footer,body.mc-legal-page .site-footer{border-color:var(--site-line)!important;color:#64748B!important}

/* 404 */
body.mc-not-found{display:grid!important;min-height:100vh;place-items:center;padding:32px 20px!important;background:var(--site-paper)!important;color:var(--site-ink)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important}
body.mc-not-found main{width:min(100%,640px);text-align:center}
body.mc-not-found h1{margin:0 0 16px;color:var(--site-ink);font-size:clamp(2rem,7vw,3.6rem);line-height:1.08}
body.mc-not-found p{color:#526071;line-height:1.7}
body.mc-not-found .not-found-code{display:inline-grid;width:84px;height:84px;place-items:center;margin-bottom:26px;border:1px solid #C7D7F8;border-radius:14px;background:var(--site-primary-soft);color:var(--site-primary);font-size:1.7rem;font-weight:800}
body.mc-not-found .not-found-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
body.mc-not-found .not-found-actions a{display:inline-flex;min-height:48px;align-items:center;justify-content:center;padding:12px 18px;border:1px solid var(--site-line);border-radius:9px;background:#fff;color:var(--site-ink);font-weight:700;text-decoration:none}
body.mc-not-found .not-found-actions a:first-child{border-color:var(--site-primary);background:var(--site-primary);color:#fff}
@media(max-width:520px){body.mc-not-found .not-found-actions{display:grid;grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.editorial-page .editorial-card,body.editorial-page .editorial-card:hover{transition:none!important;transform:none!important}}


/* ============================================================
   STUDY VAULT VISUAL REFRESH — responsive, readable, restrained
   Override-only layer; catalogue data and interactions remain intact.
   ============================================================ */
:root{--site-paper:#f5f4ef;--site-surface:#fff;--site-ink:#182230;--site-muted:#596579;--site-line:#e1e5eb;--site-primary:#173f65;--site-primary-soft:#eaf1f7;--site-accent:#c18b28;--site-radius:18px;--site-shadow:0 10px 28px rgba(24,34,48,.07)}
html{background:var(--site-paper)!important;scroll-padding-top:88px}
body.mc-home{background:var(--site-paper)!important;color:var(--site-ink)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}
body.mc-home ::selection{background:#dce8f3;color:#17324c}
body.mc-home header.sticky{background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--site-line)!important;box-shadow:0 3px 18px rgba(24,34,48,.045);}
#siteHeaderInner{height:76px!important;max-width:1240px!important;gap:14px!important}
#siteHeaderInner>a:first-child{gap:11px!important;text-decoration:none}
#siteHeaderInner>a:first-child img{width:44px!important;height:44px!important;border:1px solid #e6d7b4!important;background:#fff!important}
#siteHeaderInner>a:first-child>div span:first-child{color:#172435!important;font-size:17px!important;letter-spacing:-.035em!important}
#siteHeaderInner>a:first-child>div span:first-child span{color:#244f72!important}
#siteHeaderInner>a:first-child>div span:last-child{color:#697789!important;font-size:9px!important;letter-spacing:.17em!important}
#siteNavToggle{min-height:44px!important;padding:0 15px!important;border:1px solid #d9dee5!important;border-radius:11px!important;background:#f7f8fa!important;color:#263548!important;font-weight:700!important;box-shadow:none!important;gap:9px!important}
#siteNavToggle:hover{background:#edf2f6!important;border-color:#bac8d6!important}
#mobileAccountLink,#mobileSignupLink{display:none!important}
#headerActions{display:flex!important;gap:8px!important}
#headerActions a{width:40px!important;height:40px!important;border-radius:11px!important;background:#f4f6f8!important;border:1px solid #e0e5eb!important;color:#35516d!important}
#headerActions a:hover{background:#eaf1f7!important;color:#173f65!important}
#mainContent{max-width:1240px!important;padding:34px 28px 52px!important;color:var(--site-ink)!important}
.library-discovery{position:relative!important;overflow:hidden!important;padding:clamp(24px,4vw,42px)!important;border:1px solid #e1e6ec!important;border-radius:24px!important;background:#fff!important;box-shadow:var(--site-shadow)!important}
.library-discovery:after{content:"";position:absolute;right:-70px;top:-110px;width:290px;height:290px;border:1px solid rgba(35,78,112,.09);border-radius:50%;pointer-events:none}
.library-heading,.library-intro,.library-search-wrap,.library-search-hint,.library-status{position:relative;z-index:1}
.library-eyebrow{color:#9a6c1c!important;font-size:.72rem!important;font-weight:800!important;letter-spacing:.16em!important;margin:0 0 12px!important}
#libraryTitle{max-width:720px!important;color:#172435!important;font-size:clamp(2rem,5vw,3.4rem)!important;line-height:1.04!important;letter-spacing:-.055em!important;font-weight:850!important;margin:0!important}
.library-intro{max-width:670px!important;color:#536174!important;font-size:1rem!important;line-height:1.7!important;margin:15px 0 22px!important}
.library-search-wrap{max-width:780px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.library-search-wrap>label{display:block!important;color:#26384c!important;font-size:.83rem!important;font-weight:750!important;margin:0 0 8px!important}
.library-search-field{min-height:62px!important;display:flex!important;align-items:center!important;gap:13px!important;padding:0 18px!important;border:1px solid #cbd5df!important;border-radius:14px!important;background:#fff!important;box-shadow:0 6px 20px rgba(24,34,48,.07)!important}
.library-search-field>i{color:#60758a!important;font-size:1rem!important}
body.mc-home #globalSearchInput{min-height:58px!important;padding:12px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#172435!important;font-size:1rem!important;box-shadow:none!important}
body.mc-home #globalSearchInput::placeholder{color:#8a96a5!important}
body.mc-home #globalSearchInput:focus{outline:none!important;box-shadow:none!important}
.library-search-field:focus-within{border-color:#527da1!important;box-shadow:0 0 0 4px rgba(41,92,137,.11),0 6px 20px rgba(24,34,48,.06)!important}
.library-search-hint{color:#667487!important;font-size:.78rem!important;margin:9px 0 0!important}
.library-status{display:inline-flex!important;align-items:center!important;gap:8px!important;margin-top:18px!important;padding:9px 13px!important;border:1px solid #dce6ee!important;border-radius:999px!important;background:#f2f7fa!important;color:#35536e!important;font-size:.78rem!important;font-weight:700!important}
#study-vault-guide,#study-vault-faq{margin:22px 0!important;padding:22px 24px!important;border:1px solid var(--site-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 4px 16px rgba(24,34,48,.035)!important}
#study-vault-guide h2,#study-vault-faq h2{color:#1b2a3a!important;font-size:1.12rem!important;font-weight:800!important;letter-spacing:-.02em!important}
#study-vault-guide p,#study-vault-guide li,#study-vault-faq p,#study-vault-faq summary{color:#566477!important;line-height:1.7!important}
#study-vault-guide ul{padding-left:1.2rem!important;list-style:disc!important}
.library-section-label{margin:34px 0 16px!important}
.library-section-label h2{color:#19283a!important;font-size:1.45rem!important;font-weight:850!important;letter-spacing:-.035em!important}
.library-section-note{color:#687588!important;font-size:.9rem!important;margin-top:5px!important}
.subject-group-tabs{display:flex!important;gap:8px!important;overflow-x:auto!important;padding:5px 2px 12px!important;scrollbar-width:thin}
.subject-group-tab{min-height:42px!important;padding:0 16px!important;border:1px solid #dce2e9!important;border-radius:10px!important;background:#fff!important;color:#536174!important;font-size:.84rem!important;font-weight:700!important;white-space:nowrap!important}
.subject-group-tab.active,.subject-group-tab[aria-selected="true"]{background:#173f65!important;border-color:#173f65!important;color:#fff!important;box-shadow:0 4px 10px rgba(23,63,101,.16)!important}
#mainSubjectGrid{gap:13px!important;margin-top:6px!important}
#mainSubjectGrid .mc-subject-item{min-height:128px!important;padding:18px!important;border:1px solid #e0e5eb!important;border-radius:15px!important;background:#fff!important;color:#1d2c3d!important;box-shadow:0 3px 12px rgba(24,34,48,.035)!important;text-align:left!important}
#mainSubjectGrid .mc-subject-item:hover{border-color:#b9cad9!important;box-shadow:0 9px 22px rgba(24,34,48,.08)!important;transform:translateY(-2px)!important}
#mainSubjectGrid .mc-subject-item :is(h3,h4,strong,span,p){color:inherit!important}
#subjectDetailView{color:var(--site-ink)!important}
#selectedSubjectTitle{color:#18283a!important}
body.mc-home #searchInput{background:#fff!important;color:#18283a!important;border:1px solid #cbd5df!important;min-height:48px!important}
body.mc-home #resourceGrid .mc-material-row{border:1px solid #e1e6ec!important;border-radius:15px!important;background:#fff!important;box-shadow:0 3px 14px rgba(24,34,48,.04)!important;padding:17px!important;margin-bottom:12px!important}
body.mc-home #resourceGrid .mc-material-row:hover{border-color:#bdcbd8!important;box-shadow:0 9px 22px rgba(24,34,48,.075)!important;transform:translateY(-1px)!important}
body.mc-home #resourceGrid .mc-material-main h3{color:#1b2a3a!important}
body.mc-home #resourceGrid .mc-material-scope{color:#657286!important}
body.mc-home .mc-material-publisher{background:#edf3f8!important;color:#234d70!important;border-color:#cfdae4!important}
body.mc-home .mc-material-action{border-radius:9px!important}
body.mc-home .mc-material-open{background:#173f65!important;color:#fff!important}
body.mc-home .library-legal{margin-top:30px!important;border:1px solid #dfe4e9!important;border-radius:17px!important;background:#fff!important;box-shadow:0 4px 16px rgba(24,34,48,.035)!important;overflow:hidden}
body.mc-home .library-legal>summary{padding:20px 22px!important;cursor:pointer!important;list-style:none!important;color:#1c2b3c!important}
body.mc-home .library-legal>summary::-webkit-details-marker{display:none}
body.mc-home .library-legal>summary:after{content:"＋";float:right;color:#536a80;font-size:1.1rem;font-weight:700}
body.mc-home .library-legal[open]>summary:after{content:"−"}
body.mc-home .library-legal>summary span:first-child{color:#1b2a3a!important;font-size:1rem!important}
body.mc-home .library-legal>summary span:last-child{color:#9a6c1c!important;font-size:.78rem!important}
body.mc-home .library-legal-copy{padding:0 22px 22px!important;color:#526174!important}
body.mc-home .library-legal-copy p{color:#526174!important;font-size:.88rem!important;line-height:1.75!important}
body.mc-home .library-legal-copy strong{color:#26384c!important}
body.mc-home .library-legal-copy h3{color:#1e3449!important}
body.mc-home .library-legal-copy>div>section{border:1px solid #e1e6ec!important;border-radius:13px!important;background:#f8fafc!important}
body.mc-home .library-legal-copy>section[aria-labelledby="resourceDisclaimerTitle"]{border:1px solid #eadfca!important;border-radius:13px!important;background:#fffaf0!important}
body.mc-home .library-legal-copy>section[aria-labelledby="resourceDisclaimerTitle"] h3{color:#8a621c!important}
body.mc-home footer{background:#fff!important;border-color:#e2e7ed!important;color:#647184!important}
body.mc-home footer a{color:#355a7a!important}
body.mc-home .mobile-bottom-nav{z-index:1000!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.97)!important;border-top:1px solid #e1e6ec!important;box-shadow:0 -8px 24px rgba(24,34,48,.07)!important;}
body.mc-home .mobile-bottom-nav button{min-width:0!important;min-height:54px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:#536477!important;font-size:.69rem!important;font-weight:700!important;box-shadow:none!important}
body.mc-home .mobile-bottom-nav button i{font-size:1.05rem!important;color:#315675!important}
body.mc-home .mobile-bottom-nav button:active{background:#edf3f7!important}
body.mc-home :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid rgba(41,92,137,.55)!important;outline-offset:3px!important}
@media(min-width:900px){body.mc-home .mobile-bottom-nav{display:none!important}body.mc-home{padding-bottom:0!important}#mainContent{padding-top:42px!important}.library-discovery{padding:44px 48px!important}}
@media(max-width:640px){#siteHeaderInner{height:68px!important;padding-inline:14px!important;gap:8px!important}#siteHeaderInner>a:first-child{gap:8px!important;min-width:0!important}#siteHeaderInner>a:first-child img{width:38px!important;height:38px!important}#siteHeaderInner>a:first-child>div span:first-child{font-size:14px!important;white-space:nowrap!important}#siteHeaderInner>a:first-child>div span:last-child{font-size:8px!important;letter-spacing:.12em!important}#siteNavToggle{min-height:40px!important;padding:0 11px!important;font-size:.82rem!important}#headerActions{gap:5px!important}#headerActions a{width:35px!important;height:35px!important}#mainContent{padding:20px 14px 36px!important}.library-discovery{padding:23px 18px!important;border-radius:18px!important}.library-intro{font-size:.91rem!important;line-height:1.65!important;margin:12px 0 18px!important}.library-search-field{min-height:56px!important;padding-inline:13px!important}body.mc-home #globalSearchInput{min-height:52px!important;font-size:.92rem!important}#study-vault-guide,#study-vault-faq{padding:17px!important;margin:15px 0!important}.library-section-label{margin-top:27px!important}#mainSubjectGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}#mainSubjectGrid .mc-subject-item{min-height:112px!important;padding:13px!important;border-radius:12px!important}body.mc-home .library-legal>summary{padding:17px!important}body.mc-home .library-legal-copy{padding:0 17px 18px!important}body.mc-home #resourceGrid .mc-material-row{padding:13px!important}}
@media(prefers-reduced-motion:reduce){body.mc-home *,body.mc-home *:before,body.mc-home *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}


/* Mobile + PWA completion layer (kept separate from catalogue behavior). */
@media(max-width:760px){
  body.mc-home{padding-bottom:calc(104px + env(safe-area-inset-bottom))!important;overflow-x:clip!important}
  #siteHeaderInner{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:8px!important;height:68px!important;padding-inline:12px!important}
  #siteHeaderInner>a:first-child{min-width:0!important;gap:8px!important;overflow:hidden!important}
  #siteHeaderInner>a:first-child img{width:36px!important;height:36px!important;flex:0 0 36px!important}
  #siteHeaderInner>a:first-child>div{min-width:0!important}
  #siteHeaderInner>a:first-child>div span:first-child{font-size:clamp(12px,3.5vw,14px)!important;white-space:nowrap!important;letter-spacing:-.035em!important}
  #siteHeaderInner>a:first-child>div span:last-child{font-size:8px!important;letter-spacing:.11em!important;white-space:nowrap!important}
  #siteNavToggle{min-height:40px!important;padding:0 11px!important;gap:7px!important;font-size:12px!important;white-space:nowrap!important}
  #mobileAccountLink{display:flex!important;width:38px!important;height:38px!important;align-items:center!important;justify-content:center!important;border-radius:11px!important;background:#f4f6f8!important;border:1px solid #e0e5eb!important;color:#35516d!important}
  #mobileSignupLink,#headerActions{display:none!important}
  body.mc-home .mobile-bottom-nav{z-index:1000!important;left:0!important;right:0!important;bottom:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid #e1e6ec!important;box-shadow:0 -6px 18px rgba(24,34,48,.07)!important}
  body.mc-home .mobile-bottom-nav button{min-height:54px!important;min-width:0!important;padding:4px 2px!important;font-size:11px!important;gap:4px!important;color:#40536a!important}
  body.mc-home .mobile-bottom-nav button i{font-size:18px!important;color:#244d70!important}
  #icseStudyTools{right:12px!important;bottom:calc(94px + env(safe-area-inset-bottom))!important;z-index:89!important}
  #icseStudyPanel{max-height:calc(100vh - 190px)!important;max-height:calc(100dvh - 190px)!important;width:min(370px,calc(100vw - 24px))!important;overscroll-behavior:contain!important}
  #icseStudyToggle{min-height:46px!important;padding:11px 15px!important;font-size:14px!important}
  .pwa-install-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;margin-top:16px!important;padding:14px!important}
  .pwa-install-card[hidden]{display:none!important}
  .pwa-install-card details{grid-column:1/-1!important}
  .offline-notice{margin:14px 0 0!important;padding:12px 14px!important}
  .offline-notice[hidden]{display:none!important}
}
@media(max-width:380px){
  #siteHeaderInner{padding-inline:9px!important;gap:6px!important}
  #siteHeaderInner>a:first-child img{width:33px!important;height:33px!important;flex-basis:33px!important}
  #siteHeaderInner>a:first-child>div span:first-child{font-size:12px!important}
  #siteHeaderInner>a:first-child>div span:last-child{display:none!important}
  #siteNavToggle{padding:0 9px!important;font-size:11px!important}
  #mobileAccountLink{width:35px!important;height:35px!important}
  #icseStudyToggle{padding:10px 13px!important;font-size:13px!important}
}
@media(min-width:761px) and (max-width:899px){
  body.mc-home{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
  #icseStudyTools{bottom:calc(92px + env(safe-area-inset-bottom))!important;z-index:89!important}
  #icseStudyPanel{max-height:calc(100dvh - 180px)!important}
}
@media(min-width:900px){
  #mobileAccountLink,#mobileSignupLink{display:none!important}
  #headerActions{display:flex!important}
  body.mc-home .mobile-bottom-nav{display:none!important}
}
.pwa-install-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:16px 18px;border:1px solid #dce5ec;border-radius:14px;background:#f7fafc;color:#1e3449}
.pwa-install-card[hidden],.pwa-install-card details[hidden]{display:none!important}
.pwa-install-copy{display:flex;flex:1 1 220px;flex-direction:column;gap:4px;min-width:0}
.pwa-install-copy strong{font-size:.9rem;font-weight:800;color:#1b2a3a}
.pwa-install-copy span{font-size:.8rem;line-height:1.55;color:#596579}
#pwaInstallAction{min-height:44px;padding:0 16px;border:1px solid #173f65;border-radius:10px;background:#173f65;color:#fff;font:inherit;font-size:.83rem;font-weight:750;cursor:pointer}
#pwaInstallAction[hidden]{display:none!important}
#pwaInstallAction:disabled{opacity:.6;cursor:wait}
#pwaIosInstallGuide{flex:1 0 100%;color:#536174;font-size:.82rem;line-height:1.65}
#pwaIosInstallGuide summary{cursor:pointer;color:#234d70;font-weight:750}
#pwaIosInstallGuide ol{padding-left:1.25rem;margin:9px 0 0}
.offline-notice{padding:13px 16px;border:1px solid #e7d7b7;border-radius:12px;background:#fff9ec;color:#77551d;font-size:.84rem;line-height:1.6}
.offline-notice[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#icseStudyTools,#icseStudyPanel{scroll-behavior:auto!important;transition:none!important}}


/* Dark-mode subject cards: keep card surfaces aligned with dark theme tokens.
   The shared white-card rule above previously mixed dark-mode cream text with
   white surfaces, making subject names and hints difficult to read. */
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-subject-item,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-subject-item {
  background:var(--mc-paper-2) !important;
  border-color:var(--mc-rule) !important;
  color:var(--mc-ink) !important;
}
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-subject-item:hover,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-subject-item:hover {
  background:var(--mc-paper-3) !important;
  border-color:var(--mc-forest) !important;
}
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-subject-name,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-subject-name {
  color:var(--mc-ink) !important;
}
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-subject-hint,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-subject-hint {
  color:var(--mc-ink-mute) !important;
}
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-art-blue,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-art-blue { color:#8CC7E8; background:#263B49; }
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-art-rose,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-art-rose { color:#E7A99B; background:#47312E; }
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-art-green,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-art-green { color:#A7D5AE; background:#2E4435; }
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-art-lavender,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-art-lavender { color:#C7B2E6; background:#3C3448; }
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-art-sky,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-art-sky { color:#A5D7D4; background:#2B4140; }
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-art-sand,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-art-sand { color:#E2C58F; background:#493D29; }
body.mc-home[data-site-mode="dark"] #mainSubjectGrid .mc-art-sage,
body.mc-home[data-site-mode="midnight"] #mainSubjectGrid .mc-art-sage { color:#B7D0B8; background:#354238; }
