:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #52606d;
  --line: #c9d2da;
  --paper: #f7f8f9;
  --panel: #ffffff;
  --accent: #135f69;
  --pass-bg: #d8efdf;
  --pass-ink: #17452a;
  --partial-bg: #fff0bf;
  --partial-ink: #594200;
  --none-bg: #f5d8dc;
  --none-ink: #681f29;
  --neutral-bg: #e8edf1;
  --neutral-ink: #35434f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a { color: #075f8a; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #e5901a;
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - 90rem) / 2));
  color: #ffffff;
  background: #15313a;
  border-bottom: 4px solid #4ca1a9;
}

.wordmark {
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}

nav { display: flex; gap: 1.25rem; }
nav a { color: #dcebed; font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: #ffffff; text-decoration: underline; }

main, footer {
  width: min(90rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.methods {
  max-width: 75rem;
  padding: 4rem 0 2.5rem;
}

.methods p:not(.eyebrow) { max-width: 76ch; font-size: 1.06rem; }

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 { margin: 0 0 1rem; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); letter-spacing: -0.025em; }

.matrix {
  margin-bottom: 4rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(23 33 43 / 8%);
}

.matrix-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

label { color: var(--muted); font-size: 0.84rem; font-weight: 750; }
select {
  display: block;
  min-width: 11rem;
  margin-top: 0.35rem;
  padding: 0.65rem 2.25rem 0.65rem 0.75rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #81909c;
  border-radius: 0.2rem;
  font: inherit;
}

.legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 0.82rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.swatch { width: 0.85rem; height: 0.85rem; border: 1px solid rgb(23 33 43 / 25%); }
.swatch.all-pass, .score.all-pass { color: var(--pass-ink); background: var(--pass-bg); }
.swatch.partial, .score.partial { color: var(--partial-ink); background: var(--partial-bg); }
.swatch.none-pass, .score.none-pass { color: var(--none-ink); background: var(--none-bg); }
.score.untested { color: var(--neutral-ink); background: var(--neutral-bg); }

.filter-status { margin: 0.7rem 0 1rem; color: var(--muted); font-size: 0.86rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 70rem; border-collapse: collapse; }
th, td { padding: 0.85rem; text-align: left; border: 1px solid var(--line); }
thead th { color: #ffffff; background: #284852; font-size: 0.78rem; }
thead code { color: inherit; }
.result-row > th { width: 18rem; background: #f1f4f6; }
.result-row > th strong, .result-row > th span { display: block; }
.result-row > th strong { margin-bottom: 0.35rem; font-size: 0.98rem; }
.result-row > th span { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.score { min-width: 8rem; text-align: center; }
.ratio { display: block; color: inherit; font: 800 1.05rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.legacy-evidence { display: block; margin-top: 0.35rem; font-size: 0.68rem; line-height: 1.25; }
.detail-row > td { padding: 0; background: #fbfcfc; }
.detail-row details { padding: 0.8rem 1rem; }
.detail-row summary { width: fit-content; color: #075f8a; cursor: pointer; font-weight: 700; }

.metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.metadata div { min-width: 0; padding: 0.7rem; background: #eef2f4; }
.metadata dt { color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.metadata dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; }
.scenario-list { margin: 1rem 0 0; padding-left: 1.75rem; }
.scenario { padding: 0.5rem 0 0.5rem 0.25rem; border-bottom: 1px solid #e0e5e9; }
.scenario:last-child { border-bottom: 0; }
.status-label { margin-left: 0.4rem; font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.status-pass .status-label { color: #236d3d; }
.status-fail .status-label, .status-error .status-label { color: #9a2535; }
.failure-reason { display: inline; color: var(--muted); }
.failure-reason::before { content: "- "; }
.transcript { margin-left: 0.55rem; font-size: 0.85rem; }
.badge { display: inline-block; margin-left: 0.45rem; padding: 0.12rem 0.42rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; text-decoration: none; }
.badge.cause { color: #632014; background: #ffe0d4; border: 1px solid #e6a18d; }
.badge.neutral { color: var(--neutral-ink); background: var(--neutral-bg); border: 1px solid #bcc7cf; }
.badge.neutral.unparsed { color: #4a3410; background: #fdf0d5; border: 1px solid #d9b877; }

.submit-page { max-width: 58rem; }
.submit-page section { margin-bottom: 2.5rem; }
pre { overflow-x: auto; padding: 1.25rem; color: #eef7f8; background: #18343d; border-left: 4px solid #4ca1a9; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.checklist { padding-left: 1.3rem; }
.checklist li { margin-bottom: 0.65rem; }

footer { padding: 1.5rem 0 3rem; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.86rem; }

@media (max-width: 44rem) {
  .site-header, .matrix-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .site-header { padding-inline: 1.25rem; }
  main, footer { width: min(100% - 1.5rem, 90rem); }
  .methods { padding-top: 2.5rem; }
  .matrix { padding: 1rem; }
  nav { gap: 1rem; }
}

@media print {
  body { background: #ffffff; }
  .site-header { color: #000000; background: #ffffff; border-color: #000000; }
  .wordmark, nav a { color: #000000; }
  .matrix { box-shadow: none; }
  label, .filter-status { display: none; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; font-size: 9pt; }
  a { color: inherit; }
}
