
/* GEM INNER CLEANUP
   Scope: inner pages only. Home/front page and Services & Pricing are excluded. */

/* Tighten excessive paragraph spacing while preserving readable line-height. */
body:not(.home):not(.front-page):not(.page-slug-services-and-pricing)
.entry-content p,
body:not(.home):not(.front-page):not(.page-slug-services-and-pricing)
.pt-elementor-page p,
body.pt-mexico-excerpt-page:not(.page-slug-services-and-pricing) p {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.65 !important;
}

/* Tighten headings so sections don't float apart. */
body:not(.home):not(.front-page):not(.page-slug-services-and-pricing)
.entry-content h2,
body:not(.home):not(.front-page):not(.page-slug-services-and-pricing)
.entry-content h3,
body:not(.home):not(.front-page):not(.page-slug-services-and-pricing)
.pt-elementor-page h2,
body:not(.home):not(.front-page):not(.page-slug-services-and-pricing)
.pt-elementor-page h3 {
  margin-top: 28px !important;
  margin-bottom: 12px !important;
}

/* Remove accidental nested/double borders inside real cards.
   The outer card border remains intact. */
body:not(.home):not(.front-page) .pt-info-card .elementor-inner-section,
body:not(.home):not(.front-page) .pt-info-card .elementor-container,
body:not(.home):not(.front-page) .pt-info-card .elementor-column,
body:not(.home):not(.front-page) .pt-info-card .elementor-widget-wrap,
body:not(.home):not(.front-page) .pt-mini-card .elementor-inner-section,
body:not(.home):not(.front-page) .pt-mini-card .elementor-container,
body:not(.home):not(.front-page) .pt-mini-card .elementor-column,
body:not(.home):not(.front-page) .pt-mini-card .elementor-widget-wrap,
body:not(.home):not(.front-page) .pt-treatment-card .elementor-inner-section,
body:not(.home):not(.front-page) .pt-treatment-card .elementor-container,
body:not(.home):not(.front-page) .pt-treatment-card .elementor-column,
body:not(.home):not(.front-page) .pt-treatment-card .elementor-widget-wrap,
body:not(.home):not(.front-page) .pt-facial-lymphatic-card .elementor-inner-section,
body:not(.home):not(.front-page) .pt-facial-lymphatic-card .elementor-container,
body:not(.home):not(.front-page) .pt-facial-lymphatic-card .elementor-column,
body:not(.home):not(.front-page) .pt-facial-lymphatic-card .elementor-widget-wrap,
body:not(.home):not(.front-page) .pt-lymphatic-system-card .elementor-inner-section,
body:not(.home):not(.front-page) .pt-lymphatic-system-card .elementor-container,
body:not(.home):not(.front-page) .pt-lymphatic-system-card .elementor-column,
body:not(.home):not(.front-page) .pt-lymphatic-system-card .elementor-widget-wrap,
body:not(.home):not(.front-page) .pt-kilmer-card .elementor-inner-section,
body:not(.home):not(.front-page) .pt-kilmer-card .elementor-container,
body:not(.home):not(.front-page) .pt-kilmer-card .elementor-column,
body:not(.home):not(.front-page) .pt-kilmer-card .elementor-widget-wrap {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Empty bordered shells should never consume space. */
body:not(.home):not(.front-page) .pt-info-card:empty,
body:not(.home):not(.front-page) .pt-mini-card:empty,
body:not(.home):not(.front-page) .pt-treatment-card:empty,
body:not(.home):not(.front-page) .pt-requested-card:empty,
body:not(.home):not(.front-page) .pt-benefits-card:empty,
body:not(.home):not(.front-page) .pt-facial-lymphatic-card:empty,
body:not(.home):not(.front-page) .pt-lymphatic-system-card:empty,
body:not(.home):not(.front-page) .pt-kilmer-card:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

/* Keep CTA/button wrappers compact. */
body:not(.home):not(.front-page) .pt-aberdeen-cta,
body:not(.home):not(.front-page) .pt-daisey-cta,
body:not(.home):not(.front-page) .pt-kilmer-cta,
body:not(.home):not(.front-page) .pt-facial-lymphatic-cta,
body:not(.home):not(.front-page) .pt-book-contact-actions {
  margin-top: 22px !important;
  margin-bottom: 10px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove decorative extra border when a CTA immediately follows a bordered card. */
body:not(.home):not(.front-page) .pt-info-card + .pt-aberdeen-cta,
body:not(.home):not(.front-page) .pt-treatment-card + .pt-aberdeen-cta,
body:not(.home):not(.front-page) .pt-facial-lymphatic-feature-card + .pt-facial-lymphatic-cta,
body:not(.home):not(.front-page) .pt-kilmer-feature-card + .pt-kilmer-cta {
  border-top: 0 !important;
}
