.site-menu-toggle { display: none; }
.site-menu-cross, .site-menu-toggle[aria-expanded="true"] .site-menu-bars { display: none; }
.site-menu-toggle[aria-expanded="true"] .site-menu-cross { display: block; }

body .site-header nav > a:not(.button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text, #edf2f7);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}
body .site-header nav > a:not(.button):hover {
    color: var(--link, #acd3ff);
    text-decoration: underline;
}
body .site-header nav > a:focus-visible {
    outline: 2px solid var(--link, #acd3ff);
    outline-offset: 4px;
    border-radius: 4px;
}

/* All public page headers use the same compact disclosure on phones. */
@media (max-width: 760px) {
    body .site-header,
    body .help-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0 16px;
        min-height: 80px;
        padding: 12px 0;
    }
    body .site-header .brand,
    body .help-header .help-brand { justify-self: start; min-width: 0; }
    body .site-header .brand img,
    body .help-header .help-brand img { width: 48px; height: 48px; }
    body .help-header .help-brand { gap: 12px; font-size: 14px; }
    body .help-header .help-brand span { padding-left: 12px; }
    body .site-header .site-menu-toggle,
    body .help-header .site-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-height: 44px;
        padding: 0;
        border: 1px solid var(--border, #36414e);
        border-radius: 12px;
        background: var(--panel, var(--surface, #202833));
        color: var(--text, #edf2f7);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }
    .site-menu-toggle:focus-visible { outline: 3px solid var(--accent, #a8d7ff); outline-offset: 3px; }
    body .site-menu-toggle:hover,
    body .site-menu-toggle[aria-expanded="true"] { background: var(--hover-bg, #293d53); border-color: var(--link, #acd3ff); }
    body .site-header nav,
    body .help-header nav {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        gap: 0;
        margin: 12px 0 0;
        padding: 12px 0 0;
        border-top: 1px solid var(--border, #36414e);
        font-size: 15px;
    }
    body .site-header.site-navigation-ready:not(.site-menu-open) nav,
    body .help-header.site-navigation-ready:not(.site-menu-open) nav { display: none; }
    body .site-header nav > a,
    body .help-header nav > a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-width: 0;
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 16px;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
        text-decoration: none;
    }
    body .site-header nav > a:not(.button):hover,
    body .help-header nav > a:not(.help-button):hover { background: var(--hover-bg, #293d53); text-decoration: none; }
    body .site-header nav > a:not(.button),
    body .help-header nav > a:not(.help-button) {
        min-height: 50px;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-weight: 500;
    }
    body .site-header nav > a:not(.button) + a:not(.button),
    body .help-header nav > a:not(.help-button) + a:not(.help-button) {
        border-top: 1px solid var(--border, #36414e);
    }
    body .site-header nav > a:focus-visible,
    body .help-header nav > a:focus-visible { outline: 2px solid var(--link, #acd3ff); outline-offset: 2px; }
    body .site-header nav .site-install-button { margin-top: 4px; }
    body .site-header nav .site-install-arrow { margin-left: auto; }
}
