/* Shared accessibility and small-screen overrides for every static page.
   Loaded after each page's inline <style>, so it wins on equal specificity.
   Tracked with #217. */

/* Keyboard users can jump straight to the content. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .6rem 1rem;
  background: #c8a86a;
  color: #0c0c12;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 600;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Small screens: never hide the navigation. The docs anchor links are the only
   way around that page, and the legal footer must stay reachable. */
@media (max-width: 620px) {
  .nav {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding: .55rem 1rem;
    gap: .35rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: .35rem .9rem;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-links .nav-link { display: inline-block; }
  .nav-cta { padding: .4rem .7rem; }
  /* The homepage's JS panel is redundant once the links wrap into view. */
  .nav-burger, .nav-mobile-panel { display: none !important; }
}

/* WCAG AA floor for the dim token (was ~3.3:1 dark / ~2.9:1 light). */
:root { --dim: #98a09d; }
html:not(.dark) { --dim: #5c6461; }

/* The legal links live in the footer; do not shrink them below ~11px. */
.footer-text,
.footer-links { font-size: .7rem; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
