/* BastionGuard 1.10.9 – topic identity, mobile disclosure and profile edges.
 * Intentionally the last bbPress layer. No changes to stored badges or capabilities. */
/* Desktop & mobile: force the actual anchor (not only its parent) to align centrally. */
body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__heading,
body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
}
body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__heading > img.avatar {
  display: block !important;
  align-self: center !important;
  margin-inline: auto !important;
}
body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity > a.bsg-author-name,
body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity > .bbp-userpop,
body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity > .bbp-userpop a,
body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity > .bsg-author-name {
  display: block !important;
  align-self: center !important;
  justify-self: center !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
/* Reduce spacing produced by legacy stack margins, including PNG-only badges. */
body.bbpress main.bsg-aurora-page .bsg-aurora-post__identity > .bsg-aurora-author-badges {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 3px auto 1px !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
}
body.bbpress main.bsg-aurora-page .bsg-aurora-post__identity .bsg-member-badge-stack,
body.bbpress main.bsg-aurora-page .bsg-mobile-member-more__badges .bsg-member-badge-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  gap: 0 !important;
  row-gap: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: fit-content !important;
  max-width: 100% !important;
}
body.bbpress main.bsg-aurora-page .bsg-aurora-post__identity .bsg-member-badge-stack > .bsg-member-badge,
body.bbpress main.bsg-aurora-page .bsg-mobile-member-more__badges .bsg-member-badge-stack > .bsg-member-badge {
  align-self: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding-block: 0 !important;
  line-height: 1.15 !important;
}
body.bbpress main.bsg-aurora-page .bsg-aurora-post__identity .bsg-member-badge-stack img,
body.bbpress main.bsg-aurora-page .bsg-mobile-member-more__badges .bsg-member-badge-stack img {
  display:block !important;
  object-fit:contain !important;
  object-position:center !important;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  margin:0 auto !important;
}
/* Dates of posts now have one authoritative location: the More/Less disclosure. */
body.bbpress main.bsg-aurora-page .bsg-aurora-post__identity > .bsg-aurora-post__date { display:none!important; }
/* Disclosure has NO nested panel, regardless of viewport. */
body.bbpress main.bsg-aurora-page .bsg-mobile-member-more__content,
body.bbpress main.bsg-aurora-page .bsg-mobile-member-more__badges,
body.bbpress main.bsg-aurora-page .bsg-mobile-member-more__details,
body.bbpress main.bsg-aurora-page .bsg-mobile-member-more__details > div {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
/* On mobile the ONLY copy of member badges is in the closed-by-default More panel.
 * Applies to topic, replies, and the upper profile hero. */
@media (max-width: 700px) {
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity > .bsg-aurora-author-badges,
  body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero__identity > .bsg-aurora-profile-badge-row {
    display:none !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-mobile-member-more,
  body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero__identity > .bsg-mobile-member-more {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    text-align:center !important;
    margin:6px auto 0 !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-mobile-member-more__badges {
    display:flex !important;
    align-items:center !important;
    flex-direction:column !important;
    gap:0 !important;
    padding:0 !important;
    margin:0 auto 6px !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-mobile-member-more:not([open]) > .bsg-mobile-member-more__content {
    display:none !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity > a.bsg-author-name {
    align-self:center !important;
    margin-inline:auto !important;
    text-align:center !important;
  }
}
/* Profile hero / metric / member card gradients must be clipped to real radii. */
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero,
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero--enhanced,
body.bbpress main.bsg-aurora-page--profile .bsg-community-member-card,
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-detail,
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-metrics > .bsg-aurora-profile-metric {
  border-radius: 13px !important;
  background-clip: padding-box !important;
  overflow: hidden !important;
}
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero__primary,
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero__identity {
  background: transparent !important;
  box-shadow: none !important;
}
/* Online rows – dedicated grid for long member names and reliable hidden handling. */
body.bbpress main.bsg-aurora-page .bsg-community-statistics__rows .bsg-stat-presence-members {
  display:grid !important;
  grid-template-columns: 1fr minmax(0,1.4fr) !important;
  gap:12px !important;
  align-items:start !important;
}
body.bbpress main.bsg-aurora-page .bsg-community-statistics__rows .bsg-stat-presence-members[hidden] {
  display:none !important;
}
body.bbpress main.bsg-aurora-page .bsg-stat-presence-members [data-bsg-online-members] {
  display:block !important;
  text-align:right !important;
  overflow-wrap:anywhere !important;
}
