/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Add smooth scrolling behavior to the root HTML element */

html {
  scroll-behavior: smooth;
}

/* Accessibility improvements */

/* Respect user's motion preferences */
@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;
  }
}

/* Enhanced focus indicators */
:focus-visible {
  outline: 3px solid #10b981 !important; /* Emerald-500 */
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* High contrast focus for better visibility */
@media (prefers-contrast: high) {
  :focus-visible {
    outline: 4px solid #000 !important;
    outline-offset: 2px !important;
  }
}

/* Skip link styles */
.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
