*{box-sizing:border-box}[hidden]{display:none!important}html{color-scheme:light dark;scroll-behavior:smooth}
body{margin:0;background:#faf7ef;color:#202d28;font:18px/1.65 system-ui,sans-serif}
a{color:#244f89;text-underline-offset:4px}
header,main,footer{max-width:1040px;margin:auto;padding:24px}
header{display:flex;flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid #65756d}
a,button,summary,select{min-height:44px}
header a,.jump a,.sources a,footer a,.related a{display:inline-flex;align-items:center;padding:8px 4px}
h1{font:500 clamp(2.2rem,7vw,3.4rem)/1.12 Georgia,serif;max-width:850px;letter-spacing:-.03em}
h2{font-size:1.5rem;line-height:1.3;margin-top:2.6rem}h3{font-size:1.15rem}
p,li{max-width:76ch}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;font-weight:700}
.guide-meta{font-size:.95rem;margin:-4px 0 16px}
.intro{font-size:1.18rem}
.jump{display:flex;flex-wrap:wrap;gap:4px 18px;border-block:1px solid #65756d;padding:6px 0;margin:20px 0}
section{scroll-margin-top:24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.try-it{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;border:1px solid #65756d;border-radius:12px;padding:16px 20px;margin:24px 0}
.try-it p{margin:0;flex:1 1 280px}
.related-line{font-size:.98rem;border-left:4px solid #65756d;padding-left:12px}
.hint{font-size:.95rem}
.ls{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border:1px solid #7a4a00;color:#6b4100;background:#fff4dc;border-radius:999px;padding:0 8px;line-height:1.6;white-space:nowrap}

/* chart tools */
.chart-tools{border:1px dashed #65756d;border-radius:12px;padding:14px 18px;margin:20px 0}
.tool-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:6px 0}
.tool-row label,.tool-label{font-weight:650}
.tool-out{margin:6px 0 0;font-size:.95rem;min-height:1.6em}
select{font:inherit;color:#202d28;background:#fff;border:1px solid #65756d;border-radius:6px;padding:6px 10px;min-width:12em;max-width:100%}
button,.cta{display:inline-flex;align-items:center;justify-content:center;background:#3f6fb0;color:#fff;border:2px solid transparent;border-radius:8px;padding:10px 18px;min-height:48px;font:inherit;font-weight:650;text-decoration:none;cursor:pointer}
button.cover{background:transparent;color:#244f89;border-color:#3f6fb0;min-height:44px;padding:6px 14px}
button.cover[aria-pressed="true"]{background:#244f89;color:#fff}
button.cover[aria-pressed="true"]::before{content:"✓ ";}

/* tables */
.table-wrap{overflow:auto;margin:20px 0}
table{border-collapse:collapse;width:100%}
.compare,.decoder{min-width:560px}
caption{text-align:left;font-weight:700;padding:12px 0}
th,td{border:1px solid #65756d;text-align:left;vertical-align:top;padding:10px 12px}
thead th{background:#e7ece7}
.compare tbody th,.decoder tbody th{background:#f1f3ee}
.chart{font-size:.95rem}
.chart thead th{position:sticky;top:0;z-index:1}
.chart tr.gland th{background:#dfe8f3;font-weight:400;border-top:3px solid #244f89}
.chart .gname{font-weight:750;font-size:1.05rem;display:block}
.chart .gnote{font-size:.9rem}
.chart tbody th[data-col="hormone"]{background:#f1f3ee;font-weight:650;width:19%}
.chart td[data-col="much"],.chart td[data-col="little"]{width:19%}
.chart.cover-hormone [data-col="hormone"] .v,.chart.cover-effect [data-col="effect"] .v,.chart.cover-much [data-col="much"] .v,.chart.cover-little [data-col="little"] .v{visibility:hidden}
.chart.cover-hormone tbody [data-col="hormone"],.chart.cover-effect tbody [data-col="effect"],.chart.cover-much tbody [data-col="much"],.chart.cover-little tbody [data-col="little"]{background:repeating-linear-gradient(135deg,#e7ece7 0 8px,#f6f4ec 8px 16px)}

/* stacked chart on small screens: ARIA roles keep table semantics when display changes */
@media(max-width:720px){
.chart-wrap{overflow:visible}
.chart,.chart thead,.chart tbody,.chart tr,.chart th,.chart td,.chart caption{display:block;width:auto!important}
.chart thead{position:absolute;width:1px!important;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.chart tbody{margin:0 0 22px}
.chart tr{border:1px solid #65756d;border-radius:10px;margin:0 0 12px;background:#fffdf7;overflow:hidden}
.chart tr.gland{border:0;background:transparent;border-radius:0;margin-bottom:8px}
.chart tr.gland th{border:0;border-left:5px solid #244f89;border-radius:0}
.chart th,.chart td{border:0;border-top:1px solid #c9d0c9;padding:8px 12px}
.chart tbody th[data-col="hormone"]{border-top:0;font-size:1.02rem}
.chart td::before{content:attr(data-label);display:block;font-size:.78rem;font-weight:750;text-transform:uppercase;letter-spacing:.06em}
}

/* diagrams */
.loop-fig{margin:20px 0;border:1px solid #65756d;border-radius:12px;padding:14px;background:#fffdf7}
.loop-fig svg{display:block;width:100%;height:auto;max-width:640px;margin:auto;color:#202d28}
.loop-fig .bx{fill:#eef3fa;stroke:#244f89;stroke-width:2}
.loop-fig .bt{fill:currentColor;font:600 19px system-ui,sans-serif}
.loop-fig .ar{stroke:#244f89;stroke-width:3}
.loop-fig .hd{fill:#244f89}
.loop-fig .al{fill:currentColor;font:700 17px system-ui,sans-serif}
.loop-fig .fb{fill:none;stroke:#a84410;stroke-width:3;stroke-dasharray:9 6}
.loop-fig .fh{fill:#a84410}
.loop-fig .fl{fill:#8b3020;font:700 16px system-ui,sans-serif}
.loop-fig figcaption,.seesaw figcaption{font-size:.95rem;margin-top:10px}
.seesaw{margin:20px 0}
.seesaw figcaption{font-weight:700;margin:0 0 10px}
.sides{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.side{border:1px solid #65756d;border-radius:12px;padding:14px 16px;background:#fffdf7}
.side.low{border-top:6px solid #3f6fb0}.side.high{border-top:6px solid #a84410}
.side .trig{font-weight:750;margin:0 0 6px}
.side .trig::before{font-weight:800;margin-right:6px}
.side.low .trig::before{content:"↓"}.side.high .trig::before{content:"↑"}
.side ol{padding-left:1.3em;margin:0}.side li{margin:6px 0}
.side .back{margin:10px 0 0;padding-top:8px;border-top:1px dashed #65756d;font-size:.95rem}
.steps li{margin:6px 0}
.two-paths{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}
.path{border:1px solid #65756d;border-radius:12px;padding:6px 18px 12px;background:#fffdf7}

/* worked examples */
.worked{border:1px solid #65756d;border-left:6px solid #3f6fb0;border-radius:12px;margin:24px 0;padding:18px 22px;background:#fffdf7}
.worked .wq{font-style:italic}
.worked ol li{margin:8px 0}
.check-line{border-left:3px solid #65756d;padding-left:10px;font-size:.97rem}
.answer{font-weight:700}
.tricks li{margin:10px 0}

/* quiz */
.q{border:1px solid #65756d;border-radius:12px;margin:24px 0;padding:22px;background:#fffdf7}
fieldset{border:0;padding:0;margin:0;min-width:0}
legend{font-weight:700;margin-bottom:14px}
.tag{display:inline-block;margin:0 0 10px;padding:2px 10px;border-radius:999px;border:1px solid #65756d;font-size:.8rem;font-weight:700;letter-spacing:.04em}
label.choice{display:flex;align-items:center;gap:12px;min-height:48px;border:1px solid #65756d;border-radius:6px;padding:10px 14px;margin:10px 0;cursor:pointer}
input[type=radio]{width:20px;height:20px;flex-shrink:0;accent-color:#244f89}
.pairs{display:grid;gap:12px}
.pair{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.pair label{flex:0 0 15em;font-weight:600}
.pair-out{font-weight:600}
.feedback{min-height:32px;font-weight:600}
.good{color:#215b36}.retry{color:#8b3020}
details{border-top:1px solid #65756d;margin-top:18px}
summary{cursor:pointer;padding:10px 0;font-weight:650}
.score,.score-end{border:1px dashed #65756d;border-radius:12px;padding:16px 20px;margin:24px 0;position:sticky;top:0;z-index:2;background:#faf7ef}
.score-end{position:static}
.score p,.score-end p{margin:0 0 10px;font-weight:650}
.score-end p{margin:0}
.reset{background:transparent;color:#244f89;border-color:#3f6fb0}
.trial{border-block:1px solid #65756d;padding:24px 0;margin-top:40px}
.sources{font-size:.95rem}.sources a{overflow-wrap:anywhere}
.related{font-size:.95rem;margin-top:32px}
.skip{position:absolute;left:12px;top:-100px;background:#fff;padding:12px;z-index:3}.skip:focus{top:8px}
:focus-visible{outline:3px solid #a84410;outline-offset:4px}
footer{font-size:.95rem}
noscript p{border:1px solid;padding:12px}
@media(max-width:720px){.sides,.two-paths{grid-template-columns:1fr}.score{position:static}}
@media(max-width:500px){header,main,footer{padding:18px}.q,.worked{padding:16px}h1{font-size:2.3rem}.pair label{flex-basis:100%}}

/* dark: system preference or ?theme=dark */

:root[data-theme=dark] body{background:#171e1b;color:#edf1eb}:root[data-theme=dark] a{color:#a4c8f5}
:root[data-theme=dark] .q,:root[data-theme=dark] .worked,:root[data-theme=dark] .loop-fig,:root[data-theme=dark] .side,:root[data-theme=dark] .path{background:#202a25}
:root[data-theme=dark] thead th{background:#293a31}:root[data-theme=dark] .compare tbody th,:root[data-theme=dark] .decoder tbody th,:root[data-theme=dark] .chart tbody th[data-col="hormone"]{background:#24312a}
:root[data-theme=dark] .chart tr.gland th{background:#22324a;border-top-color:#a4c8f5}
:root[data-theme=dark] select{background:#171e1b;color:#edf1eb}
:root[data-theme=dark] button,:root[data-theme=dark] .cta{background:#8fb6ea;color:#171e1b}
:root[data-theme=dark] button.cover,:root[data-theme=dark] .reset{background:transparent;color:#a4c8f5;border-color:#8fb6ea}
:root[data-theme=dark] button.cover[aria-pressed="true"]{background:#8fb6ea;color:#171e1b}
:root[data-theme=dark] .ls{background:#3a2c12;color:#ffd99a;border-color:#ffd99a}
:root[data-theme=dark] .loop-fig svg{color:#edf1eb}:root[data-theme=dark] .loop-fig .bx{fill:#22324a;stroke:#a4c8f5}:root[data-theme=dark] .loop-fig .ar{stroke:#a4c8f5}:root[data-theme=dark] .loop-fig .hd{fill:#a4c8f5}
:root[data-theme=dark] .loop-fig .fb{stroke:#ffb27a}:root[data-theme=dark] .loop-fig .fh{fill:#ffb27a}:root[data-theme=dark] .loop-fig .fl{fill:#ffc3aa}
:root[data-theme=dark] .side.low{border-top-color:#8fb6ea}:root[data-theme=dark] .side.high{border-top-color:#ffb27a}
:root[data-theme=dark] .score{background:#171e1b}
:root[data-theme=dark] .chart.cover-hormone tbody [data-col="hormone"],:root[data-theme=dark] .chart.cover-effect tbody [data-col="effect"],:root[data-theme=dark] .chart.cover-much tbody [data-col="much"],:root[data-theme=dark] .chart.cover-little tbody [data-col="little"]{background:repeating-linear-gradient(135deg,#293a31 0 8px,#1d2621 8px 16px)}
:root[data-theme=dark] .good{color:#a7e4b7}:root[data-theme=dark] .retry{color:#ffc3aa}
:root[data-theme=dark] :focus-visible{outline-color:#ffcc77}:root[data-theme=dark] .skip{background:#171e1b}
@media (max-width:720px){:root[data-theme=dark] .chart tr{background:#202a25}:root[data-theme=dark] .chart tr.gland{background:transparent}:root[data-theme=dark] .chart th,:root[data-theme=dark] .chart td{border-top-color:#3c4a42}:root[data-theme=dark] .chart tr.gland th{border-left-color:#a4c8f5}}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background:#171e1b;color:#edf1eb}html[data-theme="dark"] a{color:#a4c8f5}
html[data-theme="dark"] :is(.q,.worked,.loop-fig,.side,.path){background:#202a25}
html[data-theme="dark"] thead th{background:#293a31}html[data-theme="dark"] :is(.compare tbody th,.decoder tbody th,.chart tbody th[data-col="hormone"]){background:#24312a}
html[data-theme="dark"] .chart tr.gland th{background:#22324a;border-top-color:#a4c8f5}
html[data-theme="dark"] select{background:#171e1b;color:#edf1eb}
html[data-theme="dark"] :is(button,.cta){background:#8fb6ea;color:#171e1b}
html[data-theme="dark"] :is(button.cover,.reset){background:transparent;color:#a4c8f5;border-color:#8fb6ea}
html[data-theme="dark"] button.cover[aria-pressed="true"]{background:#8fb6ea;color:#171e1b}
html[data-theme="dark"] .ls{background:#3a2c12;color:#ffd99a;border-color:#ffd99a}
html[data-theme="dark"] .loop-fig svg{color:#edf1eb}html[data-theme="dark"] .loop-fig .bx{fill:#22324a;stroke:#a4c8f5}html[data-theme="dark"] .loop-fig .ar{stroke:#a4c8f5}html[data-theme="dark"] .loop-fig .hd{fill:#a4c8f5}
html[data-theme="dark"] .loop-fig .fb{stroke:#ffb27a}html[data-theme="dark"] .loop-fig .fh{fill:#ffb27a}html[data-theme="dark"] .loop-fig .fl{fill:#ffc3aa}
html[data-theme="dark"] .side.low{border-top-color:#8fb6ea}html[data-theme="dark"] .side.high{border-top-color:#ffb27a}
html[data-theme="dark"] .score{background:#171e1b}
html[data-theme="dark"] .chart:is(.cover-hormone,.cover-effect,.cover-much,.cover-little) tbody td,html[data-theme="dark"] .chart.cover-hormone tbody th[data-col="hormone"]{background-color:#24312a}
html[data-theme="dark"] .good{color:#a7e4b7}html[data-theme="dark"] .retry{color:#ffc3aa}
html[data-theme="dark"] :focus-visible{outline-color:#ffcc77}html[data-theme="dark"] .skip{background:#171e1b}
@media(max-width:720px){html[data-theme="dark"] .chart tr{background:#202a25}html[data-theme="dark"] .chart tr.gland{background:transparent}html[data-theme="dark"] .chart :is(th,td){border-top-color:#3c4a42}html[data-theme="dark"] .chart tr.gland th{border-left-color:#a4c8f5}}
@media print{header,.jump,button,.trial,.try-it,.chart-tools,.score,.score-end,footer,.related{display:none}body{background:#fff;color:#000;font-size:11pt}.q,.worked,.loop-fig,.side{break-inside:avoid}details>div{display:block!important}a{color:#000;text-decoration:none}.chart .v{visibility:visible!important}}
