:root {
  color: #e9f4ef;
  background: #10231f;
  font: 16px/1.5 system-ui, "PingFang SC", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px max(24px, calc((100vw - 960px) / 2));
  border-bottom: 1px solid #38524a;
}
a { color: #bceca3; text-underline-offset: .2em; }
.brand { color: inherit; font-weight: 700; text-decoration: none; }
main { max-width: 1008px; margin: 0 auto; padding: 24px; }
h1 { margin: 8px 0 24px; font-size: clamp(1.5rem, 4vw, 2.4rem); }
h2 { margin: 0; font-size: 1.15rem; }
section { margin-bottom: 18px; padding: 24px; border: 1px solid #476359; border-radius: 12px; background: #182f29; }
.section-heading, form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-heading { justify-content: space-between; }
.metric { font-variant-numeric: tabular-nums; margin: 16px 0 4px; }
.metric strong { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.1; letter-spacing: -.04em; }
.metric span, .source-meta, #selection, #caption { color: #c4d9cf; }
.source-meta { margin: 8px 0 20px; }
button, select, input, .button {
  font: inherit;
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #56786b;
}
select, input { color: inherit; background: #10231f; }
form { margin-top: 16px; }
input { flex: 1 1 200px; min-width: 0; }
button, .button { display: inline-block; color: #10231f; background: #bceca3; border-color: transparent; cursor: pointer; text-decoration: none; font-weight: 650; }
:focus-visible { outline: 2px solid #e5ffc9; outline-offset: 3px; }
[role="status"]:empty, ul:empty, #selection:empty { display: none; }
.source-page main { max-width: 970px; }
.source-page h1 { margin-bottom: 6px; }
#pdf { margin: 16px 0 40px; position: relative; width: 100%; }
canvas { display: block; width: 100%; background: white; }
.highlight { position: absolute; pointer-events: none; border: 2px solid #a35707; background: #ffd54a4a; }
.highlight.cell { border-color: #9d290b; background: #ff95125c; }
#caption { position: absolute; left: 0; top: 100%; padding-top: 8px; font-size: .875rem; }
#research-items article { padding: 16px 0; border-top: 1px solid #38524a; }
#research-items h3 { margin: 0; }
#research-items article p { margin: 8px 0; }
.research-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.original-table { border-collapse: collapse; margin: 20px 0; width: 100%; }
.original-table caption { text-align: left; font-weight: 650; margin-bottom: 8px; }
.original-table th, .original-table td { text-align: start; padding: 10px; border: 1px solid #56786b; }
.original-table tbody { background: #263d33; font-variant-numeric: tabular-nums; }
.qa-answer { margin-top: 18px; }
.qa-answer h3 { margin: 8px 0; font-size: 1.05rem; }
.qa-fact { margin-top: 12px; padding: 8px 0 14px; border-top: 1px solid #38524a; }
.qa-fact p { margin: 6px 0 10px; }
.qa-fact blockquote { margin: 6px 0 12px; padding-left: 12px; border-left: 2px solid #72948a; }
.qa-missing { color: #ffdc9c; }
#public-pdf { position: relative; margin: 16px 0; }
#public-picture { width: 100%; height: auto; margin-top: 12px; }
.source-match { color: #142721; background: #f4cf76; padding: 10px; }
.source-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.source-table caption { text-align: left; padding: 8px 0; }
.source-table td { padding: 6px 3px; border-bottom: 1px solid currentColor; }

.audiences { display: flex; gap: 14px; margin: 0; border: 0; padding: 0; }
.audiences legend { margin-bottom: 4px; }
.audiences label { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; }
.audiences input { appearance: none; display: grid; place-content: center; flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border-radius: 3px; border: 1px solid currentColor; }
.audiences input:checked { background: #bceca3; color: #10231f; }
.audiences input:checked::before { content: ""; width: 8px; height: 4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.audiences label:has(input:disabled) { opacity: .5; }
