/* ZIM Elections 2026 - Main Stylesheet
   Color palette: ZIM Navy #0A1F5C, ZIM Gold #C9A227, White, Light Gray
   Typography: Playfair Display (headings) + Inter (body)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0A1F5C;
  --navy-light: #142878;
  --gold: #C9A227;
  --gold-light: #E8C84A;
  --gold-pale: #FBF5E0;
  --white: #FFFFFF;
  --gray-50: #F8F9FC;
  --gray-100: #EEF0F6;
  --gray-200: #D4D8E8;
  --gray-400: #8A93B0;
  --gray-700: #3A4060;
  --danger: #C0392B;
  --success: #1A7F4B;
  --pending: #E67E22;

  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(10,31,92,0.10);
  --shadow-lg: 0 8px 40px rgba(10,31,92,0.16);
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(201,162,39,0.12);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-logo .logo-text { line-height: 1.2; }
.site-logo .logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.site-logo .logo-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.81rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.site-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.site-nav a.active {
  color: var(--gold-light);
  background: rgba(201,162,39,0.14);
  font-weight: 600;
}

/* Admin CTA pill — separated visually */
.nav-admin-btn {
  margin-left: 8px;
  padding: 7px 16px !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  font-size: 0.81rem !important;
}
.nav-admin-btn:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a3a8f 100%);
  color: var(--white);
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(201,162,39,0.07);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -40px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(201,162,39,0.05);
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 .gold { color: var(--gold); }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-bar {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(201,162,39,0.2);
  padding: 14px 20px;
  text-align: center;
}

.countdown-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

.countdown-units { display: flex; gap: 16px; }

.countdown-unit {
  text-align: center;
}

.countdown-unit .num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.countdown-unit .label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--gray-400);
  max-width: 540px;
  margin: 0 auto;
}

.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px auto 16px;
}

/* ===== ACCORDION (Categories) ===== */
.elections-section {
  background: var(--white);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10,31,92,0.05);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  transition: var(--transition);
}

.accordion-trigger:hover {
  background: var(--gray-50);
}

.accordion-trigger.open {
  background: var(--navy);
  color: var(--white);
}

.accordion-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.accordion-trigger.open .accordion-cat-icon {
  background: rgba(201,162,39,0.2);
}

.accordion-title-group { flex: 1; }

.accordion-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  transition: var(--transition);
}

.accordion-trigger.open .accordion-title { color: var(--white); }

.accordion-subtitle {
  font-size: 0.82rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.accordion-trigger.open .accordion-subtitle { color: rgba(255,255,255,0.65); }

.accordion-badge {
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  transition: var(--transition);
}

.accordion-trigger.open .accordion-badge {
  background: rgba(201,162,39,0.25);
  color: var(--gold-light);
}

.accordion-chevron {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  color: var(--gray-400);
}

.accordion-trigger.open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.accordion-body {
  display: none;
  padding: 28px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.accordion-body.open { display: block; }

/* ===== CANDIDATE CARDS ===== */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.candidate-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.candidate-photo-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--gray-100);
}

.candidate-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.candidate-card:hover .candidate-photo {
  transform: scale(1.05);
}

.candidate-photo-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.candidate-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.candidate-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.candidate-tagline {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.4;
  flex: 1;
}

.candidate-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.vote-btn {
  flex: 1;
  padding: 8px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.vote-btn:hover { background: var(--gold); color: var(--navy); }
.vote-btn.voted { background: var(--success); cursor: default; }
.vote-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.manifesto-btn {
  padding: 8px 12px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.manifesto-btn:hover { background: var(--gold); color: var(--navy); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,31,92,0.7);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  margin: auto;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.modal-header-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.modal-header-info { flex: 1; }

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 4px;
}

.modal-header .cat-tag {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  overflow-x: auto;
}

.modal-tab {
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.modal-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.modal-tab-content {
  display: none;
  padding: 28px;
}

.modal-tab-content.active { display: block; }

.manifesto-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.manifesto-content h3:first-child { margin-top: 0; }

.manifesto-content p, .manifesto-content li {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 8px;
}

.manifesto-content ul, .manifesto-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.manifesto-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-style: italic;
  color: var(--navy);
}

/* Audio Player */
.audio-player {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.audio-play-btn:hover { background: var(--gold-light); }

.audio-info { flex: 1; min-width: 0; }

.audio-title {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* Question Form */
.question-form { margin-bottom: 28px; }

.question-form h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group { margin-bottom: 12px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

.form-group textarea { resize: vertical; min-height: 90px; }

/* Questions List */
.questions-list { display: flex; flex-direction: column; gap: 16px; }

.question-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
}

.question-meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.question-text {
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}

.answer-box {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
}

.answer-box strong { color: var(--navy); font-size: 0.78rem; }

/* ===== VOTE RESULT BAR ===== */
.vote-result {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  height: 8px;
  margin-top: 6px;
  overflow: hidden;
}

.vote-result-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-sm);
  transition: width 0.8s ease;
}

.vote-count-text {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ===== MARKETING STUDIES SECTION ===== */
.studies-section {
  background: var(--navy);
  color: var(--white);
}

.studies-section .section-header h2 { color: var(--white); }
.studies-section .section-header p { color: rgba(255,255,255,0.7); }

.studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.study-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.study-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

.study-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(201,162,39,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.study-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.study-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.study-levels {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.level-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(201,162,39,0.2);
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.study-fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.82rem;
}

.study-fee-table th, .study-fee-table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.study-fee-table th {
  color: var(--gold-light);
  font-weight: 600;
}

.study-fee-table td { color: rgba(255,255,255,0.8); }

.studies-cta {
  text-align: center;
  margin-top: 40px;
}

.studies-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

/* ===== SABOI SWEET TOOLTIP ===== */
.saboi-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 2px solid var(--gold);
  transition: var(--transition);
}

.saboi-link:hover { color: var(--gold-light); }

.saboi-modal .modal-header {
  background: linear-gradient(135deg, var(--navy), #1a3a8f);
}

.saboi-profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.saboi-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.saboi-bio h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin-bottom: 6px;
}

.saboi-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.saboi-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--gold-pale);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #070F2E;
  color: rgba(255,255,255,0.65);
  padding: 48px 20px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .site-logo { margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-bottom .maintained-by {
  color: rgba(255,255,255,0.5);
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #E8F5EE; color: #1A7F4B; border: 1px solid #B2DFC7; }
.alert-error { background: #FBEAEA; color: var(--danger); border: 1px solid #F0B8B8; }
.alert-info { background: #EAF0FB; color: var(--navy); border: 1px solid #B8CCF0; }
.alert-pending { background: #FEF5E4; color: #E67E22; border: 1px solid #F9D39B; }

/* ===== ELECTION INFO BAR ===== */
.info-bar {
  background: var(--gold-pale);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--navy);
}

.info-bar .icon { font-size: 1.3rem; flex-shrink: 0; }

/* ===== CANDIDATE PORTAL ===== */
.portal-nav {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}

.portal-nav-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-400);
}

.portal-nav-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-inner { padding: 0 16px; height: 60px; }
  .voter-greeting { top: 60px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(201,162,39,0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    gap: 0;
    z-index: 999;
  }
  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 11px 20px;
    border-radius: 0;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
  }
  .site-nav a.active {
    border-left-color: var(--gold);
    background: rgba(201,162,39,0.1);
  }
  .nav-admin-btn {
    margin: 8px 16px 0 !important;
    border-radius: 6px !important;
    text-align: center;
    justify-content: center;
  }

  .hamburger { display: flex; }
  .site-header { position: sticky; }

  /* ── Footer: 2-col on tablet ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1; /* brand row spans full width */
  }

  /* ── form rows collapse ── */
  .form-row { grid-template-columns: 1fr; }
}
/* END @media 900px */

@media (max-width: 660px) {
  /* Hero */
  .hero { padding: 36px 16px 28px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.93rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }

  /* Countdown wraps cleanly */
  .countdown-inner { flex-direction: column; gap: 6px; }
  .countdown-units { gap: 10px; }
  .countdown-unit .num { font-size: 1.25rem; }

  /* Accordion tighter */
  .accordion-trigger { padding: 14px 14px; gap: 10px; }
  .accordion-body { padding: 16px 12px; }

  /* Candidate grid stays 2-col but tighter */
  .candidates-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .candidate-info { padding: 10px 10px 8px; }
  .candidate-actions { padding: 8px; gap: 6px; }
  .vote-btn { font-size: 0.72rem; padding: 7px 4px; }
  .manifesto-btn { padding: 7px 9px; font-size: 0.72rem; }
  .manifesto-btn::after { display: none; }

  /* Modal: bottom sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0;
    width: 100%;
    animation: modalSlideUp 0.32s ease;
  }
  @keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .modal-header { padding: 15px 16px; gap: 10px; }
  .modal-header-photo { width: 50px; height: 50px; }
  .modal-header h2 { font-size: 1rem; }
  .modal-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .modal-tabs::-webkit-scrollbar { display: none; }
  .modal-tab { padding: 12px 13px; font-size: 0.78rem; }
  .modal-tab-content { padding: 18px 14px; }

  /* Results rows: drop % label to save space */
  .results-pct { display: none; }

  /* ── Footer: single column ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-brand { grid-column: auto; }
  .site-footer { padding: 32px 16px 20px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Alerts */
  .alert { align-items: flex-start; }

  /* Portal tabs */
  .portal-tab { font-size: 0.78rem; padding: 12px 6px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.55rem; }
  /* Single column on tiny phones */
  .candidates-grid { grid-template-columns: 1fr; }
  /* Logo: shrink */
  .site-logo .logo-sub { display: none; }
  .site-logo .logo-title { font-size: 0.9rem; }
  .site-logo img { height: 34px; }
  /* Hide accordion badge to prevent overflow */
  .accordion-badge { display: none; }
  /* Footer bottom stack */
  .footer-bottom { font-size: 0.76rem; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-400); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Badge count for accordion */
.candidates-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Sticky admin bar hint */
.admin-hint {
  background: var(--navy);
  color: var(--gold);
  font-size: 0.78rem;
  padding: 6px 20px;
  text-align: center;
}

.admin-hint a { color: var(--white); font-weight: 600; }

/* Voting closed overlay */
.voting-closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(192,57,43,0.1);
  color: var(--danger);
  border: 1px solid rgba(192,57,43,0.25);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ===== MANIFESTO BUTTON TOOLTIP ===== */
.manifesto-btn {
  position: relative;
}
.manifesto-btn::after {
  content: 'Read Manifesto, Song & Q&A';
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
.manifesto-btn:hover::after { opacity: 1; }

/* ===== VOTER GREETING BAR ===== */
/* ID rule removed — all styling consolidated in .voter-greeting below */

/* ===== ACADEMIC BADGE ===== */
.academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123,63,0,0.12);
  border: 1px solid rgba(123,63,0,0.25);
  color: #7B3F00;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ===== RESULTS PAGE ===== */
.results-locked {
  text-align: center;
  padding: 48px 24px;
}
.results-locked .lock-icon { font-size: 3rem; margin-bottom: 16px; }

/* Voter Greeting */
.voter-greeting {
    background: var(--gold-pale);
    border-bottom: 2px solid rgba(201,162,39,0.35);
    padding: 9px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    /* Sticky just below the fixed header (68px tall) */
    position: sticky;
    top: 68px;
    z-index: 990;
    box-shadow: 0 2px 8px rgba(201,162,39,0.15);
}

.voter-greeting button {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.voter-greeting button:hover {
    background: var(--gold);
    color: var(--navy);
}
