/* Base: reset, body, type roles, focus. Tokens come from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text);
  font: 400 14px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
/* Controls never take a text caret or a selection: with Chrome's caret browsing (F7) a click on a
   button or a clickable row otherwise leaves a blinking typing cursor in it. Fields keep theirs. */
button, [role="button"], [role="radio"], [role="tab"], [role="option"], summary, label:has(> input[type="radio"]), label:has(> input[type="checkbox"]) {
  -webkit-user-select: none; user-select: none; caret-color: transparent;
}
input, textarea, select, [contenteditable="true"] { caret-color: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--text-muted); }
b, strong { font-weight: 600; color: var(--ink); }
code { font: 500 14px var(--font-sans); color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: var(--focus-ring); }

.ef-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ef-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); font: 500 13px var(--font-sans); text-decoration: none; }
.ef-skip:focus { top: 12px; }

/* ── Type roles ─────────────────────────────────────────────────────────── */
.ef-h1 { font: var(--fw-heading) 28px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.ef-h1--onb { line-height: 1.2; }
.ef-h2 { font: var(--fw-heading) 24px/1.15 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.ef-h2--sm { font: var(--fw-heading) 20px/1.25 var(--font-display); letter-spacing: -.01em; }
.ef-title { font: 600 16px/1.3 var(--font-sans); color: var(--ink); }
.ef-title--15 { font-size: 15px; }
.ef-title--18 { font-size: 18px; }
.ef-lead { font: 400 15px/1.5 var(--font-sans); color: var(--text); text-wrap: pretty; }
.ef-body { font: 400 14px/1.5 var(--font-sans); color: var(--text-strong); text-wrap: pretty; }
.ef-meta { font: 400 13px/1.45 var(--font-sans); color: var(--text-muted); }
.ef-small { font: 400 12px/1.4 var(--font-sans); color: var(--text-muted); }
.ef-eyebrow { font: 500 12px/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.ef-eyebrow--dark { color: var(--orange-light); }
.ef-micro { font: 500 11px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.ef-num { font-weight: var(--fw-number); font-variant-numeric: tabular-nums; color: var(--ink); }
.ef-hero-num { font: var(--fw-number) 48px/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-stat-num { font: var(--fw-number) 22px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-danger-text { color: var(--danger-fg); }
.ef-ok-text { color: var(--ok-fg); }
.ef-warn-text { color: var(--warn-fg); }
.ef-rise { animation: ef-rise var(--t-rise) ease; }
.ef-stack { display: flex; flex-direction: column; gap: 16px; }
.ef-stack--8 { gap: 8px; } .ef-stack--12 { gap: 12px; } .ef-stack--22 { gap: 22px; } .ef-stack--24 { gap: 24px; }
.ef-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ef-row--between { justify-content: space-between; }
.ef-row--end { justify-content: flex-end; }
.ef-grow { flex: 1; min-width: 0; }
