.visual-popover{width:780px;padding:20px;max-height:calc(100dvh - 28px);animation:systemReveal .2s ease-out}.visual-popover h2{margin:8px 0 4px;font-size:25px}.node-popover .system-technical-name{font-size:11px;margin:0 0 16px;color:#86a69a}.popover-body{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.visual-popover .popover-scroll{max-height:min(510px,calc(100dvh - 235px));padding-right:8px}.popover-visual-column{min-width:0;max-height:min(510px,calc(100dvh - 235px));overflow:auto;scrollbar-width:thin}.system-visual button{font-size:10px;padding:7px 8px}.visual-tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:10px}.visual-tabs .selected{background:#c3e784;color:#10271b;border-color:#c3e784}.closeup-image{aspect-ratio:1;background-image:url('system-closeups.png');background-size:400% 400%;border-radius:7px;position:relative;cursor:zoom-in}.closeup-tag{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#03171ce8);padding:35px 14px 12px;font-size:12px;color:#edf4ed}.node-popover .closeup-caption{font-size:10px;color:#8eaca3;line-height:1.65}.visual-sources a{display:block;font-size:12px;margin-top:17px}.visual-sources p{font-size:10px}.system-visual.image-expanded .closeup-image{aspect-ratio:.8}.input-output{background:#081e20;border-radius:6px;padding:10px 12px}.input-output span{display:block;font-size:9px;letter-spacing:1px;color:#c3e784;margin-bottom:3px}.node-popover .reader-intro{font-size:13px;color:#d9e6dd}.node-popover details{font-size:11px;color:#b4cabb;margin:14px 0}.node-popover summary{cursor:pointer;color:#c3dfb3;line-height:1.6}.node-popover details p{font-size:11px}.reader-glossary dl{font-size:11px;line-height:1.65}.reader-glossary dt{color:#e6eac8;margin-top:13px;font-weight:600}.reader-glossary dd{margin:3px 0 0;color:#9eb9ac}.dep-number{font-size:10px;color:#c3e784;padding-right:7px}.ribosome-stage{border:1px solid #31515a;border-radius:8px;overflow:hidden}.ribosome-stage svg{width:100%;height:auto;min-height:0;max-height:none}.ribosome-stage g,.ribosome-stage path,.ribosome-stage circle{transition:transform 1s ease,opacity .7s ease,d 1s ease,cx 1s ease,cy 1s ease}.animation-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:10px 0}.animation-controls label{font-size:10px;color:#a0b7aa;margin-left:auto}.animation-controls select{font-size:10px;padding:5px;width:60px}.animation-timeline{display:flex;gap:4px;flex-wrap:wrap}.animation-timeline button{font-size:8px;padding:5px}.animation-timeline .selected{border-color:#c3e784;color:#c3e784;background:#23402b}.step-info h4{font-size:14px;color:#e6eddd;margin:16px 0 7px;line-height:1.4}.node-popover .step-info .step-description{font-size:12px;color:#d1dfd6}.node-popover .energy-note{font-size:10px;border-left:2px solid #c3e784;padding-left:9px;color:#b6c7ae}.node-popover .animation-limit{font-size:9px;color:#7e9f94;line-height:1.7}.experimental-link{font-size:10px;line-height:1.6;display:block;margin:10px 0}.step-info details{border-top:1px solid #2b493f;padding-top:8px}.animation-key{font-size:10px;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px 0}.animation-key span{border-left:3px solid var(--key);padding-left:6px;color:#b7cdbf}.component-explainer{background:#0d2527;border:1px solid #254043;padding:22px;border-radius:8px;margin:25px 0}.component-explainer>p{font-size:15px;color:#d3e0d4;line-height:1.8}.component-explainer details{margin:20px 0;color:#9eb8aa;line-height:1.8}.component-explainer summary{color:#c3e784;cursor:pointer}.component-explainer .system-visual{max-width:700px}.component-explainer .closeup-image{max-width:440px}.component-explainer .ribosome-stage{max-width:700px}.component-explainer .step-info p{line-height:1.8}.component-explainer .animation-limit{font-size:11px;color:#91aaa6;line-height:1.8}.cell-inspecting #cellsvg image{filter:brightness(.85);transition:filter .2s}.closeup-image[hidden],.animation-host[hidden],.visual-sources[hidden]{display:none}@keyframes systemReveal{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@media(max-width:760px){.visual-popover{width:calc(100vw - 28px);padding:16px}.popover-body{grid-template-columns:1fr;gap:15px;overflow:auto;max-height:calc(100dvh - 235px)}.popover-visual-column,.visual-popover .popover-scroll{overflow:visible;max-height:none}.closeup-image{max-height:280px;aspect-ratio:1}.visual-popover h2{font-size:21px}}@media(prefers-reduced-motion:reduce){.visual-popover{animation:none}.ribosome-stage g,.ribosome-stage path,.ribosome-stage circle{transition:none}}

/* Larger reading windows with a separate scroll area for each column. */
.node-popover.visual-popover{box-sizing:border-box;width:1120px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:24px;font-size:16px;overflow-y:auto}
.node-popover.visual-popover .popover-body{grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr);gap:26px}
.node-popover.visual-popover h2{font-size:30px;line-height:1.3;margin:10px 0 6px}
.node-popover.visual-popover h3{font-size:14px;line-height:1.5;letter-spacing:.6px}
.node-popover.visual-popover p,.node-popover.visual-popover li,.node-popover.visual-popover details,.node-popover.visual-popover details p,.node-popover.visual-popover .reader-glossary dl{font-size:16px;line-height:1.7;color:#d6e5dc}
.node-popover.visual-popover .reader-intro{font-size:17px;color:#edf4ed}
.node-popover.visual-popover .system-technical-name{font-size:15px;color:#b9cec3}
.node-popover.visual-popover .popover-scroll,.node-popover.visual-popover .popover-visual-column{max-height:min(720px,calc(100dvh - 250px));overflow-y:auto;overflow-x:hidden;min-width:0;padding-right:12px;scrollbar-gutter:stable}
.node-popover.visual-popover .popover-top{font-size:12px;letter-spacing:1px}
.node-popover.visual-popover .popover-top button{font-size:26px;min-width:40px;min-height:40px}
.node-popover.visual-popover .popover-dependency a,.node-popover.visual-popover .popover-action{font-size:16px;line-height:1.5}
.node-popover.visual-popover .input-output span,.node-popover.visual-popover .dep-number{font-size:12px}
.node-popover.visual-popover .popover-note,.node-popover.visual-popover .closeup-caption,.node-popover.visual-popover .animation-limit,.node-popover.visual-popover .energy-note,.node-popover.visual-popover .experimental-link{font-size:14px;line-height:1.65;color:#b7cfc3}
.node-popover.visual-popover .system-visual button,.node-popover.visual-popover .animation-controls label,.node-popover.visual-popover .animation-controls select,.node-popover.visual-popover .animation-timeline button,.node-popover.visual-popover .animation-key,.node-popover.visual-popover .closeup-tag{font-size:13px;line-height:1.5}
.node-popover.visual-popover .step-info h4{font-size:18px}.node-popover.visual-popover .step-info .step-description{font-size:16px}
.node-popover.visual-popover .system-process-flow{padding:14px}.node-popover.visual-popover .system-process-flow .flow-sequence{font-size:17px;color:#d0ed9e}.node-popover.visual-popover .system-process-flow .flow-label{font-size:12px;color:#c3e784}
@media(max-width:900px){.node-popover.visual-popover{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px}.node-popover.visual-popover .popover-body{grid-template-columns:minmax(0,1fr);max-height:calc(100dvh - 230px);overflow:auto;gap:20px}.node-popover.visual-popover .popover-scroll,.node-popover.visual-popover .popover-visual-column{max-height:none;overflow:visible;padding-right:0}.node-popover.visual-popover h2{font-size:25px}.node-popover.visual-popover .closeup-image{max-height:320px}.node-popover.visual-popover .system-process-flow li{font-size:16px}}

@media(max-width:900px){.node-popover.visual-popover .popover-scroll{order:-1}.node-popover.visual-popover .popover-visual-column{order:0}}

/* Readable flow panels: type remains readable instead of shrinking inside SVG. */
.process-diagram.learn-diagram{display:block!important;max-width:1100px;width:100%;margin:24px auto;padding:clamp(16px,3vw,32px);box-sizing:border-box;background:#101c2b;border:1px solid #56718a;border-radius:18px;color:#edf3f7}
.learn-system{font:700 13px/1.5 system-ui;letter-spacing:.14em;color:#b8da8b;margin-bottom:8px}
.process-diagram.learn-diagram h4{font:750 clamp(28px,3.4vw,44px)/1.13 system-ui!important;color:#fff!important;margin:0 0 14px!important;letter-spacing:-.025em;text-transform:none}
.learn-purpose{font:650 clamp(20px,2vw,25px)/1.35 system-ui!important;color:#c9e99e!important;margin:0 0 12px!important}
.learn-intro{font:400 18px/1.6 system-ui!important;max-width:75ch;margin:0 0 24px!important;color:#e3eaf1!important}
.learn-stage{background:#17283b;border:1px solid #496078;border-radius:13px;padding:16px}
.learn-stage-label{display:flex;align-items:center;gap:10px;font:700 13px/1.4 system-ui;letter-spacing:.07em;color:#c5e59f;margin-bottom:13px}
.learn-stage-label>span{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:#c5e59f;color:#142235;font:750 16px system-ui}
.learn-cards{display:grid;grid-template-columns:repeat(var(--cards),minmax(0,1fr));gap:14px}
.learn-card{padding:17px;background:#22384e;border:1px solid #5a738a;border-radius:10px;min-width:0}
.learn-card h5{font:700 20px/1.35 system-ui!important;color:#fff!important;margin:0 0 9px!important;text-transform:none}
.learn-card p{font:400 18px/1.55 system-ui!important;color:#e0e9f1!important;margin:0!important}
.learn-arrow{text-align:center;color:#c5e59f;font:600 30px/1.3 system-ui;padding:3px}
.learn-diagram figcaption{font:500 17px/1.6 system-ui!important;margin:20px 0 0!important;padding:16px;border-left:3px solid #b8da8b;background:#1b2c3e;color:#edf3f7!important}
.learn-key{font:400 15px/1.5 system-ui!important;color:#bdcddd!important;margin:16px 0 0!important}
#systitle{font-size:clamp(36px,5vw,68px)!important;line-height:1.08!important}
.system-process-flow{min-width:0}.system-process-flow .learn-diagram{grid-column:1/-1}
@media(max-width:650px){.learn-cards{grid-template-columns:1fr}.learn-stage{padding:12px}.learn-card{padding:14px}.learn-card p,.learn-intro{font-size:17px!important}.process-diagram.learn-diagram{padding:15px}.learn-card h5{font-size:20px!important}}


.reader-glossary summary,.node-popover.visual-popover .reader-glossary summary{font-size:24px!important}
.reader-glossary dl,.reader-glossary dd,.node-popover.visual-popover .reader-glossary dl,.node-popover.visual-popover .reader-glossary dd{font-size:20px!important}
.reader-glossary dt,.node-popover.visual-popover .reader-glossary dt{font-size:22px!important}
#glossary dl,#glossary dd{font-size:20px!important}#glossary dt{font-size:22px!important}

.carbon-detail{margin:24px 0;padding:22px;border:1px solid #4a6875;border-radius:14px;background:#10252e;min-width:0}.carbon-detail h3{font-size:30px}.carbon-detail p,.carbon-detail li,.carbon-detail summary{font-size:18px!important;line-height:1.65}.carbon-detail a{color:#d1ecaa}.carbon-detail iframe{display:block;box-sizing:border-box;max-width:100%}

.carbon-network-scroll{max-width:100%;height:850px;overflow:auto;border:1px solid #607a85;border-radius:12px;background:#091923}

/* Show the complete network in a compact preview; open it for details. */
.carbon-network-scroll{height:auto;overflow:hidden}.carbon-network-scroll img{width:100%!important;max-width:100%!important;height:min(65vh,680px)!important;object-fit:contain;object-position:center;cursor:zoom-in}.carbon-network-scroll a{display:block}

/* Give every system its scientific name as the primary pop-up heading. */
.node-popover.visual-popover .system-popover-title{font-size:36px;font-weight:700;line-height:1.18;letter-spacing:-.6px;color:#edf4ed;margin:10px 0 8px;overflow-wrap:anywhere}
.node-popover.visual-popover .system-popover-subtitle{font-size:18px;line-height:1.5;color:#b9cec3;margin:0 0 18px}
@media(max-width:900px){.node-popover.visual-popover .system-popover-title{font-size:28px;line-height:1.22;letter-spacing:-.3px}.node-popover.visual-popover .system-popover-subtitle{font-size:17px}}

/* Experimental structure images are individual, uncropped scientific renderings. */
.system-visual .closeup-image.real-structure-image{background:#fff;background-image:none;aspect-ratio:auto;max-height:none;padding:8px;border-radius:8px;box-sizing:border-box;overflow:hidden}
.real-structure-image img{display:block;width:100%;height:auto;object-fit:contain;max-height:430px}
.system-visual.image-expanded .real-structure-image img{max-height:none}
.real-structure-image:focus-visible{outline:3px solid #c3e784;outline-offset:3px}
.node-popover.visual-popover .structure-protein-name,.component-explainer .structure-protein-name{font-size:20px;font-weight:600;color:#edf4ed;margin-top:14px}
.closeup-caption a{color:#c3e784;text-decoration:underline}
.node-popover.visual-popover .structure-credit,.node-popover.visual-popover .structure-scope{font-size:13px;line-height:1.6;color:#a7c2b5}

/* Present complete system diagrams in place of individual protein images. */
.node-popover.visual-popover .popover-body{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.node-popover.visual-popover .popover-visual-column>.process-diagram{margin:0;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.node-popover.visual-popover .popover-visual-column .learn-cards{grid-template-columns:repeat(var(--cards,1),minmax(0,1fr));gap:10px}
.node-popover.visual-popover .popover-visual-column .learn-card{min-width:0;padding:12px}
.node-popover.visual-popover .popover-visual-column .learn-card h5{font-size:17px;line-height:1.4}
.node-popover.visual-popover .popover-visual-column .learn-card p{font-size:15px;line-height:1.6}
.node-popover.visual-popover .popover-visual-column .learn-diagram h4{font-size:26px;line-height:1.25}
@media(max-width:900px){.node-popover.visual-popover .popover-body{grid-template-columns:minmax(0,1fr)}.node-popover.visual-popover .popover-visual-column{order:0}.node-popover.visual-popover .popover-scroll{order:1}}
@media(max-width:480px){.node-popover.visual-popover .popover-visual-column .learn-cards{grid-template-columns:minmax(0,1fr)}}

.node-popover.visual-popover .reference-network{margin:20px 0 26px;padding:14px;background:#0a242b;border:1px solid #66877a;border-radius:10px}
.node-popover.visual-popover .reference-network .reference-network-label{font-size:11px;letter-spacing:1.2px;color:#c3e784;margin:0 0 6px}
.node-popover.visual-popover .reference-network h5{font-size:21px;line-height:1.3;margin:0 0 6px;color:#edf4ed}
.node-popover.visual-popover .reference-network .reference-network-stats{font-size:13px;margin:0 0 12px;color:#c3e784}
.reference-network iframe{width:100%;height:430px;background:#fff;border:0;border-radius:6px;display:block}
.reference-network-open{display:block;padding:12px 0;color:#c3e784;font-size:15px;font-weight:600;line-height:1.5}
.node-popover.visual-popover .reference-network .reference-network-caption,.node-popover.visual-popover .reference-network .reference-network-credit{font-size:13px;line-height:1.6;margin:6px 0}
.reference-network-credit a{color:#c3e784;text-decoration:underline}
