/* Shared public navigation; page-specific header dimensions remain intact. */
body {
    --mobile-navigation-height: 0px;
    padding-top: var(--header-height);
}
body.home-page {
    --header-height: 72px;
    padding-top: 0;
}
body .site-header,
body.home-page .site-header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header-height);
    z-index: 60;
}
body.home-page .site-header.is-scrolled { background: #001d48; }
html {
    scroll-padding-top: calc(var(--header-height, 64px) + 16px);
    scroll-padding-bottom: var(--mobile-navigation-height, 0px);
}
body .mobile-contact { display: none; }
.mobile-bottom-nav { display: none; }

@media (max-width: 900px) {
    body.home-page { --header-height: 64px; }
    body .desktop-nav {
        top: var(--header-height);
        max-height: calc(100vh - var(--header-height) - var(--mobile-navigation-height));
        max-height: calc(100dvh - var(--header-height) - var(--mobile-navigation-height));
        overscroll-behavior: contain;
    }
}
@media (max-width: 700px) {
    :root { --mobile-navigation-height: calc(60px + env(safe-area-inset-bottom, 0px)); }
    body {
        --mobile-navigation-height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: var(--mobile-navigation-height);
    }
    .mobile-bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 55;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: var(--mobile-navigation-height);
        padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
        border-top: 1px solid #e0e5ed;
        background: #fff;
        color: #52617b;
    }
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        min-height: 59px;
        padding: 6px 4px;
        font-size: 11px;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
    }
    .mobile-bottom-nav .icon { width: 20px; height: 20px; flex-shrink: 0; }
    .mobile-bottom-nav a.active { color: #00245b; background: #f3f5f9; font-weight: 600; }
    .mobile-bottom-nav a:focus-visible { outline: 2px solid #00245b; outline-offset: -4px; }
    body.no-scroll .mobile-bottom-nav,
    body.navigation-keyboard-open .mobile-bottom-nav { visibility: hidden; }
}
