/* Keep the four text sizes consistent above the older page-specific rules. */
@layer club-type-scale {
  html body,
  html body :where(*) {
    font-family: var(--club-font) !important;
    font-size: inherit !important;
    line-height: 1.45 !important;
  }
  html body {
    font-size: var(--club-type-body) !important;
  }
  @media (max-width: 760px) {
    html body,
    html body :is(h4, p, li, dt, dd, blockquote, th, td, input, textarea, select) {
      line-height: 1.45 !important;
    }
  }
  html body :is(h1, .club-signoff) {
    font-size: var(--club-type-display) !important;
  }
  html body :is(h2, h3, header .logo, .club-wordmark),
  html body main.home-content > .intro > h2 {
    font-size: var(--club-type-heading) !important;
  }
  html body :is(h4, p, li, dt, dd, blockquote, th, td, input, textarea, select),
  html body main.home-content nav.quick-text-links > a {
    font-size: var(--club-type-body) !important;
  }
  html body :is(small, figcaption, .eyebrow, .app-bar, .app-invite-status, nav, footer, .class-quick-book) {
    font-size: var(--club-type-small) !important;
  }
  html body :is(strong, b) {
    font-weight: 700;
  }
  html body :is(.home-hero-title, .club-signoff) {
    font-size: var(--club-type-display) !important;
  }
}

@layer club-type-scale {
  html body .method-ten .principle h3:has(.principle-number:first-child) {
    font-size: var(--club-type-body) !important;
  }
}

@layer club-type-scale {
  html body main.home-content .photo .overlay a.btn {
    font-size: var(--club-type-small) !important;
    min-height: 38px !important;
    padding: 8px 13px !important;
  }
  html body footer#contact.site-contact-footer {
    font-size: var(--club-type-small) !important;
  }
}

@layer club-type-scale {
  @media (max-width: 760px) {
    html body main.pricing-guide {
      font-size: var(--club-type-small) !important;
    }
    html body main.pricing-guide :is(h2, h3, h4, p, li, dt, dd, th, td, blockquote) {
      font-size: var(--club-type-small) !important;
    }
    html body main.pricing-guide h1 {
      font-size: var(--club-type-body) !important;
    }
  }
}

@layer club-type-scale {
  @media (max-width: 760px) {
    html body main.home-content .photo:not(.second) .overlay {
      text-align: center;
    }
    html body main.home-content .photo:not(.second) .overlay .home-hero-title {
      font-size: var(--club-type-display) !important;
      margin-block: 12px;
      text-wrap: normal;
    }
    html body main.home-content .photo:not(.second) .overlay :is(.eyebrow, p) {
      font-size: var(--club-type-small) !important;
      margin-block: 8px;
    }
  }
}

@layer club-type-scale {
  html body main.home-content .second h2.club-signoff {
    inline-size: 100%;
    max-inline-size: 100%;
    text-align: center;
    white-space: nowrap;
  }
  @media (max-width: 760px) {
    html body main.home-content .second h2.club-signoff {
      font-size: var(--club-type-heading) !important;
    }
  }
}

@layer club-type-scale {
  html body main.pricing-guide .pack-header h1 {
    font-size: var(--club-type-display) !important;
  }
  html body main.pricing-guide .pack-studios > .pack-studio > h2 {
    font-size: var(--club-type-heading) !important;
  }
  @media (max-width: 760px) {
    html body main.pricing-guide .pack-header h1 {
      font-size: var(--club-type-heading) !important;
    }
    html body main.pricing-guide .pack-studios > .pack-studio > h2 {
      font-size: var(--club-type-body) !important;
    }
  }
}

@media (max-width: 760px) {
  html body main.home-content nav.quick-text-links { padding-block: 3px; }
  html body main.home-content nav.quick-text-links > a {
    min-height: 36px;
    padding-block: 4px;
  }
}

@layer club-type-scale {
  html body main.home-content :is(.intro > .eyebrow, .photo:not(.second) .overlay .eyebrow, .photo:not(.second) .overlay > p) {
    font-size: var(--club-type-body) !important;
  }
  html body main.home-content .second h2.club-signoff {
    font-size: var(--club-type-heading) !important;
  }
  html body main.home-content :is(#classes > .eyebrow, .card > small),
  html body a.class-detail-link {
    font-size: var(--club-type-small) !important;
  }
  html body main.home-content :is(#classes > .eyebrow, #classes > h2, .card > small, .card > h3, .second .overlay h2, .second .overlay > p, #visit > h2, .visitor-grid article > :is(h3, p)) {
    line-height: 1.25 !important;
  }
  html body footer#contact.site-contact-footer {
    font-size: var(--club-type-small) !important;
  }
}

@layer club-type-scale {
  @media (max-width: 760px) {
    html body main.home-content .photo:not(.second) .overlay .home-hero-title {
      line-height: 1.2 !important;
      margin-block: 12px !important;
    }
    html body main.home-content .photo:not(.second) .overlay > .eyebrow {
      margin-block-end: 3px !important;
    }
    html body main.home-content .photo:not(.second) .overlay > p {
      margin-block-start: 3px !important;
    }
    html body main.home-content > .intro > .eyebrow {
      margin-block-end: 4px !important;
    }
    html body main.home-content > .intro > h2 {
      margin-block-start: 4px !important;
    }
  }
}

@layer club-type-scale {
  html body main .eyebrow:has(+ :is(h1, h2, h3, h4)) {
    line-height: 1.2 !important;
    margin-block-end: 3px !important;
  }
  html body main .eyebrow + :is(h1, h2, h3, h4) {
    margin-block-start: 3px !important;
  }
  @media (max-width: 760px) {
    html body main.home-content .photo:not(.second) .overlay .eyebrow + .home-hero-title {
      margin-block-start: 12px !important;
    }
    html body main.home-content > .intro > .eyebrow + h2 {
      margin-block-start: 3px !important;
    }
  }
}

