/*
 * SUTRAC web fonts: the single source of truth for every font face on the site.
 * Enqueued by inc/fonts.php. Relative URLs only, so the theme works on any host or path.
 *
 * Families keep the names the Elementor Kit and widgets already use:
 *   "Univers-CondensedBold"  Univers 67 Condensed Bold     (Kit Primary + Accent, body)
 *   "sutrac"                 Univers Condensed Regular     (Kit Secondary + Text)
 *
 * LICENCE: the Univers web-font licence is NOT CONFIRMED (pending decision D-1,
 * docs/sutrac-cleanup-audit/typography-audit). Replace these two files with the
 * licensed WOFF2 files, same names, once DAL confirms or buys the licence.
 */

/*
 * Real weights only, no synthetic bold:
 *   sutrac 100-500 -> Regular file; sutrac 600-900 -> the real Bold file.
 *   Univers-CondensedBold 100-900 -> Bold file (it is only ever used as bold).
 * Both bold faces point at the same file, so the browser downloads it once.
 */
@font-face {
	font-family: "Univers-CondensedBold";
	src: url("../fonts/univers/univers-condensed-bold.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "sutrac";
	src: url("../fonts/univers/univers-condensed-regular.woff2") format("woff2");
	font-weight: 100 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "sutrac";
	src: url("../fonts/univers/univers-condensed-bold.woff2") format("woff2");
	font-weight: 600 900;
	font-style: normal;
	font-display: swap;
}

/* ---------------------------------------------------------------------------
 * Typography unification: plugins that do not follow the Elementor Kit globals.
 * Sizes, spacing and colours are untouched; only the family is aligned.
 * "body" prefix: these must win over the plugin stylesheets, which load after this file.
 * ------------------------------------------------------------------------- */

/* Fluent Forms: fields, choices, help and error text follow the Kit "Text" global. */
body .fluentform .ff-el-form-control,
body .fluentform input,
body .fluentform select,
body .fluentform textarea,
body .fluentform .ff-el-form-control::placeholder,
body .fluentform .ff-el-form-check-label,
body .fluentform .ff-el-help-message,
body .fluentform .ff-el-is-error .text-danger,
body .fluentform .error,
body .fluentform .ff-message-success,
body .fluentform .ff-errors-in-stack {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
}

/* Univers has shorter vertical metrics than the system font the fields used before;
   keep the former field heights (44px inputs, 46px selects) so form spacing is unchanged. */
body .fluentform input.ff-el-form-control:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
	min-height: 44px;
}
body .fluentform select.ff-el-form-control {
	min-height: 46px;
}

/* Fluent Forms: labels, section titles and the submit button follow the Kit "Primary" global. */
body .fluentform .ff-el-input--label label,
body .fluentform .ff-el-section-title,
body .fluentform .ff-btn-submit {
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

/* UberMenu (main navigation): follows the Kit "Primary" global (it inherited the same font before). */
body .ubermenu,
body .ubermenu .ubermenu-target,
body .ubermenu .ubermenu-target-title,
body .ubermenu .ubermenu-target-description {
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

/* Master Slider: its generated presets (uploads/masterslider/custom.css) name Google Fonts
   that are never loaded. Force every preset and layer style onto the Kit "Primary" global. */
body .master-slider [class*="msp-preset-"],
body .master-slider [class*="msp-cn-"] {
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

/* ---------------------------------------------------------------------------
 * Layout guard: DAL Technical Academy tabs (widget class "sutrac-eatabs").
 * The real Bold is about 15% wider than the old synthetic bold, which made these
 * fixed-width tab titles wrap one more line. This keeps the original line breaks
 * without touching any global size or weight. Mobile (accordion) is unaffected.
 * Desktop matches exactly at common widths; tablet matches the common tablet widths.
 * ------------------------------------------------------------------------- */
@media (min-width: 1025px) {
	body .sutrac-eatabs .elementor-tab-desktop-title,
	body .sutrac-eatabs .elementor-tab-desktop-title a { letter-spacing: -0.025em; }
	body .sutrac-eatabs .elementor-tab-desktop-title { padding-right: 10px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	body .sutrac-eatabs .elementor-tab-desktop-title,
	body .sutrac-eatabs .elementor-tab-desktop-title a { letter-spacing: -0.01em; }
	body .sutrac-eatabs .elementor-tab-desktop-title { padding-right: 12px; }
}
