/* STX Vets – last-in general fixes */

body.page-body {
  background: var(--bg-gradient, var(--bg)) !important;
  color: var(--text-main) !important;
  font-family: var(--font-main, system-ui, -apple-system, "SF Pro Text", sans-serif);
}

/* Anchor sanity */
a,
a:visited {
  color: var(--link-normal);
  text-decoration-color: currentColor;
}
a:hover {
  color: var(--link-hover);
}

.site-main a:not(.btn):not(.btn-pill):not(.pill-button),
.site-main a:not(.btn):not(.btn-pill):not(.pill-button):visited {
  color: var(--link-normal);
  text-decoration: underline;
}
.site-main a:not(.btn):not(.btn-pill):not(.pill-button):hover {
  color: var(--link-hover);
}

.section--hero .hero-cta .button--primary,
.section--hero .hero-cta .button--primary:visited {
  color: #ffffff !important;
}

.btn,
.btn-pill,
.pill-button {
  text-decoration: none;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 0.4rem;
}

/* Heading colors in light mode, but hero stays inverted */
[data-theme="light"] .site-main h1,
[data-theme="light"] .site-main h2,
[data-theme="light"] .site-main h3,
[data-theme="light"] .site-main h4 {
  color: #0f172a;
}
[data-theme="light"] .hero-panel h1,
[data-theme="light"] .hero-panel h2,
[data-theme="light"] .hero-panel h3 {
  color: #f9fafb;
}

/* Offset anchor scroll for sticky header */
.site-main {
  scroll-margin-top: 72px;
}
