:root {
  /* Style guide v0.2: neutrals */
  --ink: #141310; --ink-2: #3a3731; --muted: #625e55; --faint: #8a857b;
  --rule: #d6d0c3; --rule-soft: #ebe6da; --vellum: #ebe6da; --paper: #f5f2ea; --surface: #ffffff;
  /* Party: blue and red share lightness and chroma so neither reads louder. Change one, change both. */
  --dem: oklch(0.48 0.15 258); --dem-deep: oklch(0.36 0.12 258); --dem-mid: oklch(0.72 0.1 258); --dem-tint: oklch(0.93 0.035 258);
  --rep: oklch(0.48 0.15 27);  --rep-deep: oklch(0.36 0.12 27);  --rep-mid: oklch(0.72 0.1 27);  --rep-tint: oklch(0.93 0.035 27);
  --ind: oklch(0.48 0.08 150); --ind-deep: oklch(0.36 0.07 150); --ind-mid: oklch(0.72 0.06 150); --ind-tint: oklch(0.93 0.025 150);
  /* Former accent, now ink: party color never marks buttons, links or states. */
  --brass: var(--ink); --brass-soft: var(--vellum);
  --focus: var(--ink);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 2px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); font-feature-settings: "tnum" 1; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font: 500 clamp(2rem, 4.5vw, 3rem)/1.08 var(--serif); letter-spacing: -.01em; }
h2 { font: 500 1.45rem/1.2 var(--serif); }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--rule-soft); padding: .1em .35em; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow-top { padding-top: 40px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
header.site { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 1.35rem/1 var(--serif); letter-spacing: -.01em; }
.star { width: 20px; height: 20px; fill: var(--brass); flex: none; }
.topsearch { flex: 1; max-width: 340px; position: relative; }
.topsearch input { width: 100%; }
nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: .94rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.acct { display: inline-flex; align-items: center; gap: 6px; }

input[type=search], input[type=email], input[type=password], input:not([type]), select {
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 8px 12px; min-height: 40px;
}
input:focus, select:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .95rem/1 var(--sans); padding: 0 18px; min-height: 42px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--r); text-decoration: none; cursor: pointer; }
.btn:hover { background: #26344a; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.text-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pro-tag { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .02em; color: var(--brass); background: var(--brass-soft); border-radius: 3px; padding: 3px 5px; }
.flash { margin: 16px 0 0; padding: 12px 16px; background: var(--brass-soft); border-radius: var(--r); }

/* Party chips */
.chip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 700 .72rem/1 var(--sans); flex: none; }
.chip.dem { background: var(--dem); } .chip.rep { background: var(--rep); } .chip.ind { background: var(--ind); }

.photo { position: relative; display: inline-grid; place-items: center; background: #dfe4ea; color: var(--muted); font: 500 1.1rem var(--serif); overflow: hidden; flex: none; border-radius: 4px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.sm { width: 44px; height: 54px; font-size: .95rem; }
.photo.md { width: 72px; height: 88px; }
.photo.lg { width: 132px; height: 162px; font-size: 2rem; }

.mlink { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.mlink .mname { font-weight: 500; }
.mlink:hover .mname { text-decoration: underline; }
.mlink .mseat { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* Home */
.hero { background: var(--surface); border-bottom: 1px solid var(--rule); }
.hero-in { padding-top: 72px; padding-bottom: 56px; max-width: 860px; margin-left: max(24px, calc((100vw - 1160px) / 2 + 24px)); padding-left: 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 14ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.lede-sm { color: var(--muted); max-width: 62ch; }
.bigsearch { display: flex; gap: 8px; margin: 28px 0 12px; max-width: 640px; position: relative; }
.bigsearch input { flex: 1; min-height: 52px; font-size: 1.05rem; }
.bigsearch .btn { min-height: 52px; }
.bigsearch.inline { margin: 16px 0 28px; }
.chambers { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px 0 8px; }
.chambers h2 a { text-decoration: none; }
.seatbar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; gap: 2px; }
.seatbar .dem { background: var(--dem); } .seatbar .rep { background: var(--rep); } .seatbar .ind { background: var(--ind); }
.seatkey { display: flex; gap: 18px; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.seatkey i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.seatkey i.dem { background: var(--dem); } .seatkey i.rep { background: var(--rep); } .seatkey i.ind { background: var(--ind); }
.leaders, .states { padding-top: 40px; }
.leader-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.leader h3 { font-size: .95rem; min-height: 2.4em; }
.leader ol, .allies { list-style: none; margin: 0; padding: 0; }
.leader li, .allies li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--rule-soft); }
.leader .mseat { display: none; }
.rate { font-weight: 600; white-space: nowrap; }
.state-grid { list-style: none; padding: 0; margin: 0 0 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.state-grid a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--r); text-decoration: none; font-size: .9rem; }
.state-grid a:hover { border-color: var(--ink); }
.state-grid b { font-weight: 600; width: 2.2ch; }
.state-grid span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Section heads */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-head h1, .sec-head h2 { margin-bottom: 4px; }
.sec-head > a { font-size: .9rem; }
.sec-head > p { flex-basis: 100%; margin: 0; font-size: .9rem; }

/* Profile */
.p-head { background: var(--surface); border-bottom: 1px solid var(--rule); }
.p-head-in { display: flex; gap: 28px; align-items: flex-end; padding-top: 40px; padding-bottom: 32px; }
.p-seat { color: var(--muted); margin-bottom: 6px; }
.p-id h1 { margin-bottom: 10px; }
.p-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ink); }
.p-meta .sep { width: 1px; height: 14px; background: var(--rule); margin: 0 6px; }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.p-actions form { margin: 0; }

.measures { padding: 36px 0 12px; }
.measure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; margin-top: 12px; }
.measure { background: var(--surface); padding: 20px 22px 14px; }
.m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.m-head h3 { margin: 0; }
.m-def { font-size: .8rem; color: var(--muted); }
.m-value { font: 500 2.6rem/1.1 var(--serif); margin: 6px 0 4px; letter-spacing: -.01em; }
.m-note { font-size: .9rem; color: var(--muted); min-height: 2.9em; margin-bottom: 8px; }
.m-pctl { color: var(--ink); }
.strip { display: block; width: 100%; height: auto; overflow: visible; }
.strip .axis { stroke: var(--rule); stroke-width: 1; }
.strip .t { stroke-width: 1.4; stroke-opacity: .32; }
.strip .t.dem { stroke: var(--dem); } .strip .t.rep { stroke: var(--rep); } .strip .t.ind { stroke: var(--ind); }
.strip .me { stroke: var(--ink); stroke-width: 2.5; }
.strip .me-dot { fill: var(--brass); stroke: var(--ink); stroke-width: 1.5; }
.strip .lab { font: 11px var(--sans); fill: var(--muted); }

.p-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 32px 0 72px; }
.p-main > section { padding-bottom: 40px; }
.p-side > section { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.p-side h2 { font: 600 1rem var(--sans); margin-bottom: 10px; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.committees, .plain { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.committees > li { padding: 6px 0; }
.committees ul { list-style: none; padding: 4px 0 0 14px; margin: 0; border-left: 1px solid var(--rule); color: var(--muted); font-size: .86rem; }
.committees ul li { padding: 2px 0; }
.role { font-size: .78rem; font-weight: 600; color: var(--brass); }
.plain li { padding: 3px 0; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.data thead th { font-weight: 600; font-size: .82rem; color: var(--muted); background: #f8f9fb; border-bottom: 1px solid var(--rule); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.votes .q { display: block; font-weight: 500; }
table.votes .d, table.data .d { display: block; color: var(--muted); font-size: .85rem; max-width: 60ch; }
.tag { display: inline-block; margin-top: 4px; font-size: .75rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; }
.vote { display: inline-block; font-weight: 600; font-size: .82rem; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.v-Y { background: #e3ede4; color: #24502b; } .v-N { background: #f3e1de; color: #7a2c20; }
.v-P { background: #ebeef2; color: var(--muted); } .v-X { background: transparent; color: var(--muted); border: 1px dashed var(--rule); }
.ybar { display: inline-block; width: 90px; height: 8px; background: var(--rule-soft); border-radius: 2px; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.ybar span { display: block; height: 100%; background: var(--ink); }
.lock-cell { font-size: .75rem; color: var(--brass); font-weight: 600; }
.ally-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ally-cols .span2 { grid-column: span 2; }
.ally-cols .mseat { display: none; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; margin: 12px 0 24px; }
.figures div { background: var(--surface); padding: 14px 16px; }
.figures dt { font-size: .82rem; color: var(--muted); }
.figures dd { margin: 4px 0 0; font: 500 1.6rem/1.1 var(--serif); }
.employers { padding: 0; margin: 0 0 16px; list-style: none; counter-reset: e; }
.employers li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--rule-soft); font-size: .92rem; }

.locked { border: 1px dashed #cdb67a; background: #fcf9f1; border-radius: var(--r); padding: 18px 20px; margin: 8px 0 16px; }
.locked-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.locked-head svg { width: 14px; height: 14px; fill: var(--brass); }
.locked p { color: var(--muted); font-size: .92rem; max-width: 60ch; }
.locked .text-link { margin-left: 12px; font-size: .92rem; }
.empty-state { margin: 32px 0; padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }

/* Lists & forms */
.results { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 6px; }
.results.two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.results a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--r); text-decoration: none; }
.results a:hover { border-color: var(--ink); }
.results a > span:not(.photo):not(.chip) { flex: 1; display: flex; flex-direction: column; }
.results .with-action { display: flex; align-items: center; gap: 12px; }
.results .with-action a { flex: 1; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.crumbs { font-size: .9rem; margin-bottom: 6px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: .92rem; }
.auth > * { max-width: 460px; }
.auth form { display: grid; gap: 16px; margin: 20px 0; }
.auth form.inline-form { display: block; margin: 12px 0; }
.auth label { display: grid; gap: 6px; font-weight: 500; }
.hint { font-weight: 400; font-size: .85rem; color: var(--muted); }
.error { background: #f6e2de; color: #6f271c; padding: 10px 14px; border-radius: var(--r); }
.h2h { font-size: 1.1rem; max-width: 60ch; }
.h2h b { font: 500 1.6rem var(--serif); }
table.compare th[scope=row] { width: 220px; color: var(--muted); font-weight: 500; }
.watch-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; }

.pricing .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; max-width: 900px; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; }
.plan.featured { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.plan h2 { display: flex; align-items: center; gap: 8px; }
.price { font: 500 2rem var(--serif); margin-bottom: 16px; }
.price span { display: block; font: 400 .88rem var(--sans); color: var(--muted); }
.plan ul { padding-left: 18px; margin: 0 0 24px; }
.plan li { margin: 6px 0; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose table { margin-top: 12px; }

/* Typeahead */
.ta { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 8px 24px rgba(23, 33, 48, .12); list-style: none; margin: 0; padding: 4px; z-index: 20; }
.ta a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; text-decoration: none; }
.ta a[aria-selected=true], .ta a:hover { background: var(--paper); }
.ta small { color: var(--muted); display: block; }

footer.site { border-top: 1px solid var(--rule); background: var(--surface); }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 36px; padding-bottom: 36px; font-size: .92rem; }
.foot p { max-width: 52ch; margin-top: 10px; }

@media (max-width: 960px) {
  .leader-grid { grid-template-columns: 1fr 1fr; }
  .p-body { grid-template-columns: 1fr; }
  .ally-cols { grid-template-columns: 1fr; } .ally-cols .span2 { grid-column: auto; }
  .watch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .bar { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .topsearch { order: 3; max-width: none; flex-basis: 100%; }
  nav { gap: 14px; font-size: .88rem; flex-wrap: wrap; }
  nav a[href="/compare"], nav a[href="/methodology"] { display: none; }
  .hero-in { margin-left: 16px; margin-right: 16px; padding-top: 44px; }
  .chambers, .measure-grid, .pricing .plans, .foot { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .p-head-in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .photo.lg { width: 96px; height: 118px; }
  .hide-sm { display: none; }
  table.data th, table.data td { padding: 8px; }
  .bigsearch { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

h2.gap { margin-top: 36px; }

/* Committees */
.committee h1 { max-width: 24ch; }
.c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.c-meta .sep { width: 1px; height: 14px; background: var(--rule); margin: 0 4px; }
.c-you { display: flex; gap: 10px; align-items: center; background: var(--brass-soft); border-radius: var(--r); padding: 10px 14px; max-width: 760px; }
.leadership { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.leader-card { display: flex; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--ind); border-radius: var(--r); text-decoration: none; min-width: 280px; }
.leader-card.dem { border-left-color: var(--dem); } .leader-card.rep { border-left-color: var(--rep); }
.leader-card:hover { border-color: var(--ink); }
.leader-card > span { display: flex; flex-direction: column; gap: 2px; }
.leader-card b { font: 500 1.2rem/1.2 var(--serif); }
.leader-card .muted { font-size: .85rem; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.sides h2 { display: flex; align-items: baseline; gap: 10px; }
.count { font: 500 .85rem var(--sans); color: var(--muted); }
.roster { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.roster li { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 0; border-top: 1px solid var(--rule-soft); }
.roster li:first-child { border-top: 0; }
.roster li.is-you { background: var(--brass-soft); }
.roster a { flex: 1; display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 12px; text-decoration: none; min-width: 0; }
.roster a:hover b { text-decoration: underline; }
.roster .photo.sm { width: 36px; height: 44px; font-size: .8rem; }
.r-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.r-name b { font-weight: 500; }
.r-name .muted { font-size: .82rem; }
.roster .role { white-space: nowrap; }
.subs { margin-top: 36px; }
.sub-list { list-style: none; padding: 0; margin: 0 0 32px; columns: 2; column-gap: 32px; }
.sub-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule-soft); }
.sub-list .muted { font-size: .85rem; white-space: nowrap; }
.committees a { text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.committees ul a { color: var(--muted); }
@media (max-width: 720px) {
  .sides { grid-template-columns: 1fr; }
  .sub-list { columns: 1; }
  .leader-card { min-width: 0; width: 100%; }
}
.c-source { margin: 28px 0 56px; }

/* Party split bar */
.composition { margin: 24px 0 4px; max-width: 760px; }
.split { position: relative; display: flex; gap: 2px; height: 28px; border-radius: 4px; overflow: visible; }
.split > span { display: flex; align-items: center; color: #fff; font: 600 .85rem var(--sans); padding: 0 10px; min-width: 0; }
.split > span:first-child { border-radius: 4px 0 0 4px; }
.split > span:last-of-type { border-radius: 0 4px 4px 0; justify-content: flex-end; }
.split .rep { background: var(--rep); } .split .dem { background: var(--dem); } .split .ind { background: var(--ind); }
.split .mirror { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.split.compact { height: 10px; width: 140px; flex: none; }
.split.compact .mirror { top: -3px; bottom: -3px; }
.split-note { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--muted); margin: 10px 0 6px; }
.split-note .k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.split-note .k.rep { background: var(--rep); } .split-note .k.dem { background: var(--dem); }
.split-note .k.mirror { width: 2px; height: 12px; background: var(--ink); border-radius: 1px; }
.ci { align-items: center; }
.ci-split { display: flex; align-items: center; gap: 10px; flex: none; }
.ci-count { font-size: .85rem; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; color: var(--muted); }
.ci-count .r { color: var(--rep); font-weight: 600; } .ci-count .d { color: var(--dem); font-weight: 600; }
@media (max-width: 720px) { .split.compact { width: 90px; } }

/* Elections */
.el-badge { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 3px; background: var(--brass-soft); color: var(--brass); font-size: .78rem; font-weight: 600; text-decoration: none; vertical-align: 1px; }
.el-badge:hover { text-decoration: underline; }
.tag-open { display: inline-block; padding: 1px 6px; border-radius: 3px; background: var(--brass-soft); color: var(--brass); font-size: .78rem; font-weight: 600; }
.note { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--brass); border-radius: var(--r); padding: 12px 16px; max-width: 760px; color: var(--muted); }
.elections section, .race section { margin-top: 32px; }
.el-figures { max-width: 760px; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .88rem; margin: 0 0 12px; }
.el-state h3 { margin: 24px 0 8px; }
table.races td { vertical-align: middle; }
table.races .mlink .mseat { display: none; }
.holder-card { display: flex; gap: 16px; align-items: center; margin: 20px 0 8px; padding: 14px 18px 14px 14px; max-width: 560px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--ind); border-radius: var(--r); text-decoration: none; }
.holder-card.dem { border-left-color: var(--dem); } .holder-card.rep { border-left-color: var(--rep); }
.holder-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.holder-card b { font: 500 1.35rem/1.2 var(--serif); }
.holder-card:hover b { text-decoration: underline; }
table.cands tr.is-you td { background: var(--brass-soft); }
.el-panel b { font-weight: 600; }
.opp { list-style: none; padding: 0; margin: 0 0 8px; }
.opp li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--rule-soft); font-size: .92rem; }
.opp .mseat { display: none; }
.opp.wide li { display: grid; grid-template-columns: 1fr auto 90px; }
.opp.wide .num { text-align: right; font-variant-numeric: tabular-nums; }
.resume { list-style: none; padding: 0; margin: 0 0 16px; }
.resume li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--rule-soft); }
.resume .r-what { display: flex; flex-direction: column; }
.resume .r-what b { font-weight: 500; }
.resume .r-what .muted { font-size: .85rem; }
.resume .r-when { font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.resume li > a { grid-column: 1 / -1; }
.resume.compact li { font-size: .92rem; padding: 6px 0; }
.dd-small { font: 500 1.05rem/1.4 var(--sans) !important; }
.candidate .photo.lg { background: #e4e7ec; }
.pid { font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ballot-tag { display: inline-block; margin: 6px 0 0; padding: 2px 8px; border-radius: 3px; background: var(--brass-soft); color: var(--brass); font-size: .78rem; font-weight: 600; }
.ballot-tag.off { background: transparent; color: var(--muted, #777); border: 1px solid currentColor; }

/* ===== Style guide v0.2 ===== */
body { font: 16px/1.6 var(--sans); }
h1 { font: 700 clamp(2rem, 4vw, 2.5rem)/1.1 var(--serif); letter-spacing: -.01em; }
h2 { font: 700 1.625rem/1.2 var(--serif); }
.label, .eyebrow { font: 600 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); }
header.site { background: var(--paper); border-bottom: 1px solid var(--ink); }
.brand { font: 700 1.4rem/1 var(--serif); }
.star { fill: var(--ink); }
.btn { border-radius: var(--r); font-weight: 600; }
.btn:hover { background: var(--ink-2); }
.btn.ghost { border-color: var(--ink); }
.btn.ghost:hover { background: var(--vellum); }
.pro-tag, .el-badge, .tag-open, .ballot-tag, .role { font: 600 .7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r); }
.pro-tag { background: var(--ink); color: #fff; padding: 2px 5px; }
.el-badge, .tag-open, .ballot-tag { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 2px 6px; }
.ballot-tag.off { color: var(--muted); border-color: var(--rule); }
.role { color: var(--ink); }
.flash, .c-you { background: var(--vellum); }
.note { border-left-color: var(--ink); }
.locked { border: 1px dashed var(--faint); background: var(--surface); }
.locked-head svg { fill: var(--ink); }
.photo { background: var(--vellum); border-radius: 0; }

/* Party chips: letter on party color, square. */
.chip { width: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r); font: 600 .72rem/1 var(--mono); }
.chip.np { background: var(--surface); color: var(--ink); border: 1px solid var(--ink); }

/* Tables */
table.data { border-color: var(--rule); border-radius: 0; }
table.data thead th { font: 600 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--ink); }
table.data td.date, table.data td.measure { font: 400 .85rem var(--mono); white-space: nowrap; }
table.data td.measure a { text-decoration: none; }
table.data td.measure a:hover { text-decoration: underline; }
.tag { font: 500 .68rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: var(--r); }

/* Vote marks: shape carries the vote, never green/red. Yea filled square, Nay open square, not voting a dash. */
.vote { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none !important; border: 0 !important; color: var(--ink) !important; font: 600 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.vote::before { content: ""; display: inline-block; width: 10px; height: 10px; box-sizing: border-box; }
.v-Y::before { background: var(--ink); }
.v-N::before { border: 1.5px solid var(--ink); }
.v-X::before { height: 2px; background: var(--ink); }
.v-P::before { border: 1.5px dashed var(--ink); }
.v-X, .v-P { color: var(--muted) !important; }
/* Breaks with party: the one highlight a vote table allows. */
tr.break td { background: var(--vellum); }
tr.break td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.brk { display: inline-block; margin-top: 4px; background: var(--ink); color: #fff; font: 600 .65rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 1px 5px; border-radius: var(--r); white-space: nowrap; }
/* Party split per measure: D left, R right; strong = yea, mid = nay. */
.psplit { display: inline-flex; gap: 6px; align-items: center; }
.psplit .pb { display: flex; width: 54px; height: 8px; background: var(--rule-soft); }
.psplit .pb i { display: block; height: 100%; }
.psplit .pb.dem .y { background: var(--dem); } .psplit .pb.dem .n { background: var(--dem-mid); }
.psplit .pb.rep .y { background: var(--rep); } .psplit .pb.rep .n { background: var(--rep-mid); }
.psplit-key { font: 400 .72rem var(--mono); color: var(--muted); }
.result { font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Distribution strips: the subject is ink with a ring, everyone else a muted party tint. */
.strip .t { stroke-opacity: 1; stroke-width: 1.2; }
.strip .t.dem { stroke: var(--dem-mid); } .strip .t.rep { stroke: var(--rep-mid); } .strip .t.ind { stroke: var(--ind-mid); }
.strip .axis { stroke: var(--ink); }
.strip .me { stroke: var(--ink); stroke-width: 2; }
.strip .me-dot { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.strip .lab { font: 11px var(--mono); fill: var(--muted); }

/* Scores: always with a reference point. */
.measure-grid { border-radius: 0; }
.m-head h3 { font: 600 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.m-value { font: 700 3.25rem/1 var(--serif); margin: 10px 0 6px; }
.m-value small { font: 400 .95rem var(--mono); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.m-ref { font: 400 .8rem/1.5 var(--mono); color: var(--ink-2); margin-bottom: 6px; }
.m-ref b { font-weight: 600; }
.m-note { color: var(--muted); }
.figures { border-radius: 0; }
.figures dd, .price, .h2h b, .holder-card b, .leader-card b { font-family: var(--serif); font-weight: 700; }

/* Profile header: ink, used only on profiles. */
.p-head.inkhead { background: var(--ink); color: #f5f2ea; border-bottom: 0; border-top: 4px solid var(--ind); }
.p-head.inkhead.dem { border-top-color: var(--dem); } .p-head.inkhead.rep { border-top-color: var(--rep); }
.ph-grid { display: grid; grid-template-columns: 168px minmax(0, 1fr) 300px; gap: 28px; padding-top: 32px; padding-bottom: 24px; align-items: start; }
.ph-photo { width: 168px; aspect-ratio: 4 / 5; height: auto; background: #2a2823; color: #8a857b; font-size: 2rem; }
.ph-eyebrow { font: 600 .75rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a8a399; margin: 0 0 6px; }
.p-head.inkhead h1 { font: 800 clamp(2.4rem, 5vw, 3.6rem)/0.98 var(--serif); color: #fff; margin: 0 0 12px; letter-spacing: -.015em; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ph-chips span, .ph-chips a { font: 600 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border: 1px solid #625e55; color: #f5f2ea; text-decoration: none; border-radius: var(--r); }
.ph-chips .party { border-color: transparent; color: #fff; }
.ph-chips .party.dem { background: var(--dem); } .ph-chips .party.rep { background: var(--rep); } .ph-chips .party.ind { background: var(--ind); }
.ph-chips a:hover { border-color: #f5f2ea; }
.ph-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid #3a3731; padding-top: 14px; }
.ph-score b { display: block; font: 700 2rem/1 var(--serif); color: #fff; }
.ph-bar { display: block; height: 3px; background: #3a3731; margin: 8px 0 6px; }
.ph-bar i { display: block; height: 100%; background: #f5f2ea; }
.ph-bar i.dem { background: var(--dem-mid); } .ph-bar i.rep { background: var(--rep-mid); } .ph-bar i.ind { background: var(--ind-mid); }
.ph-score span { display: block; font: 500 .68rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a8a399; }
.ph-score span.k { color: #f5f2ea; }
.ph-side { border-left: 1px solid #3a3731; padding-left: 24px; }
.ph-side dl { margin: 14px 0 0; font-size: .88rem; }
.ph-side dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 4px 0; }
.ph-side dt { font: 500 .68rem/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a8a399; }
.ph-side dd { margin: 0; color: #f5f2ea; }
.ph-side a { color: #f5f2ea; }
.pos svg { display: block; width: 100%; height: auto; overflow: visible; }
.pos .lab { font: 500 10px var(--mono); fill: #a8a399; letter-spacing: .06em; }
.ph-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; border-top: 1px solid #3a3731; padding: 12px 0; font-size: .92rem; }
.ph-tabs a { color: #f5f2ea; text-decoration: none; font-weight: 600; }
.ph-tabs a:hover { text-decoration: underline; }
.ph-tabs a small { font: 400 .75rem var(--mono); color: #a8a399; margin-left: 3px; }
.ph-tabs .p-actions { margin: 0 0 0 auto; }
.inkhead .btn { background: #f5f2ea; color: var(--ink); border-color: #f5f2ea; min-height: 36px; }
.inkhead .btn.ghost { background: transparent; color: #f5f2ea; border-color: #625e55; }
.inkhead .btn.ghost:hover { border-color: #f5f2ea; }
.inkhead .text-link { color: #f5f2ea; }
@media (max-width: 960px) {
  .ph-grid { grid-template-columns: 120px minmax(0, 1fr); }
  .ph-photo { width: 120px; }
  .ph-side { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid #3a3731; padding-top: 14px; }
}
@media (max-width: 720px) {
  .ph-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .ph-photo { width: 96px; }
  .ph-scores { grid-template-columns: repeat(2, 1fr); }
  .ph-tabs .p-actions { margin: 6px 0 0; width: 100%; }
}

/* Bills */
.bill-head { padding: 36px 0 20px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.bill-head h1 { max-width: 30ch; }
.bill-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 400 .85rem var(--mono); color: var(--ink-2); }
.bill-status { display: inline-block; font: 600 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--ink); border-radius: var(--r); }
.bill-status.law { background: var(--ink); color: #fff; }
.summary p { max-width: 70ch; }
.summary .src { font: 400 .78rem var(--mono); color: var(--muted); }
.bill-list { list-style: none; padding: 0; margin: 0 0 12px; }
.bill-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--rule-soft); align-items: baseline; }
.bill-list .bn { font: 500 .85rem var(--mono); white-space: nowrap; }
.bill-list .bt a { font-weight: 500; text-decoration: none; }
.bill-list .bt a:hover { text-decoration: underline; }
.bill-list .bt span { display: block; font-size: .82rem; color: var(--muted); }
.bill-list .bs { font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mark-bill { display: inline-block; width: 7px; height: 12px; border: 1.5px solid var(--ink); margin-right: 6px; vertical-align: -1px; }
.cospon { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
@media (max-width: 720px) { .bill-list li { grid-template-columns: 1fr; } }
.pos .pd { fill: var(--dem); } .pos .pr { fill: var(--rep); }
table.votes .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
table.votes a.q { display: block; font-weight: 500; text-decoration: none; }
table.votes a.q:hover { text-decoration: underline; }
.pos svg { max-width: 340px; }

/* Feed: statements and posts. Record marks: statement open diamond, post open circle. */
.feed { list-style: none; padding: 0; margin: 0 0 12px; }
.feed-item { padding: 14px 0; border-top: 1px solid var(--rule-soft); }
.fi-meta { font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.fi-meta a { color: var(--ink); }
.mk { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border: 1.5px solid var(--ink); box-sizing: border-box; }
.mk-diamond { transform: rotate(45deg); }
.mk-circle { border-radius: 50%; }
.fi-title { font: 600 1.05rem/1.35 var(--serif); margin: 0 0 4px; }
.fi-title a { text-decoration: none; }
.fi-title a:hover { text-decoration: underline; }
.fi-text { margin: 0 0 6px; color: var(--ink-2); max-width: 75ch; }
.fi-text.quote { font: 400 1.05rem/1.5 var(--serif); color: var(--ink); }
.fi-bills { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; font-size: .85rem; }
.fi-bill { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; background: var(--vellum); padding: 4px 8px; width: fit-content; }
.fi-bill a { font-family: var(--mono); }
.fi-src { font-size: .82rem; margin: 4px 0 0; }
.st-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 4px 0 12px; }
.st-party { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.daychart { margin: 8px 0 20px; }
.daychart svg { width: 100%; height: auto; display: block; }
.daychart rect.dem { fill: var(--dem); } .daychart rect.rep { fill: var(--rep); } .daychart rect.ind { fill: var(--ind); }
.daychart .base { stroke: var(--ink); }
.daychart .lab { font: 10px var(--mono); fill: var(--muted); }
.daychart figcaption { font: 400 .75rem var(--mono); color: var(--muted); margin-top: 4px; }

/* Effectiveness */
.eff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; background: var(--surface); border: 1px solid var(--rule); padding: 20px 22px; }
.eff .m-value small { font: 400 .9rem var(--mono); color: var(--muted); margin-left: 8px; }
.eff-label { display: inline-block; font: 600 .7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--ink); border-radius: var(--r); }
.eff-label.hi { background: var(--ink); color: #fff; }
.eff-label.lo { border-style: dashed; color: var(--muted); }
.funnel { list-style: none; padding: 0; margin: 0 0 10px; }
.funnel li { display: grid; grid-template-columns: 170px 1fr 40px; gap: 10px; align-items: center; padding: 4px 0; }
.fn-label { font: 500 .75rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.fn-bar { height: 12px; background: var(--rule-soft); }
.fn-bar i { display: block; height: 100%; background: var(--ink); }
.fn-n { font: 600 .9rem var(--mono); text-align: right; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 20px 0 12px; font-weight: 600; }
.tabs a { text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.tabs a.on { border-bottom-color: var(--ink); }
.tabs .sep { width: 1px; height: 16px; background: var(--rule); }
@media (max-width: 720px) { .eff { grid-template-columns: 1fr; } .funnel li { grid-template-columns: 120px 1fr 32px; } }
.fi-quote { margin: 8px 0 4px; padding: 2px 0 2px 14px; border-left: 2px solid var(--ink); font: 400 1.05rem/1.5 var(--serif); color: var(--ink); max-width: 70ch; }

/* Profile body: one column; the election sits in a band under the header; résumé and contact at the bottom. */
.p-single { padding: 32px 0 72px; }
.p-single > section { padding-bottom: 44px; }
.el-band { background: var(--vellum); border-bottom: 1px solid var(--rule); }
.el-band .el-panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4px 32px; align-items: start; padding: 16px 0; margin: 0; }
.el-band .el-panel h2 { font: 600 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 2px 0 6px; grid-column: 1; }
.el-band .el-panel > p:first-of-type { grid-column: 1; margin: 0; }
.el-band .el-panel > :not(h2):not(p:first-of-type) { grid-column: 2; }
.el-band .el-panel > p.small.muted { grid-row: 1; margin: 0 0 4px; }
.el-band .opp { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.el-band .opp li { border-top: 0; padding: 2px 0; gap: 10px; justify-content: flex-start; }
.resume-sec { border-top: 1px solid var(--ink); padding-top: 18px; }
.resume-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.resume-grid section { margin-bottom: 22px; }
.resume-grid .label { margin: 0 0 8px; }
.resume-grid .facts > div { grid-template-columns: 100px 1fr; }
.resume-grid .facts dd { overflow-wrap: anywhere; }
.links-inline { font-size: .92rem; line-height: 1.8; }
@media (max-width: 960px) { .resume-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .resume-grid { grid-template-columns: 1fr; gap: 8px; }
  .el-band .el-panel { grid-template-columns: 1fr; }
  .el-band .el-panel > * { grid-column: 1 !important; grid-row: auto !important; }
}
.ph-sub { display: block; font: 500 .68rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #a8a399; margin-top: 2px; }
/* Members' own words stand out from the summary around them. */
.fi-quote, .fi-text.quote { font-weight: 600; color: var(--ink); }
.fi-quote { border-left-width: 3px; }

/* Breaks with party by issue */
.breaks { list-style: none; padding: 0; margin: 8px 0 12px; }
.breaks li { display: grid; grid-template-columns: 200px minmax(0, 1fr) 130px 90px; gap: 14px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--rule-soft); }
.breaks li.often { background: var(--vellum); box-shadow: inset 3px 0 0 var(--ink); }
.bk-issue { font-weight: 500; }
.bk-bar { position: relative; height: 10px; background: var(--rule-soft); }
.bk-bar i { display: block; height: 100%; background: var(--ink); }
.bk-bar b { position: absolute; top: -4px; width: 2px; height: 18px; margin-left: -1px; background: var(--ind-mid); }
.bk-bar b.dem { background: var(--dem); } .bk-bar b.rep { background: var(--rep); }
.bk-n { font: 400 .85rem var(--mono); white-space: nowrap; }
.bk-med { font: 400 .75rem var(--mono); color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) { .breaks li { grid-template-columns: 1fr 1fr; } .bk-bar { grid-column: 1 / -1; order: 3; } }

/* Home */
.home-hero { border-bottom: 1px solid var(--ink); background: var(--paper); }
.hh-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding-top: 48px; padding-bottom: 40px; align-items: start; }
.hh-copy h1 { font: 800 clamp(2.4rem, 5vw, 3.8rem)/1 var(--serif); letter-spacing: -.02em; max-width: 12ch; margin: 6px 0 16px; }
.hh-copy .lede { font-size: 1.1rem; max-width: 46ch; }
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 24px 0 0; border-top: 1px solid var(--ink); }
.proof div { padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.proof div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--rule); }
.proof div:nth-child(even) { padding-left: 16px; }
.proof dt { font: 600 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.proof dd { margin: 4px 0 0; font: 700 1.9rem/1 var(--serif); }
.hh-chart { margin: 0; background: var(--surface); border: 1px solid var(--rule); padding: 14px 16px 12px; }
.hh-chart figcaption { font: 400 .74rem/1.5 var(--mono); color: var(--muted); margin-top: 8px; }
.mapswitch { display: grid; grid-template-columns: auto auto 1fr; gap: 0 4px; }
.mapswitch input { position: absolute; opacity: 0; pointer-events: none; }
.mapswitch label { font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--rule); cursor: pointer; color: var(--muted); }
.mapswitch input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.mapswitch input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.mapswitch .map { grid-column: 1 / -1; display: none; margin-top: 8px; }
#map-s:checked ~ .map-s, #map-h:checked ~ .map-h { display: block; }
.posmap { width: 100%; height: auto; display: block; overflow: visible; }
.posmap circle { fill-opacity: .8; stroke: #fff; stroke-width: .8; transition: r .1s; }
.posmap circle.dem { fill: var(--dem-mid); } .posmap circle.rep { fill: var(--rep-mid); } .posmap circle.ind { fill: var(--ind-mid); }
.posmap a:hover circle, .posmap a:focus circle { fill: var(--ink); fill-opacity: 1; stroke: var(--ink); stroke-width: 2; }
.posmap .grid { stroke: var(--rule-soft); } .posmap .base { stroke: var(--ink); } .posmap .mid { stroke: var(--rule); stroke-dasharray: 3 3; }
.posmap .ax { font: 500 10px var(--mono); fill: var(--muted); letter-spacing: .04em; }
.posmap .nm { font: 600 10px var(--mono); fill: var(--ink); letter-spacing: .04em; }
.home > section { padding-top: 44px; }
.hw-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; margin-top: 8px; }
.lv { list-style: none; padding: 0; margin: 0; }
.lv li { padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.lv-meta { font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 3px; }
.lv-title { font: 600 1rem/1.35 var(--serif); margin: 0 0 6px; }
.lv-title a { text-decoration: none; } .lv-title a:hover { text-decoration: underline; }
.lv-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.lv-tag { font: 600 .65rem var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink); padding: 1px 5px; }
.lv-brk { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0 0; background: var(--vellum); padding: 6px 8px; box-shadow: inset 3px 0 0 var(--ink); }
.lv-brk .label { margin-right: 4px; }
.mini { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; text-decoration: none; }
.mini:hover span { text-decoration: underline; }
.mini .chip { min-width: 16px; height: 16px; font-size: .62rem; padding: 0 3px; }
.trend { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.trend li { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--ink); padding: 6px 10px; background: var(--surface); }
.trend a { font: 600 1rem var(--serif); text-decoration: none; text-transform: capitalize; }
.trend a:hover { text-decoration: underline; }
.trend span { font: 400 .72rem var(--mono); color: var(--muted); }
.gap-s { margin-top: 22px; }
.named { list-style: none; padding: 0; margin: 0; }
.named li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule-soft); font-size: .92rem; }
.named a { text-decoration: none; } .named a:hover { text-decoration: underline; }
.named span:last-child, .named li > span { font: 400 .75rem var(--mono); color: var(--muted); white-space: nowrap; }
.hb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--surface); }
.hb { padding: 16px 18px; border-right: 1px solid var(--rule); }
.hb:last-child { border-right: 0; }
.hb ol { list-style: none; padding: 0; margin: 8px 0; }
.hb li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--rule-soft); }
.hb li b { font: 700 1.05rem var(--serif); white-space: nowrap; }
.hb .mlink .mseat { display: none; }
.hb-ref { font: 400 .72rem/1.5 var(--mono); color: var(--muted); margin: 0; }
.count-big { font: 800 2.2rem/1 var(--serif); margin-right: 4px; }
.race-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.race-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--rule); text-decoration: none; }
.race-card:hover { border-color: var(--ink); }
.rc-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; }
.rc-name { font-weight: 500; font-size: .92rem; }
.rc-bar { grid-column: 2; height: 6px; background: var(--rule-soft); } .rc-bar i { display: block; height: 100%; }
.rc-bar i.dem { background: var(--dem); } .rc-bar i.rep { background: var(--rep); } .rc-bar i.ind { background: var(--ind); }
.rc-amt { grid-column: 2; font: 400 .75rem var(--mono); color: var(--muted); }
.hsources { padding-bottom: 56px; }
.state-line { display: flex; flex-wrap: wrap; gap: 2px 8px; font: 500 .8rem var(--mono); margin-top: 10px; }
.state-line a { text-decoration: none; } .state-line a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .hh-grid, .hw-grid { grid-template-columns: 1fr; gap: 28px; }
  .hb-grid { grid-template-columns: 1fr 1fr; } .hb:nth-child(2) { border-right: 0; } .hb:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .race-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) { .hb-grid, .race-grid { grid-template-columns: 1fr; } .hb { border-right: 0; border-bottom: 1px solid var(--rule); } }
nav a { white-space: nowrap; }
.topsearch { min-width: 180px; }
@media (max-width: 1180px) { nav { gap: 14px; font-size: .9rem; } .topsearch { max-width: 220px; } }
@media (max-width: 1040px) { nav a[href="/compare"], nav a[href="/committees"] { display: none; } }
.hh-copy h1 { max-width: 15ch; font-size: clamp(2.3rem, 4.4vw, 3.4rem); }

/* Alerts */
.al-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; margin-top: 16px; }
.al-grid aside section { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.al-grid aside .label { margin: 0 0 8px; }
.al-freq { display: grid; gap: 6px; }
.al-freq label { font-size: .92rem; }
.al-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.al-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--rule-soft); }
.al-list a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.al-list a:hover { text-decoration: underline; }
form.inline { display: inline; margin: 0; }
.al-add { display: flex; gap: 6px; margin-top: 8px; } .al-add input { flex: 1; min-width: 0; }
.al-feed h2 .count { font: 500 .8rem var(--mono); color: var(--muted); margin-left: 6px; }
.al-sec { margin: 18px 0 8px; }
.al-sec h3 { font: 700 1.1rem var(--serif); margin: 0 0 4px; padding-top: 10px; border-top: 1px solid var(--ink); }
.al-sec h3 a { text-decoration: none; }
.al-sec ul { list-style: none; padding: 0; margin: 0; }
.al-sec li { padding: 8px 0 8px 10px; border-top: 1px solid var(--rule-soft); }
.al-sec li.new { box-shadow: inset 3px 0 0 var(--ink); background: var(--surface); }
.al-sec li p { margin: 0; }
.al-sec li a { text-decoration: none; } .al-sec li a:hover { text-decoration: underline; }
@media (max-width: 860px) { .al-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Profile: bottom line, influence, collapsed ratings */
.bottom-line { background: var(--surface); border: 1px solid var(--ink); border-left: 4px solid var(--ink); padding: 16px 22px 10px; margin-top: 8px; }
.bottom-line .label { margin: 0 0 8px; }
.bottom-line ul { margin: 0; padding: 0; list-style: none; }
.bottom-line li { font: 600 1.12rem/1.45 var(--serif); padding: 6px 0 6px 18px; position: relative; border-top: 1px solid var(--rule-soft); }
.bottom-line li:first-child { border-top: 0; }
.bottom-line li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--ink); }
.bottom-line a { text-decoration: none; } .bottom-line a:hover { text-decoration: underline; }
.infl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.infl .label { margin: 0 0 8px; }
.infl-list { list-style: none; padding: 0; margin: 0 0 10px; font-size: .92rem; }
.infl-list li { padding: 5px 0; border-top: 1px solid var(--rule-soft); }
.infl-list a { text-decoration: none; } .infl-list a:hover { text-decoration: underline; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.topics a { border: 1px solid var(--ink); padding: 4px 9px; font: 600 .95rem var(--serif); text-decoration: none; text-transform: capitalize; background: var(--surface); }
.topics a:hover { background: var(--vellum); }
.ratings-more { border-top: 1px solid var(--rule); padding: 12px 0 28px; }
.ratings-more summary { cursor: pointer; font-weight: 600; }
.ratings-more .measures { padding-top: 16px; }
@media (max-width: 860px) { .infl { grid-template-columns: 1fr; gap: 12px; } }
.p-single > .bottom-line { padding-bottom: 10px; margin-bottom: 40px; }
.seat-tag { display: inline-block; font: 600 .66rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--ink); text-decoration: none; white-space: nowrap; }
.seat-tag.elsewhere { background: var(--ink); color: #fff; }
.seat-tag.not-filed { border-style: dashed; }
.leaving { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.leaving li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--rule-soft); }
.leaving .mseat { font-size: .8rem; }
@media (max-width: 960px) { .leaving { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .leaving { grid-template-columns: 1fr; } }

/* Compare: each member gets a mark, not a color (party colors stay for party). */
.key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--ink); box-sizing: border-box; }
.key.d0 { background: var(--ink); } .key.d1 { background: #fff; } .key.d2 { background: var(--ink); border-radius: 50%; } .key.d3 { background: #fff; border-radius: 50%; }
.compare-pick { flex-wrap: wrap; }
.cmp-heads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 18px 0; }
.cmp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--rule); text-decoration: none; }
.cmp-head:hover { border-color: var(--ink); }
.cmp-head span { display: flex; flex-direction: column; } .cmp-head b { font: 700 1.1rem var(--serif); } .cmp-head small { color: var(--muted); font-size: .8rem; }
.cmp-big { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.cmp-big b { font: 800 4rem/1 var(--serif); }
.cmp-big span { font: 500 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); max-width: 30ch; }
.compare section { margin-bottom: 36px; }
.cmp-rows { margin: 8px 0 20px; }
.cmp-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
.cmp-label { font-weight: 600; display: flex; flex-direction: column; } .cmp-label small { font: 400 .72rem var(--mono); color: var(--muted); }
.cmp-track { position: relative; height: 22px; background: linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat; }
.cmp-dot { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border: 2px solid var(--ink); box-sizing: border-box; background: var(--ink); }
.cmp-dot.d1 { background: #fff; } .cmp-dot.d2 { border-radius: 50%; } .cmp-dot.d3 { border-radius: 50%; background: #fff; }
.cmp-med { position: absolute; top: 0; width: 2px; height: 22px; background: var(--faint); }
.cmp-vals { display: flex; gap: 14px; font: 600 .95rem var(--mono); }
.compare-t th[scope=row] { width: 220px; font-weight: 500; color: var(--ink-2); } .compare-t th small { display: block; font: 400 .7rem var(--mono); color: var(--muted); }
.matrix { border-collapse: collapse; margin: 8px 0; }
.matrix th { font: 600 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; text-align: left; }
.matrix td { width: 84px; height: 56px; text-align: center; font: 700 1.2rem var(--serif); border: 1px solid var(--surface); }
.matrix td.dark { color: #fff; } .matrix td.self, .matrix td.na { color: var(--muted); font: 400 .8rem var(--mono); background: var(--paper); }
@media (max-width: 720px) { .cmp-row { grid-template-columns: 1fr; gap: 6px; } .cmp-big b { font-size: 3rem; } }
.preview-tag { display: inline-block; font: 600 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px dashed var(--ink); padding: 2px 6px; margin: 0 0 8px; }
.saydo-t td { vertical-align: middle; }
.saydo-t tr.gap td { background: var(--vellum); }
.saydo-t tr.gap td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.gap-tag { display: block; font: 600 .65rem var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.sd-bar { display: inline-block; width: 90px; height: 8px; background: var(--rule-soft); vertical-align: middle; margin-right: 8px; }
.sd-bar i { display: block; height: 100%; background: var(--ink); }
.sd-n { font: 400 .82rem var(--mono); white-space: nowrap; }
.fn-label a { color: inherit; text-decoration-color: var(--faint); }
.fn-label a:hover { text-decoration-color: currentColor; }
.eff-laws { background: var(--surface); border: 1px solid var(--rule); border-top: 0; padding: 4px 22px 12px; }
.eff-laws .label { margin: 12px 0 4px; }
.scope-sum { font: 600 .95rem var(--serif); margin: 2px 0 6px; }
.scope-tag { display: inline-block; font: 600 .62rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--ink); white-space: nowrap; }
.scope-tag.national { background: var(--ink); color: #fff; }
.scope-tag.local, .scope-tag.technical { border-style: dashed; }
.scope-tag.commemorative { border-color: var(--rule); color: var(--muted); }
/* Stories (AI-named topics) */
.stories { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.stories li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--rule); padding: 6px 0; }
.stories a { font: 600 1.02rem var(--serif); text-decoration: none; }
.stories a:hover { text-decoration: underline; }
.stories .new { font: 600 .6rem var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--ink); padding: 1px 4px; margin-left: 6px; }
.st-meta { display: inline-flex; align-items: center; gap: 8px; font: 400 .72rem var(--mono); color: var(--muted); white-space: nowrap; }
.mix { display: inline-flex; width: 72px; height: 8px; background: var(--rule-soft); vertical-align: middle; }
.mix i { display: block; height: 100%; } .mix .dem { background: var(--dem); } .mix .rep { background: var(--rep); margin-left: auto; } .mix .ind { background: var(--ind); }
.fi-topics { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.fi-topics a { font: 500 .75rem var(--sans); border: 1px solid var(--rule); padding: 1px 6px; text-decoration: none; color: var(--ink); }
.fi-topics a:hover { border-color: var(--ink); }
.ai-note { font: 400 .62rem var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stances, .m-stories { list-style: none; padding: 0; margin: 0; }
.stances li, .m-stories li { padding: 5px 0; border-bottom: 1px solid var(--rule-soft); }
.stances a, .m-stories a { font-weight: 600; text-decoration: none; }
.stance { display: block; font-size: .85rem; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .sides, .two-col { grid-template-columns: 1fr; } }

/* AI one-line reading of a bill (src/ingest/billAi.js), always labeled AI-read */
.bill-ai { font: 400 1.05rem/1.45 var(--sans); color: var(--ink-2); max-width: 60ch; margin: 6px 0 12px; }
.bill-list .bt .b-ai { color: var(--ink-2); font-size: .86rem; line-height: 1.4; margin: 2px 0 1px; }
.b-ai .ai-note, .b-ai-lead .ai-note { font-style: normal; white-space: nowrap; margin-left: 4px; }
/* Story page v2 */
.st-events { display: block; font: 400 .8rem var(--sans); color: var(--muted); margin-top: 2px; }
.st-events a { font: inherit; color: var(--ink-2); }
.brief { background: var(--vellum); border-left: 3px solid var(--ink); padding: 12px 16px; margin: 8px 0 16px; }
.brief p { margin: 0; font: 400 1.05rem/1.5 var(--serif); }
.brief .ai-note { margin-top: 6px; }
.story-figs { display: flex; flex-wrap: wrap; gap: 28px; margin: 6px 0 10px; }
.story-figs > div { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.fig { font: 600 1.7rem/1 var(--serif); }
.fig-l { font: 400 .78rem var(--sans); color: var(--muted); }
.actions-line { font-size: .88rem; color: var(--ink-2); line-height: 2; }
.act-tag { display: inline-block; font: 600 .6rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--ink); padding: 1px 5px; white-space: nowrap; }
.act-tag.funding, .act-tag.bill { background: var(--ink); color: #fff; }
.act-tag.criticism, .act-tag.praise, .act-tag.reaction, .act-tag.other { border-color: var(--rule); color: var(--muted); }
.threads { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.thread { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--rule); background: var(--surface); padding: 10px 12px; text-decoration: none; color: var(--ink); }
.thread:hover { border-color: var(--ink); }
.th-name { font: 600 1.02rem var(--serif); }
.th-meta { font: 400 .72rem var(--mono); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.th-latest { font-size: .82rem; color: var(--ink-2); }
.no-split { color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; }
.tl-day { display: grid; grid-template-columns: 92px 1fr; gap: 12px; border-top: 1px solid var(--rule); padding: 8px 0; }
.tl-date { font: 500 .75rem var(--mono); color: var(--muted); padding-top: 3px; }
.tl-day > ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tl-item { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: start; }
.tl-item p { margin: 0; }
.tl-who { font-size: .9rem; }
.who { text-decoration: none; font-weight: 600; white-space: nowrap; }
.who .chip { margin-right: 4px; }
.amt { font: 600 .85rem var(--mono); margin-left: 4px; }
.tl-sum { font-size: .92rem; color: var(--ink-2); }
.tl-src { font-size: .78rem; color: var(--muted); }
.tl-src .ev { font-weight: 600; color: var(--ink-2); }
@media (max-width: 720px) { .tl-day { grid-template-columns: 1fr; } .tl-item { grid-template-columns: 1fr; } }

/* Campaign money (added 2026-10-04) */
.figures .fig-share { margin-top: 3px; font: 400 .82rem/1.3 var(--sans); color: var(--muted); }
.fig-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.fig-link:hover { border-bottom-style: solid; }
.money-table { margin: 8px 0 12px; }
.money-line { font-size: 1.05rem; line-height: 1.55; max-width: 62ch; }
.givers { list-style: none; padding: 0; margin: 8px 0 12px; counter-reset: g; }
.givers li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--rule-soft); counter-increment: g; }
.givers .g-org { font: 600 1rem/1.3 var(--serif); }
.givers .g-amt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font: 600 1.05rem/1.2 var(--serif); }
.givers.free li { grid-template-columns: 1fr; }
.kind-tag { display: inline-block; font: 500 .72rem/1.6 var(--mono); letter-spacing: .02em; padding: 0 6px; border: 1px solid var(--rule); border-radius: 3px; color: var(--muted); vertical-align: 2px; }
.reach { display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; }
.split-mini { display: inline-flex; width: 64px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--rule-soft); flex: none; }
.split-mini i.dem { background: var(--dem); } .split-mini i.rep { background: var(--rep); } .split-mini i.ind { background: var(--ind); }
.kind-mix { margin: 4px 0 8px; }
.kind-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rule-soft); max-width: 520px; }
/* Kinds are not parties: ink shades only, never party colors. */
.kind-bar i { border-right: 2px solid var(--surface); }
.kind-bar .k-corporate { background: var(--ink, #222); } .kind-bar .k-trade { background: color-mix(in oklch, var(--ink, #222) 70%, transparent); }
.kind-bar .k-labor { background: color-mix(in oklch, var(--ink, #222) 50%, transparent); } .kind-bar .k-membership, .kind-bar .k-cooperative { background: color-mix(in oklch, var(--ink, #222) 35%, transparent); }
.kind-bar .k-independent, .kind-bar .k-other { background: color-mix(in oklch, var(--ink, #222) 22%, transparent); } .kind-bar .k-leadership, .kind-bar .k-party, .kind-bar .k-campaign { background: color-mix(in oklch, var(--ink, #222) 12%, transparent); }
details.by-cycle { margin: 12px 0; } details.by-cycle summary { cursor: pointer; font-weight: 500; }
/* Story page v3 (design: Oathstar Topic Page) */
.story-head { background: var(--ink); color: var(--paper); padding: 22px 0 26px; border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--dem) 50%, var(--rep) 50%) 1; }
.story-head a { color: var(--paper); }
.sh-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.sh-eyebrow { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin: 0 0 6px; }
.story-head h1 { font: 700 clamp(2.2rem, 5vw, 3.4rem)/1.02 var(--serif); margin: 0 0 10px; color: var(--paper); }
.sh-brief { font: 400 1.1rem/1.5 var(--serif); margin: 0; max-width: 46ch; }
.sh-note { font: 400 .62rem var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin: 6px 0 0; }
.sh-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.win { display: inline-flex; border: 1px solid rgba(255,255,255,.4); }
.win a { font: 600 .72rem var(--mono); padding: 6px 10px; text-decoration: none; }
.win a.on { background: var(--paper); color: var(--ink); }
.story-head .btn.ghost { color: var(--paper); border-color: rgba(255,255,255,.4); }
.sh-tiles { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.25); }
.sh-tiles > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.sh-tiles > div:nth-child(2n) { border-right: 0; } .sh-tiles > div:nth-child(n+3) { border-bottom: 0; }
.sh-tiles .fig { font: 600 2.1rem/1 var(--serif); color: var(--paper); }
.sh-tiles .fig-l { font: 500 .62rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper); opacity: .75; }
.hsplit { display: flex; height: 4px; width: 100%; background: rgba(127,127,127,.25); }
.hsplit i { display: block; height: 100%; } .hsplit .dem { background: var(--dem-mid); } .hsplit .rep { background: var(--rep-mid); margin-left: auto; } .hsplit .ind { background: var(--ind-mid); }
.story .hsplit .dem { background: var(--dem); } .story .hsplit .rep { background: var(--rep); }
.legend { font: 400 .72rem var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 1px; } .dot.dem { background: var(--dem); } .dot.rep { background: var(--rep); } .dot.ind { background: var(--ind); }
.grid-scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); }
.moves { width: 100%; border-collapse: collapse; }
.moves th, .moves td { border-bottom: 1px solid var(--rule-soft); padding: 8px 6px; vertical-align: middle; }
.moves td + td, .moves th + th { border-left: 1px solid var(--rule-soft); }
.moves thead th { font-weight: 400; text-align: left; vertical-align: bottom; }
.moves thead th .mono { display: block; font-size: .6rem; text-transform: uppercase; color: var(--muted); }
.moves thead th b { font: 600 1.15rem var(--serif); }
.moves thead th .ct { float: right; font: 400 .7rem var(--mono); color: var(--muted); margin-top: 6px; }
.moves tbody th { text-align: left; font: 600 .82rem var(--sans); min-width: 160px; }
.moves tbody th span { display: block; font: 400 .66rem var(--mono); color: var(--muted); }
.moves td { min-width: 44px; line-height: 0; }
.moves td.num { min-width: 70px; text-align: right; line-height: 1.2; } .moves td.num b { font: 600 1.2rem var(--serif); display: block; }
.moves .more { font: 400 .65rem var(--mono); color: var(--muted); line-height: 1.2; }
.story-cols { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 28px; }
.tcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcard { border: 1px solid var(--rule); background: var(--surface); padding: 0 14px 10px; position: relative; }
.tc-rule { display: block; margin: 0 -14px 10px; } .tc-rule .hsplit { height: 4px; }
.tcard h3 { font: 600 1.1rem/1.2 var(--serif); margin: 0 0 2px; } .tcard h3 a { text-decoration: none; }
.tc-meta { font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.tc-tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tc-tl li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; font-size: .84rem; line-height: 1.35; }
.tc-tl .mono { font-size: .66rem; color: var(--muted); padding-top: 2px; }
.tc-foot { text-align: right; margin: 8px 0 0; font-size: .8rem; border-top: 1px solid var(--rule-soft); padding-top: 6px; }
.panel { border: 1px solid var(--rule); background: var(--surface); padding: 12px 14px; margin-bottom: 14px; }
.panel h3 { font: 600 1.05rem var(--serif); margin: 0; }
.btrack { list-style: none; padding: 0; margin: 6px 0 0; }
.btrack li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.btrack a { font-weight: 600; font-size: .88rem; text-decoration: none; } .btrack .mono { grid-column: 1; } .btrack .chip { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.mbars { list-style: none; padding: 0; margin: 8px 0 6px; display: grid; gap: 6px; }
.mbars li { display: grid; grid-template-columns: 30px 1fr 64px; gap: 8px; align-items: center; font-size: .8rem; }
.mbars b { text-align: right; font-size: .78rem; }
.mb { display: flex; height: 10px; background: var(--rule-soft); } .mb i { display: block; height: 100%; }
.mb .dem { background: var(--dem); } .mb .rep { background: var(--rep); } .mb .ind { background: var(--ind); }
.stand-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.emph { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.emph li { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 8px; align-items: center; font-size: .8rem; }
.emph .el { text-align: center; color: var(--ink-2); }
.ed, .er { display: flex; align-items: center; gap: 6px; } .ed { justify-content: flex-end; }
.ed i, .er i { display: block; height: 10px; } .ed i { background: var(--dem); } .er i { background: var(--rep); }
.ed b, .er b { font: 600 .8rem var(--mono); min-width: 18px; text-align: center; }
.active { list-style: none; padding: 0; margin: 8px 0 0; } .active li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--rule-soft); }
.act-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.act-filter button { font: 500 .74rem var(--sans); border: 1px solid var(--rule); background: var(--surface); padding: 4px 9px; cursor: pointer; color: var(--ink); }
.act-filter button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.act-filter .sep { width: 12px; }
.tl-src a.ev { text-decoration: none; }
@media (max-width: 900px) { .sh-grid, .story-cols, .stand-grid, .tcards { grid-template-columns: 1fr; } }
.story > .sec-head:first-child { margin-top: 28px; }
