/* ============================================================
   styles.css — Eleições 2026
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */

body {
  background-color: #fafafa;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.page-template-page-agregador,
.tax-eleicoes_ano {
  background-color: #fafafa;
}

.page-wrapper {
  max-width: 1280px;
  margin: 20px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background-color: #fafafa;
  padding: 16px 16px;
}

/* ── Header ───────────────────────────────────────────────── */
.page-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.header-eyebrow {
  background: #dcfce7;
  border-radius: 100px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #008732;
  white-space: nowrap;
  display: inline-flex;
  align-self: flex-start;
}

.header-title {
  font-size: 40px;
  font-weight: 600;
  color: #050505;
  line-height: 1.402;
  margin: 0;
}

.header-cargo {
  font-size: 30px;
  font-weight: 400;
  color: #484a48;
  line-height: 1.402;
  margin: 0;
}

.header-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #484a48;
  line-height: 1.4;
  width: 100%;
}

.fonte-bar {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.fonte-bar__label {
  font-size: 16px;
  font-weight: 600;
  color: #484a48;
  letter-spacing: 0.04em;
}
.fonte-bar__value {
  font-size: 14px;
  font-weight: 700;
  color: #050505;
  letter-spacing: 0.04em;
  background: #fff;
  border: 1px solid #050505;
  border-radius: 4px;
  min-width: 110px;
  padding: 0 12px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all ease 0.25s;
}

.fonte-bar__value.active,
.fonte-bar__value:hover {
  background: #f1f1f1;
  border: 1px solid #d8d8d8;
}

/* ── Layout ───────────────────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  align-items: start;
}
.page-layout--single {
  grid-template-columns: 1fr;
}

/* ── Navigation ───────────────────────────────────────────── */
.page-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  display: none;
}
.page-nav::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  padding: 8px 12px;
  border-radius: 4px;
  border: 0.5px solid #050505;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
  background: #fff;
  color: #050505;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
}
.nav-btn.active,
.nav-btn:hover {
  background: #050505;
  color: #fff;
}
.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Tokens compartilhados ────────────────────────────────── */
.candidate-photo {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e8e8;
}
.candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.candidate-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.candidate-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.candidate-name-party {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.candidate-party {
  font-size: 14px;
  font-weight: 400;
  color: #484a48;
}

.pct-badge {
  border-radius: 100px;
  padding: 4px 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Avatares especiais (Voto branco/Nulo e Indecisos) */
.candidate-photo--blank {
  background: #fff;
  border: 1px solid #050505;
}
.candidate-photo--question {
  background: #fff;
  border: 1px solid #d8dbd8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: #484a48;
  font-family: 'Figtree', sans-serif;
}

.progress-wrap {
  height: 4px;
  background: #ebebeb;
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.date-badge {
  background: #dcfce7;
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #008732;
  white-space: nowrap;
}

/* ── Card principal ───────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.badge-title {
  background: rgba(216, 216, 216, 0.4);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 20px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.action-label {
  font-size: 14px;
  font-weight: 600;
  color: #484a48;
  cursor: pointer;
}

/* Botão "Exibir gráfico" no card header */
.chart-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  padding: 0;
}
.chart-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #484a48;
  cursor: pointer;
}
.chart-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(216, 216, 216, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  color: #484a48;
}
.chart-toggle-btn:hover .chart-toggle-icon {
  background: rgba(200, 200, 200, 0.6);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(216, 216, 216, 0.4);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: rgba(200, 200, 200, 0.6);
}
.icon-btn.dark {
  background: #050505;
}
.icon-btn.dark:hover {
  background: #333;
}

/* ── Blocos de turno ──────────────────────────────────────── */
.turno-block {
  display: flex;
  flex-direction: column;
  border: 0.5px solid #d8dbd8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
}

.turno-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  gap: 20px;
}

.turno-title {
  font-size: 24px;
  font-weight: 600;
  color: #050505;
}

.turno-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  transform: rotate(270deg); /* → aponta pra baixo quando aberto */
  color: #050505;
}
.turno-block:not(.open) .turno-arrow {
  transform: rotate(90deg); /* → aponta pra direita quando fechado */
}

.turno-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px 20px;
  overflow: hidden;
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #fff;
}
.turno-block:not(.open) .turno-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.turno-question {
  font-size: 18px;
  font-weight: 400;
  color: #484a48;
  line-height: 1.5;
  display: block;
  width: 100%;
}
.turno-question em,
.turno-question i {
  font-size: 16px;
  color: #484a48;
}

.turno-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Cenário tabs */
.cenario-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Filtro de estados (presidente) */
.estado-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Filtro de estados — accordion (outros cargos) */
.estados-accordion-content {
  border-radius: 100px;
  border: 1px solid #d8dbd8;
  background-color: #fff;
  padding: 12px;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-flow: row;
}

.estados-accordion__button-az {
  cursor: pointer;
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.estados-accordion__button-az:hover {
  opacity: 0.7;
}
.estados-accordion__button-az.active path:first-child {
  fill: #050505;
  fill-opacity: 1;
}
.estados-accordion__button-az.active path:not(:first-child) {
  stroke: #fff;
}

.estados-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050505;
  border: none;
  cursor: pointer;
  gap: 12px;
  text-align: left;
  border-radius: 100px;
  height: 100%;
  padding: 8px 12px;
}

.estados-accordion__trigger-text {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.estados-accordion__selected {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.estados-accordion__trigger-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.estados-accordion__chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.estados-accordion.is-open .estados-accordion__chevron {
  transform: rotate(180deg);
}

.estados-accordion__panel {
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    padding-top 0.28s ease,
    padding-bottom 0.28s ease;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 12px;
  width: 100%;
  margin-top: 0;
  border: 1px solid transparent;
  z-index: 9;
  position: relative;
  top: -50px;
}
.estados-accordion.is-open .estados-accordion__panel {
  padding-top: 16px;
  padding-bottom: 16px;
  border-color: #d8dbd8;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
  margin-top: 12px;
}

.estados-accordion__label {
  font-size: 11px;
  font-weight: 600;
  color: #484a48;
  letter-spacing: 0.08em;
}

.estados-accordion__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.estado-pill {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(216, 216, 216, 0.4);
  background: rgba(216, 216, 216, 0.4);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #050505;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.estado-pill.active,
.estado-pill:hover {
  background: #050505;
  color: #fff;
  font-weight: 600;
}

.estados-accordion__recolher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #050505;
  align-self: center;
  padding: 4px 8px;
}

.navegacao-btn {
  border-radius: 100px;
}

.cenario-btn {
  border-radius: 5px;
}

.cenario-btn,
.navegacao-btn {
  padding: 6px 12px;
  border: 1px solid #050505;
  background: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #050505;
  transition: all ease 0.25s;
}
.cenario-btn.active,
.cenario-btn:hover,
.navegacao-btn.active,
.navegacao-btn:hover {
  background: #050505;
  color: #fff;
  border-color: #050505;
}

/* Lista de candidatos — card principal (60px) */
.card .candidates-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card .candidate-item,
.estado-card__turno .candidate-item {
  background: #fff;
  border: 0.5px solid #d8dbd8;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.card .candidate-photo {
  width: 60px;
  height: 60px;
}
.card .candidate-name {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .pct-badge {
  font-size: 18px;
}

/* ── Seção de gráfico ─────────────────────────────────────── */
.chart-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
}

/* Filter panel */
.filter-panel {
  background: #fff;
  border: 0.5px solid #f0eff0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-label {
  font-size: 14px;
  font-weight: 600;
}
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s;
  user-select: none;
}
.chip.dim {
  opacity: 0.25;
}

.show-all {
  display: none; /* só aparece no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

/* Chart */
.chart-container {
  background: #fafafa;
  border: 0.5px solid #d8d8d8;
  border-radius: 12px;
  padding: 12px 8px 8px;
  overflow: hidden;
}
[id^='voteChart'] {
  display: block;
  width: 100% !important;
  height: 240px !important;
}

.chart-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

/* Notes */
.notes {
  font-size: 12px;
  font-weight: 400;
  color: #484a48;
  line-height: 1.6;
}
.notes p {
  margin-bottom: 2px;
}

.header-question {
  font-size: 18px;
  width: 100%;
  font-weight: 600;
}

.share-title {
  font-size: 12px;
  text-transform: uppercase;
}

#chartBody1,
#chartBody2 {
  gap: 20px;
  display: flex;
  flex-flow: column;
}

/* ── Sidebar "Outras pesquisas" ───────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 75px;
  align-self: start;
}

.sidebar-title {
  font-size: 22px;
  font-weight: 600;
  color: #050505;
  margin: 0;
}

.sidebar-card {
  /* herda .estado-card — somente overrides de tamanho */
}

.sidebar .candidate-photo.estado-card__photo {
  width: 40px;
  height: 40px;
}

.sidebar .candidate-name {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .pct-badge {
  font-size: 13px;
}

.sidebar .candidate-item {
  background: #fff;
  border: 0.5px solid #d8dbd8;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Animação das barras da sidebar */
.sidebar-progress-bar {
  height: 100%;
  border-radius: 2px;
  transform-origin: left center;
  animation: bar-grow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* pub ad */
.sidebar .pubad.sticky {
  position: sticky;
  top: 20px;
  overflow: hidden;
}
.sidebar .pubad img,
.sidebar .pubad > * {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0px auto;
}
.sidebar .pubad {
  background-color: var(--preto-9);
}

.estado-card__info {
  height: 20px;
  width: 20px;
  position: relative;
  cursor: pointer;
}

.estado-card__tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 0.5px solid #f0eff0;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.12);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #050505;
  z-index: 100;
  text-align: left;
}

.estado-card__tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 0.5px solid #f0eff0;
  border-bottom: 0.5px solid #f0eff0;
  transform: rotate(45deg);
}

.estado-card__info:hover .estado-card__tooltip {
  display: block;
}

.estado-card__tooltip-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;

  > span {
    font-size: 16px;
    font-weight: 600;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cenario-btn {
    font-size: 14px;
  }
  .turno-title {
    font-size: 20px;
  }
  .turno-question {
    font-size: 16px;
  }
  .header-title {
    font-size: 36px;
  }
  .header-cargo {
    font-size: 22px;
  }
  .page-layout-main {
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    max-width: 100%;
  }
  .header-subtitle {
    font-size: 18px;
  }

  /* Filtro de estados */
  .trigger-label {
    font-size: 16px;
  }
  .states-wrap {
    gap: 8px;
  }
  .state-pill {
    font-size: 14px;
  }

  .header-question {
    font-size: 16px;
  }
}

@media (max-width: 530px) {
  .share-title {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Navegações: sem quebra de linha, scroll lateral */
  .cenario-tabs,
  .fonte-bar,
  .estado-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cenario-tabs::-webkit-scrollbar,
  .fonte-bar::-webkit-scrollbar,
  .estado-filter::-webkit-scrollbar {
    display: none;
  }
  .cenario-tabs > *,
  .fonte-bar > *,
  .estado-filter > * {
    flex-shrink: 0;
  }

  /* Chips com wrap normal — sem scroll lateral */
  .filter-chips {
    flex-wrap: wrap;
  }

  /* Chips excedentes ocultas até clicar "Exibir todos" */
  .chip-hidden {
    display: none;
  }

  /* "Exibir todos" visível no mobile */
  .show-all {
    display: flex;
  }
}

@media (max-width: 480px) {
  .header-subtitle {
    font-size: 18px;
  }
  .card .candidate-name {
    font-size: 18px;
  }
  .card .pct-badge {
    font-size: 18px;
  }
  .filter-chips {
    gap: 6px;
  }
  .chip {
    font-size: 10px;
    padding: 4px 8px;
  }
  .sidebar .candidate-name {
    font-size: 18px;
  }
  .sidebar .pct-badge {
    font-size: 13px;
  }
  .sidebar-title {
    font-size: 20px;
  }
  .poll-badge {
    font-size: 15px;
  }

  /* Filtro de estados */
  .dropdown-trigger {
    padding: 8px;
  }
  .trigger-pill {
    padding: 6px 10px;
  }
  .trigger-label {
    font-size: 16px;
  }
  .state-pill {
    font-size: 13px;
    padding: 3px 8px;
  }
  .dropdown-panel.open {
    padding: 14px;
  }

  /* Filtro de fontes */
  .fonte-label {
    font-size: 16px;
  }
  .fonte-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* ── Home de estados ──────────────────────────────────────── */
.estados-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.estado-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 0.5px solid #d8dbd8;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
}

.estado-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.estado-card__nome {
  font-size: 18px;
  font-weight: 600;
  color: #050505;
  background-color: rgba(216, 216, 216, 0.4);
  padding: 4px 8px;
  border-radius: 100px;
}
.estado-card__nome strong {
  font-weight: 700;
  color: #050505;
}

.estado-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #484a48;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}

.estado-card__link::before {
  content: '';
  width: 0;
  height: 1px;
  background-color: #484a48;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.25s ease;
}

.estado-card__link svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.estado-card__link:hover::before {
  width: 83%;
}

.estado-card__link:hover svg {
  transform: translateX(4px);
}

.estado-card__tabs {
  display: flex;
  gap: 16px;
  border-bottom: 2px solid #e8e8e8;
}

.estado-card__tab {
  padding: 6px 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #050505;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;

  margin-bottom: -2px;
}
.estado-card__tab.active {
  color: #050505;
  border-bottom-color: #050505;
}
.estado-card__tab:hover {
  color: #050505;
}

.estado-card__turno {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estado-card__candidate {
  display: flex;
  align-items: center;
  gap: 8px;
}

.estado-card__photo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  font-size: 16px;
}

.estado-card__name {
  font-size: 14px !important;
  font-weight: 600;
}

.estado-card__pct {
  font-size: 13px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.estado-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  justify-content: end;
}

.estado-card__date {
  background: #dcfce7;
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #008732;
  white-space: nowrap;
}

.estado-card__fonte {
  background: #dcfce7;
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #008732;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .estados-home-grid {
    grid-template-columns: 1fr;
  }
}
