/* Shared rails and colors across the homepage, learning tools and libraries. */
:root{
  --coscore-bg-base:#0c111c;
  --coscore-bg-surface:#18253c;
  --coscore-text:#f2f6ff;
  --coscore-copy:#a9bad0;
  --coscore-fgc:#42c6ff;
  --coscore-community:#ad91ff;
  --coscore-learning:#54d5b2;
  --coscore-rewards:#f5c86a;
}
:root{--cosmic-shell:#101420;--cosmic-divider:#474555;--cosmic-aura:#bcb4f5;--cosmic-gold:#f5d083;--cosmic-chrome-gutter:clamp(16px,4vw,64px)}
body:has(>header.cosmic-site-header){box-sizing:border-box;width:100%;max-width:none}
body > header.cosmic-site-header.cosmic-site-header{
  width:100%!important;max-width:none!important;padding:12px var(--cosmic-chrome-gutter)!important;min-height:80px!important;
  background:linear-gradient(100deg,#151828,#111321 65%,#1b1428)!important;border-bottom-color:var(--cosmic-divider)!important;
}
body > header.cosmic-site-header > .brand {grid-column:1!important;grid-row:1!important}
body > header.cosmic-site-header > .header-tools{justify-self:end!important}
body.site-enhanced > header.cosmic-site-header > .header-tools > :is(button, .account-control) {
  box-sizing:border-box!important;align-self:center!important;margin:0!important;
}
body.site-enhanced > header.cosmic-site-header > .header-tools > button,
body.site-enhanced > header.cosmic-site-header .account-button {
  min-height:44px!important;height:44px!important;text-decoration:none!important;
  background:#22233a!important;border-color:#655a79!important;color:#f6edf8!important;
}
body.site-enhanced > header.cosmic-site-header > .header-tools > :is(.search-open,.menu-toggle){
  padding-inline:12px!important;font:650 13px/1.15 system-ui,sans-serif!important;
}
body.site-enhanced > header.cosmic-site-header .account-control > .account-button{
  box-sizing:border-box!important;min-width:0!important;max-width:148px!important;
  padding:5px 10px!important;gap:7px!important;font:650 13px/1.15 system-ui,sans-serif!important;
}
body.site-enhanced > header.cosmic-site-header .account-button .account-avatar{
  width:30px!important;height:30px!important;flex:0 0 30px!important;
}
body.site-enhanced > header.cosmic-site-header .account-button .account-name{
  min-width:0!important;max-width:88px!important;overflow:hidden!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;
}
body > header.cosmic-site-header .search-open::before{content:none!important}
body.site-enhanced > header.cosmic-site-header:not(.menu-open) > #main-navigation{
  justify-content:center!important;
}
body.site-enhanced > header.cosmic-site-header:not(.menu-open) > #main-navigation .nav-primary{
  color:#eee8fa!important
}
body.site-enhanced > header.cosmic-site-header:not(.menu-open) > #main-navigation .nav-primary[aria-current=page]{
  color:var(--cosmic-gold)!important;border-color:#9b7b46!important;background:#3a2b2f!important;
}
.site-bulletin{background:#191a2a!important;border-block-end-color:var(--cosmic-divider)!important}
.site-bulletin .bulletin-inner{width:auto;max-width:none;margin-inline:var(--cosmic-chrome-gutter)}
body > footer.cosmic-site-footer.cosmic-site-footer{
  box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-inline:0!important;
  padding:clamp(18px,3vw,36px) var(--cosmic-chrome-gutter)!important;
  background:var(--cosmic-shell)!important;border-top-color:var(--cosmic-divider)!important;color:#cbc3dc!important;
  align-items:center!important;justify-content:space-between!important;
}
body > footer.cosmic-site-footer .footer-nav a{color:#eae1f4!important;text-underline-offset:.2em}
body > footer.cosmic-site-footer .footer-nav a:hover{color:var(--cosmic-gold)!important}
body > footer.cosmic-site-footer a:focus-visible{outline:2px solid var(--cosmic-gold);outline-offset:4px}
@media(max-width:1220px){
  body.site-enhanced > header.cosmic-site-header{grid-template-columns:minmax(0,1fr) auto!important}
  body.site-enhanced > header.cosmic-site-header:not(.menu-open) > #main-navigation{display:none!important;visibility:hidden!important}
  body.site-enhanced > header.cosmic-site-header > .header-tools{grid-column:2!important;grid-row:1!important}
}
@media(min-width:1221px){
  body.site-enhanced > header.cosmic-site-header{grid-template-columns:minmax(0,1fr) auto minmax(max-content,1fr)!important}
  body.site-enhanced > header.cosmic-site-header:has(>.account-control){grid-template-columns:minmax(0,1fr) auto minmax(max-content,1fr) auto!important}
  body.site-enhanced > header.cosmic-site-header:not(.menu-open) > #main-navigation{grid-column:2!important;grid-row:1!important}
  body.site-enhanced > header.cosmic-site-header > .header-tools{grid-column:3!important;grid-row:1!important}
}
@media(max-width:760px){
  body > footer.cosmic-site-footer.cosmic-site-footer{align-items:flex-start!important;gap:14px!important}
  body > footer.cosmic-site-footer .footer-nav{gap:.7rem 1rem!important}
}
@media(max-width:540px){
  body > header.cosmic-site-header.cosmic-site-header{min-height:76px!important}
  body.site-enhanced > header.cosmic-site-header > .header-tools > .search-open{width:44px!important;padding-inline:0!important;font-size:0!important}
  body.site-enhanced > header.cosmic-site-header > .header-tools > .search-open > span{display:inline!important;font-size:19px!important}
  body.site-enhanced > header.cosmic-site-header > .header-tools > .menu-toggle{padding-inline:8px!important;font-size:12px!important}
  body.site-enhanced > header.cosmic-site-header .account-button:not(.is-member) .account-name{display:inline!important}
  body.site-enhanced > header.cosmic-site-header .account-button:not(.is-member) .account-avatar{display:none!important}
}
@media(max-width:540px),(min-width:1101px) and (max-width:1330px){
  body.site-enhanced > header.cosmic-site-header .account-control > .account-button.is-member{
    width:44px!important;max-width:44px!important;justify-content:center!important;padding:0!important;
  }
  body.site-enhanced > header.cosmic-site-header .account-button.is-member .account-name{display:none!important}
}
@media(max-width:380px){
  body > header.cosmic-site-header.cosmic-site-header{padding-inline:8px!important}
  body.site-enhanced > header.cosmic-site-header > .header-tools:has(.account-control) > .menu-toggle{padding-inline:6px!important}
}

/* Editorial photography. The original documentary graphics remain in the story and film panels. */
.classroom-hero[data-photo],.home-page .home-intro[data-photo]{
  isolation:isolate;position:relative;
}
.classroom-hero[data-photo]::after,.home-page .home-intro[data-photo]::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(96deg,#16182a 1%,#18182adc 48%,#17102624 100%),var(--classroom-photo) center 50% / cover no-repeat;
  border-radius:inherit;opacity:.78;
}
.classroom-hero[data-photo="competition"],.home-page .home-intro[data-photo="competition"]{--classroom-photo:url('/assets/site-photo/arena.webp')}
.classroom-hero[data-photo="decision"]{--classroom-photo:url('/assets/site-photo/decisions.webp')}
.classroom-hero[data-photo="notes"]{--classroom-photo:url('/assets/site-photo/notes.webp')}
.classroom-hero[data-photo="workspace"]{--classroom-photo:url('/assets/site-photo/workspace.webp')}
@media(max-width:680px){
  .classroom-hero[data-photo]::after,.home-page .home-intro[data-photo]::after{
    background:linear-gradient(90deg,#14162adb,#16162b80),var(--classroom-photo) center / cover no-repeat;
  }
}

.coscore-mark-study{
  display:flex;align-items:center;gap:1rem;max-width:43rem;
  margin:clamp(2rem,5vw,4rem) auto 1.5rem;padding:.75rem 1rem;
  border-block:1px solid var(--cosmic-divider);color:var(--coscore-text);
}
.coscore-mark-study a{flex:0 0 auto;border-radius:.5rem}
.coscore-mark-study img{display:block;width:clamp(64px,12vw,96px);height:auto;border-radius:.5rem}
.coscore-mark-study figcaption{margin:0;color:inherit;font-size:.95rem;line-height:1.5}
.coscore-mark-study a:focus-visible{outline:2px solid var(--cosmic-gold);outline-offset:4px}

body > header.cosmic-site-header > .brand img,
body > footer.cosmic-site-footer .footer-brand img { scale: 1.12; }
.page-signature img { width: 26px; height: 26px; object-fit: contain; }
.coscore-exhibit-mark { display: block; width: 76px; height: 76px; object-fit: contain; }
.kit-scene-picker { display: block; width: min(100%, 24rem); margin-block: .6rem 1rem; }
.kit-scene-picker select { display: block; width: 100%; margin-top: .35rem; }

.experience-shortcuts {display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin:0 0 1rem}
.experience-shortcuts a {color:#91e8f8;text-decoration:underline;text-underline-offset:.22em;padding:.45rem 0}


/* Reserve the closed header's final geometry while the deferred menu initializes. */
@media (scripting: enabled) {
  body:not(.site-enhanced) > header.cosmic-site-header > .header-tools[hidden] {
    display:flex!important; visibility:hidden; grid-row:1!important;
  }
  body:not(.site-enhanced) > header.cosmic-site-header > #main-navigation > .nav-directory,
  body:not(.site-enhanced) > header.cosmic-site-header > #main-navigation .nav-link-description {display:none!important}
}
@media (scripting: enabled) and (min-width:1221px) {
  body:not(.site-enhanced) > header.cosmic-site-header {grid-template-columns:minmax(0,1fr) auto minmax(max-content,1fr)!important}
  body:not(.site-enhanced) > header.cosmic-site-header > #main-navigation {
    grid-column:2!important;grid-row:1!important;position:static!important;display:flex!important;
    align-items:center;gap:clamp(2px,.55vw,9px);height:auto!important;margin:0!important;padding:0!important;
  }
  body:not(.site-enhanced) > header.cosmic-site-header > #main-navigation > .nav-primary {
    display:inline-flex!important;align-items:center;min-height:42px;padding:8px clamp(5px,.85vw,13px);
    font:650 clamp(11px,.9vw,13px)/1.2 system-ui,sans-serif;white-space:nowrap;
  }
  body:not(.site-enhanced) > header.cosmic-site-header > .header-tools {grid-column:3!important}
}
#school-course-discussion a[href="#academy-enrollment"], #academy-course-discussion a[href="#academy-enrollment"] {text-decoration:underline;text-underline-offset:.15em}
