/* Global, cross-page additions (loaded on every page, before page CSS).
   Accessibility helpers + small primitives shared by all templates. */

/* Skip link — visible only when focused. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1000;
  background: var(--navy, #16243f);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--accent-l, #93a3c1); }

/* Accessible, visible keyboard focus for all interactive elements. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent, #425a7e);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons should never wrap their label. */
.btn { white-space: nowrap; }

/* Screen-reader-only utility. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Respect users who prefer reduced motion (belt-and-braces with the JS guard). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
