/*
 * LimageCMS v0.2 — F2 Header / Navigation
 *
 * Header/navigation layer only.
 * Search UI is intentionally not added here until F14 Search.
 */

.site-header__inner {
    position: relative;
}

.site-nav {
    align-items: center;
}

.site-nav a {
    transition: background-color .15s ease, color .15s ease;
}

.site-nav a.is-active {
    background: #eef2f7;
    color: var(--text);
    font-weight: 600;
}

.site-nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 11px;
    font: inherit;
    cursor: pointer;
}

.site-nav-toggle__icon {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    vertical-align: middle;
}

.site-nav-toggle__icon::before,
.site-nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.site-nav-toggle__icon::before { top: -6px; }
.site-nav-toggle__icon::after { top: 6px; }

@media (max-width: 720px) {
    .site-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        padding-top: 8px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* F2 mobile override: F1 makes the nav visible; F2 owns mobile navigation. */
@media (max-width: 720px) {
    .site-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .site-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        padding-top: 8px;
    }

    .site-nav.is-open {
        display: flex;
    }
}
