/* Read It Before You Vote: site styles.
   System fonts only, no external requests. Light and dark themes from tokens on :root.
   Edit this file in place (it is not generated). */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #efeae0;
  --ink: #1b1a17;
  --ink-2: #47443d;
  --rule: #d6cfbf;
  --rule-strong: #8c8371;
  --accent: #0f4c5c;
  --on-accent: #ffffff;
  --accent-soft: #e2eef1;
  --accent-2: #8a3b12;
  --vote-bg: #0f4c5c; --vote-ink: #ffffff; --vote-line: rgba(255, 255, 255, .35); --vote-tile: rgba(255, 255, 255, .1);
  --link: #0b5468;
  --focus: #b45309;
  --shadow: 0 1px 2px rgba(27, 26, 23, .08), 0 2px 8px rgba(27, 26, 23, .06);

  --ok-ink: #0f5a32; --ok-bg: #e2f2e7;
  --warn-ink: #7a3d00; --warn-bg: #fdead1;
  --info-ink: #1d4a7a; --info-bg: #e2ecf8;
  --muted-ink: #444444; --muted-bg: #ebe9e4;
  --bad-ink: #8a1c12; --bad-bg: #fbe2de;
  --amber-ink: #6b4a00; --amber-bg: #fbefcc;
  --slate-ink: #33404f; --slate-bg: #e6eaef;

  --del-bg: #fbdcd6; --del-ink: #5c140c;
  --ins-bg: #d4efdd; --ins-ink: #0b3d22;

  --font-body: "Segoe UI", Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", system-ui, -apple-system, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --font-doc: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --radius: 10px;
  --radius-sm: 6px;
  --gutter: max(1rem, env(safe-area-inset-left));
  --measure: 70ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14171b; --surface: #1c2026; --surface-2: #252a31;
    --ink: #f0ede6; --ink-2: #c9c4b9; --rule: #3a414b; --rule-strong: #77818f;
    --accent: #7cc6dd; --on-accent: #0b1a20; --accent-soft: #17323b; --accent-2: #f0a671; --vote-bg: #10323c; --vote-ink: #f0ede6; --vote-line: #3f7f92; --vote-tile: rgba(124, 198, 221, .08);
    --link: #8fd3ea; --focus: #ffb454;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --ok-ink: #a6e3bd; --ok-bg: #133022;
    --warn-ink: #ffd09b; --warn-bg: #3b2510;
    --info-ink: #acd0f7; --info-bg: #15294a;
    --muted-ink: #d4d4d4; --muted-bg: #2d2f33;
    --bad-ink: #ffb5aa; --bad-bg: #3e1713;
    --amber-ink: #f5d27a; --amber-bg: #392d0c;
    --slate-ink: #c8d3e0; --slate-bg: #26303b;
    --del-bg: #4b1f19; --del-ink: #ffd6cf;
    --ins-bg: #173f29; --ins-ink: #c9f2d6;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14171b; --surface: #1c2026; --surface-2: #252a31;
  --ink: #f0ede6; --ink-2: #c9c4b9; --rule: #3a414b; --rule-strong: #77818f;
  --accent: #7cc6dd; --on-accent: #0b1a20; --accent-soft: #17323b; --accent-2: #f0a671; --vote-bg: #10323c; --vote-ink: #f0ede6; --vote-line: #3f7f92; --vote-tile: rgba(124, 198, 221, .08);
  --link: #8fd3ea; --focus: #ffb454;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --ok-ink: #a6e3bd; --ok-bg: #133022;
  --warn-ink: #ffd09b; --warn-bg: #3b2510;
  --info-ink: #acd0f7; --info-bg: #15294a;
  --muted-ink: #d4d4d4; --muted-bg: #2d2f33;
  --bad-ink: #ffb5aa; --bad-bg: #3e1713;
  --amber-ink: #f5d27a; --amber-bg: #392d0c;
  --slate-ink: #c8d3e0; --slate-bg: #26303b;
  --del-bg: #4b1f19; --del-ink: #ffd6cf;
  --ins-bg: #173f29; --ins-ink: #c9f2d6;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (min-width: 1200px) { html { font-size: 118.75%; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; margin: 1.6em 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem); margin-top: .2em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.06rem; }
p, ul, ol, dl, blockquote, figure { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
code { font-family: Consolas, "Courier New", monospace; font-size: .85em; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.small, small { font-size: .9rem; }
.block { display: block; }
.count { font-weight: 400; color: var(--ink-2); font-size: .8em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html:not(.js) .js-only { display: none !important; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.prose li { margin-bottom: .5em; }
.section { margin-block: 2.6rem; }
.section-intro { color: var(--ink-2); max-width: var(--measure); }

/* ---------------------------------------------------------------- skip link and header */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--surface); color: var(--ink); padding: .7rem 1rem; border: 2px solid var(--focus); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand-mark { flex: 0 0 auto; width: 2rem; height: 2rem; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: .8rem; color: var(--ink-2); }
.header-tools { display: flex; gap: .4rem; flex: 0 0 auto; }
.btn-quiet {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 44px; padding: .45rem .7rem;
  font: inherit; font-size: .9rem; color: var(--ink); background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); cursor: pointer;
}
.btn-quiet:hover { background: var(--surface-2); }
.site-nav { border-top: 1px solid var(--rule); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .2rem; margin: 0 auto; padding-block: .35rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .6rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.site-nav a:hover { background: var(--surface-2); text-decoration: underline; }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.site-nav .nav-report a { border: 1px solid var(--rule-strong); }
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .brand-sub { display: none; }
  html.js .nav-toggle { display: inline-flex; }
  html.js .site-nav:not(.open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: flex; width: 100%; }
  .theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 380px) { .brand-name { font-size: 1rem; } .brand-mark { width: 1.6rem; height: 1.6rem; } }

/* vote countdown in the header (filled by site.js; hidden without JavaScript). Wide screens: beside the
   theme toggle. Small screens: its own full-width line under the brand and the Menu button. */
.countdown {
  margin-left: auto; display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center;
  min-height: 44px; padding: .3rem .75rem; border-radius: var(--radius-sm); line-height: 1.15; text-align: right;
  background: var(--vote-bg); color: var(--vote-ink); text-decoration: none;
}
.countdown[hidden] { display: none; }
.countdown:hover .cd-time { text-decoration: underline; }
.cd-label { font-size: .75rem; }
.cd-time { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 899px) {
  .header-inner { flex-wrap: wrap; row-gap: .5rem; }
  .brand { flex: 1 1 0; min-width: 0; } /* brand and buttons share the first line; only the countdown wraps */
  .countdown {
    order: 3; flex: 1 0 100%; margin-left: 0; min-height: 0; padding: .4rem .75rem;
    flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .4rem; text-align: center;
  }
  .cd-label { font-size: .9rem; }
}
@media print { .countdown { display: none !important; } }

/* ---------------------------------------------------------------- page heads, hero */
.hero, .page-head { background: var(--surface); border-bottom: 1px solid var(--rule); padding-block: 2rem 1.6rem; }
.hero { padding-block: 2.4rem 2rem; }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .4rem; }
.dek { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 0; }
.page-head .dek + p { margin-top: 1rem; }
.lede { font-size: 1.12rem; }
.draft-banner { margin: 1rem 0 0; padding: .6rem .9rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: .9rem; }

/* ---------------------------------------------------------------- buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem;
  font: inherit; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer;
  color: var(--on-accent); background: var(--accent); border: 2px solid var(--accent); border-radius: var(--radius-sm);
}
.btn:hover { filter: brightness(1.08); text-decoration: underline; }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--rule-strong); font-weight: 600; }
.btn-secondary:hover { background: var(--surface-2); filter: none; }
.btn-small { padding: .4rem .8rem; font-size: .92rem; }
.btn-disabled { color: var(--ink-2); background: var(--surface-2); border: 2px dashed var(--rule-strong); font-weight: 600; cursor: default; }
.btn-chip {
  min-height: 44px; padding: .35rem .9rem; font: inherit; font-size: .92rem; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px;
}
.btn-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.ext::after { content: " \2197"; font-size: .85em; }

/* ---------------------------------------------------------------- vote facts */
.vote-facts { background: var(--vote-bg); color: var(--vote-ink); padding-block: 1.6rem; border-bottom: 3px solid var(--accent); }
.vote-facts a { color: var(--vote-ink); }
.vote-facts h2 { margin-top: 0; color: var(--vote-ink); }
.vote-status { font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; }
.vote-status:empty { display: none; }
.vote-grid { display: grid; gap: .8rem; margin-bottom: 1rem; }
@media (min-width: 760px) { .vote-grid { grid-template-columns: 1fr 1.4fr 1.2fr; } }
.vote-item { background: var(--vote-tile); border: 1px solid var(--vote-line); border-radius: var(--radius); padding: .8rem 1rem; }
.vote-item dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: .95; }
.vote-item dd { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vote-warning { font-size: 1.25rem; font-family: var(--font-head); margin-bottom: .4rem; }
.vote-meetings { margin-bottom: .4rem; }
.vote-source { opacity: .95; margin: 0; }
.vote-ev a { margin-right: .6rem; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- cards and explore */
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.2rem 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-kicker { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-2); margin: 0 0 .2rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.3rem; }
.card-stat { margin-bottom: .6rem; }
.card-stat .stat-num { display: block; font-family: var(--font-body); letter-spacing: -0.01em; font-size: 2.1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.card-stat .stat-label { color: var(--ink-2); font-size: .95rem; }
.card-body { flex: 1 1 auto; }
.card-cta { margin-bottom: .4rem; }
.card-more a { margin-right: .7rem; display: inline-flex; align-items: center; min-height: 44px; }
.ask { border-left: 4px solid var(--accent-2); padding-left: .9rem; }
.report-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: .8rem; }
.stats li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .8rem 1rem; }
.stats .stat-num { display: block; font-family: var(--font-body); font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats .stat-label { color: var(--ink-2); font-size: .95rem; }
.explore { list-style: none; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.explore a { display: block; height: 100%; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.explore a:hover { border-color: var(--accent); }
.explore .ex-title { display: block; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: .18em; }
.explore .ex-desc { display: block; color: var(--ink-2); font-size: .95rem; }

/* ---------------------------------------------------------------- callouts, quotes, legends, flags */
.callout { background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--accent); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 1rem 0; }
.callout-note { border-left-color: var(--accent-2); background: var(--surface-2); }
.callout p:last-child { margin-bottom: 0; }
.howto { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .2rem 1.1rem; margin: 1.4rem 0; }
.howto > summary, details.more > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details.more { margin: .4rem 0; }
details.more > summary { min-height: 44px; font-weight: 600; color: var(--link); }
.quote { margin: .6rem 0; padding: .6rem 1rem; background: var(--surface-2); border-left: 4px solid var(--rule-strong); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-doc); font-size: 1.02rem; }
.quote p { margin: 0; }
.quote p::before { content: "\201C"; } .quote p::after { content: "\201D"; }
.quote footer { font-family: var(--font-body); font-size: .88rem; color: var(--ink-2); margin-top: .35rem; }
.quote-secondary { border-left-style: dashed; }
.legend { display: grid; gap: .5rem; margin: .8rem 0 1rem; }
.legend-item { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: .8rem; align-items: start; }
.legend-item dt { margin: 0; } .legend-item dd { margin: 0; }
@media (max-width: 520px) { .legend-item { grid-template-columns: 1fr; gap: .2rem; } }
.flag { display: inline-block; font-size: .82rem; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; margin: 0 .3rem .2rem 0; vertical-align: .1em; }
.flag-missing { background: var(--amber-bg); color: var(--amber-ink); }
.flag-hosted { background: var(--ok-bg); color: var(--ok-ink); }
.flag-link { background: var(--info-bg); color: var(--info-ink); }
.flag-not-hosted { background: var(--muted-bg); color: var(--muted-ink); }
p.flag { display: block; font-weight: 600; padding: .4rem .6rem; }
.opinion-label { font-weight: 700; color: var(--accent-2); }
.disclaimer { font-weight: 700; border: 2px solid var(--rule-strong); border-radius: var(--radius-sm); padding: .6rem .9rem; background: var(--surface-2); }

/* statuses, impacts, verdicts, badges */
.status, .impact, .verdict, .badge, .markup {
  display: inline-block; font-size: .85rem; font-weight: 700; line-height: 1.3; padding: .15rem .55rem; border-radius: 4px; white-space: nowrap;
}
.status-verified { background: var(--ok-bg); color: var(--ok-ink); }
.status-corrected { background: var(--warn-bg); color: var(--warn-ink); }
.status-soften { background: var(--info-bg); color: var(--info-ink); }
.status-unverifiable { background: var(--muted-bg); color: var(--muted-ink); }
.status-contradicted { background: var(--bad-bg); color: var(--bad-ink); }
.impact-worse { background: var(--bad-bg); color: var(--bad-ink); }
.impact-unclear { background: var(--amber-bg); color: var(--amber-ink); }
.impact-neutral { background: var(--slate-bg); color: var(--slate-ink); }
.impact-better { background: var(--ok-bg); color: var(--ok-ink); }
.markup-unmarked { background: var(--surface); color: var(--ink); border: 1px solid var(--ink); }
.markup-marked { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--rule-strong); }
.verdict { white-space: normal; }
.v-bad { background: var(--bad-bg); color: var(--bad-ink); }
.v-mixed { background: var(--amber-bg); color: var(--amber-ink); }
.v-good { background: var(--ok-bg); color: var(--ok-ink); }
.badge-in-full { background: var(--ok-bg); color: var(--ok-ink); }
.badge-partly { background: var(--amber-bg); color: var(--amber-ink); }
.badge-left-out { background: var(--bad-bg); color: var(--bad-ink); }
.badge-protect { background: var(--slate-bg); color: var(--slate-ink); white-space: normal; }

/* ---------------------------------------------------------------- filters and results */
.filters { display: grid; gap: .8rem 1rem; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; margin: 1.2rem 0 .6rem; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-wide, .filter-actions, .field-check { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.field-check { flex-direction: row; align-items: center; gap: .6rem; }
.field-check label { font-weight: 600; }
input[type="search"], input[type="number"], input[type="text"], select {
  font: inherit; font-size: 1rem; min-height: 44px; width: 100%; padding: .45rem .65rem;
  color: var(--ink); background: var(--bg); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
}
input[type="checkbox"], input[type="radio"] { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; accent-color: var(--accent); margin: 0; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.result-count { font-weight: 700; margin: .4rem 0 1rem; min-height: 1.6em; }
.more-wrap { text-align: center; margin: 1.4rem 0; }
.year-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1.4rem; }
.year-link { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .9rem; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--surface); }
.year-link:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------- change explorer */
.change-list { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.change { min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1.1rem; scroll-margin-top: 1rem; }
.change:target, .change.is-target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.change-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.change-id { font-weight: 700; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.change-title { margin: .2rem 0 .3rem; font-size: 1.15rem; flex: 1 1 100%; }
.change-meta { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; margin-bottom: .5rem; font-size: .92rem; color: var(--ink-2); }
.change-meta .pages { font-variant-numeric: tabular-nums; }
.toggle-compare { margin-top: .2rem; }
.compare { margin-top: .9rem; border-top: 1px solid var(--rule); padding-top: .9rem; }
.compare-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.pane { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .8rem 1rem; min-width: 0; }
.pane h3 { margin: 0 0 .1rem; font-size: 1rem; font-family: var(--font-body); }
/* screen readers: announce where highlighted text starts and ends */
.diff-del::before, .diff-del::after, .diff-ins::before, .diff-ins::after {
  clip-path: inset(100%); clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap;
}
.diff-del::before { content: " [removed text starts] "; } .diff-del::after { content: " [removed text ends] "; }
.diff-ins::before { content: " [added text starts] "; } .diff-ins::after { content: " [added text ends] "; }
.pane .pane-cite { font-size: .88rem; color: var(--ink-2); margin-bottom: .6rem; }
.pane-text { font-family: var(--font-doc); font-size: 1.02rem; line-height: 1.7; }
.pane-text p { margin: 0 0 .7em; }
.diff-del, del.diff-del { background: var(--del-bg); color: var(--del-ink); text-decoration: line-through; text-decoration-thickness: 1.5px; border-radius: 2px; padding: 0 .08em; }
.diff-ins, ins.diff-ins { background: var(--ins-bg); color: var(--ins-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .15em; border-radius: 2px; padding: 0 .08em; }
.rl-ins { background: var(--ins-bg); color: var(--ins-ink); text-decoration: underline; }
.rl-del { background: var(--del-bg); color: var(--del-ink); text-decoration: line-through; }
.diff-legend { font-size: .9rem; color: var(--ink-2); margin: .2rem 0 .8rem; }
.change-facts { display: grid; gap: .3rem 1rem; grid-template-columns: 1fr; margin: .9rem 0 .4rem; }
@media (min-width: 860px) { .change-facts { grid-template-columns: max-content 1fr; } }
.change-facts dt { font-weight: 700; } .change-facts dd { margin: 0 0 .4rem; }
.evidence-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .2rem 0; }
.evidence-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- claims */
.status-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.status-summary button { display: inline-flex; align-items: center; gap: .4rem; }
.claim-list { list-style: none; padding: 0; display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
.claim { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1.1rem; scroll-margin-top: 1rem; }
.claim.is-target, .claim:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.claim-head { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; font-size: .92rem; color: var(--ink-2); margin-bottom: .4rem; }
.claim-id { font-weight: 700; color: var(--ink); font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }
.claim-text { font-size: 1.05rem; margin-bottom: .6rem; }
.claim-text .lbl, .claim-row .lbl { font-weight: 700; color: var(--ink-2); font-size: .9rem; display: block; }
.claim-row { margin: .5rem 0; }
.claim-correction { background: var(--warn-bg); color: var(--ink); border-radius: var(--radius-sm); padding: .6rem .8rem; }
:root[data-theme="dark"] .claim-correction { color: var(--warn-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .claim-correction { color: var(--warn-ink); } }
.claim-source { font-size: .95rem; }

/* ---------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); }
.data-table thead th { background: var(--surface-2); font-size: .9rem; position: sticky; top: 0; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { font-weight: 700; }
.data-table tr:target, .data-table tr.is-target { background: var(--accent-soft); }
.sec-title { display: block; font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.score-table td p { margin-bottom: .4rem; }
@media (max-width: 859px) {
  .table-scroll { overflow: visible; border: 0; background: transparent; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: .9rem; padding: .4rem .2rem; }
  table.stack th, table.stack td { border: 0; padding: .45rem .8rem; }
  table.stack [data-label]::before { content: attr(data-label); display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: .15rem; }
}
.sort-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 1rem 0 .4rem; }
.sort-label { font-weight: 700; margin-right: .2rem; }

/* ---------------------------------------------------------------- scorecard */
.score-summary { margin: 1.4rem 0; }
.score-headline { font-size: 1.15rem; }
.score-bar { display: flex; width: 100%; min-height: 3rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--rule-strong); margin: .6rem 0 .8rem; }
.score-seg { display: flex; align-items: center; justify-content: center; text-align: center; padding: .4rem; font-weight: 700; font-size: .92rem; min-width: 6.5rem; }
.score-in-full { background: var(--ok-bg); color: var(--ok-ink); }
.score-partly { background: var(--amber-bg); color: var(--amber-ink); }
.score-left-out { background: var(--bad-bg); color: var(--bad-ink); }
@media (max-width: 520px) { .score-bar { flex-direction: column; } .score-seg { min-height: 2.6rem; } }

/* ---------------------------------------------------------------- timeline */
.band { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.4rem 0; }
.band-cap { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: .8rem; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; margin-bottom: .7rem; }
.band-label { flex: 1 1 100%; font-weight: 600; font-size: .95rem; }
.band-bar { display: inline-flex; align-items: center; min-height: 2rem; border-radius: 4px; }
.band-bar-board { background: var(--accent); color: var(--on-accent); padding-inline: .6rem; }
.band-bar-owners { background: var(--accent-2); min-width: 4px; }
.band-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.band-value-out { color: var(--ink); }
.band-note { margin: .2rem 0 0; color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.tl-item { display: grid; grid-template-columns: 1fr; gap: .2rem 1.2rem; padding: 1rem 0 1rem 1.2rem; border-left: 3px solid var(--rule-strong); position: relative; scroll-margin-top: 1rem; }
.tl-item::before { content: ""; position: absolute; left: -.6rem; top: 1.35rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.tl-item[data-missing="1"]::before { background: var(--surface); border: 3px solid var(--rule-strong); }
.tl-item:target { background: var(--accent-soft); }
@media (min-width: 860px) { .tl-item { grid-template-columns: 11rem 1fr; } }
.tl-date { font-weight: 700; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.tl-kind { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); font-weight: 700; margin: 0 0 .2rem; }
.tl-label { margin: 0 0 .4rem; font-size: 1.12rem; }
.tl-source { color: var(--ink-2); margin: .3rem 0 0; }
.tl-text { color: var(--ink-2); }

/* ---------------------------------------------------------------- board, questions, corrections, sources, downloads */
.questions { padding-left: 1.4rem; display: grid; gap: 1rem; }
.q-item { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1.1rem; }
.q-item::marker { font-weight: 700; }
.q-topic { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--accent-2); margin-bottom: .2rem; }
.q-text { font-size: 1.1rem; font-family: var(--font-head); }
.q-ev a { margin-right: .5rem; display: inline-flex; align-items: center; min-height: 44px; }
.copy-status { font-weight: 700; margin-left: .6rem; }
.corr-group { margin: 2rem 0; }
.corr-list { padding-left: 1.4rem; display: grid; gap: .8rem; }
.corr-item { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .8rem 1rem; }
.corr-topic { margin-bottom: .2rem; }
.corr-id { color: var(--ink-2); font-weight: 700; margin-right: .3rem; font-variant-numeric: lining-nums; }
.corr-what { color: var(--ink-2); }
.corr-before, .corr-after { padding: .4rem .7rem; border-radius: var(--radius-sm); margin-bottom: .4rem; }
.corr-before { background: var(--del-bg); color: var(--del-ink); }
.corr-after { background: var(--ins-bg); color: var(--ins-ink); }
.corr-label { font-weight: 700; }
.callout-invite { border-left-color: var(--accent-2); }
.src-group { margin: 2rem 0; }
.src-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.src-item { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .8rem 1rem; scroll-margin-top: 1rem; }
.src-title { margin: 0 0 .3rem; font-size: 1.08rem; font-family: var(--font-body); }
.src-meta { color: var(--ink-2); margin-bottom: .3rem; }
.src-note { margin-bottom: .5rem; }
.src-actions { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.dl-list { list-style: none; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.dl-item { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1.1rem; }
.dl-item .dl-title { margin: 0 0 .3rem; font-size: 1.12rem; font-family: var(--font-body); }

/* ---------------------------------------------------------------- tools */
.tool-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tool { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1.6rem 0; scroll-margin-top: 1rem; }
.tool h2 { margin-top: .1rem; }
.tool-label { display: inline-block; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .55rem; border-radius: 4px; background: var(--amber-bg); color: var(--amber-ink); margin: 0; }
.tool-form fieldset { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .6rem 1rem .8rem; margin: 0 0 1rem; }
.tool-form legend { font-weight: 700; padding: 0 .3rem; }
.radio { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.radio label { cursor: pointer; }
.tool-output { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .9rem 1rem; margin: 1rem 0; }
.rf-row { border-top: 1px solid var(--rule); padding-top: .7rem; margin-top: .7rem; }
.rf-row h3 { margin: 0 0 .1rem; font-size: 1.06rem; font-family: var(--font-body); }
.fc-controls { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 1rem 0; }
.fc-controls label { font-weight: 700; display: block; }
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--accent); }
.fc-stops { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.fc-summary { font-weight: 600; margin: .4rem 0 0; }
.fc-when { display: block; font-variant-numeric: tabular-nums; }
.fc-title { display: block; font-weight: 400; color: var(--ink-2); font-size: .92rem; }
.fc-table tr.is-reached > * { background: var(--accent-soft); }
.fc-table tr.is-current > * { box-shadow: inset 0 3px 0 var(--accent); }
.fc-quote { font-family: var(--font-doc); color: var(--ink-2); margin-top: .4rem; }
.rc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .rc-grid { grid-template-columns: 1.2fr 1fr; } }
.rc-total { font-family: var(--font-body); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }
.rc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: .6rem; }
.rc-table th, .rc-table td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--rule); }
.rc-table td:last-child, .rc-table th:last-child { text-align: right; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 3rem; background: var(--surface); border-top: 1px solid var(--rule); padding-block: 1.6rem 2rem; }
.footer-line { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; }
.footer-meta, .footer-links { margin-bottom: .5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-small { color: var(--ink-2); font-size: .88rem; margin: .4rem 0 0; }
.sep { color: var(--ink-2); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .btn-chip, .site-nav a, .explore a { transition: background-color .15s ease, border-color .15s ease; }
}

/* ---------------------------------------------------------------- print */
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f3f3f3; --ink: #000; --ink-2: #333; --rule: #bbb; --accent: #0f4c5c; --on-accent: #fff; }
  html { font-size: 11.5pt; }
  body { background: #fff; color: #000; }
  .site-header .header-tools, .site-nav, .skip-link, .filters, .filter-actions, .sort-bar, .fc-controls, .tool-nav,
  .js-only, .toggle-compare, .more-wrap, .year-nav, button, .btn-chip, noscript { display: none !important; }
  .hero, .page-head, .site-header { border: 0; padding-block: .4rem; }
  .vote-facts { background: #fff !important; color: #000 !important; border: 2px solid #000; padding: .6rem; }
  .vote-facts a, .vote-facts h2 { color: #000 !important; }
  .vote-item { border-color: #000; background: #fff; }
  .card, .change, .claim, .tool, .src-item, .q-item, .corr-item, .dl-item, .tl-item, table.stack tr { break-inside: avoid; box-shadow: none; }
  .compare[hidden], details > *:not(summary) { display: block !important; }
  details > summary { list-style: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
  a[href^="docs/"]::after, a[href^="claims.html"]::after, a[href^="changes.html"]::after, a[href^="downloads/"]::after {
    content: " (apnc47f.com/" attr(href) ")"; font-size: .85em; word-break: break-all;
  }
  .ext::after { content: " (" attr(href) ")"; }
  .table-scroll { overflow: visible; border: 0; }
  .data-table thead th { position: static; }
  .site-footer { border-top: 1px solid #000; margin-top: 1rem; }
  .diff-del, .rl-del { background: none; text-decoration: line-through; }
  .diff-ins, .rl-ins { background: none; text-decoration: underline; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* QA tap targets (main thread, 2026-10-18): the whole radio row responds to a tap, and statute links in tables and tools get a 44px hit area without moving the layout. */
.radio { position: relative; }
.radio label { min-height: 44px; display: inline-flex; align-items: center; }
.radio label::before { content: ""; position: absolute; inset: 0; }
.data-table a.ext, .tool a.ext { display: inline-block; padding: .7rem 0; margin: -.7rem 0; }
.field-check { position: relative; min-height: 44px; }
.field-check label { min-height: 44px; display: inline-flex; align-items: center; }
.field-check label::before { content: ""; position: absolute; inset: 0; }
