/* BudunOS group archive + detail variants
 * Body: bos-group-v-{id} | bos-group-detail-v-{id}
 * Shell: .bos-dir--groups.bos-groups--{id}
 * Card:  .bos-group-card.bos-group-card--{id}
 * Hero:  .bos-profile.bos-group .bos-group-header--{id}
 */

/* ========== ARCHIVE: soft (identity) ========== */
body.bos-group-v-soft .bos-dir--groups {
  /* default soft grid cards */
}

/* ========== ARCHIVE: compact ========== */
body.bos-group-v-compact .bos-dir--groups .bos-group-card.bos-group-card--compact,
body.bos-group-v-compact .bos-dir--groups .ui-box.bos-group-card--compact {
  padding: 8px !important;
  border-radius: 12px !important;
}

body.bos-group-v-compact .bos-dir--groups .bos-group-card--compact .img {
  margin-bottom: 8px !important;
  border-radius: 10px !important;
}

body.bos-group-v-compact .bos-dir--groups .bos-group-card--compact .h6,
body.bos-group-v-compact .bos-dir--groups .bos-group-card--compact .h6 a,
body.bos-group-v-compact .bos-dir--groups .bos-group-card--compact a.h6 {
  font-size: 13px !important;
}

body.bos-group-v-compact .bos-dir--groups .bos-group-card--compact .btn {
  min-height: 30px !important;
  font-size: 11px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
}

body.bos-group-v-compact .bos-dir--groups .bos-dir-hero {
  margin-bottom: 14px;
}

/* ========== ARCHIVE: glass ========== */
body.bos-group-v-glass .bos-dir--groups .bos-group-card.bos-group-card--glass,
body.bos-group-v-glass .bos-dir--groups .ui-box.bos-group-card--glass {
  border-color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 14px 40px -24px rgba(20, 24, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

body.night-mode.bos-group-v-glass .bos-dir--groups .bos-group-card--glass,
html[data-bs-theme="dark"].bos-group-v-glass .bos-dir--groups .bos-group-card--glass {
  background: rgba(30, 37, 43, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 14px 40px -20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* ========== ARCHIVE: ink ========== */
body.bos-group-v-ink .bos-dir--groups .bos-group-card.bos-group-card--ink,
body.bos-group-v-ink .bos-dir--groups .ui-box.bos-group-card--ink {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: #141a20 !important;
  color: #f0f3f6 !important;
}

body.bos-group-v-ink .bos-dir--groups .bos-group-card--ink .h6,
body.bos-group-v-ink .bos-dir--groups .bos-group-card--ink .h6 a,
body.bos-group-v-ink .bos-dir--groups .bos-group-card--ink a.h6 {
  color: #f0f3f6 !important;
}

body.bos-group-v-ink .bos-dir--groups .bos-group-card--ink .mt10 > div:not(.verified-badge) {
  color: #8b949e !important;
}

body.bos-group-v-ink .bos-dir--groups .bos-group-card--ink .img {
  background: #0f1419 !important;
}

body.bos-group-v-ink .bos-dir--groups .bos-group-card--ink .btn-light {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f0f3f6 !important;
}

/* ========== ARCHIVE: list (horizontal rows) ========== */
body.bos-group-v-list .bos-dir--groups .bos-dir-grid {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
}

body.bos-group-v-list .bos-dir--groups .bos-dir-grid > li {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.bos-group-v-list .bos-dir--groups .bos-group-card.bos-group-card--list,
body.bos-group-v-list .bos-dir--groups .ui-box.bos-group-card--list {
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

body.bos-group-v-list .bos-dir--groups .bos-group-card--list .img {
  flex: 0 0 72px;
  width: 72px !important;
  height: 72px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 12px !important;
}

body.bos-group-v-list .bos-dir--groups .bos-group-card--list .mt10 {
  margin: 0 !important;
}

body.bos-group-v-list .bos-dir--groups .bos-group-card--list .mt10:first-of-type {
  flex: 1;
  min-width: 0;
}

body.bos-group-v-list .bos-dir--groups .bos-group-card--list .mt10:has(.btn) {
  margin-left: auto !important;
  flex: 0 0 auto;
}

body.bos-group-v-list .bos-dir--groups .bos-group-card--list .h6,
body.bos-group-v-list .bos-dir--groups .bos-group-card--list a.h6 {
  font-size: 14px !important;
}

@media (max-width: 575.98px) {
  body.bos-group-v-list .bos-dir--groups .bos-group-card--list {
    flex-wrap: wrap;
  }

  body.bos-group-v-list .bos-dir--groups .bos-group-card--list .mt10:has(.btn) {
    width: 100%;
    margin-left: 0 !important;
  }
}

/* ========== DETAIL (adapted from profile hero) ========== */
/* ---------- classic — identity (current soft card) ---------- */
body.bos-group-detail-v-soft .bos-profile.bos-group .bos-group-header {
  /* default sidebar.css styles */
}

/* ---------- Immersive cover — meta on scrim ---------- */
body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-group-header {
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: 0 18px 48px -28px rgba(20, 24, 32, 0.35) !important;
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-cover-wrapper {
  height: 260px !important;
  border-radius: 20px !important;
}

@media (min-width: 768px) {
  body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-cover-wrapper {
    height: 300px !important;
  }
}

@media (min-width: 992px) {
  body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-cover-wrapper {
    height: 340px !important;
  }
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-avatar-wrapper {
  top: auto !important;
  bottom: 72px !important;
  left: 20px !important;
  z-index: 4;
}

@media (min-width: 768px) {
  body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-avatar-wrapper {
    bottom: 78px !important;
    left: 24px !important;
  }
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-pf-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 56px 18px 18px 140px !important;
  min-height: 0 !important;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 14, 0.78) 58%, rgba(8, 10, 14, 0.9) 100%);
}

@media (min-width: 768px) {
  body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-pf-meta {
    padding: 64px 22px 20px 160px !important;
  }
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-name-wrapper,
body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-name-wrapper a,
body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-pf-uname {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-pf-uname {
  opacity: 0.85;
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-buttons-wrapper .btn {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-buttons-wrapper .btn:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-buttons-wrapper .btn-success,
body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-buttons-wrapper .btn-primary {
  background: #fff !important;
  border-color: #fff !important;
  color: #0f1419 !important;
}

body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-buttons-wrapper .btn-success:hover,
body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-buttons-wrapper .btn-primary:hover {
  background: #f0f3f6 !important;
  color: #0f1419 !important;
}

/* ---------- Centered hero ---------- */
body.bos-group-detail-v-centered .bos-profile.bos-group .bos-group-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible !important;
}

body.bos-group-detail-v-centered .bos-profile.bos-group .profile-cover-wrapper {
  height: 140px !important;
  border-radius: 19px 19px 0 0 !important;
}

@media (min-width: 768px) {
  body.bos-group-detail-v-centered .bos-profile.bos-group .profile-cover-wrapper {
    height: 168px !important;
  }
}

body.bos-group-detail-v-centered .bos-profile.bos-group .profile-avatar-wrapper {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  align-self: center;
  margin: -52px auto 0 !important;
  z-index: 3;
}

@media (min-width: 768px) {
  body.bos-group-detail-v-centered .bos-profile.bos-group .profile-avatar-wrapper {
    margin-top: -60px !important;
  }

  body.bos-group-detail-v-centered .bos-profile.bos-group .profile-avatar-wrapper img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 22px !important;
  }
}

body.bos-group-detail-v-centered .bos-profile.bos-group .bos-pf-meta {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 20px 22px !important;
  min-height: 0 !important;
  gap: 14px;
}

body.bos-group-detail-v-centered .bos-profile.bos-group .profile-name-wrapper {
  text-align: center !important;
  width: 100%;
}

body.bos-group-detail-v-centered .bos-profile.bos-group .profile-name-inner {
  justify-content: center;
}

body.bos-group-detail-v-centered .bos-profile.bos-group .profile-buttons-wrapper {
  justify-content: center !important;
  width: 100%;
}

/* ---------- Compact strip ---------- */
body.bos-group-detail-v-compact .bos-profile.bos-group .bos-group-header {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: end;
  overflow: visible !important;
}

body.bos-group-detail-v-compact .bos-profile.bos-group .profile-cover-wrapper {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 88px !important;
  border-radius: 19px 19px 0 0 !important;
}

@media (min-width: 768px) {
  body.bos-group-detail-v-compact .bos-profile.bos-group .profile-cover-wrapper {
    height: 108px !important;
  }
}

body.bos-group-detail-v-compact .bos-profile.bos-group .profile-avatar-wrapper {
  position: relative !important;
  grid-column: 1;
  grid-row: 2;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  margin: -36px 0 12px 14px !important;
  z-index: 3;
}

@media (min-width: 768px) {
  body.bos-group-detail-v-compact .bos-profile.bos-group .profile-avatar-wrapper {
    margin: -44px 0 14px 18px !important;
  }

  body.bos-group-detail-v-compact .bos-profile.bos-group .profile-avatar-wrapper img {
    width: 84px !important;
    height: 84px !important;
    border-radius: 16px !important;
  }
}

body.bos-group-detail-v-compact .bos-profile.bos-group .profile-avatar-wrapper img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 14px !important;
}

body.bos-group-detail-v-compact .bos-profile.bos-group .bos-pf-meta {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 10px 14px 14px 8px !important;
  min-height: 0 !important;
}

body.bos-group-detail-v-compact .bos-profile.bos-group .profile-name-wrapper a {
  font-size: 17px !important;
}

@media (min-width: 992px) {
  body.bos-group-detail-v-compact .bos-profile.bos-group .profile-name-wrapper a {
    font-size: 18px !important;
  }
}

body.bos-group-detail-v-compact .bos-profile.bos-group .profile-buttons-wrapper .btn {
  height: 34px;
  min-width: 34px;
  padding: 0 12px !important;
  font-size: 11.5px !important;
}

/* ---------- Frost hero — glass meta band ---------- */
body.bos-group-detail-v-glass .bos-profile.bos-group .bos-group-header {
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.bos-group-detail-v-glass .bos-profile.bos-group .profile-cover-wrapper {
  height: 240px !important;
  border-radius: 22px !important;
}

@media (min-width: 768px) {
  body.bos-group-detail-v-glass .bos-profile.bos-group .profile-cover-wrapper {
    height: 280px !important;
  }
}

@media (min-width: 992px) {
  body.bos-group-detail-v-glass .bos-profile.bos-group .profile-cover-wrapper {
    height: 300px !important;
  }
}

body.bos-group-detail-v-glass .bos-profile.bos-group .profile-avatar-wrapper {
  top: auto !important;
  bottom: 28px !important;
  left: 28px !important;
  z-index: 4;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  body.bos-group-detail-v-glass .bos-profile.bos-group .profile-avatar-wrapper {
    bottom: 32px !important;
    left: 32px !important;
  }
}

body.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  padding: 14px 16px 14px 140px !important;
  min-height: 0 !important;
  align-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.7)) !important;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  isolation: isolate;
}

@media (min-width: 768px) {
  body.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-meta {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 18px 16px 156px !important;
  }
}

body.night-mode.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-meta,
html[data-bs-theme="dark"].bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-meta {
  background: linear-gradient(180deg, rgba(38, 45, 52, 0.88), rgba(30, 37, 43, 0.84)) !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.night-mode.bos-group-detail-v-glass .bos-profile.bos-group .profile-avatar-wrapper,
html[data-bs-theme="dark"].bos-group-detail-v-glass .bos-profile.bos-group .profile-avatar-wrapper {
  background: rgba(30, 37, 43, 0.9) !important;
}

/* Mobile: stack immersive / glass meta under avatar room */
@media (max-width: 575.98px) {
  body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-pf-meta,
  body.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-meta {
    padding-left: 16px !important;
    padding-top: 18px !important;
    flex-direction: column;
    align-items: flex-start;
  }

  body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-avatar-wrapper,
  body.bos-group-detail-v-glass .bos-profile.bos-group .profile-avatar-wrapper {
    bottom: auto !important;
    top: 170px !important;
  }

  body.bos-group-detail-v-immersive .bos-profile.bos-group .profile-cover-wrapper {
    height: 220px !important;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group .profile-cover-wrapper {
    height: 210px !important;
  }

  body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-pf-meta {
    padding-top: 64px !important;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-meta {
    padding-top: 58px !important;
  }

  body.bos-group-detail-v-compact .bos-profile.bos-group .bos-group-header {
    grid-template-columns: 1fr;
  }

  body.bos-group-detail-v-compact .bos-profile.bos-group .profile-avatar-wrapper {
    margin: -28px 0 0 12px !important;
  }

  body.bos-group-detail-v-compact .bos-profile.bos-group .bos-pf-meta {
    grid-column: 1;
    padding: 8px 12px 14px 12px !important;
  }
}

/* ==========================================================================
 * Profile PAGE LAYOUT variants
 * Body: bos-profile-layout-v-{id}
 * Root: .bos-profile.bos-profile-layout--{id}
 * ========================================================================== */

/* ---------- classic — identity (rail left) ---------- */
body.bos-profile-layout-v-classic .bos-profile.bos-group {
  /* default */
}

/* ---------- Rail right — feed left, about right ---------- */
@media (min-width: 992px) {
  body.bos-profile-layout-v-rail-right .bos-profile.bos-group .bos-profile-body > .bos-profile-side {
    order: 2 !important;
  }

  body.bos-profile-layout-v-rail-right .bos-profile.bos-group .bos-profile-body > .bos-profile-main {
    order: 1 !important;
  }
}

/* ---------- Side menu — vertical tabs ---------- */
@media (min-width: 992px) {
  body.bos-profile-layout-v-side-menu .bos-profile.bos-group {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "nav content";
    column-gap: 16px;
    row-gap: 14px;
    align-items: start;
  }

  body.bos-profile-layout-v-side-menu .bos-profile.bos-group > .bos-group-header {
    grid-area: hero;
  }

  body.bos-profile-layout-v-side-menu .bos-profile.bos-group > .bos-profile-tabs {
    grid-area: nav;
    position: sticky;
    top: 84px;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    overflow: visible !important;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto !important;
    margin-bottom: 0 !important;
    padding: 10px !important;
    gap: 4px;
  }

  body.bos-profile-layout-v-side-menu .bos-profile.bos-group > .bos-profile-tabs > a {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }

  body.bos-profile-layout-v-side-menu .bos-profile.bos-group > .bos-profile-tabs > a .bos-pf-tab-lbl {
    display: inline !important;
  }

  body.bos-profile-layout-v-side-menu .bos-profile.bos-group > .bos-profile-tabs > a.active::after {
    display: none !important;
  }

  body.bos-profile-layout-v-side-menu .bos-profile.bos-group > .bos-profile-body {
    grid-area: content;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  /* In side-menu, keep about rail under feed as a secondary column inside content */
  body.bos-profile-layout-v-side-menu .bos-profile.bos-group .bos-profile-body > .bos-profile-side {
    order: 2 !important;
  }

  body.bos-profile-layout-v-side-menu .bos-profile.bos-group .bos-profile-body > .bos-profile-main {
    order: 1 !important;
  }
}

/* ---------- Wide feed — about strip on top ---------- */
@media (min-width: 992px) {
  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body {
    display: flex;
    flex-wrap: wrap;
  }

  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body > .bos-profile-side {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
  }

  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body > .bos-profile-side > .card,
  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body > .bos-profile-side > .d-grid,
  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body > .bos-profile-side > .d-none,
  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body > .bos-profile-side > div {
    margin-bottom: 0 !important;
    min-width: 0;
  }

  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body > .bos-profile-side > .d-none.d-lg-block:has(.bos-mini-footer),
  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body > .bos-profile-side > div.d-none.d-lg-block:has(.bos-mini-footer) {
    grid-column: 1 / -1;
  }

  body.bos-profile-layout-v-wide .bos-profile.bos-group .bos-profile-body > .bos-profile-main {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ---------- Magazine — sticky pills + rail right ---------- */
body.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs {
  position: sticky;
  top: 70px;
  z-index: 8;
  margin-bottom: 14px !important;
  border-radius: 999px !important;
  padding: 6px !important;
  gap: 4px;
  box-shadow: 0 10px 28px -18px rgba(20, 24, 32, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a {
  border-radius: 999px !important;
  padding: 8px 14px !important;
}

body.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active {
  background: #1b1e23 !important;
  color: #fff !important;
}

body.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon,
body.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container {
  color: #fff !important;
}

body.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon *,
body.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container * {
  stroke: #fff !important;
  color: #fff !important;
  fill: none !important;
}

body.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active::after {
  display: none !important;
}

@media (min-width: 992px) {
  body.bos-profile-layout-v-magazine .bos-profile.bos-group .bos-profile-body > .bos-profile-side {
    order: 2 !important;
  }

  body.bos-profile-layout-v-magazine .bos-profile.bos-group .bos-profile-body > .bos-profile-main {
    order: 1 !important;
  }
}

body.night-mode.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active {
  background: #fff !important;
  color: #0f1419 !important;
}

body.night-mode.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon,
body.night-mode.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container {
  color: #0f1419 !important;
}

body.night-mode.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon *,
body.night-mode.bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container *,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon *,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container * {
  stroke: #0f1419 !important;
  color: #0f1419 !important;
}

/* ==========================================================================
 * FULL PAGE SHELL — groups archive (hero + tabs + search + categories)
 * ========================================================================== */

body.bos-group-v-compact .bos-dir--groups .bos-dir-hero {
  padding: 14px 14px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}

body.bos-group-v-compact .bos-dir--groups .bos-dir-hero-title strong {
  font-size: 15px;
}

body.bos-group-v-compact .bos-dir--groups .bos-dir-hero-copy p {
  font-size: 12px;
}

body.bos-group-v-compact .bos-dir--groups .bos-dir-search {
  padding: 4px 4px 4px 12px;
  border-radius: 12px;
}

body.bos-group-v-compact .bos-dir--groups .bos-dir-tabs > a {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

body.bos-group-v-compact .bos-dir--groups .bos-dir-side {
  border-radius: 12px;
}

body.bos-group-v-compact .bos-dir--groups .bos-dir-section-head h3 {
  font-size: 14px;
}

body.bos-group-v-compact .bos-dir--groups .bos-dir-cta {
  height: 32px !important;
  padding: 0 11px !important;
  font-size: 11.5px !important;
  border-radius: 8px !important;
}

body.bos-group-v-glass .bos-dir--groups .bos-dir-hero,
body.bos-group-v-glass .bos-dir--groups .bos-dir-side {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 40px -24px rgba(20, 24, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

body.bos-group-v-glass .bos-dir--groups .bos-dir-search {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

body.bos-group-v-glass .bos-dir--groups .bos-dir-tabs > a.active {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px -12px rgba(20, 24, 32, 0.35);
}

body.bos-group-v-glass .bos-dir--groups .bos-dir-cta {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px);
}

body.night-mode.bos-group-v-glass .bos-dir--groups .bos-dir-hero,
body.night-mode.bos-group-v-glass .bos-dir--groups .bos-dir-side,
html[data-bs-theme="dark"].bos-group-v-glass .bos-dir--groups .bos-dir-hero,
html[data-bs-theme="dark"].bos-group-v-glass .bos-dir--groups .bos-dir-side {
  background: rgba(30, 37, 43, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 40px -20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.night-mode.bos-group-v-glass .bos-dir--groups .bos-dir-search,
html[data-bs-theme="dark"].bos-group-v-glass .bos-dir--groups .bos-dir-search {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.bos-group-v-ink .bos-dir--groups .bos-dir-hero,
body.bos-group-v-ink .bos-dir--groups .bos-dir-side {
  background: #141a20;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0f3f6;
}

body.bos-group-v-ink .bos-dir--groups .bos-dir-hero-title strong,
body.bos-group-v-ink .bos-dir--groups .bos-dir-side-head,
body.bos-group-v-ink .bos-dir--groups .bos-dir-section-head h3 {
  color: #f0f3f6;
}

body.bos-group-v-ink .bos-dir--groups .bos-dir-hero-copy p,
body.bos-group-v-ink .bos-dir--groups .bos-dir-cats a {
  color: #8b949e;
}

body.bos-group-v-ink .bos-dir--groups .bos-dir-cats li.active > a,
body.bos-group-v-ink .bos-dir--groups .bos-dir-tabs > a.active {
  color: #f0f3f6;
  background: rgba(255, 255, 255, 0.08);
}

body.bos-group-v-ink .bos-dir--groups .bos-dir-search {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.bos-group-v-ink .bos-dir--groups .bos-dir-search .form-control {
  color: #f0f3f6;
  background: transparent;
}

body.bos-group-v-ink .bos-dir--groups .bos-dir-search .btn,
body.bos-group-v-ink .bos-dir--groups .bos-dir-cta {
  background: #fff !important;
  border-color: #fff !important;
  color: #141a20 !important;
}

body.bos-group-v-ink .bos-dir--groups .bos-dir-tabs > a {
  color: #8b949e;
}

body.bos-group-v-list .bos-dir--groups .bos-dir-hero {
  padding: 16px 18px 14px;
  border-radius: 16px;
}

@media (min-width: 992px) {
  body.bos-group-v-list .bos-dir--groups > .row > .sg-offcanvas-sidebar {
    display: none !important;
  }

  body.bos-group-v-list .bos-dir--groups > .row > .sg-offcanvas-mainbar.col-md-8,
  body.bos-group-v-list .bos-dir--groups > .row > .sg-offcanvas-mainbar.col-lg-9 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

body.bos-group-v-list .bos-dir--groups .bos-dir-tabs {
  gap: 4px;
}

body.bos-group-v-list .bos-dir--groups .bos-dir-tabs > a {
  border-radius: 999px;
  padding: 7px 14px;
}

body.bos-group-v-list .bos-dir--groups .bos-dir-tabs > a.active {
  background: #1b1e23;
  color: #fff;
}

body.night-mode.bos-group-v-list .bos-dir--groups .bos-dir-tabs > a.active,
html[data-bs-theme="dark"].bos-group-v-list .bos-dir--groups .bos-dir-tabs > a.active {
  background: #fff;
  color: #0f1419;
}

/* ==========================================================================
 * FULL PAGE — group detail (tabs + about + body layout per variant)
 * ========================================================================== */

/* Immersive page: magazine sticky pills + feed-first */
body.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs {
  position: sticky;
  top: 70px;
  z-index: 8;
  margin-bottom: 14px !important;
  border-radius: 999px !important;
  padding: 6px !important;
  gap: 4px;
  box-shadow: 0 10px 28px -18px rgba(20, 24, 32, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a {
  border-radius: 999px !important;
  padding: 8px 14px !important;
}

body.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active {
  background: #1b1e23 !important;
  color: #fff !important;
}

body.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon,
body.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container {
  color: #fff !important;
}

body.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon *,
body.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container * {
  stroke: #fff !important;
  color: #fff !important;
  fill: none !important;
}

body.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active::after {
  display: none !important;
}

@media (min-width: 992px) {
  body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-profile-body > .bos-profile-side {
    order: 2 !important;
  }

  body.bos-group-detail-v-immersive .bos-profile.bos-group .bos-profile-body > .bos-profile-main {
    order: 1 !important;
  }
}

body.night-mode.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active,
html[data-bs-theme="dark"].bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active {
  background: #fff !important;
  color: #0f1419 !important;
}

body.night-mode.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon,
body.night-mode.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container,
html[data-bs-theme="dark"].bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon,
html[data-bs-theme="dark"].bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container {
  color: #0f1419 !important;
}

body.night-mode.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon *,
body.night-mode.bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container *,
html[data-bs-theme="dark"].bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .main-icon *,
html[data-bs-theme="dark"].bos-group-detail-v-immersive .bos-profile.bos-group > .bos-profile-tabs > a.active .svg-container * {
  stroke: #0f1419 !important;
  color: #0f1419 !important;
}

/* Centered page: wide feed, about strip on top */
@media (min-width: 992px) {
  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body {
    display: flex;
    flex-wrap: wrap;
  }

  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body > .bos-profile-side {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
  }

  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body > .bos-profile-side > .card,
  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body > .bos-profile-side > .d-grid,
  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body > .bos-profile-side > .d-none,
  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body > .bos-profile-side > div {
    margin-bottom: 0 !important;
    min-width: 0;
  }

  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body > .bos-profile-side > .d-none.d-lg-block:has(.bos-mini-footer),
  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body > .bos-profile-side > div.d-none.d-lg-block:has(.bos-mini-footer) {
    grid-column: 1 / -1;
  }

  body.bos-group-detail-v-centered .bos-profile.bos-group .bos-profile-body > .bos-profile-main {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

body.bos-group-detail-v-centered .bos-profile.bos-group > .bos-profile-tabs {
  justify-content: center !important;
}

/* Compact page: denser tabs + about */
body.bos-group-detail-v-compact .bos-profile.bos-group > .bos-profile-tabs {
  margin-bottom: 10px !important;
  padding: 4px !important;
  gap: 2px;
  border-radius: 12px !important;
}

body.bos-group-detail-v-compact .bos-profile.bos-group > .bos-profile-tabs > a {
  padding: 6px 10px !important;
  font-size: 12px;
}

body.bos-group-detail-v-compact .bos-profile.bos-group .bos-pf-about,
body.bos-group-detail-v-compact .bos-profile.bos-group .bos-profile-side .card {
  border-radius: 12px !important;
}

body.bos-group-detail-v-compact .bos-profile.bos-group .bos-pf-about-stats {
  gap: 6px;
}

body.bos-group-detail-v-compact .bos-profile.bos-group .bos-pf-about-stat-val {
  font-size: 14px;
}

/* Glass page: frost tabs + about panels */
body.bos-group-detail-v-glass .bos-profile.bos-group > .bos-profile-tabs {
  border-color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow:
    0 14px 40px -24px rgba(20, 24, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

body.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-about,
body.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-search,
body.bos-group-detail-v-glass .bos-profile.bos-group .bos-profile-side .card {
  border-color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow:
    0 14px 40px -24px rgba(20, 24, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

body.night-mode.bos-group-detail-v-glass .bos-profile.bos-group > .bos-profile-tabs,
body.night-mode.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-about,
body.night-mode.bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-search,
body.night-mode.bos-group-detail-v-glass .bos-profile.bos-group .bos-profile-side .card,
html[data-bs-theme="dark"].bos-group-detail-v-glass .bos-profile.bos-group > .bos-profile-tabs,
html[data-bs-theme="dark"].bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-about,
html[data-bs-theme="dark"].bos-group-detail-v-glass .bos-profile.bos-group .bos-pf-search,
html[data-bs-theme="dark"].bos-group-detail-v-glass .bos-profile.bos-group .bos-profile-side .card {
  background: rgba(30, 37, 43, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 14px 40px -20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

@media (min-width: 992px) {
  body.bos-group-detail-v-glass .bos-profile.bos-group {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "nav content";
    column-gap: 16px;
    row-gap: 14px;
    align-items: start;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group > .bos-group-header {
    grid-area: hero;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group > .bos-profile-tabs {
    grid-area: nav;
    position: sticky;
    top: 84px;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    overflow: visible !important;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto !important;
    margin-bottom: 0 !important;
    padding: 10px !important;
    gap: 4px;
    border-radius: 16px !important;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group > .bos-profile-tabs > a {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group > .bos-profile-tabs > a .bos-pf-tab-lbl {
    display: inline !important;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group > .bos-profile-tabs > a.active::after {
    display: none !important;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group > .bos-profile-body {
    grid-area: content;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group .bos-profile-body > .bos-profile-side {
    order: 2 !important;
  }

  body.bos-group-detail-v-glass .bos-profile.bos-group .bos-profile-body > .bos-profile-main {
    order: 1 !important;
  }
}
