:root {
  color-scheme: light;
  color: #1c2925;
  background: #f7f8f5;
  font: 1rem/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #162d25;
  --green: #194a39;
  --muted: #53675d;
  --line: #cbd4cc;
  --paper: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p, dl, dd { margin: 0; }
body { overflow-wrap: break-word; }
.wrap { width: min(65rem, calc(100% - 3rem)); margin-inline: auto; }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #9b5900;
  outline-offset: 4px;
  border-radius: 2px;
}
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 1; padding: 0.6rem; background: #fff; }
.skip-link:focus { top: 0.5rem; }
.masthead { color: #f5fbf7; background: var(--ink); border-bottom: 3px solid #a8d5ba; }
.masthead-inner, .reference-links, .run-nav, .run-links, .exit-row, .card-heading, .local-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.masthead-inner { min-height: 3.8rem; gap: 0.5rem 1rem; justify-content: space-between; }
.brand { color: inherit; font-size: 1.37rem; font-weight: 750; letter-spacing: -0.045em; text-decoration: none; }
.reference-links { gap: 0.5rem 1.4rem; }
.reference-links a { color: #d8e9df; font-size: 0.875rem; font-weight: 550; }
main { padding-block-end: 3rem; }
.run-nav { justify-content: space-between; gap: 0.55rem 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.run-nav > span { color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.run-links { gap: 0.38rem; }
.run-links a {
  padding: 0.37rem 0.85rem;
  border: 1px solid #bdc9c0;
  border-radius: 0.35rem;
  color: #294535;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.run-links a:hover { border-color: var(--green); }
.run-links a[aria-current="page"] { border-color: var(--green); color: #fff; background: var(--green); }
.intro { padding-block: clamp(1.7rem, 4vw, 2.8rem) 1.7rem; }
.source-label, .hash-label, dt { color: var(--muted); font-size: 0.84rem; }
.source-label { font-weight: 650; }
h1 { margin: 0.25rem 0 0.45rem; font-size: clamp(2rem, 4.7vw, 3.85rem); line-height: 1.08; letter-spacing: -0.055em; }
h2 { margin-bottom: 0.75rem; font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.025em; }
h3, h4 { font-size: 1rem; line-height: 1.4; }
.explanation { max-width: 73ch; font-size: clamp(1rem, 1.55vw, 1.17rem); }
.exit-row { gap: 0.55rem 0.75rem; margin-top: 0.95rem; }
.exit-row p { color: var(--muted); font-size: 0.875rem; }
#exit-badge {
  padding: 0.24rem 0.65rem;
  border: 1px solid var(--tone-border);
  border-radius: 0.3rem;
  color: var(--tone-ink);
  background: var(--tone-bg);
  font: 700 1rem/1.25 ui-monospace, Consolas, monospace;
}
[data-tone="bad"] { --tone-ink: #8d311f; --tone-bg: #fbe6de; --tone-border: #d99b89; }
[data-tone="good"] { --tone-ink: #1b5a3c; --tone-bg: #deefe3; --tone-border: #95bba1; }
[data-tone="pending"] { --tone-ink: #775117; --tone-bg: #fff1d8; --tone-border: #c9aa70; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; background: var(--paper); }
table thead { color: #e8f1eb; background: #2a4237; }
th, td { padding: 0.8rem clamp(0.65rem, 1.9vw, 1.2rem); vertical-align: top; }
thead th { font-size: 0.85rem; font-weight: 600; }
thead th:first-child { width: 38%; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody th { font-weight: 650; }
td + td, tbody th + td { border-left: 1px solid #e2e8e1; }
.readout { font-weight: 550; font-variant-numeric: tabular-nums; }
.status {
  display: inline-block;
  color: var(--tone-ink);
  background: var(--tone-bg);
  padding: 0.08rem 0.42rem;
  border-radius: 0.25rem;
  font-size: 0.77rem;
  font-weight: 650;
  line-height: 1.45;
}
tbody .status { display: block; width: fit-content; max-width: 100%; margin-top: 0.26rem; }
.evidence-section, aside { margin-top: 2rem; }
.run-meta { display: flex; flex-wrap: wrap; gap: 0.55rem 1.75rem; margin: 0 0 1rem; }
.run-meta > div { min-width: 0; }
code { font: 0.85rem/1.45 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; color: var(--green); font-weight: 650; padding-block: 0.65rem; }
summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
details[open] { padding-bottom: 0.9rem; }
#capture p, .evidence-body > p { color: var(--muted); }
.hash-label { margin-top: 0.65rem; font-weight: 600; }
.digest { display: block; color: #334c3d; }
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.9rem; }
.side { min-width: 0; padding: 1rem; border: 1px solid var(--line); background: var(--paper); border-radius: 0.4rem; }
.card-heading { gap: 0.5rem; justify-content: space-between; }
.readouts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-block: 0.7rem; }
.readouts dd { font-size: 1.1rem; font-weight: 650; }
.reason, .extra p { color: var(--muted); margin-top: 0.5rem; }
.capture-link { display: block; margin-top: 0.9rem; font-size: 0.85rem; }
.capture-link img { width: 100%; height: auto; display: block; border: 1px solid var(--line); margin-bottom: 0.35rem; }
aside { border-top: 1px solid var(--line); padding-top: 1.2rem; }
aside p { color: var(--muted); max-width: 75ch; }
.local-links { gap: 0.5rem 1.25rem; margin: 0.6rem 0; }
#example-link { font-size: 0.875rem; }
#loading { padding: 1.5rem 0; }

@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .run-nav { align-items: flex-start; flex-direction: column; }
  .run-links a { padding: 0.48rem 0.65rem; }
  .sides { grid-template-columns: minmax(0, 1fr); }
  th, td { padding: 0.55rem 0.45rem; }
  table { font-size: 0.875rem; }
  .status { font-size: 0.72rem; }
  .exit-row { align-items: flex-start; }
  .exit-row p { flex: 1; }
  .reference-links { gap: 0.7rem; }
}
