/* base.css — reset + base element styling (design tokens live in style.css) */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  /* Anchor and focus scrolling must not park an element under the fixed ticker. */
  scroll-padding-bottom: var(--tick-clear);
}

/* `clip`, not `hidden`: overflow-x:hidden on the root turns it into a scroll
   container, and browsers then refuse to stick any position:sticky descendant —
   which silently disabled both the masthead and the live-tab filter bar. */
html, body { overflow-x: clip; }

body {
  min-height: 100dvh;
  line-height: 1.55;
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tx);
  background-color: var(--bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-weight: 400; }
p, li { text-wrap: pretty; }

::selection { background: color-mix(in srgb, var(--blue) 32%, transparent); color: var(--tx); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 14px; }

@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;
  }
}

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