/**
 * Bushari Design System — trust and team-member presentation
 */

body.bds-trust #brx-content .brxw-content-section-03 {
  background: var(--bds-color-bg-primary);
  padding: var(--bds-space-8) var(--bds-space-5);
}

body.bds-trust #brx-content .brxw-content-section-03__inner {
  align-items: center;
  display: grid;
  gap: var(--bds-space-8);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
  max-width: 1200px;
  min-height: 0;
  width: 100%;
}

.bds-trust .brxw-content-section-03__content-wrapper {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  min-width: 0;
}

.bds-trust .bushari-post-title-hero {
  font-size: clamp(52px, 5vw, 72px);
  font-weight: var(--bds-font-weight-semibold);
  letter-spacing: -.05em;
  line-height: .96;
  margin: 0 0 var(--bds-space-4);
}

.bds-trust .brxw-content-section-03__tagline {
  color: var(--bds-color-text-secondary);
  font-size: 14px;
  font-weight: var(--bds-font-weight-medium);
  letter-spacing: .06em;
  line-height: 20px;
  margin: 0 0 var(--bds-space-7);
  text-transform: uppercase;
}

.bds-trust .brxw-content-section-03__tagline + .brxw-content-section-03__text {
  color: var(--bds-color-text-primary);
  font-size: 24px;
  font-weight: var(--bds-font-weight-semibold);
  letter-spacing: -.025em;
  line-height: 31px;
  margin: 0 0 var(--bds-space-6);
  max-width: 25ch;
}

.bds-trust .brxw-content-section-03__content-wrapper > .brxw-content-section-03__text:last-child {
  color: var(--bds-color-text-secondary);
  font-size: 15px;
  line-height: 24px;
  margin: 0;
}

.bds-trust .brxw-content-section-03__content-wrapper b {
  color: var(--bds-color-text-primary);
  font-weight: var(--bds-font-weight-semibold);
}

.bds-trust .brxw-content-section-03__media-wrapper {
  min-width: 0;
}

.bds-trust .brxw-content-section-03__media {
  aspect-ratio: 1;
  background: var(--bds-color-bg-secondary);
  border-radius: var(--bds-radius-md);
  display: block;
  margin: 0;
  overflow: hidden;
  width: 100%;
}

.bds-trust .brxw-content-section-03__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bds-trust .brxw-timeline-02 {
  display: grid;
  gap: 0 var(--bds-space-8);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
  padding: var(--bds-space-4) var(--bds-space-5) var(--bds-space-9);
  width: 100%;
}

.bds-trust .brxw-timeline-02 > li {
  border-top: 1px solid var(--bds-color-border-default);
  display: block;
  min-width: 0;
  padding: var(--bds-space-7) 0;
}

.bds-trust .brxw-timeline-02 > li:first-child {
  grid-column: 1 / -1;
}

.bds-trust .brxw-timeline-02__content-wrapper {
  max-width: 720px;
}

.bds-trust .brxw-timeline-02 > li:first-child .brxw-timeline-02__content-wrapper {
  max-width: 900px;
}

.bds-trust .brxw-timeline-02__heading {
  color: var(--bds-color-text-primary);
  font-size: 30px;
  font-weight: var(--bds-font-weight-semibold);
  letter-spacing: -.03em;
  line-height: 37px;
  margin: 0 0 var(--bds-space-5);
}

.bds-trust .brxw-timeline-02__lede {
  color: var(--bds-color-text-secondary);
  font-size: 16px;
  line-height: 27px;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.bds-trust .brxw-timeline-02__lede + .brxw-timeline-02__lede,
.bds-trust .brxw-timeline-02__content-wrapper > div + div {
  margin-top: var(--bds-space-3);
}

.bds-trust .brxw-timeline-02__lede a {
  color: var(--bds-color-text-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bds-trust .brxw-timeline-02__lede a:hover,
.bds-trust .brxw-timeline-02__lede a:focus-visible {
  color: var(--bds-color-text-primary);
}

@media (max-width: 991px) {
  body.bds-trust #brx-content .brxw-content-section-03 {
    padding: var(--bds-space-7) var(--bds-space-5);
  }

  body.bds-trust #brx-content .brxw-content-section-03__inner {
    gap: var(--bds-space-6);
  }

  .bds-trust .bushari-post-title-hero {
    font-size: clamp(44px, 7vw, 56px);
  }

  .bds-trust .brxw-timeline-02 {
    gap: 0 var(--bds-space-6);
  }
}

@media (max-width: 640px) {
  body.bds-trust #brx-content .brxw-content-section-03 {
    padding: var(--bds-space-6) var(--bds-space-4);
  }

  body.bds-trust #brx-content .brxw-content-section-03__inner {
    gap: var(--bds-space-6);
    grid-template-columns: minmax(0, 1fr);
  }

  .bds-trust .bushari-post-title-hero {
    font-size: 44px;
  }

  .bds-trust .brxw-content-section-03__tagline {
    margin-bottom: var(--bds-space-5);
  }

  .bds-trust .brxw-content-section-03__tagline + .brxw-content-section-03__text {
    font-size: 21px;
    line-height: 28px;
    margin-bottom: var(--bds-space-5);
  }

  .bds-trust .brxw-timeline-02 {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 var(--bds-space-4) var(--bds-space-8);
  }

  .bds-trust .brxw-timeline-02 > li,
  .bds-trust .brxw-timeline-02 > li:first-child {
    grid-column: 1 / -1;
    padding: var(--bds-space-6) 0;
  }

  .bds-trust .brxw-timeline-02__heading {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: var(--bds-space-4);
  }
}

/* Source-owned shared Team Member profile template */
body.bds-profile-page {
  background: var(--bds-color-bg-primary);
  color: var(--bds-color-text-primary);
  font-family: var(--bds-font-sans);
}

body.bds-profile-page #brx-content {
  overflow: clip;
}

body.bds-profile-page #brx-content .bds-profile {
  min-width: 0;
}

body.bds-profile-page #brx-content :where(a, button):focus-visible {
  outline: var(--bds-focus-width, 3px) solid var(--bds-focus-color, var(--bds-color-border-focus));
  outline-offset: var(--bds-focus-offset, 3px);
}

body.bds-profile-page #brx-content .bds-profile__hero {
  padding-block: var(--bds-space-section, clamp(40px, 5vw, 56px));
}

body.bds-profile-page #brx-content .bds-profile__hero-grid {
  align-items: center;
  display: grid;
  gap: var(--bds-space-section, clamp(40px, 5vw, 56px));
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
}

body.bds-profile-page #brx-content .bds-profile__identity {
  max-width: 680px;
}

body.bds-profile-page #brx-content .bds-profile__identity .bds-button-row {
  margin-top: var(--bds-space-7);
}

body.bds-profile-page #brx-content .bds-profile__portrait {
  min-width: 0;
}

body.bds-profile-page #brx-content .bds-profile__portrait-frame {
  aspect-ratio: 4 / 5;
  background: var(--bds-color-bg-secondary);
  border: 1px solid var(--bds-color-border-default);
  border-radius: var(--bds-radius-md);
  display: block;
  margin: 0;
  overflow: hidden;
  width: 100%;
}

body.bds-profile-page #brx-content .bds-profile__portrait-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

body.bds-profile-page #brx-content .bds-profile__overview {
  align-items: start;
  display: grid;
  gap: var(--bds-space-7);
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
}

body.bds-profile-page #brx-content .bds-profile__intro {
  color: var(--bds-color-text-secondary);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  margin: 0;
  max-width: var(--bds-container-prose, 720px);
}

@media (max-width: 900px) {
  body.bds-profile-page #brx-content .bds-profile__hero-grid {
    gap: var(--bds-space-7);
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  }

  body.bds-profile-page #brx-content .bds-profile__overview {
    gap: var(--bds-space-6);
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.bds-profile-page #brx-content .bds-profile__hero {
    padding-block: 40px;
  }

  body.bds-profile-page #brx-content .bds-profile__hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.bds-profile-page #brx-content .bds-profile__identity .bds-button-row {
    align-items: stretch;
    flex-direction: column;
  }

  body.bds-profile-page #brx-content .bds-profile__identity .bds-button {
    width: 100%;
  }

  body.bds-profile-page #brx-content .bds-profile__portrait {
    max-width: 440px;
    width: 100%;
  }
}

/* Shared trust-overview foundation */
body.bds-team-page,
body.bds-testimonials-page,
body.bds-story-page {
  background: var(--bds-color-bg-primary);
  color: var(--bds-color-text-primary);
  font-family: var(--bds-font-sans);
}

body:is(.bds-team-page, .bds-testimonials-page, .bds-story-page) #brx-content {
  overflow: clip;
}

body:is(.bds-team-page, .bds-testimonials-page, .bds-story-page) #brx-content :where(a, button):focus-visible {
  outline: 3px solid var(--bds-color-border-focus);
  outline-offset: 3px;
}

body:is(.bds-team-page, .bds-testimonials-page, .bds-story-page) #brx-content :where(.bricks-button, .brxe-button) {
  align-items: center;
  background: var(--bds-color-action-primary-bg);
  border: 1px solid var(--bds-color-action-primary-bg);
  border-radius: var(--bds-radius-sm);
  color: var(--bds-color-action-primary-text);
  display: inline-flex;
  font: 600 14px/1.2 var(--bds-font-sans);
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body:is(.bds-team-page, .bds-testimonials-page, .bds-story-page) #brx-content :where(.bricks-button, .brxe-button):hover {
  background: var(--bds-color-action-accent-bg);
  border-color: var(--bds-color-action-accent-bg);
  color: var(--bds-color-action-accent-text);
  transform: translateY(-1px);
}

/* Team overview */
body.bds-team-page #brx-content .bds-team-hero {
  background: var(--bds-color-bg-primary);
  margin: 0;
  min-height: 680px;
  padding: 0 24px;
}

body.bds-team-page #brx-content .bds-team-hero__inner {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  margin: 0 auto;
  max-width: 1200px;
  min-height: 680px;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-hero__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  min-width: 0;
  padding: 72px 56px 72px 0;
}

body.bds-team-page #brx-content .bds-team-eyebrow,
body.bds-testimonials-page #brx-content .bds-testimonials-eyebrow,
body.bds-story-page #brx-content .bds-story-eyebrow {
  color: var(--bds-color-action-accent-bg);
  font-size: 12px;
  font-weight: var(--bds-font-weight-semibold);
  letter-spacing: .12em;
  line-height: 18px;
  margin: 0 0 24px;
  text-transform: uppercase;
}

body.bds-team-page #brx-content .bds-team-title {
  color: var(--bds-color-text-primary);
  font: 600 clamp(52px, 5vw, 72px)/.96 var(--bds-font-display);
  letter-spacing: -.055em;
  margin: 0;
  max-width: 620px;
}

body.bds-team-page #brx-content .bds-team-lede {
  color: var(--bds-color-text-secondary);
  font-size: 18px;
  line-height: 30px;
  margin: 32px 0 0;
  max-width: 590px;
}

body.bds-team-page #brx-content .bds-team-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

body.bds-team-page #brx-content .bds-team-actions .bricks-button + .bricks-button {
  background: transparent;
  color: var(--bds-color-text-primary);
}

body.bds-team-page #brx-content .bds-team-actions .bricks-button + .bricks-button:hover {
  background: var(--bds-color-action-accent-bg);
  color: var(--bds-color-action-accent-text);
}

body.bds-team-page #brx-content .bds-team-hero__media {
  align-self: stretch;
  margin: 0;
  min-height: 680px;
  overflow: hidden;
  position: static;
  width: auto;
}

body.bds-team-page #brx-content .bds-team-hero__media :where(figure, img),
body.bds-team-page #brx-content .bds-team-hero__image,
body.bds-team-page #brx-content .bds-team-hero__image img {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-meta {
  color: var(--bds-color-text-tertiary);
  font-size: 13px;
  letter-spacing: .04em;
  margin: 18px 0 0;
}

body.bds-team-page #brx-content .bds-team-proof {
  background: var(--bds-color-bg-inverse);
  color: var(--bds-color-text-inverse);
  padding: 0 24px;
}

body.bds-team-page #brx-content .bds-team-proof__inner {
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr);
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-proof__intro {
  align-items: flex-start;
  border-right: 1px solid var(--bds-color-border-inverse);
  display: flex;
  justify-content: center;
  padding: 44px 40px 44px 0;
}

body.bds-team-page #brx-content .bds-team-proof__intro h2 {
  color: var(--bds-color-text-inverse);
  font: 600 28px/34px var(--bds-font-display);
  letter-spacing: -.03em;
  margin: 0;
}

body.bds-team-page #brx-content .bds-team-proof__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.bds-team-page #brx-content .bds-team-proof__metrics > * {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--bds-color-border-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 36px 28px;
}

body.bds-team-page #brx-content .bds-team-proof__metrics > *:first-child {
  border-left: 0;
}

body.bds-team-page #brx-content .bds-team-proof__metrics h3 {
  color: var(--bds-color-text-inverse);
  font: 600 34px/38px var(--bds-font-display);
  letter-spacing: -.04em;
  margin: 0 0 8px;
}

body.bds-team-page #brx-content .bds-team-proof__metrics p {
  color: var(--bds-color-text-inverse-muted);
  font-size: 13px;
  line-height: 20px;
  margin: 0;
}

body.bds-team-page #brx-content :where(.bds-team-people, .bds-team-expertise, .bds-team-journey, .bds-team-recognition) {
  padding: 96px 24px;
}

body.bds-team-page #brx-content .bds-team-section-intro {
  margin: 0 auto 48px;
  max-width: 1200px;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-section-intro h2,
body.bds-team-page #brx-content .bds-team-recognition__content h2 {
  color: var(--bds-color-text-primary);
  font: 600 clamp(38px, 4vw, 56px)/1 var(--bds-font-display);
  letter-spacing: -.05em;
  margin: 0;
}

body.bds-team-page #brx-content .bds-team-section-intro :where(p, .brxe-text-basic) {
  color: var(--bds-color-text-secondary);
  font-size: 17px;
  line-height: 28px;
  margin: 20px 0 0;
  max-width: 760px;
}

body.bds-team-page #brx-content .bds-team-people__grid {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-person {
  min-width: 0;
  width: auto;
}

body.bds-team-page #brx-content .bds-team-person__card {
  background: var(--bds-color-bg-secondary);
  border: 1px solid var(--bds-color-border-default);
  border-radius: var(--bds-radius-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

body.bds-team-page #brx-content .bds-team-person__media {
  aspect-ratio: 1 / 1.03;
  order: -1;
  overflow: hidden;
}

body.bds-team-page #brx-content .bds-team-person__media :where(figure, img) {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-person__body,
body.bds-team-page #brx-content .bds-team-person__footer {
  padding-inline: 28px;
}

body.bds-team-page #brx-content .bds-team-person__body {
  flex: 1 1 auto;
  padding-top: 28px;
}

body.bds-team-page #brx-content .bds-team-person__footer {
  border-top: 1px solid var(--bds-color-border-default);
  margin: 24px 28px 0;
  padding: 18px 0 28px;
}

body.bds-team-page #brx-content .bds-team-person__card h3 {
  color: var(--bds-color-text-primary);
  font: 600 30px/36px var(--bds-font-display);
  letter-spacing: -.035em;
  margin: 0 0 8px;
}

body.bds-team-page #brx-content .bds-team-person__card p,
body.bds-team-page #brx-content .bds-team-person__card .brxe-text-basic {
  color: var(--bds-color-text-secondary);
  font-size: 15px;
  line-height: 23px;
}

body.bds-team-page #brx-content .bds-team-expertise {
  background: var(--bds-color-bg-secondary);
}

body.bds-team-page #brx-content .bds-team-expertise__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-expertise__card {
  align-items: flex-start;
  background: var(--bds-color-bg-primary);
  border: 1px solid var(--bds-color-border-default);
  border-radius: var(--bds-radius-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
}

body.bds-team-page #brx-content .bds-team-expertise__card::before {
  background: var(--bds-color-action-accent-bg);
  content: "";
  display: block;
  height: 3px;
  margin-bottom: 28px;
  width: 40px;
}

body.bds-team-page #brx-content .bds-team-expertise__card:nth-child(2)::before {
  background: #d96b18;
}

body.bds-team-page #brx-content .bds-team-expertise__card:nth-child(3)::before {
  background: #0b7a6c;
}

body.bds-team-page #brx-content .bds-team-expertise__card h3 {
  color: var(--bds-color-text-primary);
  font: 600 25px/31px var(--bds-font-display);
  letter-spacing: -.03em;
  margin: 0 0 16px;
}

body.bds-team-page #brx-content .bds-team-expertise__card p,
body.bds-team-page #brx-content .bds-team-expertise__card .brxe-text-basic {
  color: var(--bds-color-text-secondary);
  font-size: 15px;
  line-height: 25px;
  margin: 0 0 24px;
}

body.bds-team-page #brx-content .bds-team-expertise__card .bricks-button {
  margin-top: auto;
}

body.bds-team-page #brx-content .bds-team-timeline {
  display: grid;
  gap: 32px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-milestone {
  border-top: 1px solid var(--bds-color-border-strong);
  display: block;
  min-width: 0;
  padding: 28px 0 0;
}

body.bds-team-page #brx-content .bds-team-milestone > :first-child {
  color: var(--bds-color-action-accent-bg);
  font-size: 13px;
  font-weight: var(--bds-font-weight-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.bds-team-page #brx-content .bds-team-milestone h3 {
  color: var(--bds-color-text-primary);
  font: 600 23px/29px var(--bds-font-display);
  letter-spacing: -.025em;
  margin: 12px 0;
}

body.bds-team-page #brx-content .bds-team-milestone p,
body.bds-team-page #brx-content .bds-team-milestone .brxe-text-basic {
  color: var(--bds-color-text-secondary);
  font-size: 14px;
  line-height: 23px;
}

body.bds-team-page #brx-content .bds-team-recognition {
  background: var(--bds-color-bg-secondary);
}

body.bds-team-page #brx-content .bds-team-recognition__inner {
  align-items: stretch;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

body.bds-team-page #brx-content .bds-team-recognition__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.bds-team-page #brx-content .bds-team-recognition__content p,
body.bds-team-page #brx-content .bds-team-recognition__content .brxe-text-basic {
  color: var(--bds-color-text-secondary);
  font-size: 16px;
  line-height: 28px;
  margin: 28px 0 0;
  max-width: 680px;
}

body.bds-team-page #brx-content .bds-team-recognition__media {
  border-radius: var(--bds-radius-md);
  min-height: 520px;
  overflow: hidden;
}

body.bds-team-page #brx-content .bds-team-recognition__media :where(figure, img) {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

/* Testimonials */
body.bds-testimonials-page #brx-content .bds-testimonials {
  background: var(--bds-color-bg-primary);
  margin: 0;
  padding: var(--bds-space-section, 56px) 24px;
}

body.bds-testimonials-page #brx-content .bds-testimonials-hero {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
  width: 100%;
}

body.bds-testimonials-page #brx-content .bds-testimonials-hero__inner {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  max-width: 900px;
}

body.bds-testimonials-page #brx-content .bds-testimonials-title {
  color: var(--bds-color-text-primary);
  font: 600 var(--bds-type-display-size, clamp(32px, 27.2px + 1.5vw, 46px))/1.08 var(--bds-font-display);
  letter-spacing: -.035em;
  margin: 0;
}

body.bds-testimonials-page #brx-content .bds-testimonials-lede {
  color: var(--bds-color-text-secondary);
  font-size: 20px;
  line-height: 32px;
  margin: 28px 0 0;
  max-width: 760px;
}

body.bds-testimonials-page #brx-content .bds-testimonials-proof {
  align-items: center;
  border-bottom: 1px solid var(--bds-color-border-default);
  border-top: 1px solid var(--bds-color-border-default);
  display: flex;
  gap: 28px;
  margin: 64px auto 0;
  max-width: 1200px;
  padding: 28px 0;
  width: 100%;
}

body.bds-testimonials-page #brx-content .bds-testimonials-avatars {
  align-items: center;
  display: flex;
}

body.bds-testimonials-page #brx-content .bds-testimonials-avatars > * {
  background: var(--bds-color-bg-secondary);
  border: 2px solid var(--bds-color-bg-primary);
  border-radius: 50%;
  height: 52px;
  margin-left: -10px;
  overflow: hidden;
  width: 52px;
}

body.bds-testimonials-page #brx-content .bds-testimonials-avatars > *:first-child {
  margin-left: 0;
}

body.bds-testimonials-page #brx-content .bds-testimonials-avatars :where(figure, img) {
  height: 100%;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

body.bds-testimonials-page #brx-content .bds-testimonials-proof__copy {
  display: grid;
  gap: 2px;
}

body.bds-testimonials-page #brx-content .bds-testimonials-proof__copy > :first-child {
  color: var(--bds-color-text-primary);
  font-size: 13px;
  font-weight: var(--bds-font-weight-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.bds-testimonials-page #brx-content .bds-testimonials-proof__copy > :last-child {
  color: var(--bds-color-text-secondary);
  font-size: 14px;
  line-height: 22px;
}

body.bds-testimonials-page #brx-content .bds-testimonial-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 48px auto 0;
  max-width: 1200px;
  padding: 0;
  width: 100%;
}

body.bds-testimonials-page #brx-content .bds-testimonial-card {
  background: var(--bds-color-bg-primary);
  border: 1px solid var(--bds-color-border-default);
  border-radius: var(--bds-radius-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  position: relative;
}

body.bds-testimonials-page #brx-content .bds-testimonial-card::before {
  background: var(--bds-color-border-strong);
  content: "";
  height: 3px;
  left: 28px;
  position: absolute;
  top: -1px;
  width: 48px;
}

body.bds-testimonials-page #brx-content .bds-testimonial-card:nth-child(3n + 2)::before {
  background: var(--bds-color-border-strong);
}

body.bds-testimonials-page #brx-content .bds-testimonial-card:nth-child(3n)::before {
  background: var(--bds-color-border-strong);
}

body.bds-testimonials-page #brx-content .bds-testimonial-card__rating {
  margin: 0 0 24px;
}

body.bds-testimonials-page #brx-content .bds-testimonial-card__rating > * {
  color: var(--bds-color-text-primary);
  height: 15px;
  width: 15px;
}

body.bds-testimonials-page #brx-content .bds-testimonial-card__quote {
  color: var(--bds-color-text-primary);
  font-family: var(--bds-font-quote);
  font-size: 19px;
  line-height: 1.55;
}

body.bds-testimonials-page #brx-content .bds-testimonial-card__quote :where(p, div) {
  margin: 0;
}

body.bds-testimonials-page #brx-content .bds-testimonial-card__quote strong {
  font-weight: var(--bds-font-weight-semibold);
}

body.bds-testimonials-page #brx-content .bds-testimonial-card__author {
  border-top: 1px solid var(--bds-color-border-default);
  color: var(--bds-color-text-secondary);
  font-size: 13px;
  font-weight: var(--bds-font-weight-semibold);
  letter-spacing: .02em;
  margin-top: 28px;
  padding-top: 18px;
}

body.bds-testimonials-page #brx-content .bds-testimonial-card__author :where(p, div) {
  margin: 0;
}

body.bds-testimonials-page #brx-content .bds-trust-cta {
  background: var(--bds-color-bg-inverse);
  color: var(--bds-color-text-inverse);
  padding: var(--bds-space-section, 56px) 24px;
}

body.bds-testimonials-page #brx-content .bds-trust-cta__inner {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

body.bds-testimonials-page #brx-content .bds-trust-cta__title {
  color: var(--bds-color-text-inverse);
  font: 600 var(--bds-type-section-size, clamp(26px, 23.2px + .9vw, 32px))/1.18 var(--bds-font-display);
  letter-spacing: -.025em;
  margin: 0;
  max-width: 760px;
}

body.bds-testimonials-page #brx-content .bds-trust-cta__text {
  color: var(--bds-color-text-inverse-muted);
  font-size: 17px;
  line-height: 28px;
  margin: 24px 0 0;
  max-width: 660px;
}

body.bds-testimonials-page #brx-content .bds-trust-cta__button {
  background: var(--bds-color-action-accent-bg);
  border-color: var(--bds-color-action-accent-bg);
  margin-top: 32px;
}

/* Brookline story */
body.bds-story-page #brx-content .bds-story-hero {
  background: var(--bds-color-bg-secondary);
  min-height: 0;
  padding: var(--bds-space-section, 56px) 24px;
}

body.bds-story-page #brx-content .bds-story-hero__inner {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 0;
  width: 100%;
}

body.bds-story-page #brx-content .bds-story-title {
  color: var(--bds-color-text-primary);
  font: 600 var(--bds-type-display-size, clamp(32px, 27.2px + 1.5vw, 46px))/1.08 var(--bds-font-display);
  letter-spacing: -.035em;
  margin: 0;
  max-width: 980px;
}

body.bds-story-page #brx-content .bds-story-deck {
  color: var(--bds-color-text-secondary);
  font-size: 20px;
  line-height: 32px;
  margin: 32px 0 0;
  max-width: 760px;
}

body.bds-story-page #brx-content .bds-story-body {
  background: var(--bds-color-bg-primary);
  counter-reset: bds-story;
  padding: var(--bds-space-section-compact, 48px) 24px var(--bds-space-section, 56px);
}

body.bds-story-page #brx-content .bds-story-entry {
  align-items: start;
  border-top: 1px solid var(--bds-color-border-default);
  counter-increment: bds-story;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1200px;
  padding: 56px 0;
  position: relative;
  width: 100%;
}

body.bds-story-page #brx-content .bds-story-entry::before {
  color: var(--bds-color-action-accent-bg);
  content: counter(bds-story, decimal-leading-zero);
  font-size: 12px;
  font-weight: var(--bds-font-weight-semibold);
  left: 0;
  letter-spacing: .1em;
  position: absolute;
  top: 24px;
}

body.bds-story-page #brx-content .bds-story-entry h2 {
  color: var(--bds-color-text-primary);
  font: 600 var(--bds-type-section-size, clamp(26px, 23.2px + .9vw, 32px))/1.18 var(--bds-font-display);
  letter-spacing: -.025em;
  margin: 0;
}

body.bds-story-page #brx-content .bds-story-entry > :last-child {
  color: var(--bds-color-text-secondary);
  font-size: 17px;
  line-height: 30px;
  max-width: 760px;
}

body.bds-story-page #brx-content .bds-story-entry > :last-child :where(p, div) {
  margin-top: 0;
}

body.bds-story-page #brx-content .bds-story-entry > :last-child :where(p, div) + :where(p, div) {
  margin-top: 20px;
}

body.bds-story-page #brx-content .bds-story-entry em {
  color: var(--bds-color-text-primary);
}

body.bds-story-page #brx-content .bds-story-cta {
  align-items: center;
  background: var(--bds-color-bg-inverse);
  border-radius: var(--bds-radius-md);
  color: var(--bds-color-text-inverse-muted);
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  line-height: 28px;
  margin: 32px auto 0;
  max-width: 1200px;
  padding: 32px;
  width: 100%;
}

body.bds-story-page #brx-content .bds-story-cta :where(p, div) {
  margin: 0;
}

body.bds-story-page #brx-content .bds-story-cta strong {
  color: var(--bds-color-text-inverse);
}

body.bds-story-page #brx-content .bds-story-cta a {
  color: #83a8ff;
  font-weight: var(--bds-font-weight-semibold);
  text-underline-offset: 3px;
}

@media (max-width: 991px) {
  body.bds-team-page #brx-content .bds-team-hero__inner,
  body.bds-team-page #brx-content .bds-team-recognition__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  body.bds-team-page #brx-content .bds-team-hero__content {
    padding: 72px 0 56px;
  }

  body.bds-team-page #brx-content .bds-team-hero__media {
    min-height: 560px;
  }

  body.bds-team-page #brx-content .bds-team-proof__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  body.bds-team-page #brx-content .bds-team-proof__intro {
    border-bottom: 1px solid var(--bds-color-border-inverse);
    border-right: 0;
    padding: 32px 0;
  }

  body.bds-team-page #brx-content .bds-team-timeline,
  body.bds-testimonials-page #brx-content .bds-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.bds-team-page #brx-content .bds-team-recognition__media {
    min-height: 500px;
  }

  body.bds-story-page #brx-content .bds-story-entry {
    gap: 40px;
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.bds-team-page #brx-content .bds-team-hero,
  body.bds-team-page #brx-content .bds-team-proof {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.bds-team-page #brx-content .bds-team-title,
  body.bds-testimonials-page #brx-content .bds-testimonials-title,
  body.bds-story-page #brx-content .bds-story-title {
    font-size: 32px;
  }

  body.bds-team-page #brx-content .bds-team-actions,
  body.bds-team-page #brx-content .bds-team-actions .bricks-button {
    width: 100%;
  }

  body.bds-team-page #brx-content .bds-team-hero__media {
    min-height: 420px;
  }

  body.bds-team-page #brx-content .bds-team-proof__metrics,
  body.bds-team-page #brx-content .bds-team-people__grid,
  body.bds-team-page #brx-content .bds-team-expertise__grid,
  body.bds-team-page #brx-content .bds-team-timeline,
  body.bds-testimonials-page #brx-content .bds-testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.bds-team-page #brx-content .bds-team-proof__metrics > * {
    border-left: 0;
    border-top: 1px solid var(--bds-color-border-inverse);
    padding: 26px 0;
  }

  body.bds-team-page #brx-content .bds-team-proof__metrics > *:first-child {
    border-top: 0;
  }

  body.bds-team-page #brx-content :where(.bds-team-people, .bds-team-expertise, .bds-team-journey, .bds-team-recognition),
  body.bds-testimonials-page #brx-content .bds-testimonials,
  body.bds-testimonials-page #brx-content .bds-trust-cta,
  body.bds-story-page #brx-content .bds-story-hero,
  body.bds-story-page #brx-content .bds-story-body {
    padding: 40px 20px;
  }

  body.bds-team-page #brx-content .bds-team-person__body {
    padding-right: 22px;
    padding-left: 22px;
  }

  body.bds-team-page #brx-content .bds-team-person__footer {
    margin-right: 22px;
    margin-left: 22px;
  }

  body.bds-team-page #brx-content .bds-team-expertise__card,
  body.bds-testimonials-page #brx-content .bds-testimonial-card {
    padding: 24px;
  }

  body.bds-testimonials-page #brx-content .bds-testimonials-proof {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 48px;
  }

  body.bds-testimonials-page #brx-content .bds-testimonial-grid {
    margin-top: 32px;
  }

  body.bds-story-page #brx-content .bds-story-hero__inner {
    min-height: 0;
  }

  body.bds-story-page #brx-content .bds-story-deck {
    font-size: 18px;
    line-height: 29px;
  }

  body.bds-story-page #brx-content .bds-story-entry {
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
    padding: 52px 0;
  }

  body.bds-story-page #brx-content .bds-story-entry > :last-child {
    font-size: 16px;
    line-height: 28px;
  }

  body.bds-story-page #brx-content .bds-story-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.bds-team-page, .bds-testimonials-page, .bds-story-page) #brx-content * {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Retained team sections use the same desktop content edges as native BDS sections. */
@media (min-width: 992px) {
  body.bds-team-page #brx-content :is(.bds-team-hero, .bds-team-people) {
    padding-inline: var(--bds-container-gutter);
  }
  body.bds-team-page #brx-content .bds-team-hero__inner,
  body.bds-team-page #brx-content .bds-team-people > .brxe-container {
    max-width: var(--bds-container-content);
    width: 100%;
    margin-inline: auto;
  }
}
