:root {
  color-scheme: light;
  --ink: #111;
  --muted: #5b5b5b;
  --line: #cfcfcf;
  --link: #0645ad;
  --accent: #9b1c1c;
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; }
main, header, footer { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
header { display: flex; gap: 1rem; align-items: baseline; padding: 1.2rem 0 .7rem; border-bottom: 2px solid var(--ink); }
header strong { margin-right: auto; }
nav { display: flex; flex-wrap: wrap; gap: .8rem; }
main { padding: 1.2rem 0 3rem; }
footer { border-top: 1px solid var(--line); padding: 1rem 0 2rem; color: var(--muted); font-size: .85rem; }
h1 { font-size: 1.5rem; margin: 0 0 .35rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1rem; }
p { max-width: 76ch; }
a { color: var(--link); text-underline-offset: 2px; }
.lede, .notice, .meta, .help { color: var(--muted); }
.notice { font-size: .85rem; border-left: 3px solid var(--line); padding-left: .7rem; }
.views { display: flex; gap: 1rem; margin: 1rem 0; }
.views [aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .55rem .45rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { border-bottom: 2px solid var(--ink); white-space: nowrap; }
th:nth-child(2), td:nth-child(2) { min-width: 14rem; }
.number { text-align: center; }
.statement { min-width: 22rem; }
.badge { display: inline-block; padding: .08rem .4rem; border: 1px solid currentColor; color: var(--accent); font-size: .75rem; white-space: nowrap; }
.score { font-variant-numeric: tabular-nums; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); gap: 2rem; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .8rem; }
dt { font-weight: 700; }
dd { margin: 0; }
.card { border: 1px solid var(--line); padding: 1rem; margin: 1rem 0; }
form { max-width: 38rem; }
label { display: block; font-weight: 650; margin-top: .75rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: .45rem; border: 1px solid #777; background: #fff; }
textarea { min-height: 5rem; }
button { margin-top: 1rem; padding: .45rem .8rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.inline-form { display: inline; }
.inline-form button { margin: .15rem; }
.error { color: #a40000; }
.success { border: 1px solid #267326; padding: .7rem; }
code { font-size: .9em; }

@media (max-width: 700px) {
  header { align-items: flex-start; flex-direction: column; }
  header strong { margin-right: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .statement { min-width: 18rem; }
}
