/* Fixed rails reserve space at their actual row, including nested directory and feature wrappers. */
@media(min-width:1024px){
 .site-content div:has(> #site-sidebar){--vf-left:314px;padding-inline-start:var(--vf-left);max-width:none;width:100%;margin-inline:0;justify-content:initial}
 .site-content div:has(> #site-sidebar.minified){--vf-left:76px}
 #site-sidebar{position:fixed!important;inset-inline-start:0;top:var(--vf-site-header-height,65px)!important;bottom:0;width:300px;height:auto!important;max-height:calc(100dvh - var(--vf-site-header-height,65px));overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:auto!important;scrollbar-width:none;z-index:25}
 #site-sidebar.minified{width:60px}
}
@media(min-width:1280px){
 .site-content div:has(> #site-sidebar):has(> aside:last-child:not(#site-sidebar)){padding-inline-end:352px}
 .site-content div:has(> #site-sidebar)>div:has(> .js_posts_stream){margin-inline:auto}
 .site-content div:has(> #site-sidebar)>aside:last-child:not(#site-sidebar){position:fixed!important;top:88px!important;bottom:16px!important;inset-inline-end:135px;width:300px;min-height:0!important;height:auto;max-height:calc(100dvh - 104px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;z-index:20}
}
/* Native ad code gets the entire rail width, including a 300px iframe. */
#site-sidebar .vf-ad-slot,.site-content div:has(> #site-sidebar)>aside:last-child:not(#site-sidebar) .vf-ad-slot{border-inline:0}
#site-sidebar .vf-ad-code,.site-content div:has(> #site-sidebar)>aside:last-child:not(#site-sidebar) .vf-ad-code{padding-inline:0;border-radius:0}
/* The native expanded chat remains above widgets and below the header. */
.chat-sidebar{z-index:30}

/* Navigation contrast and consistent section labels; layout is unchanged. */
@media(min-width:1024px){#site-sidebar{background:#fff}html[data-theme$="-dark"] #site-sidebar{background:var(--color-base-100,#172235)}}
html[data-vf-brand] #site-sidebar .vf-nav-section .vf-nav-section-toggle{color:#667085!important}
html[data-theme$="-dark"][data-vf-brand] #site-sidebar .vf-nav-section .vf-nav-section-toggle{color:#aab7c9!important}

/* Match the reference card depth without changing card layout or corners. */
html:not([data-theme$="-dark"]) .site-content .card,html:not([data-theme$="-dark"]) .site-content .vf-cw-card{box-shadow:0 10px 25px rgba(48,85,135,.07)}
html:not([data-theme$="-dark"]) .site-content .post{box-shadow:0 12px 28px rgba(23,42,68,.08)}
html:not([data-theme$="-dark"]) #publisher-trigger,html:not([data-theme$="-dark"]) .js_stories:has(.js_stories-strip > :only-child > .js_story-create) .js_story-create{box-shadow:0 12px 30px rgba(34,65,111,.07)}
html:not([data-theme$="-dark"]) .site-content .vf-weather-widget{box-shadow:0 12px 28px rgba(25,57,105,.11)}

/* Footer controls follow the same content inset instead of sitting beneath fixed rails. */
@media(min-width:1024px){
 .site-content:has(#site-sidebar)> .mt-auto{padding-inline-start:314px}
 .site-content:has(#site-sidebar.minified)> .mt-auto{padding-inline-start:76px}
}
@media(min-width:1280px){
 .site-content:has(div:has(> #site-sidebar)>aside:last-child:not(#site-sidebar))> .mt-auto{padding-inline-end:352px}
}
