/*
 * Dispersão, versão 1 (DESIGN.md, seção 11, peça 6). Depende de base.css e
 * graficos.css (eixos, legenda e lista).
 */
.vp-eixo-nome {
  margin-bottom: 8px;
  color: var(--apoio);
  font-size: 13px;
  font-weight: 500;
}
.vp-eixo-nome-x {
  max-width: none;
  margin: 8px 0 0;
  text-align: right;
}
.vp-dispersao .vp-eixo-y,
.vp-dispersao-area {
  height: 360px;
}
.vp-dispersao-area {
  position: relative;
}
.vp-dispersao-grade {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px; /* taste-skill-ignore: grade do eixo do gráfico */
  background: var(--osso-2);
}
.vp-dispersao-faixa {
  position: absolute;
  border-radius: 8px;
  background: var(--osso-2);
}
.vp-dispersao-faixa-nome {
  position: absolute;
  bottom: 8px;
  left: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--apoio);
  font-size: 13px;
  font-weight: 600;
}
.vp-dispersao-ponto {
  position: absolute;
}
.vp-ponto-dispersao {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border: 2px solid var(--borda-campo);
  border-radius: 50%;
  background: var(--tela);
}
.vp-ponto-dispersao.vp-cheio {
  border-color: var(--tinta);
  background: var(--tinta);
}
.vp-dispersao-ponto > .vp-ponto-dispersao {
  position: absolute;
  transform: translate(-50%, -50%);
}
.vp-dispersao-nome {
  position: absolute;
  left: 12px;
  max-width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;

  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.vp-sem-nomes .vp-dispersao-nome {
  display: none;
}
.vp-dispersao-nome.vp-a-esquerda {
  left: auto;
  right: 12px;
}
.vp-dispersao-lista {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 20px;
}

@media (max-width: 767px) {
  .vp-dispersao .vp-eixo-y,
  .vp-dispersao-area {
    height: 300px;
  }
  .vp-dispersao-nome {
    display: none;
  }
  .vp-dispersao-lista {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Ponto com foto (proposta de 11/nov/2026). */
.vp-dispersao-ponto.vp-com-foto {
  z-index: 1;
}
.vp-com-foto .vp-dispersao-nome {
  left: 34px;
  font-size: 14px;
  font-weight: 600;
}
.vp-com-foto .vp-dispersao-nome.vp-a-esquerda {
  left: auto;
  right: 34px;
}
.vp-ponto-foto {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rosa);
  background: var(--osso-2);
}
.vp-ponto-foto:not(.vp-cheio) {
  border-color: var(--borda-campo);
  filter: grayscale(1);
  opacity: 0.75;
}
.vp-dispersao-ponto.vp-ativo {
  z-index: 3;
}
.vp-dispersao-ponto.vp-ativo .vp-ponto-foto {
  transform: scale(1.18);
}
.vp-ponto-foto {
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.1, 1);
}
@media (max-width: 767px) {
  .vp-ponto-foto {
    width: 38px;
    height: 38px;
  }
}
