/* v156: student curriculum only. No answer, progress, access or navigation logic changes. */
body.study-soft-shell{
 --study-soft-light:#fff;
 --study-soft-shadow:#233d572b;
 --study-soft-inset:#233d5729;
 --study-soft-raised:-7px -7px 17px var(--study-soft-light),9px 12px 21px var(--study-soft-shadow),inset 1px 1px 1px color-mix(in srgb,var(--study-soft-light) 65%,transparent);
 --study-soft-control:-3px -3px 7px var(--study-soft-light),4px 5px 8px var(--study-soft-shadow);
 --study-soft-recess:inset 3px 3px 7px var(--study-soft-inset),inset -3px -3px 7px var(--study-soft-light);
}
html:not([data-theme="chalk-light"]) body.study-soft-shell{
 --study-soft-light:#ffffff0c;
 --study-soft-shadow:#00000085;
 --study-soft-inset:#00000075;
}
/* Shared navbar: keep the native back button, menu, profile and grade behavior. */
html[data-theme] body.study-soft-shell>header.topbar.container.student-mobile-topbar{
 position:relative;inset:auto;min-height:88px;height:auto;margin:20px auto 16px;padding:8px 20px;
 border:1px solid transparent;border-radius:24px;background:var(--bg);color:var(--text);
 box-shadow:var(--study-soft-raised);backdrop-filter:none;z-index:210;
}
body.study-soft-shell>header.topbar::after{display:none}
html[data-theme] body.study-soft-shell>header.topbar .site-brand{background:none;border:0;border-radius:0;box-shadow:none}
html[data-theme] body.study-soft-shell>header.topbar .site-brand-copy :is(strong,small){color:var(--text)}
html[data-theme] body.study-soft-shell>header.topbar .mobile-menu-toggle{background:none;border:0;box-shadow:none;color:var(--text)}
html[data-theme] body.study-soft-shell>header.topbar .mobile-menu-toggle span{background:var(--text)}
html[data-theme] body.study-soft-shell>header.topbar .topbar-student-back{background:var(--bg);color:var(--text);border-color:transparent;box-shadow:var(--study-soft-control)}
html[data-theme] body.study-soft-shell>header.topbar>nav.open{background:var(--bg);border:1px solid var(--line);border-radius:22px;box-shadow:var(--study-soft-raised)}
html[data-theme] body.study-soft-shell>header.topbar>nav.open .nav-action{background:var(--bg);border-color:transparent;color:var(--text);box-shadow:var(--study-soft-control)}
/* A single neutral surface language; existing layout and images are retained. */
html[data-theme] body.study-soft-shell :is(.subject-catalogue .subject-card,.curriculum-study-card,.curriculum-study-shell>.curriculum-exam-action,.direct-question-card,.direct-question-toolbar,.legal-page>.legal-card,.directory-hero,.directory-group,.directory-controls,.friendly-empty){
 background:var(--bg);color:var(--text);border:1px solid transparent;box-shadow:var(--study-soft-raised);filter:none;
}
html[data-theme] body.study-soft-shell :is(.subject-catalogue .subject-card,.curriculum-study-card,.direct-question-card,.legal-page>.legal-card,.directory-hero,.directory-group){border-radius:24px}
body.study-soft-shell :is(.subject-card,.curriculum-study-card,.curriculum-exam-action,.directory-lesson){transition:transform .12s ease}
body.study-soft-shell .subject-catalogue .subject-card:is(:hover,:focus-visible){background:var(--bg);box-shadow:var(--study-soft-raised);border-color:transparent;transform:none}
body.study-soft-shell .subject-catalogue .subject-card:hover .subject-cover-icon img{transform:none}
body.study-soft-shell .subject-catalogue .subject-prep-badge{background:var(--bg);color:var(--text);border-color:transparent;box-shadow:var(--study-soft-recess)}
body.study-soft-shell .subject-catalogue .subject-language-block h2{color:var(--text)}
body.study-soft-shell .subject-catalogue .subject-language-block p{color:var(--muted)}
body.study-soft-shell .home-subject-progress{background:none;border-color:transparent}
body.study-soft-shell .home-subject-progress>i{background:var(--bg);box-shadow:var(--study-soft-recess)}
/* Unit and lesson illustrations stay visible without a colored block behind them. */
body.study-soft-shell .curriculum-study-art{background:var(--bg);color:var(--text);border-bottom:1px solid var(--line)}
body.study-soft-shell .curriculum-study-art::after{display:none}
body.study-soft-shell .curriculum-study-label{color:var(--text)}
body.study-soft-shell .curriculum-study-grade{background:var(--bg);color:var(--text);border-color:transparent;box-shadow:var(--study-soft-recess)}
body.study-soft-shell .curriculum-study-number{color:var(--text);opacity:.18}
body.study-soft-shell .curriculum-study-book{stroke:var(--text);opacity:.65;transform:none;transition:none}
body.study-soft-shell .curriculum-study-card[href]:hover{transform:none;border-color:transparent;box-shadow:var(--study-soft-raised)}
body.study-soft-shell .curriculum-study-card[href]:hover .curriculum-study-book{transform:none}
body.study-soft-shell .curriculum-study-enter{margin:0 18px 18px;min-height:44px;border:1px solid transparent;border-radius:12px;background:var(--bg);color:var(--text);box-shadow:var(--study-soft-control)}
body.study-soft-shell .curriculum-study-card.locked .curriculum-study-enter{background:var(--bg);color:var(--muted);box-shadow:var(--study-soft-recess)}
body.study-soft-shell .curriculum-study-card .lock-badge{background:var(--bg);color:var(--text);border:1px solid var(--line);box-shadow:none}
body.study-soft-shell .curriculum-study-copy :is(h2,h3){color:var(--text)}
body.study-soft-shell .curriculum-study-copy p{color:var(--muted)}
.curriculum-study-copy--with-cover{
 display:grid;grid-template-columns:clamp(72px,8vw,96px) minmax(0,1fr);align-items:center;gap:12px;
}
.curriculum-study-copy--with-cover>img{display:block;width:100%;height:auto;border-radius:12px}
body.study-soft-shell .curriculum-study-shell>.curriculum-exam-action :is(b,small){color:var(--text)}
body.study-soft-shell .curriculum-study-shell>.curriculum-exam-action small{color:var(--muted)}
body.study-soft-shell .curriculum-study-shell>.curriculum-exam-action.is-unavailable{border:1px dashed var(--line);box-shadow:var(--study-soft-recess);color:var(--muted)}
/* Progress widths, colored fills and completion markers are deliberately untouched. */
body.study-soft-shell .curriculum-study-progress>i{background:var(--bg);box-shadow:var(--study-soft-recess)}
body.study-soft-shell .curriculum-study-progress>:is(span,strong){color:var(--text)}
/* Study questions use a neutral shell; feedback keeps its green/red semantic states. */
html[data-theme] body.study-soft-shell .direct-qa-page .direct-question-card{background:var(--bg);color:var(--text);border-color:transparent;box-shadow:var(--study-soft-raised)}
body.study-soft-shell .direct-question-card.is-active{outline:0;animation:none}
body.study-soft-shell .direct-question-card .direct-question-heading>span{background:var(--bg);color:var(--text);border-color:transparent;box-shadow:var(--study-soft-recess)}
body.study-soft-shell .direct-question-card .direct-question-heading h2{color:var(--text);text-shadow:none}
body.study-soft-shell .direct-question-card .direct-question-heading small{color:var(--muted)}
body.study-soft-shell .direct-question-toolbar{backdrop-filter:none}
body.study-soft-shell :is(.direct-study-nav-button,.direct-written-form>.primary,.direct-reveal,.direct-next-question,.legal-page>.legal-card>.primary){background:var(--bg);color:var(--text);border:1px solid transparent;box-shadow:var(--study-soft-control);text-shadow:none;transition:transform .12s ease}
body.study-soft-shell :is(.direct-study-nav-button,.direct-reveal,.direct-next-question):is(:hover,:focus-visible){background:var(--bg);color:var(--text);transform:none}
/* v158: legacy next-action rules explicitly paint descendants white. Keep the
   label, trial hint and SVG synchronized with the actual button/link color. */
html[data-theme] body.study-soft-shell .direct-qa-page[data-direct-qa] .direct-question-next[data-direct-next-nav] :is(a,button).direct-next-question :is(span,strong,small,.direct-next-arrow){color:inherit}
body.study-soft-shell .direct-written-form input{background:var(--bg);color:var(--text);border:1px solid var(--line);box-shadow:var(--study-soft-recess)}
body.study-soft-shell .direct-written-form input::placeholder{color:var(--muted);opacity:1}
/* Never match selected, correct or wrong choices, including passage/listening results. */
body.study-soft-shell .direct-question-card .focused-choices>:is(button,label):not(.selected,.correct,.wrong,.passage-choice-correct,.passage-choice-wrong){background:var(--bg);color:var(--text);border-color:transparent;box-shadow:var(--study-soft-control)}
body.study-soft-shell .direct-question-card .focused-choices>:is(button,label):not(.selected,.correct,.wrong,.passage-choice-correct,.passage-choice-wrong)>i{background:var(--bg);color:var(--text);box-shadow:var(--study-soft-recess)}
/* Bounded reading/audio surfaces are recessed; charts and image pixels are unchanged. */
body.study-soft-shell .direct-question-card :is(.passage-source-card,.passage-reading,.listening-story-card,.listening-console,.listening-speed-control){background:var(--bg);color:var(--text);border-color:var(--line);box-shadow:none}
body.study-soft-shell .direct-question-card .passage-reading{box-shadow:var(--study-soft-recess)}
body.study-soft-shell .direct-question-card :is(.passage-reading-copy,.listening-console h3){color:var(--text)}
body.study-soft-shell .direct-question-card :is(.listening-play,.listening-stop,.listening-speed-options button:not(.active)){background:var(--bg);color:var(--text);border-color:transparent;box-shadow:var(--study-soft-control)}
body.study-soft-shell .direct-question-card .listening-transcript summary{color:var(--text)}
body.study-soft-shell .direct-question-card .listening-transcript>div{background:var(--bg);color:var(--text);box-shadow:var(--study-soft-recess)}
body.study-soft-shell .direct-question-card :is([data-map-zoom],[data-passage-zoom],.image-zoom-trigger){background:var(--bg);color:var(--text);border:1px solid var(--line);box-shadow:var(--study-soft-control)}
/* Public directory uses the same design without changing its filters or SEO. */
body.study-soft-shell :is(.directory-hero,.directory-group){--directory-accent:var(--text)}
body.study-soft-shell .directory-hero :is(h1,p){color:var(--text)}
body.study-soft-shell .directory-group__header{background:var(--bg);color:var(--text);border-color:var(--line)}
body.study-soft-shell .directory-group__header h2 a{color:var(--text)}
body.study-soft-shell :is(.directory-group__grade,.directory-group__total,.directory-hero__year,.directory-hero__stats>span,.directory-hero__icon){background:var(--bg);color:var(--text);border-color:var(--line);box-shadow:var(--study-soft-recess)}
body.study-soft-shell .directory-lesson{background:var(--bg);color:var(--text);border-color:transparent;box-shadow:var(--study-soft-control)}
body.study-soft-shell .directory-lesson__number{background:var(--bg);color:var(--text);box-shadow:var(--study-soft-recess)}
body.study-soft-shell .directory-lesson__copy strong{color:var(--text)}
body.study-soft-shell .directory-lesson__copy small{color:var(--muted)}
body.study-soft-shell .directory-search{background:var(--bg);color:var(--text);border-color:var(--line);box-shadow:var(--study-soft-recess)}
/* Selected grade/filter controls retain a clear, non-color-only current state. */
body.study-soft-shell :is(.grade-switcher button,.directory-grade-tabs button){background:var(--bg);color:var(--text);border:1px solid transparent;box-shadow:var(--study-soft-control)}
body.study-soft-shell :is(.grade-switcher button[aria-current=page],.directory-grade-tabs button[aria-pressed=true]){background:var(--bg);color:var(--text);border-color:var(--text);box-shadow:var(--study-soft-recess)}
/* Match the current grade's switch and badges using the catalogue's own accent. */
[data-subject-grade="2"] { --subject-grade-accent: light-dark(#275c9d, #a9ccff); }
[data-subject-grade="3"] { --subject-grade-accent: light-dark(#82426f, #f2b5da); }
[data-subject-grade] { --subject-grade-tint: color-mix(in srgb, var(--subject-grade-accent) 11%, var(--bg)); }
body.study-soft-shell [data-subject-grade] :is(.grade-switcher button[aria-current="page"], .subject-prep-badge) {
 background:var(--subject-grade-tint);
 color:var(--subject-grade-accent);
 box-shadow:none;
}
body.study-soft-shell [data-subject-grade] .grade-switcher button[aria-current="page"] {
 border-color:var(--subject-grade-accent);
}
body.study-soft-shell [data-subject-grade] .grade-switcher button[aria-current="page"] .grade-stars { color:inherit; }
body.study-soft-shell [data-subject-grade] .grade-switcher button[aria-current="page"]::after {
 content:"";
 inline-size:5px;
 block-size:9px;
 flex:none;
 border:solid currentColor;
 border-width:0 2px 2px 0;
 transform:rotate(45deg) translateY(-2px);
}
html[data-theme] body.study-soft-shell [data-subject-grade] .subject-catalogue .subject-card {
 border-block-start:2px solid color-mix(in srgb, var(--subject-grade-accent) 46%, var(--bg));
}
body.study-soft-shell :is(.subject-card,.curriculum-study-card,.curriculum-exam-action,.direct-study-nav-button,.direct-reveal,.direct-next-question,.directory-lesson,.direct-question-card):focus-visible{outline:3px solid var(--text);outline-offset:5px}
body.study-soft-shell .focused-choices label:has(input:focus-visible){outline:3px solid var(--text);outline-offset:4px}
body.study-soft-shell :is(a.subject-card[href],a.curriculum-study-card[href],a.curriculum-exam-action[href],a.directory-lesson[href],.direct-study-nav-button:enabled,.direct-reveal:enabled,.direct-next-question):active{box-shadow:var(--study-soft-recess)}
@media(max-width:760px){
 html[data-theme] body.study-soft-shell>header.topbar.container.student-mobile-topbar{min-height:78px;margin-top:14px;margin-bottom:12px;padding:6px 12px;border-radius:20px}
 html[data-theme] body.study-soft-shell :is(.subject-catalogue .subject-card,.curriculum-study-card,.direct-question-card,.legal-page>.legal-card,.directory-hero,.directory-group){border-radius:19px}
 body.study-soft-shell .curriculum-study-enter{margin:0 12px 12px}
 body.study-soft-shell .curriculum-study-grid{gap:22px 16px}
}
@media(prefers-reduced-motion:reduce){body.study-soft-shell :is(.subject-card,.curriculum-study-card,.curriculum-exam-action,.directory-lesson,.direct-study-nav-button,.direct-reveal,.direct-next-question){transition:none}}
@layer foundation{
 body.study-soft-shell :is(a.subject-card[href],a.curriculum-study-card[href],a.curriculum-exam-action[href],a.directory-lesson[href],.direct-study-nav-button:enabled,.direct-reveal:enabled,.direct-next-question):active{transform:translateY(3px)!important}
 @media(prefers-reduced-motion:reduce){body.study-soft-shell :is(a.subject-card[href],a.curriculum-study-card[href],a.curriculum-exam-action[href],a.directory-lesson[href],.direct-study-nav-button:enabled,.direct-reveal:enabled,.direct-next-question):active{transform:none!important}}
}
