/* A local vector theme: crisp on any screen and available offline. */
:root{--sky-ink:#285a78;--paper-shadow:0 7px 0 #74a7b817,0 14px 30px #4168800b}
#caption:empty{display:none}
body{background:#e8f5fd}
#lab .workspace{
 background-color:#e7f5fb;
 background-image:url("assets/science-doodles.svg"),radial-gradient(ellipse at 100% 0,#eee5ffb8,transparent 55%),radial-gradient(ellipse at 10% 90%,#fff0c7ce,transparent 55%),linear-gradient(145deg,#e3f5ff,#e1f5ed);
 background-size:720px 640px,100% 100%,100% 100%,100% 100%;
 background-position:18px 12px,center,center,center;
}
.stage-header{padding:14px 17px;background:#ffffffdf;border:1px solid #ffffff;border-radius:20px 20px 20px 7px;box-shadow:var(--paper-shadow)}
.stage-header h2{color:var(--sky-ink)}
.stage-header .eyebrow{color:#687e9b}
.stage-header p:last-child{color:#58788b}
.desk-tools button{background:#f0ebfc;color:#8069a3;border:1px solid #e4daf3;box-shadow:0 3px 0 #dacfeb60}
.desk-tools button:nth-child(2){background:#fff3d3;color:#a28044;border-color:#f1e3b8;box-shadow:0 3px 0 #ebd7a960}
.sidebar{
 background-color:#fffefa;
 background-image:linear-gradient(90deg,transparent 18px,#efb9c8 19px,transparent 20px),repeating-linear-gradient(transparent 0,transparent 42px,#dce9f3 43px,transparent 44px),linear-gradient(160deg,#fffdfa,#f4fbff);
 border-right:3px solid #fff;
}
.activity-tabs button{border-radius:13px;border:1px solid #d5e2e9;box-shadow:0 4px 0 #b7ccd320}
.activity-tabs [data-mode=meet]{background:#e7f5ef;color:#397661}
.activity-tabs [data-mode=test]{background:#fff1d8;color:#89612d}
.activity-tabs [data-mode=poles]{background:#efeafd;color:#74609b}
.activity-tabs [data-mode=meet][aria-pressed=true]{background:#278570;border-color:#278570;color:white;box-shadow:0 4px 0 #1c6252}
.activity-tabs [data-mode=test][aria-pressed=true]{background:#bb6535;border-color:#bb6535;color:white;box-shadow:0 4px 0 #8f4c2b}
.activity-tabs [data-mode=poles][aria-pressed=true]{background:#8163ad;border-color:#8163ad;color:white;box-shadow:0 4px 0 #614682}
.highlight{background:linear-gradient(transparent 16%,#fff1b9 16%,#fff1b9 89%,transparent 89%);color:#526578}
.annotated-magnet,.magnet-board.experiment,.pole-video-card,.pole-stage{border:2px solid #ffffff;border-radius:22px;box-shadow:var(--paper-shadow);background-color:#fffdf6}
.annotated-magnet{background:linear-gradient(135deg,#fffef8,#f5fbfa)}
.magnet-board.experiment{background:linear-gradient(160deg,#fffdf5,#f7fcf8)}
.pole-video-card{background:linear-gradient(150deg,#fffef9,#f9f6ff)}
.pole-stage{background:linear-gradient(155deg,#fffcf0,#eff9f8)}
#caption{color:#506e7d;background:#ffffffb8;border-radius:12px;padding:4px 10px;align-self:center;max-width:100%}
#discovery{border:2px solid #fff;border-radius:18px 18px 18px 6px;background:#ffffffee;box-shadow:var(--paper-shadow)}
#discovery>button{background:#dbf2e7;color:#27745d;border-radius:12px}
#discovery h3{color:#356b68}
.science-story{background:linear-gradient(145deg,#fff5d9,#fffbed);border-radius:0 16px 16px 0}
dialog{background:linear-gradient(145deg,#fffef7,#f3faff);border:3px solid white;box-shadow:0 20px 65px #3355793d}
dialog::backdrop{background:#779bab60}
/* The cover uses the same little science drawings, with a brighter sky. */
#welcome .cover{
 background-color:#54afe3;
 background-image:url("assets/science-doodles.svg"),radial-gradient(circle at 90% 12%,#fff0c293,transparent 24%),radial-gradient(ellipse at 0 100%,#b3efe7a1,transparent 50%),linear-gradient(145deg,#6ebbe9,#619edc 65%,#94b9ef);
 background-size:650px 580px,100% 100%,100% 100%,100% 100%;
}
#welcome .welcome-copy{background-image:radial-gradient(ellipse at 100% 100%,#fff0d0,transparent 55%),linear-gradient(155deg,#fffefb,#edf8ff)}
#welcome #cover-art{background:#ffffffcc;border:3px solid #ffffff;border-radius:32px 32px 32px 9px;box-shadow:0 9px 0 #387db32a;padding:16px}
#welcome .cover h1{text-shadow:0 3px 0 #377fa9,0 6px 15px #22578630}
#welcome .cover-foot{align-self:flex-start;border-radius:20px;background:#23638e75;padding:7px 14px;font-size:13px;text-shadow:none}
@media(max-width:800px){
 #lab .workspace{background-size:540px 480px,100% 100%,100% 100%,100% 100%;height:auto;min-height:650px}
 .stage-header{padding:12px;border-radius:17px 17px 17px 6px;gap:9px}
 .stage-header h2{font-size:25px}.stage-header p:last-child{font-size:14px}
 #welcome #cover-art{padding:10px;border-radius:24px 24px 24px 7px}
 #welcome .cover-foot{font-size:12px;padding:6px 11px}
 .sidebar{border-right:0;border-top:3px solid #fff}
 #caption{font-size:11px}
}
@media(min-width:801px) and (max-height:760px){.stage-header{padding:9px 13px}.stage-header h2{margin:5px 0}.stage-header p:last-child{font-size:15px}}
.sidebar-head{gap:8px}
.sidebar-head .brand{display:inline-flex;align-items:center;flex:0 1 125px;min-width:80px;line-height:1}
.sidebar-head .brand img{display:block;width:125px;max-width:100%;height:auto;object-fit:contain}
.sidebar-head .toolbar{flex-shrink:0}
.top-speaker,.stage-heading .top-speaker,.dialog-head .top-speaker,.welcome-copy .toolbar .top-speaker{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;min-width:48px;padding:0;border:0;border-radius:6px;background:#00cf88;color:#124c37;font:700 25px Arial,sans-serif;cursor:pointer}
.top-speaker.top-speaker[aria-pressed=true]{background:#087c55;color:#fff}
.top-speaker:focus-visible{outline:3px solid #315c85;outline-offset:3px}
.dialog-head{gap:12px}.dialog-head .eyebrow{flex:1}
.stage-heading{display:flex;align-items:flex-start;gap:12px;min-width:0}
@media(max-width:800px){.stage-heading{gap:8px}.stage-heading .top-speaker{flex-basis:40px;width:40px;min-width:40px;height:40px;font-size:23px}}
