/* /assets/css/accessibility.css
   WCAG 2.1 AA-oriented helpers layered on top of styles.css (NFR-003). */

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-900, #16233a);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Ensure form errors are clearly associated and readable */
.field-error {
  color: #7c2d1c;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Minimum tap target size on touch devices */
@media (pointer: coarse) {
  .btn, input[type="checkbox"], input[type="radio"] {
    min-height: 44px;
  }
}

/* High-contrast focus ring already defined in styles.css; reinforce on dark backgrounds */
.site-header a:focus-visible,
.consent-banner button:focus-visible,
.consent-panel button:focus-visible {
  outline-color: #ffffff;
}
