/* Dark theme, WCAG AA from the first line: body text 17 px, nothing under 15 px,
   every control at least 44 px tall, one column that works at 200 % zoom. */
:root {
  --bg: #0f1419;
  --panel: #171d24;
  --line: #2b3440;
  --text: #e6edf3;      /* 15.4:1 on --bg */
  --muted: #aab4bf;     /* 8.6:1 on --bg */
  --link: #79b8ff;      /* 8.4:1 on --bg */
  --pass: #4cc26a;      /* 8.5:1 on --bg */
  --fail: #ff8a80;      /* 7.6:1 on --bg */
  --approve: #1f7a35;   /* white text 5.6:1 */
  --focus: #ffd166;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--focus); color: #000; padding: 0.6rem 1rem; min-height: 44px; display: inline-flex; align-items: center; }
.skip:focus { left: 0.5rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top { border-bottom: 1px solid var(--line); background: var(--panel); padding: 0.75rem 0; }
h1 { font-size: 1.35rem; margin: 0; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.thin { font-weight: 400; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }     /* 15.3 px: the floor */
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.between { justify-content: space-between; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.btn {
  min-height: 44px; min-width: 44px; padding: 0.6rem 1.1rem; font: inherit; font-weight: 600;
  border-radius: var(--radius); border: 2px solid var(--line); background: var(--panel); color: var(--text);
  cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn.ghost { background: transparent; }
.btn.approve { background: var(--approve); border-color: var(--approve); color: #fff; }
.btn.reject { background: transparent; border-color: var(--fail); color: var(--fail); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--muted); }
.status.error { color: var(--fail); }
.banner { padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--panel); border-left: 6px solid var(--muted); margin: 0.5rem 0 1rem; }
.banner.pass { border-left-color: var(--pass); }
.banner.fail { border-left-color: var(--fail); }

.runs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.run {
  display: block; width: 100%; text-align: left; min-height: 44px; padding: 0.9rem 1rem;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); color: var(--text); font: inherit; cursor: pointer;
}
.run:hover { border-color: var(--muted); }
.run .sym { font-size: 1.25rem; font-weight: 700; margin-right: 0.5rem; }
.run .flag { font-weight: 700; }
.run .flag.pass { color: var(--pass); }
.run .flag.fail { color: var(--fail); }
.run .line { display: block; color: var(--muted); margin-top: 0.25rem; }

table.checks { width: 100%; border-collapse: collapse; }
table.checks th, table.checks td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.checks th { color: var(--muted); font-weight: 600; }
td.pass { color: var(--pass); font-weight: 700; white-space: nowrap; }
td.fail { color: var(--fail); font-weight: 700; white-space: nowrap; }
@media (max-width: 40rem) {
  table.checks thead { display: none; }
  table.checks tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  table.checks td { display: block; border: 0; padding: 0.15rem 0; }
}

textarea {
  width: 100%; font: inherit; line-height: 1.55; color: var(--text); background: var(--panel);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 0.9rem; resize: vertical; min-height: 12rem;
}
.plain { padding-left: 1.25rem; }
.plain li, .facts li { margin: 0.4rem 0; }
/* Inline links are targets too: give them the 44 px minimum without breaking the line. */
#timeline a { display: inline-block; min-height: 44px; padding: 0.55rem 0.25rem; margin: -0.55rem 0; }
.facts .src { display: block; color: var(--muted); }
.facts .verbatim { display: block; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.95rem; white-space: pre-wrap; }
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 40rem) { dl.meta { grid-template-columns: 1fr; } dl.meta dd { margin-bottom: 0.5rem; } }

.targets { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.targets label { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; padding: 0.4rem 0.5rem; }
.targets input { width: 1.4rem; height: 1.4rem; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 1rem; }
footer.wrap { margin-top: 3rem; margin-bottom: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
