:root {
  --bg: #fafaf7;            /* warm off-white, barely-there */
  --surface: #ffffff;
  --ink: #14181d;
  --ink-soft: #38414c;
  --muted: #59626d;
  --line: #e6e9ee;
  --line-strong: #c7ced7;
  --panel: #f4f6f9;
  --accent: #0b5cad;       /* civic blue, distinct from verdict palette */
  --accent-ink: #08407a;
  --accent-tint: #eaf2fb;
  /* verdict palette — all AA on white */
  --v-improves: #15723a;
  --v-worsens: #b3121c;
  --v-mixed: #9a5a00;
  --v-negligible: #5b6470;
  --v-uncertain: #5b2bc4;
  --v-improves-bg: #eef8f1;
  --v-worsens-bg: #fdeef0;
  --v-mixed-bg: #fdf4e7;
  --v-negligible-bg: #f2f4f6;
  --v-uncertain-bg: #f3f0fd;
  /* evidence tiers */
  --t-stated: #1d4ed8;
  --t-measurable: #a4690a;
  --t-projected: #c0242e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --shadow-lg: 0 10px 40px rgba(16,24,40,.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* the off-canvas drawer (transform: translateX(100%)) parks off the right edge; clip it so it
   doesn't create horizontal overflow (and cut off content) on mobile. The grid has its own
   horizontal scroll container, so this never clips the table. */
body { overflow-x: hidden; }
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent-ink); }

/* a11y helpers */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* focus + motion accessibility */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* header */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand .dot { color: var(--accent); }
.trustline { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.trustline span { display: inline-flex; align-items: center; gap: 6px; }
.trustline .tick { color: var(--v-improves); font-weight: 700; }

/* hero */
.hero { background: linear-gradient(180deg, var(--accent-tint), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 40px; padding-bottom: 30px; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 12px; max-width: 18ch; }
.hero p.lede { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-soft); max-width: 60ch; margin: 0 0 8px; }
.hero p.promise { font-size: 14px; color: var(--muted); margin: 0; }
.mock-banner { background: #fff7ed; border: 1px solid #fed7aa; color: #8a3a12; font-size: 12.5px; padding: 7px 12px; border-radius: 8px; margin: 16px 0 0; display: inline-block; }
html { scroll-behavior: smooth; }
.drawer-head .copylink { float: right; margin-right: 10px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.drawer-head .copylink:hover { background: var(--panel); }
.drawer-head .copylink:disabled { color: var(--v-improves); border-color: var(--v-improves); }

/* how it works */
.how { padding: 22px 0 4px; }
.how ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; counter-reset: step; }
.how li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.how li::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.how li b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.how li span { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .how ol { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  /* header trustline: full-width and wrapping (instead of running off the right edge) */
  .trustline { margin-left: 0; width: 100%; font-size: 12px; gap: 6px 14px; }
  /* footer: stack the trust points above the fine print, with breathing room between them */
  footer.site .wrap { flex-direction: column; gap: 18px; }
}

/* picker */
.picker { padding: 26px 0 6px; }
.picker h2 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.01em; }
.picker p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* grouped picker — labelled sections so the 16 topics don't read as a flat wall */
.pgroup { width: 100%; }
.pgroup-h { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.pgroup:first-child .pgroup-h { margin-top: 2px; }
.pgroup-chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* accordion variant */
.pgroup-acc { border: 1px solid var(--line-strong); border-radius: 11px; margin-bottom: 9px; overflow: hidden; }
.pgroup-h-acc { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 12px 15px; margin: 0; border: 0; border-bottom: 0; }
.pgroup-h-acc::-webkit-details-marker { display: none; }
.pgroup-acc[open] .pgroup-h-acc { border-bottom: 1px solid var(--line); }
.pg-count { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-tint); border-radius: 20px; padding: 1px 9px; text-transform: none; letter-spacing: 0; }
.pg-chev { margin-left: auto; color: var(--muted); font-size: 12px; transition: transform .15s; }
.pgroup-acc[open] .pg-chev { transform: rotate(180deg); }
.pgroup-acc .pgroup-chips { padding: 13px 15px; }
.chip { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 9px 14px; cursor: pointer; font: inherit; text-align: left; transition: all .12s; display: flex; flex-direction: column; gap: 1px; min-width: 158px; }
.chip .o-name { font-weight: 650; font-size: 14.5px; }
.chip .o-plain { font-size: 12px; color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.chip[aria-pressed="true"] .o-name::before { content: "✓ "; color: var(--accent); }
.chip:hover { border-color: var(--accent); }

/* explainer — "why these and not those" — opens in the side panel, doesn't shift the table */
.explainer-cta { margin: 24px 0 6px; }
.explainer-link { font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink);
  background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; }
.explainer-link:hover { color: var(--accent); }
.ex-principle { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-soft); }
.ex-lens { margin: 14px 0 0; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.lever-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lever-list li { border-left: 3px solid var(--line-strong); padding-left: 12px; }
.lever-name { font-weight: 700; font-size: 14px; }
.lever-why { font-size: 13px; color: var(--ink-soft); margin: 2px 0 6px; }
.feeds { font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.feeds-label { color: var(--muted); }
.feed-chip { font: inherit; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-tint); border: 1px solid #cfe0f5; border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.feed-chip:hover { border-color: var(--accent); }

/* grid */
.gridcard { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.grid-scroll { overflow-x: auto; }
table.grid { border-collapse: collapse; width: 100%; min-width: 560px; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); text-align: left; }
table.grid thead th { background: var(--panel); font-size: 13px; color: var(--ink-soft); font-weight: 700; padding: 13px 16px; vertical-align: bottom; }
table.grid thead th .col-plain { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
table.grid tbody th.party { padding: 16px; font-weight: 700; font-size: 15px; white-space: nowrap; vertical-align: top; background: var(--surface); }
.cell { padding: 10px; vertical-align: top; }
/* keep cells readable when many columns are selected — each outcome column holds a min width so the
   grid scrolls horizontally (.grid-scroll) instead of squashing the content into bad wraps */
table.grid thead th:not(:first-child), table.grid td.cell { min-width: 180px; }
table.grid thead th.col-dir, table.grid td.cell-dir { min-width: 255px; }  /* directional (immigration) axis needs more room */
/* sticky party column — the row label stays in view during horizontal scroll */
table.grid thead th:first-child, table.grid tbody th.party { position: sticky; left: 0; }
table.grid tbody th.party { z-index: 2; }
table.grid thead th:first-child { z-index: 3; }
/* gentle elevation shadow via a pseudo-element — box-shadow on cells is unreliable under
   border-collapse, so we paint a soft gradient just off the column's right edge. Fades in only while scrolled. */
table.grid thead th:first-child::after, table.grid tbody th.party::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 16px;
  transform: translateX(100%); pointer-events: none;
  background: linear-gradient(to right, rgba(15, 23, 42, .20), rgba(15, 23, 42, 0));
  opacity: 0; transition: opacity .18s ease;
}
.grid-scroll.scrolled table.grid thead th:first-child::after,
.grid-scroll.scrolled table.grid tbody th.party::after { opacity: 1; }

/* MOBILE: stacked issue-cards instead of the wide table (toggled by body.is-mobile from app.js) */
.grid-cards { display: none; }
body.is-mobile .grid-scroll { display: none; }
body.is-mobile .grid-cards { display: block; }
.ocard { border: 1px solid var(--line-strong); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: var(--surface); }
.ocard-h { padding: 12px 15px; background: var(--panel); font-weight: 800; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.ocard-plain { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ocard-row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; background: none; padding: 11px 15px; cursor: pointer; font: inherit; }
.ocard-row:last-child { border-bottom: 0; }
.ocard-row:not(.empty):active, .ocard-row:not(.empty):hover { background: var(--panel); }
.ocard-party { display: block; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.ocard-na { font-size: 13px; color: var(--muted); }
.ocard-row.empty { color: var(--muted); cursor: default; }
.ocard-row.improves { border-left-color: var(--v-improves); }
.ocard-row.worsens { border-left-color: var(--v-worsens); }
.ocard-row.mixed { border-left-color: var(--v-mixed); }
.ocard-row.negligible { border-left-color: var(--v-negligible); }
.ocard-row.uncertain { border-left-color: var(--v-uncertain); }
.ocard-row.dir { border-left-color: #3730a3; }
.ocard-row.multi, .ocard-row.gap { border-left-color: var(--line-strong); }
.cell-btn { width: 100%; text-align: left; border: 1.5px solid transparent; border-radius: 9px; padding: 10px 11px; cursor: pointer; transition: border-color .12s, box-shadow .12s; font: inherit; }
.cell-btn.improves { background: var(--v-improves-bg); }
.cell-btn.worsens { background: var(--v-worsens-bg); }
.cell-btn.mixed { background: var(--v-mixed-bg); }
.cell-btn.negligible { background: var(--v-negligible-bg); }
.cell-btn.uncertain { background: var(--v-uncertain-bg); }
.cell-btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.cell-empty { color: var(--muted); font-size: 13px; padding: 16px; opacity: .6; }

/* multi-policy distribution cell — shown when a party has several policies on one fundamental.
   States the spread (a factual "N of M lean…" lead + bar + tally), never a synthesized net verdict. */
.cell-btn.multi { background: var(--panel); }
.dist-lead { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; }
.dist-lead .dl-icon { font-size: 17px; font-weight: 800; }
.dist-bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; margin: 8px 0 6px; background: var(--line); gap: 1px; }
.dist-bar.big { height: 14px; margin: 12px 0; }
.dist-seg { display: block; min-width: 3px; }
.dist-seg.improves { background: var(--v-improves); }
.dist-seg.worsens { background: var(--v-worsens); }
.dist-seg.mixed { background: var(--v-mixed); }
.dist-seg.negligible { background: var(--v-negligible); }
.dist-seg.uncertain { background: var(--v-uncertain); }
.dist-seg.other { background: #cbd2da; }  /* sidelined: neither a clear help nor hurt */
.dist-nums { display: flex; gap: 12px; align-items: baseline; font-weight: 800; font-size: 14px; margin-top: 4px; }
.dist-nums .hh { white-space: nowrap; }
.dist-other { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* directional measures (immigration etc.) — neutral, never good/bad coloured */
.cell-btn.dir { background: #f5f6fb; }
.dir-lead { font-weight: 700; font-size: 13.5px; color: #3730a3; }
.dir-axis { display: flex; align-items: center; gap: 6px; margin: 9px 0 6px; }
.dir-end { font-size: 9.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.dir-track { position: relative; flex: 1; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, #c7d2fe, #e6e9f5, #c7d2fe); }
.dir-marker { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: #3730a3; border: 2px solid #fff; box-shadow: 0 0 0 1px #3730a3; transform: translate(-50%, -50%); }
.dir-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dir-mix { font-size: 11.5px; font-weight: 700; color: #3730a3; }
.dir.big .dir-axis { margin: 14px 0 8px; }
.dir.big .dir-track { height: 9px; }
.o-tag { display: inline-block; margin-left: 6px; font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: #3730a3; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 5px; padding: 1px 5px; vertical-align: middle; }
.pi-verdict.dir { color: #3730a3; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.dl-line { font-size: 14px; margin: 4px 0; } .dl-line .muted { color: var(--muted); font-weight: 400; }

/* dual-horizon badge — only shown when near & long genuinely diverge ("cost now -> gain later") */
.thz { margin: 10px 0 4px; padding: 9px 12px; border-radius: 9px; background: #fff8ec; border: 1px solid #f3e2bb; }
.thz-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13.5px; }
.thz-ic { font-size: 15px; }
.thz-seg { display: inline-flex; align-items: baseline; gap: 5px; }
.thz-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.thz-arrow { color: var(--muted); font-weight: 800; }
.thz-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.45; }
.dist-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dist-hint { font-size: 11px; color: var(--muted); white-space: nowrap; }
.dist-mix { display: flex; flex-wrap: wrap; gap: 8px; }
.dist-mix.wide { gap: 14px; margin-bottom: 6px; }
.dist-tally { font-size: 12.5px; font-weight: 700; }

/* multi-policy drawer — each contributing policy as its own collapsible (full detail inside) */
.multi-intro { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 6px; }
.policy-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.policy-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.policy-item > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.policy-item > summary::-webkit-details-marker { display: none; }
.policy-item > summary:hover { background: var(--panel); border-radius: 10px; }
.pi-icon { font-size: 16px; font-weight: 800; width: 18px; text-align: center; }
.pi-title { flex: 1; font-size: 14px; }
.pi-verdict { font-size: 12px; font-weight: 700; }
.pi-body { padding: 4px 14px 14px; border-top: 1px dashed var(--line); }
.pi-body .verdict-big { margin-top: 12px; }

/* verdict chip */
.verdict { display: flex; align-items: center; gap: 8px; }
.v-icon { font-size: 15px; font-weight: 800; width: 16px; text-align: center; line-height: 1; }
.v-label { font-size: 14px; font-weight: 700; }
.v-improves { color: var(--v-improves); } .v-worsens { color: var(--v-worsens); }
.v-mixed { color: var(--v-mixed); } .v-negligible { color: var(--v-negligible); } .v-uncertain { color: var(--v-uncertain); }
.conf { display: inline-flex; gap: 3px; margin-left: auto; align-items: center; }
.conf .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .22; }
.conf .dot.on { opacity: .85; }
.policy-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
/* unified tag component — consistent height fixes the misalignment */
.tag { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; font-size: 10.5px; font-weight: 600; border-radius: 5px; border: 1px solid; line-height: 1; white-space: nowrap; }
.tag.contested { color: var(--v-uncertain); background: var(--v-uncertain-bg); border-color: #ddd6fe; }
.tag.advocacy { color: #8a3a12; background: #fff7ed; border-color: #fed7aa; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 2px 0; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.legend .order-note { flex-basis: 100%; margin-top: 2px; font-style: italic; color: var(--muted); }

/* footer */
footer.site { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); }
footer.site .wrap { padding: 26px 22px 40px; display: flex; gap: 24px; }
footer .trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--ink-soft); }
footer .trust-row b { color: var(--ink); }
footer .fine { font-size: 12px; color: var(--muted); margin-top: 14px; max-width: 70ch; }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(16,24,40,.4); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(580px, 96vw); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .2s ease; z-index: 50; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer-head .close { float: right; border: 1px solid var(--line); background: var(--surface); width: 32px; height: 32px; border-radius: 8px; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; }
.drawer-head .eyebrow { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.drawer-head h3 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.01em; max-width: 42ch; }
.drawer-body { padding: 20px 24px 40px; }
.section-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 24px 0 8px; }
.verdict-big { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.conf-word { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.vmeta { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin: 3px 0 0; }
.headline-plain { font-size: 15.5px; margin: 8px 0 0; color: var(--ink-soft); }
/* plain-English lead — the first thing read, deliberately prominent and friendly */
.plain-lead { font-size: 16.5px; line-height: 1.5; margin: 16px 0 4px; color: var(--ink); }
.plain-tag { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.unknown { background: var(--panel); border-left: 3px solid var(--line-strong); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 13.5px; margin-top: 12px; }
.unknown b { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }

/* evidence tiers */
.tier { display: flex; gap: 10px; margin: 9px 0; font-size: 13.5px; align-items: flex-start; }
.tier .swatch { width: 4px; align-self: stretch; border-radius: 2px; flex: 0 0 4px; }
.tier .t-name { font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 1px; }
.tier.stated .swatch { background: var(--t-stated); } .tier.measurable .swatch { background: var(--t-measurable); } .tier.projected .swatch { background: var(--t-projected); }
.tier.stated .t-name { color: var(--t-stated); } .tier.measurable .t-name { color: var(--t-measurable); } .tier.projected .t-name { color: var(--t-projected); }

/* honest balance */
.fb-headline { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.fb-headline .lean { font-weight: 700; color: var(--ink); }
.subclaim { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.subclaim:last-child { border-bottom: none; }
.pill { font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 2px 7px; white-space: nowrap; height: fit-content; text-transform: capitalize; }
.pill.leans-for { color: var(--v-improves); background: var(--v-improves-bg); }
.pill.leans-against { color: var(--v-worsens); background: var(--v-worsens-bg); }
.pill.split { color: var(--v-uncertain); background: var(--v-uncertain-bg); }

/* policy-statement source(s), shown by the Stated tier */
.stated-src { font-size: 12.5px; color: var(--muted); margin: 2px 0 4px; }
.stated-src a { font-weight: 600; }

/* individual evidence source list */
.src-list { list-style: none; margin: 4px 0 0; padding: 0; }
.src-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.src-list li:last-child { border-bottom: none; }
.src-list a { font-weight: 600; }
.src-empty { font-size: 13px; color: var(--muted); margin: 4px 0; }
.src-interest { font-size: 12px; color: var(--muted); }
.src-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 5px; padding: 2px 7px; border: 1px solid; }
.src-type.government, .src-type.institutional, .src-type.academic { color: #0f4d27; background: var(--v-improves-bg); border-color: #bfe6cc; }
.src-type.advocacy, .src-type.commercial { color: #8a3a12; background: #fff7ed; border-color: #fed7aa; }
.src-type.media { color: var(--muted); background: var(--panel); border-color: var(--line-strong); }
.src-type.manifesto { color: #3730a3; background: #eef2ff; border-color: #c7d2fe; }  /* party's own words — distinct from third-party sources */

/* provenance balance */
.prov { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge { font-size: 11px; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line-strong); color: var(--muted); }
.badge b { color: var(--ink); }
.prov-note { font-size: 12.5px; margin-top: 10px; padding: 9px 12px; border-radius: 8px; }
.prov-note.clean { background: var(--v-improves-bg); color: #0f4d27; }
.prov-note.advocacy { background: #fff7ed; color: #8a3a12; }

/* dig */
details.dig { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
details.dig > summary { cursor: pointer; padding: 11px 14px; font-weight: 650; font-size: 13.5px; }
/* inner padding so collapsible content isn't squashed against the box's left edge */
details.dig > *:not(summary) { padding-left: 14px; padding-right: 14px; }
details.dig > summary + * { padding-top: 10px; }
details.dig > *:not(summary):last-child { padding-bottom: 12px; }
.lens { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.lens .lname { font-weight: 700; text-transform: capitalize; }
.lens .for { color: var(--v-improves); font-weight: 600; } .lens .against { color: var(--v-worsens); font-weight: 600; }

/* actions */
.drawer-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.btn { font: inherit; font-size: 13.5px; font-weight: 600; border-radius: 9px; padding: 10px 15px; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-ink); }
.src-text { font-size: 13px; color: var(--muted); align-self: center; }
.meta-line { font-size: 11.5px; color: var(--muted); margin-top: 16px; }

/* ===== evidence-bound verdict drawer (b-pragmatic) ===== */
.section-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }
.section-h.reading-h { color: var(--accent-ink); border-top: 1px solid var(--line); padding-top: 14px; }
.tier-h { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 12px 0 5px; }
.tier-h.stated::before { content: "🟦 "; } .tier-h.measurable::before { content: "🟨 "; } .tier-h.projected::before { content: "🟥 "; }
/* a claim with its tap-to-reveal receipt */
.claim { border: 1px solid var(--line); border-radius: 8px; margin: 6px 0; background: var(--surface); }
.claim > summary { list-style: none; cursor: pointer; padding: 9px 12px; display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.claim > summary::-webkit-details-marker { display: none; }
.claim > summary:hover { background: var(--panel); border-radius: 8px; }
.claim-txt { font-size: 13.5px; color: var(--ink); }
.receipt-cue { font-size: 11px; color: var(--accent-ink); white-space: nowrap; font-weight: 600; }
.claim[open] .receipt-cue { opacity: .5; }
.receipt { padding: 4px 12px 11px; border-top: 1px dashed var(--line); }
.receipt .rq { display: block; font-style: italic; color: var(--ink-soft); font-size: 13px; line-height: 1.5; margin-top: 8px; }
.receipt .rs { font-size: 12px; color: var(--muted); margin-top: 6px; }
.our-reading { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 4px 0 0; }
/* honest gaps */
.cell-btn.gap { background: repeating-linear-gradient(45deg, var(--panel), var(--panel) 6px, var(--bg) 6px, var(--bg) 12px); }
.gap-lead { color: var(--muted); font-weight: 600; font-size: 13px; }
.dist-gapnote { font-size: 11px; color: var(--muted); margin-top: 6px; }
.gap-list { margin-top: 14px; }
.gap-item { font-size: 13px; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid var(--line); }
.gap-why { color: var(--muted); }
