/*
 * 1.4.362 — a CTA final pública, quando usada como faixa entre os blocos 3 e 4
 * do dashboard Intermediário, mantém a largura de viewport da versão pública.
 * O conteúdo interno continua sendo limitado por .anth-wrap--wide, como no original.
 */
.anth-home .anth-perfis-layout > .anth-perfis-interbloco--cta-final {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    min-width: 100vw !important;
    align-self: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 auto !important;
}

.anth-home .anth-perfis-layout > .anth-perfis-interbloco--cta-final > .anth-cta-final {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Evita qualquer recorte caso uma regra antiga do compositor seja reintroduzida. */
.anth-home .anth-perfis-layout:has(> .anth-perfis-interbloco--cta-final) {
    overflow: visible !important;
}


/* 1.4.364 — ajuste de respiro vertical da faixa CTA entre os blocos 3 e 4. */
.anth-home .anth-perfis-layout > .anth-perfis-interbloco--cta-final {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

.anth-home .anth-perfis-layout > .anth-perfis-interbloco--cta-final > .anth-cta-final {
    box-sizing: border-box !important;
    border-top: 3px solid var(--teal, #00d1b2) !important;
    border-bottom: 3px solid var(--teal, #00d1b2) !important;
}

/* 1.4.365 — quando a CTA não é elegível, os blocos 3 e 4 continuam separados.
 * A regra usa adjacência direta: se a CTA existir entre eles, ela não soma espaço extra.
 */
.anth-home .anth-perfis-layout > .anth-perfis-row--block-3 + .anth-perfis-row--block-4{
    margin-top:10px!important;
}

/* 1.4.365 — Desafio Semanal desativado: neutralização final da moldura.
 * Esta folha carrega depois da paleta RC/IN, que recolore cards com !important.
 * Por isso o estado bloqueado é reafirmado aqui, inclusive no envelope e nos cantos.
 */
.anth-home.anth-home--dashboard-recem-chegado .anth-desafio-semanal--bloqueada,
.anth-home.anth-home--dashboard-iniciante .anth-desafio-semanal--bloqueada,
.anth-home .anth-desafio-semanal--bloqueada[aria-disabled="true"]{
    border-color:rgba(150,156,164,.46)!important;
    outline:0!important;
    box-shadow:0 0 12px rgba(120,126,134,.08),inset 0 0 18px rgba(255,255,255,.018)!important;
}

.anth-home .anth-perfis-section--desafio-semanal:has(.anth-desafio-semanal--bloqueada),
.anth-home--laboratorio .anth-lab-col[data-section="desafio-semanal"] .anth-perfis-section:has(.anth-desafio-semanal--bloqueada){
    border-color:rgba(150,156,164,.34)!important;
    outline:0!important;
    box-shadow:none!important;
}

.anth-home .anth-desafio-semanal--bloqueada .anth-ds-corner{
    border-color:transparent!important;
    box-shadow:none!important;
    filter:none!important;
    opacity:.46!important;
}
.anth-home .anth-desafio-semanal--bloqueada .anth-ds-corner::before,
.anth-home .anth-desafio-semanal--bloqueada .anth-ds-corner::after{
    background:rgba(166,172,180,.58)!important;
    box-shadow:none!important;
}
.anth-home .anth-desafio-semanal--bloqueada .anth-ds-corner-diamond{
    border-color:rgba(166,172,180,.58)!important;
    background:rgba(18,21,24,.96)!important;
    box-shadow:none!important;
}
.anth-home .anth-desafio-semanal--bloqueada .anth-ds-corner--tl{
    border-top-color:rgba(166,172,180,.62)!important;
    border-left-color:rgba(166,172,180,.62)!important;
}
.anth-home .anth-desafio-semanal--bloqueada .anth-ds-corner--tr{
    border-top-color:rgba(166,172,180,.62)!important;
    border-right-color:rgba(166,172,180,.62)!important;
}
.anth-home .anth-desafio-semanal--bloqueada .anth-ds-corner--bl{
    border-bottom-color:rgba(166,172,180,.62)!important;
    border-left-color:rgba(166,172,180,.62)!important;
}
.anth-home .anth-desafio-semanal--bloqueada .anth-ds-corner--br{
    border-bottom-color:rgba(166,172,180,.62)!important;
    border-right-color:rgba(166,172,180,.62)!important;
}
