/*
 * Manado.news R4 — Waktu-style Editorial Pairs.
 * Sumber visual: pasangan Peristiwa + Sosial & Komunitas Waktu.news.
 * CSS dibatasi pada .mn4-editorial agar modul R1–R3 tetap utuh.
 */

.wnhr-home .mn4-editorial.wnps-pair-v2 {
    display: grid;
    grid-template-columns: minmax(0, 2.08fr) minmax(300px, .92fr);
    gap: 18px;
    align-items: start;
    margin-top: 30px;
}

.wnhr-home .mn4-editorial--left-only,
.wnhr-home .mn4-editorial--right-only {
    grid-template-columns: minmax(0, 1fr) !important;
}

.wnhr-home .mn4-editorial .wnps-peristiwa-v2 {
    min-width: 0;
}

.wnhr-home .mn4-editorial .wnps-peristiwa-v2 > .wnhr-hukrim {
    height: 100%;
    margin-top: 0;
}

.wnhr-home .mn4-editorial .wnps-peristiwa-v2 .wnhr-stream-item {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 15px;
    color: inherit;
    text-decoration: none;
}

.wnhr-home .mn4-editorial .wnps-peristiwa-v2 .wnhr-stream-item-media {
    width: 100%;
    max-width: 185px;
}

.wnhr-home .mn4-editorial .wnps-peristiwa-v2 .wnhr-channel-link {
    white-space: nowrap;
}

/* Panel kanan mengikuti bentuk dan tone Sosial & Komunitas Waktu.news. */
.wnhr-home .mn4-editorial .wnps-social-v2 {
    display: flex;
    min-width: 0;
    height: auto;
    flex-direction: column;
    align-self: start;
    overflow: hidden;
    border: 1px solid rgba(21, 33, 63, .10);
    border-radius: 22px;
    background: linear-gradient(160deg, #fff8f4 0%, #fff 45%, #f6f8fc 100%);
    box-shadow: 0 14px 34px rgba(13, 28, 61, .07);
}

.wnhr-home .mn4-editorial .wnps-social-v2-head {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(21, 33, 63, .09);
    background: radial-gradient(circle at 100% 0, rgba(255, 104, 55, .15), transparent 45%);
}

.wnhr-home .mn4-editorial .wnps-social-v2-heading {
    min-width: 0;
}

.wnhr-home .mn4-editorial .wnps-social-v2-kicker {
    display: block;
    margin-bottom: 5px;
    color: #ed542f;
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: .075em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wnhr-home .mn4-editorial .wnps-social-v2-title {
    margin: 0;
    color: #10203f;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.wnhr-home .mn4-editorial .wnps-social-v2-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 27px;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff693a, #ef4f2b);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.wnhr-home .mn4-editorial .wnps-social-v2-list {
    display: block;
    flex: 0 0 auto;
    padding: 5px 14px 2px;
}

.wnhr-home .mn4-editorial .wnps-social-v2-item {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(21, 33, 63, .09);
    color: inherit;
    text-decoration: none;
}

.wnhr-home .mn4-editorial .wnps-social-v2-item:last-child {
    border-bottom: 0;
}

.wnhr-home .mn4-editorial .wnps-social-v2-media {
    overflow: hidden;
    width: 82px;
    aspect-ratio: 1 / 1;
    border-radius: 13px;
    background: #edf1f7;
}

.wnhr-home .mn4-editorial .wnps-social-v2-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.wnhr-home .mn4-editorial .wnps-social-v2-item:hover .wnps-social-v2-media img {
    transform: scale(1.04);
}

.wnhr-home .mn4-editorial .wnps-social-v2-copy {
    min-width: 0;
}

.wnhr-home .mn4-editorial .wnps-social-v2-label {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff0e9;
    color: #ed542f;
    font-size: 7.5px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wnhr-home .mn4-editorial .wnps-social-v2-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 7px;
    color: #14213f;
    font-size: 12.6px;
    font-weight: 850;
    letter-spacing: -.016em;
    line-height: 1.27;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.wnhr-home .mn4-editorial .wnps-social-v2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #7a8597;
    font-size: 8.4px;
    font-weight: 700;
}

.wnhr-home .mn4-editorial .wnps-social-v2-more {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 9px 14px 14px;
    padding: 0 15px;
    border-radius: 13px;
    background: linear-gradient(135deg, #102958 0%, #173d77 100%);
    color: #fff !important;
    font-size: 9.2px;
    font-weight: 850;
    letter-spacing: .035em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(13, 35, 74, .14);
    transition: transform .2s ease, background .2s ease;
}

.wnhr-home .mn4-editorial .wnps-social-v2-more::after {
    content: "→";
    color: #ff7448;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.wnhr-home .mn4-editorial .wnps-social-v2-more:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #f26338, #eb4f2e);
    color: #fff !important;
}

@media (max-width: 980px) {
    .wnhr-home .mn4-editorial.wnps-pair-v2 {
        grid-template-columns: minmax(0, 1.65fr) minmax(275px, .85fr);
        gap: 14px;
    }

    .wnhr-home .mn4-editorial .wnps-peristiwa-v2 .wnhr-stream-item {
        grid-template-columns: 155px minmax(0, 1fr);
    }

    .wnhr-home .mn4-editorial .wnps-peristiwa-v2 .wnhr-stream-item-media {
        max-width: 155px;
    }

    .wnhr-home .mn4-editorial .wnps-social-v2-item {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .wnhr-home .mn4-editorial .wnps-social-v2-media {
        width: 74px;
    }
}

@media (max-width: 820px) {
    .wnhr-home .mn4-editorial.wnps-pair-v2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .wnhr-home .mn4-editorial .wnps-social-v2-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }
}

@media (max-width: 620px) {
    .wnhr-home .mn4-editorial.wnps-pair-v2 {
        margin-top: 26px;
    }

    .wnhr-home .mn4-editorial .wnps-peristiwa-v2 .wnhr-channel-heading {
        align-items: start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .wnhr-home .mn4-editorial .wnps-peristiwa-v2 .wnhr-stream-item {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 11px;
    }

    .wnhr-home .mn4-editorial .wnps-peristiwa-v2 .wnhr-stream-item-media {
        max-width: 112px;
    }

    .wnhr-home .mn4-editorial .wnps-social-v2-list {
        display: block;
        padding: 4px 13px 2px;
    }

    .wnhr-home .mn4-editorial .wnps-social-v2-item {
        grid-template-columns: 78px minmax(0, 1fr);
        padding: 13px 0;
    }

    .wnhr-home .mn4-editorial .wnps-social-v2-media {
        width: 78px;
    }

    .wnhr-home .mn4-editorial .wnps-social-v2-title {
        font-size: 19px;
    }

    .wnhr-home .mn4-editorial .wnps-social-v2-more {
        margin: 8px 13px 13px;
    }
}
