:root {
  --navy: #0a2540;
  --navy-deep: #061a31;
  --navy-soft: #14365f;
  --crimson: #b22234;
  --crimson-deep: #8a1a28;
  --gold: #c9a449;
  --gold-soft: #e0c684;
  --ivory: #faf6ee;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: #e7e1d1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--crimson-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 2px solid var(--gold);
}
.topbar span { color: var(--gold-soft); }

/* ---------- HEADER ---------- */
.site-header {
  background: linear-gradient(180deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  color: var(--ivory);
  position: relative;
}
.site-header::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--navy) 0%, var(--navy) 33%,
    var(--ivory) 33%, var(--ivory) 66%,
    var(--crimson-deep) 66%, var(--crimson-deep) 100%);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
  text-decoration: none;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--crimson-deep);
  display: grid; place-items: center;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px var(--crimson-deep);
}
.brand-text {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand-text span {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-top: 2px;
}
.menu {
  display: flex; gap: 28px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.menu a {
  color: var(--ivory);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.menu a:hover { color: var(--gold-soft); text-decoration: none; }
.menu a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--gold);
  color: var(--ivory);
  padding: 8px 12px; border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    display: none;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .menu.open { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 24px 110px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(201,164,73,0.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ivory);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 40px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(38px, 6vw, 64px);
  margin: 0 0 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(250, 246, 238, 0.85);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--crimson);
  color: white;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
  border: 1px solid var(--crimson);
}
.hero-cta:hover { background: var(--crimson-deep); text-decoration: none; transform: translateY(-1px); }
.hero-cta.ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,0.4);
  margin-left: 8px;
}
.hero-cta.ghost:hover { background: rgba(255,255,255,0.08); }

.stars {
  margin-top: 48px;
  display: flex; justify-content: center; gap: 14px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
}
.stars span { opacity: 0.6; }

/* ---------- DEBATE BANNER ---------- */
.debate-banner {
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 50%, #9c1a28 100%);
  color: var(--ivory);
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
.debate-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.debate-banner-inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}
.debate-banner .badge {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  background: var(--ivory); color: var(--crimson-deep);
  padding: 4px 14px; border-radius: 999px;
  font-weight: 700; margin-bottom: 10px;
}
.debate-banner h2 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--ivory);
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 8px;
  font-weight: 700;
}
.debate-banner h2 em { color: #ffd97a; font-style: italic; }
.debate-banner p {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}
.debate-banner .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ivory);
  color: var(--crimson-deep);
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  white-space: nowrap;
}
.debate-banner .cta:hover { background: var(--gold-soft); text-decoration: none; }

@media (max-width: 760px) {
  .debate-banner-inner { grid-template-columns: 1fr; text-align: center; }
}

/* ---------- DEBATE PAGE ---------- */
.debate-card {
  max-width: 760px;
  margin: 40px auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--crimson);
  border-radius: 6px;
  padding: 40px 36px;
  box-shadow: 0 10px 40px -20px rgba(10,37,64,0.3);
}
.debate-card h3 {
  font-size: 28px;
  margin: 0 0 8px;
  text-align: center;
}
.debate-card .host {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  font-weight: 700;
  margin-bottom: 30px;
}
.debate-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--line);
}
.debate-info .block {
  background: var(--ivory);
  padding: 18px 20px;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}
.debate-info .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.debate-info .value {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.debate-info .value small {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}
.debate-schedule {
  list-style: none;
  margin: 0; padding: 0;
}
.debate-schedule li {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.debate-schedule li:last-child { border-bottom: none; }
.debate-schedule .time {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--crimson-deep);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.debate-schedule .event {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 19px;
  color: var(--navy);
  font-weight: 600;
}
.debate-schedule .event small {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .debate-info { grid-template-columns: 1fr; }
  .debate-schedule li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- SECTIONS ---------- */
section { padding: 80px 24px; }
.container { max-width: 1180px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  color: var(--crimson-deep);
  border-color: var(--crimson-deep);
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 16px 0 12px;
}
.section-header p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

.divider {
  height: 2px;
  width: 60px;
  background: var(--gold);
  margin: 24px auto;
}

/* ---------- CANDIDATE GRID ---------- */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.candidate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 6px;
  padding: 32px 26px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.candidate-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  opacity: 0;
  transition: opacity .2s ease;
}
.candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(10, 37, 64, 0.35);
  border-color: var(--gold);
}
.candidate-card:hover::after { opacity: 1; }
.candidate-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  display: grid; place-items: center;
  border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 2px var(--navy), 0 8px 24px -10px rgba(10,37,64,0.4);
  overflow: hidden;
}
.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.candidate-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.candidate-seat {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.candidate-status {
  display: inline-block;
  font-size: 11px;
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.candidate-status.incumbent { color: var(--navy); border-color: var(--gold); background: rgba(201,164,73,0.08); }
.candidate-bio {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 22px;
  flex: 1;
}
.candidate-link {
  display: inline-block;
  padding: 10px 22px;
  background: var(--navy);
  color: var(--ivory);
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.candidate-link:hover {
  background: var(--crimson);
  text-decoration: none;
}

/* ---------- ISSUES SECTION ---------- */
.issues-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.issue-tile {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 24px 22px;
  border-radius: 4px;
  transition: border-color .2s ease;
}
.issue-tile:hover { border-color: var(--gold); }
.issue-tile .num {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--crimson);
  font-size: 14px;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.issue-tile h4 {
  margin: 8px 0 8px;
  font-size: 19px;
}
.issue-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- CANDIDATE DETAIL PAGE ---------- */
.candidate-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ivory);
  padding: 70px 24px 90px;
  text-align: center;
  position: relative;
}
.candidate-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--ivory));
}
.candidate-hero .candidate-avatar {
  width: 170px; height: 170px;
  font-size: 48px;
  margin-bottom: 22px;
}
.candidate-hero h1 {
  color: var(--ivory);
  font-size: clamp(36px, 5vw, 54px);
  margin: 0;
}
.candidate-hero .seat-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.back-link:hover { color: var(--gold); text-decoration: none; }

.qa-section { max-width: 820px; margin: 0 auto; padding: 70px 24px 100px; }
.qa-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--crimson);
  border-radius: 4px;
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px -14px rgba(10, 37, 64, 0.2);
}
.qa-topic {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.qa-question {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--navy);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.35;
}
.qa-answer {
  color: #2a2a2a;
  font-size: 16.5px;
  white-space: pre-line;
}
.qa-answer p { margin: 0 0 14px; }
.qa-answer p:last-child { margin-bottom: 0; }

.no-answer {
  font-style: italic;
  color: var(--muted);
}

/* ---------- COMPARE TABLE ---------- */
.compare-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 20px;
}
.compare-row {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  font-size: 15px;
}
.compare-row > div:last-child { border-right: none; }
.compare-row.head > div {
  background: var(--navy);
  color: var(--ivory);
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  text-align: center;
  font-size: 16px;
}
.compare-row.head .topic-cell {
  background: var(--navy-deep);
  color: var(--gold);
  text-align: left;
}
.compare-row .topic-cell {
  background: var(--ivory);
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
}
.compare-row .pos {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pos.yes { background: rgba(34, 139, 34, 0.1); color: #1f5e1f; border: 1px solid rgba(34,139,34,0.3); }
.pos.no  { background: rgba(178, 34, 52, 0.08); color: var(--crimson-deep); border: 1px solid rgba(178, 34, 52, 0.25); }
.pos.mixed { background: rgba(201, 164, 73, 0.12); color: #7a5d18; border: 1px solid rgba(201, 164, 73, 0.4); }
.compare-row .note { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { border-right: none; border-bottom: 1px solid var(--line); }
  .compare-row.head { display: none; }
  .compare-row .topic-cell {
    background: var(--navy);
    color: var(--gold);
    text-align: left;
  }
  .compare-row .candidate-cell::before {
    content: attr(data-name);
    display: block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--crimson-deep);
    font-weight: 700;
    margin-bottom: 8px;
  }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(250,246,238,0.7);
  padding: 50px 24px 28px;
  text-align: center;
  border-top: 4px solid var(--gold);
}
footer .footer-brand {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 26px;
  color: var(--ivory);
  margin-bottom: 6px;
}
footer .footer-tag {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
footer .footer-note {
  font-size: 13px;
  max-width: 580px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
footer .footer-line {
  height: 1px;
  background: rgba(255,255,255,0.08);
  max-width: 200px;
  margin: 24px auto;
}
footer small {
  font-size: 12px;
  color: rgba(250,246,238,0.5);
  letter-spacing: 0.08em;
}

.record-cta {
  max-width: 820px;
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--crimson);
  border-radius: 6px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px -22px rgba(10, 37, 64, 0.4);
}
.record-cta .text {
  font-size: 15px;
  color: var(--ink);
  flex: 1;
  min-width: 240px;
}
.record-cta .text strong { color: var(--navy); font-family: 'Roboto Slab', Georgia, serif; font-size: 18px; display: block; margin-bottom: 4px; }
.record-cta a {
  background: var(--navy);
  color: var(--ivory);
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.record-cta a:hover { background: var(--crimson); text-decoration: none; }

/* ---------- VOTING RECORD ---------- */
.record-intro {
  max-width: 820px;
  margin: 0 auto 60px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 16px;
}
.record-intro p { margin: 0 0 12px; }
.record-intro p:last-child { margin-bottom: 0; }

.record-section {
  max-width: 980px;
  margin: 0 auto 56px;
}
.record-section h3 {
  font-size: 26px;
  margin: 0 0 6px;
}
.record-section .sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
  letter-spacing: 0.04em;
}
.record-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 30px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px -14px rgba(10, 37, 64, 0.2);
}
.record-card.headline {
  border-left: 4px solid var(--crimson);
  background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
}
.record-card h4 {
  margin: 0 0 8px;
  font-size: 22px;
}
.record-card .meta {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.record-card p { margin: 0 0 12px; }
.record-card p:last-child { margin-bottom: 0; }

.vote-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--paper);
  font-size: 15px;
}
.vote-table th, .vote-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.vote-table th {
  background: var(--navy);
  color: var(--ivory);
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.vote-table tr:last-child td { border-bottom: none; }
.vote-table .yes { color: #1f5e1f; font-weight: 700; }
.vote-table .no { color: var(--crimson-deep); font-weight: 700; }
.vote-table .absent { color: var(--muted); font-style: italic; }

.vote-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.quote {
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  padding: 16px 20px;
  margin: 14px 0;
  font-family: 'Roboto Slab', Georgia, serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--navy);
}
.quote .attribution {
  display: block;
  margin-top: 10px;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  font-weight: 600;
}

.source-list {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.source-list strong { color: var(--navy); display: block; margin-bottom: 6px; letter-spacing: 0.1em; font-size: 11px; text-transform: uppercase; }
.source-list ul { margin: 0; padding-left: 20px; }
.source-list li { margin-bottom: 4px; }

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.pattern-item {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14.5px;
  display: flex; gap: 12px; align-items: flex-start;
}
.pattern-item .mark {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}
.pattern-item.for .mark { color: #1f5e1f; }
.pattern-item.against .mark { color: var(--crimson-deep); }

/* ---------- UTIL ---------- */
.ribbon {
  display: inline-block;
  background: var(--crimson);
  color: white;
  padding: 4px 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ---------- PLAIN-READABILITY OVERRIDES ---------- */
body { font-size: 17px; line-height: 1.7; }
h1, h2, h3, h4 { letter-spacing: 0; }
.hero h1 em, .debate-banner h2 em { font-style: normal; }
.hero::before { display: none; }
.qa-question { font-family: 'Roboto', sans-serif; font-weight: 700; }
.qa-answer { font-size: 17px; line-height: 1.75; }
.candidate-card h3, .record-section h3, .debate-card h3 { font-family: 'Roboto Slab', Georgia, serif; }
.candidate-bio { font-size: 15.5px; line-height: 1.6; }
.eyebrow { letter-spacing: 0.18em; }
.menu a { letter-spacing: 0.06em; }

/* ---------- PUBLIC FUNDS / SPENDING ---------- */
.spending-section {
  max-width: 900px;
  margin: 0 auto 56px;
}
.spending-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 18px;
}
.spending-card h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--navy);
}
.spending-card .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.spending-card p { margin: 0 0 12px; }
.spending-card p:last-child { margin-bottom: 0; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0 6px;
}
.amount-tile {
  background: var(--ivory);
  border-left: 4px solid var(--crimson);
  padding: 16px 18px;
  border-radius: 4px;
}
.amount-tile .year {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.amount-tile .amount {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
}
.amount-tile .recipient {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- DOCUMENT DOWNLOADS ---------- */
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 4px solid var(--crimson);
  padding: 12px 18px;
  margin: 8px 8px 8px 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.doc-link:hover {
  background: #fff;
  border-color: var(--gold);
  text-decoration: none;
  transform: translateY(-1px);
}
.doc-link .doc-icon {
  width: 28px; height: 32px;
  background: var(--crimson);
  color: white;
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  flex-shrink: 0;
}
.doc-link .doc-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 14px;
}

.all-docs-card {
  background: var(--navy);
  color: var(--ivory);
  padding: 30px 32px;
  border-radius: 6px;
  margin: 40px 0 20px;
}
.all-docs-card h3 {
  color: var(--ivory);
  margin: 0 0 6px;
  font-size: 22px;
}
.all-docs-card p {
  color: rgba(250,246,238,0.78);
  font-size: 14px;
  margin: 0 0 18px;
}
.all-docs-card .doc-link {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  border-left-color: var(--gold);
  color: var(--ivory);
}
.all-docs-card .doc-link:hover {
  background: rgba(255,255,255,0.12);
}
.all-docs-card .doc-link .doc-meta { color: rgba(250,246,238,0.6); }

/* ---------- ACCOUNTABILITY UPDATES ---------- */
.updates-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 50px 24px;
}
.update-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--ivory);
  border-left: 4px solid var(--crimson);
  border-radius: 4px;
  padding: 22px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.update-card .stamp {
  background: var(--crimson);
  color: white;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 4px;
}
.update-card .body { flex: 1; }
.update-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--navy);
}
.update-card p { margin: 0; font-size: 15px; color: var(--ink); }
.update-card p a { color: var(--crimson-deep); font-weight: 500; }

@media (max-width: 600px) {
  .update-card { flex-direction: column; gap: 10px; }
}

/* ---------- MOBILE POLISH ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.65; }

  /* Section + container breathing room */
  section { padding: 48px 16px; }
  .container { padding: 0; }

  /* Spending / record cards - tighten padding */
  .spending-card,
  .record-card,
  .qa-block {
    padding: 20px 18px;
  }
  .spending-card h3,
  .record-card h4 { font-size: 19px; }
  .spending-card .label,
  .record-card .meta { font-size: 10.5px; letter-spacing: 0.16em; }

  /* Amount tiles: keep 1 column, less padding */
  .amount-grid { gap: 10px; }
  .amount-tile { padding: 12px 14px; }
  .amount-tile .amount { font-size: 22px; }
  .amount-tile .year { font-size: 11px; letter-spacing: 0.14em; }

  /* Tables: keep them readable; shrink padding */
  .vote-table { font-size: 13.5px; }
  .vote-table th, .vote-table td { padding: 10px 10px; }
  .vote-table th { font-size: 12px; letter-spacing: 0.02em; }
  .vote-table small { font-size: 10.5px; }

  /* Charts: shorter on mobile so they fit on one screen */
  .spending-card canvas { max-height: 320px; }

  /* Doc download buttons stack and fill width */
  .doc-grid { gap: 8px; }
  .doc-link {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    font-size: 13.5px;
    align-items: flex-start;
  }
  .doc-link .doc-meta { display: block; margin-left: 0; margin-top: 2px; }

  /* Section headers */
  .record-section h3,
  .spending-section h3 { font-size: 22px !important; }
  .record-section .sub,
  .spending-section .sub { font-size: 13px; }

  /* Source list */
  .source-list { font-size: 13px; padding-top: 12px; }
  .source-list ul { padding-left: 18px; }

  /* Hero on mobile */
  .candidate-hero { padding: 48px 20px 60px !important; }
  .candidate-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .candidate-hero .candidate-avatar { width: 120px; height: 120px; }

  /* Home page debate banner */
  .debate-banner { padding: 24px 18px; }
  .debate-banner h2 { font-size: 20px; line-height: 1.3; }
  .debate-banner p { font-size: 13.5px; }
  .debate-banner .cta { width: 100%; justify-content: center; padding: 12px 18px; }

  /* Home page update card */
  .updates-section { padding: 36px 16px; }
  .update-card { padding: 18px 18px; }
  .update-card h3 { font-size: 17px; }
  .update-card p { font-size: 14px; }

  /* All-docs panel */
  .all-docs-card { padding: 22px 18px; }
  .all-docs-card h3 { font-size: 19px; }

  /* QA blocks */
  .qa-question { font-size: 17px; }
  .qa-answer { font-size: 15.5px; line-height: 1.7; }
  .qa-topic { font-size: 10px; letter-spacing: 0.2em; }

  /* Record CTA (incumbent banner) */
  .record-cta { padding: 18px 18px; }
  .record-cta a { width: 100%; text-align: center; }

  /* Candidate hero seat tag */
  .seat-tag { font-size: 11px !important; letter-spacing: 0.22em !important; }

  /* Issue tiles */
  .issue-tile { padding: 18px 16px; }
  .issue-tile h4 { font-size: 17px; }
}

@media (max-width: 380px) {
  .amount-tile .amount { font-size: 19px; }
  .spending-card h3 { font-size: 17px; }
  .vote-table { font-size: 12.5px; }
  .vote-table th, .vote-table td { padding: 8px 8px; }
  .spending-card canvas { max-height: 280px; }
}
