/* mi_2026_governor_candidates.css
 * Scoped styles for the MI 2026 governor candidate grids
 * Sits inside kb_topic.css layout framework
 */

:root {
  --dem: #1f4dd8;
  --dem-soft: #eaf0ff;
  --dem-ink: #152d80;
  --gop: #d1253b;
  --gop-soft: #fdecef;
  --gop-ink: #8a1626;
  --ind: #7a4bc4;
  --ind-soft: #f2ecfb;
  --ind-ink: #4c2a86;
}

/* Key dates grid */
.gov26-dates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .gov26-dates-grid { grid-template-columns: 1fr; }
}
.gov26-date-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: center;
}
.gov26-date-card--highlight {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.gov26-date-big {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a2744;
  line-height: 1;
}
.gov26-date-lbl {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.3;
}

/* Countdown */
.gov26-countdown {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.gov26-cd-unit { text-align: center; min-width: 60px; }
.gov26-cd-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a2744;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gov26-cd-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  margin-top: 4px;
}

/* Party heading row */
.gov26-party-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.gov26-party-dot--dem { background: var(--dem); }
.gov26-party-dot--gop { background: var(--gop); }
.gov26-party-dot--ind { background: var(--ind); }
.gov26-party-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 0.75rem;
  letter-spacing: 0.04em;
}

/* Candidate card grid */
.gov26-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 1rem;
}
@media (max-width: 480px) {
  .gov26-candidates { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.gov26-cand-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
}
.gov26-cand-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.gov26-cand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,.09);
  border-color: var(--accent);
}
.gov26-cand-card.dem { --accent: var(--dem); }
.gov26-cand-card.gop { --accent: var(--gop); }
.gov26-cand-card.ind { --accent: var(--ind); }

.gov26-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.gov26-cand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3px;
}
.gov26-cand-role {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}
.gov26-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 10px;
}
.gov26-cand-card.dem .gov26-tag { background: var(--dem-soft); color: var(--dem-ink); }
.gov26-cand-card.gop .gov26-tag { background: var(--gop-soft); color: var(--gop-ink); }
.gov26-cand-card.ind .gov26-tag { background: var(--ind-soft); color: var(--ind-ink); }

.gov26-frontrunner {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Candidate detail modal */
.gov26-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 27, 0.72);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 9000;
  overflow-y: auto;
}
.gov26-modal-backdrop.open { display: flex; }

.gov26-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: gov26FadeUp .22s ease;
}
@keyframes gov26FadeUp {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.gov26-modal-head {
  padding: 28px 28px 20px;
  background: var(--modal-head-bg, #0b1f33);
  color: #fff;
  position: relative;
}
.gov26-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,.14);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.gov26-modal-close:hover { background: rgba(255,255,255,.25); }
.gov26-avatar-lg {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px; font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  border: 2px solid rgba(255,255,255,.25);
}
.gov26-modal-head h3 {
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.15;
}
.gov26-modal-sub { color: rgba(255,255,255,.72); font-size: 0.88rem; }

.gov26-modal-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  background: #fafafa;
  gap: 4px;
  overflow-x: auto;
}
.gov26-tab-btn {
  background: none; border: none;
  padding: 12px 14px;
  font-size: 0.82rem; font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.gov26-tab-btn.active { color: #1a2744; border-bottom-color: #1a2744; }

.gov26-modal-body {
  padding: 24px 28px 28px;
  max-height: 52vh;
  overflow-y: auto;
}
@media (max-width: 480px) {
  .gov26-modal-body { max-height: 60vh; padding: 18px 16px 24px; }
}

.gov26-modal-body h4 {
  font-size: 1.05rem; font-weight: 700;
  margin: 16px 0 6px;
  font-family: 'Fraunces', Georgia, serif;
}
.gov26-modal-body h4:first-child { margin-top: 0; }
.gov26-modal-body p { color: #475569; font-size: 0.9rem; margin: 6px 0; }

.gov26-issue-list { list-style: none; padding: 0; margin: 0; }
.gov26-issue-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.gov26-issue-list li:last-child { border-bottom: none; }
.gov26-issue-name {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  margin-bottom: 3px;
}
.gov26-issue-pos { font-size: 0.88rem; color: #475569; }

.gov26-disclaimer {
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: #94a3b8;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Sidebar alert box */
.sidebar-section--alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
}
.sidebar-section--alert h4 {
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #64748b !important;
  margin-bottom: 0.4rem !important;
}
