/*
 * Rondônia Direto — editorias móveis da Home.
 * 1.0.6: mantém Economia / Saúde / Brasil / Mundo e acrescenta CTAs finais sem regras
 * globais; mantém abas, largura segura e proporção natural das miniaturas.
 */
.rd-home-news-tabs{display:none}

@media (max-width:767px){
    .rd-home-news-tabs{
        box-sizing:border-box;
        display:grid!important;
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:4px;
        width:100%!important;
        max-width:100%!important;
        margin:0 0 14px!important;
        padding:4px!important;
        border:1px solid rgba(13,34,54,.10);
        border-radius:12px;
        background:#f4f6f8;
        overflow:hidden;
        clear:both;
    }

    .rd-home-news-tab{
        appearance:none;
        min-width:0;
        min-height:42px;
        margin:0;
        padding:8px 4px;
        border:0;
        border-radius:8px;
        background:transparent;
        color:#14283d;
        font:inherit;
        font-size:14px;
        line-height:1.15;
        font-weight:800;
        text-align:center;
        cursor:pointer;
        white-space:nowrap;
    }

    .rd-home-news-tab[aria-selected="true"]{
        background:#10283f;
        color:#fff;
        box-shadow:0 3px 10px rgba(15,37,58,.16);
    }

    .rd-home-news-tab:focus-visible{
        outline:3px solid #f4c400;
        outline-offset:2px;
    }

    /* O container original mantém o display definido pelo Foxiz/Elementor. */
    .rd-home-news-cluster{
        box-sizing:border-box!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
    }

    /* Somente as quatro colunas validadas pelo JS são tocadas. */
    .rd-home-news-cluster > .rd-home-news-col{
        box-sizing:border-box!important;
        min-width:0!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
    }

    .rd-home-news-cluster > .rd-home-news-col.is-rd-inactive{
        display:none!important;
    }

    .rd-home-news-cluster > .rd-home-news-col.is-rd-active{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        flex:0 0 100%!important;
        flex-basis:100%!important;
        flex-grow:1!important;
        float:none!important;
        transform:none!important;
    }

    .rd-home-news-cluster .rd-home-news-heading{
        display:none!important;
    }

    /* Proteções de largura sem reformatar tipografia, imagens ou cards internos. */
    .rd-home-news-cluster > .rd-home-news-col.is-rd-active,
    .rd-home-news-cluster > .rd-home-news-col.is-rd-active *{
        min-width:0;
        box-sizing:border-box;
    }

    /* 1.0.5 — miniaturas sem corte: preserva a largura original do bloco de
     * mídia, mas remove máscaras/alturas fixas aplicadas pelo layout desktop. */
    .rd-home-news-cluster > .rd-home-news-col.is-rd-active img.rd-home-news-image{
        display:block!important;
        max-width:100%!important;
        width:100%!important;
        height:auto!important;
        min-height:0!important;
        max-height:none!important;
        aspect-ratio:auto!important;
        object-fit:contain!important;
        object-position:center center!important;
        border-radius:8px!important;
        clip-path:none!important;
        -webkit-clip-path:none!important;
        transform:none!important;
    }

    .rd-home-news-cluster > .rd-home-news-col.is-rd-active .rd-home-news-image-shell{
        height:auto!important;
        min-height:0!important;
        max-height:none!important;
        aspect-ratio:auto!important;
        overflow:visible!important;
        border-radius:0!important;
        clip-path:none!important;
        -webkit-clip-path:none!important;
        transform:none!important;
    }
}

/* 1.0.6 — CTA final das listas editoriais da Home.
 * O link de topo do Foxiz continua intacto; este botão é uma alternativa
 * explícita e clicável no final da lista, principalmente no celular. */
.rd-home-category-more-wrap{display:none}

@media (max-width:767px){
    .rd-home-category-list-enhanced > .rd-home-category-more-wrap{
        position:relative!important;
        z-index:20!important;
        display:flex!important;
        justify-content:flex-end!important;
        width:100%!important;
        max-width:100%!important;
        margin:14px 0 4px!important;
        padding:0!important;
        clear:both!important;
        pointer-events:auto!important;
    }

    .rd-home-category-more{
        position:relative!important;
        z-index:21!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        gap:8px!important;
        min-height:42px!important;
        margin:0!important;
        padding:9px 15px!important;
        border:1px solid rgba(16,40,63,.16)!important;
        border-radius:999px!important;
        background:#10283f!important;
        color:#fff!important;
        box-shadow:0 4px 12px rgba(16,40,63,.12)!important;
        font:inherit!important;
        font-size:14px!important;
        line-height:1!important;
        font-weight:800!important;
        text-decoration:none!important;
        white-space:nowrap!important;
        pointer-events:auto!important;
        touch-action:manipulation!important;
    }

    .rd-home-category-more:hover,
    .rd-home-category-more:focus-visible{
        color:#fff!important;
        text-decoration:none!important;
        transform:translateY(-1px);
    }

    .rd-home-category-more:focus-visible{
        outline:3px solid #f4c400!important;
        outline-offset:2px!important;
    }

    .rd-home-category-more-arrow{
        display:inline-block!important;
        font-size:17px!important;
        line-height:1!important;
    }
}
