/* NextBias accessibility, focus, contrast, and motion safeguards */
html {
  scroll-padding-top: 94px;
}

:where(main, section, article, [id]) {
  scroll-margin-top: 94px;
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #1aa9a4;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px color-mix(in srgb, #70f4ef 26%, transparent);
}

:where(input, select, textarea):focus-visible {
  border-color: #1aa9a4;
}

.skip-link:focus-visible {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  overflow: visible;
  border-radius: 12px;
  background: #18132e;
  color: #fff;
  font-weight: 900;
}

:where(
  button,
  .button,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea,
  summary
) {
  min-height: 44px;
}

:where(.pro-header a, .pro-footer a, .shop-listing-button, .shop-button, .finder-alt-card) {
  -webkit-tap-highlight-color: transparent;
}

[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .62;
}

[aria-busy="true"] {
  cursor: progress;
}

.finder-result:focus,
.finder-result h3:focus {
  outline: none;
}

.finder-result h3:focus-visible {
  outline: 3px solid #1aa9a4;
  outline-offset: 6px;
  border-radius: 6px;
}

@media (max-width: 860px) {
  .pro-header .primary-nav a,
  .pro-footer .footer-column a {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

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

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

  :where(.stack-card, .group-card, .idol-card, .shop-card, .guide-card, .button, .header-cta):hover {
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  :where(.card, .group-card, .idol-card, .shop-card, .guide-card, .partner-card, .revenue-card) {
    border-color: currentColor;
  }

  :where(.muted, small, .legal, .footer-status) {
    opacity: 1;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }

  :where(.button, button, .header-cta, .footer-cta) {
    border: 1px solid ButtonText;
  }

  [aria-current="page"] {
    outline: 2px solid Highlight;
  }
}
