:root {
  color-scheme: light;
  --ink: #17282d;
  --muted: #425c65;
  --surface: #fff;
  --page: #eff4f5;
  --rule: #a8bdc2;
  --accent: #075c58;
  --focus: #0c4d94;
  --failure: #822427;
  --failure-bg: #faedee;
  --gap: #634400;
  --gap-bg: #fff4d8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.55 system-ui, sans-serif;
}
main { max-width: 78rem; margin: auto; padding: clamp(.9rem, 3vw, 2.6rem); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3.15rem); line-height: 1.12; }
h2 { font-size: 1.45rem; line-height: 1.3; }
h3 { font-size: 1.03rem; margin: 1.2rem 0 .5rem; }
p + p { margin-top: .65rem; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: .18rem solid var(--focus); outline-offset: .18rem; }
header, section { scroll-margin-top: 1rem; }
header { padding: 1.5rem 0; border-top: .35rem solid var(--accent); }
header p { max-width: 78ch; }
.evidence-class { margin: .8rem 0; color: var(--accent); font-weight: 700; }
.skip {
  position: absolute;
  z-index: 1;
  top: .6rem;
  left: .6rem;
  padding: .65rem;
  background: var(--surface);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.section { padding: clamp(.9rem, 2.4vw, 1.8rem); background: var(--surface); border: 1px solid var(--rule); }
.section + .section, nav + .section { margin-top: 1.25rem; }
.findings { font-size: 1.12rem; font-weight: 700; margin: .65rem 0 .9rem; }
.metrics {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  margin: .8rem 0;
}
.metric { min-width: 0; padding: .75rem; background: var(--page); border-top: .18rem solid var(--accent); }
.paired-changes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-failure { background: var(--failure-bg); border-color: var(--failure); }
.metric-failure dt, .metric-failure dd { color: var(--failure); }
.metric dt { color: var(--muted); font-size: .91rem; font-weight: 650; }
.metric dd { margin: 0; font-size: 1.55rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.note { margin-top: .6rem; color: var(--muted); }
nav { margin: 1rem 0; }
nav ul { display: flex; flex-wrap: wrap; gap: .2rem .6rem; list-style: none; margin: .4rem 0 0; padding: 0; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .2rem .42rem; font-weight: 650; }
.arm-status {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  margin: .8rem 0 1.05rem;
}
.arm-status > div { background: var(--page); padding: .6rem .75rem; }
.arm-status dt { font-weight: 700; }
.arm-status dd { margin: .15rem 0 0; }
.arm-status .gap { border-left: .18rem solid var(--gap); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
table { width: 100%; min-width: 36rem; border-collapse: collapse; text-align: left; }
th, td { padding: .58rem .65rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead { background: var(--page); }
thead th { color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
th[scope="row"] { font-weight: 650; }
.failure { background: var(--failure-bg); color: var(--failure); font-weight: 700; }
.gap { background: var(--gap-bg); color: var(--gap); }
.scroll-hint { display: none; margin-bottom: .45rem; font-size: .86rem; color: var(--muted); }
@media (max-width: 43rem) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scroll-hint { display: block; }
}
@media print {
  @page { margin: 1.25cm; }
  body, .section, header { background: #fff; color: #151515; }
  main { max-width: none; padding: 0; }
  header { padding-top: .65rem; }
  h1 { font-size: 20pt; }
  h2, h3 { break-after: avoid; }
  nav, .skip, .scroll-hint { display: none; }
  .section { padding: .6rem; }
  .metrics, .arm-status, tr { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  thead { display: table-header-group; }
  table { table-layout: fixed; min-width: 0; font-size: 9pt; }
  th, td { padding: .28rem; overflow-wrap: anywhere; }
}
