/* ==========================================================================
   Base / Reset — MBA ACT
   Normalize + sensible defaults. Depends on tokens.css and typography.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Box Model Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Document Defaults
   -------------------------------------------------------------------------- */
html {
  font-size: 100%; /* 16px base */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Clip horizontal overflow site-wide so off-canvas content (e.g.
   .mobile-nav drawer with translateX(100%)) and inner-scrollable carousels
   (.home-benefit-cards, .home-popular-cards, etc.) don't expand the document's
   scroll width. Both html and body need it — Chrome propagates body's setting
   to the viewport, but Safari/Firefox sometimes don't, so explicit on both. */
html,
body {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Form Elements — Inherit Font
   -------------------------------------------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-tangerine-dark);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Dark scheme link overrides */
.scheme-navy a,
.scheme-tangerine a {
  color: var(--color-white);
}

.scheme-navy a:hover {
  color: var(--color-tangerine-light);
}

.scheme-tangerine a:hover {
  color: var(--color-navy-lightest);
}

/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */
::selection {
  background-color: var(--color-tangerine);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
ul, ol {
  list-style-position: inside;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --------------------------------------------------------------------------
   Focus — Global
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@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;
  }
}
