.theme-toggle{flex-shrink:0;border:1px solid #6388a1;border-radius:999px;background:#f5fafc;color:#123453;padding:10px 14px;min-height:44px;cursor:pointer;font-size:12px;font-weight:600}.theme-toggle:focus-visible{outline:3px solid #2373d0;outline-offset:3px}.header{flex-wrap:wrap}.header .theme-toggle{margin-left:auto}
html[data-theme=night]{color-scheme:dark;--ink:#f7f5e9;--paper:#080808;--muted:#cfcdc4;--line:#454236;--accent:#ffdc63;--accent-ink:#ffdc63}
html[data-theme=night] body{background:#080808!important;color:#f7f5e9!important}
html[data-theme=night] :is(h1,h2,h3,h1 span,h2 span,h3 span,.brand,.team-id,.eyebrow,.text-link,.team-card-top,.outreach-stat-label,.outreach-facts strong,.ftc-feature-title,.ftc-feature-title span){color:#ffdc63!important}
html[data-theme=night] :is(p,figcaption,.team-intro,.hero-description,.team-card p,.photo-caption p,.outreach-grid p,.outreach-school-badge small,.footer-bottom,.breadcrumbs,.team-card-link,.sponsor-name){color:#e2e0d8!important}
html[data-theme=night] :is(.topline,.header,.header nav,.community-band,.robot-photo-section,.notebook-section,.sponsors-section,.shared-goal,.team-strip,.site-footer,.season-banner,.outreach-intro,.outreach-next,.donate-email-panel,.outreach-contact,.hero-gallery-controls){background:#101010!important;border-color:#51482b!important;color:#e2e0d8!important}
html[data-theme=night] :is(.team-grid,.sponsorship-goal){background:radial-gradient(ellipse at 0 0,#423919,transparent 65%),#0b0b0b!important;border-color:#b89b43!important}
html[data-theme=night] :is(.team-card,.ftc-feature,.outreach-facts>div,.outreach-grid article,.learning-grid article,.photo-card,.photo-button,.team-photo-button,.team-feature-photo,.hero-team-photo,.path-start,.path-options a,.outreach-school-badge,dialog,.facts,.sponsor-grid li){background:#181818!important;border-color:#66562c!important;color:#f7f5e9!important;box-shadow:inset 0 1px 0 #ffdc6333,0 8px 20px #0003!important;--card-accent:#ffdc63}
html[data-theme=night] :is(figcaption,.photo-caption){background:#181818!important}
html[data-theme=night] :is(.button,.header nav .donate-link,.ftc-feature-action,.theme-toggle,.zoom,.close,.menu-toggle,.hero-gallery-controls button,.outreach-status,.fundraising-percent){background:#ffdc63!important;color:#181307!important;border-color:#ffebaa!important;box-shadow:inset 0 1px 0 #fff7!important}
html[data-theme=night] :is(.outreach-status.planning,.outreach-card-icon){background:#3b3219!important;color:#ffe795!important}
html[data-theme=night] :is(.donation-email-link,.ftc-feature-kicker,.fundraising-total,.thermometer-mark,.thermometer-mark.current){color:#ffdc63!important}
html[data-theme=night] :is(.header nav a[aria-current=page],.header nav a:hover){border-color:#ffdc63!important}
html[data-theme=night] :is(a,button):focus-visible{outline:3px solid #ffe795;outline-offset:4px}
html[data-theme=night] :is(.dot,.thermometer-fill){background:#ffdc63!important}
html[data-theme=night] .thermometer-bulb{background:radial-gradient(circle at 35% 28%,#fff4bd,#ffdc63 40%,#a78016)!important}
html[data-theme=night] :is(.thermometer-tube,.thermometer-bulb){border-color:#ffe795!important}
html[data-theme=night] .team-grid:before{border-color:#ffdc6320!important}
html[data-theme=night] .team-card:before{background:linear-gradient(125deg,#ffdc6315,transparent 60%)!important}
html[data-theme=night] .sponsor-logo{color-scheme:light}
@media(max-width:700px){.header .theme-toggle{padding:8px 11px;font-size:11px;order:3;margin-left:auto}.header .menu-toggle{margin-left:auto}.header nav{order:4}}

/* Keep the mode switch first, followed by the school brand and navigation. */
.header .theme-toggle{order:0;margin-left:0;margin-right:0}
.header .brand{order:1}
.header .menu-toggle{order:2}
.header nav{order:3}
@media(max-width:700px){.header .theme-toggle{padding:8px;font-size:10px}.header .brand{flex:1;min-width:0}.header .menu-toggle{margin-left:0}.header nav{order:3}}
