/* ── ELECTION CARDS ── */
.elections-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.election-active {
  background: var(--bg-primary);
  border: 0.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.election-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.election-date { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.election-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 500;
  margin-top: 6px;
}
.badge-primary  { background: var(--blue-50);   color: var(--blue-600); }
.badge-general  { background: var(--green-50);  color: var(--green-600); }
.badge-municipal,
.badge-local    { background: var(--purple-50); color: var(--purple-600); }
.badge-special  { background: var(--amber-50);  color: var(--amber-600); }

.election-other {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px;
}
.election-other-name { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.election-other-date { font-size: 12px; color: var(--text-tertiary); margin-top: 1px; }
.election-other-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.election-other-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-600);
  text-decoration: none;
  white-space: nowrap;
}
.election-other-link:hover { text-decoration: underline; }

/* ── WHERE TO VOTE ── */
.where-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
}
.where-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.where-row:last-of-type { margin-bottom: 0; }
.where-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.where-text { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.where-text strong { color: var(--text-primary); font-weight: 500; }
.where-text a {
  color: var(--blue-600);
  text-decoration: none;
  cursor: pointer;
  display: block;
  margin-top: 5px;
  font-weight: 500;
  padding: 4px 0;
}
.where-text a:hover { text-decoration: underline; }
.progress-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--blue-400); border-radius: 2px; }
.progress-label { display: flex; justify-content: space-between; margin-top: 5px; }
.progress-label span { font-size: 11px; color: var(--text-tertiary); }

/* ── REMINDER STRIP ── */
.reminder-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 24px 0;
  border-bottom: 0.5px solid var(--border-light);
  margin-bottom: 24px;
}
.reminder-left { display: flex; align-items: center; gap: 12px; }
.reminder-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reminder-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.reminder-text strong { color: var(--text-primary); font-weight: 500; }
.reminder-btn {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: var(--blue-400);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-start;
  font-family: var(--font-ui);
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
}
.reminder-btn:hover { background: var(--blue-600); }

/* ── RACES ── */
.races-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.races-header h2 { font-size: 15px; font-weight: 500; color: var(--text-primary); }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 0.5px solid var(--border-medium);
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--bg-primary);
  font-family: var(--font-ui);
  transition: all 0.12s;
}
.filter-chip:hover { background: var(--bg-secondary); }
.filter-chip.on { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-600); }

/* ── RACE CARD ── */
.race-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.race-card:hover { border-color: var(--border-medium); }
.race-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}
.race-title { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.race-level {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.level-federal { background: var(--blue-50);   color: var(--blue-600); }
.level-state   { background: var(--purple-50); color: var(--purple-600); }
.level-county  { background: var(--green-50);  color: var(--green-600); }
.level-city    { background: var(--amber-50);  color: var(--amber-600); }
.level-school  { background: var(--coral-50);  color: var(--coral-600); }

.race-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.55; }
.learn-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-600);
  cursor: pointer;
  margin-bottom: 14px;
  display: block;
  background: var(--blue-50);
  border: 0.5px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.learn-more:hover { background: var(--blue-100); }

/* ── CANDIDATES ── */
.candidates { display: flex; flex-direction: column; gap: 6px; }
.candidate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.av-dem { background: var(--blue-100); color: var(--blue-800); }
.av-rep { background: var(--red-bg);   color: var(--red-text); }
.av-ind { background: var(--gray-100); color: var(--gray-600); }

.candidate-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.candidate-detail { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.candidate-detail a { color: var(--text-blue); text-decoration: none; }
.candidate-detail a:hover { text-decoration: underline; }
.incumbent-tag {
  font-size: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 5px;
  font-weight: 500;
}

/* ── ONLY ONE WARNING ── */
.only-one {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 0.5px solid var(--amber-200);
  border-radius: var(--radius-md);
  background: var(--amber-50);
  font-size: 13px;
  color: var(--amber-600);
  margin-bottom: 10px;
}

/* ── ELECTION GROUP HEADER ── */
.election-group-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 20px 0 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border-light);
}
.election-group-header:first-of-type { margin-top: 0; }

/* ── RESPONSIVE ── */
@media (min-width: 540px) {
  .reminder-strip { flex-direction: row; align-items: center; justify-content: space-between; }
  .reminder-btn { align-self: auto; }
}
