/* Portal Espectro — ajustes visuais consolidados */

/* Cabeçalho compacto da página inicial e arquivos */
.site-header__main {
    min-height: 100px;
    padding-block: 8px;
}

.brand-logo,
.custom-logo {
    max-height: 68px;
}

.site-description {
    margin-top: 2px;
    font-size: 0.72rem;
}

/* Matérias: logo e busca dentro da barra de categorias */
@media (min-width: 721px) {
    body.single-post .site-header__main {
        position: relative;
        z-index: 10;
        height: 0;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    body.single-post .site-branding {
        position: absolute;
        top: 7px;
        left: 0;
        z-index: 20;
        display: block;
        width: auto;
        text-align: left;
    }

    body.single-post .brand-logo-link {
        display: block;
        line-height: 0;
    }

    body.single-post .brand-logo,
    body.single-post .custom-logo {
        display: block;
        width: auto;
        max-width: 155px;
        max-height: 44px;
        object-fit: contain;
    }

    body.single-post .site-description {
        display: none;
    }

    body.single-post .header-actions {
        position: absolute;
        top: 8px;
        right: 0;
        z-index: 20;
    }

    body.single-post .search-toggle {
        width: 40px;
        height: 40px;
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.35);
    }

    body.single-post .search-toggle:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.65);
    }

    body.single-post .site-header__nav-wrap,
    body.single-post .primary-navigation,
    body.single-post .primary-menu,
    body.single-post .primary-menu a {
        height: 58px;
        min-height: 58px;
    }

    body.single-post .primary-menu {
        box-sizing: border-box;
        justify-content: center;
        padding-left: 180px;
        padding-right: 70px;
    }
}

/* Remove o caminho Início / Categoria / Matéria e seu espaço */
body.single-post .breadcrumbs {
    display: none !important;
}

body.single-post .article-main {
    padding-top: 0 !important;
}

/* Rodapé compacto */
.site-footer__grid {
    grid-template-columns: 220px minmax(0, 1fr) 250px;
    gap: 38px;
    padding-block: 28px;
    align-items: start;
}

.footer-brand-logo {
    width: auto;
    max-width: 185px;
    max-height: 54px;
}

.footer-brand p,
.footer-contact p {
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.45;
}

.site-footer h2 {
    margin-bottom: 10px;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    column-gap: 22px;
    row-gap: 8px;
    align-items: center;
}

.footer-menu li,
.footer-menu li + li {
    margin: 0;
}

.footer-menu a {
    display: inline-block;
    white-space: nowrap;
}

.site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 24px;
    min-height: 0;
    padding-block: 16px;
}

.site-footer__bottom::before {
    content: "Falamos sobre o que amamos. Compartilhamos histórias que nos inspiram, exploramos mundos que nos emocionam e celebramos tudo o que nos toca. É assim que criamos o conteúdo que queremos consumir.";
    grid-column: 1 / -1;
    display: block;
    max-width: 980px;
    margin: 0 auto 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
}

.site-footer__bottom p,
.site-footer__bottom > a {
    align-self: center;
}

/* Miniaturas 798 × 407 sem corte do logo */
.home .post-card__media {
    aspect-ratio: 798 / 407;
    height: auto !important;
    overflow: hidden;
    background-color: transparent;
}

.home .post-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 798 / 407;
    object-fit: contain !important;
    object-position: center center !important;
}

.home .post-card,
.home .post-card__media,
.home .post-card__media img {
    border-radius: 10px;
}

/* Tablets */
@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px 35px;
        padding-block: 26px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 22px;
    }

    .footer-brand p {
        margin: 0;
    }

    .footer-menu {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
}

/* Celulares */
@media (max-width: 720px) {
    .site-header__main {
        min-height: 82px;
        padding-block: 7px;
    }

    .brand-logo,
    .custom-logo {
        max-height: 54px;
    }

    body.single-post .site-header__main {
        min-height: 62px;
        padding-block: 6px;
    }

    body.single-post .brand-logo,
    body.single-post .custom-logo {
        max-height: 42px;
    }

    body.single-post .site-description {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-block: 24px;
    }

    .footer-brand {
        grid-column: auto;
        display: block;
        text-align: center;
    }

    .footer-brand-logo {
        margin-inline: auto;
    }

    .footer-navigation,
    .footer-contact {
        text-align: center;
    }

    .footer-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 18px;
    }

    .footer-menu a {
        white-space: normal;
    }

    .site-footer__bottom {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-block: 18px;
        text-align: center;
    }

    .site-footer__bottom::before {
        margin-bottom: 3px;
        font-size: 0.79rem;
        line-height: 1.5;
    }

    .site-footer__bottom > a {
        justify-self: center;
    }
}
