/* =========================================================================
   Destaques da home — partials/featured.php
   Hero: imagem com o titulo por cima (gradiente escuro embaixo); no celular
   colada no header e de borda a borda. Linhas: "horas atras" + titulo, imagem
   a direita, filete entre elas. Titulos em Khand (fonte de headline do site).
   Imagens com cantos retos, sem border-radius (padrao do site, pedido do dono 2026-10-04).
   ====================================================================== */

.featured-section {
    margin: var(--size-6) auto 0;
}

.featured-container,
.featured-primary,
.featured-secondary,
.featured-row,
.featured-row__body {
    min-width: 0;
}

/* ---------- Hero ---------- */

.featured-primary {
    display: grid;
    gap: 16px;
}

.featured-hero__link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1b1d22;
    color: #fff;
    text-decoration: none;
}

.featured-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-hero__link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .5) 35%, rgba(0, 0, 0, 0) 62%);
    pointer-events: none;
}

.featured-hero__title {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 18px;
    left: 20px;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-family: 'Khand', 'Roboto', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.featured-hero__link:hover .featured-hero__title,
.featured-hero__link:focus-visible .featured-hero__title {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--primary);
}

/* ---------- Linhas ---------- */

.featured-secondary {
    display: flex;
    flex-direction: column;
}

.featured-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    column-gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color-1);
}

.featured-row:first-child {
    padding-top: 0;
}

.featured-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.featured-row__time {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1;
    color: var(--text-3);
}

.featured-row__title {
    margin: 0;
    font-family: 'Khand', 'Roboto', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
}

.featured-row__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--text-1);
    text-decoration: none;
}

.featured-row__title a:hover,
.featured-row__title a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--primary);
}

.featured-row__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dfe3e6;
}

.featured-row__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Layout ---------- */

@media screen and (min-width: 769px) {
    .featured-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: var(--size-px-10);
        align-items: start;
    }

    /* no PC o 2o destaque e o 2o hero; a linha dele existe so no celular */
    .featured-row--mobile {
        display: none;
    }

    .featured-hero--desktop .featured-hero__title {
        bottom: 21px;
        font-size: 26px;
    }

    /* 2o hero 3px mais baixo na base (sem mexer no grid), para fechar com a ultima linha */
    .featured-hero--desktop .featured-hero__link {
        clip-path: inset(0 0 3px 0);
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .featured-container {
        column-gap: var(--size-px-6);
    }
}

/* PC: a coluna de linhas fecha exatamente na altura dos dois heroes — as
   linhas sao compactas o bastante para caber e o espaco que sobra e
   distribuido entre elas (space-between), entao o topo da 1a linha bate com o
   topo do hero 1 e o fim da ultima com o fim do hero 2. */
@media screen and (min-width: 1025px) {
    .featured-container {
        align-items: stretch;
    }

    .featured-secondary {
        justify-content: space-between;
    }

    .featured-row {
        grid-template-columns: minmax(0, 1fr) 110px;
        align-items: center; /* texto centralizado na altura da miniatura */
        padding: 9px 0;
    }

    /* a 1a linha VISIVEL no PC e a que vem depois da linha so-celular (post 2) */
    .featured-row:first-child,
    .featured-row--mobile + .featured-row {
        padding-top: 0;
    }

    .featured-row:last-child {
        padding-bottom: 0;
    }

    .featured-row__title {
        font-size: 20px;
        line-height: 1.05;
    }
}

@media screen and (max-width: 768px) {
    /* hero colado no header e de borda a borda */
    .featured-section {
        margin-top: 0;
    }

    .featured-container {
        display: flex;
        flex-direction: column;
        row-gap: 6px;
    }

    .featured-hero {
        margin-inline: calc(var(--align-site-padding) * -1);
    }

    .featured-hero--desktop {
        display: none;
    }

    .featured-hero__link {
        aspect-ratio: 4 / 3;
    }

    .featured-hero__title {
        right: 16px;
        bottom: 14px;
        left: 16px;
        font-size: 26px;
    }

    .featured-row {
        grid-template-columns: minmax(0, 1fr) 120px;
        column-gap: 14px;
    }

    .featured-row:first-child {
        padding-top: 14px;
    }

    .featured-row__title {
        font-size: 19px;
    }
}

@media screen and (max-width: 360px) {
    .featured-hero__title {
        font-size: 23px;
    }

    .featured-row {
        grid-template-columns: minmax(0, 1fr) 108px;
    }

    .featured-row__title {
        font-size: 18px;
    }
}
