/* Scientific illustration palette: cyan/cobalt heads, rose/violet inner leaflet, golden tails. */
:root{--m-head-light:#dcf8ff;--m-head:#56b6ec;--m-head-dark:#2555a4;--m-inner-light:#ffe1ee;--m-inner:#dc93c7;--m-inner-dark:#815099;--m-tail:#f5bf68;--m-water:#9ba9ff;--m-outline:#0c142344;--m-label:#c2d0e8;--m-shadow:#030b1644}
:root[data-theme=light]{--m-head-light:#e4faff;--m-head:#52a9e3;--m-head-dark:#22529b;--m-inner-light:#ffe3ef;--m-inner:#cf86b8;--m-inner-dark:#774487;--m-tail:#bc792a;--m-water:#919cf1;--m-outline:#14223a22;--m-label:#455a79;--m-shadow:#1b3a6814}
.molecular-panel{border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-top:24px;padding:30px;overflow:hidden}.molecular-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.molecular-heading h3{font-size:30px;letter-spacing:-.035em;margin-top:10px;line-height:1.25}.view-switch{display:flex;gap:5px;padding:5px;border:1px solid var(--line);border-radius:9px;background:var(--bg)}.view-switch button{background:transparent;border-color:transparent;font-size:13px;white-space:nowrap}.view-switch button[aria-pressed=true]{background:var(--panel2);border-color:var(--line);color:var(--cobalt)}.molecular-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:32px;align-items:center;margin-top:22px}.molecular-stage{min-width:0}.molecular-stage svg{width:100%;display:block;height:auto}.m-label{font:13px 'DM Sans',Arial;fill:var(--m-label)}.molecular-caption{text-align:center;font-size:11px;color:var(--muted);max-width:490px;margin:0 auto}.structure-choices{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 27px}.structure-choices button{font-size:12px;display:flex;align-items:center;gap:7px;padding:9px 11px;background:transparent}.structure-choices button[aria-pressed=true]{border-color:var(--cobalt);background:var(--panel2)}.structure-choices i{display:block;width:9px;height:9px;border-radius:50%}.m-head-dot{background:var(--m-head)}.m-tail-dot{background:var(--m-tail)}.m-water-dot{background:var(--m-water)}.molecular-explainer h4{font-family:Manrope,Arial;font-size:24px;line-height:1.3;letter-spacing:-.025em;margin:0 0 14px}.molecular-explainer>div[aria-live]{min-height:174px}.molecular-explainer p{font-size:14px;line-height:1.8;color:var(--muted)}.structure-geometry{border-block:1px solid var(--line);padding:16px 0;margin:20px 0}.structure-geometry>span{font-size:10px;letter-spacing:.1em;color:var(--cobalt)}.structure-geometry p{color:var(--ink);font-size:13px;margin:7px 0}.structure-geometry small{font-size:11px;color:var(--muted);display:block}.molecular-explainer .molecular-scope{font-size:11px;line-height:1.8}
@media(max-width:900px){.molecular-heading{align-items:start;flex-direction:column}.molecular-layout{grid-template-columns:1.2fr 1fr;gap:22px}.molecular-explainer h4{font-size:21px}}
@media(max-width:760px){.molecular-panel{padding:24px 18px}.molecular-heading h3{font-size:27px}.molecular-layout{grid-template-columns:1fr;gap:28px}.view-switch{width:100%;justify-content:space-between}.view-switch button{font-size:12px;flex:1}.molecular-caption{font-size:11px}.molecular-stage{margin-inline:-10px}.molecular-explainer h4{font-size:24px}.molecular-explainer>div[aria-live]{min-height:0}.molecular-stage svg .m-label{font-size:16px}}

@media(max-width:760px){.molecular-stage svg .m-label{display:none}}

.molecular-jump{display:block;font-size:12px;margin-top:9px}

/* A subtle color field adds depth without changing the site background. */
.molecular-stage{border-radius:14px;background:radial-gradient(ellipse at 34% 44%,#56b6ec0d,transparent 62%),radial-gradient(ellipse at 65% 60%,#dc93c70b,transparent 60%)}
