.site-header .nav-links {
    align-items: center;
    overflow: visible;
}

.mobile-nav-toggle { display: none; }

@media (max-width: 940px) {
    .site-header.mobile-nav-ready .nav {
        position: relative;
        min-height: 64px;
        padding: 8px 0;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .site-header.mobile-nav-ready .brand { gap: 6px; margin-right: auto; }
    .site-header.mobile-nav-ready .brand img { width: 36px; height: 36px; }
    .site-header.mobile-nav-ready .brand span { font-size: 18px; }
    .site-header.mobile-nav-ready .nav-actions { width: auto; flex-shrink: 0; }
    .site-header.mobile-nav-ready .nav-actions .ghost { display: none; }
    .site-header.mobile-nav-ready .nav-actions .btn { width: auto; padding: 0 10px; font-size: 14px; }
    .site-header.mobile-nav-ready .mobile-nav-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid #cbdad4;
        border-radius: 6px;
        color: #0d493e;
        background: #fff;
        font: 26px/1 Arial, sans-serif;
        cursor: pointer;
    }
    .mobile-nav-toggle:focus-visible { outline: 3px solid #258971; outline-offset: 2px; }
    .site-header.mobile-nav-ready .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 150px);
        max-height: calc(100dvh - 150px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px;
        border: 1px solid #cbdad4;
        border-radius: 0 0 6px 6px;
        background: #fff;
        box-shadow: 0 10px 26px rgba(10,32,29,.16);
    }
    .site-header.mobile-nav-open .nav-links { display: block; }
    .site-header.mobile-nav-ready .nav-links > a,
    .site-header.mobile-nav-ready .ozone-menu > summary {
        display: block;
        min-height: 44px;
        padding: 11px 12px;
        line-height: 22px;
        white-space: normal;
    }
    .site-header.mobile-nav-ready .nav-links a:hover { background: #eaf4ee; }
    .site-header.mobile-nav-ready .ozone-menu > .ozone-menu__links {
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        border: 0;
        border-left: 2px solid #cbdad4;
        border-radius: 0;
    }
    body:has(.site-header.mobile-nav-ready) main [id] { scroll-margin-top: 80px; }
}

.ozone-menu { position: relative; min-width: 0; }
.ozone-menu > summary {
    cursor: pointer;
    min-height: 44px;
    padding: 10px 0;
    line-height: 24px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.ozone-menu > summary:focus-visible,
.ozone-menu__links a:focus-visible {
    outline: 2px solid #258971;
    outline-offset: 3px;
}
.ozone-menu__links {
    list-style: none;
    margin: 0;
    padding: 8px;
}
.ozone-menu__links li { margin: 0; padding: 0; }
.ozone-menu__links a {
    display: block;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}
.ozone-menu--header > .ozone-menu__links {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 5;
    width: min(350px, calc(100vw - 24px));
    max-height: min(55vh, 430px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #cbdad4;
    border-radius: 6px;
    background: #fff;
    color: #233b32;
    box-shadow: 0 10px 26px rgba(10, 32, 29, .16);
}
.ozone-menu--header .ozone-menu__links a:hover,
.ozone-menu--header .ozone-menu__links a[aria-current="page"] {
    background: #eaf4ee;
    color: #135b43;
}
.site-header:has(.ozone-menu[open]) { z-index: 60; }
.site-footer .ozone-menu > summary { color: #fff; }
.site-footer .ozone-menu__links { padding: 0 0 4px; }
.site-footer .ozone-menu__links a { margin: 0; color: #edf5f0; }
.site-footer .ozone-menu__links a:hover,
.site-footer .ozone-menu__links a[aria-current="page"] {
    background: #173e32;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 940px) {
    .site-header .nav-links { position: relative; }
    .ozone-menu--header { position: static; }
    .ozone-menu--header > .ozone-menu__links {
        left: 0;
        right: auto;
        width: min(350px, 100%);
    }
}
