/* Feed editorial vertical: las reglas solo actúan después de que JS identifica
   el listado principal de noticias. */
.mfv-feed {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: min(calc(100% - 40px), 1440px) !important;
    margin-inline: auto !important;
}

.mfv-feed > ul {
    display: contents !important;
}

.mfv-feed .mfv-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(17, 24, 39, .07);
}

.mfv-feed .mfv-card > *:not(.mfv-card__media, figure, picture),
.mfv-feed .mfv-card > .entry-header,
.mfv-feed .mfv-card > .entry-content,
.mfv-feed .mfv-card > .entry-summary,
.mfv-feed .mfv-card > .entry-footer {
    margin-inline: 22px;
}

.mfv-feed .mfv-card .mfv-card__media,
.mfv-feed .mfv-card > figure,
.mfv-feed .mfv-card > picture,
.mfv-feed .mfv-card .post-thumbnail {
    display: block;
    order: -1;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background: #f1f2f4;
    aspect-ratio: auto !important;
}

.mfv-feed .mfv-card .mfv-card__media img,
.mfv-feed .mfv-card > figure img,
.mfv-feed .mfv-card > picture img,
.mfv-feed .mfv-card .post-thumbnail img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    transition: transform .35s ease;
}

.mfv-feed .mfv-card .news-card__body {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 20px 22px 24px !important;
}

.mfv-feed .mfv-card .news-card__category {
    order: 1;
    margin: 0 !important;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mfv-feed .mfv-card .news-card__body h2 {
    order: 2;
    margin: 0 !important;
}

.mfv-feed .mfv-card:hover .mfv-card__media img,
.mfv-feed .mfv-card:hover .post-thumbnail img {
    transform: none;
}

.mfv-feed .mfv-card h2,
.mfv-feed .mfv-card h3,
.mfv-feed .mfv-card .entry-title {
    font-size: clamp(1.15rem, 1.45vw, 1.65rem) !important;
    line-height: 1.15 !important;
    text-wrap: balance;
}

.mfv-feed .mfv-card .entry-summary,
.mfv-feed .mfv-card .entry-content,
.mfv-feed .mfv-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.mfv-feed .mfv-card > *:last-child {
    margin-bottom: 22px;
}

@media (max-width: 1050px) {
    .mfv-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: min(calc(100% - 32px), 900px) !important;
        gap: 20px !important;
    }
}

@media (max-width: 640px) {
    .mfv-feed {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        width: min(calc(100% - 24px), 520px) !important;
    }

    .mfv-feed .mfv-card {
        border-radius: 16px;
        border-inline: 1px solid #e7e7e7;
        box-shadow: 0 6px 20px rgba(17, 24, 39, .06);
    }

    .mfv-feed .mfv-card > *:not(.mfv-card__media, figure, picture),
    .mfv-feed .mfv-card > .entry-header,
    .mfv-feed .mfv-card > .entry-content,
    .mfv-feed .mfv-card > .entry-summary,
    .mfv-feed .mfv-card > .entry-footer {
        margin-inline: 16px;
    }

    .mfv-feed .mfv-card .news-card__body {
        margin: 0 !important;
        padding: 16px 16px 20px !important;
    }

    .mfv-feed .mfv-card h2,
    .mfv-feed .mfv-card h3,
    .mfv-feed .mfv-card .entry-title {
        font-size: clamp(1.3rem, 6.5vw, 1.8rem) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mfv-feed .mfv-card img { transition: none !important; }
}
