/* Shared navigation, loaded last on every page. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header > nav {
    position: static;
}
.site-header .nav {
    gap: 20px;
}
.site-header .links {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}
.site-header .links a {
    font-size: 13px;
}
.site-header .links a[aria-current='page'] {
    color: #8adfff;
}
.site-header .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 91px;
    flex: 0 0 auto;
    padding: 10px 13px;
    color: #e7f7ff;
    font-size: 13px;
    cursor: pointer;
}
.site-header .menu-button:hover,
.site-header .menu-button[aria-expanded='true'] {
    background: #142a35;
    border-color: #58869b;
}
.site-drawer.side-menu {
    width: 380px;
    max-width: calc(100vw - 16px);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #0a151c;
    border-right: 1px solid #29414e;
    box-shadow: none;
    overflow: hidden;
}
.site-drawer.side-menu.open {
    box-shadow: 16px 0 70px #0009;
}
.drawer-heading {
    position: relative;
    padding: 26px 26px 17px;
    flex-shrink: 0;
}
.drawer-heading .kicker {
    font-size: 10px;
    letter-spacing: 0.17em;
    color: #73cbe9;
}
.drawer-heading h2 {
    margin: 9px 45px 0 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}
.site-drawer .menu-close {
    position: absolute !important;
    top: 27px !important;
    right: 16px !important;
    color: #bbd2de !important;
}
.drawer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 24px 15px;
    padding: 0 13px;
    min-height: 43px;
    border: 1px solid #2a4350;
    border-radius: 10px;
    background: #071116;
    color: #8eacba;
    flex-shrink: 0;
}
.drawer-search:focus-within {
    border-color: #75cbea;
    box-shadow: 0 0 0 2px #65d3ff18;
}
.drawer-search input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    padding: 12px 0;
    color: #eaf5fa;
    font: inherit;
    font-size: 13px;
}
.drawer-search input:focus-visible {
    outline: none;
}
.drawer-search input::placeholder {
    color: #8ca5b3;
}
.site-drawer nav.drawer-scroll {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 14px 20px;
    background: none;
    border: 0;
    backdrop-filter: none;
    scrollbar-width: thin;
    scrollbar-color: #355362 transparent;
    display: block;
}
.drawer-group {
    margin: 0 0 17px;
    padding: 0;
}
.drawer-group h3 {
    padding: 9px 12px 5px;
    margin: 0;
    color: #819aa8;
    font-size: 10px;
    line-height: 1.6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}
.site-drawer .drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    box-sizing: border-box;
    margin: 3px 0;
    padding: 9px 12px !important;
    color: #bdced7;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
    transition:
        background 0.15s,
        color 0.15s;
}
.site-drawer .drawer-link:hover {
    background: #142833;
    color: #fff;
}
.site-drawer .drawer-link[aria-current='page'] {
    background: #113142;
    border-color: #245269;
    color: #a2e5ff;
}
.drawer-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: #829eae;
}
.drawer-link[aria-current='page'] .drawer-icon {
    color: #7bd9fc;
}
.drawer-current {
    margin-left: auto;
    color: #7bd9fc;
    opacity: 0;
}
.drawer-link[aria-current='page'] .drawer-current {
    opacity: 1;
}
.site-drawer [hidden] {
    display: none !important;
}
.drawer-empty {
    margin: 20px 12px;
    font-size: 13px;
    color: #a7bdc9;
    line-height: 1.7;
}
.drawer-footer {
    flex-shrink: 0;
    padding: 17px 24px 20px;
    background: #0d1b24;
    border-top: 1px solid #253d4a;
}
.drawer-footer .account-menu {
    display: block;
    border: 0;
    margin: 0 0 16px;
    padding: 0;
}
.drawer-account-person {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 11px;
}
.drawer-account-avatar {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    background: #193747;
    color: #a0e1fa;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}
.drawer-account-copy {
    min-width: 0;
}
.drawer-account-name {
    display: block;
    color: #eef7fa;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drawer-account-caption {
    display: block;
    color: #8fa9b8;
    font-size: 11px;
    margin-top: 3px;
}
.drawer-account-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.drawer-footer .account-menu a,
.drawer-footer .account-menu button {
    padding: 3px 0;
    border: 0;
    background: none;
    color: #8adfff;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.drawer-footer .account-menu button {
    color: #a9bcc7;
}
.drawer-footer .account-menu a:hover,
.drawer-footer .account-menu button:hover {
    color: #fff;
}
.drawer-footer a.drawer-join {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 43px;
    padding: 11px 15px;
    font-size: 13px;
    border-radius: 9px;
}
.drawer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    font-size: 10px;
    color: #718d9e;
}
.drawer-legal > span:last-child {
    margin-left: auto;
}
.drawer-legal a {
    color: #9bb0bd;
    text-decoration: none;
}
#menuOverlay {
    z-index: 1000;
    background: #02080eb3;
    backdrop-filter: blur(4px);
}
.site-header .account-nav {
    margin-left: 0;
}
@media (max-width: 1150px) {
    .site-header .links {
        display: none;
    }
    .site-header .nav-join {
        margin-left: auto;
    }
}
@media (max-width: 480px) {
    .site-header .nav-join {
        display: none;
    }
    .site-header .menu-button {
        margin-left: auto;
        min-width: 82px;
    }
    .drawer-heading {
        padding-top: 22px;
    }
    .drawer-footer {
        padding-bottom: max(17px, env(safe-area-inset-bottom));
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-drawer.side-menu,
    #menuOverlay {
        transition: none;
    }
}

.drawer-legal a[aria-current='page'],
.drawer-account-actions a[aria-current='page'] {
    color: #b0e9ff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
@media (min-width: 951px) {
    .dashboard .dashboard-sidebar {
        top: 88px;
        height: calc(100dvh - 88px);
        overflow-y: auto;
    }
}
