/* Shared title treatment for the four primary public entry points. Page
   layouts continue to own their hero backgrounds and supporting content. */
body.diagnostic-home.photo-hero-page .hero-home.has-hero-image > div:first-child,
body.services-page.photo-hero-page .service-hero > div:first-child,
body.training-page.photo-hero-page .training-hero.diagnostic-hero.hero-training .training-hero-copy,
body.diagnostic-page.photo-hero-page .hero-free-tools.has-hero-image > div:first-child {
  width: min(720px, 100%);
  max-width: 720px;
}

body.diagnostic-home.photo-hero-page .hero-home.diagnostic-hero.has-hero-image h1,
body.services-page.photo-hero-page .service-hero h1,
body.training-page.photo-hero-page .training-hero.diagnostic-hero.hero-training h1,
body.diagnostic-page.photo-hero-page .hero-free-tools.diagnostic-hero.has-hero-image h1 {
  width: 100%;
  max-width: none;
  margin: 18px 0 20px;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: var(--heading-weight-hero, 560) !important;
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: wrap;
}

body.diagnostic-home.photo-hero-page .hero-home .diagnostic-hero-copy,
body.services-page.photo-hero-page .service-hero > div:first-child > p,
body.training-page.photo-hero-page .training-hero.diagnostic-hero.hero-training .diagnostic-hero-copy,
body.diagnostic-page.photo-hero-page .hero-free-tools .diagnostic-hero-copy {
  width: 100%;
  max-width: none;
}

@media (max-width: 640px) {
  body.diagnostic-home.photo-hero-page .hero-home.diagnostic-hero.has-hero-image h1,
  body.services-page.photo-hero-page .service-hero h1,
  body.training-page.photo-hero-page .training-hero.diagnostic-hero.hero-training h1,
  body.diagnostic-page.photo-hero-page .hero-free-tools.diagnostic-hero.has-hero-image h1 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
    line-height: 1.01;
  }
}
