
:root {
  --paper: #f6f2e9;
  --ink: #221f1a;
  --muted: #6f685b;
  --rule: #d8cfbd;
  --rule-strong: #1f1c17;
  --panel: #fffaf0;
  --dark: #1f1d19;
  --dark-muted: #bdb29e;
  --accent: #9c3a2e;
  --accent-2: #426b5a;
  --warn: #b64233;
  --ok: #3f6f51;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Public Sans", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px double var(--rule-strong);
  padding: 14px clamp(18px, 4vw, 48px);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.site-header nav a,
.kicker,
.issue-number,
.snapshot {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

main {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .9;
  font-weight: 650;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .96;
  font-weight: 650;
}

.lede {
  max-width: 66ch;
  font-size: 18px;
  color: var(--muted);
}

.lookup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr);
  gap: 32px;
  padding: clamp(34px, 7vw, 76px) 0 34px;
  border-bottom: 3px double var(--rule-strong);
}

.lookup-copy,
.lookup-actions {
  min-width: 0;
}

.lookup-actions {
  align-self: end;
  display: grid;
  gap: 18px;
}

.address-form,
.search-box {
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  padding: 18px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  gap: 8px;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rule);
  background: #fffdf7;
  color: var(--ink);
  font: 500 16px/1.2 "Public Sans", Arial, sans-serif;
  padding: 12px 13px;
}

button,
.button-link {
  border: 1px solid var(--rule-strong);
  background: var(--dark);
  color: #fffaf0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  font: 700 14px/1 "Public Sans", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.button-link.secondary {
  background: transparent;
  color: var(--ink);
}

.privacy,
.form-status,
.table-note,
.empty-note {
  color: var(--muted);
  font-size: 13px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 32px 0 18px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding-bottom: 60px;
}

.rep-card {
  border-top: 2px solid var(--rule-strong);
  background: rgba(255, 250, 240, .58);
  min-height: 148px;
  padding: 14px 12px;
  display: grid;
  gap: 7px;
  align-content: start;
  text-decoration: none;
}

.rep-card strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.rep-card__district,
.mini-flag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-flag {
  color: var(--accent);
}

.rep-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 46px 0 30px;
  border-bottom: 3px double var(--rule-strong);
}

.rep-portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule-strong);
  background: var(--dark);
  overflow: hidden;
}

.rep-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--dark-muted);
  font-family: "Newsreader", Georgia, serif;
  font-size: 72px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
}

.party-toggle {
  background: transparent;
  color: var(--muted);
  border: 1px dashed #b7ad96;
  min-height: 34px;
  padding: 7px 10px;
}

.is-hidden {
  display: none;
}

.funding-flag {
  border: 1px solid rgba(156, 58, 46, .45);
  color: var(--accent);
  padding: 5px 9px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 3px double var(--rule-strong);
}

.summary-pill {
  min-height: 96px;
  border-right: 1px solid var(--rule);
  padding: 16px 12px;
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.summary-pill:last-child {
  border-right: 0;
}

.summary-pill span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-pill strong,
.issue-status {
  font-size: 14px;
  text-transform: uppercase;
}

.aligned strong,
.issue-status.aligned {
  color: var(--ok);
}

.not-aligned strong,
.issue-status.not-aligned {
  color: var(--accent);
}

.issues {
  padding: 20px 0 80px;
}

.issue {
  border-bottom: 1px solid var(--rule-strong);
  padding: 30px 0;
}

.issue-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.issue p {
  max-width: 78ch;
  color: var(--muted);
}

.issue-position,
.funding-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 18px 0;
}

.issue-position div,
.funding-totals div {
  background: var(--panel);
  padding: 13px;
}

.issue-position span,
.funding-totals span {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

details {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.evidence-list div {
  background: var(--panel);
  padding: 12px;
}

dt {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--rule);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--panel);
}

th,
td {
  border-bottom: 1px solid var(--rule);
  text-align: left;
  padding: 10px 11px;
  vertical-align: top;
  font-size: 14px;
}

th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.num {
  text-align: right;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 24px, 1080px);
  }

  .site-header {
    padding: 12px;
  }

  .lookup-shell,
  .rep-hero {
    grid-template-columns: 1fr;
  }

  .rep-portrait {
    max-width: 220px;
  }

  .input-row,
  .hero-actions {
    flex-direction: column;
  }

  button,
  .button-link {
    width: 100%;
  }

  .score-strip,
  .issue-position,
  .funding-totals,
  .evidence-list {
    grid-template-columns: 1fr;
  }

  .summary-pill {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .issue-header {
    grid-template-columns: 1fr;
  }
}

.rep-page {
  background: #f6f2e9;
}

.editorial-shell {
  font-family: "Newsreader", Georgia, serif;
  background: #f6f2e9;
  color: #1a1916;
  min-height: 100vh;
  padding: 0 0 90px;
}

.editorial-topbar {
  background: #1a1916;
  color: #f6f2e9;
}

.editorial-topbar > div {
  max-width: 1000px;
  margin: 0 auto;
  padding: 9px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.editorial-topbar a {
  color: #f6f2e9;
  text-decoration: none;
  font: 600 13px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .02em;
}

.editorial-topbar span {
  font: 500 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b3aa97;
  white-space: nowrap;
}

.editorial-masthead {
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 32px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  border-bottom: 3px double #1a1916;
}

.editorial-masthead div:first-child {
  font: 700 13px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.editorial-masthead div:last-child {
  font: italic 400 15px/1 "Newsreader", Georgia, serif;
  color: #6b6457;
}

.editorial-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 38px 32px 30px;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 40px;
  border-bottom: 1px solid #d8d0bf;
}

.editorial-kicker,
.issue-kicker {
  font: 700 12px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9c3a2e;
}

.editorial-hero h1 {
  font: 600 58px/1 "Newsreader", Georgia, serif;
  margin: 10px 0 12px;
  letter-spacing: 0;
}

.editorial-hero p {
  font: italic 400 19px/1.45 "Newsreader", Georgia, serif;
  color: #4b463c;
  margin: 0;
  max-width: 48ch;
}

.editorial-party {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.party-eyebrow {
  font: 600 13px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a8474;
}

.party-value {
  font: 600 16px/1 "Public Sans", Arial, sans-serif;
}

.party-hidden {
  font: 500 12px/1 "Public Sans", Arial, sans-serif;
  color: #8a8474;
  border: 1px dashed #b7ad96;
  padding: 5px 9px;
  border-radius: 2px;
}

.editorial-party button {
  background: none;
  border: 0;
  color: #9c3a2e;
  font: 600 13px/1 "Public Sans", Arial, sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  padding: 0;
  width: auto;
}

.alignment-line {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2dac9;
  font: 500 22px/1.3 "Newsreader", Georgia, serif;
  max-width: 44ch;
}

.alignment-line span {
  color: #9c3a2e;
  font-weight: 700;
}

.editorial-portrait {
  aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(135deg, #e8dec8 0 11px, #ded3ba 11px 22px);
  border: 1px solid #c9bfa6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  filter: grayscale(1);
}

.editorial-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-portrait span {
  font: 500 11px/1 "IBM Plex Mono", monospace;
  color: #8a8474;
  letter-spacing: .04em;
}

.portrait-caption {
  font: italic 400 12px/1.4 "Newsreader", Georgia, serif;
  color: #8a8474;
  margin-top: 6px;
  text-align: center;
}

.editorial-main,
.editorial-cta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
}

.editorial-issue {
  padding: 38px 0;
  border-bottom: 1px solid #d8d0bf;
}

.issue-grid {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 42px;
}

.editorial-issue h2 {
  font: 600 34px/1.08 "Newsreader", Georgia, serif;
  margin: 8px 0 14px;
  letter-spacing: 0;
}

.editorial-issue p {
  font: 400 19px/1.5 "Newsreader", Georgia, serif;
  color: #2b2820;
  margin: 0 0 18px;
  max-width: 62ch;
}

.impact-label {
  font: 700 11px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8474;
  margin-bottom: 8px;
}

.impact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  font: 400 17px/1.45 "Newsreader", Georgia, serif;
  color: #2b2820;
  padding: 0 0 6px 18px;
  position: relative;
}

.impact-list span {
  position: absolute;
  left: 0;
  top: 0;
  color: #9c3a2e;
}

.issue-grid aside {
  min-width: 0;
}

.verdict-label {
  font: 700 11px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a8474;
  border-top: 2px solid #1a1916;
  padding-top: 11px;
}

.verdict {
  font: 600 26px/1.05 "Newsreader", Georgia, serif;
  margin: 9px 0 2px;
}

.verdict.aligned {
  color: #2f6b3f;
}

.verdict.not-aligned {
  color: #9c3a2e;
}

.aside-label {
  margin-top: 14px;
  font: italic 400 16px/1.35 "Newsreader", Georgia, serif;
  color: #6b6457;
}

.aside-value {
  font: 600 18px/1.3 "Newsreader", Georgia, serif;
}

.aside-detail {
  font: 400 13px/1.4 "Public Sans", Arial, sans-serif;
  color: #8a8474;
  margin-top: 4px;
}

.editorial-detail-btn {
  margin-top: 14px;
  background: none;
  border: 1px solid #1a1916;
  color: #1a1916;
  font: 600 13px/1 "Public Sans", Arial, sans-serif;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 2px;
  min-height: auto;
  width: auto;
}

.editorial-record {
  background: #efe9db;
  border: 1px solid #d8d0bf;
  padding: 20px 22px;
  margin-top: 18px;
}

.record-heading {
  font: 700 11px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8474;
  margin-bottom: 8px;
}

.record-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #ddd5c4;
}

.record-row span:first-child,
.funding-row span:first-child {
  font: 500 13px/1.3 "IBM Plex Mono", monospace;
  color: #6b6457;
}

.record-row span:nth-child(2) {
  font: 400 16px/1.35 "Newsreader", Georgia, serif;
  color: #2b2820;
}

.record-row span:nth-child(3),
.record-row a {
  font: 600 14px/1 "Public Sans", Arial, sans-serif;
  color: #2b2820;
}

.editorial-source-grid,
.funding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.editorial-source-grid {
  grid-template-columns: repeat(3, 1fr);
}

.editorial-source-grid div {
  border-bottom: 1px solid #ddd5c4;
  padding: 0 0 12px;
}

.editorial-source-grid span {
  display: block;
  font: 700 11px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8474;
  margin-bottom: 7px;
}

.editorial-source-grid strong {
  font: 600 16px/1.3 "Newsreader", Georgia, serif;
}

.funding-amount {
  font: 600 22px/1 "Newsreader", Georgia, serif;
  color: #9c3a2e;
}

.funding-label {
  font: 400 15px/1.4 "Newsreader", Georgia, serif;
  color: #4b463c;
  margin: 4px 0 12px;
}

.funding-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 10px;
  font: 400 13px/1.3 "IBM Plex Mono", monospace;
  color: #3b372f;
  padding: 6px 0;
  border-bottom: 1px solid #ddd5c4;
}

.funding-row span:last-child {
  font-weight: 600;
}

.funding-empty,
.funding-count,
.funding-note {
  font: 400 13px/1.4 "Public Sans", Arial, sans-serif;
  color: #8a8474;
  margin-top: 10px;
}

.funding-count a,
.cta-grid a {
  color: #9c3a2e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-cta {
  margin-top: 46px;
}

.editorial-cta > div {
  border-top: 3px double #1a1916;
  padding-top: 24px;
}

.editorial-cta h2 {
  font: 600 32px/1.08 "Newsreader", Georgia, serif;
  margin: 0 0 6px;
}

.editorial-cta p {
  font: italic 400 18px/1.5 "Newsreader", Georgia, serif;
  color: #5b554a;
  margin: 0 0 24px;
  max-width: 60ch;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cta-grid > div {
  border: 1px solid #c9bfa6;
  background: #fbf8f1;
  padding: 22px;
}

.cta-grid > div > div {
  font: 700 11px/1 "Public Sans", Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9c3a2e;
}

.cta-grid h3 {
  font: 600 21px/1.15 "Newsreader", Georgia, serif;
  margin: 8px 0;
}

.cta-grid p {
  font: 400 16px/1.45 "Newsreader", Georgia, serif;
  color: #4b463c;
  margin: 0 0 16px;
}

@media (max-width: 760px) {
  .editorial-topbar > div,
  .editorial-masthead,
  .editorial-hero,
  .editorial-main,
  .editorial-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .editorial-topbar > div,
  .editorial-masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .editorial-hero,
  .issue-grid,
  .funding-grid,
  .editorial-source-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .editorial-hero {
    gap: 24px;
  }

  .editorial-hero h1 {
    font-size: 44px;
  }

  .editorial-portrait {
    width: min(190px, 70vw);
  }

  .record-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
