/* ── Modern CSS Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
/* Inline SVGs inherit colour from their parent so currentColor works everywhere */
svg { color: inherit; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }
[hidden] { display: none !important; }

/* ── Touch UX resets ─────────────────────────────────────────────────────── */
/* Remove the blue tap flash on iOS/Android */
* { -webkit-tap-highlight-color: transparent; }
/* Prevent horizontal overscroll chaining (rubber-band glitch on mobile) */
html { overscroll-behavior-x: none; }
/* Skip to content link — visible only on focus for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4, 1rem);
  z-index: 9999;
  padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
  background: var(--color-accent, #1a3fa8);
  color: #fff;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md, 8px) var(--radius-md, 8px);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
::selection {
  background: var(--color-accent-light);
  color: var(--color-accent);
}
