/* Shared navigation and motion safeguards, loaded after the visual themes. */
.site-header .main-nav a.nav-auth-link {
  display: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10010;
  padding: 12px 18px;
  border: 1px solid #e4bb73;
  border-radius: 4px;
  background: #07162e;
  box-shadow: 0 9px 26px rgba(0, 5, 20, 0.55);
  color: #fff2d2;
  font: 700 0.88rem/1.2 Georgia, serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus-visible {
  outline: 2px solid #a8dcff;
  outline-offset: 2px;
  transform: translateY(0);
}

.astral-footer .astral-motion-toggle {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(109, 176, 242, 0.38);
  border-radius: 3px;
  background: rgba(11, 37, 78, 0.72);
  color: #b9d8f6;
  font: 700 0.69rem/1.1 Georgia, serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.astral-footer .astral-motion-toggle:hover,
.astral-footer .astral-motion-toggle:focus-visible {
  border-color: #e9c789;
  color: #fff0cf;
  outline: 2px solid rgba(151, 210, 255, 0.58);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .site-header > .main-nav {
    visibility: hidden;
  }

  .site-header > .nav-toggle:checked ~ .main-nav {
    visibility: visible;
  }

  .site-header .main-nav a.nav-auth-link {
    display: flex;
    min-height: 48px;
    height: auto;
    justify-content: center;
    margin-top: 12px;
    padding: 12px 20px;
    border: 1px solid rgba(229, 191, 125, 0.74);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(29, 71, 121, 0.96), rgba(8, 35, 76, 0.98));
    box-shadow: inset 0 1px rgba(255, 242, 207, 0.17), 0 0 22px rgba(55, 138, 241, 0.16);
    color: #fff1cd;
    font-weight: 700;
    letter-spacing: 0.07em;
  }

  .site-header .main-nav a.nav-auth-link:hover,
  .site-header .main-nav a.nav-auth-link:focus-visible {
    border-color: #ffe0a0;
    background: linear-gradient(180deg, rgba(40, 92, 152, 0.98), rgba(12, 48, 100, 0.98));
    color: #fffaf0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) {
    scroll-behavior: auto !important;
  }

  html:not([data-motion="full"]) body[class] .page-shell *,
  html:not([data-motion="full"]) body[class] .page-shell *::before,
  html:not([data-motion="full"]) body[class] .page-shell *::after {
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  html:not([data-motion="full"]).astral-global-ready .astral-inner-reveal,
  html:not([data-motion="full"]).astral-effects-ready .astral-reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  html:not([data-motion="full"]) .astral-inner-cursor,
  html:not([data-motion="full"]) .astral-cursor-fx {
    display: none !important;
  }
}

html[data-motion="reduced"] {
  scroll-behavior: auto !important;
}

html[data-motion="reduced"] body[class] .page-shell *,
html[data-motion="reduced"] body[class] .page-shell *::before,
html[data-motion="reduced"] body[class] .page-shell *::after {
  animation-delay: 0ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-delay: 0ms !important;
  transition-duration: 0.01ms !important;
}

html[data-motion="reduced"].astral-global-ready .astral-inner-reveal,
html[data-motion="reduced"].astral-effects-ready .astral-reveal {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

html[data-motion="reduced"] .astral-inner-cursor,
html[data-motion="reduced"] .astral-cursor-fx {
  display: none !important;
}
