* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.5;
}
h1, h2, h3 { text-wrap: balance; line-height: 1.2; margin: 0; font-weight: 650; }
h1 { font-size: var(--step-2); letter-spacing: -0.01em; }
h2 { font-size: var(--step-1); }
h3 { font-size: var(--step-0); }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
code, .mono, .num { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -3rem; padding: .5rem .75rem;
  background: var(--accent); color: var(--accent-ink); z-index: 10;
}
.skip:focus { top: .5rem; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

button, select, input { font: inherit; color: inherit; }
button {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .3rem .7rem;
  cursor: pointer;
}
button:hover { border-color: var(--ink); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
select, input[type="number"], input[type="text"] {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .3rem .5rem;
}

/* Status badges: outlined, never filled */
.badge {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0 .4rem;
  font-size: var(--step--1);
  line-height: 1.4;
  white-space: nowrap;
}
.badge.verified, .badge.ok { color: var(--ok); }
.badge.equivalent_with_caveats, .badge.caveats { color: var(--caveat); }
.badge.rejected, .badge.bad { color: var(--bad); }
.badge.unverified, .badge.dismissed, .badge.neutral, .badge.n-a { color: var(--neutral); }
.badge.pending { color: var(--pending); }
.badge.accent { color: var(--accent); }
.badge.dismissed { text-decoration: line-through; }

.state {
  border: 1px dashed var(--rule);
  padding: 1.5rem var(--gutter);
  color: var(--muted);
}
.state strong { display: block; color: var(--ink); margin-bottom: .25rem; }
.state.error { border-color: var(--bad); }
.state.error strong { color: var(--bad); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

meter, progress { width: 100%; height: .6rem; accent-color: var(--accent); }

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.toolbar label { display: inline-flex; gap: .4rem; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
