/*
 * In-review light split hero for My Story only.
 * Uses the warm surface directly below the hero and the approved charcoal header treatment.
 */

.public-site.page-family--profile .story-split-hero {
  display: grid;
  min-height: min(100svh, 56rem);
  grid-template-columns: minmax(24rem, 0.96fr) minmax(28rem, 1.04fr);
  align-items: stretch;
  gap: clamp(3rem, 5.5vw, 6rem);
  padding: calc(var(--site-header-height) + clamp(2.25rem, 4vw, 4rem)) clamp(2rem, 4.5vw, 4.5rem) clamp(2.25rem, 4vw, 4rem);
  background: #FAF6F0;
  color: #242824;
}

.public-site.page-family--profile .story-split-hero__copy {
  display: flex;
  width: min(100%, 38rem);
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(0rem, 2vw, 2rem);
}

.public-site.page-family--profile .story-split-hero h1 {
  max-width: 8ch;
  margin: 0;
  color: #242824;
  font-family: var(--site-display);
  font-size: clamp(4rem, 6.5vw, 6.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.84;
}

.public-site.page-family--profile .story-split-hero__copy > p {
  max-width: 38rem;
  margin: clamp(1.75rem, 3vw, 2.75rem) 0 0;
  color: rgba(36, 40, 36, 0.78);
  font-family: var(--ref-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.public-site.page-family--profile .story-split-hero__portrait {
  min-width: 0;
  min-height: 0;
  margin: clamp(1.25rem, 2vw, 2rem) 0;
  overflow: hidden;
  border-radius: clamp(1rem, 1.6vw, 1.5rem);
  background: #E8E5DD;
}

.public-site.page-family--profile .story-split-hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 50% 38%;
}

.public-site.page-family--profile .site-header,
.public-site.page-family--profile .site-header--ready {
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.public-site.page-family--profile .site-header--transparent {
  border-bottom-color: transparent;
  background: rgba(250, 246, 240, 0);
  box-shadow: none;
  color: #242824;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.public-site.page-family--profile .site-header--transparent .site-identity__mark {
  filter: brightness(0) saturate(100%) opacity(0.88);
}

.public-site.page-family--profile .site-header--transparent .site-primary-nav__languages {
  border-color: rgba(36, 40, 36, 0.14);
  background: transparent;
  box-shadow: none;
}

.public-site.page-family--profile .site-header--transparent .site-primary-nav__language.is-active {
  background: rgba(74, 65, 57, 0.08);
}

.public-site.page-family--profile .site-header--solid {
  border-bottom-color: rgba(36, 40, 36, 0.08);
  background: rgba(250, 246, 240, 0.97);
  box-shadow: 0 8px 24px rgba(36, 40, 36, 0.07);
  color: #242824;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 68rem) {
  .public-site.page-family--profile .story-split-hero {
    min-height: auto;
    grid-template-columns: minmax(20rem, 0.96fr) minmax(21rem, 1.04fr);
    gap: 2rem;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  }

  .public-site.page-family--profile .story-split-hero__copy {
    padding-left: 0;
  }

  .public-site.page-family--profile .story-split-hero h1 {
    font-size: clamp(3.75rem, 8vw, 5.25rem);
  }
}

@media (max-width: 48rem) {
  .public-site.page-family--profile .story-split-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: calc(var(--site-header-height) + 2.25rem) 1.25rem 1.25rem;
  }

  .public-site.page-family--profile .story-split-hero__copy {
    width: 100%;
    justify-self: stretch;
  }

  .public-site.page-family--profile .story-split-hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.5rem);
  }

  .public-site.page-family--profile .story-split-hero__copy > p {
    margin-top: 1.5rem;
  }

  .public-site.page-family--profile .story-split-hero__portrait {
    height: min(68svh, 39rem);
    min-height: 26rem;
    margin: 0;
    border-radius: 1rem;
  }
}

@media (max-width: 22rem) {
  .public-site.page-family--profile .story-split-hero {
    padding-inline: 1rem;
  }

  .public-site.page-family--profile .story-split-hero h1 {
    font-size: 3.1rem;
  }

  .public-site.page-family--profile .story-split-hero__portrait {
    min-height: 24rem;
  }
}
