/* ==========================================================================
   Faixa de apuração do topo da home (Presidente / Governador)
   Prefixo .ed- para não colidir com o CSS do portal.
   ========================================================================== */

.ed-faixa {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFEEDB 100%);
  border-top: 1px solid #FFD9AF;
  border-bottom: 5px solid #FF7D00;
  padding: 18px 0 22px;
  margin-bottom: 22px;
}

.ed-faixa__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ed-faixa__titulo {
  font-size: 16px;
  font-weight: 800;
  color: #3A2411;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* bolinha laranja antes do título */
.ed-faixa__titulo::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #FF7D00;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 125, 0, .22);
}

.ed-faixa__link {
  font-size: 12.5px;
  font-weight: 700;
  color: #A84E00;
  text-decoration: none;
}

.ed-faixa__link:hover {
  text-decoration: underline;
}

.ed-faixa__link:hover {
  text-decoration: underline;
}

/* ------------------------------- Bloco ---------------------------------- */

.ed-bloco {
  background: #fff;
  border: 1px solid #FFD9AF;
  border-top: 3px solid #FF7D00;
  border-radius: 4px 4px 10px 10px;
  padding: 14px 10px 10px;
  height: 100%;
  box-shadow: 0 2px 10px rgba(180, 100, 20, .07);
}

.ed-bloco__cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #FFE8D1;
}

.ed-bloco__nome {
  font-size: 13px;
  font-weight: 800;
  color: #3A2411;
}

.ed-bloco__pct {
  font-size: 12px;
  color: #8A7055;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------- Candidato ------------------------------- */

.ed-item {
  position: relative;
  text-align: center;
  padding: 6px 10px 10px;
  outline: none;
}

.ed-item__foto {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: #EEF1F5;
  display: block;
  margin: 0 auto 7px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #FF7D00;
}

.ed-item__nome {
  color: #3A2411 !important;
  /* nomes sem espaço (ex.: "Candidato string 1234!@#$") não podem
     empurrar o cartão: quebram dentro da própria linha */
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #14161A;
  margin: 0;
  /* nomes longos não podem esticar o cartão */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}

.ed-item__part {
  font-size: 10.5px;
  color: #8A7055;
  margin: 2px 0 0;
}

.ed-item__pct {
  font-size: 15px;
  font-weight: 800;
  color: #A84E00;
  margin: 3px 0 0;
  font-variant-numeric: tabular-nums;
}

.ed-item__selo {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: #12683A;
  border-radius: 3px;
  padding: 1px 5px;
  margin-top: 3px;
}

.ed-item__selo.is-segundo {
  background: #A84E00;
}

.ed-vazio {
  font-size: 12.5px;
  color: #8A7055;
  text-align: center;
  padding: 26px 10px;
  width: 100%;
}

/* ------------------------------- Swiper ---------------------------------- */

/* Antes do Swiper iniciar os cartões já ficam lado a lado */
.ed-carrossel:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.ed-carrossel:not(.swiper-initialized) .ed-item {
  flex: 0 0 33.333%;
}

.ed-carrossel {
  position: relative;
  padding: 0 4px;
}

.ed-nav {
  position: absolute;
  top: 34px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #FFD9AF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease;
}

.ed-nav:hover {
  background: #FF7D00;
  border-color: #FF7D00;
}

/* seta desenhada em CSS, sem depender de fonte de ícones */
.ed-nav::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid #A84E00;
  border-right: 2px solid #A84E00;
}

.ed-nav--prev {
  left: -6px;
}

.ed-nav--prev::before {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.ed-nav--next {
  right: -6px;
}

.ed-nav--next::before {
  transform: rotate(45deg);
  margin-right: 3px;
}

.ed-nav.swiper-button-disabled {
  opacity: .35;
  pointer-events: none;
}

.ed-carrossel .swiper-slide {
  height: auto;
}

/* ------------------------------ Responsivo ------------------------------- */

@media (max-width: 767.98px) {

  /* as duas colunas empilham: a segunda ganha respiro */
  .ed-faixa .col-12+.col-12 {
    margin-top: 12px;
  }
}

@media (max-width: 575.98px) {

  /* setas fora do cartão, para não cobrir a foto */
  .ed-nav--prev {
    left: -8px;
  }

  .ed-nav--next {
    right: -8px;
  }

  .ed-item__foto {
    width: 58px;
    height: 58px;
  }

  .ed-item__pct {
    font-size: 14px;
  }
}

/* Botão centralizado abaixo das duas colunas */
.ed-botao {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  /* laranja vivo com texto branco dá contraste 2,57; este tom passa */
  background: #A84E00;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 24px;
  transition: background-color .15s ease, transform .15s ease;
}

.ed-botao:hover,
.ed-botao:focus {
  background: #8F4200;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* No hover a seta precisa clarear, pois o fundo fica laranja */
.ed-nav:hover::before {
  border-top-color: #fff;
  border-right-color: #fff;
}
