.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 7px;
  background: #0b1f3a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.wordmark img { width: 178px; max-height: 72px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #8eacc7;
  border-radius: 9px;
  background: #fff;
  color: #0b1f3a;
  font: 700 13px 'DM Sans';
  cursor: pointer;
}

.nav-toggle-icon { display: grid; gap: 4px; width: 20px; }
.nav-toggle-icon i { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.site-header a,.site-footer a,.primary-button,.secondary-button,.text-button,.audio-button,.nav-toggle { outline-offset: 3px; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #075fc5; outline-offset: 3px; }
.answer-choice:has(input:focus-visible),.reasoning-choice:has(input:focus-visible),.method-choice:has(input:focus-visible) { outline: 3px solid #075fc5; outline-offset: 3px; }
#main-content:focus { outline: none; }
.hero-copy h1 em { background: linear-gradient(100deg,#075fc5,#087987); background-clip: text; -webkit-background-clip: text; }
.learning-flow span,.experience-next span { color: #087987; }

@media (max-width: 1100px) {
  .site-header { min-height: 78px; height: auto; padding: 0 22px; flex-wrap: wrap; column-gap: 18px; }
  .wordmark img { width: 154px; max-width: 48vw; max-height: 68px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 0 14px; }
  .site-header .site-nav a,.site-header .site-nav a:not(.profile-link) { display: flex; align-items: center; min-height: 44px; padding: 9px 10px; }
  .site-header.nav-ready .site-nav { position: absolute; top: 100%; left: max(16px,calc((100% - 1240px)/2 + 22px)); right: max(16px,calc((100% - 1240px)/2 + 22px)); width: auto; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border: 1px solid #cbddea; border-radius: 0 0 12px 12px; background: #fff; box-shadow: 0 18px 35px #0b1f3a24; }
  .site-header.nav-ready .site-nav.is-open { display: flex; }
  .site-header.nav-ready .site-nav a { width: 100%; }
  .site-header.nav-ready .nav-join { justify-content: center; margin-top: 5px; }
  .profile-link i { flex: none; }
  .site-footer { margin-left: 0; margin-right: 0; }
  .account-shell { grid-template-columns: 1fr; padding: 45px 0; gap: 25px; }
  .account-card { width: 100%; max-width: 560px; justify-self: center; }
}

@media (max-width: 580px) {
  .site-header { padding: 0 16px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .site-header .site-nav a:nth-child(3) { display: flex; }
  .site-header.nav-ready .site-nav { left: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
