:root { color-scheme:light; font:17px/1.55 "Source Sans 3",system-ui,sans-serif; color:#17382e; background:#f8f7f0; }
* { box-sizing:border-box }
body { margin:0 }
header { min-height:64px; display:flex; flex-wrap:wrap; align-items:center; gap:4px 22px; padding:12px max(5vw,calc((100vw - 760px)/2)); background:#143d33; color:#fff }
.brand,h1,h2 { font-family:Georgia,serif }
.brand { font-size:28px; font-weight:bold }
main { max-width:810px; margin:clamp(24px,6vw,66px) auto; padding:0 24px 42px }
h1 { font-size:clamp(1.85rem,5vw,3.2rem); line-height:1.12; margin:.35em 0 }
h2 { line-height:1.25 }
a { color:#235545 }
.modules { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr)); gap:12px; margin-top:28px }
.modules a,label { background:#fff; border:1px solid #94a99e; border-radius:8px; padding:16px; display:block }
.modules a { text-decoration:none; color:inherit }
.modules strong,.modules small { display:block }
.modules a:hover,label:hover { border-color:#276a50 }
fieldset { border:0; margin:18px 0; padding:0; min-width:0 }
legend { font-weight:650; margin-bottom:8px }
label { margin:8px 0; display:flex; gap:10px; align-items:baseline; cursor:pointer }
input { accent-color:#205d45 }
label:has(:checked) { background:#eaf3eb; border-color:#275b48 }
button { font:inherit; font-weight:650; color:white; background:#20523f; border:0; border-radius:6px; padding:12px 22px; min-height:46px; cursor:pointer }
button:disabled { background:#65766c; cursor:default }
:focus-visible { outline:3px solid #a84f13; outline-offset:3px }
.back { display:inline-block; padding:8px 0; margin-bottom:13px }
.meta { font-weight:650; color:#436657 }
.feedback { border-left:4px solid #44775a; background:#fff; padding:8px 20px 18px; margin:20px 0 }
.figure { display:block; max-width:100%; max-height:320px; margin:1em auto }
.math { min-width:0; overflow-x:auto; overflow-wrap:anywhere }
label .math { flex:1 }
@media(max-width:480px){main{padding:0 16px 28px}header{padding-left:16px}.modules{gap:8px}}
