/* Global base styles, served at /index.css (referenced by index.html).
   Loaded after the Tailwind CDN so these rules win the cascade. */

/* Visible keyboard focus everywhere. The black outline shows on the yellow
   surfaces; the yellow halo (box-shadow) shows on the black surfaces, so focus
   is always visible. !important overrides the app's focus:outline-none on inputs.
   :focus-visible means keyboard/programmatic focus only, not mouse clicks. */
:focus-visible {
  outline: 3px solid #0f0f0f !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px rgba(245, 199, 26, 0.9) !important;
}

/* Screen-reader-only text (Tailwind CDN Preflight provides no .sr-only). */
.sr-only {
  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 the user's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
