:root{color-scheme:light;--bg:#f6f4f5;--panel:#fff;--fg:#28232a;--muted:#625760;--accent:#781c35;--line:#d5c6cd}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font:1rem/1.65 system-ui,sans-serif}header{padding:1rem max(1rem,calc((100vw - 1050px)/2));background:#781c35;color:#fff;display:flex;gap:1rem;align-items:center;flex-wrap:wrap}header strong{font-size:1.5rem}header label{margin-left:auto}main{max-width:1050px;margin:auto;padding:1rem}section{background:var(--panel);padding:clamp(1.2rem,4vw,2.5rem);border:1px solid var(--line);border-radius:18px;margin-top:1rem}h1{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.2}h2{font-size:1.3rem}p{max-width:75ch}.eyebrow{font-weight:700;color:var(--accent)}button,.button{display:inline-block;min-height:46px;padding:.7rem 1rem;border:1px solid var(--accent);border-radius:10px;background:var(--accent);color:white;font:inherit;cursor:pointer;text-decoration:none;margin:.25rem}button:disabled{opacity:.7;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #0785bf;outline-offset:3px}label{display:block;margin:.8rem 0}input,textarea,select{font:inherit;max-width:100%;padding:.6rem;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--fg)}textarea,input[type=search]{width:100%}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:1rem}.toolbar{display:flex;flex-wrap:wrap;gap:.3rem}.toolbar button{background:var(--panel);color:var(--fg)}.notice{padding:1rem;border-left:5px solid #af6910;background:#fff4d8;color:#49340d}article{border-bottom:1px solid var(--line);padding:1rem 0}progress{width:100%;height:24px;accent-color:#187541}.choices{display:grid;gap:.5rem}.choices button{text-align:left}.wrong{background:#ffe2e7!important;color:#84182d!important;border:3px solid #ba2442!important}.correct{background:#dbf6e4!important;color:#155b2a!important;border:3px solid #288449!important}footer{text-align:center;padding:2rem;color:var(--muted)}[hidden]{display:none!important}html[data-theme=dark]{color-scheme:dark;--bg:#10161e;--panel:#1b2633;--fg:#f1f5f9;--muted:#c7d1de;--accent:#ffb5c9;--line:#607287}html[data-theme=dark] button,html[data-theme=dark] .button{background:#781c35;color:#fff;border-color:#ffb5c9}html[data-theme=dark] .toolbar button{background:var(--panel);color:var(--fg)}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media(max-width:600px){header label{margin-left:0;width:100%}header select{width:100%}.toolbar button{padding:.5rem}main{padding:.6rem}}

header [data-install]{background:#fff;color:#781c35;border-color:#fff;font-weight:650}dialog{width:min(640px,calc(100% - 2rem));max-height:85dvh;overflow:auto;padding:1.5rem;border:2px solid var(--line);border-radius:16px;background:var(--panel);color:var(--fg)}dialog::backdrop{background:rgb(0 0 0 / .6)}dialog h2{font-size:1.6rem;margin-top:0}dialog details{padding:.8rem 0;border-bottom:1px solid var(--line)}dialog summary{font-weight:700;cursor:pointer;min-height:44px;display:list-item}dialog li{margin:.5rem 0}#installStatus:empty{display:none}#installClose{margin-top:1rem}html[data-theme=dark] header [data-install]{background:#fff;color:#781c35} @media(max-width:600px){header [data-install]{margin-left:0;max-width:100%}dialog{padding:1.1rem}}

.class-details{display:grid;grid-template-columns:9rem minmax(0,1fr);gap:.4rem 1rem}.class-details dt{font-weight:700}.class-details dd{margin:0;overflow-wrap:anywhere}@media(max-width:480px){.class-details{grid-template-columns:1fr;gap:.1rem}.class-details dd{margin-bottom:.6rem}}

#longBank{margin:2rem 0;padding-top:1rem;border-top:2px solid var(--line)}#bankPick{width:100%}#bankWorkspace fieldset{border:1px solid var(--line);border-radius:10px;margin:1rem 0;padding:1rem}#bankWorkspace input[type=checkbox]{width:22px;height:22px;vertical-align:middle;margin-right:.5rem;accent-color:#187541}.answer-ladder{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.7rem}.answer-ladder>div{padding:.8rem;border:1px solid var(--line);border-radius:10px}.answer-ladder p{margin-bottom:0}#bankHints li{margin-bottom:.5rem}#bmCards details{padding:.6rem 0}#bmCards summary,#bankWorkspace summary{cursor:pointer;min-height:44px}#bankQuestion h3{white-space:normal}#bankWorkspace textarea{min-height:180px}#bankSaveStatus{min-height:1.5em}

#reveal,html[data-theme=dark] #reveal{background:#187541;color:#fff;border-color:#187541;font-weight:650}#reveal:hover:not(:disabled){background:#125c33}#read[aria-pressed=true]{border-width:2px}


/* Explicit high-contrast link colours, including visited resources and transcripts. */
:root{--link:#15579d;--visited:#694193}
html[data-theme=dark]{--link:#9bd0ff;--visited:#dfc4ff}
a:not(.button){color:var(--link);text-decoration:underline;text-underline-offset:.16em}
a:not(.button):visited{color:var(--visited)}
a:not(.button):hover{text-decoration-thickness:2px}
a.button:link,a.button:visited{color:#fff}
header a:not(.button),header a:not(.button):visited{color:#fff}
.notice a:not(.button){color:#174c86}.notice a:not(.button):visited{color:#633b81}
