/*
 * Internal-page consistency contract — 2026-07-16
 * About is the reference. Home and Contact are intentional structural exceptions.
 */

/* Remove the legacy page-frame offset before a real title strip. */
.site-shell .page-frame:has(> .about-title-strip.page-title-strip:first-child) {
  padding-top: 0;
}

/* Reassert the exact shared title-strip geometry after all page-specific CSS. */
.site-shell main:not(.home-page) > .about-title-strip.page-title-strip {
  min-height: var(--internal-title-min);
  margin-top: 0;
  padding: var(--internal-title-pad) 0;
  border-top: 1px solid var(--internal-title-rule);
  border-bottom: 1px solid var(--internal-title-rule);
  background: var(--internal-title-bg);
  color: var(--navy-950);
}

/* Boxed page frames get the same full-width band and inner axis as About. */
.site-shell
  .page-frame:has(> .about-title-strip.page-title-strip:first-child):not(
    .reviews-page
  ):not(.playbook-page):not(.listings-page):not(.marketing-page-approved)
  > .about-title-strip.page-title-strip:first-child {
  width: calc(100% + var(--site-gutter));
  max-width: none;
  margin-right: calc(var(--site-gutter) / -2);
  margin-left: calc(var(--site-gutter) / -2);
}

.site-shell
  main:not(.home-page)
  > .about-title-strip.page-title-strip
  .about-title-inner {
  width: min(var(--site-wide), calc(100% - var(--site-gutter)));
  max-width: none;
  min-height: 0;
  margin-inline: auto;
}

.site-shell
  main:not(.home-page)
  > .about-title-strip.page-title-strip
  .about-page-title {
  width: 100%;
  max-width: none;
}

.site-shell
  main:not(.home-page)
  > .about-title-strip.page-title-strip
  .about-page-title
  > .eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-shell
  main:not(.home-page)
  > .about-title-strip.page-title-strip
  .about-page-title
  > h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.15vw, 44px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.site-shell
  main:not(.home-page)
  > .about-title-strip.page-title-strip
  .about-page-title
  > .about-lede {
  display: inline-block;
  max-width: 720px;
  margin: 12px 0 0;
  overflow: visible;
  border-left: 2px solid var(--gold);
  padding: 0 0 0 15px;
  color: var(--navy-900);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(15px, .98vw, 18px);
  font-weight: 760;
  line-height: 1.42;
  letter-spacing: 0;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

/* Zillow: keep the restored third title part and retain the compact video. */
.zillow-approved-page > .zillow-title-video-section {
  margin: 0;
}

.zillow-approved-page .zillow-title-video {
  display: flex;
  width: min(1040px, calc(100% - 32px));
  max-width: 1040px;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
}

.zillow-approved-page .zillow-video {
  width: min(100%, 480px);
  max-width: 480px;
}

/* These labels repeat the richer Contact guidance and are not interactive. */
.home-pieces-page .home-cta-paths,
.danielle-page .about-process-cta .home-cta-paths {
  display: none;
}

@media (max-width: 720px) {
  .site-shell
    .page-frame:has(> .about-title-strip.page-title-strip:first-child):not(
      .reviews-page
    ):not(.playbook-page):not(.listings-page):not(.marketing-page-approved)
    > .about-title-strip.page-title-strip:first-child {
    width: calc(100% + 28px);
    margin-right: -14px;
    margin-left: -14px;
  }

  .site-shell main:not(.home-page) > .about-title-strip.page-title-strip {
    min-height: auto;
    padding: 24px 0;
  }

  .site-shell
    main:not(.home-page)
    > .about-title-strip.page-title-strip
    .about-title-inner {
    width: calc(100% - 28px);
  }

  .site-shell
    main:not(.home-page)
    > .about-title-strip.page-title-strip
    .about-page-title
    > h1 {
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.02;
  }

  .site-shell
    main:not(.home-page)
    > .about-title-strip.page-title-strip
    .about-page-title
    > .about-lede {
    padding-left: 12px;
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .zillow-approved-page .zillow-video {
    width: min(100%, 300px);
  }
}
