/* Cross-cutting interaction and accessibility safeguards.
   Kept intentionally small so product-specific component styles remain authoritative. */

:where(button, input, select, textarea) {
  font: inherit;
}

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

:where(button, [role="button"]):disabled,
:where(button, [role="button"])[aria-disabled="true"] {
  cursor: not-allowed;
}

:where(button, a, input, select, textarea) {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  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;
}

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