/* Beranda Secirebon. */
.home-news-layout {
    grid-template-areas: "feed sidebar" "rubrics sidebar";
    grid-template-rows: auto 1fr;
    row-gap: 0;
}

.home-news-feed {
    grid-area: feed;
    min-width: 0;
}

.home-news-layout > .news-sidebar {
    grid-area: sidebar;
    align-self: start;
    min-width: 0;
}

.home-news-rubrics {
    grid-area: rubrics;
    min-width: 0;
}

.latest-section .section-title {
    margin-bottom: 0;
}

.latest-section .article-row {
    gap: clamp(8px, 1.3vw, 12px);
    padding: 10px 0;
}

.latest-section .row-image {
    width: clamp(88px, 16vw, 150px);
    aspect-ratio: 1.5;
}

.latest-section .article-row .article-kicker {
    margin-bottom: 3px;
}

.latest-section .article-row .row-copy h3 {
    margin-bottom: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.latest-section .article-meta {
    margin-top: 2px;
    min-height: 24px;
    font-size: 10px;
    color: var(--muted);
}

@media (max-width: 700px) {
    .latest-section .article-row {
        display: grid;
        grid-template-columns: minmax(100px, 34%) minmax(0, 1fr);
        align-items: stretch;
        gap: 10px;
    }

    .latest-section .row-image {
        position: relative;
        width: auto;
        min-height: clamp(84px, 23vw, 110px);
        aspect-ratio: auto;
    }

    .latest-section .row-image img {
        position: absolute;
        inset: 0;
    }

    .latest-section .article-row .row-copy {
        justify-content: flex-start;
    }

    .latest-section .row-copy h3 a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        outline-offset: -2px;
    }

    .latest-section .article-meta {
        align-items: flex-end;
        margin-top: auto;
        padding-top: 4px;
        line-height: 1.25;
    }
}

.home-content-section{margin-top:36px;text-align:left}
.home-editor-section{padding:24px;background:#f5fafb;border:1px solid #e0ecef;border-radius:12px}
.home-editor-section .section-title{margin-bottom:22px}
.home-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 18px);
}

.home-editor-grid .small-card {
    min-width: 0;
    padding: clamp(6px, 1.3vw, 12px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.home-editor-grid .small-card-image {
    aspect-ratio: 1.55;
    margin-bottom: 8px;
}

.home-editor-grid .small-card-image > span {
    max-width: calc(100% - 18px);
    overflow-wrap: anywhere;
}

.home-editor-grid .small-card h3 {
    font-size: clamp(12px, 1.5vw, 16px);
    line-height: 1.4;
    min-height: 4.2em;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.home-editor-grid .small-card h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    outline-offset: -2px;
}

.home-editor-grid .small-card small {
    font-size: 10px;
    color: var(--muted);
}

.home-section-empty{padding:22px;border:1px dashed #d5e5e9;border-radius:8px;background:#fff;font-size:13px;line-height:1.8;color:#748288}
.editor-carousel{background:#fff;border:1px solid #deeaed;border-radius:10px;overflow:hidden;touch-action:pan-y pinch-zoom}
.editor-carousel:focus-visible{outline:3px solid #70b2c0;outline-offset:4px}
.editor-carousel-slide{display:block}
.editor-carousel-slide[hidden],.editor-carousel-controls[hidden]{display:none}
.editor-carousel-image{display:block;aspect-ratio:1.8;background:#e6f0f2;overflow:hidden}
.editor-carousel-image img{display:block;width:100%;height:100%;object-fit:cover}
.editor-carousel-copy{padding:22px;min-height:210px}
.editor-carousel-category{display:inline-block;font-size:11px;font-weight:750;color:#087f99;margin-bottom:9px}
.editor-carousel-copy h3{font-size:24px;line-height:1.45;letter-spacing:-.5px;color:#105b66;margin:0 0 10px;overflow-wrap:anywhere}
.editor-carousel-copy>p{font-size:13px;line-height:1.8;color:#748288;margin:0 0 12px}
.editor-carousel-copy>small{display:block;font-size:11px;line-height:1.8;color:#748288}
.editor-carousel-copy>small>span{padding:0 5px}
.editor-carousel-controls{display:flex;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid #e5eef0}
.editor-carousel-controls>button{height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e6e9;border-radius:7px;background:#fff;color:#105b66;padding:6px 9px;font:inherit;font-size:11px;cursor:pointer;flex-shrink:0}
.editor-carousel-controls>button:hover,.editor-carousel-controls>button:focus-visible{background:#e8f4f6;border-color:#087f99}
.editor-carousel-dots{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0}
.editor-carousel-dots button{width:9px;height:9px;border:0;border-radius:50%;padding:0;background:#c5dce1;cursor:pointer}
.editor-carousel-dots button[aria-pressed="true"]{background:#087f99}
.editor-carousel-dots button:focus-visible{outline:2px solid #087f99;outline-offset:3px}
.editor-carousel-position{font-size:10px;color:#748288;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){
    .home-news-layout{row-gap:26px}
    .home-news-layout > .news-sidebar{align-self:stretch;margin-top:0}
    .home-news-rubrics > :first-child{margin-top:0}
    .home-content-section{margin-top:28px}
    .home-editor-section{padding:18px 15px}
    .editor-carousel-copy{padding:17px;min-height:185px}
    .editor-carousel-copy h3{font-size:20px}
    .editor-carousel-copy>p{font-size:12px}
    .editor-carousel-controls{gap:6px;padding:10px}
    .editor-carousel-controls>button{padding:5px 7px}
}
