/* V68 — gráficos do Público das campanhas com altura determinística.
   Evita o ciclo Chart.js: canvas 100% -> pai flex automático -> novo resize durante a rolagem. */
body.ux-v68 #tab-public-profile .profile-chart-card:not([data-v58-target]) .profile-chart-canvas.profile-stage-stable-v68{
    position:relative!important;
    display:block!important;
    flex:0 0 var(--profile-stage-height-v68,300px)!important;
    width:100%!important;
    height:var(--profile-stage-height-v68,300px)!important;
    min-height:var(--profile-stage-height-v68,300px)!important;
    max-height:var(--profile-stage-height-v68,300px)!important;
    overflow:hidden!important;
    contain:size layout paint!important;
    box-sizing:border-box!important;
}
body.ux-v68 #tab-public-profile .profile-chart-card:not([data-v58-target]) .profile-chart-canvas.profile-stage-stable-v68>canvas{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
}
/* Os gráficos visuais em HTML (faixa etária/tipo de aluno) mantêm altura pelo próprio conteúdo. */
body.ux-v68 #tab-public-profile .profile-chart-card[data-v58-target] .profile-chart-canvas{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:1 1 auto!important;
    contain:layout paint!important;
}
/* Mapa e blocos não-Chart.js não entram no congelamento de canvas. */
body.ux-v68 #tab-public-profile .profile-brazil-state-map-card .profile-chart-canvas,
body.ux-v68 #tab-public-profile .profile-region-map .profile-chart-canvas{
    height:auto!important;
    max-height:none!important;
    contain:layout paint!important;
}
/* A transformação de hover não deve alterar a geometria percebida enquanto a página rola. */
body.ux-v68 #tab-public-profile .profile-chart-card:hover{
    transform:none!important;
}
@media(max-width:760px){
    body.ux-v68 #tab-public-profile .profile-chart-card:not([data-v58-target]) .profile-chart-canvas.profile-stage-stable-v68{
        --profile-stage-height-v68:270px!important;
    }
}