/* Public landing + auth — SSU royal blue / gold theme */

.landing-body {
  margin: 0;
  font-family: var(--ssu-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  color: var(--ssu-text, #1a1a1a);
  background: var(--ssu-body-bg, #fff);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 42, 102, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 195, 24, 0.28);
}
.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.landing-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
}
.landing-nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-hero {
  position: relative;
  color: #fff;
  background: #071d47;
  overflow: hidden;
  isolation: isolate;
}
.landing-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.landing-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: landingHeroKenBurns 22s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.05);
}
.landing-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(7, 29, 71, 0.92) 0%, rgba(10, 42, 102, 0.78) 42%, rgba(10, 42, 102, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 29, 71, 0.35) 0%, rgba(7, 29, 71, 0.55) 100%),
    radial-gradient(ellipse at 18% 18%, rgba(242, 195, 24, 0.2), transparent 45%);
  pointer-events: none;
}
.landing-hero-content {
  z-index: 2;
}
@keyframes landingHeroKenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.landing-fade-up {
  animation: landingFadeUp 0.7s ease both;
}
.landing-fade-up-delay-1 { animation-delay: 0.08s; }
.landing-fade-up-delay-2 { animation-delay: 0.16s; }
.landing-fade-up-delay-3 { animation-delay: 0.24s; }
@keyframes landingFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero-img,
  .landing-fade-up {
    animation: none !important;
  }
  .landing-hero-img { transform: none; }
}
.min-vh-75 { min-height: 72vh; }
.landing-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ssu-gold, #F2C318);
  margin-bottom: 0.75rem;
}
.landing-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.landing-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
a.btn.landing-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
a.btn.landing-hero-btn i {
  font-size: 1rem;
  flex-shrink: 0;
}
a.btn.landing-hero-btn.landing-hero-btn--primary {
  background: linear-gradient(135deg, #f2c318 0%, #e5b000 100%) !important;
  background-color: #f2c318 !important;
  border-color: #e5b000 !important;
  color: #0f172a !important;
  box-shadow: 0 0.55rem 1.25rem rgba(242, 195, 24, 0.35);
}
a.btn.landing-hero-btn.landing-hero-btn--primary:hover,
a.btn.landing-hero-btn.landing-hero-btn--primary:focus {
  color: #0f172a !important;
  background: linear-gradient(135deg, #ffd84a 0%, #f2c318 100%) !important;
  border-color: #f2c318 !important;
  transform: translateY(-1px);
  box-shadow: 0 0.75rem 1.5rem rgba(242, 195, 24, 0.42);
}
a.btn.landing-hero-btn.landing-hero-btn--secondary {
  background: rgba(255, 255, 255, 0.16) !important;
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}
a.btn.landing-hero-btn.landing-hero-btn--secondary:hover,
a.btn.landing-hero-btn.landing-hero-btn--secondary:focus {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: #fff !important;
  color: #fff !important;
}
a.btn.landing-hero-btn.landing-hero-btn--ghost {
  background: transparent !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
}
a.btn.landing-hero-btn.landing-hero-btn--ghost:hover,
a.btn.landing-hero-btn.landing-hero-btn--ghost:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .landing-hero .min-vh-75 {
    min-height: auto;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .landing-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
    margin-top: 1.35rem;
  }
  a.btn.landing-hero-btn {
    width: 100%;
    min-height: 3.35rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.98rem;
    justify-content: center;
    text-align: center;
  }
  a.btn.landing-hero-btn.landing-hero-btn--primary {
    font-size: 1.02rem;
    min-height: 3.5rem;
  }
  a.btn.landing-hero-btn span {
    text-align: center;
  }
  .landing-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
  .landing-lead {
    font-size: 1rem;
  }
  .landing-vote-card {
    margin-top: 0.35rem;
  }
}

@media (min-width: 768px) {
  a.btn.landing-hero-btn.landing-hero-btn--primary {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}
.landing-status {
  display: inline-block;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.landing-vote-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 1.15rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  animation: landingCardFloat 5.5s ease-in-out infinite;
}
@keyframes landingCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-vote-card { animation: none; }
  .leading-hero-bg-img { animation: none !important; transform: none; }
}
.landing-vote-card__glow {
  position: absolute;
  inset: auto -20% -40% -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(242, 195, 24, 0.28), transparent 65%);
  pointer-events: none;
}
.landing-vote-card__body {
  position: relative;
  z-index: 1;
  padding: 1.45rem 1.5rem 1.5rem;
}
.landing-vote-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.85rem;
}
.landing-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: livePulse 1.5s infinite;
}
.landing-vote-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: #fff;
}
.landing-vote-card__desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.15rem;
}
.landing-vote-card__countdown {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.landing-vote-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
}
.landing-vote-card__timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ssu-gold, #F2C318);
  letter-spacing: 0.02em;
}
.landing-vote-card__turnout {
  padding-top: 0.15rem;
}
.landing-vote-card__metric {
  font-size: 1.05rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.landing-vote-card__metric-sub {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}
.landing-vote-card__pct {
  margin-left: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ssu-gold, #F2C318);
}
.landing-vote-card__bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.28);
}
.landing-vote-card__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ssu-gold, #F2C318), #4ade80);
  box-shadow: 0 0 12px rgba(242, 195, 24, 0.35);
  transition: width 0.5s ease;
}

.landing-section { padding: 4.5rem 0; }
.landing-section-alt {
  background:
    radial-gradient(ellipse at top left, rgba(10, 42, 102, 0.04), transparent 50%),
    var(--ssu-gray, #f4f6f9);
}
.landing-section-head {
  margin-bottom: 2rem;
}
.landing-section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.landing-section-eyebrow {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssu-gold-dark, #a68519);
}
.landing-section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ssu-heading, #0a2a66);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.45rem;
}
.landing-section-lead {
  color: var(--ssu-muted-text, #64748b);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
  line-height: 1.5;
}
.landing-section-head--split .landing-section-lead {
  margin-left: 0;
}

/* How to vote */
.landing-how {
  position: relative;
}
.landing-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
}
.landing-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 1.15rem;
  padding: 1.5rem 1.35rem 1.4rem;
  height: 100%;
  box-shadow: 0 0.5rem 1.5rem rgba(10, 42, 102, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.landing-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ssu-blue, #0a2a66), var(--ssu-gold, #F2C318));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.landing-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.85rem 2rem rgba(10, 42, 102, 0.12);
  border-color: rgba(10, 42, 102, 0.18);
}
.landing-step:hover::before {
  opacity: 1;
}
.landing-step-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 42, 102, 0.08);
  color: var(--ssu-blue, #0a2a66);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}
.landing-step-num {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ssu-blue, #0a2a66);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.landing-step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ssu-heading, #0a2a66);
  margin: 0 0 0.45rem;
}
.landing-step-text {
  margin: 0;
  color: var(--ssu-muted-text, #64748b);
  font-size: 0.95rem;
  line-height: 1.5;
}
.landing-step-connector {
  width: 28px;
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, rgba(10, 42, 102, 0.15), rgba(242, 195, 24, 0.55), rgba(10, 42, 102, 0.15));
  border-radius: 999px;
  position: relative;
}
.landing-step-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ssu-gold, #F2C318);
  transform: translateY(-50%);
}

.landing-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--ssu-border-muted);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ssu-blue);
  box-shadow: 0 0.25rem 0.75rem rgba(10, 42, 102, 0.05);
}
.landing-pill-num {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(10, 42, 102, 0.08);
  color: var(--ssu-blue, #0a2a66);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.landing-candidate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--ssu-border-muted);
  border-radius: 1.15rem;
  padding: 0;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.35rem rgba(10, 42, 102, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.landing-candidate:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.95rem 2rem rgba(10, 42, 102, 0.12);
  border-color: rgba(10, 42, 102, 0.16);
}
.landing-candidate-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1rem 0.85rem;
  background:
    linear-gradient(160deg, rgba(10, 42, 102, 0.08) 0%, rgba(244, 246, 249, 0.95) 70%);
}
.landing-candidate-photo {
  width: 140px;
  height: 168px;
  border-radius: 0.9rem;
  object-fit: cover;
  object-position: center top;
  background: #e8eef8;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ssu-blue, #0a2a66);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px var(--party-color, rgba(10, 42, 102, 0.25)),
    0 10px 24px rgba(10, 42, 102, 0.12);
}
.landing-candidate-photo.placeholder {
  background: linear-gradient(145deg, #dbe7f8 0%, #f4f6f9 100%);
}
.landing-candidate-body {
  padding: 0.25rem 1.15rem 1.25rem;
  text-align: center;
  min-width: 0;
}
.landing-candidate-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ssu-heading, #0a2a66);
  margin: 0 0 0.2rem;
  line-height: 1.25;
}
.landing-candidate-position {
  font-size: 0.88rem;
  color: var(--ssu-muted-text, #64748b);
  margin-bottom: 0.5rem;
}
.landing-candidate-party {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.landing-candidate-party-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.landing-empty-panel {
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(10, 42, 102, 0.2);
  border-radius: 1.15rem;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 0.5rem 1.25rem rgba(10, 42, 102, 0.04);
}
.landing-empty-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.85rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 42, 102, 0.08);
  color: var(--ssu-blue, #0a2a66);
  font-size: 1.35rem;
}
.landing-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ssu-blue, #0a2a66);
  margin: 0 0 0.35rem;
}
.landing-empty-text {
  color: #64748b;
  margin: 0 0 1.15rem;
}

@media (max-width: 991.98px) {
  .landing-steps {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .landing-step-connector {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .landing-candidate-photo {
    width: 112px;
    height: 134px;
    font-size: 1.7rem;
  }
  .landing-section {
    padding: 3.25rem 0;
  }
}

.landing-party-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.landing-party-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  background: #fff;
  color: var(--ssu-heading, #0a2a66);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.landing-party-tab:hover {
  border-color: rgba(10, 42, 102, 0.35);
  box-shadow: var(--ssu-shadow-sm);
}
.landing-party-tab.is-active {
  background: var(--ssu-blue, #0a2a66);
  border-color: var(--ssu-blue, #0a2a66);
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 42, 102, 0.18);
}
.landing-party-tab__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--party-color, #64748b);
  flex-shrink: 0;
}
.landing-party-tab.is-active .landing-party-tab__dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.landing-party-tab__count {
  display: inline-flex;
  min-width: 1.35rem;
  justify-content: center;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(10, 42, 102, 0.08);
  color: inherit;
}
.landing-party-tab.is-active .landing-party-tab__count {
  background: rgba(255, 255, 255, 0.18);
}
.landing-news {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ssu-border-muted);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
  height: 100%;
  box-shadow: 0 0.5rem 1.35rem rgba(10, 42, 102, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.landing-news::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ssu-blue, #0a2a66), var(--ssu-gold, #F2C318));
}
.landing-news:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.85rem 1.85rem rgba(10, 42, 102, 0.1);
  border-color: rgba(10, 42, 102, 0.16);
}
.landing-news-date {
  flex-shrink: 0;
  width: 3.6rem;
  text-align: center;
  background: rgba(10, 42, 102, 0.06);
  border-radius: 0.75rem;
  padding: 0.55rem 0.35rem;
}
.landing-news-day {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ssu-blue, #0a2a66);
  line-height: 1;
}
.landing-news-month {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.landing-news-body {
  min-width: 0;
  padding-top: 0.1rem;
}
.landing-news-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ssu-heading, #0a2a66);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.landing-news-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b;
}
.landing-cta {
  background: linear-gradient(135deg, #0a2a66, #123a8a);
  padding: 3.5rem 0;
  border-top: 3px solid var(--ssu-gold);
}
.landing-footer {
  background: #071d4d;
  color: #94a3b8;
  padding: 1.25rem 0;
  font-size: 0.9rem;
}
.landing-footer a { color: #e2e8f0; text-decoration: none; }
.landing-footer a:hover { color: var(--ssu-gold); }

/* Student / staff login */
.voter-login-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(242, 195, 24, 0.18), transparent 42%),
    radial-gradient(ellipse at 85% 100%, rgba(10, 42, 102, 0.08), transparent 45%),
    linear-gradient(160deg, #f4f6f9 0%, #e8eefc 100%);
  font-family: var(--ssu-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  overflow-x: hidden;
}
.voter-login-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.voter-login-mobile-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ssu-border-muted, #e0e5ed);
  padding-top: env(safe-area-inset-top, 0px);
}
.voter-login-mobile-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
}
.voter-login-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ssu-blue, #0a2a66);
  font-weight: 700;
  font-size: 0.92rem;
}
.voter-login-mobile-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 0.4rem;
  flex-shrink: 0;
}
.voter-login-mobile-back {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.voter-login-aside {
  background:
    radial-gradient(ellipse at bottom left, rgba(242, 195, 24, 0.22), transparent 52%),
    linear-gradient(160deg, #0a2a66 0%, #123a8a 100%);
  color: #fff;
  padding: 3rem;
  align-items: center;
}
.voter-login-aside-inner {
  max-width: 34rem;
}
.voter-login-aside-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.voter-login-aside-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
}
.voter-login-aside-eyebrow {
  margin: 2rem 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ssu-gold, #F2C318);
}
.voter-login-aside-title {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.voter-login-aside-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}
.voter-login-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.voter-login-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}
.voter-login-list i {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ssu-gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.voter-login-aside-election {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.voter-login-aside-election-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
}
.voter-login-aside-election-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.voter-login-aside-election-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}
.voter-login-aside-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
.voter-login-aside-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.voter-login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.voter-login-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow:
    0 1.5rem 3rem rgba(10, 42, 102, 0.12),
    0 0 0 1px rgba(10, 42, 102, 0.06);
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  overflow: hidden;
}
.voter-login-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ssu-blue, #0a2a66), var(--ssu-gold, #F2C318));
}
.voter-login-card-head {
  margin-bottom: 1.25rem;
}
.voter-login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(10, 42, 102, 0.12), rgba(10, 42, 102, 0.06));
  color: var(--ssu-blue, #0a2a66);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: inset 0 0 0 1px rgba(10, 42, 102, 0.08);
}
.voter-login-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ssu-blue, #0a2a66);
  margin-bottom: 0.35rem;
}
.voter-login-subtitle {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.45;
}
.voter-login-election-panel {
  background: linear-gradient(145deg, #0a2a66, #123a8a);
  color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0.75rem 1.5rem rgba(10, 42, 102, 0.18);
}
.voter-login-election-panel-top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.voter-login-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.voter-login-election-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}
.voter-login-election-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.voter-login-meta-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
}
.voter-login-meta-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.15rem;
}
.voter-login-meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.voter-login-countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}
.voter-login-meta-pct {
  margin-left: 0.25rem;
  color: var(--ssu-gold, #F2C318);
  font-size: 0.82rem;
}
.voter-login-turnout-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-top: 0.75rem;
}
.voter-login-turnout-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ssu-gold, #F2C318), #4ade80);
}
.voter-login-closed-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 0.9rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  color: #475569;
}
.voter-login-closed-panel i {
  font-size: 1.35rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}
.voter-login-closed-panel strong {
  display: block;
  color: var(--ssu-blue, #0a2a66);
  margin-bottom: 0.25rem;
}
.voter-login-closed-panel p {
  font-size: 0.88rem;
  line-height: 1.45;
}
.voter-login-alert {
  border-radius: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.voter-login-form {
  margin-bottom: 1.25rem;
}
.voter-login-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ssu-blue, #0a2a66);
  margin-bottom: 0.45rem;
}
.voter-login-input-wrap {
  position: relative;
}
.voter-login-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}
.voter-login-input {
  border: 2px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 3.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.voter-login-input:focus {
  border-color: var(--ssu-blue, #0a2a66);
  box-shadow: 0 0 0 4px rgba(10, 42, 102, 0.12);
}
.voter-login-input-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.55rem 0 1rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}
.voter-login-input-hint i {
  margin-top: 0.1rem;
  color: var(--ssu-blue, #0a2a66);
  opacity: 0.7;
}
.voter-login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.15rem;
  border: none;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #f2c318 0%, #e5b000 100%);
  color: #1e293b;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0.65rem 1.25rem rgba(242, 195, 24, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.voter-login-submit:hover,
.voter-login-submit:focus {
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 0.85rem 1.5rem rgba(242, 195, 24, 0.42);
}
.voter-login-submit-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.voter-login-submit-arrow {
  opacity: 0.75;
}
.voter-login-steps {
  background: var(--ssu-gray, #f4f6f9);
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 1rem;
  padding: 1rem;
}
.voter-login-steps-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.voter-login-step-grid {
  display: grid;
  gap: 0.55rem;
}
.voter-login-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
}
.voter-login-step-num {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--ssu-blue, #0a2a66);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voter-login-step-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ssu-blue, #0a2a66);
  line-height: 1.2;
}
.voter-login-step-item span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  margin-top: 0.1rem;
}
.voter-login-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  margin-top: 1.15rem;
  font-size: 0.85rem;
}
.voter-login-footer-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}
.voter-login-footer-links a:hover {
  color: var(--ssu-blue, #0a2a66);
}
.voter-login-footer-dot {
  color: #cbd5e1;
}
.login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: var(--ssu-gray, #f4f6f9);
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
}
.login-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 0.45rem;
  border-radius: 0.6rem;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.login-switch-link:hover {
  color: var(--ssu-blue, #0a2a66);
}
.login-switch-link.active {
  background: #fff;
  color: var(--ssu-blue, #0a2a66);
  box-shadow: 0 2px 8px rgba(10, 42, 102, 0.1);
}

/* Staff / admin login */
.staff-login-aside {
  background:
    radial-gradient(ellipse at bottom right, rgba(242, 195, 24, 0.14), transparent 48%),
    linear-gradient(155deg, #071d47 0%, #0a2a66 45%, #123a8a 100%);
}
.staff-login-card-accent {
  background: linear-gradient(90deg, #0a2a66, #3b82f6, var(--ssu-gold, #F2C318));
}
.staff-login-icon {
  background: linear-gradient(145deg, rgba(10, 42, 102, 0.14), rgba(59, 130, 246, 0.08));
  color: var(--ssu-blue, #0a2a66);
}
.staff-login-aside-roles {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}
.staff-login-aside-roles-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.55rem;
}
.staff-login-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.staff-login-role-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.staff-login-info-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.45;
}
.staff-login-info-panel i {
  font-size: 1.15rem;
  color: var(--ssu-blue, #0a2a66);
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.staff-login-info-panel strong {
  display: block;
  color: var(--ssu-blue, #0a2a66);
  margin-bottom: 0.2rem;
}
.staff-login-info-panel a {
  color: var(--ssu-blue, #0a2a66);
  font-weight: 600;
}
.staff-login-form .voter-login-input-wrap:has(.staff-login-toggle-pw) .voter-login-input {
  padding-right: 2.75rem;
}
.staff-login-toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #64748b;
  padding: 0.25rem;
  line-height: 1;
  z-index: 3;
}
.staff-login-toggle-pw:hover {
  color: var(--ssu-blue, #0a2a66);
}
.staff-login-remember .form-check-label {
  font-size: 0.88rem;
  color: #475569;
}
.staff-login-forgot {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ssu-blue, #0a2a66);
  text-decoration: none;
}
.staff-login-forgot:hover {
  text-decoration: underline;
}
.staff-login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.15rem;
  border: none;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0a2a66 0%, #123a8a 55%, #1d4ed8 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0.65rem 1.25rem rgba(10, 42, 102, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.staff-login-submit:hover,
.staff-login-submit:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0.85rem 1.5rem rgba(10, 42, 102, 0.34);
}
.staff-auth-main {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

@media (max-width: 991.98px) {
  .voter-login-shell { grid-template-columns: 1fr; }
  .landing-title { font-size: 2rem; }
  .landing-nav-inner { padding: 0.7rem 0; }
}

.vote-shell-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ssu-gray, #f4f6f9);
  font-family: var(--ssu-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  overflow-x: hidden;
}
.vote-shell-topbar {
  background: linear-gradient(135deg, #0a2a66, #123a8a);
  border-bottom: 2px solid var(--ssu-gold, #F2C318);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}
.vote-shell-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0;
}
.vote-shell-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.vote-shell-student-badge {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vote-shell-main {
  max-width: 960px;
  flex: 1 0 auto;
  width: 100%;
  /* Room for sticky nav + fixed footer */
  padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}
.vote-shell-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  border-top: 1px solid var(--ssu-border-muted, #e0e5ed);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(10, 42, 102, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.vote-shell-footer .container {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.vote-done-card {
  background: #fff;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--ssu-shadow-md, 0 0.75rem 2rem rgba(10, 42, 102, 0.12));
  max-width: 520px;
  margin: 2rem auto;
}
.vote-done-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}
.ballot-progress {
  background: #fff;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.ballot-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ssu-border-muted, #e0e5ed);
  box-shadow: 0 -6px 18px rgba(10, 42, 102, 0.08);
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  padding: 0.75rem 0.75rem;
  /* Sit above the fixed vote-shell footer */
  bottom: calc(3.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 46;
}
.ballot-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}
.ballot-nav-forward {
  flex: 1 1 auto;
  justify-content: flex-end;
}
.ballot-nav-forward .ballot-nav-btn {
  min-width: 7.5rem;
}

.ballot-empty-position {
  padding: 1.75rem 1rem;
  background: #f8fafc;
  border: 1px dashed var(--ssu-border-muted, #e0e5ed);
  border-radius: 0.9rem;
}
.ballot-empty-icon {
  font-size: 1.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

/* Ballot candidate portraits — large & readable */
.ballot-candidates {
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}
.ballot-candidate-card {
  padding: 1rem 0.85rem 1.15rem;
  border-width: 2px;
  border-radius: 1rem;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.ballot-candidate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ballot-candidate-photo {
  width: 100%;
  max-width: 200px;
  height: 240px;
  border-radius: 0.85rem;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto;
  border: 3px solid rgba(10, 42, 102, 0.1);
  box-shadow: 0 0.5rem 1.25rem rgba(10, 42, 102, 0.12);
  background: linear-gradient(160deg, #e8eef8 0%, #d5dde8 100%);
}
.ballot-candidate-photo--placeholder {
  color: #94a3b8;
}
.ballot-candidate-card:hover .ballot-candidate-photo {
  box-shadow: 0 0.65rem 1.5rem rgba(10, 42, 102, 0.18);
}
.ballot-candidate-card.selected .ballot-candidate-photo,
.ballot-candidate-card:has(input:checked) .ballot-candidate-photo {
  border-color: var(--ssu-blue, #0a2a66);
  box-shadow: 0 0 0 3px rgba(10, 42, 102, 0.22), 0 0.65rem 1.5rem rgba(10, 42, 102, 0.16);
}
.ballot-candidate-name {
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ssu-blue, #0a2a66);
  word-break: break-word;
}
.ballot-candidate-party {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.2rem;
  word-break: break-word;
}

@media (min-width: 768px) {
  .ballot-candidate-photo {
    max-width: 220px;
    height: 280px;
  }
  .ballot-candidate-name {
    font-size: 1.15rem;
  }
  .ballot-nav-btn {
    min-height: 3rem;
    font-size: 1.05rem;
    padding: 0.65rem 1.25rem;
  }
}

/* Phones */
@media (max-width: 575.98px) {
  .vote-shell-topbar-inner {
    padding: 0.55rem 0;
    gap: 0.4rem;
  }
  .vote-shell-logo {
    width: 30px;
    height: 30px;
  }
  .vote-shell-topbar .fw-bold {
    font-size: 0.9rem;
  }
  .vote-shell-topbar .small {
    font-size: 0.72rem;
  }
  .vote-shell-student-badge {
    font-size: 0.72rem;
    max-width: 5.75rem;
    padding: 0.35em 0.55em;
  }
  .vote-shell-exit {
    padding: 0.3rem 0.55rem;
  }
  .vote-shell-main {
    padding-top: 1rem !important;
    padding-bottom: calc(8.25rem + env(safe-area-inset-bottom, 0px));
  }
  .vote-shell-footer .container {
    font-size: 0.75rem;
    line-height: 1.35;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .ballot-election-title {
    font-size: 1.1rem;
  }
  .ballot-hint {
    font-size: 0.85rem;
  }
  .ballot-progress {
    padding: 0.65rem 0.75rem;
  }
  .ballot-position .card-header {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
  }
  .ballot-candidates {
    padding: 0.85rem 0.65rem 0.35rem;
  }
  /* Full-width portrait cards on phone */
  .ballot-candidate-card {
    padding: 0.85rem 0.75rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .ballot-candidate-inner {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left !important;
  }
  .ballot-candidate-photo {
    width: 96px;
    max-width: 96px;
    height: 120px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0.65rem;
    border-width: 2px;
  }
  .ballot-candidate-meta {
    margin-top: 0 !important;
    flex: 1;
    min-width: 0;
  }
  .ballot-candidate-name {
    font-size: 1rem;
  }
  .ballot-candidate-party {
    font-size: 0.82rem;
  }
  .ballot-nav {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding: 0.65rem 0.75rem;
    bottom: calc(2.85rem + env(safe-area-inset-bottom, 0px));
  }
  .ballot-nav-btn {
    min-height: 2.65rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
  }
  .ballot-nav-forward {
    flex: 1;
  }
  .ballot-nav-forward .ballot-nav-btn {
    flex: 1;
    min-width: 0;
  }
  .vote-done-card {
    margin: 1rem auto;
    padding: 1.75rem 1.15rem;
  }
  .vote-done-icon {
    font-size: 2.4rem;
  }
}

@media (max-width: 374.98px) {
  .ballot-candidate-photo {
    width: 80px;
    max-width: 80px;
    height: 100px;
  }
  .ballot-nav-label {
    font-size: 0.88rem;
  }
}

/* Student login — mobile polish */
@media (max-width: 575.98px) {
  .voter-login-main {
    padding: 1rem 0.85rem 1.75rem;
    align-items: flex-start;
  }
  .voter-login-card {
    padding: 1.35rem 1.1rem 1.15rem;
    border-radius: 1rem;
  }
  .voter-login-icon {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
  }
  .voter-login-title {
    font-size: 1.25rem;
  }
  .voter-login-subtitle {
    font-size: 0.86rem;
  }
  .voter-login-election-meta {
    grid-template-columns: 1fr;
  }
  .voter-login-countdown {
    font-size: 0.82rem;
  }
  .voter-login-input {
    font-size: 1rem;
    min-height: 3rem;
  }
  .voter-login-submit {
    min-height: 3rem;
    font-size: 0.95rem;
  }
  .staff-login-submit {
    min-height: 3rem;
    font-size: 0.95rem;
  }
  .login-switch-link {
    font-size: 0.8rem;
    padding: 0.55rem 0.35rem;
  }
  .staff-login-info-panel {
    font-size: 0.82rem;
    padding: 0.75rem 0.85rem;
  }
  .voter-login-aside {
    padding: 2rem 1.5rem;
  }
}

/* Public Live Leading Board */
.leading-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at top right, rgba(242, 195, 24, 0.1), transparent 42%),
    linear-gradient(165deg, #eef2f8 0%, #e4ebf5 100%);
  font-family: var(--ssu-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
}
.leading-topbar {
  background: linear-gradient(135deg, #0a2a66, #123a8a);
  border-bottom: 2px solid var(--ssu-gold, #F2C318);
  position: sticky;
  top: 0;
  z-index: 40;
}
.leading-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.leading-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.leading-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.leading-main {
  max-width: 1100px;
}
.leading-hero {
  color: #fff;
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.5rem rgba(10, 42, 102, 0.22);
  isolation: isolate;
}
.leading-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.leading-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: landingHeroKenBurns 24s ease-in-out infinite alternate;
}
.leading-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(7, 29, 71, 0.9) 0%, rgba(10, 42, 102, 0.82) 55%, rgba(18, 58, 138, 0.72) 100%),
    radial-gradient(ellipse at 85% 20%, rgba(242, 195, 24, 0.18), transparent 50%);
  pointer-events: none;
}
.leading-hero-inner {
  position: relative;
  z-index: 2;
  background: transparent;
  border-radius: 0;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: none;
  overflow: visible;
}
.leading-hero-inner::after {
  display: none;
}
.leading-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  backdrop-filter: blur(6px);
}
.leading-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}
.leading-subtitle {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
}
.leading-countdown {
  font-size: 1.35rem;
  font-weight: 800;
}
.leading-turnout-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.leading-turnout-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
}
.leading-turnout-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.leading-turnout-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.2rem;
}
.leading-turnout-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.leading-turnout-bar .progress-bar {
  background: linear-gradient(90deg, var(--ssu-gold, #F2C318), #4ade80);
}
.leading-locked-icon {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.leading-empty {
  background: #fff;
  border: 1px dashed var(--ssu-border-muted, #e0e5ed);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
}
.leading-leader-card {
  background: #fff;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 1rem;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0.5rem 1.25rem rgba(10, 42, 102, 0.06);
  position: relative;
}
.leading-leader-rank {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ssu-blue, #0a2a66);
  background: rgba(10, 42, 102, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.leading-leader-photo,
.leading-photo-placeholder {
  width: 88px;
  height: 110px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.7rem;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(10, 42, 102, 0.1);
}
.leading-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8eef8, #d5dde8);
  color: var(--ssu-blue, #0a2a66);
  font-weight: 800;
  font-size: 1.25rem;
}
.leading-leader-pos {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.leading-leader-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ssu-blue, #0a2a66);
  margin: 0.2rem 0 0.15rem;
  line-height: 1.25;
}
.leading-leader-party {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.leading-leader-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
}
.leading-leader-score strong {
  font-size: 1.15rem;
  color: var(--ssu-blue, #0a2a66);
}
.leading-leader-pct {
  margin-left: 0.25rem;
  font-weight: 800;
  color: #15803d;
}
.leading-position-card {
  background: #fff;
  border: 1px solid var(--ssu-border-muted, #e0e5ed);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.25rem rgba(10, 42, 102, 0.05);
}
.leading-position-head {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--ssu-border-muted, #e0e5ed);
  background: #f8fafc;
}
.leading-position-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ssu-blue, #0a2a66);
  margin: 0;
}
.leading-position-body {
  padding: 0.35rem 0.5rem 0.5rem;
}
.leading-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1.4fr) minmax(0, 1.2fr) 5.5rem;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.6rem;
  border-radius: 0.75rem;
}
.leading-row.is-leading {
  background: rgba(242, 195, 24, 0.12);
}
.leading-row-rank {
  font-weight: 800;
  color: #64748b;
  text-align: center;
}
.leading-row.is-leading .leading-row-rank {
  color: var(--ssu-blue, #0a2a66);
}
.leading-row-candidate {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.leading-row-photo {
  width: 44px;
  height: 54px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.45rem;
  flex-shrink: 0;
  border: 1px solid rgba(10, 42, 102, 0.1);
}
.leading-row-photo.leading-photo-placeholder {
  width: 44px;
  height: 54px;
  font-size: 0.8rem;
  margin: 0;
}
.leading-row-name {
  font-weight: 700;
  color: #0f172a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.25;
}
.leading-row-party {
  font-size: 0.8rem;
  font-weight: 600;
}
.leading-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--ssu-gold, #F2C318);
  color: #1e293b;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.leading-chip.is-tied {
  background: #e2e8f0;
  color: #334155;
}
.leading-row-bar {
  height: 10px;
  background: #e8eef5;
  border-radius: 999px;
  overflow: hidden;
}
.leading-row-bar.progress {
  height: 10px;
  margin-bottom: 0;
}
.leading-row-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.leading-row-votes {
  text-align: right;
  line-height: 1.2;
}
.leading-row-votes strong {
  display: block;
  font-size: 1rem;
  color: var(--ssu-blue, #0a2a66);
  font-variant-numeric: tabular-nums;
}
.leading-row-votes span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #15803d;
}
.leading-footer {
  border-top: 1px solid var(--ssu-border-muted, #e0e5ed);
  background: rgba(255, 255, 255, 0.8);
  margin-top: 2rem;
}

@media (max-width: 767.98px) {
  .leading-turnout-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .leading-row {
    grid-template-columns: 1.5rem minmax(0, 1fr) 4.5rem;
    grid-template-areas:
      "rank candidate votes"
      "bar bar bar";
  }
  .leading-row-rank { grid-area: rank; }
  .leading-row-candidate { grid-area: candidate; }
  .leading-row-votes { grid-area: votes; }
  .leading-row-bar-wrap { grid-area: bar; }
  .leading-hero-inner {
    padding: 1.15rem;
  }
  .leading-countdown {
    font-size: 1.1rem;
  }
}
