:root {
    --so-sticky-header-height: 128px;
}

html {
    scroll-padding-top: calc(var(--so-sticky-header-height, 128px) + 1rem);
}

body {
    scroll-padding-top: calc(var(--so-sticky-header-height, 128px) + 1rem);
}

.so-header {
    position: sticky;
    top: 0;
    z-index: 3000;
    background:
        linear-gradient(180deg, rgba(13, 10, 9, .96), rgba(13, 10, 9, .88)),
        radial-gradient(circle at 20% 0%, rgba(183, 28, 28, .14), transparent 34%);
    border-bottom: 1px solid rgba(207, 207, 207, .14);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.so-header.so-header-scrolled {
    box-shadow: 0 18px 45px rgba(0, 0, 0, .42);
    border-bottom-color: rgba(220, 190, 153, .22);
}

.so-header .so-top-row,
.so-header .so-header-nav-row {
    position: relative;
    z-index: 1;
}

.so-header .so-header-nav-row {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(220,190,153,.35) rgba(0,0,0,.16);
}

.so-header .so-header-nav-row::-webkit-scrollbar {
    height: 8px;
}

.so-header .so-header-nav-row::-webkit-scrollbar-thumb {
    background: rgba(220,190,153,.35);
    border-radius: 999px;
}

.so-header .so-nav {
    flex-wrap: nowrap;
    min-width: max-content;
}

.so-header .so-nav a,
.so-header .so-nav-label,
.so-header .so-mini-button,
.so-header .so-auth-chip,
.so-header .so-account-panel {
    color: #CFCFCF;
}

.so-header .so-nav a.so-nav-active {
    color: #DCBE99;
}

.so-header-scrolled .so-subtitle {
    opacity: .72;
}

.so-header-scrolled .so-title {
    color: #CFCFCF;
}

@media (max-width: 780px) {
    :root {
        --so-sticky-header-height: 160px;
    }

    .so-header {
        max-height: 58vh;
        overflow-y: auto;
    }

    .so-header .so-top-row {
        gap: .75rem;
    }

    .so-header .so-account-panel {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .so-header,
    .so-header .so-subtitle,
    .so-header .so-title {
        transition:
            box-shadow .18s ease,
            border-color .18s ease,
            opacity .18s ease,
            color .18s ease;
    }
}
