/* LearnSphere — classroom exploration. Shared tokens and responsive scene shell. */
:root{color-scheme:dark;--bg:#06090c;--surface:#101518;--line:#ffffff1c;--text:#f2f5f2;--muted:#9ba6a6;--accent:#a6f275;--ui-line:var(--line)}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}button,select,summary,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button,summary{cursor:pointer;touch-action:manipulation}button{min-height:44px}button,a,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent)}button{transition:background .18s,color .18s,transform .18s;border:1px solid var(--line);background:transparent}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit}small{display:block;color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
/* Home: one leading lesson, with direct paths into the working experience. */
#home{height:100%;overflow:auto;background:#080c10}.home-header{max-width:1440px;padding:28px 5%;margin:auto;display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:23px;font-weight:650;letter-spacing:-.7px}.brand-mark{font-size:32px;color:var(--accent)}.brand small{font-weight:400;font-size:10px;letter-spacing:1.4px}.home-context{font-size:10px;letter-spacing:2px;color:#7c8b8b;margin-left:auto}.home-nav{font-size:12px;text-decoration:none}.home-nav span{margin-left:22px;color:var(--accent)}.home-main{max-width:1440px;margin:auto;padding:50px 5% 25px}.welcome{display:flex;justify-content:space-between;align-items:end;margin-bottom:38px;gap:30px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--accent);font-weight:600}.welcome h1{font-size:clamp(36px,4.3vw,62px);line-height:1.1;letter-spacing:-2px;font-weight:500;margin:16px 0 0}.welcome>p{color:var(--muted);line-height:1.8;font-size:14px}.featured-lesson{position:relative;min-height:410px;overflow:hidden;border:1px solid #ffffff24;border-radius:16px;background:radial-gradient(ellipse at 80% 80%,#18313a 0,transparent 58%),#080f17;display:flex;align-items:center}.lesson-copy{padding:45px;position:relative;z-index:1;width:53%}.lesson-kicker{font-size:10px;letter-spacing:2px;color:#bac8c5;display:flex;align-items:center;gap:10px}.lesson-kicker i{width:6px;height:6px;background:var(--accent);border-radius:50%}.lesson-copy h2{font-weight:500;font-size:clamp(32px,4vw,52px);line-height:1.1;letter-spacing:-1.8px;margin:20px 0}.lesson-copy p{max-width:350px;color:#aab8bb;font-size:14px;line-height:1.75}.primary-action{display:inline-flex;gap:35px;align-items:center;background:var(--accent);color:#15200e;border:0;padding:14px 20px;border-radius:7px;font-size:13px;font-weight:650;margin:12px 0 20px}.primary-action:hover{background:#baff91;transform:translateY(-2px)}.primary-action span{font-size:19px}.lesson-meta{font-size:10px;color:#839698}.lesson-meta span{margin:0 8px}.hero-world{position:absolute;inset:0 0 0 48%;pointer-events:none}.hero-earth{width:360px;height:360px;position:absolute;left:13%;top:48px;border-radius:50%;background:url('textures/earth_daymap.jpg') 40% center/auto 100%;box-shadow:inset -80px -20px 75px #000,inset 6px 3px 12px #b7dfff99,0 0 45px #6bbfff13;transform:rotate(-23deg)}.hero-orbit{width:540px;height:220px;position:absolute;left:-6%;top:120px;border:1px solid #b5d1dd25;border-radius:50%;transform:rotate(-28deg)}.hero-label{position:absolute;right:25px;bottom:25px;font-size:10px;letter-spacing:2px;color:#c6d9dc}.hero-label span{display:block;font-size:10px;letter-spacing:0;color:#7e9ba3}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:35px 0 20px}.section-heading h2{font-size:19px;font-weight:500;letter-spacing:-.4px;margin:0}.section-heading>span{font-size:11px;color:var(--muted)}.discoveries{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.discovery{position:relative;text-align:left;border:0;border-top:1px solid #ffffff30;padding:18px 0;overflow:hidden;min-height:170px}.discovery:hover{border-color:var(--accent);background:#ffffff03}.discovery-number{font-size:9px;letter-spacing:1.4px;color:#8d9d9e;display:block}.discovery strong{display:block;font-size:17px;font-weight:500;margin-top:57px;position:relative}.discovery strong span{float:right;color:var(--accent)}.discovery small{font-size:11px;margin-top:7px;position:relative}.discovery-sphere{position:absolute;right:5px;top:10px;width:70px;height:70px;border-radius:50%;background-size:auto 100%;box-shadow:inset -15px -5px 18px #000b;opacity:.8}.earth{background-image:url('textures/earth_daymap.jpg')}.saturn{background-image:url('textures/saturn.jpg')}.sun{background-image:url('textures/sun.jpg')}.home-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px;margin-top:20px;color:#718183;font-size:10px}
/* The scene stays visible behind a restrained contextual interface. */
#scene{position:fixed;inset:0;background:#000}#view{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;z-index:0}.top{position:absolute;inset:0 0 auto;height:76px;padding:0 25px;display:flex;align-items:center;gap:22px;background:linear-gradient(#05090ef0,#05090eaa,transparent);z-index:5}.top button,.top select,.top summary,#showUI{border:1px solid transparent;border-radius:6px;background:#101619bb;padding:10px 12px;min-height:44px;font-size:12px;color:#c7d2d2}.top button:hover,.top summary:hover{background:#24302d;color:#fff}.scene-heading{display:flex;flex-direction:column;min-width:120px;line-height:1.5}.scene-heading span{font-size:8px;letter-spacing:2px;color:#8faaa2}.scene-heading strong{font-size:16px;font-weight:500}.top-actions{margin-left:auto;display:flex;align-items:center;gap:6px}.search-label select{max-width:165px}.top #presentation{border-color:#a6f27545;color:var(--accent)}.top #homeBtn{background:none;border-right:1px solid var(--line);border-radius:0;padding-left:0;padding-right:20px}.simulation,.help-menu{position:relative}summary{list-style:none}summary::-webkit-details-marker{display:none}.simulation summary{display:flex;align-items:center;gap:12px}.help-menu summary{width:44px;text-align:center}.simulation-panel,.help-menu>div{position:absolute;top:53px;right:0;width:300px;padding:20px;border:1px solid var(--line);border-radius:10px;background:#101619f7;box-shadow:0 15px 50px #000a;z-index:8}.help-menu>div{font-size:13px;line-height:1.8;width:270px}.section-label{font-size:9px;letter-spacing:1.7px;color:#8d9f99;margin-bottom:12px}.section-label:not(:first-child){margin-top:22px}.motion,.camera-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.sim-clock{width:100%;margin-bottom:8px}.sim-clock strong{font-size:16px;font-weight:500}.sim-clock small{font-size:10px}.motion button,.motion select,.camera-tools button{padding:8px 10px;background:#1a2426;border:1px solid var(--line);border-radius:6px;font-size:12px}.motion label{font-size:12px}.camera-tools button[aria-pressed=true]{color:var(--accent)}
#caption{position:absolute;left:32px;top:110px;pointer-events:none;z-index:2}#caption strong{font-size:32px;font-weight:450;letter-spacing:-1px}#caption span{display:block;font-size:13px;color:#a1b3b8;margin-top:7px}#caption small{font-size:10px;margin-top:15px;color:#607c89}#labels{position:absolute;inset:0;pointer-events:none;z-index:1}.planet-label{position:absolute;transform:translate(-50%,16px);padding:3px 6px;background:#0006;font-size:11px;color:#b5c7cf;white-space:nowrap;text-shadow:0 1px 5px black}
aside#detail,#galaxyInfo{position:absolute;z-index:3;left:25px;top:105px;width:330px;max-height:calc(100dvh - 235px);overflow:auto;padding:25px 24px;background:linear-gradient(135deg,#10181ced,#080e12e8);border:1px solid var(--line);border-radius:12px;backdrop-filter:blur(16px);scrollbar-width:thin;scrollbar-color:#3c5047 transparent;animation:panel-in .3s ease-out}aside h1{font-size:38px;font-weight:450;letter-spacing:-1.5px;line-height:1.1;margin:12px 0 5px}aside p{font-size:13px;line-height:1.7;color:#becacb;margin:14px 0}#kind{color:#839c94;font-size:11px;margin:0}#panelCollapse{position:absolute;right:10px;top:12px;border:0;color:#a2b4ae;font-size:23px;width:36px;height:36px;min-height:36px;border-radius:5px}#panelCollapse:hover{background:#ffffff12}aside#detail.collapsed{width:54px;height:54px;padding:0;overflow:visible}aside#detail.collapsed #panelCollapse{top:8px;right:9px}aside#detail.collapsed>:not(#panelCollapse){display:none!important}.sun-object>#fact,.sun-object>.facts,.sun-object>#extra,.sun-object>#source{display:none}.object-tabs{display:flex;flex-wrap:wrap;margin:24px 0 17px;gap:0;border-bottom:1px solid var(--line)}.object-tabs button{font-size:11px;flex:1;white-space:nowrap;border:0;border-bottom:2px solid transparent;min-height:44px;padding:10px 5px;color:#8faaa4;border-radius:0}.object-tabs button[data-mode=explore]{flex-basis:100%;text-align:left}.object-tabs button:hover{color:#edf7ef;background:#ffffff06}.object-tabs button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent);background:transparent}.exterior-facts{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;border-block:1px solid var(--line);padding:17px 0;margin:20px 0!important}.exterior-facts dt{font-size:10px!important;color:#849791!important}.exterior-facts dd{font-size:14px!important;margin-top:5px!important;color:#edf4ef!important}.explore-prompt{font-size:11px!important;color:#748d83!important}.zoom{display:flex;gap:6px;margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.zoom button{width:44px;background:transparent;border:0;border-radius:6px;font-size:20px;color:#b2c2bb}.zoom button:hover{background:#ffffff12;color:var(--accent)}.zoom button:nth-child(3){margin-left:auto}.source{color:#a0c79c;font-size:11px;text-underline-offset:4px}.model-note{font-size:10px!important;color:#8a9b95!important;line-height:1.5!important}#sunExperience details{border-bottom:1px solid var(--line);padding:12px 0}#sunExperience summary{font-size:13px;min-height:36px;color:#d4e1d9}#sunExperience summary:after{content:'+';float:right;color:var(--accent)}#sunExperience details[open]>summary:after{content:'−'}#sunExperience dl{display:grid;grid-template-columns:1fr 1.35fr;gap:12px;font-size:12px}#sunExperience dt{color:#8a9e94}#sunExperience dd{margin:0;color:#d2e1da}.layer-row{display:flex;gap:4px;border-bottom:1px solid #ffffff0c}.layer-row button{border:0;border-radius:4px;min-height:44px;font-size:12px;color:#b2c4bc}.layer-row button:first-child{flex:1;text-align:left;padding:9px 8px}.layer-row button:first-child:before{content:'';display:inline-block;width:7px;height:7px;background:var(--layer-color);border-radius:50%;margin-right:10px}.layer-row button:last-child{width:48px;font-size:10px;color:#819a8c}.layer-row button:hover{background:#ffffff08;color:#fff}.layer-row button[aria-pressed=true]:first-child{background:#a6f27510;color:var(--accent)}.layer-row button[aria-pressed=false]:last-child{color:#c6d2c5;background:#ffffff0c}#layerExplanation{margin:16px 0;padding-left:12px;border-left:2px solid var(--accent);font-size:12px;line-height:1.7;color:#d0dfd6}.animation-controls{display:flex;gap:8px}.animation-controls button{border:1px solid var(--line);border-radius:5px;padding:8px 10px;font-size:11px;color:#a9c7b6}#layerCallout{position:absolute;z-index:2;pointer-events:none;transform:translate(24px,-25px);padding:6px 10px;background:#101a14ee;border:1px solid #a6f27555;border-radius:4px;color:#d9f5ce;font-size:11px}#layerCallout:before{content:'';position:absolute;width:25px;height:1px;left:-25px;bottom:0;background:#a6f27588;transform:rotate(-30deg);transform-origin:right}
#objects{position:absolute;z-index:3;bottom:25px;left:50%;transform:translateX(-50%);display:flex;gap:4px;width:max-content;max-width:calc(100% - 40px);padding:9px 12px;overflow:auto;scrollbar-width:none;background:#080f14e8;border:1px solid var(--line);border-radius:12px;backdrop-filter:blur(12px)}#objects button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:78px;padding:5px 10px 8px;border:0;border-radius:6px;color:#8fa3a6;font-size:11px;position:relative}#objects button:hover{background:#ffffff0a;color:#fff}#objects button.active{background:#a6f27510;color:var(--accent)}#objects button.active:after{content:'';width:16px;height:2px;background:var(--accent);position:absolute;bottom:1px}.object-thumb{width:30px;height:30px;border-radius:50%;background-size:auto 100%;box-shadow:inset -7px -2px 8px #000c;transition:transform .2s}#objects button:hover .object-thumb{transform:scale(1.15)}.credits{position:absolute;bottom:5px;right:15px;font-size:8px;color:#536b73;z-index:2}.credits a{color:inherit}#showUI{position:absolute;top:18px;right:18px;z-index:5;border-color:#a6f27555}.presentation .top,.presentation #detail,.presentation #galaxyInfo,.presentation #objects,.presentation #caption,.presentation .credits,.presentation #labels,.presentation #layerCallout{display:none!important}.galaxy #objects,.galaxy #caption,.galaxy .credits{display:none}.galaxy-note{font-size:11px!important}#returnSolar{padding:10px 14px;color:var(--accent);border-radius:5px;margin-top:15px}#error{position:absolute;inset:30% 10%;text-align:center;z-index:6}#galaxyInfo h1{font-size:32px}
@keyframes panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1500px) and (orientation:landscape){aside#detail{width:370px;padding:30px}aside p{font-size:15px}.object-tabs button{font-size:12px}.layer-row button{font-size:14px}#objects button{min-width:90px}}
@media(max-width:1000px){.home-context{display:none}.home-nav{margin-left:auto}.hero-earth{width:290px;height:290px;left:5%;top:80px}.lesson-copy{padding:30px}.top{padding:0 15px;gap:10px}.top-actions{gap:3px}.top button,.top select,.top summary{padding:8px;font-size:11px}.scene-heading{min-width:90px}.scene-heading strong{font-size:14px}.search-label select{max-width:130px}#objects button{min-width:64px}}
@media(max-width:800px), (orientation:portrait){.home-header{padding:20px 6%}.home-main{padding:30px 6%}.welcome{align-items:start}.welcome>p{display:none}.welcome h1{font-size:42px}.featured-lesson{min-height:440px}.lesson-copy{width:65%;padding:30px}.hero-world{left:48%;opacity:.75}.hero-earth{width:280px;height:280px;left:0;top:130px}.hero-label{display:none}.lesson-meta{max-width:180px}.discoveries{gap:16px}.discovery strong{font-size:14px}.discovery small{font-size:11px}.discovery-number{font-size:8px}.home-footer{gap:20px}.top{height:auto;min-height:65px;flex-wrap:wrap;padding:8px 12px;gap:6px}.scene-heading{margin-right:auto}.top-actions{margin-left:0;flex:1 0 100%;justify-content:space-between}.top-actions>*{flex-shrink:0}.top #homeBtn{min-height:35px}.top button,.top select,.top summary{min-height:40px}.simulation-panel,.help-menu>div{position:fixed;top:108px;right:12px;max-height:calc(100dvh - 120px);overflow:auto}#caption{top:135px;left:20px}#caption strong{font-size:25px}aside#detail,#galaxyInfo{top:auto;bottom:122px;left:12px;width:calc(100% - 24px);max-height:36dvh;padding:20px;background:#0a1217f5}aside#detail h1{font-size:27px;margin:5px 0}aside .eyebrow{font-size:8px}aside p{font-size:13px}.object-tabs{margin:12px 0}.object-tabs button[data-mode=explore]{flex-basis:auto;text-align:center}.exterior-facts{margin:12px 0!important;padding:10px 0}.explore-prompt{display:none}.zoom{margin-top:10px;padding-top:8px}#objects{bottom:22px;max-width:calc(100% - 24px);padding:7px;gap:0}#objects button{min-width:61px;font-size:10px}.object-thumb{width:28px;height:28px}.credits{font-size:7px}.top #presentation{font-size:10px}aside#detail.collapsed{width:54px;bottom:122px}.section-heading>span{display:none}}
@media(max-width:520px){.brand{font-size:20px}.home-nav{font-size:10px}.home-nav span{margin-left:5px}.welcome h1{font-size:36px}.welcome .eyebrow{font-size:8px}.featured-lesson{min-height:495px;align-items:start}.lesson-copy{width:100%;padding:27px}.lesson-copy p{max-width:210px;font-size:13px}.lesson-copy h2{font-size:38px}.hero-world{left:40%;top:220px;opacity:.55}.hero-earth{width:230px;height:230px;top:20px}.hero-orbit{width:350px;top:65px}.lesson-copy .primary-action{margin-top:18px}.lesson-meta{max-width:190px}.discoveries{grid-template-columns:1fr;gap:0}.discovery{min-height:140px}.discovery strong{margin-top:35px;font-size:18px;padding-right:95px}.discovery strong span{float:none;margin-left:10px}.discovery small{max-width:80%}.discovery-sphere{top:30px;width:80px;height:80px}.home-footer{flex-direction:column;gap:8px}.top-actions{gap:2px}.top-actions .search-label{flex:1;min-width:0}.top select{width:100%;max-width:120px}.top button,.top select,.top summary{padding:7px;font-size:10px}.help-menu summary{width:32px}.simulation summary{gap:3px}.object-tabs button{font-size:10px}.top #galaxyToggle{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
