/* Shared header and shell rules for the marketing pages. */
.shell {
    width: calc(100% - 12px) !important;
    max-width: none !important;
    margin: 0 auto;
    padding: 18px 0 40px !important;
}

.topbar,
.site-header {
    position: sticky;
    top: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 24px;
    background: rgba(22, 28, 34, 0.76);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px);
}

.brand,
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
    flex: 1 1 auto;
}

.brand img,
.site-logo img {
    height: 38px;
    display: block;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.94);
}

.brand-meta,
.site-brand-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-meta strong,
.site-brand-text strong {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244,246,247,0.92);
    white-space: nowrap;
}

.brand-meta span,
.site-brand-text span {
    display: none;
}

.nav,
.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.nav a,
.site-nav a,
.account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(244,246,247,0.88);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.nav a:hover,
.site-nav a:hover,
.account-menu:hover .account-trigger,
.account-menu:focus-within .account-trigger {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.nav a.primary,
.site-nav a.active,
.site-nav a.primary,
.nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #1f4e5f 0%, #3f6d80 100%);
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(31, 78, 95, 0.20);
}

.account-menu:hover .account-trigger,
.account-menu:focus-within .account-trigger {
    color: #fff;
    background: linear-gradient(135deg, #1f4e5f 0%, #3f6d80 100%);
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(31, 78, 95, 0.20);
}

.site-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.site-menu-toggle:hover {
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .topbar,
    .site-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .site-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .nav,
    .site-nav {
        display: none !important;
        width: 100%;
        border-radius: 24px;
        padding: 10px;
        gap: 10px;
        background: rgba(255,255,255,0.04);
    }
    .nav.is-open,
    .site-nav.is-open {
        display: grid !important;
        grid-template-columns: 1fr;
        margin-top: 10px;
    }
    .nav a,
    .site-nav a,
    .account-trigger {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
    }
    .account-menu {
        width: 100%;
    }
    .account-menu::after {
        display: none;
    }
    .account-dropdown {
        position: static;
        top: auto;
        right: auto;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
        border-radius: 18px;
    }
    .account-dropdown a:first-child {
        display: none;
    }
    .brand-meta strong,
    .site-brand-text strong {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .shell {
        width: calc(100% - 8px) !important;
        padding: 10px 0 0 !important;
    }
    .brand img,
    .site-logo img {
        height: 34px;
        padding: 5px 8px;
    }
    .brand-meta strong,
    .site-brand-text strong {
        font-size: 11px;
        letter-spacing: 0.12em;
    }
    .nav.is-open,
    .site-nav.is-open {
        grid-template-columns: 1fr;
    }
}
