/*
 * Classic page font weights.
 *
 * The original Adobe Fonts kit (cvz6yzx) only had omnes-pro 400 and
 * utopia-std 400/600, so the browser rendered:
 *   - Omnes 300 and 500 (Bootstrap headings, .lead, .display-*) as 400
 *   - Utopia bold (700) with the 600 face
 *   - Omnes bold with a browser-synthesized bold of the 400 face
 * The current kit (tng7nnt) has the real faces, which would change the
 * classic pages. These rules pin the classic theme to the faces it has
 * always rendered.
 *
 * Block content (.block-page__content) is excluded so block pages keep the
 * design's real Omnes Bold. Front end only; not loaded in the editor.
 * Selectors come from the compiled CSS in dist/app.bundle.js.
 */

/* Requested 300/500 -> rendered 400 */
body :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):not(.block-page__content *),
body :is(.full-width-content-headline-row, .full-width-headline-row, .full-width-content-row, .columns-content-headline-row) h2:not(.block-page__content *),
body :is(.lead, .display-1, .display-2, .display-3, .display-4, .font-weight-light):not(.block-page__content *) {
  font-weight: 500;
}

/* Requested bold -> Utopia's 600 face (exact); closest real face for Omnes */
body :is(b, strong, dt, th, .badge, .alert-link, .close, .font-weight-bold, .content-builder-wrapper a):not(.block-page__content *),
.page-template-page-homepage .section-3 .testimonial-name-location,
.page-template-page-homepage .section-3 .testimonial-name-location .name {
  font-weight: 600;
}

/* Gravity Forms (legacy gravity-theme) */
body .gform_wrapper :is(.gfield_label, .gfield_label *, .gfield_required, .validation_error, .gf_step_label):not(.block-page__content *) {
  font-weight: 600;
}
body .gform_wrapper :is(.gform_validation_errors > h2, .gf_step_number):not(.block-page__content *) {
  font-weight: 400;
}
