/* ==========================================================================
   Site header & main column shell
   ========================================================================== */

.main-column {
    flex: 1 1 0;
    min-width: 0;
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    display: flex;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 2;
    align-self: stretch;
    padding: 13px 40px 18px;
    background-color: #06070B;
    border-bottom: 1px solid #FFFFFF12;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    display: inline-flex;
    flex-shrink: 0;
    box-sizing: border-box;
}

.site-header__menu,
.site-header__brand {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.page-search {
    display: none;
}

.site-header__nav {
    flex-shrink: 0;
}

.site-header__spacer {
    flex: 1 1 0;
    min-width: 24px;
    align-self: stretch;
}

.site-header__search {
    width: 360px;
    max-width: 100%;
    flex-shrink: 0;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    display: flex;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header__search:focus-within {
    border-color: rgba(138, 107, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

.site-header__search-icon {
    display: block;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.site-header__search-input {
    flex: 1 1 0;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    color: #eef0f8;
    font-size: 14px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
}

.site-header__search-input::placeholder {
    color: #676d85;
}

.site-header__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header__link {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 11px;
    font-size: 14px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-header__link--active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
}

.site-header__link--inactive {
    color: #a7acc2;
    font-weight: 500;
}

.site-header__link--inactive:hover {
    color: #eef0f8;
}

/* ==========================================================================
   Site header — Desktop narrow (max-width: 1400px)
   ========================================================================== */

@media (max-width: 1400px) {
    .site-header {
        padding-left: 32px;
        padding-right: 32px;
    }

    .site-header__search {
        width: 300px;
    }
}

/* ==========================================================================
   Site header — Tablet (min-width: 768px and max-width: 1024px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .site-header {
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: 12px 20px 16px;
    }

    .site-header__spacer {
        display: none;
    }

    .site-header__search--desktop {
        flex: 1 1 220px;
        width: auto;
        min-width: 180px;
    }
}
