/* Shared portal components. Subject diagrams keep their scientific colours. */
:root{--radius:20px;--surface:#fffefa;--shadow:0 8px 28px #253a4108}
body{line-height:1.55}
button,select,input:not([type=radio]):not([type=checkbox]),summary,.button{min-height:44px}
button,select,input,a,summary{scroll-margin:16px;scroll-margin-bottom:32px}
button,select,input{max-width:100%}
a,button,p,h1,h2,h3,label,summary{overflow-wrap:break-word}
.header{padding-top:16px;padding-bottom:16px;gap:20px}
.header nav a{display:inline-flex;align-items:center;min-height:44px}
main{padding-top:28px;max-width:1160px}
.hero{min-height:310px}.hero-art{height:290px}
.hero h1{font-size:clamp(38px,4.2vw,60px)}
.card,.empty,.exercise,.geo-model,.geo-workspace{box-shadow:var(--shadow);border-radius:var(--radius)}
.subject-card{background:color-mix(in srgb,var(--green) 6%,var(--surface))}
.subject-symbol{background:color-mix(in srgb,var(--green) 14%,white);color:var(--green);transform:none}
.card-status{background:var(--paper)}
.page-title{font-size:clamp(28px,3.5vw,42px);line-height:1.15}
.breadcrumbs{margin-bottom:18px}
.practice-fold{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:0 14px;margin:10px 0}
.practice-fold>summary{display:flex;align-items:center;gap:10px;font-weight:600;cursor:pointer;padding:10px 0}
.practice-fold>summary::before{content:'＋';color:var(--green)}
.practice-fold[open]>summary::before{content:'−'}
.practice-fold>.theory{margin-bottom:14px}
.worksheet-heading{gap:16px}.worksheet-heading .page-intro{font-size:1rem}
.worksheet-layout{grid-template-columns:200px minmax(0,1fr);gap:18px;margin-top:16px}
.worksheet-layout>.practice-fold{margin-top:0;align-self:start}
.worksheet-layout>.practice-fold .section-nav{margin-bottom:14px}
.exercise{margin-top:12px;padding:20px}.exercise h3{margin:16px 0;font-size:1.35rem}
.exercise-top{font-size:.875rem}.exercise-markers{margin-top:12px}
.exercise-markers .marker{min-width:44px;min-height:44px}
.exercise-markers .marker span{font-size:1rem}
.word-chip{font-size:1rem;min-height:44px;padding:10px 14px}
.choices,.piece-pool{padding:10px 0}.sentence-tray{min-height:58px;padding:10px}
.classification{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.bucket{min-height:88px}.bucket-words{flex-direction:row;flex-wrap:wrap}.bucket-target{min-height:44px}
.exercise-actions{margin-top:12px}.feedback{margin:12px 0}.feedback:not(:empty){padding:12px}
.earth-visual{max-width:300px;margin:10px auto}.earth-visual svg{max-height:150px;width:100%}
.earth-visual figcaption{font-size:.875rem}
.session-note{font-size:.875rem}.step-actions{flex-wrap:wrap}
.session-score{padding:12px 16px}.session-score strong{font-size:1.8rem}
@media(max-width:1050px){main{margin-inline:22px}.worksheet-layout{grid-template-columns:1fr}.worksheet-layout>.practice-fold{margin-bottom:0}.section-nav .topic-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.topic-nav h2{grid-column:1/-1}.worksheet-heading .page-intro{margin-bottom:0}}
@media(max-width:760px){main{margin:0;padding:20px 14px 36px}.header{padding:12px 14px;gap:8px}.header nav{margin-left:0;flex-wrap:wrap}.header nav a{font-size:.875rem;padding:8px 10px}.worksheet-heading{align-items:stretch}.worksheet-heading .page-title{margin:8px 0}.hero-art{height:220px}.hero h1{font-size:40px}.exercise{padding:14px}.section-nav .topic-nav{grid-template-columns:1fr}.step-actions .button{font-size:.875rem}.exercise-actions .secondary{font-size:.875rem}.classification{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body{padding-right:0!important}.practice-fold{border:0}.practice-fold:not([open])>*:not(summary){display:block!important}}
