/* Fonts are served from this site, not from a third party, so visiting a page contacts no one else. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-tight.woff2') format('woff2'); }
/* Floor The Record. Layout: airy single column, 1080px, outlined cards on white.
   Color jobs: blue = things you can press, red = close votes, purple = crossing party lines.
   Vote counts stay navy and gray so the site's own colors never look like a party's. */
:root {
  --ink: #14213D;
  --text-2: #3D4757;
  --muted: #5A6473;
  --faint: #7F8A99;
  --line: #E1E7F0;
  --line-soft: #EDF1F6;
  --tint: #F4F7FB;
  --accent: #2347F5;
  --accent-dark: #1B37C4;
  --red: #D61F45;
  --purple: #6D28D9;
  --purple-ink: #5B21B6;
  --blue-tint: #F3F5FF;
  --underline: #8FA2FB;
  --nay: #A9B4C4;
  --rep: #B8322B;
  --dem: #2456A6;
  --ind: #5A6473;
  --display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--underline); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.page { display: flex; flex-direction: column; gap: 56px; padding-top: 56px; padding-bottom: 80px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nums { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.01em; text-decoration: none; padding: 6px 0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 8px; flex-grow: 1; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.search { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.search input, .field { width: 220px; max-width: 100%; padding: 10px 14px; border: 1px solid #C3CCDA; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.results { position: absolute; top: 100%; right: 0; margin-top: 6px; width: min(360px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,33,61,.12); padding: 6px; display: none; }
.results.open { display: block; }
.results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--ink); }
.results a:hover, .results a:focus { background: var(--tint); }
.results .none { padding: 10px 12px; color: var(--muted); font-size: 15px; }

/* type */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 12px; }
.h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.02em; max-width: 900px; text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -.015em; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.lede { font-size: 20px; line-height: 1.5; color: var(--text-2); max-width: 680px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.big { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; line-height: .9; font-variant-numeric: tabular-nums; }
.big.xl { font-size: clamp(88px, 11vw, 136px); }
.big.lg { font-size: 72px; }
.big.md { font-size: 56px; }
.dim { color: var(--faint); }

/* surfaces */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }
.card.flush { padding: 0; }
.card.tint { background: var(--tint); }
.card-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 16px 32px; border-bottom: 1px solid var(--line); }
.card-body { padding: 36px 32px; display: flex; flex-direction: column; gap: 32px; }
.band { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > .wrap { padding-top: 72px; padding-bottom: 72px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.between { justify-content: space-between; }
a.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
a.card:hover { border-color: #B9C6DB; color: var(--ink); }
a.card .go:not(.btn) { font-size: 15px; font-weight: 600; color: var(--accent); margin-top: auto; }

/* chips */
.pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 6px; background: var(--ink); color: #fff; }
.pill.out { background: #fff; color: var(--text-2); border: 1px solid #6B7585; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap; }
.tag.soft { background: var(--tint); color: var(--text-2); border: 1px solid var(--line); }
.party { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; background: var(--ind); }
.party.R { background: var(--rep); } .party.D { background: var(--dem); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: var(--line-soft); font-family: var(--display); font-weight: 700; color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 16px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 8px 18px; border-radius: 10px; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid #C3CCDA; }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.go { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; display: inline-flex; align-items: center; }

/* score */
.score { display: flex; flex-wrap: wrap; gap: 24px 72px; align-items: flex-end; }
.score > div { display: flex; flex-direction: column; gap: 4px; }
.score .name { font-size: 20px; font-weight: 700; padding-top: 14px; }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 3px; background: transparent; }
.bar > span { display: block; background: var(--ink); min-width: 0; }
.bar > .n { background: var(--nay); } .bar > .x { background: #DDE3EC; }
.meter { display: block; height: 6px; border-radius: 3px; background: #DDE3EC; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--ink); }
.seats { display: flex; flex-wrap: wrap; gap: 4px; }
.seat { display: block; width: 14px; height: 14px; border-radius: 3px; background: var(--ink); }
.seat.nay { background: var(--nay); }
.seat.present { background: #fff; border: 1.5px solid var(--ink); }
.seat.nv { background: #fff; border: 1.5px solid var(--nay); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--tint); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
th:first-child, td:first-child { padding-left: 28px; } th:last-child, td:last-child { padding-right: 28px; }
th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); background: none; border: none; padding: 0; min-height: 32px; cursor: pointer; }
.rank { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--faint); }
.who { display: flex; align-items: center; gap: 12px; }
.who > span:last-child { display: flex; flex-direction: column; }
.strong { font-weight: 600; }
.list > * { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line-soft); }
.list > *:last-child { border-bottom: none; }
.list .when { flex: 0 0 110px; font-size: 14px; color: var(--muted); }
.list .main { flex: 1 1 380px; display: flex; flex-direction: column; gap: 4px; }
.list .vote { flex: 0 0 64px; font-weight: 700; font-size: 18px; text-align: right; }
details > summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.cols { columns: 3 220px; column-gap: 32px; }
.cols > * { break-inside: avoid; padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.note { border: 1px dashed var(--nay); border-radius: 12px; padding: 14px 16px; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--text-2); }
.hide { display: none !important; }
@media (max-width: 640px) {
  .card, .card-body { padding: 22px 20px; } .card-head { padding: 14px 20px; }
  .score { gap: 20px 40px; } .list > * { padding: 16px 20px; }
  th:first-child, td:first-child { padding-left: 20px; }
}
@media (prefers-reduced-motion: no-preference) { a.card { transition: border-color .15s; } }

/* brand */
.stripe { display: flex; height: 5px; }
.stripe > span { flex: 1; } .stripe > .r, .mark > .r { background: var(--red); } .stripe > .p, .mark > .p { background: var(--purple); } .stripe > .b, .mark > .b { background: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.mark { display: inline-flex; gap: 3px; } .mark > span { width: 9px; height: 9px; border-radius: 2px; }
.hl { color: var(--purple); }

/* tags with a job */
.tag.close { background: var(--red); color: #fff; }
.tag.broke { background: #F1EBFE; color: var(--purple-ink); border: 1px solid #DCCBFB; }
.tag.split { background: #fff; color: var(--text-2); border: 1px solid #C3CCDA; }
.tag.proc { background: var(--tint); color: var(--text-2); border: 1px solid var(--line); }
.tag.status { background: #fff; color: var(--text-2); border: 1px solid #C3CCDA; font-size: 13px; padding: 4px 12px; }
.tag.status.moved { background: var(--blue-tint); color: var(--accent-dark); border-color: #C9D2FB; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.crossed { color: var(--purple-ink); font-weight: 600; }

/* vote rows */
.rows > * { border-bottom: 1px solid var(--line-soft); }
.rows > *:last-child { border-bottom: none; }
.vrow { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 20px 28px; text-decoration: none; color: var(--ink); }
.vrow:hover { background: #FAFBFF; color: var(--ink); }
.vrow .when { flex: 0 0 104px; font-size: 14px; color: var(--muted); }
.vrow .main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vrow .name { font-size: 19px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.vrow .plain { font-size: 15px; color: var(--text-2); }
.vrow .fine, .fine { font-size: 13px; color: var(--muted); }
.vrow .end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; text-align: right; }
.vrow .end b { font-size: 16px; } .vrow .end span { font-size: 15px; color: var(--text-2); }
.vrow .end .pos { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.more { display: block; padding: 18px 28px; font-size: 15px; font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hide-routine [data-routine] { display: none; }

/* the big votes */
a.lead { background: var(--blue-tint); border: 1px solid #DDE3FB; border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; text-decoration: none; color: var(--ink); }
a.lead:hover { border-color: #B9C4F7; color: var(--ink); }
.lead .text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lead .nums { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.lead .title { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.lead .plain { font-size: 19px; line-height: 1.45; color: var(--text-2); max-width: 560px; }
.btn.go, .btn.topic[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.headline-sm { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.12; letter-spacing: -.015em; }

/* members list */
.state { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.state > div:first-child { flex: 0 0 200px; display: flex; flex-direction: column; gap: 2px; }
.state .people { flex: 1 1 520px; min-width: 0; column-width: 250px; column-gap: 40px; }
.person { break-inside: avoid; display: flex; align-items: center; gap: 10px; min-height: 40px; }
.person .dist { flex: 0 0 82px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.person a { font-size: 16px; font-weight: 500; text-decoration-color: transparent; }
.person a:hover { text-decoration-color: var(--accent); }
.party.sm { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.fieldset { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.fieldset .field { min-height: 48px; font-size: 16px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--line); background: var(--blue-tint); border-radius: 20px 20px 0 0; }
@media (max-width: 640px) { a.lead { padding: 24px 20px; } .vrow, .more, .panel-head { padding-left: 20px; padding-right: 20px; } .vrow .end { align-items: flex-start; text-align: left; } }

/* home */
.hero { gap: 20px; padding-top: 24px; }
.search.big { display: block; max-width: 720px; }
.search.big input { width: 100%; min-height: 64px; padding: 16px 24px; font-size: 19px; border-radius: 16px; border: 2px solid #C3CCDA; box-shadow: 0 6px 24px rgba(20,33,61,.06); }
.search.big input:focus { border-color: var(--accent); outline: none; }
.search.big .results { left: 0; right: auto; width: 100%; margin-top: 8px; }
.search.big .results a { font-size: 17px; padding: 12px 16px; }
a.card.trend { gap: 8px; }
.trend .count { font-size: 14px; font-weight: 700; color: var(--accent-dark); background: var(--blue-tint); border: 1px solid #C9D2FB; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .page { gap: 40px; padding-top: 32px; padding-bottom: 56px; }
  .top .wrap { gap: 2px 16px; padding-top: 6px; padding-bottom: 6px; }
  .brand { font-size: 21px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex-basis: 100%; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 10px 10px; }
  .top .search { flex-basis: 100%; padding-bottom: 6px; }
  .top .search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .top .search input { width: 100%; min-height: 44px; font-size: 16px; }
  .top .results { left: 0; right: 0; width: auto; }
  .lede { font-size: 18px; }
  .search.big input { min-height: 56px; font-size: 17px; padding: 14px 18px; }
  .band > .wrap { padding-top: 48px; padding-bottom: 48px; }
  .score { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; align-items: start; }
  .big.xl { font-size: 68px; }
  .big.lg { font-size: 50px; }
  .big.md { font-size: 44px; }
  .score .name { font-size: 17px; padding-top: 8px; }
  .seat { width: 11px; height: 11px; border-radius: 2px; }
  .seats { gap: 3px; }
  .vrow .when { flex-basis: 100%; }
  .state > div:first-child { flex-basis: 100%; }
  .field, select.field { font-size: 16px; }  /* 16px stops phones from zooming in on focus */
  .fieldset, .fieldset .field { width: 100% !important; }
  #lb { min-width: 0 !important; }
  #lb th:nth-child(5), #lb td:nth-child(5), #lb th:nth-child(6), #lb td:nth-child(6), #lb th:nth-child(7), #lb td:nth-child(7) { display: none; }
  #lb th, #lb td { padding: 12px 8px; }
  #lb th:first-child, #lb td:first-child { padding-left: 14px; }
  #lb .meter { display: none; }
  #lb .who { gap: 8px; }
  #lb .rank { font-size: 18px; }
  .cols { columns: 1; }
}

/* landing page: one centered column, search first */
.home { display: flex; flex-direction: column; gap: 72px; padding-top: 88px; padding-bottom: 88px; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.center .h1 { max-width: 820px; }
.center .lede { max-width: 600px; }
.center .search.big { width: 100%; max-width: 680px; margin-top: 12px; text-align: left; }
.tries { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center; font-size: 15px; }
.linkish { font: inherit; color: var(--ink); background: none; border: none; padding: 6px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.linkish:hover { color: var(--accent); text-decoration-color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; }
.pilllink { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px 8px 20px; border-radius: 999px; border: 1px solid #C3CCDA; background: #fff; text-decoration: none; font-size: 16px; font-weight: 600; }
.pilllink:hover { border-color: var(--accent); }
.pilllink span { font-size: 13px; font-weight: 700; color: var(--accent-dark); background: var(--blue-tint); border-radius: 999px; min-width: 28px; padding: 4px 9px; text-align: center; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
a.card.step { gap: 12px; font-size: 16px; color: var(--text-2); }
.step .h3 { color: var(--ink); }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.step:nth-child(1) .num { background: var(--red); } .step:nth-child(2) .num { background: var(--purple); }
@media (max-width: 640px) { .home { gap: 52px; padding-top: 40px; padding-bottom: 56px; } .pilllink { font-size: 15px; padding-left: 16px; } }

/* the promise */
.pledge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; gap: 12px; }
.promise .big-line { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.015em; max-width: 760px; text-wrap: balance; }
.lede.point { color: var(--ink); font-weight: 600; font-size: 22px; line-height: 1.4; max-width: 640px; text-wrap: balance; }
@media (max-width: 640px) { .lede.point { font-size: 19px; } }

/* profile: by the numbers */
.nums4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.card.stat { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px; }
.stat .big { font-size: 48px; }
@media (max-width: 640px) { .nums4 { grid-template-columns: 1fr 1fr; gap: 12px; } .card.stat { padding: 18px; } .stat .big { font-size: 36px; } }

/* numbers you can press to see who voted that way */
a.numlink { display: inline-block; color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--underline); text-decoration-thickness: 3px; text-underline-offset: 8px; }
a.numlink.dim { color: var(--faint); }
a.numlink:hover { color: var(--accent); text-decoration-color: var(--accent); }
.big.lg.numlink { text-decoration-thickness: 2px; text-underline-offset: 6px; }
details[id^="voted-"] { scroll-margin-top: 96px; }
.rollnote { margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; background: var(--blue-tint); font-size: 15px; }

/* the votes drawing the most attention sit above the topic pills */
.pilllink.hot { padding: 10px 22px 10px 16px; background: var(--ink); border-color: var(--ink); color: #fff; font-size: 17px; }
.pilllink.hot:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pilllink.hot i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
@media (max-width: 640px) { .pilllink.hot { font-size: 15px; } }

/* vote numbers shaded by which parties make them up; the sentence under each says the same in words */
.mix { display: inline-block; width: -moz-fit-content; width: fit-content; color: var(--ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
a.numlink.mix:hover { text-decoration-color: var(--ink); }
.who-line { font-size: 15px; font-weight: 600; color: var(--text-2); padding-top: 6px; }
.split3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .6fr); gap: 32px 48px; align-items: start; }
.split3 .seats { padding-top: 14px; }
.seat.R { background: var(--rep); } .seat.D { background: var(--dem); } .seat.I { background: var(--ind); }
.seat.out { background: #fff; border: 2px solid var(--ind); } .seat.out.R { border-color: var(--rep); } .seat.out.D { border-color: var(--dem); }
a.numlink.pc-R, .pc-R.big { color: var(--rep); } a.numlink.pc-D { color: var(--dem); } a.numlink.pc-I { color: var(--ind); }
.bar.pc-R > span:first-child { background: var(--rep); } .bar.pc-D > span:first-child { background: var(--dem); } .bar.pc-I > span:first-child { background: var(--ind); }
.bar.pc-R > .n { background: #E3A39F; } .bar.pc-D > .n { background: #9DB5DC; } .bar.pc-I > .n { background: #B9BEC8; }
@media (max-width: 640px) { .split3 { grid-template-columns: 1fr 1fr; gap: 24px 18px; } }

/* newcomers, coming up, and reaching your representative */
.nav a.startlink { color: var(--purple); font-weight: 600; }
.label.purple { color: var(--purple); }
.pilllink.newhere { padding-right: 20px; border-color: #DCCBFB; background: #F7F3FF; font-weight: 500; flex-wrap: wrap; justify-content: center; text-align: center; }
.pilllink.newhere b { color: var(--purple); font-weight: 700; }
.newline { font-size: 16px; color: var(--text-2); max-width: 720px; margin: 0; }
.note { font-size: 15px; color: var(--text-2); background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; max-width: 720px; margin: 0; }
.uprow { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 18px 28px; text-align: left; }
.uprow + .uprow { border-top: 1px solid var(--line); }
.up-name { font-family: var(--display); font-weight: 600; font-size: 19px; text-decoration: none; color: var(--ink); }
.up-name:hover { text-decoration: underline; }
a.tag.soft { text-decoration: none; }
.reach { gap: 20px; border-color: #DCCBFB; scroll-margin-top: 24px; }
.reach-list:empty { display: none; }
.reach-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.reach-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.reach-row + .reach-row { border-top: 1px solid var(--line); }
.reach-row .who { display: flex; flex-direction: column; gap: 4px; }
.reach-row .who .nm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 18px; font-weight: 600; }
.reach-row .dist { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.reach-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.reach-acts .btn { text-decoration: none; display: inline-flex; align-items: center; }
.start .plain { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 760px; margin: 0; }
.start .bignum { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.path li { display: flex; gap: 16px; align-items: flex-start; padding: 0 0 22px; font-size: 18px; color: var(--text-2); position: relative; }
.path li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.path .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.path li:last-child .num { background: var(--purple); }
.path strong { color: var(--ink); }
.words { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.words .card { gap: 6px; display: flex; flex-direction: column; }
@media (max-width: 640px) { .uprow { padding: 16px 18px; } .reach-acts { width: 100%; } .reach-acts .btn { flex: 1 1 auto; justify-content: center; } }
.reach-row .who { align-items: flex-start; text-align: left; }
.reach .fieldset .field { align-self: flex-start; }
#topics, .reach { scroll-margin-top: 150px; }
.actwrap { padding-top: 8px; padding-bottom: 64px; }
.home + .actwrap { padding-top: 0; }

/* finding your own representative */
.reach-find { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.reach-find .or { padding-bottom: 12px; }
.reach-find input.field { width: 150px; }
.reach-msg { margin: 0; font-size: 16px; color: var(--text-2); max-width: 720px; }
.reach-msg:empty { display: none; }
.reach-row.mine { background: #F7F3FF; }
.reach-row.mine .dist { color: var(--purple); }
.nav a.myrep { color: var(--purple-ink); background: #F1EBFE; border-radius: 999px; padding: 6px 14px; margin: 4px 6px 4px 0; border-bottom: 0; font-weight: 600; align-self: center; }
.yourvote { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0; padding: 14px 20px; border: 1px solid #DCCBFB; background: #F7F3FF; border-radius: 14px; font-size: 18px; }
.zipfind { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.zipfind .search { width: 100%; }
.zipfind .search input { width: 100%; min-height: 52px; font-size: 18px; }
button.linkish.on { color: var(--purple-ink); }
.zipfind .results { left: 0; right: auto; width: 100%; }
/* Start Here and Why: purple only, so nothing reads as one party's color */
.start .btn.go { background: var(--purple); border-color: var(--purple); }
.start .path .num, .start .step .num { background: var(--purple); }
.start a.card .go:not(.btn), .start .step .go { color: var(--purple); }
.start a:not(.btn):not(.card) { text-decoration-color: #C9B5F5; }
.start .search input:focus, .start .field:focus { border-color: var(--purple); outline-color: var(--purple); }
.nav a.startlink[aria-current="page"] { color: var(--purple); border-bottom-color: var(--purple); }

/* labels you can hover, focus or tap for a plain explanation */
.tag.tip { position: relative; cursor: pointer; text-decoration: none; }
.tag.tip:hover, .tag.tip:focus-visible { border-color: var(--purple); color: var(--purple-ink); }
.tag.tip::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: min(280px, 78vw); white-space: normal; text-align: left;
  font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #fff; background: var(--ink); border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(20,33,61,.18);
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.tag.tip:hover::after, .tag.tip:focus-visible::after { opacity: 1; visibility: visible; }
.howcard { scroll-margin-top: 240px; }
.howcard:target { border-color: var(--purple); box-shadow: 0 0 0 3px #E9DFFD; }
@media (hover: none) { .tag.tip::after { display: none; } }

/* chevron progress tracker: dark = done, purple = where it is now, gray = still ahead */
.track { list-style: none; margin: 0; padding: 0; display: flex; max-width: 760px; width: 100%; }
.track li { flex: 1 1 0; min-width: 0; margin-left: -8px; padding: 10px 6px 10px 18px; text-align: center; font-size: 13px; font-weight: 700; white-space: nowrap; background: #E6EAF1; color: var(--muted);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%, 13px 50%); }
.track li:first-child { margin-left: 0; padding-left: 10px; border-radius: 8px 0 0 8px; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%); }
.track li.done { background: var(--ink); color: #fff; }
.track li.now { background: var(--purple); color: #fff; }
.track li.stop { background: #5A6473; color: #fff; text-decoration: line-through; }
.track li span { display: block; overflow: hidden; text-overflow: ellipsis; }
.track.sm { max-width: 520px; margin-top: 8px; }
.track.sm li { font-size: 11px; padding-top: 5px; padding-bottom: 5px; margin-left: -6px; }
.trackbox { display: flex; flex-direction: column; gap: 12px; }
.track-text { font-size: 16px; color: var(--text-2); }
@media (max-width: 640px) { .track li { font-size: 11px; padding: 9px 2px 9px 14px; } .track.sm li { font-size: 10px; padding-left: 12px; } .track li, .track li:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); } .track li:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); } }

/* the big picture: one neutral hue (purple) for every chart; numbers stay in ink */
.tiles { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
a.card.tile { gap: 6px; text-decoration: none; }
.bars { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; }
.barrow { display: grid; grid-template-columns: minmax(120px, 230px) minmax(60px, 1fr) minmax(130px, auto); gap: 6px 16px; align-items: center; padding: 8px 6px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; }
a.barrow:hover { background: #F7F3FF; }
.barrow .bl { font-weight: 600; }
.barrow .bt { height: 12px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.barrow .bt span { display: block; height: 100%; min-width: 3px; background: var(--purple); border-radius: 0 4px 4px 0; }
.barrow .bv { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.barrow .bv strong { color: var(--ink); }
.sharebar { display: flex; gap: 2px; height: 14px; }
.sharebar span { background: var(--purple); border-radius: 4px; min-width: 3px; }
.sharebar span.rest { background: #C9CFDA; }
.sharekey { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text-2); }
.sharekey span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--purple); margin-right: 8px; }
.sharekey span + span::before { background: #C9CFDA; }
.sharekey strong { color: var(--ink); }
.cols-chart { display: flex; align-items: flex-end; gap: 2px; height: 240px; padding-top: 22px; }
.colwrap { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.colwrap .colbar { width: min(100%, 24px); min-height: 2px; background: var(--purple); border-radius: 4px 4px 0 0; }
.colwrap:hover .colbar { background: var(--purple-ink); }
.colwrap .cn { font-size: 11px; color: var(--text-2); }
.colwrap .cl { font-size: 11px; color: var(--muted); height: 30px; text-align: center; line-height: 1.25; }
@media (max-width: 640px) { .barrow { grid-template-columns: 1fr auto; } .barrow .bt { grid-column: 1 / -1; order: 3; } .colwrap .cn { display: none; } .cols-chart { height: 180px; } .colwrap .cl { font-size: 9px; } }

.track li { flex: 1 1 auto; }
.track li span { overflow: visible; }
.track.sm { max-width: 560px; }
.colwrap .barbox { flex: 1 1 0; min-height: 0; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.colwrap .barbox .colbar { flex: none; }
@media (max-width: 640px) { .track li { font-size: 10.5px; padding-left: 12px; padding-right: 0; margin-left: -6px; } .track.sm li { font-size: 9.5px; } }

/* chevron labels sit in the middle of their own shape */
.track li, .track li:first-child { padding-left: 16px; padding-right: 16px; }
.track li:first-child { padding-left: 12px; padding-right: 18px; }
.track.sm li { padding-left: 14px; padding-right: 14px; }
.track.sm li:first-child { padding-left: 10px; padding-right: 16px; }
@media (max-width: 640px) {
  .track li, .track.sm li { padding-left: 9px; padding-right: 9px; margin-left: -5px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%, 7px 50%); }
  .track li:first-child, .track.sm li:first-child { margin-left: 0; padding-left: 7px; padding-right: 11px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
}

/* vote numbers are one solid colour: a party's colour, or purple for a mix of parties */
.mix { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; }
.seat.mixkey { background: var(--purple); }

/* committees */
.bignum.sm, .start .bignum.sm { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ink); }
.role { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; background: #EEF1F7; color: var(--text-2); white-space: normal; vertical-align: middle; }
.role.chair { background: var(--ink); color: #fff; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn.sm.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cmte { padding: 0; }
.cmte > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 22px 26px; }
.cmte > summary::-webkit-details-marker { display: none; }
.cmte .cname { font-size: 24px; }
.cmte .cabout { font-size: 16px; max-width: 760px; }
.cleads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 6px 24px; padding-top: 4px; font-weight: 600; }
.splitbar { display: flex; gap: 2px; height: 6px; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.splitbar .pR { background: var(--rep); } .splitbar .pD { background: var(--dem); } .splitbar .pI { background: var(--ind); }
.csplit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.csplit strong { color: var(--ink); }
.copen { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #C9B5F5; text-underline-offset: 3px; }
.cmte[open] .copen { font-size: 0; } .cmte[open] .copen::after { content: "Hide details"; font-size: 14px; }
.cbody { display: flex; flex-direction: column; gap: 16px; padding: 4px 26px 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.table.subs td, .table.subs th { text-align: left; }
.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px 32px; }
.roster ul, .mcmte ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.roster li { font-size: 15px; }
.roster li.hit { background: #F1EBFE; border-radius: 6px; padding: 2px 6px; margin: -2px -6px; }
.mcmte { padding-top: 10px; }
.mcmte li { font-size: 15px; padding-left: 14px; position: relative; }
.mcmte li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
/* who holds the House */
.housebox { gap: 16px; background: var(--tint); }
.houseflex { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; }
.seatchart { width: min(460px, 100%); height: auto; flex: 0 1 460px; }
.seatchart .sR, .sw.sR { fill: var(--rep); background: var(--rep); } .seatchart .sD, .sw.sD { fill: var(--dem); background: var(--dem); }
.seatchart .sI, .sw.sI { fill: var(--ind); background: var(--ind); }
.seatchart .sV { fill: #fff; stroke: #8E97A8; stroke-width: 1.2; } .sw.sV { background: #fff; border: 1.5px solid #8E97A8; }
.seatchart .sc-n { font-family: var(--display); font-weight: 700; font-size: 34px; fill: var(--ink); } .seatchart .sc-l { font-size: 13px; fill: var(--muted); }
.housekey { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.housekey > div { display: flex; flex-direction: column; gap: 4px; }
.housekey .hk-h { font-weight: 700; color: var(--ink); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
@media (max-width: 640px) { .cmte > summary { padding: 18px; } .cbody { padding: 18px; } .cmte .cname { font-size: 21px; } }
.cmte { scroll-margin-top: 150px; }
.card.tile { display: flex; flex-direction: column; gap: 6px; }
.cfind > label { flex: 1 1 320px; } .cfind > label .field { width: 100%; }
@media (max-width: 640px) {
  .table.subs thead { display: none; }
  .table.subs, .table.subs tbody, .table.subs tr, .table.subs td { display: block; width: auto; }
  .table.subs tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .table.subs td { padding: 2px 0; border: 0; }
  .table.subs td:first-child { font-weight: 600; }
  .table.subs td:nth-child(2)::before { content: "Chair: "; color: var(--muted); font-size: 14px; }
  .table.subs td:nth-child(3)::before { content: "Ranking member: "; color: var(--muted); font-size: 14px; }
}

/* House / Senate switch */
.chamberbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding-top: 22px; }
.chamber { display: inline-flex; border: 1px solid var(--line-2, #C7CFDD); border-radius: 999px; padding: 4px; background: #fff; }
.chamber a { padding: 8px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--text-2); min-height: 40px; display: inline-flex; align-items: center; }
.chamber a[aria-current] { background: var(--purple); color: #fff; }

/* Senate sub-links and the confirmations list */
.chamberlinks { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.chamberlinks a { text-decoration: none; color: var(--text-2); font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.chamberlinks a[aria-current] { color: var(--purple-ink); border-bottom-color: var(--purple); }
.nrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 16px 28px; text-decoration: none; color: var(--ink); }
.nrow + .nrow { border-top: 1px solid var(--line); }
.nrow:hover { background: #F7F3FF; }
.nrow[hidden] { display: none; }
.nrow .when { font-size: 14px; color: var(--muted); }
.nrow .main { display: flex; flex-direction: column; gap: 2px; }
.nrow .nname { font-family: var(--display); font-weight: 600; font-size: 18px; }
.nrow .side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
@media (max-width: 640px) { .nrow { grid-template-columns: 1fr; padding: 14px 18px; } .nrow .side { align-items: flex-start; text-align: left; } }

/* both chambers side by side */
.tag.chamber-house, .tag.chamber-senate { background: #fff; border: 1px solid var(--line-2, #C7CFDD); color: var(--text-2); }
.tag.chamber-senate { border-color: #C9B5F5; color: var(--purple-ink); background: #F7F3FF; }
table.nobills th:nth-child(4), table.nobills th:nth-child(5), table.nobills th:nth-child(6), table.nobills td:nth-child(4), table.nobills td:nth-child(5), table.nobills td:nth-child(6) { display: none; }
.nav a.myrep.sen { background: #fff; border: 1px solid #DCCBFB; }
.reach-sub { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 12px 20px 0; }
.morevotes > summary { cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: #C9B5F5; text-underline-offset: 3px; width: fit-content; }

/* the House / Senate switch lives in the header, on every page */
header .chamber { margin-left: auto; order: 1; flex: none; align-self: center; padding: 3px; }
header .chamber a { padding: 6px 18px; min-height: 36px; font-size: 15px; }
header .wrap > .nav { order: 2; flex-basis: 100%; }
header .wrap > .search { order: 3; }
.chamberbar { padding-top: 18px; }
@media (max-width: 640px) { header .chamber a { padding: 6px 14px; min-height: 34px; } }

/* "your representative / your senators" sits beside the site name, never among the tabs */
header .yours { order: 1; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; min-width: 0; }
header .yours ~ .chamber { margin-left: 12px; }
header .yours a.myrep { color: var(--purple-ink); background: #F1EBFE; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
header .yours a.myrep.sen { background: #fff; border: 1px solid #DCCBFB; }
header .yours .yours-x { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px 4px; }
@media (max-width: 900px) {
  header .wrap > .brand { order: 0; } header .chamber, header .yours ~ .chamber { order: 0; margin-left: auto; }
  header .yours { order: 1; flex-basis: 100%; margin-left: 0; justify-content: flex-start; }
}

/* the personal home page */
.mine .card { text-align: left; }
.minegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px 28px; }
.minecol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mc-name { font-family: var(--display); font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink); }
.minerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.minerow:hover .mr-name { text-decoration: underline; }
.mr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mr-name { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); }
.votechip { flex: none; font-size: 13px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.votechip.nay { background: var(--ink); color: #fff; } .votechip.none { border-color: #B9C1CF; color: var(--muted); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pick { font: inherit; font-size: 15px; font-weight: 600; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2, #C7CFDD); background: #fff; color: var(--ink); cursor: pointer; }
.pick.on, .btn.follow.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.minebill { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.btn.follow { align-self: flex-start; }
.mine [hidden] { display: none !important; }
.mine [data-mine-clear] { font-size: 14px; }

/* eleven tabs in the Senate: keep them on one line on a wide screen */
@media (min-width: 1100px) { .nav { gap: 4px 0; } .nav a { padding: 10px 9px; } }

/* Your Page: always one tap away, beside the House/Senate switch */
header .mypage { order: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 16px; margin-left: -20px; border: 1px solid #DCCBFB; border-radius: 999px; background: #F7F3FF; color: var(--purple-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
header .mypage:hover, header .mypage[aria-current] { background: #EDE4FD; }
#mine { scroll-margin-top: 150px; }
@media (max-width: 900px) { header .mypage { order: 0; margin-left: 0; padding: 6px 10px; font-size: 0; gap: 0; min-height: 40px; } }
@media (max-width: 640px) {
  .top .wrap { column-gap: 8px; } .top .brand { font-size: 19px; gap: 7px; }
  header .chamber a, header .chamber a[aria-current] { padding: 6px 10px; font-size: 14px; }
  header .mypage { min-height: 36px; width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 420px) {
  .top .wrap { column-gap: 6px; } .top .brand { font-size: 17px; gap: 6px; }
  header .chamber { padding: 2px; } header .chamber a, header .chamber a[aria-current] { padding: 6px 8px; font-size: 13px; min-height: 32px; }
  header .mypage { min-height: 34px; width: 34px; }
}

/* which Congress this is, on every page */
.termbar { background: #F7F3FF; border-bottom: 1px solid #E7DCFB; font-size: 14px; color: var(--text-2); }
.termbar .wrap { display: flex; flex-wrap: wrap; gap: 2px 18px; padding-top: 8px; padding-bottom: 8px; align-items: baseline; }
.termbar strong { color: var(--purple-ink); }
.termbar .termnote { color: var(--muted); }

/* accounts */
.acctcard { border-color: #DCCBFB; background: #FBF9FF; }
.signup .btn, .acct .btn.sm[type=submit] { background: var(--purple); border-color: var(--purple); color: #fff; }
.signup .btn:disabled { opacity: .6; cursor: default; }
.btn.danger { color: #B42318; border-color: #F0B8B1; }
.check.big { align-items: flex-start; font-size: 16px; color: var(--ink); } .check.big input { margin-top: 4px; flex: none; }
.acct-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.acct-who { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff; }
.acct [hidden], [data-acct-out][hidden] { display: none !important; }

header .yours ~ .chamber ~ .mypage { font-size: 0; gap: 0; padding: 6px 11px; }
.check.big > span { display: block; font-family: var(--body, Inter, sans-serif); letter-spacing: 0; line-height: 1.45; font-weight: 400; }
.check.big strong { font-weight: 600; letter-spacing: 0; }

/* Your Page as its own page, laid out like an account page */
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #F1EBFE; color: var(--purple); display: inline-flex; align-items: center; justify-content: center; }
.avatar.lg { width: 76px; height: 76px; }
.youhead { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.youact { display: flex; align-items: center; gap: 14px; }
.youpage .minegrid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.youpage .minecol { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fff; }
.youpage .mc-name { font-size: 21px; }
.youempty { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; border-style: dashed; }
.youpage [data-mine-bills] > :first-child, .youpage [data-mine-coming] > :first-child { border-top: 0; padding-top: 0; }
a.youcard { flex-direction: row; align-items: center; gap: 16px; text-align: left; max-width: 760px; margin: 0 auto; width: 100%; }
a.youcard .go { margin: 0 0 0 auto; white-space: nowrap; color: var(--purple); }
@media (max-width: 640px) { a.youcard { flex-wrap: wrap; } a.youcard .go { margin-left: 68px; } .youhead .h1 { font-size: 32px !important; } }

.asks { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }
.basics-head { border-top: 1px solid var(--line); padding-top: 56px; }

/* the newsletter invitation */
.pop { position: fixed; inset: 0; z-index: 50; background: rgba(20,33,61,.45); display: flex; align-items: center; justify-content: center; padding: 18px; animation: popfade .25s ease; }
.pop[hidden] { display: none; }
.pop-card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 32px 30px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(20,33,61,.28); border-top: 6px solid var(--purple); animation: poprise .3s ease; }
.pop-card .h2 { font-size: 30px; line-height: 1.1; margin: 0; }
.pop-lede { margin: 0; font-size: 17px; color: var(--text-2); }
.pop-card .field { width: 100%; min-height: 48px; font-size: 16px; }
.pop-card .btn { min-height: 50px; font-size: 17px; }
.pop-trust { margin: 0; font-size: 14px; color: var(--text-2); background: #F7F3FF; border-radius: 12px; padding: 12px 14px; }
.pop-trust strong { color: var(--purple-ink); }
.pop-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.pop-x:hover { background: var(--tint, #F4F6FA); }
.pop-card > .linkish { align-self: center; color: var(--muted); }
@keyframes popfade { from { opacity: 0; } } @keyframes poprise { from { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pop, .pop-card { animation: none; } }

/* the small Subscribe button, in reach on every page */
.subfab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(109,40,217,.35); }
.subfab:hover { background: var(--purple-ink); }
.subfab[hidden] { display: none; }
@media (max-width: 640px) { .subfab { right: 12px; bottom: 12px; } }

/* topic chips say what a tap will do: + to follow, a tick once followed */
.pick[data-follow]::before { content: "+"; margin-right: 7px; font-weight: 700; color: var(--purple); }
.pick[data-follow].on::before { content: "\2713"; color: #fff; }

/* a past vote that is back in the headlines */
.pilllink.news { border-color: #DCCBFB; background: #F7F3FF; }
.pilllink.news em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--purple); border-radius: 999px; padding: 2px 8px; margin-right: 8px; }

/* Subscribe sits beside Your Page in the header and carries the purple; Your Page steps back to a plain outline */
header .subbtn { order: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 16px; margin-left: -20px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
header .subbtn:hover { background: var(--purple-ink); }
header .subbtn[hidden] { display: none; }
header .subbtn ~ .mypage { margin-left: -24px; border-color: var(--line); background: #fff; color: var(--ink); }
header .subbtn[hidden] ~ .mypage { margin-left: -20px; }
header .subbtn ~ .mypage:hover, header .subbtn ~ .mypage[aria-current] { background: var(--tint, #F4F6FA); }
header .yours ~ .chamber ~ .subbtn { font-size: 0; gap: 0; padding: 6px 12px; }
.pop-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--text-2); }
.pop-list li { padding-left: 26px; position: relative; } .pop-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--purple); font-weight: 700; } .pop-list strong { color: var(--ink); }
@media (max-width: 900px) { header .subbtn { order: 0; margin-left: 0; font-size: 0; gap: 0; padding: 0; width: 40px; min-height: 40px; justify-content: center; } header .subbtn ~ .mypage { margin-left: 0; } }
@media (max-width: 640px) { header .subbtn { width: 36px; min-height: 36px; } }
@media (max-width: 420px) { header .subbtn { width: 34px; min-height: 34px; } }
@media (max-width: 380px) { header .subbtn ~ .mypage, header .subbtn { width: 32px; min-height: 32px; } .top .brand { font-size: 16px; } header .chamber a, header .chamber a[aria-current] { padding: 6px 7px; } }
/* phones, once Subscribe exists: name + a labelled Subscribe on the first row, the House/Senate switch shares the tab row */
@media (max-width: 640px) {
  header .wrap:has(.subbtn) .brand { margin-right: auto; }
  header .wrap:has(.subbtn) .subbtn { width: auto; min-height: 38px; padding: 0 15px; gap: 6px; font-size: 14px; }
  header .wrap:has(.subbtn) .subbtn ~ .mypage { width: 38px; min-height: 38px; }
  header .wrap:has(.subbtn) .chamber { order: 1; margin-left: 0; }
  header .wrap:has(.subbtn) .nav { order: 2; flex: 1 1 0; min-width: 0; width: auto; }
  header .wrap:has(.subbtn) .search, header .wrap:has(.subbtn) .yours { order: 3; }
}
/* the longer name needs a touch less room on small phones */
@media (max-width: 420px) { .top .brand { font-size: 16px; gap: 5px; letter-spacing: -0.02em; } }
@media (max-width: 380px) { .top .brand { font-size: 15px; } }

/* Bills page filters */
.billfilters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px 14px; align-items: end; }
.billfilters .field { width: 100%; min-height: 46px; }
.billfilters select.field { appearance: auto; padding-right: 8px; background: #fff; }
.billfilters select.on { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple) inset; }
.card[hidden] { display: none; }

/* the 60-second briefing home page */
.brief { gap: 56px; }
.briefhead { max-width: 820px; gap: 16px; padding-top: 28px; }
.brieflist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
a.briefitem { flex-direction: row; align-items: flex-start; gap: 20px; text-decoration: none; padding: 24px 26px; }
.briefnum { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #F1EBFE; color: var(--purple); display: flex; align-items: center; justify-content: center; font-family: var(--display, "Inter Tight", Inter, sans-serif); font-weight: 700; font-size: 20px; }
.briefline { font-family: var(--display, "Inter Tight", Inter, sans-serif); font-weight: 700; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.briefresult { font-size: 16px; color: var(--text-2); } .briefresult b { color: var(--ink); }
a.briefitem .go { margin: 0 0 0 auto; white-space: nowrap; align-self: center; color: var(--purple); }
.briefyours { border-color: #DCCBFB; background: #FBF9FF; }
.brief3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.brief3col { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.brief3col .h3 { text-decoration: none; }
.brief3row { font-size: 15px; color: var(--text-2); text-decoration: none; } .brief3row:hover { color: var(--ink); }
.brief3row .pos-yea { color: #1B7F4B; } .brief3row .pos-nay { color: #B42318; } .brief3row b { color: var(--muted); }
@media (max-width: 640px) { a.briefitem { flex-wrap: wrap; gap: 12px; padding: 20px; } a.briefitem .go { margin-left: 56px; } .briefline { font-size: 21px; } .brief { gap: 40px; } }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* "How would you vote?" */
.play { display: flex; flex-direction: column; gap: 16px; max-width: 860px; padding-top: 28px; }
.playcard { gap: 20px; padding: 32px; border-color: #DCCBFB; box-shadow: 0 10px 30px rgba(109,40,217,.08); min-height: 300px; justify-content: center; }
.playask { margin: 0; font-family: var(--display, "Inter Tight", Inter, sans-serif); font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: -0.015em; }
.playbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.playbtn { min-height: 68px; border-radius: 16px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; }
.playbtn.yes { background: var(--ink); color: #fff; } .playbtn:hover { border-color: var(--purple); } .playbtn.yes:hover { background: var(--purple); }
.playyou { margin: 0; font-size: 22px; } .playresult { display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.playbar { height: 14px; border-radius: 999px; background: #E6EAF1; overflow: hidden; } .playbar i { display: block; height: 100%; background: var(--ink); border-radius: 999px 0 0 999px; }
.playyours { background: #F7F3FF; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; } .playwho { margin: 0; font-size: 18px; }
.agree, .differ { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-left: 6px; } .agree { background: var(--purple); color: #fff; } .differ { background: #fff; color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 640px) { .playcard { padding: 22px; } .playask { font-size: 25px; } .playbtn { min-height: 60px; } }
.playcard { display: flex; flex-direction: column; } .playcard > * + * { margin-top: 2px; }
.playcard .playbtns { margin-top: 12px; }
.playcard .btn { background: var(--purple); border-color: var(--purple); color: #fff; }
/* with the "your rep / your senators" pills showing, keep the whole top row on one line */
@media (min-width: 901px) { .top .wrap:has(.yours) { column-gap: 14px; } .top .wrap:has(.yours) .mypage, .top .wrap:has(.yours) .subbtn { margin-left: 0; } }

/* home: search first, Trending in one tight row, then Congress In 30 Seconds */
.homemix { gap: 56px; }
.trendrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: -24px; }
.trendrow .label { margin: 0 6px 0 0; } .trendrow .pilllink { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.h1.thirty { font-size: 44px; margin: 0; }
.brieflist.tight { gap: 12px; } .brieflist.tight a.briefitem { padding: 18px 22px; gap: 16px; align-items: center; }
.brieflist.tight .briefline { font-size: 21px; } .briefsub { font-size: 16px; color: var(--text-2); line-height: 1.45; }
.brieflist.tight .briefnum { width: 38px; height: 38px; font-size: 17px; }
@media (max-width: 640px) { .h1.thirty { font-size: 32px; } .brieflist.tight .briefline { font-size: 19px; } .trendrow { justify-content: flex-start; margin-top: -8px; } }

/* two members side by side */
.vsrow { display: grid; grid-template-columns: 1fr 110px 110px; gap: 10px 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.vsrow:first-child { border-top: 0; }
.vspos { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.said { display: inline-block; min-width: 64px; text-align: center; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 4px 10px; border: 1.5px solid var(--ink); color: var(--ink); background: #fff; }
.said.yea { background: var(--ink); color: #fff; } .said.nv, .said.present { border-color: #B9C1CF; color: var(--muted); }
@media (max-width: 640px) { .vsrow { grid-template-columns: 1fr 1fr; } .vsrow > .stack { grid-column: 1 / -1; } .vspos { flex-direction: row; justify-content: flex-start; gap: 8px; } }

/* accounts in preview: hidden unless this device switched them on */
body[data-acct-preview]:not(.acct-go) :is(.subbtn, [data-acct-out], [data-acct-settings], .pop) { display: none !important; }
.acctsaved { color: #1B7F4B; font-weight: 600; min-height: 1.2em; }
.comingbox { border-color: #DCCBFB; background: #FBF9FF; gap: 6px; max-width: 760px; }
.comingbox { display: flex; flex-direction: column; align-items: flex-start; } .comingbox > * { display: block; }
#reach-h { scroll-margin-top: 200px; }
.pilllink.news em { white-space: nowrap; flex: none; }
@media (max-width: 640px) { .homemix { gap: 40px; } }

/* ---- one spacing rhythm: the Speak Up card stacks like every other card, and it sits one section-gap below the page above it */
.reach { display: flex; flex-direction: column; }
main > .wrap:has(+ .actwrap) { padding-bottom: 0; }
.actwrap, .home + .actwrap { padding-top: 56px; padding-bottom: 80px; }
@media (max-width: 640px) { .actwrap, .home + .actwrap { padding-top: 40px; padding-bottom: 56px; } }
.housebox { display: flex; flex-direction: column; }
a.card > .tags { min-height: 26px; align-items: center; }
@media (max-width: 640px) { .score .spacer { display: none; } }

/* ---- comparison page: split votes gathered by subject, each row opens to the votes behind it */
.vsgroup { border-top: 1px solid var(--line); } .vsgroup:first-child { border-top: 0; }
.vsgroup > summary { list-style: none; display: grid; grid-template-columns: 1fr 110px 110px; gap: 12px 16px; align-items: center; padding: 16px 22px; font-weight: 400; }
.vsgroup > summary::-webkit-details-marker { display: none; }
.vsgroup .vsopen { color: var(--purple, #6D28D9); font-weight: 600; margin-top: 4px; }
.vsgroup[open] .vsopen { font-size: 0; } .vsgroup[open] .vsopen::after { content: "Hide"; font-size: 14px; }
.vsinner { background: #F7F8FB; border-top: 1px solid var(--line); } .vsinner .vsrow { padding-left: 38px; }
@media (max-width: 640px) { .vsgroup > summary { grid-template-columns: 1fr 1fr; } .vsgroup > summary > .stack { grid-column: 1 / -1; } .vsinner .vsrow { padding-left: 22px; } }

/* ---- Start Here: words you will see */
.words { margin: 0; } .word { display: grid; grid-template-columns: 240px 1fr; gap: 8px 32px; padding: 16px 22px; border-top: 1px solid var(--line); scroll-margin-top: 200px; }
.word:first-child { border-top: 0; } .word dt { font-weight: 700; } .word dd { margin: 0; color: var(--text-2, #3B4A66); }
.word:target { background: #F7F3FF; }
@media (max-width: 640px) { .word { grid-template-columns: 1fr; gap: 4px; } }
.vsmore { padding: 16px 22px 16px 38px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); max-width: 860px; } .vsmore p { margin: 0; }
@media (max-width: 640px) { .vsmore { padding-left: 22px; } }
.sumrest > summary { color: var(--purple); font-weight: 600; padding: 0; } .sumrest[open] > summary { margin-bottom: 12px; }
