/* 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: 600;
    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: 600 !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;
    }
}

/* Reference layout: split lead, four image cards and a compact news rail. */
.home-editorial-grid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 20px; }
.home-editorial-primary .home-editorial-story { padding: 0; border: 0; }
.home-editorial-story-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-editorial-top .home-editorial-image { border-radius: 5px; aspect-ratio: 5 / 3; }
.home-editorial-top .home-editorial-story-lead .home-editorial-title { margin: 0 0 10px; font-size: 25px; line-height: 1.25; }
.home-editorial-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: 12px; color: var(--vr-text-main, #171717); }
.home-editorial-meta a { color: inherit; text-decoration: none; }
.home-editorial-meta .home-editorial-date { font-size: inherit; color: inherit; }
.home-editorial-meta > a + .home-editorial-date { border-inline-start: 1px solid var(--vr-gray-200, #d4d4d4); padding-inline-start: 10px; }
.home-editorial-summary { margin: 0; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.home-editorial-primary .home-editorial-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.home-editorial-primary .home-editorial-list > .home-editorial-story-small { display: block; padding: 0; border: 0; }
.home-editorial-primary .home-editorial-list .home-editorial-image { aspect-ratio: 5 / 3; border-radius: 5px; }
.home-editorial-primary .home-editorial-list .home-editorial-title { margin: 7px 0 0; font-size: 16px; line-height: 1.3; font-weight: 500; }
.home-editorial-sidebar { display: grid; gap: 14px; border: 0; padding: 0; }
.home-editorial-story-rail { display: grid; grid-template-columns: minmax(0, 31%) minmax(0, 1fr); gap: 10px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--vr-gray-200, #d4d4d4); }
.home-editorial-sidebar > .home-editorial-story-rail:last-child { border-bottom: 0; padding-bottom: 0; }
.home-editorial-primary .home-editorial-list .home-editorial-title a { -webkit-line-clamp: 4; line-clamp: 4; }
.home-editorial-top .home-editorial-story-rail .home-editorial-title { margin: 0 0 6px; font-size: 16px; line-height: 1.25; font-weight: 500; }
.home-editorial-story-rail .home-editorial-meta { margin: 0; }
.home-editorial-top > .container-xl { border-bottom: 1px solid var(--vr-gray-200, #d4d4d4); padding-bottom: 24px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .home-editorial-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
    .home-editorial-story-lead { gap: 15px; }
    .home-editorial-top .home-editorial-story-lead .home-editorial-title { font-size: 22px; }
}
@media (max-width: 991.98px) {
    .home-editorial-grid { grid-template-columns: minmax(0, 1fr); }
    .home-editorial-sidebar { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; padding: 0; }
}
@media (max-width: 575.98px) {
    .home-editorial-story-lead { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .home-editorial-top .home-editorial-story-lead .home-editorial-title { font-size: 23px; line-height: 1.35; }
    .home-editorial-primary .home-editorial-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .home-editorial-primary .home-editorial-list .home-editorial-title { font-size: 16px; line-height: 1.4; }
    .home-editorial-sidebar { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .home-editorial-story-rail { grid-template-columns: 105px minmax(0, 1fr); }
}

/* Consistent editorial typography using the site's configured language font. */
html[data-theme] .home-editorial-top .home-editorial-title,
html[data-theme] .home-editorial-top .home-editorial-title a {
    font-family: var(--vr-font-primary, sans-serif) !important;
    font-style: normal;
    letter-spacing: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.home-editorial-top .home-editorial-story-lead .home-editorial-title {
    font-size: clamp(23px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 12px;
}
.home-editorial-primary .home-editorial-list .home-editorial-title,
.home-editorial-top .home-editorial-story-rail .home-editorial-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.home-editorial-top .home-editorial-summary {
    font-family: var(--vr-font-primary, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    margin-top: 10px;
}
.home-editorial-top .home-editorial-meta,
.home-editorial-top .home-editorial-date {
    font-family: var(--vr-font-primary, sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--vr-text-muted, #777);
}
@media (max-width: 575.98px) {
    .home-editorial-top .home-editorial-story-lead .home-editorial-title {
        font-size: 23px;
        line-height: 1.45;
    }
    .home-editorial-primary .home-editorial-list .home-editorial-title,
    .home-editorial-top .home-editorial-story-rail .home-editorial-title {
        font-size: 16px;
        line-height: 1.5;
    }
    .home-editorial-top .home-editorial-summary { font-size: 15px; }
}

/* Keep article breadcrumbs clear of the header's topics row. */
html[data-theme] #postDetailsPage { padding-top: 20px !important; }
@media (max-width: 575.98px) {
    html[data-theme] #postDetailsPage { padding-top: 16px !important; }
}

/* Block Style 5: six horizontal stories in a two-column news grid. */
.section-cat-block-5 .section-content.block-5-story-grid { height: auto; max-height: none; overflow: visible; }
.block-5-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.block-5-story { display: grid; grid-template-columns: minmax(0, 35%) minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; }
.block-5-image { display: block; position: relative; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 6px; background: var(--vr-gray-100, #eee); }
.block-5-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.block-5-body { min-width: 0; }
html[data-theme] .section-cat-block-5 .block-5-title,
html[data-theme] .section-cat-block-5 .block-5-title a { font-family: var(--vr-font-primary, sans-serif) !important; }
.section-cat-block-5 .block-5-title { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.block-5-title a { color: var(--vr-text-main, #171717); text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.block-5-title a:hover { color: var(--vr-color-main, #c40000); }
.block-5-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 5px; font-family: var(--vr-font-primary, sans-serif); font-size: 12px; line-height: 1.5; color: var(--vr-text-muted, #777); }
.block-5-meta a { color: inherit; text-decoration: none; }
.block-5-meta > a + .block-5-date { border-inline-start: 1px solid var(--vr-gray-200, #d4d4d4); padding-inline-start: 8px; }
.block-5-summary { margin: 0; font-family: var(--vr-font-primary, sans-serif); font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--vr-text-main, #171717); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 991.98px) {
    .block-5-story-grid { grid-template-columns: minmax(0, 1fr); }
    .section-cat-block-5 .block-5-title { font-size: 18px; }
}
@media (max-width: 575.98px) {
    .block-5-story-grid { gap: 14px; }
    .block-5-story { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--vr-gray-150, #f3f4f6); }
    .block-5-story:last-child { border-bottom: 0; }
    [data-bs-theme="dark"] .block-5-story { border-bottom-color: #334155; }
    .block-5-image { flex: 0 0 125px; width: 125px; height: 80px; aspect-ratio: auto; border-radius: 6px; }
    .block-5-body { flex: 1 1 auto; }
    .section-cat-block-5 .block-5-title { font-size: 16px; line-height: 1.35; }
    .block-5-title a { -webkit-line-clamp: 3; line-clamp: 3; }
    .block-5-meta { font-size: 11px; }
    .block-5-meta > .block-5-author { display: none; }
    .block-5-meta > .block-5-author + .block-5-date { border-inline-start: 0; padding-inline-start: 0; }
    .block-5-summary { display: none; }
}

/* Block Style 5 section heading. */
.block-5-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-cat-block-5 .block-5-heading { flex: 0 1 auto; min-width: 0; margin: 0; padding: 0; font-size: 21px; font-weight: 750; line-height: 1.4; text-transform: uppercase; }
.block-5-heading::before { content: none; }
.block-5-heading-rule { flex: 1 1 24px; min-width: 16px; height: 3px; background: var(--vr-gray-200, #e2e2e2); }
.block-5-heading a, .block-5-more { color: var(--vr-text-main, #171717); text-decoration: none; }
.section-cat-block-5 .block-5-more { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; border-radius: 999px; padding: 6px 15px; background: #d60000; color: #fff; font-family: var(--vr-font-primary, sans-serif); font-size: 12px; line-height: 1.5; font-weight: 650; white-space: nowrap; }
.block-5-heading a:hover { color: var(--vr-color-main, #c40000); }
.section-cat-block-5 .block-5-more:hover { color: #fff; background: #b50000; }
.block-5-more:focus-visible { outline: 2px solid #d60000; outline-offset: 3px; }
[data-bs-theme="dark"] .block-5-heading-rule { background: #374151; }
[data-bs-theme="dark"] .section-cat-block-5 .block-5-more { background: #d51b2a; color: #fff; }

/* Lead story title: four lines at a consistent size on every screen. */
.home-editorial-top .home-editorial-story-lead .home-editorial-title {
    font-size: 22px;
}
.home-editorial-top .home-editorial-story-lead .home-editorial-title a {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

/* Separate Block Style 5 from the preceding section. */
body.body-index-page .section.section-cat-block-5 {
    padding-top: 28px !important;
}
@media (max-width: 575.98px) {
    body.body-index-page .section.section-cat-block-5 {
        padding-top: 22px !important;
    }
}

/* Block Style 5 separators, excluding the final row. */
.block-5-story {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--vr-gray-200, #d4d4d4);
}
@media (min-width: 992px) {
    .block-5-story:nth-child(2n + 1):nth-last-child(-n + 2),
    .block-5-story:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}
@media (max-width: 991.98px) {
    .block-5-story:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    body.body-index-page .section.section-cat-block-5 {
        margin-bottom: 0 !important;
        padding-bottom: 16px !important;
    }
    body.body-index-page .section.section-cat-block-5 + .section {
        margin-top: 0 !important;
        padding-top: 8px !important;
    }
    .section-cat-block-5 .block-5-story { padding-bottom: 14px; }
    .section-cat-block-5 .block-5-story:last-child { padding-bottom: 0; }
    .section-cat-block-5 .block-5-title { margin-bottom: 0; }
}
