:root {
  --bg: #fbfbfa; --surface: #ffffff; --text: #1d1f21; --muted: #5f6368; --line: #e3e3e0;
  --accent: #1f5fae; --good: #1e7a46; --bad: #b3261e; --neutral: #6b6b6b; --mixed: #8a5a00;
  --chip: #f1f1ee; --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #131416; --surface: #1b1c1f; --text: #e8e8e6; --muted: #a2a4a8; --line: #2c2e32;
          --accent: #7fb0ec; --good: #6cc495; --bad: #f08b84; --neutral: #a8a8a8; --mixed: #e0b45c;
          --chip: #26272b; --on-accent: #131416; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
header h1 { font-size: 22px; margin: 0 0 4px; }
header p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
form { display: flex; gap: 8px; margin-bottom: 8px; }
input[type=search] { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; color: var(--text);
                     background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
button { padding: 0 18px; font: inherit; border: 0; border-radius: 8px; background: var(--accent);
         color: var(--on-accent); cursor: pointer; }
.hint { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.hint a { color: var(--accent); }
.study { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
         padding: 16px 18px; margin-bottom: 14px; }
.study h2 { font-size: 17px; margin: 0 0 4px; line-height: 1.35; }
.study h2 a { color: var(--text); text-decoration: none; }
.study h2 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.chip { display: inline-block; background: var(--chip); border-radius: 999px; padding: 1px 9px;
        font-size: 12px; margin-right: 6px; }
.finding { border-top: 1px solid var(--line); padding: 10px 0 2px; }
.finding .outcome { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                    overflow: hidden; }
.finding .head { display: flex; gap: 6px; align-items: baseline; justify-content: space-between; }
.finding .arms { color: var(--muted); font-size: 14px; }
.finding .kind { color: var(--muted); font-size: 13px; font-weight: 600; }
.finding .result { margin: 4px 0; }
.finding .unc { color: var(--muted); font-size: 14px; }
.dir { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 1px 7px; margin-left: 6px;
       border: 1px solid currentColor; white-space: nowrap; }
.dir.favours_intervention { color: var(--good); }
.dir.favours_comparator { color: var(--bad); }
.dir.no_clear_difference { color: var(--neutral); }
.dir.mixed { color: var(--mixed); }
details { font-size: 14px; color: var(--muted); margin: 4px 0 6px; }
details summary { cursor: pointer; }
.withheld { font-size: 14px; color: var(--muted); margin: 4px 0 6px; }
blockquote { margin: 6px 0 0; padding-left: 10px; border-left: 3px solid var(--line); }
.source { font-size: 14px; margin-top: 8px; }
.source a { color: var(--accent); }
.more { font-size: 14px; color: var(--accent); cursor: pointer; background: none; padding: 0; }
footer { color: var(--muted); font-size: 13px; margin-top: 28px; border-top: 1px solid var(--line);
         padding-top: 12px; }
.empty { color: var(--muted); }
.note { font-size: 14px; padding: 10px 14px; margin: 0 0 16px; background: var(--chip); border-left: 3px solid var(--mixed); border-radius: 6px; }
.note a { color: var(--accent); }
.feedback { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px;
            padding: 12px 16px; margin: 4px 0 18px; font-size: 14px; }
.feedback button { padding: 6px 14px; margin-right: 6px; }
.feedback button.no { background: var(--neutral); }
.feedback textarea { width: 100%; margin-top: 8px; font: inherit; color: var(--text);
                     background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }

/* Filters and the what's-new form */
form[hidden], details[hidden] { display: none; }
#newform select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; max-width: 40%; }
#newform input[type=search] { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.filters label { display: grid; gap: 2px; color: var(--muted); font-size: 13px; }
.filters select, .filters input { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
details.filter-box { margin-bottom: 12px; font-size: 14px; color: var(--text); }
details.filter-box summary { color: var(--muted); margin-bottom: 8px; }

/* Navigation */
header h1 a { color: inherit; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 10px; font-size: 14px; }
nav a { color: var(--accent); }
nav a[aria-current=page] { color: var(--text); font-weight: 600; text-decoration: none; }

/* Card and study pages */
.fields { margin: 8px 0; display: grid; border-top: 1px solid var(--line); }
.fields div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fields dt { color: var(--muted); font-size: 14px; }
.fields dd { margin: 0; overflow-wrap: anywhere; }
.caveats { font-size: 14px; margin: 10px 0 4px; }
.linked h3 { font-size: 15px; margin: 14px 0 4px; }
.linked ul { margin: 0; padding-left: 18px; }
.linked a, .permalink a, .caveats a, .study p a { color: var(--accent); }
.permalink { font-size: 13px; margin: 2px 0 6px; }
.more { display: inline-block; margin-top: 6px; }
.view-title { font-size: 19px; margin: 8px 0 2px; }
.listed { color: var(--muted); font-size: 13px; margin: 14px 0 4px; }
#results:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Screen readers only */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Methodology, coverage and API */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.docs { margin: 8px 0 14px; }
.docs th, .docs td { text-align: left; white-space: normal; vertical-align: top; }
.docs tbody td:first-child { width: 34%; }
.prose h2 { font-size: 21px; margin: 14px 0 6px; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose a { color: var(--accent); }
.prose li { margin-bottom: 6px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
thead th { color: var(--muted); font-weight: 600; }
th:first-child { text-align: left; white-space: normal; font-weight: 400; }
@media (max-width: 560px) { .fields div { grid-template-columns: minmax(0, 1fr); } }
