/* ===================================================================
   Type system - the two cases that cannot be fixed at source.

   Everything else was changed in the stylesheet that declared it:
   layout.css (the base font + two DejaVu stacks), div-css.css (slider
   overlays, legacy tooltip), typography.css (code blocks) and
   EventsSchedule.css. The three families are tokens in redesign.css.

   These two have no Gamry declaration to edit, so they need a rule of
   their own. Registered LAST in PageController::init() - after the page
   stylesheet and after anything a template pulls in with themedCSS() -
   because both cases are decided by source order.
   =================================================================== */

/* 1. Form controls.
   Buttons, inputs, selects and textareas do NOT inherit font-family:
   browsers substitute their own UI default. That is where the stray Arial
   on the product page's "Click to enlarge" buttons came from - there was
   no Gamry rule to find, which is why grepping the stylesheets for Arial
   turned up nothing.

   It also means every form field on the site was rendering in a browser
   default rather than the site's font. This one rule fixes all of them. */
button, input, select, textarea, optgroup {
	font-family: inherit;
}

/* 2. The Dynamics 365 marketing forms.
   Microsoft's stylesheet is injected at runtime from their CDN and sets
   "Segoe UI" across the whole form - 19 elements on a typical application
   note. It cannot be edited, so it has to be overridden, and !important is
   required because the injected rules land after ours in the cascade.

   The wildcard is scoped to the form element so it cannot reach anything
   else on the page. friday-focus-form.css:313 already does exactly this
   for the Marketo form, so this follows an established pattern rather than
   inventing one.

   Not applied to font-size or spacing on purpose: only the family is
   wrong, and Microsoft's own metrics keep the form's layout intact. */
.marketingForm, .marketingForm *,
form[data-form-id], form[data-form-id] * {
	font-family: var(--gm-font-body) !important;
}
