:root {
  --ground: #f4f4ef; --paper: #fffffb; --ink: #1a1d21; --muted: #666a62; --line: #d5d7cf;
  --accent: #2a6f77; --accent-ink: #fff; --tint: #e3eeed; --focus: #f0a63a; --good: #2f7d4f; --bad: #b2453f;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: "Public Sans", "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
.top { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.tag { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 680px; margin-inline: auto; padding-inline: 16px; padding-block: 28px 56px; }
.foot { max-width: 680px; margin-inline: auto; padding: 16px; color: var(--muted); font-size: 0.85rem; }
h1 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.9rem; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
p { margin: 0 0 12px; max-width: 62ch; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 0.92rem; font-style: italic; margin: 6px 0 12px; }
.lede { font-size: 1.15rem; font-weight: 500; margin-bottom: 16px; }
.examples { margin: 0 0 14px; }
.examples summary { color: var(--accent); font-weight: 600; }
.progress { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.item { margin: 18px 0 22px; }
.item .q { font-weight: 500; margin: 0 0 8px; }
.choices { display: grid; gap: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choices.row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.choices.row .choice { padding: 8px 10px; font-size: 0.92rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
button { font: inherit; cursor: pointer; }
.primary { background: var(--accent); color: var(--accent-ink); border: 0; padding: 10px 18px; font-weight: 600; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 10px 16px; }
.mv { width: 2.2rem; height: 2rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.mv:disabled { opacity: 0.35; }
ol.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ol.rank li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); padding: 6px 8px 6px 0; }
ol.rank li .n { text-align: center; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.err { color: var(--bad); font-weight: 600; }
input[type=text] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; max-width: 360px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.pill.rec { background: var(--tint); color: var(--accent); }
.pill.none { background: #eee; color: var(--muted); }
.pill.agree { background: #e4f1e8; color: var(--good); }
.pill.disagree { background: #f6e3e2; color: var(--bad); }
details { margin: 4px 0; }
summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.tablewrap { overflow-x: auto; }
:is(button, input, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  :root { --ground: #15181b; --paper: #1d2125; --ink: #ecebe4; --muted: #9a9e95; --line: #343a3f; --accent: #6fbcc0; --accent-ink: #0f1a1b; --tint: #1e2f31; --focus: #f0b860; --good: #7fc79a; --bad: #e08a85; }
  .pill.none { background: #2a2f34; }
  .pill.agree { background: #1f3a2a; } .pill.disagree { background: #3f2524; }
}
