:root {

  /* ── Fluid type scale (375px → 1728px) ───────────────────── */
  --text-xl       : clamp(2.000rem, 1.515rem + 2.069vw, 3.750rem);  /* 32px → 60px */
  --text-lg       : clamp(2.000rem, 1.688rem + 1.330vw, 3.125rem);  /* 32px → 50px */
  --text-md       : clamp(1.563rem, 1.268rem + 1.257vw, 2.625rem);  /* 25px → 42px */
  --text-sm       : clamp(1.188rem, 0.997rem + 0.813vw, 1.875rem);  /* 19px → 30px */
  --text-sub-xl   : clamp(1.375rem, 1.098rem + 1.183vw, 2.375rem);  /* 22px → 38px */
  --text-sub-lg   : clamp(0.938rem, 0.643rem + 1.257vw, 2.000rem);  /* 15px → 32px */
  --text-sub-md   : clamp(0.750rem, 0.594rem + 0.665vw, 1.313rem);  /* 12px → 21px */
  --text-sub-sm   : clamp(0.750rem, 0.698rem + 0.222vw, 0.938rem);  /* 12px → 15px */
  --text-body-xl  : clamp(1.188rem, 1.101rem + 0.370vw, 1.500rem);  /* 19px → 24px */
  --text-body-lg  : clamp(1.063rem, 1.011rem + 0.222vw, 1.250rem);  /* 17px → 20px */
  --text-body-md  : clamp(0.750rem, 0.663rem + 0.370vw, 1.063rem);  /* 12px → 17px */
  --text-body-sm  : clamp(0.875rem, 0.840rem + 0.148vw, 1.000rem);  /* 14px → 16px */

}


h1, h2, h3, h4, h5, h6 { padding-bottom: 0; color: inherit; }


/* ── Font weight ──────────────────────────────────────────── */
.font-thin       { font-weight: 100 !important; }
.font-extralight { font-weight: 200 !important; }
.font-light      { font-weight: 300 !important; }
.font-normal     { font-weight: 400 !important; }
.font-medium     { font-weight: 500 !important; }
.font-semibold   { font-weight: 600 !important; }
.font-bold       { font-weight: 700 !important; }
.font-extrabold  { font-weight: 800 !important; }
.font-black      { font-weight: 900 !important; }

/* ── Line height ──────────────────────────────────────────── */
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.1; }
.leading-snug    { line-height: 1.25; }
.leading-normal  { line-height: normal; }
.leading-relaxed { line-height: 1.5; }
.leading-loose   { line-height: 1.75; }

/* ── Type scale ───────────────────────────────────────────── */
/* line-height comes from Figma per token                      */
/* Override line-height per instance using .leading-* classes   */
.heading-xl { font-size: var(--text-xl); font-family: var(--font-display); line-height: 1.167; font-weight: 600; }
.heading-xl h1, .heading-xl h2, .heading-xl h3,
.heading-xl h4, .heading-xl h5, .heading-xl h6,
.heading-xl p  { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; }

.heading-lg { font-size: var(--text-lg); font-family: var(--font-display); line-height: 1.200; font-weight: 600; }
.heading-lg h1, .heading-lg h2, .heading-lg h3,
.heading-lg h4, .heading-lg h5, .heading-lg h6,
.heading-lg p  { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; }

.heading-md { font-size: var(--text-md); font-family: var(--font-display); line-height: 1.119; font-weight: 600; }
.heading-md h1, .heading-md h2, .heading-md h3,
.heading-md h4, .heading-md h5, .heading-md h6,
.heading-md p  { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; }

.heading-sm { font-size: var(--text-sm); font-family: var(--font-display); line-height: 1.074; font-weight: 500; }
.heading-sm h1, .heading-sm h2, .heading-sm h3,
.heading-sm h4, .heading-sm h5, .heading-sm h6,
.heading-sm p  { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; }

.subheading-xl { font-size: var(--text-sub-xl); font-family: var(--font-body); line-height: 1.316; text-transform: uppercase; }
.subheading-xl h1, .subheading-xl h2, .subheading-xl h3,
.subheading-xl h4, .subheading-xl h5, .subheading-xl h6,
.subheading-xl p  { font-size: inherit; font-family: inherit; line-height: inherit; text-transform: inherit; }

.subheading-lg { font-size: var(--text-sub-lg); font-family: var(--font-body); line-height: 1.250; font-weight: 700; }
.subheading-lg h1, .subheading-lg h2, .subheading-lg h3,
.subheading-lg h4, .subheading-lg h5, .subheading-lg h6,
.subheading-lg p  { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; }

.subheading-md { font-size: var(--text-sub-md); font-family: var(--font-body); line-height: 1.429; font-weight: 800; }
.subheading-md h1, .subheading-md h2, .subheading-md h3,
.subheading-md h4, .subheading-md h5, .subheading-md h6,
.subheading-md p  { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; }

.subheading-sm { font-size: var(--text-sub-sm); font-family: var(--font-body); line-height: normal; font-weight: 700; text-transform: uppercase; }
.subheading-sm h1, .subheading-sm h2, .subheading-sm h3,
.subheading-sm h4, .subheading-sm h5, .subheading-sm h6,
.subheading-sm p  { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; text-transform: inherit; }

.body-xl { font-size: var(--text-body-xl); font-family: var(--font-body); line-height: normal; }
.body-xl p, .body-xl li { font-size: inherit; font-family: inherit; line-height: inherit; }

.body-lg { font-size: var(--text-body-lg); font-family: var(--font-body); line-height: 1.550; }
.body-lg p, .body-lg li { font-size: inherit; font-family: inherit; line-height: inherit; }

.body-md { font-size: var(--text-body-md); font-family: var(--font-body); line-height: 1.353; font-weight: 500; }
.body-md p, .body-md li { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; }

.body-sm { font-size: var(--text-body-sm); font-family: var(--font-body); line-height: 1.750; }
.body-sm p, .body-sm li { font-size: inherit; font-family: inherit; line-height: inherit; }


/* ── Rich text ────────────────────────────────────────────── */
/* Apply to Code modules or WP editor content outside Divi's control */
.rich-text h1 { font-size: var(--text-xl); font-family: var(--font-display); line-height: 1.167; font-weight: 600; }
.rich-text h2 { font-size: var(--text-lg); font-family: var(--font-display); line-height: 1.200; font-weight: 600; }
.rich-text h3 { font-size: var(--text-md); font-family: var(--font-display); line-height: 1.119; font-weight: 600; }
.rich-text h4,
.rich-text h5,
.rich-text h6 { font-size: var(--text-sm); font-family: var(--font-display); line-height: 1.074; font-weight: 500; }

.rich-text p,
.rich-text li {
  font-size   : var(--text-body-xl);
  font-family : var(--font-body);
  line-height : normal;
}

.rich-text ol,
.rich-text ul  { padding-left: 1.5em; }

.rich-text a   { text-decoration: underline; color: inherit; }
