/* BastionGuard 1.10.6 — intentional responsive author alignment.
   Desktop: only the large profile hero is centered; sidebar and topic authors keep their
   1.10.5 desktop alignment. Mobile: avatar, user name, PNG badges and date are centered
   as one column in topic/reply and the profile header.
   Loaded after 1.10.5; no badge content, links or metadata are changed. */

/* Desktop profile: center ONLY the large hero identity; leave the sidebar profile card alone. */
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero__primary {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 11px !important;
  width: 100% !important;
  margin-inline: auto !important;
  text-align: center !important;
}
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero__primary > img.avatar {
  grid-column: auto !important;
  grid-row: auto !important;
  display: block !important;
  align-self: center !important;
  justify-self: center !important;
  margin-inline: auto !important;
}
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero__identity {
  grid-column: auto !important;
  grid-row: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  align-self: center !important;
  justify-self: center !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  margin-inline: auto !important;
}
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-hero__identity > :is(small,h2,p,.bsg-aurora-profile-badge-row) {
  grid-column: auto !important;
  align-self: center !important;
  justify-self: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-badge-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  text-align: center !important;
}
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-badge-row .bsg-member-badge-stack {
  align-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  margin-inline: auto !important;
}
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-badge-row .bsg-member-badge {
  align-self: center !important;
  justify-content: center !important;
  margin-inline: auto !important;
}
body.bbpress main.bsg-aurora-page--profile .bsg-aurora-profile-badge-row .bsg-badge-png {
  object-position: center center !important;
  margin-inline: auto !important;
}

/* Mobile: all visible member identity elements are centered, not left-aligned. */
@media (max-width: 700px) {
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__heading {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: center !important;
    justify-content: center !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 14px 12px !important;
    text-align: center !important;
    border-right: 0 !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__heading > img.avatar {
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
    align-self: center !important;
    justify-self: center !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity {
    grid-column: auto !important;
    grid-row: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  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 > a,
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-post__identity > small {
    align-self: center !important;
    justify-self: center !important;
    width: auto !important;
    text-align: center !important;
    margin-inline: auto !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-author-badges {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 2px auto !important;
    padding: 0 !important;
    text-align: center !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-aurora-author-badges .bsg-member-badge-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    gap: 1px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-member-badge-stack > .bsg-member-badge {
    align-self: center !important;
    justify-content: center !important;
    margin-inline: auto !important;
  }
  body.bbpress main.bsg-aurora-page .bsg-aurora-conversation .bsg-badge-png {
    object-position: center center !important;
    margin-inline: auto !important;
  }
  /* When the member sidebar card is shown on tablet/small screens, center its identity too. */
  body.bbpress main.bsg-aurora-page--profile .bsg-community-member-card {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  body.bbpress main.bsg-aurora-page--profile .bsg-community-member-card > img.avatar,
  body.bbpress main.bsg-aurora-page--profile .bsg-community-member-card > strong,
  body.bbpress main.bsg-aurora-page--profile .bsg-community-member-card > .bsg-member-badge-stack {
    align-self: center !important;
    text-align: center !important;
    margin-inline: auto !important;
  }
  body.bbpress main.bsg-aurora-page--profile .bsg-community-member-card .bsg-member-badge-stack,
  body.bbpress main.bsg-aurora-page--profile .bsg-community-member-card .bsg-member-badge-stack > .bsg-member-badge {
    align-items: center !important;
    align-self: center !important;
    justify-content: center !important;
  }
}
