/* =========================================================
   SehVarta Premium Theme — Phase 6: Header + sidebar bug fixes

   NEUTRALIZED 2026-07-30 — section 1 (HEADER: proper flex regions)
   removed. It redefined nav.topbar.auth-topbar / .app-nav.desktop-nav
   (flex + overflow-x:auto scrollable nav), which is superseded by
   the CSS Grid rebuild + non-scrolling nav in 92-final-rebuild.css.
   Keeping both meant the header cascade was decided by cross-file
   specificity tie-breaks instead of one deliberate layout — the
   root cause of the recurring header/nav bugs. Sections 2 and 3
   below (sidebar profile + rail spacing) are unrelated to the
   header and are not duplicated elsewhere, so they are kept.
   Original full content preserved in
   78-header-sidebar-fix.css.bak-neutralized-20260730.
   ========================================================= */

@media (min-width: 761px) {

/* ---------- 2. SIDEBAR PROFILE: fix overlap (higher specificity than the
   generic `.social-left-rail a` row rule that was winning before) ---------- */
.social-left-rail a.sv-rail-profile,
.fb-left-rail a.sv-rail-profile,
a.sv-rail-profile.social-left-rail,
.social-left-rail > a.sv-rail-profile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 14px 8px 20px !important;
    margin: -4px -4px 12px !important;
    border-radius: 0 !important;
}
.social-left-rail a.sv-rail-profile span,
.fb-left-rail a.sv-rail-profile span {
    width: 60px !important;
    height: 60px !important;
    font-size: 20px !important;
    flex: 0 0 auto !important;
}
.social-left-rail a.sv-rail-profile,
.fb-left-rail a.sv-rail-profile {
    font-size: 14.5px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
}

/* ---------- 3. SIDEBAR: spacing, item padding, no clipped text ---------- */
.fb-left-rail, .social-left-rail {
    padding: 16px 14px 20px !important;
    gap: 3px !important;
}
.fb-left-rail a, .social-left-rail a {
    padding: 12px 14px !important;
    gap: 14px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}
.fb-left-rail a span, .social-left-rail a span {
    flex-shrink: 0 !important;
}
/* room at the bottom for the pinned Create Post pseudo-button */
.fb-left-rail, .social-left-rail {
    padding-bottom: 76px !important;
}
.fb-left-rail::after, .social-left-rail::after {
    position: sticky !important;
    bottom: 4px !important;
    margin-top: 10px !important;
}

}
