/* Included only by the main pages; individual blog articles keep their existing header. */
.facebook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
}

.facebook-link img {
    display: block;
    width: 40px;
    height: 40px;
}

.facebook-link:hover {
    opacity: 0.85;
}

.facebook-link:focus-visible {
    outline: 3px solid #1877f2;
    outline-offset: 3px;
}

.social-icons .facebook-link {
    display: inline-flex;
    margin-bottom: 0;
}

.header .navbar {
    gap: 16px;
}

.header .nav-logo {
    flex-shrink: 0;
}

.header .nav-menu {
    margin-left: auto;
}

.header .nav-link {
    white-space: nowrap;
}

/* Keep Facebook outside the collapsed menu and give the full navigation room. */
@media (max-width: 1199px) {
    .header .navbar {
        gap: 12px;
    }

    .header .header-facebook {
        margin-left: auto;
    }

    .header .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-left: 0;
        background: var(--white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 0;
        max-height: calc(100dvh - 106px);
        overflow-y: auto;
    }

    .header .nav-menu.active {
        display: flex;
    }

    .header .hamburger {
        display: block;
        flex-shrink: 0;
    }

    .header .nav-item {
        width: 100%;
        text-align: center;
    }

    .header .nav-link {
        display: block;
        padding: 15px;
    }

    .header .nav-cta {
        padding: 20px;
    }

    .header .nav-cta a {
        display: inline-block;
    }

    .header .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-top: 1px solid #eee;
        background: #fafafa;
    }

    .header .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        top: auto;
    }
}

@media (max-width: 480px) {
    .header .nav-logo img {
        max-width: calc(100vw - 152px);
    }
}
