/* =========================================================
   ONLINE ESCOLA - AJUSTES DE LEITURA DA AREA PUBLICA
   Aplicado depois do publico-v2.css.
   ========================================================= */

/* Páginas de listagem: cards e filtros com leitura confortável */
.oe-v2-pagehero nav,
.oe-v2-breadcrumb{
    font-size:12px;
}

.oe-v2-pagehero p{
    font-size:15px;
    line-height:1.5;
}

.oe-v2-filter input,
.oe-v2-filter select{
    font-size:14px;
}

.oe-v2-filter button,
.oe-v2-filter>a{
    font-size:13px;
}

.oe-v2-card__body h3{
    font-size:17px;
    line-height:1.32;
}

.oe-v2-card__body p{
    font-size:14px;
    line-height:1.52;
}

.oe-v2-card__body small{
    font-size:12px;
}

.oe-v2-card .oe-v2-chip{
    font-size:11px;
}

.oe-v2-card--compact .oe-v2-card__body h3{
    font-size:15px;
}

.oe-v2-card--compact .oe-v2-card__body p{
    font-size:13px;
}

.oe-v2-card__action{
    font-size:12px;
    min-height:34px;
}

.oe-v2-list-footer>span,
.oe-v2-pagination a,
.oe-v2-pagination span{
    font-size:12px;
}

/* Página individual: título, resumo e texto da postagem/conteúdo */
.oe-v2-detail-meta{
    font-size:13px;
    gap:10px 16px;
}

.oe-v2-detail-meta .oe-v2-chip{
    font-size:12px;
    text-decoration:none;
}

.oe-v2-featured{
    font-size:12px;
}

.oe-v2-detail-inner>h1{
    font-size:40px;
    line-height:1.14;
}

.oe-v2-detail-summary{
    font-size:18px;
    line-height:1.58;
    margin-bottom:16px;
}

.oe-v2-detail-tags{
    gap:8px;
    margin-bottom:23px;
}

.oe-v2-detail-tags a{
    display:inline-flex;
    align-items:center;
    padding:7px 12px;
    border-radius:999px;
    background:#edf4ff;
    color:#2860d8;
    font-size:12px;
    line-height:1.2;
    font-weight:750;
    text-decoration:none;
    transition:.18s ease;
}

.oe-v2-detail-tags a:hover{
    background:#dfeaff;
    color:#124fc7;
}

.oe-v2-rich{
    font-size:17px;
    line-height:1.78;
}

.oe-v2-rich p{
    margin-bottom:17px;
}

.oe-v2-rich h2{
    font-size:27px;
    line-height:1.25;
    margin-top:31px;
}

.oe-v2-rich h3{
    font-size:22px;
    line-height:1.3;
    margin-top:27px;
}

.oe-v2-rich h4{
    font-size:19px;
}

.oe-v2-rich li{
    margin-bottom:6px;
}

.oe-v2-facts strong{
    font-size:14px;
}

.oe-v2-facts p{
    font-size:13px;
    line-height:1.5;
}

.oe-v2-download strong{
    font-size:15px;
}

.oe-v2-download small,
.oe-v2-download>a{
    font-size:13px;
}

/* Sidebar: títulos, tags e relacionados maiores */
.oe-v2-sidebar{
    gap:16px;
}

.oe-v2-sidebox{
    padding:16px;
}

.oe-v2-sidebox__title{
    margin-bottom:13px;
}

.oe-v2-sidebox__title h3{
    font-size:20px;
    line-height:1.2;
}

.oe-v2-sidebox__title svg{
    width:22px;
    height:22px;
}

.oe-v2-sidebox__title--link>a{
    font-size:13px;
}

.oe-v2-tagcloud{
    gap:8px;
}

.oe-v2-tag{
    padding:7px 10px;
    text-decoration:none;
}

.oe-v2-tag--1{font-size:12px}
.oe-v2-tag--2{font-size:13px}
.oe-v2-tag--3{font-size:14px}
.oe-v2-tag--4{font-size:15px}

.oe-v2-tag small{
    min-width:21px;
    height:21px;
    font-size:10px;
}

.oe-v2-related-item{
    grid-template-columns:104px 1fr;
    gap:11px;
    padding:11px 0;
}

.oe-v2-related-item img,
.oe-v2-related-fallback{
    width:104px;
    height:76px;
}

.oe-v2-related-item small{
    font-size:10px;
    line-height:1.25;
}

.oe-v2-related-item strong{
    font-size:14px;
    line-height:1.32;
    margin:4px 0 5px;
}

.oe-v2-related-item em{
    font-size:10.5px;
}

.oe-v2-related-item em svg{
    width:12px;
}

/* Mantém chips-categoria clicáveis com aparência de chip */
a.oe-v2-chip{
    text-decoration:none;
}

@media(max-width:700px){
    .oe-v2-detail-inner>h1{
        font-size:31px;
    }

    .oe-v2-detail-summary{
        font-size:16px;
    }

    .oe-v2-rich{
        font-size:16px;
    }

    .oe-v2-related-item{
        grid-template-columns:92px 1fr;
    }

    .oe-v2-related-item img,
    .oe-v2-related-fallback{
        width:92px;
        height:68px;
    }
}

/* =========================================================
   RODAPÉ GLOBAL - MESMO PADRÃO COMPACTO DA PÁGINA INICIAL
   ========================================================= */
.oe-footer{
    margin-top:0 !important;
    padding:22px 0 18px !important;
    background:#fff !important;
    color:#13213e !important;
    border-top:1px solid #e3e9f2 !important;
}

.oe-footer .oe-shell{
    width:calc(100% - 96px) !important;
    max-width:1500px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding:0 !important;
}

.oe-footer-grid{
    display:grid !important;
    grid-template-columns:minmax(320px,1.7fr) minmax(135px,.72fr) minmax(185px,.95fr) minmax(170px,.86fr) minmax(280px,1.28fr) !important;
    gap:26px !important;
    align-items:start !important;
}

.oe-footer-grid>section,
.oe-footer-grid>nav{
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
}

.oe-footer h3{
    margin:0 0 11px !important;
    color:#0f1d3b !important;
    font-size:15px !important;
    line-height:1.25 !important;
    font-weight:850 !important;
}

.oe-footer-logo{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    color:#0b57d0 !important;
    text-decoration:none !important;
}

.oe-footer-logo-icon,
.oe-platform-icon{
    width:48px !important;
    height:48px !important;
    flex:0 0 48px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:var(--oe-site-secondary,#1098ef) !important;
}

.oe-footer-logo-icon svg,
.oe-platform-icon svg{
    width:34px !important;
    height:34px !important;
}

.oe-footer-logo strong{
    display:block !important;
    color:var(--oe-site-primary,#0957ce) !important;
    font-size:18px !important;
    line-height:1.15 !important;
    font-weight:850 !important;
}

.oe-footer-logo small{
    display:block !important;
    margin-top:3px !important;
    color:#6c7890 !important;
    font-size:13px !important;
    line-height:1.3 !important;
}

.oe-footer-brand>p{
    max-width:440px !important;
    margin:12px 0 9px !important;
    color:#647089 !important;
    font-size:14px !important;
    line-height:1.55 !important;
}

.oe-footer-brand>a:not(.oe-footer-logo),
.oe-footer-brand>span,
.oe-footer-brand>small{
    color:#66748e !important;
    font-size:13px !important;
    line-height:1.5 !important;
    text-decoration:none !important;
}

.oe-footer-column{
    display:flex !important;
    flex-direction:column !important;
    gap:5px !important;
}

.oe-footer-column a{
    color:#5f6d87 !important;
    text-decoration:none !important;
    font-size:14px !important;
    line-height:1.35 !important;
}

.oe-footer-column a:hover{
    color:var(--oe-site-primary,#0d63e8) !important;
    text-decoration:underline !important;
}

.oe-platform-brand{
    display:flex !important;
    align-items:flex-start !important;
    gap:10px !important;
}

.oe-platform-brand strong{
    display:block !important;
    margin:2px 0 5px !important;
    color:#0f1d3b !important;
    font-size:15px !important;
    line-height:1.25 !important;
    font-weight:850 !important;
}

.oe-platform-brand p{
    max-width:250px !important;
    margin:0 !important;
    color:#68758e !important;
    font-size:13.5px !important;
    line-height:1.5 !important;
}

.oe-footer-follow{
    min-width:0 !important;
}

.oe-footer-socials{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 12px !important;
}

.oe-footer-socials a{
    width:32px !important;
    height:32px !important;
    border:1px solid #dce5f2 !important;
    border-radius:8px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:var(--oe-site-primary,#0d63e8) !important;
    background:#f7faff !important;
    text-decoration:none !important;
    font-size:14px !important;
    font-weight:850 !important;
}

.oe-footer-socials svg{
    width:17px !important;
    height:17px !important;
}

.oe-footer-follow>strong{
    display:block !important;
    margin:0 0 7px !important;
    color:#384762 !important;
    font-size:13.5px !important;
    line-height:1.3 !important;
}

.oe-newsletter{
    width:100% !important;
    max-width:300px !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 88px !important;
    gap:0 !important;
    margin:0 !important;
}

.oe-newsletter input{
    min-width:0 !important;
    height:40px !important;
    padding:0 12px !important;
    border:1px solid #ccd7e8 !important;
    border-right:0 !important;
    border-radius:8px 0 0 8px !important;
    color:#263651 !important;
    background:#fff !important;
    font-size:13px !important;
}

.oe-newsletter button{
    height:40px !important;
    padding:0 12px !important;
    border:0 !important;
    border-radius:0 8px 8px 0 !important;
    background:var(--oe-site-primary,#0c59d8) !important;
    color:#fff !important;
    font-size:13px !important;
    font-weight:800 !important;
}

@media(max-width:1500px){
    .oe-footer .oe-shell{
        width:calc(100% - 64px) !important;
        max-width:none !important;
    }
}

@media(max-width:1450px){
    .oe-footer-grid{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:24px 34px !important;
    }
}

@media(max-width:980px){
    .oe-footer .oe-shell{
        width:calc(100% - 40px) !important;
    }
}

@media(max-width:820px){
    .oe-footer-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:22px !important;
    }
    .oe-footer-brand,
    .oe-footer-follow{
        grid-column:1/-1 !important;
    }
}

@media(max-width:720px){
    .oe-footer .oe-shell{
        width:calc(100% - 28px) !important;
    }
}

@media(max-width:520px){
    .oe-footer{
        padding:20px 0 16px !important;
    }
    .oe-footer-grid{
        grid-template-columns:1fr !important;
        gap:20px !important;
    }
    .oe-footer-brand,
    .oe-footer-follow{
        grid-column:auto !important;
    }
    .oe-newsletter{
        max-width:none !important;
    }
}


/* =========================================================
   AJUSTE FINAL - TOPBAR COM LEITURA MAIOR
   ========================================================= */
@media (min-width:981px){
    .oe-mainbar-inner{
        min-height:76px !important;
        grid-template-columns:auto minmax(500px,1fr) minmax(250px,370px) !important;
        gap:30px !important;
    }

    .oe-nav{
        gap:29px !important;
    }

    .oe-nav a{
        font-size:15.5px !important;
        line-height:1.2 !important;
        font-weight:800 !important;
        padding:28px 0 25px !important;
        letter-spacing:-.01em !important;
    }

    .oe-nav a.active:after{
        bottom:15px !important;
        height:3px !important;
    }

    .oe-search{
        height:42px !important;
    }

    .oe-search input{
        font-size:13.5px !important;
        padding:0 14px !important;
    }

    .oe-search button{
        width:44px !important;
    }
}

@media (max-width:1180px) and (min-width:981px){
    .oe-nav{
        gap:20px !important;
    }

    .oe-nav a{
        font-size:14.5px !important;
    }
}

@media (max-width:980px){
    .oe-nav a{
        font-size:15px !important;
        font-weight:800 !important;
        line-height:1.3 !important;
        padding:12px 13px !important;
    }
}

/* =========================================================
   AJUSTE FINAL - FOOTER MELHOR DISTRIBUIDO
   ========================================================= */
.oe-footer{
    padding:24px 0 0 !important;
}

.oe-footer .oe-shell{
    width:min(1600px,calc(100% - 80px)) !important;
    max-width:1600px !important;
    margin:0 auto !important;
}

.oe-footer-grid{
    width:100% !important;
    grid-template-columns:minmax(310px,1.45fr) minmax(150px,.72fr) minmax(205px,.92fr) minmax(165px,.72fr) minmax(300px,1.2fr) !important;
    column-gap:38px !important;
    row-gap:22px !important;
    justify-content:stretch !important;
}

.oe-footer-brand>p{
    max-width:390px !important;
}

.oe-footer-follow{
    width:100% !important;
}

.oe-newsletter{
    width:100% !important;
    max-width:none !important;
    grid-template-columns:minmax(0,1fr) 100px !important;
}

.oe-newsletter input,
.oe-newsletter button{
    height:42px !important;
}

.oe-footer-bottom{
    width:100% !important;
    margin-top:20px !important;
    padding:14px 0 16px !important;
    border-top:1px solid #e7ecf3 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:20px !important;
    color:#728097 !important;
}

.oe-footer-bottom small,
.oe-footer-bottom span{
    font-size:12.5px !important;
    line-height:1.4 !important;
}

@media(max-width:1500px){
    .oe-footer .oe-shell{
        width:calc(100% - 64px) !important;
        max-width:none !important;
    }

    .oe-footer-grid{
        grid-template-columns:minmax(280px,1.3fr) minmax(135px,.7fr) minmax(190px,.9fr) minmax(150px,.72fr) minmax(270px,1.1fr) !important;
        column-gap:28px !important;
    }
}

@media(max-width:1250px){
    .oe-footer-grid{
        grid-template-columns:minmax(280px,1.25fr) repeat(2,minmax(160px,.75fr)) minmax(240px,1fr) !important;
    }

    .oe-footer-column:nth-of-type(3){
        grid-column:auto !important;
    }
}

@media(max-width:980px){
    .oe-footer-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:24px 30px !important;
    }

    .oe-footer-brand,
    .oe-footer-follow{
        grid-column:1/-1 !important;
    }

    .oe-footer-bottom{
        align-items:flex-start !important;
        flex-direction:column !important;
        gap:4px !important;
    }
}

@media(max-width:560px){
    .oe-footer .oe-shell{
        width:calc(100% - 28px) !important;
    }

    .oe-footer-grid{
        grid-template-columns:1fr !important;
    }

    .oe-footer-brand,
    .oe-footer-follow{
        grid-column:auto !important;
    }
}

/* =========================================================
   CORRECAO DEFINITIVA - FOOTER OCUPA TODA A LARGURA UTIL
   Remove limites herdados do CSS base e distribui as 5 colunas.
   ========================================================= */
@media (min-width:1501px){
    .oe-footer .oe-shell{
        width:min(1680px,calc(100% - 96px)) !important;
        max-width:1680px !important;
    }

    .oe-footer-grid{
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
        grid-template-columns:
            minmax(340px,1.55fr)
            minmax(155px,.72fr)
            minmax(220px,.95fr)
            minmax(185px,.78fr)
            minmax(360px,1.40fr) !important;
        column-gap:36px !important;
        justify-content:stretch !important;
        align-items:start !important;
    }

    .oe-footer-brand{
        width:100% !important;
        max-width:none !important;
    }

    .oe-footer-brand>p{
        max-width:500px !important;
    }

    .oe-footer-follow{
        width:100% !important;
        max-width:none !important;
        justify-self:stretch !important;
    }

    .oe-newsletter{
        width:100% !important;
        max-width:none !important;
        grid-template-columns:minmax(0,1fr) 110px !important;
    }
}

@media (min-width:1251px) and (max-width:1500px){
    .oe-footer-grid{
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        grid-template-columns:
            minmax(285px,1.35fr)
            minmax(135px,.68fr)
            minmax(195px,.88fr)
            minmax(155px,.72fr)
            minmax(300px,1.20fr) !important;
        column-gap:26px !important;
        justify-content:stretch !important;
    }

    .oe-footer-follow,
    .oe-newsletter{
        width:100% !important;
        max-width:none !important;
    }
}
