/* Shared home-only visual language. Question and exam styles retain their owners. */
.study-shell{--study-ink:#20362f;--study-green:#173c30;--study-paper:#fffef9;--study-muted:#4d6559;--study-line:#d2dfd1;--study-lime:#d7ee95}
body.study-shell{background:#edf3e9;color:var(--study-ink)}
body.study-shell > main, body.study-shell > .study-top{width:min(calc(100% - 28px),1024px);margin-inline:auto}
.study-shell .study-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 18px;padding-block:14px 16px}
.study-shell .study-brand{display:inline-flex;align-items:center;gap:9px;min-height:44px;font-weight:800;font-size:1.125rem;color:var(--study-ink);text-decoration:none;white-space:normal}
.study-shell .study-brand small{display:block;font-size:.75rem;color:var(--study-muted);font-weight:500;margin:0}
.study-brand-mark{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border-radius:10px;color:var(--study-lime);background:#1d3d32}
.study-brand-mark svg{width:22px;height:22px}
.study-shell :is(.study-subjects,.study-subjects .subject-switch){display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;border:0;border-radius:0;padding:0;background:none;max-width:100%}
.study-shell .study-subjects:has(.subject-switch){display:block}
.study-shell .study-subjects a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:0;padding:5px 11px;border-radius:11px;border:1px solid #cbd9ce;background:#f8fbf3;color:var(--study-green);font-size:.92rem;font-weight:670;box-shadow:none;text-decoration:none;white-space:nowrap}
.study-shell .study-subjects a[aria-current=page]{color:#fff;background:var(--study-green);border-color:var(--study-green)}
.study-shell .study-subjects a:not([aria-current]):hover{background:#e0eee0}
.study-shell .study-hero{position:relative;isolation:isolate;display:block;min-height:0;overflow:hidden;margin:0;border:0;border-radius:20px;padding:clamp(16px,4.2vw,34px);background:radial-gradient(ellipse at 90% 0%,#347455 0%,#1e513c 33%,#173b31 89%);color:#f7ffec;overflow-wrap:anywhere;text-align:left}
.study-shell .study-kicker{color:var(--study-lime);font-size:.8rem;font-weight:740;letter-spacing:.07em;margin:0}
.study-shell .study-hero .study-hero-title{font-size:clamp(1.9rem,5.8vw,3.2rem);line-height:1.15;font-weight:850;letter-spacing:-.045em;color:#f7ffec;margin:6px 0 11px}
.study-shell .study-hero .study-hero-copy{font-size:.94rem;max-width:34ch;color:#e1f0e4;line-height:1.5;margin:0 0 14px}
.study-shell .study-next{min-width:0;max-width:31rem;border:1px solid #56876d;border-radius:12px;background:#235641;color:#f7ffec;margin:0;padding:11px 12px}
.study-shell .study-next .study-next-label{margin:0 0 3px;color:#d8ead9;font-size:.76rem;font-weight:740}
.study-shell .study-next .study-next-title{margin:0 0 10px;color:#fff;font-size:.93rem;font-weight:745}
.study-shell .study-next :is(a,button).study-cta{display:flex;width:100%;align-items:center;justify-content:center;min-height:44px;padding:6px 10px;margin:0;border-radius:10px;border:1px solid #a0bd6b;background:var(--study-lime);color:#163629;text-decoration:none;font-weight:800;text-align:center;white-space:normal;box-shadow:none}
.study-shell .study-next :is(a,button).study-cta:hover{background:#e1f5ad}
.study-hero-motif{position:absolute;z-index:-1;pointer-events:none;inset:19px 15px auto auto;width:clamp(73px,20%,158px);height:auto;opacity:.44;color:#b0cc89}
.study-shell .study-home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:8px;margin:10px 0 16px}
.study-shell .study-home-heading{margin:19px 0 0;color:var(--study-ink);font-size:1.13rem;font-weight:800}
.study-shell .study-home-actions .study-home-action{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;min-height:70px;padding:9px 10px;border-radius:12px;border:1px solid var(--study-line);background:var(--study-paper);color:var(--study-green);text-align:left;text-decoration:none;font:inherit;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
.study-shell .study-home-action:hover{border-color:#829d89;background:#f8fcf4}
.study-shell .study-home-action strong{font-size:.91rem;font-weight:780;line-height:1.35}
.study-shell .study-home-action small{margin-top:4px;font-size:.75rem;color:var(--study-muted);line-height:1.35;font-weight:475}
.study-shell .study-home-progress{padding:11px 13px;border:1px solid var(--study-line);border-radius:12px;background:#f9fbf5;color:var(--study-muted);margin:0 0 16px;font-size:.85rem;overflow-wrap:anywhere}
.study-shell .study-home-progress strong{color:var(--study-green)}
.study-shell .study-home-progress :is(a,button){min-height:44px;max-width:100%}
.study-shell :is(.study-top,.study-hero,.study-home-actions,.study-home-progress) :focus-visible{outline:3px solid #a77a25;outline-offset:3px}
.study-shell :is(.study-textbook,.study-topic-links,.study-review-list,.study-practice-tools){scroll-margin-top:12px}
.study-review-list ul{padding-left:1.35em;margin:5px 0}
.study-review-list li a{display:inline-flex;align-items:center;min-height:44px}
.study-home-extra{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:-4px 0 12px}
.study-home-extra a,.study-home-extra button{min-height:44px}
@media(max-width:760px){.study-shell .study-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.study-shell .study-top{display:block;padding-top:9px}.study-shell .study-top .study-subjects{width:100%;margin-top:7px}.study-shell .study-subjects a{padding-inline:4px}.study-shell .study-home-actions{gap:7px}.study-shell .study-hero .study-hero-copy{max-width:29ch}}
@media(prefers-reduced-motion:reduce){.study-shell *{scroll-behavior:auto}}
