/* AllGoods Distribution: small additions to Tailwind */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5rem;
}

[tabindex="-1"]:focus {
  outline: none;
}

.hero-bg {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(242, 169, 59, 0.18), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(15, 92, 99, 0.14), transparent 60%),
    linear-gradient(180deg, #F7F5F0 0%, #EFEBE2 100%);
}

/* Legal dialogs */
.legal-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  overflow: hidden;
}

.legal-dialog__inner {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-dialog::backdrop {
  background: rgba(27, 36, 48, 0.72);
}

.legal-copy h3 {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #1B2430;
  padding-top: 0.5rem;
}

.legal-copy a {
  color: #0F5C63;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-copy a:hover {
  color: #0B4A50;
}

.legal-copy a:focus-visible {
  outline: 3px solid #F2A93B;
  outline-offset: 2px;
  border-radius: 2px;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

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