/* V20 — Accessibility & Inclusive UX */

:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: -5rem;
  z-index: 9999;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

[hidden] { display: none !important; }

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

.a11y-status {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 9998;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

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