/* ==========================================================================
   BLDS bilingual layer (UA / EN) + tidy normal footer
   ========================================================================== */

/* ---------- Language switcher in navbar ---------- */
.nav-lang-item {
    display: flex;
    align-items: center;
    margin-right: max(18px, 1.4vw);
}

@media screen and (max-width: 1080px) {
    .nav-lang-item {
        margin-right: 0;
        margin-top: 18px;
        margin-bottom: 12px;
        justify-content: center;
    }
}

.nav-lang-item .language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.navbar .nav-lang-item .lang-link,
.navbar .nav-lang-item .lang-separator {
    color: inherit;
}

.nav-lang-item .lang-link {
    text-decoration: none;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    padding: 0;
}

.nav-lang-item .lang-link.active {
    opacity: 1;
    cursor: default;
}

.nav-lang-item a.lang-link:hover {
    opacity: 1;
}

.nav-lang-item .lang-separator {
    opacity: 0.35;
    font-size: 0.85em;
}

/* ---------- Normal footer: compact brand row ---------- */
#normal-footer.footer-wrapper {
    padding-top: max(56px, 3.9vw);
}

.bl-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: max(24px, 2.2vw);
    flex-wrap: wrap;
    padding-bottom: max(28px, 2vw);
}

.bl-footer-brand {
    display: flex;
    align-items: center;
    gap: max(16px, 1.1vw);
    text-decoration: none;
    color: var(--background-color);
}

.bl-footer-logo {
    width: max(56px, 3.9vw);
    height: max(56px, 3.9vw);
    object-fit: contain;
    flex-shrink: 0;
}

.bl-footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bl-footer-title {
    font-family: var(--font2);
    font-weight: 700;
    font-size: max(18px, calc(1.25vw * var(--scale)));
    line-height: 1.25;
    color: var(--background-color);
    text-transform: none;
}

.bl-footer-subtitle {
    font-family: var(--font2);
    font-size: max(13px, calc(0.9vw * var(--scale)));
    line-height: 1.4;
    color: var(--background-color);
    opacity: 0.6;
    text-transform: none;
}

.bl-footer-newsletter {
    margin-top: 0;
    max-width: 380px;
}

#normal-footer .institutional-footer-info {
    margin-top: 0;
}

#normal-footer .footer-bottom {
    padding-top: max(8px, 0.6vw);
    padding-bottom: max(28px, 2vw);
}

#normal-footer .copyright-text-wrapper p {
    text-transform: none;
}

#normal-footer .copyright-text-wrapper a {
    color: inherit;
}

@media screen and (max-width: 767px) {
    .bl-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .bl-footer-logo {
        width: 48px;
        height: 48px;
    }

    #normal-footer .copyright-text-wrapper {
        text-align: center;
        padding: 0 12px;
    }
}

/* ---------- Notice on English pages linking to Ukrainian-only content ---------- */
.bl-lang-note {
    font-family: var(--font2);
    font-size: max(14px, calc(0.97vw * var(--scale)));
    opacity: 0.7;
    text-transform: none;
}

.bl-lang-note a {
    color: inherit;
    text-decoration: underline;
}
