
/* =====================================
   Chile Municipal
   Portada periodistica Mobile First
   ===================================== */

.cm-news-home {
    width: 100%;
    min-width: 0;
    color: #111;
}

.cm-news-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}

.cm-news-primary,
.cm-news-card {
    min-width: 0;
    background: #fff;
}

.cm-news-primary {
    padding-bottom: 20px;
    border-bottom: 1px solid #dedede;
}

.cm-news-home figure {
    margin: 0 0 12px;
    float: none;
    width: 100%;
}

.cm-news-home img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

.cm-news-home .item-title {
    font-family: system-ui, sans-serif;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin: 8px 0;
}

.cm-news-home .item-title a {
    color: #111;
    text-decoration: none;
}

.cm-news-home .item-title a:hover {
    color: #15365c;
}

.cm-news-primary .item-title {
    font-size: clamp(26px, 6.5vw, 42px);
    line-height: 1.12;
}

.cm-news-home p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 10px 0;
}

.cm-news-secondary {
    display: grid;
    gap: 18px;
}

.cm-news-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dedede;
}

.cm-news-card:has(> figure) {
    grid-template-columns: 36% minmax(0, 1fr);
}

.cm-news-card figure {
    margin: 0;
}

.cm-news-card .item-title {
    font-size: 19px;
}

.cm-news-card p {
    font-size: 14px;
}

.cm-news-home .article-info {
    font-size: 12px;
    color: #666;
}

.cm-news-home .article-info-term {
    display: none;
}

.cm-news-home .category-name {
    color: #c92335;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.cm-news-home .category-name a {
    color: #c92335;
}

.cm-section-title {
    font-family: system-ui, sans-serif;
    font-size: 23px;
    font-weight: 800;
    color: #15365c;
    border-bottom: 3px solid #c92335;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cm-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.cm-empty-news {
    padding: 35px 0;
    min-height: 240px;
}

.cm-empty-news h1 {
    color: #15365c;
    font-family: system-ui, sans-serif;
    font-size: 28px;
}

.cm-pagination {
    margin: 30px 0;
}

/* TABLETS */

@media (min-width: 768px) {

    .cm-news-secondary,
    .cm-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-news-card:has(> figure) {
        grid-template-columns: minmax(0, 1fr);
    }

    .cm-news-card .item-title {
        font-size: 22px;
    }
}

/* COMPUTADORES */

@media (min-width: 1024px) {

    .cm-news-hero:has(.cm-news-secondary) {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 30px;
    }

    .cm-news-primary {
        border-bottom: 0;
        padding-right: 24px;
    }

    .cm-news-hero:has(.cm-news-secondary)
    .cm-news-primary {
        border-right: 1px solid #dedede;
    }

    .cm-news-primary .item-title {
        font-size: 40px;
    }

    .cm-news-primary p {
        font-size: 18px;
    }

    .cm-news-secondary {
        grid-template-columns: minmax(0, 1fr);
    }

    .cm-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cm-section-title {
        font-size: 27px;
    }
}

/* Refinamiento editorial Mobile First */

.cm-news-card .item-title {
    margin-top: 0;
    margin-bottom: 6px;
    line-height: 1.2;
}

.cm-news-home .article-info {
    margin: 8px 0;
}

.cm-news-home .article-info dd {
    margin: 3px 0;
}

@media (max-width: 767px) {

    .cm-news-card:has(> figure) {
        grid-template-columns: 40% minmax(0, 1fr);
        align-items: start;
    }

    .cm-news-card figure img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .cm-news-card .item-title {
        font-size: 17px;
    }

    .cm-news-card .item-content > p {
        display: none;
    }

    .cm-news-card {
        padding-bottom: 14px;
    }

    .cm-news-grid,
    .cm-news-secondary {
        gap: 14px;
    }

    .cm-news-primary .item-title {
        font-size: 27px;
    }

    .cm-news-hero {
        gap: 18px;
        margin-bottom: 24px;
    }
}

@media (min-width: 1024px) {

    .cm-news-secondary .cm-news-card:has(> figure) {
        grid-template-columns: 42% minmax(0, 1fr);
        align-items: start;
    }

    .cm-news-secondary .item-title {
        font-size: 19px;
    }

    .cm-news-secondary .item-content > p {
        display: none;
    }

    .cm-news-secondary figure img {
        aspect-ratio: 4 / 3;
    }

    .cm-news-hero {
        align-items: start;
    }
}
