.child-page {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 127, 0.18), transparent 28%),
    linear-gradient(180deg, #f2ebe2 0%, #f6f2eb 18%, #f3ede5 58%, #f8f3ed 100%);
  color: #1a2431;
}

.child-page__hero {
  position: relative;
  min-height: min(92svh, 920px);
  padding: clamp(148px, 15vw, 198px) 0 clamp(88px, 10vw, 132px);
  color: #f7f4ed;
  overflow: hidden;
  isolation: isolate;
  background: #07110e;
}

.child-page__hero::before,
.child-page__hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.child-page__hero::before {
  top: -20%;
  left: -4%;
  width: 68%;
  height: 58%;
  background: radial-gradient(circle, rgba(35, 90, 78, 0.16), transparent 64%);
  z-index: 0;
}

.child-page__hero::after {
  top: -18%;
  right: -8%;
  width: 46%;
  height: 32%;
  background: radial-gradient(circle, rgba(179, 104, 56, 0.22), transparent 60%);
  z-index: 0;
}

.child-page__hero-media,
.child-page__hero-overlay {
  position: absolute;
  inset: 0;
}

.child-page__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transform: scale(1.08);
  transform-origin: center center;
}

.child-page__hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 14, 12, 0.94) 0%, rgba(6, 16, 14, 0.9) 28%, rgba(8, 17, 15, 0.78) 48%, rgba(9, 17, 15, 0.56) 68%, rgba(10, 18, 16, 0.34) 100%),
    linear-gradient(180deg, rgba(6, 15, 13, 0.72) 0%, rgba(6, 15, 13, 0.28) 20%, rgba(6, 15, 13, 0.74) 100%),
    radial-gradient(circle at 18% 24%, rgba(20, 99, 87, 0.18), transparent 24%);
}

.child-page__hero-inner,
.child-page__body-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - (var(--section-padding-x) * 2)));
  margin: 0 auto;
}

.child-page__hero-inner {
  display: grid;
  gap: clamp(30px, 4vw, 48px);
  align-content: end;
}

.child-page__hero-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(235, 233, 227, 0.68);
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.child-page__hero-breadcrumb-link,
.child-page__hero-breadcrumb-current {
  text-decoration: none;
}

.child-page__hero-breadcrumb-link {
  color: #ec7d45;
}

.child-page__hero-breadcrumb-current {
  color: rgba(235, 233, 227, 0.68);
}

.child-page__hero-breadcrumb-separator {
  color: rgba(235, 233, 227, 0.44);
  font-size: 16px;
  line-height: 1;
}

.child-page__hero-title {
  margin: 0;
  max-width: 12ch;
  color: #f4efe8;
  font-family: var(--font-display);
  font-size: clamp(60px, 7.4vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.child-page__hero-title em,
.child-page__hero-title i {
  color: #36bfdf;
  font-style: italic;
  font-weight: 500;
}

.child-page__hero-summary {
  max-width: 41rem;
  margin: clamp(24px, 3vw, 34px) 0 0;
  color: rgba(235, 233, 227, 0.74);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.68;
}

.child-page__body {
  position: relative;
  z-index: 1;
  margin-top: -42px;
  padding-bottom: 110px;
}

.child-page__body-inner {
  padding-top: 0;
}

.child-page .content-page-layout {
  width: 100%;
}

.child-page .content-page-layout__container {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

.child-page .content-page-layout__container.content-page-layout__container--no-toc {
  grid-template-columns: minmax(0, 1fr);
}

.child-page .content-page-sections {
  min-width: 0;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(20, 38, 63, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 242, 0.98));
  box-shadow: 0 24px 60px rgba(12, 22, 34, 0.08);
}

.child-page .content-block {
  max-width: none;
  margin: 0;
  padding: 0;
}

.child-page .toc {
  position: sticky;
  top: 124px;
  padding: 20px 18px;
  border-radius: 28px;
  border: 1px solid rgba(20, 38, 63, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 242, 234, 0.92));
  box-shadow: 0 20px 44px rgba(12, 22, 34, 0.08);
}

.child-page .toc__title {
  color: #172536;
  border-bottom-color: rgba(20, 38, 63, 0.08);
}

.child-page .toc__link {
  color: rgba(29, 36, 48, 0.72);
}

.child-page .toc__link:hover,
.child-page .toc__link.is-active {
  color: #8f5b10;
}

.child-page .toc__link svg path {
  fill: #c98d32;
}

.child-page-section {
  padding: 0;
}

.child-page-section + .child-page-section {
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: clamp(34px, 5vw, 52px);
  border-top: 1px solid rgba(20, 38, 63, 0.08);
}

.child-page-section__inner {
  max-width: 56rem;
}

.child-page .child-page-section__title {
  margin: 0 0 18px;
  color: #172536;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
  scroll-margin-top: 124px;
}

.child-page-section__intro,
.child-page-section__subsection-copy,
.child-page-section__subheading-copy {
  color: rgba(29, 36, 48, 0.84);
  font-size: 17px;
  line-height: 1.92;
}

.child-page-section__text,
.child-page-section__subsection-copy,
.child-page-section__subheading-copy {
  max-width: 46rem;
}

.child-page-section__text + .child-page-section__text {
  margin-top: 1rem;
}

.child-page-section__minor-heading,
.child-page-section__subheading-title {
  margin: 30px 0 10px;
  color: #172536;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.child-page-section__subsections {
  display: grid;
  gap: 30px;
  margin-top: 28px;
}

.child-page-section__subsection {
  position: relative;
  padding-left: 24px;
}

.child-page-section__subsection::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 141, 50, 0.9), rgba(201, 141, 50, 0.08));
}

.child-page-section__subsection-title {
  margin: 0 0 12px;
  color: #172536;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.14;
}

.child-page-section__subheading + .child-page-section__subheading {
  margin-top: 18px;
}

.child-page-section p,
.child-page-section ul,
.child-page-section ol,
.child-page-section blockquote {
  margin-bottom: 1rem;
}

.child-page-section ul,
.child-page-section ol {
  padding-left: 1.3rem;
}

.child-page-section li + li {
  margin-top: 0.45rem;
}

.child-page .child-page-section a {
  color: #8f5b10;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.child-page-section strong {
  color: #172536;
}

@media (max-width: 1139px) {
  .child-page .content-page-layout__container {
    grid-template-columns: 1fr;
  }

  .child-page .toc {
    position: static;
    top: auto;
  }
}

@media (max-width: 767px) {
  .child-page__hero {
    min-height: auto;
    padding: 132px 0 72px;
  }

  .child-page__hero-title {
    max-width: none;
  }

  .child-page__hero-summary {
    font-size: 16px;
  }

  .child-page__body {
    margin-top: -26px;
    padding-bottom: 84px;
  }

  .child-page .content-page-sections,
  .child-page .toc {
    border-radius: 26px;
  }

  .child-page-section__subsection {
    padding-left: 18px;
  }

  .child-page-section__intro,
  .child-page-section__subsection-copy,
  .child-page-section__subheading-copy {
    font-size: 16px;
  }
}

@media (max-width: 580px) {
  .child-page__hero-inner,
  .child-page__body-inner {
    width: min(100% - 24px, 1280px);
  }

  .child-page .content-page-sections {
    padding: 24px 20px;
  }
}
