/* Scientific surfaces stay opaque. Glass is reserved for floating controls. */
:root{--science-paper:#fff;--science-soft:#F8F9FA;--science-blue:#75B9C4;--science-amber:#D7A24A;--science-ink:#343A40;--science-rule:#C9D2D6;--science-radius:20px}
.scientific-scene{background:transparent;padding:0;gap:1.2rem;grid-template-columns:minmax(0,1fr);align-items:start}
.scientific-image{min-width:0;width:100%;max-width:30rem;margin-inline:auto}
.scientific-art-frame{position:relative;min-width:0;background:var(--science-paper);isolation:isolate}
.scientific-art,.learning-diagram .scientific-art{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;margin:0;aspect-ratio:3/4}
.scientific-art-frame .scientific-direction,.scientific-art-frame .scientific-leaders,.scientific-art-frame .science-flow{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none;fill:none;stroke:var(--science-ink);stroke-width:.5;stroke-linecap:round;stroke-linejoin:round;margin:0;aspect-ratio:auto}
.scientific-art-frame .scientific-leaders{stroke:#677981;stroke-width:.22}
.scientific-art-frame .science-flow{stroke:#8A642D;stroke-width:.2;fill:var(--science-amber);opacity:0}
[data-illustration=gaba-channel-open] .science-flow{fill:#A69AC8;stroke:#706392}
.science-flow-playing .science-flow{opacity:1}.science-flow-playing .science-flow circle{animation:science-ion-inward 3.8s ease-in-out both;transform-box:view-box;transform-origin:0 0}.science-flow-playing .science-flow circle:nth-child(2){animation-delay:.65s}.science-flow-playing .science-flow circle:nth-child(3){animation-delay:1.3s}
@keyframes science-ion-inward{0%{transform:translateY(0);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translateY(45%);opacity:0}}
.scientific-callout{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--science-ink);font:600 14px/1 var(--sans);box-shadow:none;z-index:1}
.scientific-callout>span,.figure-pan-content span.scientific-callout{display:grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;background:#fff;border:1px solid var(--science-rule);border-radius:50%;box-shadow:0 1px 3px #343a4012}
.scientific-callout:disabled{opacity:1;color:var(--science-ink);background:transparent}.scientific-callout:hover:not(:disabled),.scientific-callout:active{background:transparent}
.scientific-callout:hover>span,.scientific-callout[aria-expanded=true]>span{border-color:#487F8A;background:#EEF7F8}
.scientific-art-frame .scientific-callout:is(:hover,:active,:focus){transform:translate(-50%,-50%);text-decoration:none}
.science-flow-paused .science-flow circle{animation-play-state:paused}
.scientific-callout:focus-visible{outline:2px solid #367D89;outline-offset:0}
.scientific-art-frame .scientific-zoom{position:absolute;bottom:10px;right:10px;min-height:44px;padding:10px 14px;border:1px solid #D3DADD;border-radius:999px;background:#FFFFFFF2;color:#343A40;font:500 14px/1.3 var(--sans);box-shadow:0 2px 7px #343a400b;text-decoration:none}
.scientific-zoom:hover{background:#F8F9FA}.scientific-zoom:focus-visible{outline:2px solid #367D89;outline-offset:3px}
.scientific-key-wrap{min-width:0;padding:.7rem 0}.scientific-key-wrap .atlas-key-number{background:#fff;color:var(--science-ink);border:1px solid var(--science-rule);font-weight:600}
.scientific-model-note{font:.82rem/1.6 var(--sans);color:var(--muted);margin:1rem 0 0;padding-top:.75rem;border-top:1px solid var(--line)}
.annotation-panel{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:14px 12px 14px 16px;margin-top:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink)}
.annotation-panel[hidden]{display:none}.annotation-panel strong{font-size:1rem}.annotation-panel p{font-size:.9rem;line-height:1.6;margin:.35rem 0 0}.annotation-panel button{padding:0;width:44px;height:44px;min-width:44px;font-size:24px;border:0;background:transparent;color:var(--ink)}
.science-motion-controls{padding-top:.65rem}.science-motion-controls button{min-height:44px;padding:8px 14px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:999px;font-size:.85rem}.science-motion-controls p{font-size:.78rem;line-height:1.5;color:var(--muted);margin:.45rem 0 0}
.science-evidence-panel{padding:1.3rem 0;border-block:1px solid var(--line);max-width:65ch;min-width:0}.science-evidence-lead{font:500 1.5rem/1.35 var(--sans);color:var(--ink);margin:.5rem 0 1rem}.science-evidence-points{padding-left:1.2rem;margin:0;line-height:1.7}.science-evidence-points li+li{margin-top:.7rem}.illustrated-process .process-nodes{margin-top:1.5rem}
html.figure-viewer-open,html.figure-viewer-open body{overflow:hidden;overscroll-behavior:none}
.figure-dialog{position:fixed;inset:16px;margin:auto;width:min(1120px,calc(100% - 32px));max-width:none;height:calc(100dvh - 32px);max-height:900px;padding:16px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);overflow:hidden;box-shadow:0 18px 70px #14182030}
.figure-dialog[open]{display:grid;grid-template-rows:auto minmax(100px,1fr) auto auto;gap:10px}.figure-dialog::backdrop{background:#14182066;backdrop-filter:blur(3px)}
.figure-viewer-controls{display:flex;align-items:center;gap:6px;width:fit-content;max-width:100%;margin:0 auto;padding:4px 6px;border:1px solid var(--glass-border,var(--line));border-radius:999px;background:var(--glass-fill,var(--surface));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 3px 16px #14182012}
.figure-viewer-controls button,.figure-viewer-controls .figure-dialog-close{position:static;margin:0;display:block;min-width:44px;min-height:44px;padding:8px 12px;border:0;border-radius:999px;background:transparent;color:var(--ink);font:500 15px/1.3 var(--sans)}
.figure-viewer-controls button:hover:not(:disabled){background:var(--surface-muted);text-decoration:none}.figure-viewer-controls button:focus-visible{outline:2px solid var(--focus);outline-offset:0}.figure-viewer-controls output{font:500 13px/1 var(--sans);min-width:44px;text-align:center;font-variant-numeric:tabular-nums}.figure-viewer-controls button:disabled{opacity:.4}
.figure-pan-viewport{min-width:0;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #E3E8EA;border-radius:16px;touch-action:none;scrollbar-gutter:stable;scrollbar-width:thin}
.figure-pan-viewport:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.figure-pan-viewport.is-zoomed{cursor:grab}.figure-pan-viewport.is-zoomed:active{cursor:grabbing}
.figure-pan-content{position:relative;margin:16px auto;flex:none;user-select:none}.figure-pan-content img,.figure-pan-content .scientific-art-frame{display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:contain}.figure-pan-content .scientific-zoom{display:none}
.figure-dialog-notes{max-height:22dvh;overflow:auto;overscroll-behavior:contain;padding:0 8px;font-size:.9rem}.figure-dialog-notes .scientific-key-wrap{padding:0}.figure-dialog-notes .atlas-key{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem 1.5rem}.figure-dialog-notes .atlas-key p{font-size:.85rem}.figure-dialog-notes .atlas-key strong{font-size:.9rem}.figure-dialog-notes figcaption{margin:.6rem 0;font-size:.85rem;line-height:1.5}.figure-dialog-notes .scientific-model-note{font-size:.75rem;margin:.65rem 0 0;padding-top:.6rem}
.figure-viewer-help{font-size:.75rem;line-height:1.5;color:var(--muted);text-align:center;margin:0}
@container(min-width:42rem){.scientific-scene{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1.8rem;align-items:center}}
@media(max-width:40rem){.scientific-image{max-width:25rem}.scientific-key-wrap{padding-top:.2rem}.figure-dialog{inset:6px;width:calc(100% - 12px);height:calc(100dvh - 12px);padding:10px;border-radius:20px}.figure-viewer-controls{gap:0}.figure-viewer-controls button{padding-inline:10px}.figure-dialog-notes{max-height:20dvh}.figure-dialog-notes .atlas-key{grid-template-columns:minmax(0,1fr)}.figure-viewer-help{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){.science-flow{display:none!important}.scientific-callout,.annotation-panel,.figure-dialog{animation:none!important;transition:none!important;scroll-behavior:auto}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){.figure-viewer-controls{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}.figure-dialog::backdrop{backdrop-filter:none}.scientific-callout>span{border:2px solid CanvasText}}
@media print{.scientific-zoom,.annotation-panel,.science-motion-controls,.figure-dialog{display:none!important}.scientific-scene{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;break-inside:avoid}.scientific-art{max-height:none!important}.science-evidence-panel{break-inside:avoid}}

.scientific-mark-neuron-anatomy-1{--x:16%;--y:18%;}
.scientific-mark-neuron-anatomy-2{--x:68%;--y:35%;}
.scientific-mark-neuron-anatomy-3{--x:40%;--y:62%;}
.scientific-mark-neuron-anatomy-4{--x:66%;--y:91%;}
.scientific-mark-neuron-anatomy-5{--x:67%;--y:71%;}
.scientific-mark-chemical-synapse-1{--x:23%;--y:27%;}
.scientific-mark-chemical-synapse-2{--x:41%;--y:55%;}
.scientific-mark-chemical-synapse-3{--x:83%;--y:58%;}
.scientific-mark-chemical-synapse-4{--x:65%;--y:76%;}
.scientific-mark-transporter-reuptake-1{--x:20%;--y:76%;}
.scientific-mark-transporter-reuptake-2{--x:28%;--y:43%;}
.scientific-mark-transporter-reuptake-3{--x:85%;--y:64%;}
.scientific-mark-transporter-inhibited-1{--x:20%;--y:76%;}
.scientific-mark-transporter-inhibited-2{--x:28%;--y:43%;}
.scientific-mark-transporter-inhibited-3{--x:85%;--y:64%;}
.scientific-mark-receptor-activation-1{--x:35%;--y:22%;}
.scientific-mark-receptor-activation-2{--x:25%;--y:48%;}
.scientific-mark-receptor-activation-3{--x:70%;--y:71%;}
.scientific-mark-receptor-antagonism-1{--x:35%;--y:22%;}
.scientific-mark-receptor-antagonism-2{--x:25%;--y:48%;}
.scientific-mark-receptor-antagonism-3{--x:83%;--y:22%;}
.scientific-mark-receptor-partial-1{--x:35%;--y:22%;}
.scientific-mark-receptor-partial-2{--x:25%;--y:48%;}
.scientific-mark-receptor-partial-3{--x:70%;--y:71%;}
.scientific-mark-sodium-channel-closed-1{--x:28%;--y:17%;}
.scientific-mark-sodium-channel-closed-2{--x:22%;--y:43%;}
.scientific-mark-sodium-channel-closed-3{--x:66%;--y:65%;}
.scientific-mark-sodium-channel-open-1{--x:28%;--y:17%;}
.scientific-mark-sodium-channel-open-2{--x:22%;--y:43%;}
.scientific-mark-sodium-channel-open-3{--x:66%;--y:65%;}
.scientific-mark-sodium-channel-inactivated-1{--x:28%;--y:17%;}
.scientific-mark-sodium-channel-inactivated-2{--x:22%;--y:43%;}
.scientific-mark-sodium-channel-inactivated-3{--x:66%;--y:65%;}
.scientific-mark-gaba-channel-open-1{--x:28%;--y:17%;}
.scientific-mark-gaba-channel-open-2{--x:22%;--y:43%;}
.scientific-mark-gaba-channel-open-3{--x:66%;--y:65%;}
.scientific-mark-gaba-channel-enhanced-1{--x:28%;--y:17%;}
.scientific-mark-gaba-channel-enhanced-2{--x:22%;--y:43%;}
.scientific-mark-gaba-channel-enhanced-3{--x:78%;--y:39%;}
.scientific-mark-nmda-channel-blocked-1{--x:28%;--y:17%;}
.scientific-mark-nmda-channel-blocked-2{--x:22%;--y:43%;}
.scientific-mark-nmda-channel-blocked-3{--x:66%;--y:65%;}
.scientific-mark-lamotrigine-channel-1{--x:28%;--y:17%;}
.scientific-mark-lamotrigine-channel-2{--x:22%;--y:43%;}
.scientific-mark-lamotrigine-channel-3{--x:87%;--y:14%;}
.scientific-mark-nmda-channel-open-1{--x:28%;--y:17%;}
.scientific-mark-nmda-channel-open-2{--x:22%;--y:43%;}
.scientific-mark-nmda-channel-open-3{--x:66%;--y:65%;}
.scientific-mark-transporter-release-1{--x:20%;--y:76%;}
.scientific-mark-transporter-release-2{--x:28%;--y:43%;}
.scientific-mark-transporter-release-3{--x:85%;--y:22%;}
.scientific-mark-acetylcholinesterase-breakdown-1{--x:32%;--y:19%;}
.scientific-mark-acetylcholinesterase-breakdown-2{--x:23%;--y:47%;}
.scientific-mark-acetylcholinesterase-breakdown-3{--x:73%;--y:78%;}
.scientific-mark-acetylcholinesterase-inhibited-1{--x:32%;--y:19%;}
.scientific-mark-acetylcholinesterase-inhibited-2{--x:23%;--y:47%;}
.scientific-mark-acetylcholinesterase-inhibited-3{--x:85%;--y:47%;}
.scientific-mark-cellular-signalling-1{--x:80%;--y:27%;}
.scientific-mark-cellular-signalling-2{--x:80%;--y:57%;}
.scientific-mark-lithium-inositol-1{--x:80%;--y:27%;}
.scientific-mark-lithium-inositol-2{--x:80%;--y:57%;}
.scientific-mark-lithium-gsk3-1{--x:80%;--y:27%;}
.scientific-mark-lithium-gsk3-2{--x:80%;--y:57%;}
.scientific-mark-synapse-reuptake-1{--x:23%;--y:27%;}
.scientific-mark-synapse-reuptake-2{--x:41%;--y:55%;}
.scientific-mark-synapse-reuptake-3{--x:83%;--y:42%;}
.scientific-mark-synapse-reuptake-4{--x:65%;--y:76%;}
.scientific-mark-synapse-feedback-1{--x:23%;--y:27%;}
.scientific-mark-synapse-feedback-2{--x:41%;--y:55%;}
.scientific-mark-synapse-feedback-3{--x:83%;--y:42%;}
.scientific-mark-synapse-feedback-4{--x:65%;--y:76%;}
.scientific-mark-receptor-agonist-1{--x:35%;--y:22%;}
.scientific-mark-receptor-agonist-2{--x:25%;--y:48%;}
.scientific-mark-receptor-agonist-3{--x:70%;--y:71%;}
