/* Shared news visibility defaults also apply to shortcode/Elementor pages.
 * Responsive layout changes below remain scoped to the homepage. */
body.home :is(#dga-homepage, .dga-homepage) .search-wrap.dga-search-standalone {
    margin-top: 0;
    padding-top: 24px;
    background: var(--soft, #f6f7fb);
}
:is(#dga-homepage, .dga-homepage) .news .news-actions {
    display: contents;
}
:is(#dga-homepage, .dga-homepage) .news .news-mobile-all {
    display: none;
}
:is(#dga-homepage, .dga-homepage) .news .news-toolbar {
    flex-wrap: wrap;
}
:is(#dga-homepage, .dga-homepage) .news .sec-head {
    flex-wrap: wrap;
}
:is(#dga-homepage, .dga-homepage) .news .news-brand {
    flex: 1 1 200px;
}
:is(#dga-homepage, .dga-homepage) .news .sec-head .all {
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
}

@media (max-width: 640px) {
    body.home :is(#dga-homepage, .dga-homepage) :is(
        .important-heading h2,
        .svc-intro h2,
        .dga-services-heading h2,
        .policy-brand h2,
        .news .sec-head h2,
        .channel-heading h2,
        .showcase-copy h2,
        .dga-voices-brand h2,
        .express h2
    ) {
        font-size: 24px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .sec-head {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 16px 12px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .news-brand {
        flex: 1 1 140px;
    }
    body.home :is(#dga-homepage, .dga-homepage) :is(.news .sec-head, .channel-heading) h2 {
        line-height: 1.4;
    }
    body.home :is(#dga-homepage, .dga-homepage) .city .channel-toolbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 16px 12px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .channel-toolbar :is(.channel-heading, .channel-heading > div) {
        display: contents;
    }
    body.home :is(#dga-homepage, .dga-homepage) .channel-toolbar .channel-title {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
    }
    body.home :is(#dga-homepage, .dga-homepage) .channel-toolbar .channel-heading h2 {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body.home :is(#dga-homepage, .dga-homepage) .channel-heading .channel-emblem {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .city .channel-actions .all {
        order: 1;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 92px);
        width: fit-content;
        margin-left: 0;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
        text-align: center;
    }
    body.home :is(#dga-homepage, .dga-homepage) .channel-toolbar .channel-intro {
        order: 2;
        flex: 0 0 100%;
        margin: 0;
    }
    body.home :is(#dga-homepage, .dga-homepage) .city .channel-actions {
        display: flex;
        order: 3;
        flex: 0 0 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .channel-actions .news-controls {
        order: 3;
        margin-left: auto;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news > .wrap > .news-toolbar {
        row-gap: 16px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .news-toolbar .tabs {
        position: relative;
        order: 2;
        flex: 0 0 100%;
        width: 100%;
        justify-content: space-between;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .news-toolbar .news-tab-divider {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    body.home :is(#dga-homepage, .dga-homepage) .news > .wrap > .news-toolbar .news-controls {
        margin-left: auto;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .news-desktop-all {
        display: none;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .news-actions {
        display: flex;
        order: 1;
        flex: 0 0 100%;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .news-mobile-all {
        display: inline-flex;
        min-width: 0;
        max-width: calc(100% - 90px);
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
        text-align: center;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .news-toolbar .news-nav,
    body.home :is(#dga-homepage, .dga-homepage) .channel-toolbar .news-nav,
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-controls button {
        --dga-carousel-size: 36px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .news-toolbar .news-nav svg {
        width: 14px;
        height: 14px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-brand {
        align-items: flex-start;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-brand > div {
        flex: 1;
        min-width: 0;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-brand h2 {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-brand h2 > span {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices > .wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-heading {
        grid-row: 1;
        margin-bottom: 0;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-gallery {
        display: contents;
        padding-inline: 0;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-window {
        grid-area: 2 / 1;
        min-width: 0;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voice-card {
        box-sizing: border-box;
        flex-basis: 100%;
        padding: 20px 28px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-controls {
        position: relative;
        inset: auto;
        grid-area: 2 / 1;
        align-self: center;
        width: calc(100% + 24px);
        margin-inline: -12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-controls button {
        position: relative;
        inset: auto;
        transform: none;
    }
    body.home :is(#dga-homepage, .dga-homepage) .dga-voices-dots {
        grid-area: 3 / 1;
        align-self: center;
        justify-self: center;
        align-items: center;
        width: 100%;
        margin-top: 0;
    }
    body.home :is(#dga-homepage, .dga-homepage) .hero--globe .hero-copy {
        width: calc(100% - 48px);
        padding: 48px 0 180px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .hero--globe .hero-copy .lead[lang="en"] {
        width: auto;
        white-space: normal;
    }
    body.home :is(#dga-homepage, .dga-homepage) .showcase--awards .showcase-copy h2 {
        white-space: normal;
        overflow-wrap: normal;
    }
    body.home :is(#dga-homepage, .dga-homepage) .showcase--awards .showcase-copy h2 .dga-heading-accent {
        display: inline-block;
        white-space: nowrap;
    }

    /* Reserve a 16px gap above the 24px slide targets and their 4px bottom inset. */
    body.home :is(#dga-homepage, .dga-homepage) .showcase--awards .object-caption {
        top: auto;
        bottom: 44px;
        transform: none;
    }
}

/* Keep section headings consistent and card titles smaller on tablets. */
@media (min-width: 641px) and (max-width: 1100px) {
    body.home :is(#dga-homepage, .dga-homepage) :is(
        .important-heading h2,
        .svc-intro h2,
        .dga-services-heading h2,
        .policy-brand h2,
        .news .sec-head h2,
        .channel-heading h2,
        .showcase-copy h2,
        .dga-voices-brand h2,
        .express h2
    ) {
        font-size: 24px;
    }
    body.home :is(#dga-homepage, .dga-homepage) .news .ncard h3,
    body.home :is(#dga-homepage, .dga-homepage) .mix .channel-detail h3 {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Stack policy shortcuts at the existing tablet breakpoint. */
@media (min-width: 601px) and (max-width: 950px) {
    body.home :is(#dga-homepage, .dga-homepage) .policy-direct ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    body.home :is(#dga-homepage, .dga-homepage) .policy-direct li + li {
        border-top: 1px solid #eaecf0;
    }
    body.home :is(#dga-homepage, .dga-homepage) .policy-direct .policy-topic {
        justify-content: space-between;
    }
}
