/**
 * WSFD brand type system (Figma Design file xMiPWGUfC7CZpzw386WoTx).
 *
 * Availability:
 * - Neither face is on Google Fonts.
 * - Dunbar Tall + New Science Serif: Adobe Fonts kit `cmv7ybd`
 *   (CSS family names `dunbar-tall` / `new-science-serif`) and/or
 *   licensed self-host woff2 under assets/fonts/.
 *
 * See assets/fonts/README.md. Set WSFD_ADOBE_FONTS_KIT for Typekit embed.
 */

/* -------------------------------------------------------------------------
   @font-face — Commissioner (self-hosted, OFL)
   ------------------------------------------------------------------------- */
@font-face {
	font-family: 'Commissioner';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/commissioner/commissioner-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Commissioner';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/commissioner/commissioner-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Commissioner';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/commissioner/commissioner-latin-ext-500-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Commissioner';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/commissioner/commissioner-latin-500-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Commissioner';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/commissioner/commissioner-latin-ext-600-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Commissioner';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/commissioner/commissioner-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Commissioner';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/commissioner/commissioner-latin-ext-700-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Commissioner';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/commissioner/commissioner-latin-700-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Dunbar Tall / New Science Serif @font-face rules are NOT declared here.
 * PHP (wsfd_print_self_hosted_font_faces) emits them only when licensed
 * woff2/woff files exist under assets/fonts/, so missing drop-ins never 404.
 * Adobe Fonts kit (WSFD_ADOBE_FONTS_KIT) supplies dunbar-tall + new-science-serif.
 */

/* -------------------------------------------------------------------------
   Tokens + global mapping (beat Divi Georgia / Montserrat Theme Options)
   ------------------------------------------------------------------------- */
:root,
html {
	/* Typekit CSS family names must be listed so kit faces resolve */
	--wsfd-font-display: 'Dunbar Tall', dunbar-tall, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--wsfd-font-serif: 'New Science Serif', new-science-serif, Georgia, 'Times New Roman', serif;
	--wsfd-font-body: 'Commissioner', 'Helvetica Neue', Helvetica, Arial, sans-serif;

	/* Override Divi Theme Options / Design System font tokens */
	--et_global_heading_font: 'Dunbar Tall', dunbar-tall, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
	--et_global_body_font: 'Commissioner', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
	--et_global_heading_font_weight: 700;
	--et_global_body_font_weight: 400;
}

html body,
html body.et_pb_pagebuilder_layout,
body,
body input,
body textarea,
body select,
.et_pb_text,
.et_pb_text_inner,
.et_pb_blurb_description,
.et_pb_blurb_description p,
.et_pb_post_content,
.wsfd-global-alert,
.wsfd-global-footer {
	font-family: 'Commissioner', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

h1,
h2,
h4,
h6,
.et_pb_module_header,
.et_pb_slide_title,
.et_pb_title_container h1,
.wsfd-footer-heading,
.wsfd-footer-heading h3,
.wsfd-footer-heading p.et_pb_module_header,
.wsfd-global-header .et-menu > li > a,
.wsfd-global-header .et_pb_menu .et-menu > li > ul.sub-menu a,
.wsfd-global-header .et_pb_menu .et_mobile_menu li a {
	font-family: var(--wsfd-font-display) !important;
}

/* Figma 3121:4205 — H3 / H5 use New Science Serif */
h3,
h5 {
	font-family: var(--wsfd-font-serif) !important;
}

/* Sheet: H1 / H2 weight 700 sitewide; H3/H5 = 600 from Figma */
h1,
.et_pb_title_container h1,
.et_pb_module_header {
	font-weight: var(--wsfd-h1-weight, 700) !important;
}

h2 {
	font-weight: var(--wsfd-h2-weight, 700) !important;
}

h3 {
	font-weight: var(--wsfd-h3-weight, 600) !important;
}

h4 {
	font-weight: var(--wsfd-h4-weight, 700) !important;
}

h5 {
	font-weight: var(--wsfd-h5-weight, 600) !important;
}

h6 {
	font-weight: var(--wsfd-h6-weight, 700) !important;
}

/*
 * Soft size defaults (Figma 3121:4205). Soft enough that Divi module / Design
 * System values can still override when editors set them in Visual Builder.
 *
 * Intentional brand locks (still use !important on family/weight):
 * - Display / serif / body font families sitewide
 * - H1–H6 font-weight tokens (sheet rows 12/13 + Figma scale)
 * Editors can still beat these via Divi module selectors that include a
 * module class + !important (higher specificity than bare h1–h6).
 */
h1,
.et_pb_title_container h1 {
	font-size: var(--wsfd-h1-size, 64px);
	line-height: var(--wsfd-h1-lh, 70px);
}

h2 {
	font-size: var(--wsfd-h2-size, 36px);
	line-height: var(--wsfd-h2-lh, 44px);
}

h3 {
	font-size: var(--wsfd-h3-size, 36px);
	line-height: var(--wsfd-h3-lh, 40px);
}

h4 {
	font-size: var(--wsfd-h4-size, 24px);
	line-height: var(--wsfd-h4-lh, 30px);
}

h5 {
	font-size: var(--wsfd-h5-size, 22px);
	line-height: var(--wsfd-h5-lh, 26px);
}

h6 {
	font-size: var(--wsfd-h6-size, 20px);
	line-height: var(--wsfd-h6-lh, 24px);
}

.et_pb_button,
.et_pb_more_button,
.et_pb_button.et_pb_button,
.wsfd-hero .et_pb_more_button.et_pb_button,
.wsfd-audience-cards .et_pb_button,
.wsfd-about .et_pb_button,
.wsfd-hero .et_pb_slide_content,
.wsfd-hero .et_pb_slide_content p {
	font-family: var(--wsfd-font-serif) !important;
}
