/* Shared accessibility layer. Loaded after page styles to avoid changing the
   established visual design while improving keyboard and touch interaction. */

.skip-link {
  position: fixed;
  z-index: 100000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #07111f;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 0 3px #1f6feb;
}

.skip-link:focus {
  transform: translateY(0);
}

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

html.theme-dark
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: #8bb8ff;
}

main:focus {
  outline: none;
}

@media (pointer: coarse), (max-width: 980px) {
  :where(
    .main-nav a,
    .footer-menu a,
    .theme-toggle,
    .nav-toggle,
    .hero-slide-arrow,
    .fleet-see-more,
    button,
    input,
    select
  ) {
    min-height: 44px;
  }

  .live-light-overlay-frame .hero-slide-dots {
    gap: 0;
  }

  .live-light-overlay-frame .hero-slide-dot,
  html.theme-dark .live-light-overlay-frame .hero-slide-dot {
    position: relative;
    width: 44px !important;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    background: transparent !important;
  }

  .live-light-overlay-frame .hero-slide-dot::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    content: "";
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: #8ba0b8;
  }

  .live-light-overlay-frame .hero-slide-dot.is-active::after {
    width: 24px;
    background: #1f6feb;
  }

  html.theme-dark .live-light-overlay-frame .hero-slide-dot::after {
    background: #6d7f94;
  }

  html.theme-dark .live-light-overlay-frame .hero-slide-dot.is-active::after {
    background: #2f7df6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
