/* ========================================================================
   SITE-WIDE TYPE SCALE (developer handoff: "Claude Font Information")
   Loaded after every page stylesheet (see tpb_type_scale_styles() in
   functions.php). Tokens live in style.css :root (--text-h1 ... --text-btn).

   Fonts: Oswald (headlines) and Figtree (everything else). Nothing else.

   Why !important on size / line-height: the page stylesheets still carry
   older per-page sizes and several media queries (mobile, max-height hero
   fixes) that set font-size. Declaring the scale once, last, with
   !important is what makes "same element, same level, every page" hold.
   Nav chrome (links, phone, dropdowns, mobile menu) is intentionally NOT
   touched here.

   Selector conventions (the theme names everything consistently):
     *-eyebrow          -> Eyebrow
     h1, .hero-h1       -> H1
     h2, *-headline     -> H2
     h3, *-pillar-title,
       *-card-title     -> H3
     .faq-trigger       -> H4
     *-hero-sub, p.*-sub,
       *-subhead        -> P1
     card / pillar / accordion / FAQ answer text -> P2
     labels, captions, cred labels, footer text  -> P3
   ======================================================================== */

/* ---------- H1: page hero headline ---------- */
body h1,
body .hero-h1,
body [class$="-h1"] {
	font-family: var(--font-display) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: var(--text-h1) !important;
	line-height: 1.0 !important;
	letter-spacing: 0.04em !important;
}

/* ---------- H2: section headline ---------- */
body h2,
body .cta-headline,
body .section-headline {
	font-family: var(--font-display) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: var(--text-h2) !important;
	line-height: 1.05 !important;
	letter-spacing: 0.04em !important;
}

/* ---------- H3: card, pillar and accordion titles ---------- */
body h3:not([class*="rich"] h3):not([class*="body"] h3):not([class*="article"] h3),
body .pacc-title,
body [class$="pillar-title"],
body [class$="card-title"],
body .service-panel-name {
	font-family: var(--font-display) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: var(--text-h3) !important;
	line-height: 1.1 !important;
	letter-spacing: 0.04em !important;
}

/* ---------- H4: FAQ questions, small headings ---------- */
body h4,
body .faq-trigger,
body .faq-trigger span,
body .faq-q {
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	font-size: var(--text-h4) !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* ---------- P1: hero subhead, section intro under an H2, main body ---------- */
body .hero-sub,
body [class$="hero-sub"],
body p[class$="-sub"],
body [class$="-subhead"],
body p[class$="-intro"],
body .soc-body,
body .algae-body,
body .cta-trust,
body .cta-copy,
body .close-cta-body {
	font-family: var(--font-body) !important;
	font-weight: 400 !important;
	font-size: var(--text-p1) !important;
	line-height: 1.8 !important;
	letter-spacing: normal !important;
}

/* ---------- P2: card text, pillar and accordion text, FAQ answers ---------- */
body .pacc-text,
body [class$="pillar-body"],
body [class$="card-body"],
body .faq-body-inner,
body .faq-body-inner p,
body .faq-body-inner li,
body .service-panel-item,
body .cc-card-list li,
body .cc-startup-list li,
body .cc-pricing-col-list li,
body .ra-card-text {
	font-family: var(--font-body) !important;
	font-size: var(--text-p2) !important;
	line-height: 1.7 !important;
	letter-spacing: normal !important;
}

/* ---------- P3: captions, form labels, cred bar labels, footer text ---------- */
body label,
body figcaption,
body .wp-caption-text,
body .cred-label,
body .cta-cred,
body .service-item-desc,
body .services-areas {
	font-family: var(--font-body) !important;
	font-size: var(--text-p3) !important;
	line-height: 1.5 !important;
}
/* Footer: size only, so the footer's own spacing is left as built. */
body .footer-contact,
body .footer-col-list a,
body .footer-seo p,
body .footer-bottom,
body .footer-bottom-left a,
body .footer-sep {
	font-family: var(--font-body) !important;
	font-size: var(--text-p3) !important;
}

/* ---------- Eyebrow: small label above H1/H2 ---------- */
body .eyebrow,
body [class$="eyebrow"] {
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: var(--text-eyebrow) !important;
	line-height: 1.2 !important;
	letter-spacing: 0.28em !important;
}

/* ---------- Button: all buttons ---------- */
body .btn,
body .cta-btn,
body [class*="btn-hero"],
body .service-panel-cta {
	font-family: var(--font-body) !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	font-size: var(--text-btn) !important;
	line-height: 1 !important;
	letter-spacing: 0.07em !important;
}

/* ---------- Contrast (WCAG AA, 4.5:1 minimum on light backgrounds) ----------
   FAQ answers and intros that sit on white / #EEF1F6 used light grey
   (--muted, #64748B is only about 4.2:1 on #EEF1F6). Use --muted-dark. */
body .faq-body-inner,
body .faq-body-inner p,
body .faq-body-inner li,
body .services-sub,
body .cc-included-sub,
body .cc-pricing-sub,
body .cc-startup-sub,
body .tc-included-sub,
body .tc-pricing-sub,
body .tc-startup-sub,
body .team-sub,
body .es-eqcat-subhead,
body .sd-intro {
	color: var(--muted-dark) !important;
}

/* ========================================================================
   EXTENDED COVERAGE (Nov 2026)
   The rules above only named the elements listed in the handoff's
   discrepancy table. The same element types on the remaining templates
   (specialty detail, TotalCare, equipment pages, Weekly Pool Service,
   Pool Care Library articles, Careers, About, area pages, FAQ/Library
   heroes) still carried their own per-page sizes. They are mapped here to
   the same levels so "same element, same level, every page" holds.
   Prices, tier rows, numbers, chips and nav chrome are intentionally left
   out: they are data/UI, not headings or paragraphs.
   ======================================================================== */

/* ---------- H3: card, group, pillar and accordion titles ---------- */
body .per-repair-name,
body .inspect-group-name,
body .es-eqcat-card-name,
body .ss-card-name,
body .prev-name,
body .startup-col-label,
body .services-group-label,
body .coverage-block-label,
body .area-row-name,
body .part-name,
body .symptom-name,
body .pool-name,
body .pool-row-name,
body .tracc-name,
body .founder-name,
body .community-card-name,
body .team-modal-name {
	font-family: var(--font-display) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: var(--text-h3) !important;
	line-height: 1.1 !important;
	letter-spacing: 0.04em !important;
}

/* ---------- H4: small headings ---------- */
body .type-name,
body .team-role-name {
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	font-size: var(--text-h4) !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* ---------- P1: hero subheads, section intros, main body prose ---------- */
body .faq-hero p,
body.page-template-template-library .hero p,
body .lib-head p,
body .sd-rich p,
body .sd-rich li,
body .per-prose p,
body .prose-body p,
body .es-diag-body,
body .es-stripe-body,
body .per-stripe-body,
body .estripe-body,
body .step-lead,
body .npsi-prose,
body .startup-col-prose,
body .tc-algae-body,
body .catchall-text,
body .company-lede,
body .company-prose,
body .soc-card-body,
body .pool-card-body,
body .mission-body,
body .mission-quote-text,
body .pool-intro p,
body .craft-header p,
body .path-header p,
body .kc-body p,
body .kc-body ul,
body .kc-body ol {
	font-family: var(--font-body) !important;
	font-weight: 400 !important;
	font-size: var(--text-p1) !important;
	line-height: 1.8 !important;
	letter-spacing: normal !important;
}
body .kc-body li { font-size: inherit !important; }

/* ---------- P2: card text, list text, accordion text, notes ---------- */
body .sd-card .sd-rich p,
body .sd-card .sd-rich li,
body .sd-tier-desc,
body [class$="-card-lead"],
body [class$="-card-list"] li,
body [class$="-startup-list"] li,
body [class$="-pricing-col-list"] li,
body .per-repair-list li,
body .inspect-list li,
body .per-repairs-note,
body .inspect-footer-note,
body .per-brands-note,
body .brands-footer-note,
body .es-eqcat-card-summary,
body .ss-card-summary,
body .prev-mini-list li,
body .startup-col-list li,
body .scope-list li,
body .pricing-custom-body,
body .pool-row-statement,
body .pool-statement,
body .pool-onjob,
body .tracc-body-inner,
body .filter-text,
body .team-role-desc,
body .founder-bio,
body .community-card-desc,
body .team-modal-bio,
body .info-blurb,
body .service-list-item,
body .service-list-item-name,
body .hood-item,
body .hq-copy,
body .part-desc,
body .symptom-desc,
body .type-desc,
body .form-success-body {
	font-family: var(--font-body) !important;
	font-size: var(--text-p2) !important;
	line-height: 1.7 !important;
	letter-spacing: normal !important;
}

/* ---------- P3: footnotes, captions, small print ---------- */
body [class$="-card-footnote"],
body [class$="-tiers-footnote"],
body .pricing-footnotes,
body .pricing-footnotes p,
body .scope-rentals-note,
body .services-soc-line,
body .form-helper,
body .info-afterhours-text,
body .path-notes {
	font-family: var(--font-body) !important;
	font-size: var(--text-p3) !important;
	line-height: 1.5 !important;
}

/* ---------- Button: card CTA strips and remaining buttons ---------- */
body .prev-cta,
body .services-group-cta,
body .section-cta,
body .section-cta-btn,
body .close-cta-btn,
body .hq-cta,
body .hero-cta,
body .form-submit,
body .es-diag-cta,
body .kc-section-btn {
	font-family: var(--font-body) !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	font-size: var(--text-btn) !important;
	letter-spacing: 0.07em !important;
}

/* ---------- Contrast: light-grey body text on white / #EEF1F6 ---------- */
body .sd-tier-desc,
body [class$="-card-lead"],
body .per-repairs-note,
body .inspect-footer-note,
body .per-brands-note,
body .brands-footer-note,
body .scope-rentals-note,
body .type-desc,
body .hq-copy,
body .lib-head p,
body .cat-copy-intro,
body .areas-lead,
body .tc-soc-sub,
body .craft-header p,
body .path-header p {
	color: var(--muted-dark) !important;
}
