/* Detalhe do vereador (/vereadores/{id}) – padrão clean da câmara.
   --ac-a = cor da câmara (CorMenu) e --site-card-radius = VCaixaArredondamento, inline no container.
   Abas usam .navtab-pilula (acamara_clean.css); listas usam .card-clean (card_clean.css). */

.vd { --vd-borda: #e6e9ee; --vd-suave: color-mix(in srgb, var(--ac-a) 11%, #fff); margin-bottom: 8px; }
.vd-cartao {
  background: #fff;
  border: 1px solid var(--vd-borda);
  border-radius: var(--site-card-radius, 10px);
}

/* ---------- perfil ---------- */
.vd-perfil { display: flex; align-items: center; gap: 24px; padding: 24px; margin-bottom: 20px; }
.vd-perfil__foto {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--vd-suave);
}
.vd-perfil__txt { flex: 1; min-width: 0; }
.vd-perfil__nome { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; color: #1d2939; text-align: left; }
.vd-perfil__nome i { font-size: 18px; margin-left: 4px; vertical-align: 2px; }
.vd-perfil__civil { margin: 2px 0 12px; font-size: 15px; color: #667085; }
.vd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vd-chip { padding: 4px 10px; border-radius: 999px; background: #eef0f3; color: #475467; font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.vd-chip--a { background: var(--vd-suave); color: var(--ac-a); }
.vd-contatos { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 440px; }
.vd-contato {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--vd-borda);
  border-radius: var(--site-card-radius, 10px);
  font-size: 13px;
  color: #475467 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: border-color .15s, background-color .15s;
}
.vd-contato i { color: var(--ac-a); font-size: 15px; }
.vd-contato--icone { padding: 8px 11px; }
a.vd-contato:hover, a.vd-contato:focus-visible { border-color: color-mix(in srgb, var(--ac-a) 40%, #e6e9ee); background: #fafbfc; }

/* ---------- estatísticas ---------- */
.vd-ests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vd-est { padding: 20px 24px; }
.vd-titulo { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: #1d2939; text-align: left; }
.vd-titulo small { font-size: 12.5px; font-weight: 400; color: #667085; }
.vd-est__grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vd-met__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vd-ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--site-card-radius, 10px);
  display: grid;
  place-items: center;
  background: var(--vd-suave);
  color: var(--ac-a);
  font-size: 17px;
}
.vd-rot { font-size: 12.5px; color: #667085; line-height: 1.3; }
.vd-met__val { margin-bottom: 8px; font-size: 28px; font-weight: 700; line-height: 1.1; color: #1d2939; }
.vd-barra { height: 6px; margin-bottom: 6px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.vd-barra i { display: block; height: 100%; border-radius: 999px; background: var(--ac-a); }
/* preenche do zero ao carregar: mesma animação padrão do site (.value__progress / @keyframes value_progress_bar em scss/color.scss) */
.vd-barra i.value__progress { animation: value_progress_bar 5s forwards; }


/* foto clicável: lupa aparece no hover/foco */
.vd-perfil__ampliar {
  position: relative;
  flex: none;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: zoom-in;
}
.vd-perfil__ampliar img { display: block; }
.vd-perfil__lupa {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 24, 40, .45);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity .2s;
}
.vd-perfil__ampliar:hover .vd-perfil__lupa,
.vd-perfil__ampliar:focus-visible .vd-perfil__lupa { opacity: 1; }
.vd-perfil__ampliar:focus-visible { outline: 2px solid var(--ac-a); outline-offset: 4px; }

/* modal da foto ampliada (<dialog> criado pelo datatable/vereador_perfil.html) */
.vd-foto {
  max-width: min(92vw, 560px);
  padding: 0;
  border: 0;
  border-radius: var(--site-card-radius, 10px);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .3);
}
.vd-foto::backdrop { background: rgba(16, 24, 40, .72); }
.vd-foto[open] { animation: vd-foto-entra .2s ease-out; }
@keyframes vd-foto-entra { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vd-foto[open] { animation: none; } }
.vd-foto__img { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #f3f5f7; }
.vd-foto__legenda { margin: 0; padding: 12px 18px; font-size: 13px; color: #667085; }
.vd-foto__legenda strong { display: block; font-size: 15px; color: #1d2939; }
.vd-foto__fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #1d2939;
  font-size: 15px;
  cursor: pointer;
}
.vd-foto__fechar:focus-visible { outline: 2px solid var(--ac-a); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .vd-barra i.value__progress { animation: none; } }
.vd-sub { font-size: 12.5px; color: #667085; }
.vd-atual { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 28px; font-size: 12.5px; color: #667085; }
.vd-perfil + .vd-atual, .vd-perfil:last-child { margin-bottom: 28px; }

/* ---------- matérias por tipo (barras) ---------- */
.vd-tipos { padding: 20px 24px; margin-top: 28px; }
.vd-tipo { display: block; margin-bottom: 12px; color: inherit !important; text-decoration: none !important; }
.vd-tipo:last-child { margin-bottom: 0; }
.vd-tipo__rot { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 13px; color: #475467; }
.vd-tipo__rot b { font-weight: 600; color: #1d2939; white-space: nowrap; }
.vd-tipo__rot em { font-style: normal; font-weight: 400; color: #667085; }
.vd-tipo .vd-barra { height: 8px; margin: 0; }
a.vd-tipo:hover .vd-tipo__rot span, a.vd-tipo:focus-visible .vd-tipo__rot span { color: var(--ac-a); }

/* ---------- telas menores ---------- */
@media (max-width: 991px) {
  .vd-perfil { flex-wrap: wrap; }
  .vd-contatos { justify-content: flex-start; max-width: none; width: 100%; }
  .vd-ests { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 767px) {
  .vd-perfil { flex-direction: column; text-align: center; gap: 14px; padding: 20px 16px; }
  .vd-perfil__foto { width: 96px; height: 96px; }
  .vd-perfil__nome { font-size: 22px; text-align: center; }
  .vd-chips { justify-content: center; }
  .vd-contatos { justify-content: center; padding-top: 14px; border-top: 1px solid var(--vd-borda); }
  .vd-est, .vd-tipos { padding: 16px; }
  .vd-est__grade { gap: 14px; }
  .vd-ic { width: 32px; height: 32px; font-size: 15px; }
  .vd-met__val { font-size: 22px; }
}
