.election-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 4rem;
}

.election-hero {
  max-width: 880px;
  padding: 0 0 1.4rem;
}

.election-caution {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 1.4rem;
}

.fact-card,
.official-action,
.election-section,
.side-panel,
.election-index-item a {
  border: 1px solid var(--line);
  background: rgba(21, 33, 46, 0.78);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.fact-card {
  min-height: 110px;
  padding: 1rem;
  border-radius: 18px;
}

.fact-card span,
.official-action span,
.election-resource em,
.side-panel dt,
.election-index-item span,
.election-index-item small {
  color: var(--muted);
}

.fact-card span,
.official-action span,
.side-panel dt,
.election-index-item span {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
}

.fact-card strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.official-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.4rem;
}

.official-action {
  display: block;
  min-height: 108px;
  padding: 1rem;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
}

.official-action.primary {
  border-color: rgba(255, 210, 122, 0.54);
  background: rgba(255, 210, 122, 0.13);
}

.official-action strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.1rem;
  line-height: 1.45;
}

.voter-guide {
  margin: 1.4rem 0;
}

.guide-heading {
  max-width: 820px;
  margin: 0 0 1rem;
}

.guide-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.guide-heading p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.guide-subheading,
.official-link-intro {
  max-width: 820px;
  margin: 1.25rem 0 0.8rem;
}

.guide-subheading h3,
.official-link-intro h2 {
  margin: 0;
  font-size: 1.18rem;
}

.guide-subheading p,
.official-link-intro p:not(.eyebrow) {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.guide-subheading--detail {
  margin-top: 1.4rem;
}

.guide-checklist,
.followup-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.guide-card,
.guide-detail-section,
.followup-item {
  border: 1px solid var(--line);
  background: rgba(21, 33, 46, 0.78);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.guide-card {
  min-height: 180px;
  padding: 1rem;
  border-radius: 18px;
}

.guide-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 0 0.8rem;
  border: 1px solid rgba(255, 210, 122, 0.28);
  border-radius: 0.8rem;
  color: var(--gold);
  background: rgba(255, 210, 122, 0.1);
}

.guide-icon::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: currentColor;
  mask: var(--guide-icon) center / contain no-repeat;
  -webkit-mask: var(--guide-icon) center / contain no-repeat;
}

.guide-icon--calendar {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M8 2v4M16 2v4M3 10h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

.guide-icon--clock {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zM12 6v6l4 2'/%3E%3C/svg%3E");
}

.guide-icon--map-pin {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 22s7-5.7 7-12a7 7 0 0 0-14 0c0 6.3 7 12 7 12zM12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
}

.guide-icon--ballot {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6h16v14H4zM8 10h8M8 14h5M8 18h3M7 3h10l2 3H5z'/%3E%3C/svg%3E");
}

.guide-icon--list {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
}

.guide-icon--file {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 2h9l5 5v15H6zM14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E");
}

.guide-icon--chart {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 20h16M7 16v-5M12 16V7M17 16v-8'/%3E%3C/svg%3E");
}

.guide-icon--phone {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.7.6 2.5a2 2 0 0 1-.5 2.1L8 9.5a16 16 0 0 0 6.5 6.5l1.2-1.2a2 2 0 0 1 2.1-.5c.8.3 1.6.5 2.5.6A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E");
}

.guide-icon--info {
  --guide-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zM12 10v7M12 7h.01'/%3E%3C/svg%3E");
}

.guide-card-label,
.followup-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-card strong,
.followup-item strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink);
  line-height: 1.45;
}

.followup-item em {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.guide-card p,
.followup-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-card a,
.followup-item a,
.guide-section-heading a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.guide-card a:hover,
.guide-card a:focus-visible,
.followup-item a:hover,
.followup-item a:focus-visible,
.guide-section-heading a:hover,
.guide-section-heading a:focus-visible {
  text-decoration: underline;
}

.guide-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.guide-detail-section {
  padding: 1rem;
  border-radius: 18px;
}

.guide-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.65rem;
}

.guide-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.guide-title-row .guide-icon {
  width: 2rem;
  height: 2rem;
  margin: 0;
  border-radius: 0.7rem;
  flex: 0 0 auto;
}

.guide-title-row .guide-icon::before {
  width: 1rem;
  height: 1rem;
}

.guide-section-heading h3,
.guide-followups h3 {
  margin: 0;
  font-size: 1.08rem;
}

.guide-section-heading a {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  font-size: 0.84rem;
}

.guide-detail-section > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}

.guide-fact-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
}

.guide-fact-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.34fr) minmax(0, 1fr);
  gap: 0.8rem;
  padding-top: 0.72rem;
  border-top: 1px solid var(--line);
}

.guide-fact-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-fact-list dt small {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  color: #071015;
  background: var(--gold);
  font-size: 0.68rem;
}

.guide-fact-list dd {
  margin: 0;
}

.guide-fact-list dd strong,
.guide-fact-list dd span {
  display: block;
}

.guide-fact-list dd strong {
  color: var(--ink);
  line-height: 1.55;
}

.guide-fact-list dd span {
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.guide-followups {
  margin: 1rem 0 0;
}

.followup-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.followup-item {
  padding: 1rem;
  border-radius: 18px;
}

.official-action:hover,
.official-action:focus-visible,
.election-resource:hover,
.election-resource:focus-visible,
.election-index-item a:hover,
.election-index-item a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 210, 122, 0.5);
}

.election-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  align-items: start;
}

.election-section,
.side-panel {
  border-radius: 20px;
}

.election-section {
  margin: 0 0 1rem;
  padding: 1.1rem;
}

.election-section h2,
.side-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.resource-stack {
  display: grid;
  gap: 0.7rem;
}

.election-resource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 21, 0.42);
  color: var(--ink);
  text-decoration: none;
}

.election-resource strong,
.election-resource small {
  display: block;
}

.election-resource strong {
  line-height: 1.45;
}

.election-resource small {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.6;
}

.election-resource em {
  max-width: 8.5rem;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
  text-align: right;
}

.resource-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.election-side {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
}

.side-panel {
  padding: 1rem;
}

.side-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.side-panel a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--gold);
  text-decoration: none;
}

.side-panel a:hover,
.side-panel a:focus-visible {
  text-decoration: underline;
}

.side-panel dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.side-panel dd {
  margin: 0.25rem 0 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.election-index-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

.election-index-item a {
  display: block;
  padding: 1rem;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
}

.election-index-item strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.12rem;
  line-height: 1.45;
}

.election-index-item small {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .fact-grid,
  .official-actions,
  .election-layout,
  .guide-checklist,
  .guide-detail-grid,
  .followup-list {
    grid-template-columns: 1fr;
  }

  .election-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .election-resource {
    grid-template-columns: 1fr;
  }

  .election-resource em {
    max-width: none;
    text-align: left;
  }

  .guide-fact-list div,
  .guide-section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }
}
