/* WJH Auto - small additions to Tailwind */

html {
  -webkit-text-size-adjust: 100%;
}

/* Keep anchored sections clear of the sticky header */
section[id],
main[id] {
  scroll-margin-top: 5rem;
}

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

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid #E2452B;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hero background: workshop blue gradient with faint diagonal lines */
.hero-bg {
  background-color: #15181D;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 22px),
    radial-gradient(ellipse at 85% 10%, rgba(226, 69, 43, 0.22), transparent 55%),
    linear-gradient(160deg, #1E3A5F 0%, #15181D 75%);
}

/* Accent rule used under headings */
.rule {
  display: block;
  width: 3rem;
  height: 4px;
  background: #E2452B;
  border-radius: 2px;
}

/* Legal dialogs */
dialog.legal::backdrop {
  background: rgba(21, 24, 29, 0.7);
}

dialog.legal[open] {
  animation: dialog-in 0.18s ease-out;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.legal-body h3 {
  font-weight: 600;
  color: #15181D;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.legal-body p,
.legal-body li {
  margin-bottom: 0.6rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal-body a {
  color: #1E3A5F;
  text-decoration: underline;
}

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