/* Figma Desktop type scale (Montserrat — family via Salient options).

   Split-weight titles: wrap the light half in <i> (TinyMCE italic stays <i>,
   see facta_v2_tinymce_before_init). .h1–.h6 mirror the element styles.

   Do not wrap tag + class in :is() — that takes the class's specificity for
   every match and then beats component titles (.overview-filter-title, …).
   body hN is only on the type properties, so it ties Salient without raising
   .hN. Margin stays on hN, .hN so a single class can still zero it. */

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
	margin-block-end: min(1em, 1.5rem);
	text-wrap: balance;

	i {
		font-weight: 400;
		font-style: normal;
	}
}

/* Desktop/H1: Bold 48 / 1.1 */
body h1, .h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
}

/* Desktop/H2: SemiBold 36 / 1.15 / -0.5px */
body h2, .h2 {
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03125rem;
}

/* Desktop/H3: SemiBold 24 / 1.2 */
body h3, .h3 {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 600;
	line-height: 1.2;
}

/* Desktop/H4: SemiBold 18 / 1.4 */
body h4, .h4 {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
}

/* Desktop/H5: SemiBold 16 / 1.4 */
body h5, .h5 {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

/* Desktop/H6: SemiBold 14 / 1.4 */
body h6, .h6 {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

/* Lead: Medium 20 / 1.4 */
.lead {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.4;
}

body .main-content a:not(.btn) {
	color: inherit;
}