/* WWHO v11 — header identity + program association UI */

.site-header .main-nav {
    gap: clamp(18px, 2vw, 34px);
}

.site-header .header-brand-identity {
    display: inline-flex !important;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 0 1 auto !important;
    text-decoration: none;
}

.site-header .header-brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header .header-brand-identity .header-brand-logo img {
    display: block;
    width: auto !important;
    height: 54px !important;
    max-width: 145px !important;
    object-fit: contain;
}

.site-header .header-brand-divider {
    width: 1px;
    height: 58px;
    background: #dbe4ef;
    flex: 0 0 1px;
}

.site-header .header-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 150px;
    max-width: 205px;
    line-height: 1.08;
}

.site-header .header-brand-copy strong {
    color: #0d2f62;
    font-size: clamp(.92rem, 1.05vw, 1.12rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
}

.site-header .header-brand-copy small {
    margin-top: 7px;
    color: #2f81d7;
    font-size: .73rem;
    font-weight: 600;
    line-height: 1.2;
}

html[dir="rtl"] .site-header .header-brand-copy {
    text-align: right;
}

html[dir="ltr"] .site-header .header-brand-copy {
    text-align: left;
}

/* Let the navigation use the remaining width without forcing the brand to overlap it. */
.site-header .nav-menu {
    min-width: 0;
    gap: clamp(15px, 1.55vw, 25px);
}

.site-header .header-actions {
    flex: 0 0 auto;
}

/* Mobile drawer gets the translated identity too, while the compact top header stays clean. */
.drawer-brand-identity {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.drawer-brand-identity img {
    flex: 0 0 auto;
    max-width: 78px !important;
    max-height: 46px !important;
    object-fit: contain;
}

.drawer-brand-identity > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.08;
}

.drawer-brand-identity strong {
    color: #fff;
    font-size: .83rem;
    font-weight: 700;
    line-height: 1.12;
}

.drawer-brand-identity small {
    color: #79c7ff;
    margin-top: 4px;
    font-size: .66rem;
    font-weight: 600;
    line-height: 1.15;
}

html[dir="rtl"] .drawer-brand-identity > span { text-align: right; }
html[dir="ltr"] .drawer-brand-identity > span { text-align: left; }

@media (max-width: 1399.98px) {
    .site-header .header-brand-identity { gap: 12px; }
    .site-header .header-brand-divider { height: 50px; }
    .site-header .header-brand-copy { min-width: 130px; max-width: 168px; }
    .site-header .header-brand-copy strong { font-size: .88rem; }
    .site-header .header-brand-copy small { font-size: .66rem; }
    .site-header .header-brand-identity .header-brand-logo img { height: 48px !important; max-width: 126px !important; }
}

@media (max-width: 1199.98px) {
    .site-header .header-brand-copy,
    .site-header .header-brand-divider {
        display: none;
    }

    .site-header .header-brand-identity .header-brand-logo img {
        height: 46px !important;
        max-width: 170px !important;
    }
}

@media (max-width: 991.98px) {
    .site-header .header-brand-identity {
        flex: 1 1 auto !important;
    }

    .site-header .header-brand-identity .header-brand-logo img {
        height: auto !important;
        max-height: 42px !important;
        max-width: 150px !important;
    }
}

@media (max-width: 575.98px) {
    .site-header .header-brand-identity .header-brand-logo img {
        max-height: 36px !important;
        max-width: 128px !important;
    }

    .drawer-brand-identity img {
        max-width: 66px !important;
    }

    .drawer-brand-identity strong { font-size: .76rem; }
    .drawer-brand-identity small { font-size: .61rem; }
}

/* Program page: campaigns and appeals now share the same parent program. */
.v11-program-work-group + .v11-program-work-group {
    margin-top: 44px;
}

.v11-program-work-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    color: #fff;
}

.v11-program-work-title > div {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.v11-program-work-title span {
    font-size: 1.08rem;
    font-weight: 700;
}

.v11-program-work-title strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #1f78d1;
    color: #fff;
    font-size: .84rem;
}

.v11-program-work-title a {
    color: #8bd1ff;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.v11-program-appeal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.v11-program-appeal-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
    color: #fff;
}

.v11-program-appeal-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.v11-program-appeal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.v11-program-appeal-card:hover .v11-program-appeal-media img {
    transform: scale(1.04);
}

.v11-program-appeal-card > div {
    padding: 20px;
}

.v11-program-appeal-card > div > span {
    color: #8bd1ff;
    text-transform: uppercase;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.v11-program-appeal-card h3 {
    margin: 7px 0 9px;
    font-size: 1.15rem;
    line-height: 1.2;
}

.v11-program-appeal-card h3 a {
    color: #fff;
    text-decoration: none;
}

.v11-program-appeal-card p {
    margin: 0 0 14px;
    color: rgba(255,255,255,.72);
    font-size: .86rem;
    line-height: 1.55;
}

.v11-program-appeal-link {
    color: #8bd1ff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .v11-program-appeal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .v11-program-work-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .v11-program-appeal-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }

    .v11-program-appeal-card {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }
}
