/* Base elements and utilities. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-md); line-height: var(--leading-body);
  font-feature-settings: "kern"; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
turbo-frame { display: block; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: var(--leading-tight); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 var(--s4); text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.28; color: var(--ink); margin: 0 0 var(--s2); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p, ul, ol, dl, table, figure { margin: 0 0 var(--s4); }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--s1); }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
small { font-size: var(--fs-sm); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
code { font-size: .92em; background: var(--surface); padding: .05em .3em; border-radius: var(--r-xs); }

.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: #fff; padding: var(--s2) var(--s4); z-index: 100; border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s2); color: #fff; }
.muted { color: var(--muted); }
.slate { color: var(--slate); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }

/* Reading text: long-form pages keep every child at the measure. */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose li { margin-top: var(--s2); }
.prose p, .prose li { line-height: 1.65; }
/* A text page keeps the page frame (.container wins over .prose's max-width); its children stay at the measure. */
.container--mid.prose > * { max-width: var(--measure); }

/* Spacing utilities (.mt-3/.mt-5/.mt-6) live in 8-utilities.css, the last file, so a component's
   margin shorthand declared later can no longer silently cancel them. */
.prose, .facts dd, .cmp__note, .sources { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
