/* Scientific illustrations support the data. Scoped rules preserve map and table behaviour. */
:root{--science-navy:#071725;--science-steel:#315f7a;--science-cyan:#78d0e3;--science-line:#dce7f0;--bg:#f7fafc;--ink:#173449;--muted:#5c7486}
body,body[data-workspace]{background:#f7fafc;color:#173449}
.mechanism-page .mechanism-content{max-width:1180px!important;padding:18px 20px 65px!important}.section-page .section-shell{max-width:1180px!important}
.metric>strong,.period-stamp,td,.region-row>b{font-variant-numeric:tabular-nums}
.science-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:14px;min-height:270px;margin:12px 0 14px;background:var(--science-navy);color:#f1f8ff;border:1px solid #254657}
.science-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:-2}
.science-hero:after,.science-illustrated:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071725fa 0%,#071725e8 34%,#07172555 64%,#07172508 100%);pointer-events:none}
.science-hero-copy{position:relative;z-index:1;max-width:57%;padding:30px 30px 38px}
.science-hero .eyebrow{color:#96ccdc;font-size:9px;letter-spacing:1.2px}
.science-hero h1{font-size:clamp(25px,3vw,36px);line-height:1.12;max-width:510px;margin:12px 0;letter-spacing:-.7px;color:#f1f8ff}
.science-hero-copy>p{font-size:12px;line-height:1.65;color:#c6dbe8;max-width:460px}
.science-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.science-actions a{border:1px solid #80c0d4;border-radius:7px;padding:8px 12px;color:#d9f2fc!important;font-size:11px;transition:background .25s,transform .25s}
.science-actions a:first-child{background:#ddf4fb;color:#12394e!important;border-color:#ddf4fb}
.science-actions a:hover{transform:translateY(-2px);background:#23475c}.science-actions a:first-child:hover{background:#c4e7f3}
.science-caption{position:absolute;right:12px;bottom:8px;font-size:9px;line-height:1.4;color:#e2edf4;text-shadow:0 1px 3px #071725;max-width:95%;z-index:2}
.micro-bacteria,.micro-molecule{animation:science-drift 24s ease-in-out infinite alternate;transform-origin:165px 30px}.micro-molecule{animation-duration:30s;transform-origin:50px 32px}
.publication-shell{position:relative;isolation:isolate}.publication-shell>h1,.publication-shell>.publication-intro{max-width:72%}.science-publication-art{position:absolute;z-index:-1;top:0;right:0;width:26%;height:140px;margin:0;overflow:hidden;border-radius:12px;background:transparent;mask-image:linear-gradient(90deg,transparent,#000 18%,#000 92%,transparent)}.science-publication-art .science-image{object-position:80% center}.science-publication-art .science-caption{font-size:8px;left:8px;right:8px}
.science-float{position:absolute;pointer-events:none;opacity:.4;animation:science-drift 24s ease-in-out infinite alternate;z-index:0}
.science-molecule{right:38%;top:18%;width:65px;height:65px}.science-dna{right:3%;top:12%;width:44px;height:80px;animation-duration:32s;opacity:.3}
@keyframes science-drift{from{transform:translate3d(0,0,0) rotate(-4deg)}to{transform:translate3d(9px,-10px,0) rotate(5deg)}}
.science-illustrated{position:relative;isolation:isolate;overflow:hidden;background:#081d2c!important;border:1px solid #294657!important;color:#e4f1fa!important;border-radius:12px;padding:20px!important;min-height:150px}
.science-illustrated>div,.science-illustrated>h1,.science-illustrated>h2,.science-illustrated>p,.science-illustrated>.hero-actions{position:relative;z-index:1;max-width:65%}
body .science-illustrated.science-illustrated h1,body .science-illustrated.science-illustrated h2,body .science-illustrated.science-illustrated strong{color:#eaf7ff!important}body .science-illustrated.science-illustrated p,body .science-illustrated.science-illustrated .eyebrow,body .science-illustrated.science-illustrated .reference-eyebrow,body .science-illustrated.science-illustrated .mechanism-eyebrow{color:#c2d9e8!important}
.reference-page .reference-hero.science-illustrated{min-height:145px;margin-top:10px}.reference-hero.science-illustrated .micro-scene{display:none}.reference-hero.science-illustrated .reference-version{position:relative;z-index:1;background:#eaf3f8;color:#173449;border-radius:8px;padding:8px;max-width:165px;align-self:flex-start}
.science-learning{border:1px solid var(--science-line);border-radius:12px;margin:14px 0;background:#fff}
.science-learning>summary{cursor:pointer;padding:12px 16px;font-size:13px;font-weight:600;color:#315f7a;scroll-margin-top:110px}
.science-lesson{margin:12px 0;padding:16px;border:1px solid var(--science-line);border-radius:12px;background:#fff;color:#173449;scroll-margin-top:110px}
.science-learning>.science-lesson{margin:0 12px 12px}
.science-lesson-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.science-lesson-heading .eyebrow{color:#315f7a;font-size:10px}.science-lesson-heading p{font-size:11px;color:#5c7486;margin:0}
.science-mechanism-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}
.science-mechanism-buttons button{padding:9px 8px;min-height:40px;font-size:11px;border:1px solid #cbdfe9;border-radius:8px;background:#f7fbfe;color:#315f7a;transition:background .25s,box-shadow .25s}
.science-mechanism-buttons button[aria-pressed=true]{background:#173f58;color:#fff;border-color:#173f58}.science-mechanism-buttons button:hover{box-shadow:0 2px 8px #1e42651a}
.science-lesson-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:20px}
.science-schematic{margin:0;background:#f4f8fb;border-radius:9px}.science-schematic svg{display:block;width:100%;height:auto;max-height:170px}.science-schematic figcaption{font-size:9px;text-align:center;color:#607b8e;padding:0 8px 8px}
.science-mechanism-description h3{font-size:15px;margin:0 0 8px}.science-mechanism-description p{font-size:12px;margin:0 0 10px}.science-mechanism-description small{font-size:10px;color:#607b8e;line-height:1.5}
.science-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 12px 12px}
.science-context-card{position:relative;isolation:isolate;overflow:hidden;min-height:210px;background:#081d2c;border:1px solid #31536a;border-radius:10px;color:#d4e8f3;transition:box-shadow .3s,transform .3s}
.science-context-card:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#071725 0%,#071725db 45%,#07172520 100%);z-index:-1}
.science-context-card>div{padding:100px 14px 14px}.science-context-card h3{font-size:13px;color:#eaf7ff}.science-context-card p{font-size:11px;line-height:1.5;margin:8px 0}.science-context-card small{font-size:8px;color:#b5cddd}
.science-context-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px #2443591f}
.science-entered{animation:science-enter .45s ease-out both}@keyframes science-enter{from{opacity:.7;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
#science-learning,#map-stage{scroll-margin-top:110px}
/* Percentage scale colours retain numeric thresholds, never indicate treatment advice. */
body[data-workspace] .legend .low{background:#69b58d}.legend .moderate{background:#d2c16a}.legend .elevated{background:#dd9d5c}.legend .high{background:#cf6971}
@media(max-width:900px){.science-hero-copy{max-width:65%;padding:24px}.science-context-grid{grid-template-columns:1fr 1fr}.science-context-card:last-child{grid-column:1/-1}.science-lesson-heading{display:block}.science-lesson-heading p{margin-top:5px}}
@media(max-width:760px){.science-hero{min-height:240px}.science-hero-copy{max-width:100%;padding:22px 18px 32px}.science-hero .science-image{opacity:.35;object-position:65% center}.science-hero:after{background:linear-gradient(90deg,#071725f2,#07172595)}.science-hero h1{font-size:27px;max-width:360px}.science-hero-copy>p{max-width:390px}.science-float{display:none}.science-caption{font-size:7px;right:auto;left:18px}.science-illustrated{min-height:135px;padding:16px 16px 26px!important}.science-illustrated .science-image{opacity:.35}.science-illustrated>div,.science-illustrated>h1,.science-illustrated>p,.science-illustrated>.hero-actions{max-width:100%}.science-illustrated .reference-version{display:none}.science-mechanism-buttons{grid-template-columns:1fr 1fr}.science-lesson-grid{grid-template-columns:1fr;gap:12px}.science-context-grid{grid-template-columns:1fr}.science-context-card:last-child{grid-column:auto}.science-context-card>div{padding-top:90px}.science-lesson{padding:12px}}
@media(max-width:760px){.science-publication-art{display:none}.publication-shell>h1,.publication-shell>.publication-intro{max-width:100%}}
@media(prefers-reduced-motion:reduce){.micro-bacteria,.micro-molecule,.science-float,.science-entered{animation:none!important}.science-actions a,.science-context-card,.science-mechanism-buttons button{transition:none!important}}
@media print{.science-hero,.science-illustrated{background:#fff!important;color:#173449!important}.science-image,.science-float,.science-caption{display:none}.science-hero:after,.science-illustrated:after{display:none}.science-hero h1,.science-hero-copy>p,.science-illustrated h1,.science-illustrated p{color:#173449!important}.science-learning{display:none}}

.science-lesson-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.science-motion-slot{min-width:0}.science-mechanism-description .science-pathway-copy p{font-size:14px;line-height:1.6;margin:0 0 10px}.science-mechanism-description small{font-size:12px;line-height:1.5}.science-pathway-source a{color:#007d78;font-size:11px}@media(max-width:740px){.science-lesson-grid{grid-template-columns:1fr}}

.science-pathway-context{margin:0 0 14px;font-size:13px;line-height:1.6;color:#456a79;max-width:110ch}
