/* ==========================================================================
   Congressional Transparency Portal — public frontend
   ========================================================================== */

:root {
  --ink: #14213d;
  --ink-deep: #0d1730;
  --ink-soft: #243758;
  --paper: #f4f0e7;
  --paper-deep: #ebe5d9;
  --surface: #fffdf8;
  --surface-soft: #faf6ee;
  --line: #ded5c5;
  --line-strong: #c9bda9;
  --text: #202a3c;
  --muted: #626b7b;
  --muted-soft: #7b8492;
  --blue: #1d4f7d;
  --blue-soft: #e7eef6;
  --accent: #ad3a31;
  --accent-dark: #8e2b24;
  --accent-soft: #f6e8e4;
  --green: #246348;
  --green-soft: #e5f1e9;
  --amber: #8a5a11;
  --amber-soft: #f8eed8;
  --error: #9b2c25;
  --error-soft: #fbeae7;
  --gold: #e7c47a;

  --sans: "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --shell: min(1180px, calc(100% - 44px));
  --radius-sm: 8px;
  --radius: 13px;
  --radius-lg: 20px;
  --shadow-soft: 0 16px 44px rgba(20, 33, 61, 0.07);
  --shadow-card: 0 7px 20px rgba(20, 33, 61, 0.06);
  --focus: 0 0 0 3px rgba(29, 79, 125, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 5% 0%, rgba(173, 58, 49, 0.06), transparent 27rem),
    radial-gradient(circle at 96% 24%, rgba(29, 79, 125, 0.07), transparent 32rem),
    var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(173, 58, 49, 0.24);
}

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.11), transparent 24rem),
    radial-gradient(circle at 88% 120%, rgba(231, 196, 122, 0.14), transparent 25rem),
    linear-gradient(128deg, var(--ink-deep) 0%, #172749 58%, #1b3157 100%);
  color: #f7f2e7;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(100deg, transparent 8%, #000 48%, transparent 96%);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 108px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(231, 196, 122, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.035);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.16;
}

.brand-subtitle {
  color: #b9c5d8;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}

.header-congress {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.congress-picker {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.congress-picker > span {
  color: #9faec5;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.congress-picker select {
  max-width: 305px;
  min-height: 32px;
  padding: 5px 28px 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 7px;
  outline: 0;
  background-color: rgba(4, 11, 25, 0.36);
  color: #f4efe4;
  cursor: pointer;
  font-size: 0.72rem;
  text-overflow: ellipsis;
}

.congress-picker select:focus-visible {
  border-color: var(--gold);
  outline: 2px solid rgba(231, 196, 122, 0.4);
  outline-offset: 1px;
}

.congress-picker select:disabled {
  cursor: wait;
  opacity: 0.7;
}

.congress-picker option {
  background: #fffdf8;
  color: var(--ink);
}

.congress-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.congress-badge.is-live {
  background: rgba(117, 199, 149, 0.16);
  color: #a9e6bf;
}

.congress-badge.is-archive {
  background: rgba(231, 196, 122, 0.15);
  color: #f0d293;
}

.congress-badge.is-all {
  background: rgba(138, 180, 230, 0.16);
  color: #c7dcff;
}

.sync-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c6d0e0;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8996ac;
  box-shadow: 0 0 0 3px rgba(137, 150, 172, 0.14);
}

.status-dot.is-live {
  background: #75c795;
  box-shadow: 0 0 0 3px rgba(117, 199, 149, 0.16);
  animation: live-pulse 2.6s ease-in-out infinite;
}

.status-dot.is-error {
  background: #e58a80;
  box-shadow: 0 0 0 3px rgba(229, 138, 128, 0.16);
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(117, 199, 149, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(117, 199, 149, 0.03);
  }
}

.status-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 7px 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(6, 14, 30, 0.2);
}

.status-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 72px;
  padding: 1px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.status-stat:last-child {
  border-right: 0;
}

.status-stat strong {
  overflow: hidden;
  color: #fff9ec;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-stat span {
  color: #9faec5;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-stat--wide {
  min-width: 124px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 42px;
  padding-block: 58px 36px;
}

.eyebrow,
.kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 5px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.kicker--light {
  color: var(--gold);
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.6vw, 4.05rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.99;
}

.hero-lede {
  max-width: 63ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.62;
}

.hero-note {
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.hero-note p {
  margin: 0;
}

.hero-note-title {
  margin-bottom: 5px !important;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   ZIP code representative lookup
   -------------------------------------------------------------------------- */

.zip-lookup-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 22px 28px;
  align-items: start;
  margin: 0 0 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 99, 72, 0.08), transparent 18rem),
    #fff;
  box-shadow: var(--shadow-soft, 0 10px 28px rgba(20, 30, 45, 0.05));
}

.zip-lookup-copy h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.zip-lookup-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.lookup-forms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.zip-lookup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lookup-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lookup-divider::before,
.lookup-divider::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid var(--line);
}

.zip-lookup-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.zip-lookup-shell:focus-within {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.zip-lookup-shell input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.zip-lookup-shell input::placeholder {
  color: #8b919d;
  letter-spacing: normal;
}

.zip-lookup-help,
.zip-lookup-status {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.zip-lookup-help {
  color: var(--muted);
}

.zip-lookup-status {
  min-height: 1.05rem;
  color: var(--muted);
}

.zip-lookup-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-column: 1 / -1;
}

.zip-results-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.zip-results-heading {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.zip-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
}

.member-name-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
  max-height: 460px;
  padding: 2px;
  overflow-y: auto;
}

.member-name-results[hidden] {
  display: none;
}

.member-name-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.zip-member-card[role="option"] {
  cursor: pointer;
}

.zip-member-card[role="option"]:focus-visible,
.zip-member-card.is-active {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.zip-member-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.zip-member-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.zip-member-role {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.zip-member-name {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
}

.zip-member-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.zip-member-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 12px;
}

.zip-member-score {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.zip-member-score--high {
  border-color: rgba(154, 52, 52, 0.35);
  color: #8a2d2d;
}

.zip-member-score--mid {
  border-color: rgba(154, 106, 24, 0.35);
  color: #7a5714;
}

.zip-member-score--low {
  border-color: rgba(36, 99, 72, 0.3);
  color: #246348;
}

.zip-member-alignment {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.4;
}

.zip-member-footer .button {
  margin-left: auto;
}

@media (max-width: 820px) {
  .zip-lookup-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Primary section tabs
   -------------------------------------------------------------------------- */

.primary-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--surface-soft);
}

.primary-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 78px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease,
    box-shadow 140ms ease;
}

.primary-tab:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.primary-tab[aria-selected="true"] {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.primary-tab:focus-visible {
  outline: 3px solid rgba(29, 79, 125, 0.3);
  outline-offset: 2px;
}

.primary-tab-kicker {
  color: var(--accent);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-tab[aria-selected="true"] .primary-tab-kicker {
  color: var(--accent-dark);
}

.primary-tab-label {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* --------------------------------------------------------------------------
   Workspace panels
   -------------------------------------------------------------------------- */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.82fr);
  align-items: start;
  gap: 24px;
  padding-bottom: 64px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  padding: 26px 28px 0;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  letter-spacing: -0.015em;
  line-height: 1.16;
}

.panel-badge {
  flex: 0 0 auto;
  margin-top: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.congress-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.congress-picker--light > span {
  color: var(--muted);
}

.congress-picker--light select {
  min-width: 260px;
  border-color: var(--line-strong);
  background-color: #fff;
  color: var(--ink);
}

.congress-picker--light select:focus-visible {
  border-color: var(--blue);
  outline: 2px solid rgba(29, 79, 125, 0.26);
  outline-offset: 1px;
}

.congress-strip .congress-badge.is-live {
  background: var(--green-soft);
  color: var(--green);
}

.congress-strip .congress-badge.is-archive {
  background: var(--amber-soft);
  color: var(--amber);
}

.congress-strip .congress-badge.is-all {
  background: var(--blue-soft);
  color: var(--blue);
}

.search-form {
  margin-top: 18px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-shell:focus-within {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.search-icon {
  flex: 0 0 auto;
  color: var(--muted-soft);
}

.search-shell input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
}

.search-shell input::placeholder {
  color: #8b919d;
}

.search-shell input::-webkit-search-cancel-button {
  cursor: pointer;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.button:hover:not(:disabled) {
  box-shadow: 0 5px 14px rgba(20, 33, 61, 0.14);
}

.button:active:not(:disabled) {
  box-shadow: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.button--dark {
  background: var(--ink);
  color: #fffaf0;
}

.button--dark:hover:not(:disabled) {
  background: var(--ink-soft);
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.button--small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 0.78rem;
}

.button--accent {
  background: var(--gold);
  color: var(--ink-deep);
}

.button--accent:hover:not(:disabled) {
  background: #f0d293;
}

/* Filter tabs */

.filter-row {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.filter-tab:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.filter-tab[aria-pressed="true"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.filter-count {
  min-width: 21px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.filter-tab[aria-pressed="true"] .filter-count {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.member-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.member-chamber-pills {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.member-chamber-pill {
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.2;
}

.member-chamber-pill:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.member-chamber-pill[aria-pressed="true"] {
  background: var(--ink);
  color: #fffaf0;
}

.member-state-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-state-control select {
  min-height: 30px;
  max-width: 220px;
  padding: 5px 26px 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.member-state-control select:focus-visible {
  border-color: var(--blue);
  outline: 2px solid rgba(29, 79, 125, 0.26);
  outline-offset: 1px;
}

.member-filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.71rem;
  font-variant-numeric: tabular-nums;
}

.member-filter-count.is-error {
  color: var(--error);
}

.member-filter-count.is-notice {
  color: var(--amber);
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Results */

.results-wrap {
  padding: 0 28px 28px;
}

.results-meta {
  min-height: 20px;
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.results-meta.is-error {
  color: var(--error);
}

.results-meta.is-notice {
  color: var(--amber);
}

.results {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.result-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.result-group-heading span {
  color: var(--muted-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.record {
  position: relative;
  padding: 17px 18px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.record:hover {
  border-color: var(--line-strong);
  border-left-color: var(--blue);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.record--vote {
  border-left-color: var(--accent);
  cursor: pointer;
}

.record--vote:hover {
  border-left-color: var(--accent);
}

.record-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.chip {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip--vote {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.chip--neutral {
  background: var(--paper-deep);
  color: var(--muted);
}

.chip--member {
  background: var(--green-soft);
  color: var(--green);
}

.chip--congress {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chip--policy {
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--sans);
  letter-spacing: 0.02em;
  text-transform: none;
}

.chip--subject,
.chip--issue {
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.record-policy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.record-policy-label {
  color: var(--muted-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-policy-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.record-date {
  color: var(--muted-soft);
  font-size: 0.73rem;
  font-weight: 600;
}

.record-title {
  margin: 9px 0 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.11rem;
  letter-spacing: -0.005em;
  line-height: 1.32;
}

.record-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.52;
}

.record-subtitle--action {
  margin-top: 7px;
  color: var(--muted-soft);
  font-size: 0.78rem;
}

.summary-preview {
  margin-top: 12px;
  padding: 10px 12px 11px;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--blue-soft);
  color: #2b3d55;
  font-size: 0.8rem;
  line-height: 1.58;
}

.summary-preview.is-empty {
  border-left-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted);
  font-style: italic;
}

.summary-preview-label {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.summary-preview.is-empty .summary-preview-label {
  color: var(--muted-soft);
}

.summary-preview-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.summary-preview.is-empty .summary-preview-text {
  display: block;
  -webkit-line-clamp: unset;
}

/* Member search results */

.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.member-card:hover {
  border-color: var(--line-strong);
  border-left-color: var(--green);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.member-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.member-avatar--d {
  background: var(--blue-soft);
  color: var(--blue);
}

.member-avatar--r {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.member-avatar--i {
  background: var(--amber-soft);
  color: var(--amber);
}

.member-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.member-card-name {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.member-card-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card-arrow {
  flex: 0 0 auto;
  color: var(--muted-soft);
  font-size: 1.05rem;
  line-height: 1;
}

.record-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #eee8dc;
}

.record-words {
  color: var(--muted-soft);
  font-size: 0.71rem;
  font-variant-numeric: tabular-nums;
}

.record-links {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.external-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.external-link::after {
  content: "↗";
  font-size: 0.76em;
  line-height: 1;
}

.result {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.4;
  text-transform: uppercase;
}

.result--pass {
  background: var(--green-soft);
  color: var(--green);
}

.result--fail {
  background: var(--error-soft);
  color: var(--error);
}

.result--neutral {
  background: var(--amber-soft);
  color: var(--amber);
}

.vote-measure {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Empty, loading, and error states */

.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 38px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.error-state {
  border-color: #e7bdb6;
  background: var(--error-soft);
  color: var(--error);
}

.error-state--notice {
  border-color: #e6cc9d;
  background: var(--amber-soft);
  color: var(--amber);
}

.error-state--notice .error-title {
  color: var(--amber);
}

.empty-title,
.error-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 700;
}

.error-title {
  color: var(--error);
}

.empty-copy,
.error-copy {
  max-width: 44ch;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.empty-state .button,
.error-state .button {
  margin-top: 5px;
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.skeleton-line {
  height: 10px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eee7db 25%, #f8f4ec 50%, #eee7db 75%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-line:nth-child(2) {
  width: 74%;
}

.skeleton-line:nth-child(3) {
  width: 48%;
  margin-bottom: 0;
}

.skeleton-line--short {
  width: 32%;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

/* --------------------------------------------------------------------------
   Assistant
   -------------------------------------------------------------------------- */

.assistant {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  height: min(770px, calc(100dvh - 36px));
  min-height: 580px;
  border-color: #283b60;
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 196, 122, 0.08), transparent 24rem),
    linear-gradient(165deg, #172748 0%, var(--ink) 48%, #111d36 100%);
  color: #f5f0e5;
  box-shadow: 0 24px 56px rgba(13, 23, 48, 0.22);
}

.assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.assistant-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.assistant-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(231, 196, 122, 0.45);
  border-radius: 50%;
  background: rgba(231, 196, 122, 0.1);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.assistant .kicker {
  margin-bottom: 2px;
}

.assistant h2 {
  color: #fffaf0;
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
}

.model-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  width: 145px;
}

.model-picker > span {
  color: #96a6be;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.model-picker select {
  width: 100%;
  min-height: 32px;
  padding: 5px 26px 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 7px;
  outline: 0;
  background-color: rgba(4, 11, 25, 0.36);
  color: #f4efe4;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  cursor: pointer;
}

.model-picker select:focus-visible {
  border-color: var(--gold);
  outline: 2px solid rgba(231, 196, 122, 0.4);
  outline-offset: 1px;
}

.model-picker select:disabled {
  cursor: wait;
  opacity: 0.7;
}

.model-picker option {
  background: #fffdf8;
  color: var(--ink);
}

.chat-log {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 15px;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 14px;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  scrollbar-width: thin;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 93%;
  animation: message-in 180ms ease-out;
}

.message--assistant {
  align-self: flex-start;
}

.message--user {
  align-self: flex-end;
  align-items: flex-end;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-label {
  margin: 0 0 5px;
  color: #99a9c0;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.message-bubble {
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px 13px 13px 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #eee8db;
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.message--user .message-bubble {
  border-color: rgba(118, 162, 210, 0.3);
  border-radius: 13px 4px 13px 13px;
  background: #27588b;
  color: #fff;
  white-space: pre-wrap;
}

.message-bubble p {
  margin: 0 0 0.65em;
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.message-bubble h4 {
  margin: 0.9em 0 0.35em;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}

.message-bubble h4:first-child {
  margin-top: 0;
}

.message-bubble ul,
.message-bubble ol {
  margin: 0.3em 0 0.7em;
  padding-left: 1.25em;
}

.message-bubble li {
  margin-bottom: 0.3em;
}

.message-bubble li:last-child {
  margin-bottom: 0;
}

.message-bubble strong {
  color: #fffaf0;
  font-weight: 700;
}

.message-bubble code {
  padding: 0.1em 0.32em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.24);
  font-family: var(--mono);
  font-size: 0.86em;
}

.message--error .message-bubble {
  border-color: rgba(238, 145, 132, 0.42);
  background: rgba(126, 36, 29, 0.34);
  color: #ffded8;
}

.message--error .message-label {
  color: #f2a69b;
}

.message--notice .message-bubble {
  border-color: rgba(231, 196, 122, 0.42);
  background: rgba(138, 90, 17, 0.22);
  color: #f6e3bd;
}

.message--notice .message-label {
  color: var(--gold);
}

.message-meta {
  margin: 6px 2px 0;
  color: #8fa0b8;
  font-size: 0.62rem;
  line-height: 1.4;
}

.sources-block {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.sources-title {
  margin: 0 0 6px;
  color: #a9b7ca;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-link,
.source-text {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9e8ff;
  font-size: 0.66rem;
  line-height: 1.45;
  text-decoration: none;
}

.source-link:hover {
  border-color: rgba(231, 196, 122, 0.55);
  background: rgba(231, 196, 122, 0.1);
  color: #fff6dd;
  text-decoration: underline;
}

.source-link::after {
  content: " ↗";
  font-size: 0.9em;
}

.source-text {
  color: #aebbd0;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9e8ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  line-height: 1.45;
  text-align: left;
  appearance: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.source-chip:hover {
  border-color: rgba(231, 196, 122, 0.55);
  background: rgba(231, 196, 122, 0.1);
  color: #fff6dd;
}

.source-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.source-chip--member {
  border-color: rgba(117, 199, 149, 0.36);
  color: #c9f0d8;
}

.source-chip--member:hover {
  border-color: rgba(117, 199, 149, 0.7);
  background: rgba(117, 199, 149, 0.12);
}

.source-chip--vote {
  border-color: rgba(231, 196, 122, 0.36);
  color: #f3dfb0;
}

.source-chip--vote:hover {
  border-color: rgba(231, 196, 122, 0.7);
  background: rgba(231, 196, 122, 0.12);
}

.source-chip--finance {
  border-color: rgba(126, 173, 224, 0.4);
  color: #d4e6fb;
}

.source-chip--finance:hover {
  border-color: rgba(126, 173, 224, 0.75);
  background: rgba(126, 173, 224, 0.14);
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}

.typing-indicator span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes typing-bounce {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-form {
  flex: 0 0 auto;
  padding: 13px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(4, 11, 25, 0.28);
}

.chat-field {
  padding: 8px 9px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.chat-field:focus-within {
  border-color: rgba(231, 196, 122, 0.62);
  box-shadow: 0 0 0 3px rgba(231, 196, 122, 0.12);
}

.chat-field textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  max-height: 116px;
  padding: 2px 2px 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fffaf0;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
}

.chat-field textarea::placeholder {
  color: #98a6ba;
}

.chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.char-count {
  color: #8e9eb5;
  font-size: 0.63rem;
  font-variant-numeric: tabular-nums;
}

.char-count.is-near-limit {
  color: #f0bd8e;
}

.chat-hint {
  margin: 7px 1px 0;
  color: #8797ad;
  font-size: 0.63rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Drawer
   -------------------------------------------------------------------------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 17, 33, 0.58);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(2px);
  transition: opacity 240ms ease, visibility 240ms ease;
}

.drawer-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(730px, 100%);
  height: 100dvh;
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: -24px 0 64px rgba(9, 17, 33, 0.25);
  transform: translateX(101%);
  visibility: hidden;
  transition:
    transform 280ms cubic-bezier(0.22, 0.7, 0.24, 1),
    visibility 0s linear 280ms;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 280ms cubic-bezier(0.22, 0.7, 0.24, 1),
    visibility 0s linear 0s;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 22px 26px 17px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(173, 58, 49, 0.06), transparent 15rem),
    var(--surface-soft);
}

.drawer-heading {
  min-width: 0;
}

.drawer-heading h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.68rem);
  letter-spacing: -0.015em;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 26px 34px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.drawer-state {
  padding: 42px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.drawer-state.is-error {
  color: var(--error);
}

.drawer-state.is-notice {
  color: var(--amber);
}

.drawer-state .button {
  margin-top: 12px;
}

.drawer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.drawer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.drawer-meta-item strong {
  color: var(--ink);
  font-weight: 700;
}

.drawer-meta-item--subjects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.drawer-meta-label {
  color: var(--muted);
  font-weight: 600;
}

.drawer-section + .drawer-section {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 10px;
}

.section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.14rem;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.tag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--ai {
  background: var(--blue-soft);
  color: var(--blue);
}

.summary-box {
  padding: 15px 17px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--blue-soft);
  color: #26374e;
  font-size: 0.88rem;
  line-height: 1.68;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.summary-box.is-empty {
  border-left-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted);
  font-style: italic;
}

.bill-text {
  max-height: 56vh;
  margin: 0;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf8f1;
  color: #293244;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.72;
  tab-size: 4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 0 0 auto;
  padding: 13px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.drawer-link-slot {
  min-width: 0;
}

.drawer-link-slot .external-link {
  font-size: 0.8rem;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted-soft);
  font-size: 0.73rem;
  line-height: 1.5;
}

.section-count {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
}

.drawer-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.drawer-filter:focus-within {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.drawer-filter svg {
  flex: 0 0 auto;
  color: var(--muted-soft);
}

.drawer-filter input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
}

.drawer-filter input::placeholder {
  color: #8b919d;
}

/* Party breakdown */

.party-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.party-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.79rem;
  font-variant-numeric: tabular-nums;
}

.party-table caption {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  text-align: left;
}

.party-table th,
.party-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #eee8dc;
  text-align: right;
}

.party-table th:first-child,
.party-table td:first-child {
  text-align: left;
}

.party-table thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.party-table tbody tr:last-child td {
  border-bottom: 0;
}

.party-table tfoot td {
  border-top: 2px solid var(--line);
  border-bottom: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.party-table .tally-yea {
  color: var(--green);
  font-weight: 700;
}

.party-table .tally-nay {
  color: var(--error);
  font-weight: 700;
}

.party-table .tally-muted {
  color: var(--muted-soft);
}

.party-name {
  color: var(--ink);
  font-weight: 700;
}

/* Individual member vote table */

.vote-member-scroll {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.vote-member-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.vote-member-table th,
.vote-member-table td {
  padding: 8px 11px;
  border-bottom: 1px solid #eee8dc;
  text-align: left;
  vertical-align: middle;
}

.vote-member-table thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vote-member-table tbody tr:last-child td {
  border-bottom: 0;
}

.vote-member-table tbody tr:hover {
  background: #fcf9f2;
}

.member-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.member-link-button:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.vote-member-empty {
  padding: 22px 14px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Vote position badges */

.position {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.45;
  text-transform: uppercase;
  white-space: nowrap;
}

.position--yea {
  background: var(--green-soft);
  color: var(--green);
}

.position--nay {
  background: var(--error-soft);
  color: var(--error);
}

.position--present {
  background: var(--amber-soft);
  color: var(--amber);
}

.position--not-voting {
  background: var(--paper-deep);
  color: var(--muted);
}

.position--other {
  background: var(--surface-soft);
  color: var(--muted);
}

.member-summary {
  white-space: normal;
}

/* Member voting history */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.history-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
}

.history-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.history-date {
  margin-left: auto;
  color: var(--muted-soft);
  font-size: 0.69rem;
  font-weight: 600;
}

.history-title {
  margin: 8px 0 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
}

.history-question {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #eee8dc;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.text-button:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.text-button::after {
  content: "→";
  font-size: 0.9em;
}

/* Campaign finance */

.finance-panel {
  margin: 0 0 56px;
  scroll-margin-top: 20px;
}

.finance-panel .panel-head {
  padding-bottom: 0;
}

.finance-intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.finance-intro.is-error {
  color: var(--error);
}

.finance-intro.is-notice {
  color: var(--amber);
}

.finance-body {
  padding: 20px 28px 28px;
}

.finance-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.finance-metric {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(29, 79, 125, 0.06), transparent 11rem),
    var(--surface-soft);
}

.finance-metric-label {
  display: block;
  color: var(--muted-soft);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.finance-metric-value {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.24rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.finance-metric-detail {
  display: block;
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 0.67rem;
  line-height: 1.4;
}

.finance-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 20px;
}

.finance-subpanel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.finance-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.finance-subhead h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.3;
}

.finance-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.finance-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.finance-table th,
.finance-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eee8dc;
  text-align: left;
  vertical-align: top;
}

.finance-table thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-table tbody tr:last-child td {
  border-bottom: 0;
}

.finance-table tbody tr:hover {
  background: #fcf9f2;
}

.finance-table th:nth-child(3),
.finance-table th:last-child,
.finance-table td:nth-child(3),
.finance-table td:last-child {
  text-align: right;
}

.finance-committee-name {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.finance-committee-id {
  display: block;
  margin-top: 2px;
  color: var(--muted-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.finance-number {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.finance-member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.finance-member-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 94px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.finance-member-row:hover:not(:disabled) {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.finance-member-row:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.finance-member-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.finance-member-avatar--d {
  background: var(--blue-soft);
  color: var(--blue);
}

.finance-member-avatar--r {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.finance-member-avatar--i {
  background: var(--amber-soft);
  color: var(--amber);
}

.finance-member-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.finance-member-name {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-member-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-member-totals {
  overflow: hidden;
  color: var(--muted-soft);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-member-conduit-note {
  color: var(--amber);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

.finance-member-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.finance-member-score-value {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.finance-member-score-unit {
  color: var(--muted-soft);
  font-size: 0.61rem;
}

.finance-member-score .finance-meter {
  flex-basis: 100%;
  margin-top: 4px;
}

.finance-meter {
  position: relative;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9dfd0;
  box-shadow: inset 0 1px 2px rgba(20, 33, 61, 0.1);
}

.finance-meter-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 420ms ease;
}

.finance-meter--low .finance-meter-bar {
  background: var(--blue);
}

.finance-meter--mid .finance-meter-bar {
  background: var(--amber);
}

.finance-meter--high .finance-meter-bar {
  background: var(--accent);
}

.finance-score-card {
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(29, 79, 125, 0.08), transparent 15rem),
    #fff;
}

.finance-score-card--mid {
  border-left-color: var(--amber);
}

.finance-score-card--high {
  border-left-color: var(--accent);
}

.finance-score-kicker {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.finance-score-value {
  margin: 4px 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.finance-score-caption {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.finance-formula-note {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  color: var(--muted-soft);
  font-size: 0.64rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.finance-conduit-caveat {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--surface-soft);
}

.finance-conduit-caveat-title {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.finance-conduit-caveat-copy,
.finance-conduit-adjusted {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

.finance-conduit-adjusted {
  margin-top: 5px;
  color: var(--ink);
  font-weight: 700;
}

.finance-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.finance-breakdown-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.finance-breakdown dt {
  color: var(--muted-soft);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.finance-breakdown dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.finance-donors {
  margin-top: 18px;
}

.finance-donors-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}

.finance-donor-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-donor-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.finance-donor-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 100%;
  min-width: 0;
}

.finance-donor-name {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.finance-donor-amount {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.finance-donor-meta {
  color: var(--muted-soft);
  font-size: 0.63rem;
  line-height: 1.4;
}

.finance-outside-spending {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.finance-outside-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}

.finance-outside-note,
.finance-outside-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.finance-outside-caption {
  margin-top: 8px;
  font-size: 0.66rem;
}

.finance-outside-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.finance-outside-metric {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.finance-outside-label {
  color: var(--muted-soft);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.finance-outside-value {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.finance-outside-committees-title {
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-outside-committee-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-outside-committee {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.finance-outside-committee-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.finance-outside-committee-name {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.finance-outside-committee-total {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.finance-outside-committee-meta {
  color: var(--muted-soft);
  font-size: 0.64rem;
  line-height: 1.4;
}

.finance-geography {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.finance-geography-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}

.finance-geography-note,
.finance-geography-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.finance-geography-caption {
  margin-top: 10px;
  font-size: 0.66rem;
}

.finance-geography-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.finance-geography-metric {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.finance-geography-label {
  color: var(--muted-soft);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.finance-geography-value {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.finance-geography-states-title {
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-geography-state-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-geography-state {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.finance-geography-state-name {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.finance-geography-state-amount {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sector-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.sector-badge--conduit {
  background: #ece8f6;
  color: #5a3d8a;
}

.sector-badge--corporate {
  background: var(--blue-soft);
  color: var(--blue);
}

.sector-badge--labor {
  background: var(--green-soft);
  color: var(--green);
}

.sector-badge--leadership {
  background: var(--amber-soft);
  color: var(--amber);
}

.sector-badge--ideological {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.sector-badge--other {
  background: var(--paper-deep);
  color: var(--muted);
}

.finance-empty,
.finance-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.finance-empty-title,
.finance-fallback-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}

.finance-empty-copy,
.finance-fallback-copy {
  max-width: 52ch;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.finance-empty .button,
.finance-fallback .button {
  margin-top: 4px;
}

.finance-sync-note {
  margin: 14px 0 0;
  color: var(--muted-soft);
  font-size: 0.66rem;
  line-height: 1.45;
}

.member-finance-block {
  display: flex;
  flex-direction: column;
}

.tag--finance {
  background: var(--green-soft);
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Footer and misc
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding-block: 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-inner p {
  margin: 0;
}

.footer-credit {
  color: var(--muted);
}

.footer-note {
  color: var(--muted-soft);
  text-align: left;
}

.footer-link {
  margin-left: 5px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--accent-dark);
}

.footer-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Disclaimers & methodology dialog */

.disclaimer-modal {
  width: min(680px, calc(100% - 32px));
  max-height: min(84dvh, 760px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(9, 17, 33, 0.3);
  overflow: hidden;
}

.disclaimer-modal[open] {
  display: flex;
  flex-direction: column;
}

.disclaimer-modal::backdrop {
  background: rgba(9, 17, 33, 0.58);
  backdrop-filter: blur(2px);
}

.disclaimer-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  padding: 22px 26px 17px;
  border-bottom: 1px solid var(--line);
}

.disclaimer-modal-head .kicker {
  margin-bottom: 4px;
}

.disclaimer-modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
}

.disclaimer-modal-body {
  overflow-y: auto;
  padding: 20px 26px 28px;
}

.disclaimer-lede {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.disclaimer-list {
  display: grid;
  gap: 17px;
}

.disclaimer-item h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}

.disclaimer-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.finance-score-note {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .disclaimer-modal {
    width: calc(100% - 20px);
    max-height: 88dvh;
  }

  .disclaimer-modal-head,
  .disclaimer-modal-body {
    padding-inline: 18px;
  }

  .footer-link {
    display: inline-block;
    margin-left: 0;
  }
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 360px;
  padding: 13px 16px;
  border: 1px solid #e7bdb6;
  border-radius: var(--radius);
  background: var(--error-soft);
  color: var(--error);
  font-size: 0.82rem;
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   PAC cards and donor alignment
   -------------------------------------------------------------------------- */

.chip--pac {
  background: var(--blue-soft);
  color: var(--blue);
}

.drawer-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.finance-table-row--clickable {
  cursor: pointer;
}

.finance-table-row--clickable:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  background: var(--blue-soft);
}

.finance-donor-item--clickable {
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.finance-donor-item--clickable:hover {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.finance-donor-item--clickable:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.finance-donor-alignment {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.finance-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finance-alignment-card {
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 99, 72, 0.08), transparent 15rem),
    #fff;
}

.finance-alignment-card.is-empty {
  border-left-color: var(--line-strong);
  background: var(--surface-soft);
}

.finance-alignment-label {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.finance-alignment-value {
  margin: 2px 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.finance-alignment-overlap {
  margin: 8px 0 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.45;
}

.finance-alignment-value--text {
  margin: 2px 0 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.finance-plain-summary {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: var(--surface-soft);
}

.finance-plain-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.finance-plain-summary-head .finance-score-kicker {
  margin: 0;
}

.finance-plain-summary-copy {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.58;
}

.pac-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.pac-purpose-callout {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--surface-soft);
}

.pac-purpose-callout.is-conduit {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.pac-purpose-title {
  margin: 0 0 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.pac-purpose-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.pac-purpose-subhead {
  margin: 11px 0 3px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pac-purpose-disclaimer {
  margin: 11px 0 0;
  color: var(--muted-soft);
  font-size: 0.67rem;
  line-height: 1.45;
}

.pac-issue-areas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
}

.pac-issue-areas-label {
  margin-right: 3px;
  color: var(--muted-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pac-bill-section + .pac-bill-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.pac-bill-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.pac-bill-section-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 700;
}

.pac-bill-section-count {
  color: var(--muted-soft);
  font-size: 0.67rem;
  font-weight: 700;
}

.pac-bill-section-note {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.pac-bill-row--policy {
  border-left-color: var(--amber);
}

.pac-bill-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.pac-bill-match {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.pac-bill-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  white-space: normal;
}

.pac-bill-badge--direct {
  background: var(--blue-soft);
  color: var(--blue);
}

.pac-bill-badge--policy {
  background: var(--amber-soft);
  color: var(--amber);
}

.pac-bill-list,
.pac-recipient-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pac-bill-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pac-bill-row:hover:not(:disabled) {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.pac-bill-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.pac-bill-row:disabled {
  cursor: default;
  opacity: 0.7;
}

.pac-bill-number {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}

.pac-bill-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  line-height: 1.4;
}

.pac-recipient-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pac-recipient-row:hover:not(:disabled) {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.pac-recipient-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.pac-recipient-row:disabled {
  cursor: default;
  opacity: 0.65;
}

.pac-recipient-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 800;
}

.pac-recipient-avatar--d {
  background: var(--blue-soft);
  color: var(--blue);
}

.pac-recipient-avatar--r {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pac-recipient-avatar--i {
  background: var(--amber-soft);
  color: var(--amber);
}

.pac-recipient-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pac-recipient-name {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.pac-recipient-meta,
.pac-recipient-alignment {
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.4;
}

.pac-recipient-alignment {
  color: var(--muted-soft);
}

.pac-recipient-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.pac-recipient-amount {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.pac-recipient-score {
  color: var(--muted-soft);
  font-size: 0.63rem;
  white-space: nowrap;
}

.source-chip--pac {
  border-color: rgba(126, 173, 224, 0.5);
  color: #dcecff;
}

.source-chip--pac:hover {
  border-color: rgba(126, 173, 224, 0.85);
  background: rgba(126, 173, 224, 0.16);
}

@media (max-width: 1080px) {
  .pac-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .drawer-head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .finance-score-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pac-bill-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pac-bill-number {
    grid-column: 1 / -1;
  }

  .pac-recipient-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .pac-recipient-avatar {
    width: 34px;
    height: 34px;
  }

  .pac-recipient-numbers {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .pac-telemetry {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 46px 30px;
  }

  .hero-note {
    max-width: 62ch;
    padding: 16px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .assistant {
    position: static;
    height: 700px;
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-block: 18px;
  }

  .header-status {
    align-items: flex-start;
    gap: 8px;
  }

  .header-congress {
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
  }

  .congress-picker {
    flex: 1 1 auto;
    min-width: 0;
  }

  .congress-picker select,
  .congress-picker--light select {
    width: 100%;
    max-width: none;
  }

  .congress-strip {
    align-items: center;
  }

  .status-stats {
    align-self: stretch;
  }

  .status-stat {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 12px;
  }

  .status-stat--wide {
    min-width: 0;
    flex-grow: 1.35;
  }

  .hero h1 {
    max-width: 100%;
  }

  .primary-tab {
    min-height: 68px;
    padding: 12px 15px;
  }

  .primary-tab-label {
    font-size: 1.05rem;
  }

  .panel-head {
    padding: 22px 20px 0;
  }

  .results-wrap {
    padding: 0 20px 22px;
  }

  .assistant-head {
    flex-wrap: wrap;
    padding: 20px 18px 15px;
  }

  .model-picker {
    width: 100%;
  }

  .chat-log {
    padding-inline: 16px;
  }

  .chat-form {
    padding-inline: 14px;
  }

  .drawer-head,
  .drawer-scroll,
  .drawer-foot {
    padding-inline: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-mark svg {
    width: 29px;
    height: 29px;
  }

  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .status-stat strong {
    font-size: 0.92rem;
  }

  .status-stat span {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .primary-tabs {
    gap: 5px;
    padding: 5px;
  }

  .primary-tab {
    min-height: 62px;
    padding: 11px 12px;
  }

  .primary-tab-kicker {
    font-size: 0.57rem;
    letter-spacing: 0.1em;
  }

  .primary-tab-label {
    font-size: 0.98rem;
  }

  .panel-heading {
    flex-direction: column;
    gap: 8px;
  }

  .panel-badge {
    margin-top: 0;
  }

  .search-shell {
    flex-wrap: wrap;
    padding: 7px 7px 7px 12px;
  }

  .search-shell input {
    flex-basis: calc(100% - 35px);
  }

  .search-shell .button {
    width: 100%;
    min-height: 43px;
  }

  .filter-tab {
    padding-inline: 10px;
  }

  .congress-strip {
    flex-wrap: wrap;
  }

  .member-filter-bar {
    align-items: flex-start;
  }

  .member-filter-count {
    flex-basis: 100%;
    margin-left: 0;
  }

  .member-state-control {
    flex: 1 1 auto;
  }

  .member-state-control select {
    flex: 1 1 auto;
    max-width: none;
  }

  .record {
    padding: 15px 14px 13px;
  }

  .record-links {
    width: 100%;
    margin-left: 0;
  }

  .assistant {
    height: auto;
    min-height: 0;
  }

  .chat-log {
    flex: none;
    height: 52vh;
    min-height: 320px;
  }

  .assistant-head {
    padding-inline: 16px;
  }

  .assistant-title {
    gap: 9px;
  }

  .chat-actions {
    align-items: flex-end;
  }

  .drawer-head {
    padding-block: 18px 14px;
  }

  .drawer-scroll {
    padding-block: 16px 26px;
  }

  .bill-text {
    max-height: none;
  }

  .drawer-foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .drawer-foot .button {
    width: 100%;
  }
}

@media (max-width: 1080px) {
  .finance-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .finance-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .finance-body {
    padding: 18px 20px 22px;
  }

  .finance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-subpanel {
    padding: 15px;
  }
}

@media (max-width: 560px) {
  .finance-panel {
    margin-bottom: 36px;
  }

  .finance-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-member-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .finance-member-avatar {
    width: 34px;
    height: 34px;
  }

  .finance-member-score {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .finance-breakdown {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-outside-metrics,
  .finance-geography-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------
   PAC -> LDA -> bill -> vote cross-reference surfaces
   --------------------------------------------------------------- */

.bill-lobbying {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bill-funding-tier {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--surface-soft);
}

.bill-funding-tier--secondary {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.bill-funding-tier-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.bill-funding-tier-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.bill-funding-vote {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.bill-funding-vote:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.bill-funding-vote-head {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.bill-funding-vote-result {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.bill-funding-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bill-funding-split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bill-funding-split.is-total {
  margin-top: 10px;
  background: var(--blue-soft);
  border-color: transparent;
}

.bill-funding-split.is-secondary {
  background: #fff;
  border-color: var(--amber);
}

.bill-funding-split-label {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bill-funding-split-amount {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.bill-funding-split-count {
  color: var(--muted);
  font-size: 0.64rem;
}

.bill-funding-split-divider {
  color: var(--muted-soft);
  font-size: 0.64rem;
}

.bill-funding-split-other {
  flex-basis: 100%;
  color: var(--muted-soft);
  font-size: 0.64rem;
}

.bill-funding-committee-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.bill-funding-committee-chip {
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 0.61rem;
  font-weight: 600;
  text-align: left;
}

.bill-funding-committee-chip:hover {
  border-color: var(--blue);
}

.bill-lobbying-org-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bill-lobbying-org {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.bill-lobbying-org-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bill-lobbying-org-name {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.bill-lobbying-org-split {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.bill-stance-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
}

.bill-stance-badge--support {
  background: var(--blue-soft);
  color: var(--blue);
}

.bill-stance-badge--oppose {
  background: var(--amber-soft);
  color: var(--amber);
}

.bill-lobbying-snippet {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.bill-lobbying-filing-links {
  margin-top: 7px;
  font-size: 0.66rem;
}

.pac-lda-client-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.pac-lda-client-label {
  margin-right: 3px;
  color: var(--muted-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pac-lda-client-empty {
  margin: 0 0 8px;
  color: var(--muted-soft);
  font-size: 0.67rem;
}

.pac-bill-snippet {
  display: block;
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 0.61rem;
  line-height: 1.4;
}

.finance-table-tier-title {
  margin: 12px 0 2px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 700;
}

.finance-table-tier-title:first-child {
  margin-top: 0;
}

.finance-table-tier-note {
  margin: 0 0 7px;
  color: var(--muted-soft);
  font-size: 0.64rem;
  line-height: 1.4;
}

.finance-donor-alignment-heading {
  margin: 11px 0 5px;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.finance-donor-alignment-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-donor-alignment-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.65rem;
}

.finance-donor-alignment-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.finance-donor-alignment-value {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
