.rbc-main{max-width:1240px;margin:auto;padding:36px 5% 32px}.rbc-lesson .skip{position:absolute;left:20px;top:-100px;z-index:100;background:#102735;padding:12px}.rbc-lesson .skip:focus{top:10px}.lesson-nav{display:flex;gap:10px;margin:28px 0 40px;flex-wrap:wrap}.lesson-nav a{padding:12px 18px;border:1px solid var(--line);border-radius:30px;color:#bbced8;font-size:14px}.lesson-nav a[aria-current]{background:#18343e;border-color:#84e5e4;color:#c1ffff}.lesson-heading{max-width:850px;margin-bottom:42px}.lesson-heading h1{font-size:clamp(42px,6.6vw,78px)}.lede{font-size:clamp(17px,2vw,21px);line-height:1.65;color:#bfd2da;max-width:780px}.cell-layout{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:36px}.rbc-main h2{font-size:clamp(27px,3.2vw,39px);line-height:1.13;margin:16px 0}.rbc-main h3{font-size:22px;font-weight:500;line-height:1.3}.rbc-main p{color:#bfd0d9}.rbc-main strong{color:#f4f6f8}.art-panel{margin:0;border:1px solid #284453;border-radius:22px;overflow:hidden;background:#0b1927}.art-panel svg{display:block;width:100%;height:auto}.art-panel figcaption{padding:16px 22px;font-size:13px;line-height:1.6;color:#adc5d2;border-top:1px solid #284453}.leaders{fill:none;stroke:#d3f3f6;stroke-width:2}.svg-label{fill:#f2f8ff;font:24px 'DM Sans',sans-serif}.svg-small{fill:#bfd0d9;font:16px 'DM Sans',sans-serif}.takeaway{padding:22px;border-left:3px solid #84e5e4;background:#10313c66;border-radius:0 12px 12px 0;margin-top:25px}.takeaway p{margin:8px 0 0}.section-title{margin:54px 0 24px}.gas-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.gas-grid article{padding:28px;border:1px solid var(--line);border-radius:18px;background:#0c1a24}.gas-tag{font-size:13px;letter-spacing:.08em;text-transform:uppercase}.oxygen{color:#ffa39d}.carbon{color:#8be5ff}.gas-grid svg{width:100%;max-height:260px}.reaction{padding:22px 10px;text-align:center;background:#142e3b;border-radius:12px;font-size:clamp(19px,2vw,26px);color:#d7f3ff;margin-top:24px}.reaction small{display:block;font-size:12px;color:#a7bfcb;margin-top:10px}.next-lesson{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding:28px;border:1px solid #37616c;border-radius:16px;margin:42px 0 22px;background:linear-gradient(120deg,#15313e,#111e2a)}.next-lesson span,.next-lesson small{color:#a9c3cf;font-size:13px}.next-lesson strong{font-size:20px}.next-lesson small{display:block;margin-top:7px}.next-lesson a:hover,.sources a:hover{color:#84e5e4}.sources{font-size:12px;line-height:1.6;margin-top:25px}.sources a{text-decoration:underline;text-underline-offset:3px}.journey-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}.body-panel{max-width:600px}.legend{display:flex;gap:20px;flex-wrap:wrap;padding-top:5px;font-size:14px}.legend span{display:flex;align-items:center;gap:8px}.legend i{height:4px;width:25px;display:inline-block}.poor{background:#8be5ff}.rich{background:#ff9d94}.color-note{font-size:13px}.journey-steps{list-style:none;counter-reset:journey;padding:0}.journey-steps li{counter-increment:journey;position:relative;padding:10px 0 15px 54px;border-bottom:1px solid var(--line)}.journey-steps li:before{content:counter(journey);position:absolute;top:24px;left:0;width:34px;height:34px;border:1px solid #73a5b7;border-radius:50%;display:grid;place-items:center;color:#e2f7ff}.journey-steps h2{font-size:27px;margin:16px 0 8px}.journey-steps p{margin-top:0}.organ-box rect{fill:#081e30;fill-opacity:.94;stroke:#b6d7e9;stroke-width:2}.organ-label{fill:#f2f8ff;text-anchor:middle;font:bold 29px 'DM Sans',sans-serif}.organ-small{font-size:25px;font-weight:400}.step-marker circle{fill:#0b2338;stroke:#effaff;stroke-width:2}.step-marker text{fill:#fff;text-anchor:middle;font:bold 32px 'DM Sans',sans-serif}.flow-path path{stroke-dasharray:22 10;animation:flow-dashes 2s linear infinite;filter:drop-shadow(0 2px 3px #001)}@keyframes flow-dashes{to{stroke-dashoffset:-32}}@media(max-width:760px){.cell-layout,.journey-layout,.gas-grid{grid-template-columns:1fr}.rbc-main{padding:28px 5%}.lesson-heading{margin-bottom:28px}.lesson-nav{margin-bottom:28px}.gas-grid article{padding:22px}.journey-layout{gap:22px}.body-panel{width:100%;margin:auto}.body-diagram{max-height:none}.next-lesson{padding:22px}.rbc-lesson header{flex-wrap:wrap}.rbc-lesson .header-actions{margin-left:auto}.journey-steps h2{font-size:25px}}
/* Detailed vessel overlay: the raster anatomy stays unchanged. */
.detailed-circulation .vessel-branches{opacity:.87}.vessel-shine{filter:brightness(1.35);opacity:.55}.vessel-arrow path{fill:none;stroke:#fff7e9;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #062233)}.vessel-callouts{fill:none;stroke:#d2edf9;stroke-width:2}.vascular-badges circle{fill:#09293a;stroke:#d8f3ff;stroke-width:2}.vascular-badges text{fill:#fff;text-anchor:middle;font:700 29px 'DM Sans',sans-serif}.vessel-labels{fill:#fff;font:600 25px 'DM Sans',sans-serif;paint-order:stroke;stroke:#0a263a;stroke-width:5;stroke-linejoin:round}.heart-labels{fill:#fff;font:500 23px 'DM Sans',sans-serif;paint-order:stroke;stroke:#143044;stroke-width:4}.heart-labels path{fill:none;stroke:#e3f5ff;stroke-width:2}.detailed-circulation{background:#0e243e}.body-panel:has(.detailed-circulation){max-width:none}.journey-layout:has(.detailed-circulation){grid-template-columns:1.18fr 1fr}@media(max-width:760px){.journey-layout:has(.detailed-circulation){grid-template-columns:1fr}}
.stage-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:25px}.stage-controls[hidden],.stage-next[hidden],.stage-panel[hidden]{display:none}.stage-controls button{display:flex;align-items:center;gap:10px;text-align:left;padding:14px 12px;border:1px solid #4b697a;border-radius:10px;background:#102b3b;font-size:14px;line-height:1.4}.stage-controls button span{color:#a7c3d2;font:12px monospace}.stage-controls button[aria-pressed=true]{background:#c5f3ec;color:#08212c;border-color:#c5f3ec}.stage-controls button[aria-pressed=true] span{color:#295562}.stage-panel{padding:25px;border:1px solid #426575;border-radius:16px;background:#0c2332;min-height:340px}.stage-panel h2{font-size:36px}.stage-panel h3{font-size:20px;line-height:1.5;margin:22px 0 8px}.stage-panel .stage-vessels{font-size:14px;padding-top:16px;border-top:1px solid #426575}.stage-gas{display:inline-block;padding:6px 10px;border-radius:5px;font-size:13px;color:#061d2b}.stage-gas.poor{background:#8be5ff}.stage-gas.rich{background:#ffaaa0}.stage-next{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.stage-next button{padding:13px 16px;border:1px solid #628b9a;border-radius:8px;background:#173e4a}.stage-next button:disabled{opacity:.35;cursor:default}.stage-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.stage-organ-labels{font:600 25px 'DM Sans',sans-serif;fill:#fff;paint-order:stroke;stroke:#123045;stroke-width:5;stroke-linejoin:round}.stage-organ-labels path{fill:none;stroke:#d8f1f8;stroke-width:2}.journey-layout:has(.staged-circulation){grid-template-columns:1.08fr 1fr;align-items:start}@media(max-width:760px){.journey-layout:has(.staged-circulation){grid-template-columns:1fr}.journey-layout:has(.staged-circulation) .journey-copy{display:contents}.journey-layout:has(.staged-circulation) .stage-controls{grid-row:1;margin:0}.journey-layout:has(.staged-circulation) .stage-panel{grid-row:3;min-height:0}.journey-layout:has(.staged-circulation) .stage-next{grid-row:4;margin:0}.stage-panel h2{font-size:30px}}
.realistic-circulation .vessel-arrow path{stroke:#fffceb;stroke-width:5;filter:none}.realistic-circulation .vessel-arrow .arrow-outline{stroke:#113a51;stroke-width:9;opacity:.7}.realistic-circulation .stage-organ-labels{font-size:23px;stroke-width:4}
.rbc-main .rbc-comic-heading{--yellow:#ffe38a;display:table;position:relative;font:clamp(28px,3.5vw,46px)/1.1 'Bangers','Space Grotesk',sans-serif;letter-spacing:.05em;color:#081923;background:var(--yellow);border:3px solid #071219;box-shadow:6px 6px 0 #5edbd466;padding:12px 24px;transform:rotate(-1deg);margin:20px 6px 28px;max-width:calc(100% - 12px);scroll-margin-top:36px}@media(max-width:620px){.rbc-main .rbc-comic-heading{font-size:30px;padding:12px 16px;margin-left:0;max-width:calc(100% - 6px)}}
