/* The Congress page. Colors, fonts and the navigation bar come from styles.css. */

.congress { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; color: var(--ink-2); }
.congress h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.2; color: var(--ink); letter-spacing: -0.02em; }
.congress-head p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* As on Finances and the Glossary, the gray band sits behind just the
   heading and intro, ending in its line above the chamber card. The heading
   and intro drift down as you scroll (congress.js) and are cut off at that
   line, so they sink out of sight there. */
body.congress-page::before { display: none; }
.congress-head { position: relative; padding-bottom: 28px; clip-path: inset(-100vh -100vmax 0 -100vmax); }
.congress-head > * { position: relative; will-change: transform, opacity; }
.congress-head::before, .congress-head::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: -1;
  clip-path: inset(0 -100vmax);
}
.congress-head::before { top: -32px; bottom: 0; background: var(--bg-band); box-shadow: 0 0 0 100vmax var(--bg-band); }
.congress-head::after { bottom: 0; height: 1px; background: var(--card-border); box-shadow: 0 0 0 100vmax var(--card-border); }
/* On desktops the window's width includes the scrollbar, so the layer
   below can overhang by that much; don't let that scroll sideways */
html:has(body.congress-page) { overflow-x: clip; }
/* The Capitol: large and faint to the right, behind the words, with its
   base below the band's line (cut off there). It sits in a layer covering
   the band from edge to edge of the window, which cuts off whatever is past
   the edges, so it can never widen the page (the column is centred: each
   edge is 16px plus half the width past 820px beyond it). */
.congress-head > .capitol {
  position: absolute; z-index: 0; top: -32px; bottom: 0;
  left: calc(-16px - max(0px, (100vw - 820px) / 2)); right: calc(-16px - max(0px, (100vw - 820px) / 2));
  overflow: hidden; color: var(--ink); opacity: 0.09; pointer-events: none;
}
/* 160px past the window's right edge, so the dome sits near the right with
   the far wing cut off */
.capitol svg { position: absolute; right: -160px; bottom: -116px; display: block; width: 560px; height: auto; }
.congress-head > h1, .congress-head > p { z-index: 1; }
@media (max-width: 720px) {
  /* Phones: smaller, at the right, mostly behind the intro */
  .congress-head > .capitol { opacity: 0.07; }
  .capitol svg { right: -24px; bottom: -48px; width: 300px; }
  /* The Back row above the heading (nav.js) sits on the same band */
  body.congress-page .back-row { background: var(--bg-band); }
}

/* Party colors: Democrats in a muted slate blue, Republicans in the site's
   red-orange, Independents in stone gray, empty seats in a pale gray */
.congress { --dem: var(--slate); --rep: var(--color-2); --ind: #B3B3AF; --vacant: #E2E2DA; }
/* Vote colors: yea in green, nay in brick red, present in stone gray, not
   voting in a darker pale gray, and no vote (not a member then) as vacant */
.congress { --yea: var(--up); --nay: var(--down); --present: #B3B3AF; --absent: #CFCFC8; }

/* The card the arch sits in, on the same paper as the price card */
.chamber {
  position: relative;
  margin-top: 20px; padding: 24px; border-radius: 20px;
  background: var(--bg) var(--grain); border: 1px solid var(--card-border);
}
.chamber-tabs { flex: 0 1 280px; }
.chamber-tabs .tab[aria-selected="true"] { background: var(--color-1); color: #FFFFFF; font-weight: 700; }
.chamber-tabs .tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Tabs in the middle, the search button on the right */
.chamber-bar { position: relative; display: flex; justify-content: center; align-items: center; }
.search-btn { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); margin: 0; }

/* The search panel: pops out beside the card when there's room (.chamber
   gets search-side), otherwise under the search button */
.search-panel {
  position: absolute; z-index: 10; top: 80px; right: 12px;
  width: 356px; max-width: calc(100% - 24px); padding: 14px;
  border-radius: 14px; background: var(--card);
  box-shadow: 0 2px 4px rgba(27, 26, 23, 0.08), 0 12px 32px rgba(27, 26, 23, 0.16);
}
.chamber.search-side .search-panel { top: 0; right: auto; left: calc(100% + 12px); max-width: none; }
.search-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.search-sub { margin: 2px 0 6px; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .search-panel { transform-origin: top center; animation: menu-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .search-panel.closing { animation: menu-out 0.14s ease-in forwards; pointer-events: none; }
}

/* A search box, with its results listed under it inside the panel */
.finder { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.finder-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.finder-input {
  width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); font: inherit; font-size: 14px; color: var(--ink);
}
.finder-input:focus { outline: 2px solid var(--ink-2); outline-offset: -1px; border-color: transparent; }
.finder-results { max-height: 240px; overflow-y: auto; margin: 6px 0 0; padding: 0; list-style: none; overscroll-behavior: contain; }
.finder-results li { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.finder-results li[aria-selected="true"], .finder-results li:hover { background: var(--nav-fill); }
.finder-results .result-name { display: block; font-size: 14px; color: var(--ink); }
.finder-results .result-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.finder-results .result-empty { cursor: default; font-size: 13px; color: var(--muted); }

/* The vote showing, with a button back to party colors */
.vote-summary {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface);
}
.vote-text { min-width: 0; }
.vote-name { font-size: 14px; color: var(--ink); line-height: 1.4; }
.vote-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }
.vote-clear {
  flex: none; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--color-1); cursor: pointer;
}
.vote-clear:hover { background: var(--nav-fill); }
/* Thumbs up and down: outlined, filled in when chosen (green for up, brick
   red for down) */
.vote-actions { flex: none; display: flex; align-items: center; gap: 4px; }
.rate { display: flex; gap: 2px; }
.rate-btn {
  width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.rate-btn:hover { background: var(--nav-fill); color: var(--ink); }
.rate-btn.rate-down svg { transform: rotate(180deg); }
.rate-btn[aria-pressed="true"] { color: #FFFFFF; background: var(--yea); }
.rate-btn.rate-down[aria-pressed="true"] { background: var(--nay); }
.rate-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rate-small { width: 28px; height: 28px; }
.finder-results li.has-rate { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.finder-results li.has-rate .result-sub { grid-column: 1; }
.result-rate { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 2px; }

/* Your ratings: how many, and the switch to color seats by agreement */
.agree-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px;
  font-size: 13px; color: var(--muted);
}
.agree-toggle { display: flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; }
.agree-bar .vote-clear { margin-left: auto; }
.member-agree { margin-top: 2px; font-size: 13px; color: var(--ink-2); }

/* The same bill's vote in the other chamber, when there is one */
.vote-other {
  margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--color-1);
  text-decoration: underline; text-underline-offset: 2px;
}

.arch { display: block; width: 100%; height: auto; margin-top: 12px; }
.arch-total { font-family: var(--mono); font-size: 34px; font-weight: 500; fill: var(--ink); }
.arch-majority { font-size: 13px; fill: var(--muted); }

/* Each seat is turned to face the middle of the arch (--turn, set in
   congress.js). When a chamber is drawn, a wave sweeps across the arch from
   left to right: each seat grows in, lifts outward a little past its place
   while swelling slightly, then settles back, like a stadium wave. */
.seat { transform-box: fill-box; transform-origin: center; transform: rotate(var(--turn)) translateY(0) scale(1); }
@keyframes seat-wave {
  0% { opacity: 0; transform: rotate(var(--turn)) translateY(0) scale(0.3); }
  45% { opacity: 1; transform: rotate(var(--turn)) translateY(-45%) scale(1.2); }
  100% { opacity: 1; transform: rotate(var(--turn)) translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .seat { animation: seat-wave 0.6s ease-in-out both; }
}

/* The seat being pointed at is outlined in charcoal */
.seat { cursor: pointer; transition: fill 0.3s ease; }
.seat.is-pointed { stroke: var(--ink); stroke-width: 1.5; }

/* The member card: photo on the left, name, party and state on the right */
.member-card {
  position: absolute; z-index: 5; width: 250px; padding: 10px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--card-border);
  box-shadow: 0 2px 4px rgba(27, 26, 23, 0.08), 0 12px 28px rgba(27, 26, 23, 0.14);
  pointer-events: none;
}
.member-top { display: flex; align-items: center; gap: 12px; }
/* Pinned (a seat was clicked): wider, with the member's votes below */
.member-card.is-pinned { width: min(380px, calc(100% - 16px)); pointer-events: auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.member-card.is-pinned .member-top { align-items: flex-start; }
.member-close {
  flex: none; margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.member-close:hover { background: var(--nav-fill); color: var(--ink); }
.member-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* The member's votes: newest first, scrolling inside the card */
.member-votes { margin-top: 10px; border-top: 1px solid var(--line); }
.member-votes-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px 6px;
}
.member-votes-title { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.member-votes-filter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.member-vote-list {
  list-style: none; margin: 0; padding: 0; max-height: min(320px, 45vh); overflow-y: auto; overscroll-behavior: contain;
}
.member-vote-list > li { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-top: 1px solid var(--line); }
.member-vote-list > li:first-child { border-top: 0; }
.mv-text { flex: 1; min-width: 0; }
/* The bill's name shows that vote on the chamber */
.mv-bill {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-size: 13px; line-height: 1.35; color: var(--ink);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.mv-bill b { font-family: var(--mono); font-weight: 500; }
.mv-bill:hover { text-decoration: underline; }
.mv-bill:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.mv-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.mv-cast { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink-2); }
.mv-cast::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cast); }
/* Your side: thumbs, and whether they line up with you */
.mv-mine { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mv-mine .rate { gap: 0; }
.mv-mine .rate-btn { width: 28px; height: 28px; }
.mv-align { font-size: 11px; font-weight: 700; white-space: nowrap; }
.mv-align.yes { color: var(--yea); }
.mv-align.no { color: var(--nay); }
.mv-align.na { color: var(--muted); font-weight: 500; }
.mv-empty { padding: 10px 2px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  /* Phones: the pinned card spans the chamber's card */
  .member-card.is-pinned { width: auto; right: 8px; }
}
.member-photo {
  flex: none; width: 56px; height: 68px; border-radius: 8px; object-fit: cover; background: var(--surface);
}
.member-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.member-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.member-party { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.member-party::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--party); }
.member-where { font-size: 13px; color: var(--muted); }
.member-vote { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--ink); }
.member-vote::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--cast); }
@media (prefers-reduced-motion: no-preference) {
  .member-card:not([hidden]) { animation: menu-in 0.15s ease-out; }
}

.chamber-key {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; color: var(--muted);
}
.chamber-key li { display: flex; align-items: center; gap: 6px; }
.chamber-key i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.chamber-key b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.chamber-note { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }

.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;
}

/* ---------- The member's profile (pinned card) ---------- */
.member-profile { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-stat { padding: 8px; border-radius: 10px; background: var(--surface); }
.mp-stat b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--ink); }
.mp-stat span { display: block; font-size: 11px; line-height: 1.3; color: var(--ink-2); }
.mp-stat small { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.3; color: var(--muted); }
.mp-facts { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.mp-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.mp-links a { color: var(--ink); font-weight: 500; }
.mp-links .mp-office { width: 100%; }

/* ---------- Your alignment, under the seats ---------- */
.align-summary { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
/* Closed at first: the heading opens it */
.align-title {
  display: flex; align-items: center; gap: 6px; padding: 4px 0; cursor: pointer; list-style: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.align-title::-webkit-details-marker { display: none; }
.align-title::before {
  content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}
.align-summary[open] > .align-title::before { transform: rotate(90deg); }
.align-title:hover { color: var(--ink); }
.align-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.align-cols { margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.align-col h3 { margin: 4px 0; font-size: 13px; color: var(--ink); }
.align-col ol { list-style: none; margin: 0; padding: 0; }
.align-member {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 4px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font: 13px var(--sans); text-align: left; cursor: pointer;
}
.align-member:hover { background: var(--nav-fill); }
.align-member:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.align-member i { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--party); }
.align-member .am-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.align-member b { font-family: var(--mono); font-weight: 500; }
.align-member small { color: var(--muted); font-size: 11.5px; }
.align-none { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .align-cols { grid-template-columns: 1fr; } }

/* ---------- What the card shows: Seats or Votes ---------- */
/* Narrower screens: a row of buttons at the top of the card */
.view-rail { display: flex; gap: 4px; margin: 0 0 10px; padding: 4px; border-radius: 12px; background: var(--surface); }
.view-btn {
  flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer;
}
.view-btn:hover { color: var(--ink); }
.view-btn[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(27, 26, 23, 0.14); }
.view-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Wide screens: a strip down the card's right edge, outside it */
@media (min-width: 1000px) {
  .view-rail {
    position: absolute; top: 24px; left: calc(100% + 12px); margin: 0; flex-direction: column; width: 72px;
    background: var(--bg) var(--grain); border: 1px solid var(--card-border); border-radius: 14px;
  }
  .view-btn { flex-direction: column; gap: 3px; min-height: 60px; font-size: 11.5px; }
  /* The search panel sits beyond the strip */
  .chamber.search-side .search-panel { left: calc(100% + 96px); }
}

/* ---------- Votes: recent and close calls ---------- */
.votes-view { padding-top: 4px; }
.vf-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.vf-title { margin: 0; font-size: 17px; color: var(--ink); }
.vf-tabs { flex: 0 1 260px; }
.vf-tabs .tab[aria-selected="true"] { background: var(--color-1); color: #FFFFFF; font-weight: 700; }
.vf-tabs .tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vf-sub { margin: 6px 0 4px; font-size: 12.5px; color: var(--muted); }
.vf-list { list-style: none; margin: 0; padding: 0; }
.vf-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.vf-list > li:first-child .vf-row { border-top: 0; }
.vf-row:hover { background: var(--nav-fill); }
.vf-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.vf-row[aria-current="true"] { box-shadow: inset 2px 0 0 var(--color-2); }
.vf-text { flex: 1; min-width: 0; }
.vf-name, .vf-meta { display: block; }
.vf-name { font-size: 13.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vf-name b { font-family: var(--mono); font-weight: 500; }
.vf-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }
.vf-tally { flex: none; text-align: right; font-family: var(--mono); font-size: 14px; }
.vf-tally small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.vf-tally .y { color: var(--yea); }
.vf-tally .n { color: var(--nay); }

/* ---------- The map view ---------- */
.map-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.map-back {
  margin-right: auto; min-height: 36px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 8px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--ink); font: 500 13px var(--sans); cursor: pointer;
}
.map-back:hover { background: var(--nav-fill); }
.map-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.map-pick { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 13px; color: var(--ink-2); }
.map-pick select {
  min-height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%233A3A38' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; -webkit-appearance: none; color: var(--ink); font: 13px var(--sans);
}
.map-pick select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.us-map { display: block; width: 100%; height: auto; margin-top: 6px; }
/* Outlines stay the same width however far in the map is */
.map-state { stroke: var(--bg); stroke-width: 0.75; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 0.3s ease, opacity 0.4s ease; }
/* Zoomed in: the states around it step back */
.map-state.is-dim { opacity: 0.35; }
.map-state.is-dim:hover { opacity: 0.6; }
.map-districts { opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.map-districts.is-on { opacity: 1; pointer-events: auto; }
.map-district { stroke: var(--bg); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 0.3s ease; }
.map-district.is-hover { stroke: var(--ink); stroke-width: 2; }
.map-label {
  fill: #FFFFFF; font-family: var(--sans); font-weight: 700; text-anchor: middle; dominant-baseline: central;
  paint-order: stroke; stroke: rgba(27, 26, 23, 0.45); stroke-width: 0.12em; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .map-state, .map-districts, .map-district { transition: none; } }
.map-state:hover, .map-state.is-hover { stroke: var(--ink); stroke-width: 1.5; }
.map-state.is-picked { stroke: var(--ink); stroke-width: 2.25; }
.map-info { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); min-height: 64px; }
.map-hint { margin: 0; font-size: 13px; color: var(--muted); }
.map-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.map-name { margin: 0; font-size: 17px; color: var(--ink); }
.map-split { font-size: 12.5px; color: var(--muted); }
.map-members {
  list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px;
  max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
}
/* Phones: the list just runs on, rather than scrolling inside the page */
@media (max-width: 560px) { .map-members { max-height: none; overflow: visible; } }
.map-member {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.map-member:hover, .map-member.is-hover { background: var(--nav-fill); }
.map-member:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.map-member img { flex: none; width: 34px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--surface); }
.map-member .mm-text { min-width: 0; display: flex; flex-direction: column; }
.map-member .mm-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-member .mm-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.map-member .mm-sub i { width: 8px; height: 8px; border-radius: 2px; background: var(--party); }

/* ---------- About this bill ---------- */
.bill-details { flex: 1 0 100%; margin-top: -2px; padding-top: 8px; border-top: 1px solid var(--line); }
/* Closed at first, like Your alignment */
.bill-title {
  display: flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; list-style: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.bill-title::-webkit-details-marker { display: none; }
.bill-title::before {
  content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}
.bill-details[open] > .bill-title::before { transform: rotate(90deg); }
.bill-title:hover { color: var(--ink); }
.bill-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.bill-body { padding-top: 8px; font-size: 13px; color: var(--ink-2); }

/* How far it got: dots joined by a line, filled in for each step done */
.bill-steps { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; }
.bill-steps li { position: relative; flex: 1; min-width: 0; padding-top: 18px; text-align: center; }
.bill-steps li::before {
  content: ""; position: absolute; top: 3px; left: 50%; width: 10px; height: 10px; margin-left: -6px;
  border: 2px solid var(--border); border-radius: 50%; background: var(--surface); z-index: 1;
}
.bill-steps li + li::after { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.bill-steps li.is-done::before { border-color: var(--ink); background: var(--ink); }
.bill-steps li.is-done + li.is-done::after, .bill-steps li.is-done + li.is-failed::after { background: var(--ink); }
.bill-steps li.is-failed::before { border-color: var(--nay); background: var(--nay); }
.step-name, .step-date { display: block; padding: 0 1px; }
.step-name { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.is-waiting .step-name { color: var(--muted); font-weight: 500; }
.is-failed .step-name { color: var(--nay); }
.step-date { margin-top: 1px; font-size: 11px; color: var(--muted); }

.bill-summary p { margin: 0 0 8px; line-height: 1.5; }
.bill-source { margin: 0 0 10px; font-size: 11.5px; color: var(--muted); }
.bill-facts { display: grid; grid-template-columns: max-content 1fr; gap: 5px 12px; margin: 0 0 10px; }
.bill-facts dt { font-size: 12px; color: var(--muted); }
.bill-facts dd { margin: 0; min-width: 0; line-height: 1.4; }
.bill-person, .bill-topic {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--color-1); cursor: pointer;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px;
}
.bill-person:hover, .bill-topic:hover { text-decoration-color: currentColor; }
.bill-person:focus-visible, .bill-topic:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
.bill-prices { display: flex; flex-wrap: wrap; gap: 4px; }
.bill-more { font-size: 12.5px; font-weight: 500; color: var(--color-1); }
@media (max-width: 560px) {
  .bill-facts { grid-template-columns: 1fr; gap: 1px; }
  .bill-facts dd { margin-bottom: 6px; }
  .step-name { font-size: 10.5px; letter-spacing: -0.01em; }
  .step-date { font-size: 10px; }
}

/* A price card link with its icon */
.price-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none;
}
.price-link:hover { background: var(--nav-fill); }
.price-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Votes by topic ---------- */
.vf-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.vf-topic {
  min-height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  color: var(--ink-2); font: 500 12.5px var(--sans); cursor: pointer;
}
.vf-topic:hover { color: var(--ink); background: var(--nav-fill); }
.vf-topic[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 700; }
.vf-topic:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vf-count { font-family: var(--mono); font-size: 11px; opacity: 0.7; }
.vf-tied { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.vf-tied > span { margin-right: 2px; }

/* ---------- Campaign money ---------- */
.congress { --m-small: #0B6B43; --m-large: #7FB394; --m-pacs: #D49A1A; --m-party: #8C8C86; --m-self: #6E5A9B; --m-other: #D8D8D0; }
.mp-money { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
/* Closed at first; the heading says how much they raised */
.mp-money-title {
  display: flex; align-items: baseline; gap: 6px; padding: 2px 0; cursor: pointer; list-style: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.mp-money-title::-webkit-details-marker { display: none; }
.mp-money-title::before {
  content: ""; align-self: center; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}
.mp-money[open] > .mp-money-title::before { transform: rotate(90deg); }
.mp-money-title b { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.mp-money-title:hover { color: var(--ink); }
.mp-money-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.mp-money-body { padding-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.mp-money-body .mp-stat b { font-size: 16px; }
.money-head { margin: 12px 0 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.money-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.money-bar i { display: block; height: 100%; min-width: 2px; }
.money-bar i + i { box-shadow: inset 1px 0 0 var(--card); }
.money-key { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 1px; }
/* Each row (and each part of the bar) shows what's in it underneath */
.mk-row {
  width: 100%; display: flex; align-items: center; gap: 6px; padding: 3px 4px; border: 0; border-radius: 6px;
  background: none; font: inherit; text-align: left; cursor: pointer;
}
.mk-row:hover, .mk-row.is-on { background: var(--surface); }
.mk-row[aria-expanded="true"] { box-shadow: inset 2px 0 0 var(--ink); }
.mk-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.money-bar i { cursor: pointer; transition: opacity 0.15s ease; }
.money-bar:has(i.is-on) i:not(.is-on) { opacity: 0.4; }
.money-detail { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.money-hint { margin: 0; font-size: 12px; color: var(--muted); }
.md-head { margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--ink); }
.money-detail .money-note { margin: 6px 0 0; }
.money-sizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.money-sizes li { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 8px; }
.ms-name { color: var(--ink); }
.ms-bar { height: 8px; border-radius: 4px; background: var(--card); overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: var(--m-large); }
.money-sizes b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.money-key i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.mk-name { flex: 1; min-width: 0; color: var(--ink); }
.mk-name small { font-size: 11px; color: var(--muted); }
.mk-amount { flex: none; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.money-line { margin: 10px 0 0; }
.money-employers { margin: 0; padding: 0 0 0 18px; display: grid; gap: 3px; }
.money-employers li { padding-left: 2px; }
.money-employers li span { color: var(--ink); }
.money-employers li b { float: right; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.money-note { margin: 6px 0 8px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }

