.site-page--voter-resources {
  --voter-gold: #d4af37;
  --voter-green: #2ed35f;
  --voter-blue: #437cff;
  --voter-copy: #dddddd;
  --voter-muted: #a7b3c1;
  --voter-panel: rgba(17, 34, 64, 0.78);
  --voter-panel-deep: rgba(13, 27, 42, 0.92);
  --text: #eeeeee;
  --text-muted: var(--voter-muted);
  --understanding: var(--voter-gold);
  --reliability: var(--voter-blue);
  width: min(100%, 900px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.voter-dashboard {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.voter-heading {
  margin-bottom: clamp(28px, 5vw, 44px);
  text-align: center;
}

.site-page--voter-resources .voter-heading h1 {
  margin: 0;
  color: var(--voter-gold);
  font-family: "Owl Times", "Times New Roman", serif !important;
  font-size: clamp(2.15rem, 5vw, 2.8rem) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(212, 175, 55, 0.2);
  text-transform: none;
}

.voter-tru {
  width: min(100%, 354px);
  margin: 24px auto 0;
}

.voter-tru-bars,
.voter-tru-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.voter-tru-bars span {
  height: 6px;
  border-radius: 999px;
}

.voter-tru-bars .truth {
  background: var(--voter-green);
  box-shadow: 0 0 11px rgba(46, 211, 95, 0.55);
}

.voter-tru-bars .reliability {
  background: var(--voter-blue);
  box-shadow: 0 0 11px rgba(67, 124, 255, 0.55);
}

.voter-tru-bars .understanding {
  background: var(--voter-gold);
  box-shadow: 0 0 11px rgba(212, 175, 55, 0.5);
}

.voter-tru-labels {
  margin-top: 8px;
  color: var(--voter-muted);
  font-family: "Owl Times", "Times New Roman", serif;
  font-size: 0.96rem;
}

.voter-section + .voter-section {
  margin-top: clamp(38px, 7vw, 62px);
}

.voter-section > h2 {
  margin: 0 0 10px;
  color: #dfc25f;
  font-family: "Owl Times", "Times New Roman", serif !important;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.25;
  text-align: left;
}

.voter-section-copy {
  max-width: 650px;
  margin: 0 0 16px;
  color: var(--voter-copy);
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
}

.voter-glass-card,
.ballot-result-card,
.candidate-card {
  border: 1px solid rgba(212, 175, 55, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(17, 34, 64, 0.76) 36%, rgba(13, 27, 42, 0.9)),
    var(--voter-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 38px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(212, 175, 55, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
}

.candidate-check-card {
  padding: clamp(16px, 3vw, 22px);
  border-radius: 22px;
}

.candidate-check-card > p {
  margin: 0 0 16px;
  color: var(--voter-copy);
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
}

.site-page--voter-resources input[type="text"],
.site-page--voter-resources input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 14px;
  outline: 0;
  background: rgba(13, 27, 42, 0.63);
  color: #eeeeee;
  font: 500 1rem/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.site-page--voter-resources input::placeholder {
  color: #aeb7c3;
}

.site-page--voter-resources input:focus,
.site-page--voter-resources select:focus {
  border-color: var(--voter-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.voter-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #e4c344, #d9b72f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.2);
  color: #0b1c3d;
  cursor: pointer;
  font: 700 1.05rem/1 "Owl Times", "Times New Roman", serif;
  transition: filter 150ms ease, transform 150ms ease;
}

.candidate-check-card .voter-primary-button {
  width: 100%;
  margin-top: 12px;
}

.voter-primary-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.voter-primary-button:active {
  transform: scale(0.99);
}

.voter-data-note {
  margin: 14px 0 0;
  color: #8d99a8;
  font-size: 0.82rem;
  line-height: 1.45;
}

#zip-output[style*="display:none"] + .voter-data-note,
#zip-output[style*="display: none"] + .voter-data-note {
  display: none;
}

.register-section {
  padding: 0 2px;
}

.voter-pill-select {
  display: block;
  box-sizing: border-box;
  width: min(100%, 650px);
  min-height: 50px;
  margin: 0 auto;
  padding: 11px 46px 11px 18px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 999px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(17, 34, 64, 0.72);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--voter-gold) 50%),
    linear-gradient(135deg, var(--voter-gold) 50%, transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%);
  background-position:
    calc(100% - 25px) calc(50% - 2px),
    calc(100% - 19px) calc(50% - 2px),
    0 0;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--voter-gold);
  font: 700 0.9rem/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-align-last: center;
  text-transform: uppercase;
}

.birth-copy {
  margin-top: 42px;
}

.state-output {
  display: none;
  width: min(100%, 650px);
  margin: 14px auto 0;
  padding: 17px;
  border-radius: 18px;
  text-align: center;
}

.state-date,
.state-deadline {
  color: var(--voter-copy);
  font-size: 0.96rem;
  line-height: 1.5;
}

.state-deadline {
  margin-top: 6px;
}

.date-label {
  color: var(--voter-muted);
}

.state-date .date-value,
.primary-date {
  color: #ecd16f;
}

.state-deadline .date-value,
.deadline-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(139, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
}

.state-actions {
  display: flex;
  justify-content: center;
  margin-top: 13px;
}

#state-open,
#birth-state-open,
.ballot-register-link,
.ballot-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

#state-open,
#birth-state-open,
.ballot-register-link {
  border: 1px solid var(--voter-gold);
  background: var(--voter-gold);
  color: #0b1c3d;
}

.ballot-secondary-link {
  border: 1px solid rgba(212, 175, 55, 0.62);
  background: rgba(13, 27, 42, 0.5);
  color: #e8cd70;
}

.candidate-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.candidate-search-row .voter-primary-button {
  min-width: 116px;
}

.candidate-search-status {
  min-height: 21px;
  margin: 10px 0 0;
  color: var(--voter-muted);
  font-size: 0.88rem;
}

.candidate-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.candidate-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-color: rgba(212, 175, 55, 0.28);
  border-radius: 18px;
}

.candidate-card h3 {
  margin: 0;
  color: #eeeeee;
  font: 700 1.05rem/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.candidate-card-meta {
  margin: 6px 0 10px;
  color: var(--voter-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.candidate-card-actions,
.candidate-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.candidate-card-actions {
  margin-top: auto;
  padding-top: 12px;
}

.candidate-site-unavailable {
  color: #8793a2;
  font-size: 0.84rem;
}

.candidate-site,
.candidate-site-link,
.owl-position-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 14px;
  background: rgba(13, 27, 42, 0.48);
  color: #e7cb6e;
  cursor: pointer;
  font: 600 0.9rem/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

.position-button-icon,
.position-button-icon svg {
  width: 17px;
  height: 17px;
}

.position-button-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.owl-position-button[data-unlocked="true"] .position-button-icon {
  color: #73d295;
}

.candidate-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.candidate-badge.trump {
  background: #8b0000;
}

.candidate-badge.impeach {
  background: #1565c0;
}

.zip-output {
  margin-top: 18px;
}

.ballot-empty {
  display: grid;
  gap: 10px;
  padding: 17px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 18px;
  background: var(--voter-panel-deep);
  color: var(--voter-copy);
}

.ballot-empty .ballot-secondary-link {
  margin-top: 2px;
}

.ballot-result-card {
  overflow: hidden;
  border-radius: 22px;
}

.ballot-result-header {
  padding: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
}

.ballot-result-eyebrow {
  margin: 0 0 4px;
  color: var(--voter-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ballot-result-header h3 {
  margin: 0;
  color: var(--voter-gold);
  font: 700 1.45rem/1.25 "Owl Times", "Times New Roman", serif !important;
}

.ballot-result-header > p:not(.ballot-result-eyebrow) {
  margin: 4px 0 0;
  color: var(--voter-copy);
  font-size: 0.94rem;
}

.ballot-status-line {
  margin-top: 11px;
  color: var(--voter-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.race-group {
  padding: 18px 18px 4px;
}

.race-group + .race-group {
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.race-group h3 {
  margin: 0 0 9px;
  color: var(--voter-gold);
  font: 700 1.1rem/1.3 "Owl Times", "Times New Roman", serif !important;
}

.race-empty {
  margin: 0 0 14px;
  color: var(--voter-muted);
}

.candidate-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.candidate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}

.candidate-row + .candidate-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.candidate-details {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.candidate-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.candidate-name-line strong {
  color: #eeeeee;
  font-size: 1rem;
  line-height: 1.35;
}

.candidate-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.candidate-office {
  color: var(--voter-muted);
  font-size: 0.84rem;
}

.ballot-register-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px 18px 19px;
}

.owl-modal[hidden] {
  display: none;
}

.owl-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(2, 8, 17, 0.64);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.owl-modal-card {
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  max-height: min(88dvh, 820px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(20, 40, 69, 0.92) 35%, rgba(13, 27, 42, 0.96)),
    #112240;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.56);
  color: #eeeeee;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
}

.owl-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.owl-modal-header h2 {
  margin: 0;
  color: var(--voter-gold);
  font: 700 clamp(1.55rem, 4vw, 2rem)/1.2 "Owl Times", "Times New Roman", serif !important;
  text-align: left;
}

#owl-positions-candidate {
  margin: 7px 0 0;
  color: var(--voter-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.owl-close-button {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #dddddd;
  cursor: pointer;
}

.owl-close-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.owl-topic-list {
  margin-top: 8px;
}

.owl-topic-row {
  padding: 17px 4px;
}

.owl-topic-row + .owl-topic-row {
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.owl-topic-row h3 {
  margin: 0;
  color: var(--voter-gold);
  font: 700 1.22rem/1.3 "Owl Times", "Times New Roman", serif !important;
}

.owl-topic-row p {
  margin: 6px 0 0;
  color: #eeeeee;
  font-size: 1rem;
  line-height: 1.5;
}

.owl-research-note {
  margin: 10px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  color: #9aa6b2;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

body.owl-modal-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .site-page--voter-resources {
    padding: 22px 15px 44px;
  }

  .site-page--voter-resources .voter-heading h1 {
    font-size: 1.75rem !important;
  }

  .voter-tru {
    margin-top: 22px;
  }

  .voter-section + .voter-section {
    margin-top: 42px;
  }

  .candidate-results {
    grid-template-columns: 1fr;
  }

  .candidate-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .candidate-row-actions {
    justify-content: flex-start;
  }

  .candidate-site,
  .candidate-site-link,
  .owl-position-button {
    flex: 1;
  }

  .ballot-register-row {
    grid-template-columns: 1fr;
  }

  .owl-modal {
    align-items: end;
    padding: 0;
  }

  .owl-modal-card {
    width: 100%;
    max-height: calc(100dvh - var(--owl-header-height));
    padding: 20px 18px max(22px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .owl-modal-header {
    position: sticky;
    top: -20px;
    z-index: 2;
    margin: -20px -18px 0;
    padding: 20px 18px 16px;
    background: rgba(20, 40, 69, 0.94);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
  }
}

@media (max-width: 440px) {
  .candidate-search-row {
    grid-template-columns: 1fr;
  }

  .candidate-search-row .voter-primary-button {
    width: 100%;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .voter-glass-card,
  .ballot-result-card,
  .candidate-card {
    background: #112240;
  }

  .owl-modal-card {
    background: #112240;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voter-primary-button {
    transition: none;
  }
}
