/**
 * CFE BuddyPanel Profile Hide
 *
 * Hide the sidebar's internal toggle header (.buddypanel > .panel-head)
 * and add top margin to the nav container on every page where the
 * BuddyPanel appears, EXCEPT LD course content pages (course / lesson /
 * topic / quiz) which render .lms-topic-sidebar-wrapper. The toggle on
 * those pages is dual-purpose (switches between BB panel and LD step
 * navigation) and must stay.
 */

body.bb-buddypanel:not(:has(.lms-topic-sidebar-wrapper)) .buddypanel > .panel-head {
  display: none;
}

body.bb-buddypanel:not(:has(.lms-topic-sidebar-wrapper)) .buddypanel .side-panel-menu-container {
  margin-top: 28px;
}


/* ============================================================
   SITE HEADER — LD inner pages
   On LD course content pages (body.bb-sfwd-aside), BB's
   theme.min.css constrains the site header to
   width: calc(100% - 230px) when the BuddyPanel is open at
   >=800px. Combined with left:0/right:0 from the sticky-header
   rule, that leaves a gray gap on the right edge. Force the
   header to span the full viewport.
   ============================================================ */
body.bb-sfwd-aside .site-header:not(.site-header--elementor) {
  width: 100% !important;
}
