/* Ras Quin Consulting: small additions to Tailwind */

html {
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* Focus states: navy on light areas, gold on dark areas */
:focus-visible {
  outline: 3px solid #1F3A5F;
  outline-offset: 3px;
  border-radius: 4px;
}

.theme-dark :focus-visible {
  outline-color: #C8963E;
}

/* Sections receive focus after in-page navigation; no outline needed there */
[tabindex="-1"]:focus {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Dialogs */
dialog.legal-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: #14202E;
  background: #FFFFFF;
  box-shadow: 0 25px 60px -15px rgba(20, 32, 46, 0.45);
}

dialog.legal-dialog::backdrop {
  background: rgba(20, 32, 46, 0.7);
}

.legal-content h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1F3A5F;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #33404F;
}

.legal-content p + p {
  margin-top: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.legal-content a {
  color: #1F3A5F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.dialog-open {
  overflow: hidden;
}

/* Subtle dot grid used behind the hero */
.dot-grid {
  background-image: radial-gradient(rgba(245, 243, 238, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
