:root{--ink:#1b3156;--text:#37516c;--muted:#6b819b;--line:#dce8f0;--mint:#15ad99;--teal:#158f9a;--sky:#e7f8ff;--blue:#316fe8;--yellow:#ffbd55;--shell:1320px;--shadow:0 18px 45px rgba(28,60,101,.065)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.science-studio{margin:0;background:#f7fbff;color:var(--ink);font-family:Nunito,Arial,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit}
button,select{font-family:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #2764dd;outline-offset:3px}
[hidden]{display:none!important}
.studio-container{width:min(var(--shell),calc(100% - 64px));margin-inline:auto}
.skip-link{position:absolute;left:12px;top:-100px;background:#fff;padding:10px;z-index:99}.skip-link:focus{top:8px}
.studio-header{background:#fff;border-bottom:1px solid #eaf0f5;min-height:78px}
.nav-inner{display:flex;align-items:center;gap:36px;min-height:78px}
.site-logo img{width:160px;height:auto;display:block}
.studio-nav{display:flex;gap:9px;align-items:center;margin-left:auto}
.studio-nav a{color:#4d6685;font-size:.86rem;font-weight:900;text-decoration:none;padding:10px 13px;border-radius:11px;white-space:nowrap}
.studio-nav a:hover,.studio-nav a[aria-current="page"]{background:#e9f9f6;color:#087f82}
.nav-actions{display:flex;align-items:center;gap:10px}
.nav-actions a{text-decoration:none;font-size:.84rem;font-weight:900;padding:10px 19px;border-radius:100px;white-space:nowrap}
.nav-signin{border:1.5px solid #bad1e3;color:#285077}
.nav-signup{background:#127ca4;color:#fff;box-shadow:0 4px 14px rgba(30,117,156,.15)}
/* Hero */
.science-hero{position:relative;overflow:hidden;background:linear-gradient(105deg,#f0fbfd 0%,#effcff 53%,#e7f9ed 100%);border-bottom:1px solid #deeff1}
.science-hero:before{content:"";position:absolute;left:-170px;bottom:-250px;width:540px;height:540px;border-radius:50%;background:rgba(170,245,224,.16);pointer-events:none}
.science-hero-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(355px,.85fr);align-items:center;min-height:385px;gap:24px;padding-block:28px 33px}
.crumb{display:flex;align-items:center;flex-wrap:wrap;gap:11px;font-size:.77rem;font-weight:850;color:#748aa4}
.crumb a{text-decoration:none}
.crumb a:hover{text-decoration:underline;color:#086e8d}
.crumb strong{color:#227a82}
.hero-eyebrow{display:inline-flex;align-items:center;gap:9px;letter-spacing:.13em;font-size:.7rem;font-weight:900;color:#168476;margin-top:21px}
.eyebrow-dot{width:9px;height:9px;border-radius:50%;background:#1dbf9c;box-shadow:0 0 0 5px #d3f7e9}
.science-hero h1{font-family:Sora,Arial,sans-serif;letter-spacing:-.055em;font-size:clamp(2.5rem,4.7vw,4.5rem);font-weight:800;line-height:1.12;color:#18355b;margin:12px 0 14px}
.science-hero h1 span{color:#0d9e9e}
.science-hero p{max-width:635px;font-size:1.05rem;color:#536f89;font-weight:700;line-height:1.7;margin:0}
.hero-tools{display:flex;flex-wrap:wrap;align-items:center;gap:11px;margin-top:23px}
.year-picker{display:flex;align-items:center;gap:10px;padding:6px 7px 6px 16px;background:white;border:1.5px solid #cde8e5;border-radius:15px;color:#385b6f;font-weight:850;font-size:.85rem}
.year-picker select{padding:10px 14px;border-radius:9px;border:0;background:#e8f8f4;color:#167d85;font-size:.86rem;font-weight:900;min-width:96px}
.back-button{display:inline-flex;align-items:center;min-height:46px;padding:0 15px;color:#147d8c;text-decoration:none;background:#fff;border:1.5px solid #b7dee1;border-radius:13px;font-weight:900;font-size:.83rem}
.back-button:hover{background:#eaf8f6}
.hero-proof{display:flex;flex-wrap:wrap;gap:18px;font-size:.72rem;font-weight:850;color:#5e7d8c;margin-top:15px}
.hero-proof span:before{content:"✓";color:#0ca98b;margin-right:6px}
.hero-art{height:360px;display:flex;justify-content:center;align-items:center}
.hero-art svg{width:min(100%,515px);max-height:380px;filter:drop-shadow(0 14px 18px rgba(61,122,159,.08))}
/* Topic journey */
.studio-main{padding-top:30px;padding-bottom:70px}
.topic-selector{border:1px solid #e3ebf2;background:#fff;border-radius:24px;padding:27px 30px;box-shadow:var(--shadow)}
.topic-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}
.section-eyebrow{color:#168d90;font-size:.67rem;letter-spacing:.13em;font-weight:950}
.topic-heading h2,.activity-top h2{font:800 clamp(1.35rem,2.4vw,1.95rem)/1.3 Sora,sans-serif;letter-spacing:-.04em;margin:5px 0}
.topic-heading p{color:#77899e;margin:4px 0 0;font-size:.88rem;font-weight:750}
.topic-count{display:inline-flex;background:#edf9f5;border:1px solid #cdeee5;border-radius:50px;padding:8px 13px;color:#177e72;font-size:.77rem;font-weight:900;white-space:nowrap}
.topic-scroll{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.topic-pill{padding:11px 15px;background:#f6f9fd;border:1.5px solid #deebf2;border-radius:999px;color:#556e88;display:inline-flex;align-items:center;gap:8px;font-size:.83rem;font-weight:900;min-height:43px}
.topic-pill:hover{border-color:#89d5ca;color:#126e7a;background:#f3fcfa}
.topic-pill.active{background:#157f91;color:#fff;border-color:#157f91;box-shadow:0 5px 12px rgba(23,127,145,.13)}
.topic-pill .pill-count{font-size:.64rem;border-radius:50px;background:rgba(55,101,134,.09);padding:2px 6px}
.topic-pill.active .pill-count{background:rgba(255,255,255,.21)}
/* Question workstation */
.science-work{margin-top:26px}
.activity-top{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 4px 16px}
.modes{display:flex;gap:9px;background:#edf3f7;padding:5px;border-radius:16px}
.mode{border:0;border-radius:12px;color:#637c96;background:transparent;padding:9px 19px;text-align:left;min-width:132px}
.mode span{display:block;font:900 .94rem Nunito,Arial,sans-serif}
.mode small{display:block;font-size:.72rem;font-weight:700}
.mode.active{background:#fff;color:#117e90;box-shadow:0 3px 13px rgba(38,77,115,.11)}
.workspace{display:grid;grid-template-columns:270px minmax(0,1fr);align-items:start;gap:18px}
.study-sidebar{background:linear-gradient(160deg,#eefaf5,#eaf6ff);border:1px solid #d8ebea;border-radius:23px;padding:22px;min-height:470px;position:sticky;top:20px}
.sidebar-title{display:flex;align-items:center;gap:10px;font-size:.93rem;color:#214e67}
.side-emoji{display:flex;width:33px;height:33px;align-items:center;justify-content:center;background:#fff;border-radius:10px;color:#e6a74b;font-size:1.3rem}
.notebook-art{border-radius:18px;background:#fff;margin:18px 0 20px;height:135px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d9eaec}
.notebook-art svg{display:block;width:100%;height:100%}
.study-label{font-size:.66rem;letter-spacing:.12em;font-weight:950;color:#6d91a0}
.study-sidebar h3{font:800 1.16rem/1.4 Sora,sans-serif;color:#20556c;margin:8px 0}
.study-sidebar p{font-size:.84rem;font-weight:700;line-height:1.58;color:#608296;margin:0}
.study-divider{height:1px;background:#cce3e2;margin:22px 0}
.side-score{display:flex;gap:9px;align-items:center;margin-top:9px}
.side-score strong{font-size:1.55rem;color:#197789}
.side-score span{font-size:.74rem;color:#668397;font-weight:850}
.sidebar-bottom{margin-top:24px;font-size:.75rem;color:#547c85;display:flex;gap:8px;font-weight:850}
.mini-check{font-size:.75rem;color:#139779}
.activity-content{min-width:0}
.panel{background:#fff;border:1px solid #e1ebf2;border-radius:24px;box-shadow:var(--shadow);padding:29px;min-width:0}
.panel-head{display:flex;justify-content:space-between;align-items:start;gap:24px}
.eyebrow{letter-spacing:.14em;color:#1a97a4;font-size:.67rem;font-weight:950}
.panel h2{font:800 1.55rem/1.4 Sora,sans-serif;letter-spacing:-.03em;margin:7px 0;color:#254369}
.panel-head p{font-size:.84rem;font-weight:750;margin:6px 0 0;color:#8293a7}
.progress{min-width:150px;text-align:right}
.progress b{display:block;font-size:.78rem;color:#577c90;font-weight:900}
.track{background:#eaf2f4;border-radius:99px;overflow:hidden;margin-top:10px;height:9px}
.track i{background:linear-gradient(90deg,#1ac8a2,#24a4d5);display:block;height:100%;border-radius:99px;transition:width .25s ease;width:10%}
.question-card{margin-top:23px;padding:24px;border:1.5px solid #dceaf0;background:#fbfdff;border-radius:21px}
.question-marker{display:flex;justify-content:space-between;align-items:center;gap:12px}
.topic-token{background:#e4f8f2;border:1px solid #c7eae0;color:#147f70;padding:6px 11px;border-radius:99px;font-size:.69rem;font-weight:950}
.question-status{font-size:.7rem;color:#89a1b3;font-weight:800}
.question-card h3{font:800 clamp(1.15rem,2.1vw,1.62rem)/1.45 Sora,sans-serif;letter-spacing:-.035em;color:#183b66;margin:20px 0}
.science-figure{border:1px solid #d6e9f2;background:#f3faff;border-radius:18px;padding:7px;margin:0 0 22px}
.science-figure img{width:100%;height:auto;max-height:355px;object-fit:contain;display:block;border-radius:12px}
.science-figure figcaption{text-align:center;color:#7691a4;font-weight:800;font-size:.69rem;padding:5px 4px 2px}
.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.options button{display:flex;align-items:center;gap:11px;min-height:66px;border:1.5px solid #d8e4ed;border-radius:14px;background:#fff;padding:12px 15px;text-align:left;font:850 .87rem/1.45 Nunito,sans-serif;color:#365371;transition:border-color .18s,background .18s,transform .18s}
.options button:hover:not(:disabled){background:#f1fcfc;border-color:#76c9c4;transform:translateY(-1px)}
.choice-letter{display:inline-flex;flex:0 0 31px;height:31px;align-items:center;justify-content:center;border-radius:10px;background:#edf4fa;color:#487392;font-size:.83rem;font-weight:950}
.options button.selected{border:2px solid #178f98;background:#e8f9f6;color:#146c7b}
.options button.selected .choice-letter{background:#168d91;color:white}
.options button.correct{border:2px solid #22aa7a;background:#e6f9f1;color:#146c52}
.options button.correct .choice-letter{background:#20a379;color:white}
.options button.wrong{border:2px solid #e38a83;background:#fff0ef;color:#ab4949}
.options button.wrong .choice-letter{background:#d96f69;color:white}
.options button:disabled{opacity:1}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border:0;border-radius:12px;padding:11px 19px;font-weight:950;font-size:.86rem}
.primary{background:linear-gradient(135deg,#13a79a,#178da9);color:white;box-shadow:0 6px 12px rgba(29,139,150,.12)}
.primary:hover{background:#11888e}
.secondary{background:#eaf2f7;color:#42607a}
.secondary:hover{background:#dcecf4}
.feedback{font-size:.84rem;font-weight:900;margin-top:16px;min-height:10px}
.feedback.good{color:#18815d}.feedback.bad{color:#b85d4f}
.explain{margin-top:12px;background:#effaf6;color:#316a60;font-weight:800;line-height:1.7;padding:14px 16px;border-left:4px solid #20af8d;border-radius:10px;font-size:.88rem}
/* Timed test */
.timer{min-width:118px;text-align:center;padding:10px 15px;border-radius:14px;background:#fff5e8;color:#a86b39;border:1px solid #f5e5ce}
.timer span{display:block;font-size:.65rem;font-weight:900}.timer strong{font:800 1.55rem Sora,sans-serif}
.timer.urgent{background:#fff0ef;color:#b63d4c}
.test-intro{text-align:center;margin:18px auto;padding:10px 0}
.test-intro p{color:#647e93;font-weight:750;font-size:.87rem}
.rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px auto 25px}
.rules div{padding:22px 8px;border:1px solid #e0eaf0;background:#f4fafb;border-radius:16px}
.rules b{display:block;font:800 2rem Sora,sans-serif;color:#0e96a2}
.rules span{font-size:.79rem;color:#657c8d;font-weight:800}
.test-meta{display:flex;justify-content:space-between;gap:15px;margin-top:22px;color:#6b8599;font-weight:900;font-size:.81rem}
.dots{display:grid;grid-template-columns:repeat(10,1fr);gap:8px;margin-top:21px}
.dots button{background:#edf4fa;border:1px solid #d6e5ed;border-radius:9px;color:#617a90;padding:9px 0;font-weight:900}
.dots button.current{background:#188e9a;color:#fff}.dots button.answered{background:#e4f9ee;border-color:#8ccfb2}
.result{text-align:center;padding:15px 0}
.mark{font:800 3.3rem Sora,sans-serif;color:#174d77;display:block;margin-top:7px}
.percent{font:800 1.65rem Sora,sans-serif;color:#109d83}
.result p{color:#688195;font-size:.87rem}
.review{display:grid;gap:11px;text-align:left;margin-top:25px}
.review details{background:#f9fcff;border:1px solid #e1eaf3;border-left:4px solid #df947e;border-radius:12px;padding:13px 17px}
.review details.ok{border-left-color:#2dbb8f}
.review summary{font-weight:950;font-size:.83rem;color:#28516f;cursor:pointer;line-height:1.6}
.review p{font-size:.84rem;color:#58748d;line-height:1.65}
.review .review-figure{margin:12px 0 5px;max-width:520px;border-radius:12px;border:1px solid #d7e8ef;background:#f0faff}
.review .review-figure img{display:block;width:100%;height:auto}
.result-actions{justify-content:center}
.studio-footer{border-top:1px solid #e4eef3;padding:25px 0;background:#fff}
.studio-footer .studio-container{display:flex;justify-content:space-between;gap:14px;color:#7c92a6;font-size:.77rem;font-weight:850}
/* Age-aware subtle accents: no rainbow decorations */
body[data-year="K"],body[data-year="1"]{--mint:#1cad85;--teal:#168e8d}
body[data-year="2"],body[data-year="3"]{--mint:#13aa95;--teal:#127b9e}
body[data-year="4"],body[data-year="5"],body[data-year="6"]{--mint:#119bae;--teal:#197aa4}
@media(max-width:1100px){.studio-container{width:min(var(--shell),calc(100% - 40px))}.workspace{grid-template-columns:226px minmax(0,1fr)}.study-sidebar{padding:17px}.science-hero-layout{grid-template-columns:minmax(0,1fr) 38%}.studio-nav{gap:2px}.nav-inner{gap:14px}}
@media(max-width:820px){.studio-nav{display:none}.nav-actions{margin-left:auto}.science-hero-layout{grid-template-columns:minmax(0,1fr) 32%;min-height:320px}.hero-art{height:300px}.workspace{grid-template-columns:1fr}.study-sidebar{display:grid;grid-template-columns:110px 1fr;column-gap:18px;min-height:0;position:static}.study-sidebar .sidebar-title{grid-column:1/-1}.study-sidebar .notebook-art{grid-row:2/6;height:100px}.study-sidebar .study-divider,.study-sidebar .sidebar-bottom{display:none}.topic-selector{padding:23px}.panel{padding:23px}}
@media(max-width:600px){.studio-container{width:calc(100% - 26px)}.studio-header,.nav-inner{min-height:67px}.site-logo img{width:131px}.nav-signin{display:none}.nav-actions a{padding:9px 15px;font-size:.78rem}.science-hero-layout{display:block;min-height:0;padding-top:19px;padding-bottom:14px}.science-hero h1{font-size:clamp(2.1rem,9.2vw,3.1rem)}.science-hero p{font-size:.91rem}.hero-art{height:180px;margin-top:-12px}.hero-art svg{max-height:210px}.hero-eyebrow{margin-top:18px}.hero-tools{margin-top:19px}.year-picker{font-size:.73rem}.back-button{font-size:.76rem}.hero-proof{gap:9px;font-size:.68rem}.topic-selector{border-radius:19px;padding:19px 14px}.topic-heading{display:block}.topic-count{margin-top:12px}.topic-scroll{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:7px;scroll-snap-type:x proximity}.topic-pill{white-space:nowrap;scroll-snap-align:start;flex-shrink:0}.activity-top{display:block}.modes{margin-top:12px}.mode{flex:1;padding:9px 11px;min-width:0}.workspace{gap:12px}.study-sidebar{grid-template-columns:94px 1fr;gap:11px;padding:14px;border-radius:18px}.study-sidebar .notebook-art{height:95px;margin:10px 0}.study-sidebar h3{font-size:1rem}.study-sidebar p{font-size:.74rem}.study-sidebar .study-label{font-size:.6rem}.side-score strong{font-size:1.2rem}.panel{padding:17px 13px;border-radius:18px}.panel-head{display:block}.progress{text-align:left;margin-top:14px}.question-card{padding:15px 12px;border-radius:16px}.question-card h3{font-size:1.1rem;line-height:1.52}.options{grid-template-columns:1fr}.options button{min-height:59px}.science-figure{padding:5px}.science-figure img{max-height:none}.question-status{display:none}.rules{gap:7px}.rules div{padding:15px 5px}.rules b{font-size:1.4rem}.dots{grid-template-columns:repeat(5,1fr)}.studio-footer .studio-container{flex-direction:column;gap:5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.options button{transition:none}}

/* Year-specific Science topic directory, sharing the science studio style */
.science-hub-main{padding-top:36px;padding-bottom:70px}
.science-hub-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:23px}
.science-hub-heading h2{font:800 clamp(1.6rem,3vw,2.4rem)/1.3 Sora,sans-serif;letter-spacing:-.04em;margin:8px 0;color:#1e3f65}
.science-hub-heading p{color:#6c8598;font-size:.91rem;font-weight:750;margin:0}
.science-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.science-topic-card{display:block;overflow:hidden;background:white;border:1px solid #e0eaf1;border-radius:22px;box-shadow:0 9px 28px rgba(30,72,110,.055);text-decoration:none;
  transition:transform .18s ease,border-color .18s,box-shadow .18s}
.science-topic-card:hover{transform:translateY(-4px);border-color:#83d5cd;box-shadow:0 17px 33px rgba(30,82,117,.11)}
.topic-card-visual{background:linear-gradient(145deg,#f2fcff,#eefbf5);height:185px;padding:9px 17px}
.topic-card-visual svg{height:100%;width:100%;object-fit:contain;display:block}
.topic-card-info{padding:22px 23px 23px}
.topic-card-tag{font-size:.65rem;letter-spacing:.11em;font-weight:950;color:#168a88}
.topic-card-info h3{font:800 1.17rem/1.4 Sora,sans-serif;margin:7px 0;color:#234b6c;letter-spacing:-.03em}
.topic-card-info p{color:#72899a;font-size:.84rem;font-weight:750;line-height:1.6;min-height:52px;margin:8px 0 20px}
.topic-card-bottom{border-top:1px solid #e7eff3;padding-top:15px;display:flex;justify-content:space-between;gap:12px;align-items:center;color:#7d90a2;font-size:.8rem;font-weight:850}
.topic-card-link{color:#108a92;font-weight:950}
.science-hub-note{background:#f0faf7;border:1px solid #d7efe8;border-radius:17px;padding:18px 21px;color:#48736c;margin-top:27px;font-size:.86rem;font-weight:750}
.science-hub-note strong{color:#147963;margin-right:4px}
@media(max-width:1000px){.science-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.science-hub-main{padding-top:22px}.science-hub-heading{display:block}.science-hub-heading .topic-count{margin-top:14px}.science-topic-grid{grid-template-columns:1fr;gap:13px}.topic-card-visual{height:155px}.topic-card-info{padding:16px 18px}.topic-card-info p{min-height:0;margin-bottom:15px}.science-hub-note{padding:15px}}

@media(max-width:600px){.study-sidebar .side-score{grid-column:1/-1;display:flex;align-items:center;gap:11px;white-space:nowrap}.study-sidebar .side-score strong{white-space:nowrap;font-size:1.35rem}.study-sidebar .side-score span{font-size:.75rem}}
