/* نوار کاندیدای جوان سال — فایل جدا تا کش CSS قدیمی آن را نپوشاند */
body.has-vote-header {
  --vote-bar-h: 48px;
}

.topbar.topbar--campaign {
  top: 0 !important;
  height: calc(var(--nav-h) + var(--vote-bar-h)) !important;
  display: flex !important;
  flex-direction: column !important;
}

.topbar.topbar--campaign .topbar__inner {
  height: var(--nav-h);
  flex: 0 0 var(--nav-h);
}

.kp-vote-strip {
  flex: 0 0 var(--vote-bar-h);
  display: flex !important;
  align-items: center;
  min-height: 48px;
  color: #fff8ea !important;
  background: linear-gradient(90deg, #001a1a 0%, #003838 55%, #0b5550 100%) !important;
  border-bottom: 1px solid rgba(240, 180, 90, 0.35);
}

.kp-vote-strip__row {
  display: flex !important;
  align-items: center;
  gap: 0.45rem 0.75rem;
  width: 100%;
  min-width: 0;
  font-size: 0.82rem;
}

.kp-vote-strip__kicker {
  flex: 0 0 auto;
  padding: 0.16rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #3b2a08 !important;
  background: #f0b45a !important;
  border-radius: 999px;
  white-space: nowrap;
}

.kp-vote-strip__name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff8ea !important;
  white-space: nowrap;
}

.kp-vote-strip__role {
  color: #9ee6df !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kp-vote-strip__chips {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: auto;
}

.kp-vote-strip__chip {
  padding: 0.14rem 0.55rem;
  color: rgba(255, 248, 234, 0.92) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  white-space: nowrap;
}

.kp-vote-strip__chip em {
  margin-right: 0.2rem;
  font-style: normal;
  font-weight: 800;
  color: #f0b45a !important;
  font-variant-numeric: tabular-nums;
}

.kp-vote-strip__btn {
  flex: 0 0 auto;
  padding: 0.32rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #002a2a !important;
  background: #f0b45a !important;
  border-radius: 999px;
  white-space: nowrap;
}

.kp-vote-strip__btn:hover {
  filter: brightness(1.07);
}

@media (max-width: 1100px) {
  .kp-vote-strip__role {
    display: none;
  }
}

@media (max-width: 780px) {
  body.has-vote-header {
    --vote-bar-h: 46px;
  }

  .kp-vote-strip__chips {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .kp-vote-strip__kicker {
    display: none;
  }

  .kp-vote-strip__name {
    font-size: 0.82rem;
  }
}

.vote-campaign__layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 1.5rem;
}

.vote-campaign__portrait,
.vote-campaign__panel {
  display: block !important;
  min-height: 0 !important;
}

@media (max-width: 900px) {
  .vote-campaign__layout {
    grid-template-columns: 1fr !important;
  }
}
