/* ==========================================================================
   SUJASMIN — GLOBAL TYPOGRAPHY SCALE (loaded last, applies site-wide)
   One consistent scale for H1–H6 and paragraphs so headings stay compact
   (no 3–5 line headlines) on every page and breakpoint.

     H1  page title            30px → 44px
     H2  section heading       22px → 32px
     H3  card / sub-section    18px → 24px
     H4  item title            16px → 20px
     H5  small title           16px
     H6  overline / label      13px, uppercase
     P   body copy             16px → 18px

   Declared with !important on purpose: page stylesheets set their own
   heading sizes and this file is the single source of truth.
   ========================================================================== */

:root {
    --fs-h1: clamp(1.875rem, 1.3rem + 2.1vw, 2.75rem);
    --fs-h2: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
    --fs-h3: clamp(1.125rem, 1rem + .6vw, 1.5rem);
    --fs-h4: clamp(1rem, .95rem + .3vw, 1.25rem);
    --fs-h5: 1rem;
    --fs-h6: .8125rem;
    --fs-p: clamp(1rem, .96rem + .2vw, 1.0625rem);
}

body h1, body h2, body h3, body h4, body h5, body h6 {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    text-wrap: balance;
    overflow-wrap: break-word;
}

body h1 { font-size: var(--fs-h1) !important; line-height: 1.12 !important; letter-spacing: -0.025em !important; }
body h2 { font-size: var(--fs-h2) !important; line-height: 1.2 !important;  letter-spacing: -0.02em !important; }
body h3 { font-size: var(--fs-h3) !important; line-height: 1.25 !important; letter-spacing: -0.015em !important; }
body h4 { font-size: var(--fs-h4) !important; line-height: 1.3 !important;  letter-spacing: -0.01em !important; }
body h5 { font-size: var(--fs-h5) !important; line-height: 1.35 !important; letter-spacing: 0 !important; }
body h6 { font-size: var(--fs-h6) !important; line-height: 1.4 !important;  letter-spacing: .08em !important; text-transform: uppercase; }

/* Wider measure for centred section headings so they sit on 1–2 lines */
body .section-header, body .cx-head, body .mx-head { max-width: min(56rem, 100%) !important; }
body .section-header h2, body .cx-head h2, body .mx-head h2 { max-width: 44ch; margin-inline: auto; }
body .cx-head--left h2 { margin-inline: 0; }

/* Paragraphs */
body p { font-size: var(--fs-p); line-height: 1.65; }
body main p { text-wrap: pretty; }

/* Item titles that must be <h3> for a correct outline but look like H4 */
body .h4-style { font-size: var(--fs-h4) !important; line-height: 1.3 !important; letter-spacing: -0.01em !important; }

/* Closing call-to-action blocks: wider measure so long headlines stay on two lines */
body :is(.cx-cta-body, .mx-cta-body, .partner-cta-content, .cta-section-content) { max-width: min(58rem, 100%) !important; }
