/* Homepage lead, headline rail and advertising sidebar. */
.home-editorial-top { padding: 0 0 28px; }
.home-editorial-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .95fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-editorial-grid > * { min-width: 0; }
.home-editorial-headlines, .home-editorial-sidebar { border-left: 1px solid var(--vr-gray-200, #d4d4d4); padding-left: 20px; }
.home-editorial-top .home-editorial-image { display: block; position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 9; background: var(--vr-gray-100, #eee); }
.home-editorial-top .home-editorial-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-editorial-top .home-editorial-title { margin: 0 0 7px; font-family: var(--vr-font-secondary); font-size: 18px; font-weight: 500; line-height: 1.55; }
.home-editorial-top .home-editorial-title a { color: var(--vr-text-main, #171717); text-decoration: none; }
.home-editorial-top .home-editorial-title a:hover { color: var(--vr-color-main, #c40000); }
.home-editorial-top .home-editorial-story-lead .home-editorial-title { margin-top: 12px; font-size: 27px; font-weight: 700; line-height: 1.45; }
.home-editorial-date { display: block; color: var(--vr-text-muted, #777); font-size: 12px; line-height: 1.5; }
.home-editorial-list { display: grid; gap: 20px; margin-top: 18px; }
.home-editorial-story-small { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; }
.home-editorial-top .home-editorial-story-small .home-editorial-title { font-size: 16px; }
.home-editorial-story-headline { padding: 0 0 15px; margin-bottom: 15px; border-bottom: 1px solid var(--vr-gray-200, #d4d4d4); }
.home-editorial-story-headline:last-child { margin-bottom: 0; }
.home-editorial-sidebar { display: grid; gap: 17px; }
.home-editorial-sidebar .home-editorial-story-feature .home-editorial-title { margin-top: 10px; font-size: 20px; font-weight: 700; }
.home-editorial-sidebar .home-editorial-story-small { grid-template-columns: 86px minmax(0, 1fr); padding-top: 14px; border-top: 1px solid var(--vr-gray-200, #d4d4d4); }
.home-editorial-sidebar .home-editorial-story-small .home-editorial-title { font-size: 14px; line-height: 1.5; }
.home-editorial-top .home-editorial-ad { margin: 0 !important; max-width: 100%; overflow: hidden; }
.home-editorial-ad img, .home-editorial-ad iframe { max-width: 100%; }
@media (max-width: 1199.98px) and (min-width: 992px) {
    .home-editorial-grid { gap: 15px; }
    .home-editorial-headlines, .home-editorial-sidebar { padding-left: 15px; }
    .home-editorial-top .home-editorial-story-lead .home-editorial-title { font-size: 23px; }
    .home-editorial-sidebar .home-editorial-story-small { grid-template-columns: 70px minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
    .home-editorial-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .home-editorial-sidebar { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--vr-gray-200, #d4d4d4); }
    .home-editorial-sidebar .home-editorial-story-feature .home-editorial-image { max-width: 420px; }
}
@media (max-width: 575.98px) {
    .home-editorial-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .home-editorial-headlines { padding-left: 0; border-left: 0; }
    .home-editorial-top .home-editorial-story-lead .home-editorial-title { font-size: 23px; }
    .home-editorial-top .home-editorial-title { font-size: 17px; }
    .home-editorial-top .home-editorial-story-small .home-editorial-title { font-size: 15px; }
    .home-editorial-sidebar { grid-column: auto; }
}

/* Font families are supplied by Admin > Fonts for the active language. */
html[data-theme] body,
html[data-theme] button,
html[data-theme] input,
html[data-theme] select,
html[data-theme] textarea {
    font-family: var(--vr-font-primary) !important;
}
html[data-theme] :is(h1, h2, h3, h4, h5, h6),
html[data-theme] :is(h1, h2, h3, h4, h5, h6) a,
html[data-theme] .post-item .title,
html[data-theme] .post-item .title a,
html[data-theme] .post-item-small .title,
html[data-theme] .post-item-small .title a,
html[data-theme] .section .section-title .title,
html[data-theme] .sidebar-widget .widget-head .title,
html[data-theme] .magazine-category-title,
html[data-theme] .magazine-category-title a {
    font-family: var(--vr-font-secondary) !important;
}
html[data-theme] .post-content .post-summary,
html[data-theme] .post-content .post-summary h2,
html[data-theme] .entry-content,
html[data-theme] .entry-content :is(p, li, blockquote, h2, h3, h4, h5, h6) {
    font-family: var(--vr-font-content) !important;
}
/* Keep every title in the homepage top section within three lines. */
.home-editorial-top .home-editorial-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-editorial-sidebar .home-editorial-story-sidebar-brief {
    padding-top: 15px;
    border-top: 1px solid var(--vr-gray-200, #d4d4d4);
}
.home-editorial-sidebar .home-editorial-story-sidebar-brief .home-editorial-title {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Small-story titles and first-column story separators. */
.home-editorial-top .home-editorial-story-small .home-editorial-title {
    font-size: 18px;
}
.home-editorial-primary .home-editorial-story {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vr-gray-200, #d4d4d4);
}

.home-editorial-top > .container-xl {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--vr-gray-200, #d4d4d4);
}

.home-editorial-primary .home-editorial-list > .home-editorial-story:last-child,
.home-editorial-headlines > .home-editorial-story:last-child {
    border-bottom: 0;
}

/* Spacing around the Index (Top) banner below the lead section. */
.body-index-page .index-top-ad {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Remove section and Bootstrap margins that enlarged the banner gaps. */
body.body-index-page .section.home-editorial-top {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
html[data-theme] body.body-index-page .index-top-ad {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
body.body-index-page .index-top-ad > .row {
    --bs-gutter-y: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body.body-index-page .index-top-ad + .section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.block-3-post-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    font-family: var(--vr-font-primary), inherit;
}
html[data-theme] .block-3-post-title,
html[data-theme] .block-3-post-title a {
    font-family: var(--vr-font-primary) !important;
}

.section-cat-block-4 .magazine-cat-four-title a,
html[data-theme="news"] .section-cat-block-4 .magazine-cat-four-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #111827 !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    transition: color 0.2s ease !important;
}

@media (min-width: 992px) {
    #postDetailsPage .post-detail-main {
        flex: 1 1 calc(100% - 350px) !important;
        max-width: calc(100% - 350px) !important;
        width: calc(100% - 350px) !important;
    }
    #postDetailsPage .post-detail-sidebar {
        flex: 0 0 350px !important;
        max-width: 350px !important;
        width: 350px !important;
    }
}

/* Give responsive units measurable width without clipping their creative. */
html[data-theme] .ad-space:has(ins.adsbygoogle),
html[data-theme] .home-editorial-ad:has(ins.adsbygoogle) {
    overflow: visible !important;
    min-width: 0;
}

/* Mobile typography: preserve the configured fonts and three-line titles. */
@media (max-width: 575.98px) {
    .home-editorial-top .home-editorial-story-lead .home-editorial-title {
        font-size: clamp(20px, 5.6vw, 23px);
        line-height: 1.45;
    }
    .home-editorial-top .home-editorial-story-small .home-editorial-title {
        font-size: 16px;
        line-height: 1.5;
    }
    .home-editorial-top .home-editorial-story-headline .home-editorial-title {
        font-size: 17px;
        line-height: 1.5;
    }
    .home-editorial-sidebar .home-editorial-story-feature .home-editorial-title {
        font-size: 19px;
        line-height: 1.45;
    }
    .home-editorial-sidebar .home-editorial-story-sidebar-brief .home-editorial-title {
        font-size: 16px;
        line-height: 1.5;
    }
    .home-editorial-top .home-editorial-date {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* Compact first-column mobile list, matching the supplied reference. */
@media (max-width: 575.98px) {
    .home-editorial-primary .home-editorial-list {
        gap: 0;
        margin-top: 14px;
    }
    .home-editorial-primary .home-editorial-list > .home-editorial-story-small {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 14px 0;
        border-bottom: 1px solid var(--vr-gray-150, #eef0f3);
    }
    .home-editorial-primary .home-editorial-list > .home-editorial-story-small:first-child {
        padding-top: 0;
    }
    .home-editorial-primary .home-editorial-list > .home-editorial-story-small:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    .home-editorial-primary .home-editorial-list .home-editorial-image {
        aspect-ratio: 125 / 80;
        border-radius: 6px;
    }
    .home-editorial-primary .home-editorial-list .home-editorial-title {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.35;
        margin: 0 0 6px;
    }
    .home-editorial-primary .home-editorial-list .home-editorial-date {
        font-size: 10px;
        line-height: 1.4;
    }
}
@media (max-width: 359.98px) {
    .home-editorial-primary .home-editorial-list > .home-editorial-story-small {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
    }
}
