/* Promoprint72 community canvas. Native BuddyBoss Nouveau owns forms and states. */
body.pp72-community-canvas .pp72-community-content {
  --pp72-community-accent: var(--pp72-teal, #42969e);
  --pp72-community-dark: #286970;
  --pp72-community-ink: var(--pp72-ink, #252525);
  --pp72-community-muted: #657578;
  --pp72-community-line: #dce8e8;
  --pp72-community-tint: #eff7f6;
  color: var(--pp72-community-ink);
  font: 400 15px/1.65 PP72Manrope, Arial, sans-serif;
  min-width: 0;
  max-width: 100%;
}

body.pp72-community-canvas .pp72-community-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

body.pp72-community-canvas .pp72-community-heading { margin: 0 0 28px; }
body.pp72-community-canvas .pp72-community-heading h1 { margin: 0; }
body.pp72-community-canvas .pp72-community-eyebrow {
  margin: 0 0 8px;
  color: var(--pp72-teal, #42969e);
  font: 600 12px/1.5 PP72Manrope, Arial, sans-serif;
  letter-spacing: .06em;
}

body.pp72-community-canvas .pp72-community-content :is(#buddypress, #bbpress-forums) {
  width: 100%;
  min-width: 0;
  margin: 0;
  font: inherit;
  color: var(--pp72-community-ink);
}

body.pp72-community-canvas .pp72-community-content :is(h1, h2, h3, h4, h5, h6) {
  color: var(--pp72-community-ink);
  font-family: PP72Manrope, Arial, sans-serif;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-transform: none;
}

body.pp72-community-canvas .pp72-community-content h1 { font-size: clamp(26px, 3vw, 36px); }
body.pp72-community-canvas .pp72-community-content h2 { font-size: 24px; }
body.pp72-community-canvas .pp72-community-content h3 { font-size: 19px; }

body.pp72-community-canvas .pp72-community-content :is(#buddypress, #bbpress-forums) a {
  color: var(--pp72-community-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.pp72-community-canvas .pp72-community-content :is(#buddypress, #bbpress-forums) a:hover {
  color: var(--pp72-community-accent);
}

body.pp72-community-canvas .pp72-community-content :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--pp72-community-accent);
  outline-offset: 3px;
}

/* Preserve the native cover-position editor and its inline image positioning. */
body.pp72-community-canvas #buddypress .single-headers {
  margin: 0 0 20px;
  background: #fff;
  border: 1px solid var(--pp72-community-line);
  border-radius: 20px;
}

body.pp72-community-canvas #buddypress #header-cover-image {
  height: 180px;
  min-height: 0;
  max-height: none;
  border-radius: 19px 19px 0 0;
  background-color: var(--pp72-community-tint);
}

body.pp72-community-canvas #buddypress #header-cover-image:not(.has-cover-image) {
  background-image: linear-gradient(115deg, #e6f3f1, #f5f9f8);
}

body.pp72-community-canvas #buddypress #item-header-cover-image {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 22px;
  padding: 0 28px 24px;
  margin: 0;
}

body.pp72-community-canvas #buddypress #item-header-avatar {
  flex: 0 0 auto;
  width: 104px;
  padding: 0;
}

body.pp72-community-canvas #buddypress #item-header-cover-image #item-header-avatar {
  margin-top: -38px;
}

body.pp72-community-canvas #buddypress #item-header-avatar img.avatar {
  width: 104px;
  height: 104px;
  max-width: 104px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 12px #173f4512;
  margin: 0;
}

body.pp72-community-canvas #buddypress #item-header-avatar a.link-change-profile-image {
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

body.pp72-community-canvas #buddypress #item-header-avatar .link-change-overlay {
  top: 4px;
  left: 4px;
  right: 4px;
  height: calc(100% - 8px);
}

body.pp72-community-canvas #buddypress #item-header-cover-image #item-header-content {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
  padding: 20px 0 0;
  text-align: left;
}

body.pp72-community-canvas #buddypress #item-header :is(.user-nicename, .entry-title, .bp-group-title) {
  color: var(--pp72-community-ink) !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
  text-shadow: none !important;
  -webkit-text-stroke: 0;
}

body.pp72-community-canvas #buddypress #item-header .item-meta {
  color: var(--pp72-community-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

body.pp72-community-canvas #buddypress #item-header .group-description {
  color: var(--pp72-community-muted);
  font-size: 14px;
}

body.pp72-community-canvas #buddypress #item-header-cover-image.bb-disable-cover-img {
  padding-top: 24px;
}

body.pp72-community-canvas #buddypress #item-header-cover-image.bb-disable-cover-img #item-header-avatar {
  margin-top: 0;
}

/* Menu semantics and native visibility are retained; no global list resets. */
body.pp72-community-canvas #buddypress .bp-navs {
  background: transparent;
  border-color: var(--pp72-community-line);
  box-shadow: none;
}

body.pp72-community-canvas #buddypress #object-nav {
  margin-bottom: 24px;
  padding: 5px;
  background: var(--pp72-community-tint);
  border: 1px solid var(--pp72-community-line);
  border-radius: 14px;
}

body.pp72-community-canvas #buddypress #object-nav:not(.vertical) > ul {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

body.pp72-community-canvas #buddypress #object-nav:not(.vertical) > ul > li {
  float: none;
  margin: 0;
  padding: 0;
}

body.pp72-community-canvas #buddypress .bp-navs > ul > li > a {
  color: var(--pp72-community-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
}

body.pp72-community-canvas #buddypress .bp-navs > ul > li { background: transparent; }

body.pp72-community-canvas #buddypress #object-nav > ul > li > a {
  padding: 11px 17px;
  border: 0;
  border-radius: 10px;
}

body.pp72-community-canvas #buddypress .bp-navs :is(li.current, li.selected) > a {
  color: var(--pp72-community-dark);
  background: var(--pp72-community-tint);
  border-color: var(--pp72-community-accent);
  font-weight: 700;
}

body.pp72-community-canvas #buddypress #object-nav :is(li.current, li.selected) > a {
  color: #fff;
  background: var(--pp72-community-accent);
}

body.pp72-community-canvas #buddypress #object-nav li:not(.selected):not(.current) > a:hover {
  background: #fff;
  color: var(--pp72-community-dark);
}

body.pp72-community-canvas #buddypress .bp-navs li > a:hover {
  background: var(--pp72-community-tint);
  color: var(--pp72-community-dark);
}

body.pp72-community-canvas #buddypress .bp-navs .count {
  border: 0;
  border-radius: 20px;
  background: #dceceb;
  color: var(--pp72-community-dark);
  font-size: 11px;
}

body.pp72-community-canvas #buddypress #object-nav :is(li.current, li.selected) .count {
  background: #ffffff26;
  color: #fff;
}

body.pp72-community-canvas #buddypress :is(#subnav, #subsubnav) {
  margin: 0 0 22px;
}

body.pp72-community-canvas #buddypress :is(#subnav, #subsubnav) > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

/* Cards for real component content; dialogs and dropdowns remain native. */
body.pp72-community-canvas #buddypress :is(.bp-wrap, #item-body, .bp-profile-wrapper, .bp-profile-content) {
  min-width: 0;
}

body.pp72-community-canvas #buddypress .bp-widget {
  padding: 24px;
  margin: 0 0 20px;
  background: #fff;
  border: 1px solid var(--pp72-community-line);
  border-radius: 18px;
}

body.pp72-community-canvas #buddypress .bp-widget .profile-group-title {
  margin: 0 0 18px;
}

body.pp72-community-canvas #buddypress :is(.bp-list .list-wrap, .activity-list > .activity-item, .activity-update-form) {
  border-color: var(--pp72-community-line);
  border-radius: 16px;
  background-color: #fff;
  box-shadow: none;
}

body.pp72-community-canvas #buddypress .bp-list .list-title a {
  color: var(--pp72-community-ink);
  font-size: 18px;
  font-weight: 700;
}

body.pp72-community-canvas #buddypress :is(.item-meta, .last-activity, .last-post, .activity-time-since, .description) {
  color: var(--pp72-community-muted);
}

body.pp72-community-canvas #buddypress :is(.activity-inner, .acomment-content, .group-description) p + p,
body.pp72-community-canvas #bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) p + p {
  margin-top: 12px;
}

body.pp72-community-canvas #buddypress :is(.activity-inner, .acomment-content) :is(ul, ol),
body.pp72-community-canvas #bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) :is(ul, ol) {
  padding-left: 1.4em;
  margin: 12px 0;
}

body.pp72-community-canvas #buddypress :is(.item-avatar img.avatar, .activity-avatar img.avatar) {
  border-radius: 50%;
}

body.pp72-community-canvas #buddypress :is(.standard-form, .dir-search, .bp-search) :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="search"], input[type="tel"], textarea, select),
body.pp72-community-canvas #bbpress-forums :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea, select) {
  max-width: 100%;
  min-width: 0;
  border: 1px solid #bdcecf;
  border-radius: 10px;
  background-color: #fff;
  color: var(--pp72-community-ink);
  box-shadow: none;
  font: inherit;
  font-size: 15px;
}

body.pp72-community-canvas #buddypress .standard-form :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], select),
body.pp72-community-canvas #bbpress-forums :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], select) {
  min-height: 44px;
  padding: 10px 13px;
}

body.pp72-community-canvas #buddypress .standard-form textarea,
body.pp72-community-canvas #bbpress-forums textarea {
  padding: 12px 14px;
  resize: vertical;
}

body.pp72-community-canvas #buddypress .standard-form :is(label, legend) {
  color: var(--pp72-community-ink);
  font-size: 14px;
  font-weight: 600;
}

body.pp72-community-canvas #buddypress :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--pp72-community-accent);
}

body.pp72-community-canvas #buddypress :is(a.button, button.button, input[type="submit"], .generic-button > a, .generic-button > button),
body.pp72-community-canvas #bbpress-forums :is(a.button, button.button, input[type="submit"]) {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--pp72-community-accent);
  border-radius: 10px;
  background: var(--pp72-community-accent);
  color: #fff;
  box-shadow: none;
  font: 600 14px/1.4 PP72Manrope, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
}

body.pp72-community-canvas #buddypress :is(a.button, button.button, input[type="submit"], .generic-button > a, .generic-button > button):hover,
body.pp72-community-canvas #bbpress-forums :is(a.button, button.button, input[type="submit"]):hover {
  border-color: var(--pp72-community-dark);
  background: var(--pp72-community-dark);
  color: #fff;
}

body.pp72-community-canvas #buddypress :is(button, input[type="submit"]):disabled {
  opacity: .55;
  cursor: not-allowed;
}

body.pp72-community-canvas #buddypress :is(.bp-tables-user, .bp-tables-report, .profile-fields) {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

body.pp72-community-canvas #buddypress :is(.bp-tables-user, .bp-tables-report, .profile-fields) :is(th, td) {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--pp72-community-line);
  background: transparent;
  color: var(--pp72-community-ink);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}

body.pp72-community-canvas #buddypress .profile-fields .label {
  width: 30%;
  max-width: 260px;
  color: var(--pp72-community-muted);
  font-weight: 500;
}

body.pp72-community-canvas #buddypress .profile-fields tr:last-child td { border-bottom: 0; }
body.pp72-community-canvas #buddypress .profile-fields td p { margin: 0; }

body.pp72-community-canvas #buddypress .bp-feedback {
  border-color: var(--pp72-community-line);
  border-radius: 12px;
  box-shadow: none;
  font-size: 14px;
}

body.pp72-community-canvas #buddypress .bp-feedback.info { background: var(--pp72-community-tint); }

/* Forum rows keep the built-in responsive column layout and privacy controls. */
body.pp72-community-canvas #bbpress-forums :is(ul.bbp-forums, ul.bbp-topics, ul.bbp-replies, ul.bbp-search-results) {
  border: 1px solid var(--pp72-community-line);
  border-radius: 16px;
  font-size: 14px;
}

body.pp72-community-canvas #bbpress-forums :is(li.bbp-header, li.bbp-footer) {
  padding: 16px;
  background: var(--pp72-community-tint);
  border-color: var(--pp72-community-line);
  color: var(--pp72-community-ink);
}

body.pp72-community-canvas #bbpress-forums li.bbp-header { border-radius: 15px 15px 0 0; }
body.pp72-community-canvas #bbpress-forums li.bbp-footer { border-radius: 0 0 15px 15px; }

body.pp72-community-canvas #bbpress-forums :is(li.bbp-body ul.forum, li.bbp-body ul.topic, .bbp-reply-header, .bbp-topic-header) {
  border-color: var(--pp72-community-line);
}

body.pp72-community-canvas #bbpress-forums :is(div.even, ul.even) { background: #fff; }
body.pp72-community-canvas #bbpress-forums :is(div.odd, ul.odd) { background: #f9fbfb; }

body.pp72-community-canvas #bbpress-forums fieldset.bbp-form {
  padding: 24px;
  border: 1px solid var(--pp72-community-line);
  border-radius: 16px;
}

body.pp72-community-canvas #bbpress-forums fieldset.bbp-form legend {
  color: var(--pp72-community-ink);
  font-size: 19px;
  font-weight: 700;
}

body.pp72-community-canvas #buddypress :is(.bp-messages-wrap, .bp-messages-content, .bp-messages-threads-wrapper, .message-content, .message-threads) {
  min-width: 0;
  max-width: 100%;
  border-color: var(--pp72-community-line);
}

@media (max-width: 782px) {
  body.pp72-community-canvas .pp72-community-main { padding-top: 22px; padding-bottom: 42px; }
  body.pp72-community-canvas #buddypress #header-cover-image { height: 120px; }
  body.pp72-community-canvas #buddypress #item-header-cover-image { gap: 16px; padding: 0 20px 20px; }
  body.pp72-community-canvas #buddypress #item-header-cover-image #item-header-content { flex-basis: 180px; }
  /* Nouveau also generates inline cover CSS with four ID selectors. */
  body.pp72-community-canvas #buddypress #item-header #item-header-cover-image #item-header-avatar { width: 104px; }
  body.pp72-community-canvas #buddypress #item-header #item-header-cover-image #item-header-content { width: auto; text-align: left; }
  body.pp72-community-canvas #buddypress #item-header :is(.user-nicename, .entry-title, .bp-group-title) { font-size: 22px; }
  body.pp72-community-canvas #buddypress #object-nav:not(.vertical) > ul { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  body.pp72-community-canvas #buddypress #object-nav:not(.vertical) > ul > li { flex: 0 0 auto; }
  body.pp72-community-canvas #buddypress #object-nav > ul > li > a { padding: 11px 14px; white-space: nowrap; }
  body.pp72-community-canvas #buddypress .bp-widget { padding: 20px; }
  body.pp72-community-canvas #buddypress .standard-form :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], textarea, select),
  body.pp72-community-canvas #bbpress-forums :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea, select) { font-size: 16px; }
}

@media (max-width: 480px) {
  body.pp72-community-canvas .pp72-community-content { font-size: 14px; }
  body.pp72-community-canvas #buddypress #item-header-cover-image { gap: 0 14px; padding: 0 16px 18px; }
  body.pp72-community-canvas #buddypress #item-header-cover-image #item-header-content { flex-basis: 150px; padding-top: 14px; }
  body.pp72-community-canvas #buddypress #item-header-avatar { width: 84px; }
  body.pp72-community-canvas #buddypress #item-header #item-header-cover-image #item-header-avatar { width: 84px; }
  body.pp72-community-canvas #buddypress #item-header-avatar img.avatar { width: 84px; height: 84px; max-width: 84px; }
  body.pp72-community-canvas #buddypress #item-header-cover-image #item-header-avatar { margin-top: -26px; }
  body.pp72-community-canvas #buddypress #item-header-cover-image.bb-disable-cover-img #item-header-avatar { margin-top: 0; }
  body.pp72-community-canvas #buddypress #item-header :is(.user-nicename, .entry-title, .bp-group-title) { font-size: 21px; }
  body.pp72-community-canvas #buddypress #item-header .item-meta { font-size: 12px; }
  body.pp72-community-canvas #buddypress .bp-widget { padding: 16px; }
  body.pp72-community-canvas #buddypress .profile-fields :is(th, td) { padding: 12px 6px; font-size: 13px; }
  body.pp72-community-canvas #buddypress .profile-fields .label { width: 38%; }
  body.pp72-community-canvas #bbpress-forums fieldset.bbp-form { padding: 16px; }
}
