/* L3.57: regular headline tracking on public pages. Keep small uppercase eyebrow tracking. */
body.shared-header-site main h1,
body.shared-header-site main h2,
body.shared-header-site main h3 { letter-spacing: normal; }
body.shared-header-site.contact-restored main .contact-copy h1,
body.shared-header-site main .hs-slider .hs-title,
body.shared-header-site main .journal-card h2,
body.shared-header-site main .journal-card h3 { letter-spacing: normal; }

/* Explicit slide colours have priority over the page's global text colour setting. */
body.shared-header-site main .hs-slider .hs-slide .hs-eyebrow {
  color:var(--hs-eyebrow-color,#fff) !important;
}
body.shared-header-site main .hs-slider .hs-slide .hs-title {
  color:var(--hs-title-color,#fff) !important;
}
body.shared-header-site main .hs-slider .hs-slide .hs-description {
  color:var(--hs-description-color,#fff) !important;
}

/* Additional connected-platform badges in the existing compact footer. */
.compact-footer .footer-social .social-github{background:#28313a}
.compact-footer .footer-social .social-x{background:#17191c}
.compact-footer .footer-social .social-pinterest{background:#bd081c}

/* Match the CV hero's three title lines, two intro lines and controls. */
@media (min-width: 851px) {
  body.shared-header-site {
    --cv-hero-height: calc(141px + 2 * clamp(3rem, 7vw, 6rem) + 3.18 * clamp(34px, 4.4vw, 70px) + 3.2 * clamp(16px, 1.4vw, 21px));
  }
  body.portfolio-restored .p2-main .p22-hero,
  body.shared-header-site .am-page .am-hero {
    box-sizing: border-box;
    min-height: var(--cv-hero-height);
    padding-block: 48px;
  }
  body.portfolio-restored .p2-main .p22-hero .p22-brands {
    margin-top: 24px;
    padding-top: 12px;
  }
  body.shared-header-site .am-page .am-hero-visual {
    height: calc(var(--cv-hero-height) - 96px);
    min-height: 0;
  }
}
@media (max-width: 850px) {
  body.portfolio-restored .p2-main .p22-hero,
  body.shared-header-site .am-page .am-hero {
    min-height: 0;
    padding-block: clamp(3rem, 7vw, 6rem);
  }
}
