/*
 * Public slider typography defaults - compact edition.
 * This file is intentionally loaded last so slider-page typography remains
 * smaller than the broader frontend theme defaults on every public theme.
 */

/* Titles shown below media-only sliders (Home, provider directories, marketplace). */
body.guest-shell[class*="frontend-theme-"] :is(.home-hero-title-below,.directory-hero-title-below) h1,
body.app-body[class*="frontend-theme-"]:not(.role-admin) :is(.home-hero-title-below,.directory-hero-title-below) h1,
body.guest-shell.route-home[class*="frontend-theme-"] .home-flat-slider-context-homepage-main + .home-hero-title-below h1 {
  font-size: clamp(1.7rem, 3vw, 2.75rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

body.guest-shell[class*="frontend-theme-"] :is(.home-hero-title-below,.directory-hero-title-below) p,
body.app-body[class*="frontend-theme-"]:not(.role-admin) :is(.home-hero-title-below,.directory-hero-title-below) p,
body.guest-shell.route-home[class*="frontend-theme-"] .home-flat-slider-context-homepage-main + .home-hero-title-below p {
  font-size: clamp(.9rem, 1.15vw, 1.05rem) !important;
  line-height: 1.52 !important;
}

/* Titles rendered inside content-style slider slides. */
body.guest-shell[class*="frontend-theme-"] .home-flat-slide :is(h1,h2),
body.app-body[class*="frontend-theme-"]:not(.role-admin) .home-flat-slide :is(h1,h2) {
  font-size: clamp(1.65rem, 2.7vw, 2.55rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em !important;
}

body.guest-shell[class*="frontend-theme-"] .home-flat-slide.is-provider-slide :is(h1,h2),
body.app-body[class*="frontend-theme-"]:not(.role-admin) .home-flat-slide.is-provider-slide :is(h1,h2) {
  font-size: clamp(1.6rem, 2.5vw, 2.35rem) !important;
}

body.guest-shell[class*="frontend-theme-"] .home-flat-title-fa,
body.app-body[class*="frontend-theme-"]:not(.role-admin) .home-flat-title-fa {
  font-size: clamp(.9rem, 1.25vw, 1.1rem) !important;
}

@media (max-width: 900px) {
  body.guest-shell[class*="frontend-theme-"] :is(.home-hero-title-below,.directory-hero-title-below) h1,
  body.app-body[class*="frontend-theme-"]:not(.role-admin) :is(.home-hero-title-below,.directory-hero-title-below) h1,
  body.guest-shell.route-home[class*="frontend-theme-"] .home-flat-slider-context-homepage-main + .home-hero-title-below h1 {
    font-size: clamp(1.65rem, 6.8vw, 2.4rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.032em !important;
  }
}

@media (max-width: 760px) {
  body.guest-shell[class*="frontend-theme-"] :is(.home-hero-title-below,.directory-hero-title-below) h1,
  body.app-body[class*="frontend-theme-"]:not(.role-admin) :is(.home-hero-title-below,.directory-hero-title-below) h1,
  body.guest-shell.route-home[class*="frontend-theme-"] .home-flat-slider-context-homepage-main + .home-hero-title-below h1 {
    font-size: clamp(1.55rem, 7.3vw, 2.15rem) !important;
    line-height: 1.1 !important;
  }

  body.guest-shell[class*="frontend-theme-"] :is(.home-hero-title-below,.directory-hero-title-below) p,
  body.app-body[class*="frontend-theme-"]:not(.role-admin) :is(.home-hero-title-below,.directory-hero-title-below) p,
  body.guest-shell.route-home[class*="frontend-theme-"] .home-flat-slider-context-homepage-main + .home-hero-title-below p {
    font-size: .9rem !important;
    line-height: 1.52 !important;
  }

  body.guest-shell[class*="frontend-theme-"] .home-flat-slide :is(h1,h2),
  body.app-body[class*="frontend-theme-"]:not(.role-admin) .home-flat-slide :is(h1,h2),
  body.guest-shell[class*="frontend-theme-"] .home-flat-slide.is-provider-slide :is(h1,h2),
  body.app-body[class*="frontend-theme-"]:not(.role-admin) .home-flat-slide.is-provider-slide :is(h1,h2) {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem) !important;
    line-height: 1.08 !important;
  }

  body.guest-shell[class*="frontend-theme-"] .home-flat-title-fa,
  body.app-body[class*="frontend-theme-"]:not(.role-admin) .home-flat-title-fa {
    font-size: .92rem !important;
  }
}

@media (max-width: 480px) {
  body.guest-shell[class*="frontend-theme-"] :is(.home-hero-title-below,.directory-hero-title-below) h1,
  body.app-body[class*="frontend-theme-"]:not(.role-admin) :is(.home-hero-title-below,.directory-hero-title-below) h1,
  body.guest-shell.route-home[class*="frontend-theme-"] .home-flat-slider-context-homepage-main + .home-hero-title-below h1 {
    font-size: clamp(1.45rem, 7.5vw, 1.9rem) !important;
  }
}
