.mbm-community-profile {
  container: mbm-community-profile/inline-size;
  padding-block: clamp(1.4rem, 4vw, 3rem) var(--mbm-section-gap);
}
.mbm-community-profile__first-meeting {
  white-space: pre-line;
}
.mbm-community-profile__breadcrumb {
  color: var(--mbm-color-text-muted);
  font-size: var(--mbm-font-size-sm);
}
.mbm-community-profile__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  padding: 0;
  margin: 0 0 var(--mbm-space-4);
  list-style: none;
}
.mbm-community-profile__breadcrumb li + li {
  border-inline-start: 1px solid var(--mbm-color-divider);
  padding-inline-start: 0.55rem;
}
.mbm-community-profile__breadcrumb a {
  color: var(--mbm-color-primary);
  text-underline-offset: 0.2em;
}
.mbm-community-profile > header {
  margin: 0;
  padding: 0;
}
.mbm-community-profile .mbm-display-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.mbm-community-profile__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--mbm-space-4);
  max-inline-size: 68ch;
  padding-block: var(--mbm-space-4);
  margin-block: var(--mbm-space-4) var(--mbm-space-6);
  border-block: 1px solid var(--mbm-color-divider);
}
.mbm-community-profile__facts dt {
  font-weight: 700;
}
.mbm-community-profile__facts dd {
  margin: 0;
}
.mbm-community-profile__facts dd + dt {
  margin-block-start: var(--mbm-space-2);
}
@container mbm-community-profile (min-width: 17rem) {
  .mbm-community-profile__facts {
    grid-template-columns: minmax(4.75rem, max-content) minmax(0, 1fr);
    row-gap: var(--mbm-space-2);
  }
  .mbm-community-profile__facts dd + dt {
    margin-block-start: 0;
  }
}
@container mbm-community-profile (min-width: 56rem) {
  .mbm-community-profile__layout:has(> .mbm-community-profile__story) {
    display: grid;
    grid-template: "story facts" auto "story visit" 1fr/minmax(0, min(65%, 48rem)) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(2rem, 4vw, 4rem);
    margin-block-start: var(--mbm-space-6);
  }
  .mbm-community-profile__layout:has(> .mbm-community-profile__story) > .mbm-community-profile__story {
    grid-area: story;
  }
  .mbm-community-profile__layout:has(> .mbm-community-profile__story) > .mbm-community-profile__story > .mbm-prose:first-child {
    margin-block-start: 0;
  }
  .mbm-community-profile__layout:has(> .mbm-community-profile__story) > .mbm-community-profile__facts {
    grid-area: facts;
    margin-block: 0 var(--mbm-space-4);
  }
  .mbm-community-profile__layout:has(> .mbm-community-profile__story) > .mbm-community-profile__visit {
    grid-area: visit;
    margin-block-start: 0;
  }
}
.mbm-community-profile .mbm-figure {
  max-inline-size: 48rem;
}
.mbm-community-profile .mbm-prose {
  margin-block-start: var(--mbm-space-4);
}
.mbm-community-profile .mbm-prose :first-child {
  margin-block-start: 0;
}
.mbm-community-profile__visit {
  background: var(--mbm-color-surface-soft);
  padding: clamp(1rem, 4vw, 1.65rem);
  max-inline-size: 68ch;
  margin-block-start: var(--mbm-space-6);
}
.mbm-community-profile__visit h2 {
  margin: 0 0 var(--mbm-space-2);
  font: 600 clamp(1.35rem, 3vw, 1.75rem)/1.25 var(--mbm-font-heading);
}
.mbm-community-profile__visit p {
  margin: 0 0 var(--mbm-space-4);
}
.mbm-community-profile__visit .mbm-person-contact {
  margin-block-end: var(--mbm-space-4);
}
.mbm-community-profile__visit .mbm-person-contact p {
  margin-block: var(--mbm-space-1) var(--mbm-space-2);
}
