/* =============================================================
   ds-base.css — Statura shared base layer + accessibility
   Linked after ds-tokens.css. Provides a keyboard-focus ring, a
   skip-to-content link, a reduced-motion guard, and contrast /
   font-size floors so no page falls below WCAG AA.
   ============================================================= */

/* --- visible keyboard focus, everywhere --- */
:focus-visible {
  outline: 2px solid var(--teal, #C9954A);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* --- skip-to-content link (visible only when focused) --- */
.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--teal, #C9954A);
  color: var(--on-teal, #14233E);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius, 10px) 0;
}
.skip-link:focus {
  left: 0;
}

/* --- accessibility floors (apply with no per-page HTML edits) --- */
/* Lift the low-contrast text utilities to WCAG AA on the dark bg. */
.text-slate-500 { color: #8b97a8 !important; }
.text-slate-600 { color: #8b97a8 !important; }
.text-slate-700 { color: #9aa6b6 !important; }
/* No sub-12px real text. */
.text-\[10px\] { font-size: 12px !important; }
.text-\[11px\] { font-size: 12px !important; }

/* --- respect the user's reduced-motion preference, globally --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
