/* Tandem Guru Heading Scale v1.7.6
   Calmer editorial typography for Joomla article content.
   Deliberately scoped to #g-mainbar so hero sliders, pricing banners,
   navigation and special Gantry particles keep their own display sizes. */

#g-container-main #g-mainbar .item-page h1,
#g-container-main #g-mainbar .com-content-article h1,
#g-container-main #g-mainbar .blog-item h1,
#g-container-main #g-mainbar .page-header h1,
#g-container-main #g-mainbar .tg-seo-hero h1,
#g-container-main #g-mainbar h1[itemprop="headline"] {
  font-size: clamp(2.5rem, 4.15vw, 4.15rem) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

#g-container-main #g-mainbar .item-page h2,
#g-container-main #g-mainbar .com-content-article h2,
#g-container-main #g-mainbar .blog-item h2,
#g-container-main #g-mainbar .tg-seo-hero h2 {
  font-size: clamp(1.85rem, 2.7vw, 2.7rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.025em !important;
  text-wrap: balance;
}

#g-container-main #g-mainbar .item-page h3,
#g-container-main #g-mainbar .com-content-article h3,
#g-container-main #g-mainbar .blog-item h3,
#g-container-main #g-mainbar .tg-seo-hero h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.012em !important;
}

/* Kicker remains compact and should not inherit display-heading rules. */
#g-container-main #g-mainbar .tg-seo-kicker {
  font-size: clamp(.72rem, .78vw, .88rem) !important;
  line-height: 1.35 !important;
  letter-spacing: .13em !important;
}

@media only all and (max-width: 63.99rem) {
  #g-container-main #g-mainbar .item-page h1,
  #g-container-main #g-mainbar .com-content-article h1,
  #g-container-main #g-mainbar .blog-item h1,
  #g-container-main #g-mainbar .page-header h1,
  #g-container-main #g-mainbar .tg-seo-hero h1,
  #g-container-main #g-mainbar h1[itemprop="headline"] {
    font-size: clamp(2.25rem, 8.2vw, 3.35rem) !important;
    line-height: 1 !important;
  }
}

@media only all and (max-width: 35rem) {
  #g-container-main #g-mainbar .item-page h1,
  #g-container-main #g-mainbar .com-content-article h1,
  #g-container-main #g-mainbar .blog-item h1,
  #g-container-main #g-mainbar .page-header h1,
  #g-container-main #g-mainbar .tg-seo-hero h1,
  #g-container-main #g-mainbar h1[itemprop="headline"] {
    font-size: clamp(2rem, 10.5vw, 2.75rem) !important;
    letter-spacing: -.035em !important;
  }

  #g-container-main #g-mainbar .item-page h2,
  #g-container-main #g-mainbar .com-content-article h2,
  #g-container-main #g-mainbar .blog-item h2,
  #g-container-main #g-mainbar .tg-seo-hero h2 {
    font-size: clamp(1.65rem, 7.2vw, 2.2rem) !important;
  }
}
