.skip-to-content {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 11000;
  padding: 0.75rem 1rem;
  border: 2px solid currentColor;
  border-radius: 0 0 0.5rem 0.5rem;
  background: var(--color-primary, #0d6efd);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.15s ease-in-out;
}

.skip-to-content:focus {
  color: #fff;
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--color-primary, #0d6efd) !important;
  outline-offset: 3px !important;
  scroll-margin-block: 6rem;
}

:where(button, .btn, [role="button"], input, select, textarea) {
  touch-action: manipulation;
}

.async-inline-error,
[role="alert"],
[role="status"] {
  overflow-wrap: anywhere;
}

@media (pointer: coarse) {
  :where(a, button, .btn, [role="button"], input[type="checkbox"], input[type="radio"]) {
    min-width: 24px;
    min-height: 24px;
  }
}

@media (max-width: 320px), (max-width: 400px) and (min-resolution: 2dppx) {
  body {
    overflow-wrap: anywhere;
  }

  :where(input, select, textarea, button, .btn) {
    max-width: 100%;
  }
}

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

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, [role="button"]):focus-visible {
    outline: 3px solid CanvasText !important;
  }
}
