/*
 * Q-Live ReadyLaunch navigation.
 */

/* Separate communication from the main navigation area. */
.bb-rl-left-panel-menu-list > li:has(> a[href*="/messages/"]) {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--qlive-border, rgba(255, 255, 255, 0.08));
}

/* Hide BuddyBoss' generic custom-link heading. */
.bb-rl-left-panel-widget:has(.bb-bottom-readylaunchpanel-menu)
  .bb-rl-list
  > h2 {
  display: none;
}

/* Match custom account links to native ReadyLaunch navigation height. */
.bb-bottom-readylaunchpanel-menu li > a::before {
  font-size: 18px;
  line-height: 1;
}

/*
 * Product screens use the global Q-Live navigation instead of the
 * BuddyBoss member navigation.
 */
body.qlive-product-screen #object-nav {
  display: none;
}

/*
 * Product areas stay technically registered in BuddyBoss,
 * but are hidden from the normal profile navigation.
 */
#object-nav #bb-rl-dashboard-personal-li,
#object-nav #bb-rl-uap-personal-li,
#object-nav #bb-rl-groups-personal-li,
#object-nav #bb-rl-forums-personal-li {
  display: none;
}

/*
 * Customers do not expose their Photos section.
 */
body.qlive-customer-profile #object-nav #bb-rl-photos-personal-li {
  display: none;
}

/*
 * Remove the remaining BuddyBoss divider when the profile navigation
 * itself is hidden.
 */
body.qlive-product-screen .bb-rl-profile-container {
  border-bottom: 0;
  padding-bottom: 0;
}

/*
 * Q-Live Live Ticker directory cards.
 *
 * BuddyBoss' grid assumes cover/avatar elements are present. Quantum Live can
 * intentionally run without them, so keep the no-cover layout compact.
 */
.bb-rl-groups .bp-list.grid.bb-cover-disabled .item-entry .bb-rl-group-block .item {
  padding: 20px;
}

.bb-rl-groups .bp-list.grid.bb-cover-disabled .item-entry .group-item-wrap {
  margin-bottom: 16px;
}

.bb-rl-groups .bp-list.grid.bb-cover-disabled .item-entry .group-footer-wrap {
  width: 100%;
  margin-top: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bb-rl-groups .bp-list.grid.bb-cover-disabled .item-entry .groups-loop-buttons {
  margin-top: 0;
}

/*
 * Customers must not discover other Live Ticker participants from directory
 * cards. Server-side Group Member REST/AJAX paths are protected separately.
 */
body.qlive-current-user-customer
  .bb-rl-groups
  .groups-dir-list
  .group-members-wrap {
  display: none;
}

body.qlive-current-user-customer
  .bb-rl-groups
  .groups-dir-list
  .group-footer-wrap {
  justify-content: flex-end;
}
