/* Science Visualized · a calm instrument panel behind the exhibition. */
body:not(.home-page){--design-ink:#172124;--design-muted:#536361;--design-line:#dce4e1;--bg:#f0f4f2;--paper:#fff;--ink:var(--design-ink);--muted:var(--design-muted);--border:var(--design-line);--accent:#087b80;--lavender:#91d8d4;--tech-line:#dce4e1;--tech-shadow:none;background:var(--bg);background-image:none;color:var(--ink)}
body:not(.home-page) :focus-visible{outline:3px solid #0a8588;outline-offset:3px}
body:not(.home-page) ::selection{background:#a6e6de;color:#122d2c}
/* One brand row, then subject navigation. The controls keep their own handlers. */
body:not(.home-page) .app-header.designed-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;height:auto;min-height:0;padding:16px clamp(20px,3vw,44px) 0;gap:12px 24px;background:#f0f4f2;border:0;color:#172124;position:relative;z-index:35}
body:not(.home-page) .designed-header .brand{margin:0;color:#172124;font-size:18px;letter-spacing:-.035em;flex-shrink:0}
body:not(.home-page) .designed-header .brand-name,body:not(.home-page) .designed-header .brand-name>span{color:#172124}
body:not(.home-page) .designed-header .brand-symbol{width:36px;height:36px;border-radius:0}
body:not(.home-page) .designed-header .brand small{font-size:12px;color:#536361;letter-spacing:0}
.designed-header .nav-utilities{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}
body:not(.home-page) .designed-header .nav-utilities :is(.learning-entry,.language-picker,.top-back,.quiet-button){margin:0;order:initial;min-height:40px;padding:8px 12px;border:0;border-radius:5px;background:transparent;color:#34433f;font-size:13px;line-height:1.5;text-decoration:none;white-space:nowrap;box-shadow:none}
body:not(.home-page) .designed-header .nav-utilities .learning-entry{display:inline-flex;align-items:center;background:#172b2c;color:#f8fcfa;font-weight:500}
body:not(.home-page) .designed-header .nav-utilities :is(.language-picker,.top-back,.quiet-button):hover{background:#e2eae6;color:#172124}
body:not(.home-page) .designed-header .subject-tabs{display:flex;order:10;flex:0 0 100%;width:100%;margin:0;padding:0;gap:26px;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;border:0;border-radius:0;background:transparent;scrollbar-width:thin;scrollbar-color:#b8c8c2 transparent}
body:not(.home-page) .designed-header .subject-tabs a{flex:0 0 auto;background:transparent;box-shadow:none;border-radius:0;border:0;border-bottom:2px solid transparent;color:#596762;font-size:14px;padding:12px 0;min-height:46px}
body:not(.home-page) .designed-header .subject-tabs a:hover{color:#172124}
body:not(.home-page) .designed-header .subject-tabs a[aria-current]{color:#172124;border-bottom-color:#172124}
.nav-more{position:relative;flex:none}
.nav-more summary{display:flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;color:#34433f;cursor:pointer;font-size:13px;border:0;border-radius:5px;list-style:none;user-select:none}
.nav-more summary::-webkit-details-marker{display:none}
.nav-more summary:hover,.nav-more[open] summary{background:#e2eae6}
.nav-more-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:100;width:220px;padding:8px;background:#fff;border:1px solid #cbd7d2;border-radius:8px;box-shadow:0 12px 30px #172b2c26}
body:not(.home-page) .designed-header .nav-more-panel :is(.history-entry,.feedback-entry){display:flex;align-items:center;width:100%;min-height:46px;margin:0;padding:12px;border:0;border-radius:4px;background:transparent;color:#243c36;text-decoration:none;font-size:14px;gap:10px}
body:not(.home-page) .designed-header .nav-more-panel a:hover{background:#eef3f0}
body:not(.home-page) .module-tabs{position:relative;z-index:20;padding:8px clamp(20px,3vw,44px);gap:4px;background:#fff;border:0;border-bottom:1px solid #e0e7e3;box-shadow:none}
body:not(.home-page) .module-tabs a{border-radius:4px;padding:9px 14px;min-height:40px;color:#596762;font-size:14px}
body:not(.home-page) .module-tabs a[aria-current]{background:#e6eeea;color:#172124;box-shadow:none}
body:not(.home-page) .module-tabs a:hover{background:#f0f4f2;color:#172124}
/* The model is the picture. Compact headings put it above the fold. */
body[data-science-subject]:not(.home-page) :is(.page-heading,.science-heading,.space-heading,.atlas-heading,.sandbox-heading,.math-heading,.subject-hero,.learning-hero){position:relative;min-width:0;min-height:0;margin-bottom:26px;padding:0;gap:20px;border:0;border-radius:0;background:transparent;background-image:none;color:#172124;box-shadow:none}
body[data-science-subject]:not(.home-page) :is(.page-heading,.science-heading,.space-heading,.atlas-heading,.sandbox-heading,.math-heading,.subject-hero,.learning-hero)::before{display:none}
body[data-science-subject]:not(.home-page) :is(.page-heading,.science-heading,.space-heading,.atlas-heading,.sandbox-heading,.math-heading,.subject-hero,.learning-hero) h1{font-size:32px;font-weight:500;letter-spacing:-.04em;line-height:1.18;margin:0 0 10px;color:#172124;text-wrap:balance;max-width:100%}
body[data-science-subject]:not(.home-page) :is(.page-heading,.science-heading,.space-heading,.atlas-heading,.sandbox-heading,.math-heading,.subject-hero,.learning-hero) p{color:#536361;font-size:15px;line-height:1.65;max-width:760px;text-wrap:pretty}
body[data-science-subject]:not(.home-page) :is(.eyebrow,.science-kicker,.learn-eyebrow){display:none}
body[data-science-subject]:not(.home-page) .experiment-heading-actions .outline-button{margin:0;min-height:44px;font-size:12px}
body[data-science-subject]:not(.home-page) .learning-hero>.learn-link{background:#172b2c;border:0;border-radius:5px;color:#f8fcfa;min-width:0}
body:not(.home-page) :is(.space-main,.science-main,.atlas-main,.sandbox-main,.learn-page,.math-main){padding-top:30px;padding-bottom:60px}
body:not(.home-page) :is(.learn-card,.body-detail,.organelle-detail,.formula-panel,.parameter-panel,.selection-panel,.recipe-panel,.orbit-formula-card,.space-body-panel,.observation-panel,.insight-panel){border:1px solid #dce4e1;border-radius:8px;background:#fff;box-shadow:none}
body:not(.home-page) :is(.science-panel,.space-panel,.simulation-panel,.visual-panel,.cell-viewer){border-radius:8px;box-shadow:none}
body:not(.home-page) .science-panel.cell-workspace{background:#131e2c;border-color:#263247;color:#e8eff7}
body:not(.home-page) :is(.formula-panel,.parameter-panel,.selection-panel) h2{letter-spacing:-.02em}
body:not(.home-page) :is(.atlas-topic-card,.math-topic-card,.math-topic,.cs-topic){border:1px solid #dce4e1;border-radius:8px;padding:25px;background:#fff;color:#172124;box-shadow:none;transition:border-color .2s,background-color .2s}
body:not(.home-page) :is(.atlas-topic-card,.math-topic-card,.math-topic,.cs-topic):hover{transform:none;border-color:#6a9992;background:#fafcfb;box-shadow:none}
body:not(.home-page) :is(.atlas-topic-card,.math-topic-card,.math-topic,.cs-topic) h2{font-size:25px;letter-spacing:-.035em;line-height:1.25;font-weight:500;margin-top:14px}
body:not(.home-page) :is(.atlas-topic-card,.math-topic-card,.math-topic,.cs-topic) p{font-size:15px;line-height:1.65;color:#536361}
body:not(.home-page) .math-topic strong{font-size:25px;font-weight:500;letter-spacing:-.035em;line-height:1.25}
body:not(.home-page) .math-topic small{font-size:14px;color:#536361;line-height:1.65}
body:not(.home-page) .topic-open{padding-top:16px;border:0;margin-top:12px;color:#32685f}
body:not(.home-page) .topic-number{display:none}
body:not(.home-page) .atlas-controls{background:#fff;border-color:#dce4e1;border-radius:8px;padding:20px}
body:not(.home-page) .sidebar{background:#f0f4f2;border-right:0}
body:not(.home-page) .app-shell>main{background:#fff;border-radius:10px 0 0 0;margin:8px 8px 0 0}
body:not(.home-page) .experiment-button{border-radius:5px;color:#536361}
body:not(.home-page) .experiment-button.active{background:#e0e9e4;color:#172124;border-color:transparent;box-shadow:none}
body:not(.home-page) .experiment-button:hover{background:#e6ede9}
body:not(.home-page) :is(.apply-button,.primary-practice,.learn-button.primary){background:#172b2c;border-color:#172b2c;color:#fff;box-shadow:none}
body:not(.home-page) :is(.apply-button,.primary-practice,.learn-button.primary):hover{background:#304e47}
body:not(.home-page) :is(.learn-button,.learn-link){border-color:#c9d7d0;background:#f5f8f6;color:#304e47;border-radius:5px}
body:not(.home-page) .learn-button[aria-pressed=true]{background:#dce9e2;border-color:#9bb7a9;color:#193b2e}
body:not(.home-page) :is(.learning-resource,.learning-workspace>.learning-save,.learning-content .learn-controls,.route-unit,.route-unit .route-target){border-radius:8px;border-color:#dce4e1;box-shadow:none;background:#fff}
body:not(.home-page) .learning-resource:hover{border-color:#6a9992;box-shadow:none}
body:not(.home-page) .resource-index{display:none}
body:not(.home-page) .learning-resource{grid-template-columns:1fr;gap:0;padding:20px}
body:not(.home-page) .learning-resource strong{color:#172124;font-size:17px}
body:not(.home-page) .learning-resource small{color:#536361;font-size:14px}
body:not(.home-page) .route-unit{border-left:1px solid #dce4e1}
body:not(.home-page) :is(.standard-equation,.tile-equation,.selected-formula,.textbook-symbol){color:#185f64}
body:not(.home-page) :is(.formula-badge,.symbol-chip,.symbol-token){background:#edf5f1;color:#2c6255;border-color:#dce7e1}
body:not(.home-page) :is(.lesson-equations,.draft-preview){background:#edf5f1;border-color:#dce7e1;border-radius:6px}
body:not(.home-page) .lesson-symbols button{color:#2c6255;border-color:#c9d7d0;border-radius:5px}
body:not(.home-page) .lesson-symbols button[aria-pressed=true]{background:#234a42;border-color:#234a42;color:#fff}
body:not(.home-page) .parameter.lesson-highlight{background:#e8f4ef;outline-color:#75b6a3}
body:not(.home-page) #timeline.lesson-highlight{outline-color:#75b6a3}
body:not(.home-page) .param-symbol{color:#336d61}
body:not(.home-page) .learning-hero .learn-muted{font-size:14px;color:#536361}
@media(max-width:1000px){
 body:not(.home-page) .app-header.designed-header{gap:10px 16px;padding-top:14px}
 body:not(.home-page) .designed-header .subject-tabs{gap:23px}
 body:not(.home-page) .designed-header .nav-utilities{gap:4px}
}
@media(max-width:700px){
 body:not(.home-page) .app-header.designed-header{padding:16px 20px 0;gap:12px;align-items:center}
 body:not(.home-page) .designed-header .brand{font-size:17px;flex-basis:auto}
 body:not(.home-page) .designed-header .nav-utilities{flex-basis:100%;justify-content:flex-start;margin:0;gap:3px}
 body:not(.home-page) .designed-header .nav-utilities :is(.learning-entry,.language-picker,.top-back,.quiet-button){min-height:44px;font-size:12px;padding:8px 10px}
 body:not(.home-page) .designed-header .subject-tabs{gap:22px;flex-basis:100%}
 body:not(.home-page) .designed-header .subject-tabs a{font-size:14px;padding:11px 0;min-height:44px}
 body:not(.home-page) .module-tabs{padding:7px 16px;gap:2px}
 body:not(.home-page) .module-tabs a{padding:8px 11px;font-size:13px;min-height:44px}
 body:not(.home-page) :is(.space-main,.science-main,.atlas-main,.sandbox-main,.learn-page,.math-main){padding:24px 20px 44px}
 body[data-science-subject]:not(.home-page) :is(.page-heading,.science-heading,.space-heading,.atlas-heading,.sandbox-heading,.math-heading,.subject-hero,.learning-hero){margin-bottom:22px;gap:16px;flex-wrap:wrap}
 body[data-science-subject]:not(.home-page) :is(.page-heading,.science-heading,.space-heading,.atlas-heading,.sandbox-heading,.math-heading,.subject-hero,.learning-hero) h1{font-size:28px;line-height:1.2}
 body[data-science-subject]:not(.home-page) :is(.page-heading,.science-heading,.space-heading,.atlas-heading,.sandbox-heading,.math-heading,.subject-hero,.learning-hero) p{font-size:14px}
 body:not(.home-page) .app-shell>main{margin:0;border-radius:0}
 body:not(.home-page) :is(.atlas-topic-card,.math-topic-card,.math-topic,.cs-topic){padding:22px}
 body:not(.home-page) .nav-more-panel{left:0;right:auto;max-width:calc(100vw - 40px)}
}
@media print{body:not(.home-page){background:#fff;color:#111}.nav-utilities,.module-tabs{display:none!important}}
