/* Two-family typography on the homepage, editorial, and four service pages.
 * IvyPresto is the default; ?font=brushine, qavena, or cardo overrides it.
 * Restrict descendant resets to the website UI, not WordPress admin controls.
 */
body.ys-two-fonts {
	font-family: "DM Sans", sans-serif;
}

body.ys-two-fonts .ys-opening {
	--ys-opening-font-heading: var(--ys-preview-primary), Georgia, "Times New Roman", serif;
	--ys-opening-font-body: "DM Sans", sans-serif;
}

body.ys-two-fonts :is(.ys-landing, .ys-opening, .ys-about, .ys-insights, .site-header, .site-footer, .ys-thumb-zone, [id="strategyCall"]),
body.ys-two-fonts :is(.ys-landing, .ys-opening, .ys-about, .ys-insights, .site-header, .site-footer, .ys-thumb-zone, [id="strategyCall"]) * {
	font-family: "DM Sans", sans-serif !important;
}

body.ys-two-fonts :is(.ys-landing, .ys-opening, .ys-about, .ys-insights, .site-header, .site-footer, [id="strategyCall"]) :is(h1, h2),
body.ys-two-fonts :is(.ys-landing, .ys-opening, .ys-about, .ys-insights, .site-header, .site-footer, [id="strategyCall"]) :is(h1, h2) * {
	font-family: var(--ys-preview-primary), Georgia, "Times New Roman", serif !important;
}

body.ys-two-fonts :is(#ys-landing-speaker, #ys-landing-training) :is(h1, h2) {
	font-style: normal;
	font-weight: 400;
}

body.ys-two-fonts :is(#ys-landing-speaker, #ys-landing-training) :is(h1, h2) * {
	font-weight: inherit;
}

/* One section-heading scale, taken from Brand Consultant Section 01.
 * Exclude the editorial hero and leave card/subsection headings untouched. */
body.ys-two-fonts :is(article#ys-landing-brand_consultant, article#ys-landing-fractional_cbo, article#ys-landing-speaker, article#ys-landing-training) {
	--ys-service-heading-size: clamp(1.8rem, 4.2vw, 4rem);
}

body.ys-two-fonts :is(article#ys-landing-brand_consultant, article#ys-landing-fractional_cbo, article#ys-landing-speaker, article#ys-landing-training) :is(section.ys-landing__section, section.ys-training__section):not(#hero) h2 {
	font-size: var(--ys-service-heading-size);
	line-height: 1.08;
}

body.ys-two-fonts .ys-opening__brand,
body.ys-two-fonts .brand-editorial-hero__marquee,
body.ys-two-fonts .brand-editorial-hero__marquee *,
body.ys-two-fonts .site-footer .ys-site-footer__logo,
body.ys-two-fonts .site-footer .ys-site-footer__logo * {
	font-family: var(--ys-preview-primary), Georgia, "Times New Roman", serif !important;
}
