/* ============================================================================
 * Reset — SAFE global subset
 * ----------------------------------------------------------------------------
 * Loaded globally on every page via <link>. MUST NOT break existing layouts.
 * Only contains rules that are either:
 *   - already present in every page's inline styles (box-sizing, body margin)
 *   - pure additive (utility classes, :focus-visible refinements)
 *   - cascade-safe with reduced-motion
 *
 * The FULL reset (h1 margins, button resets, input styling, ul padding, link
 * colors, etc.) lives in /styles/reset-full.css and is loaded by shared
 * layouts in sub-phase 4A.2.
 * ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Accessibility utilities ────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link — hidden until focused */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-4, 16px);
  background: var(--color-surface, #fff);
  color: var(--primary, #009EC2);
  border: 2px solid var(--primary, #009EC2);
  border-radius: var(--radius-md, 8px);
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  z-index: var(--z-modal, 1000);
  transition: top 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: var(--space-2, 8px);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #009EC2) 35%, transparent);
}

/* ── Reduced motion safety net ──────────────────────────────────────────── */
@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;
  }
}
