/*
 * Open Sans 400 / 600 / 700, self-hosted from the official Google Fonts source.
 * Font files and the SIL OFL 1.1 license: ./fonts/open-sans/.
 * Keep this stylesheet last. It intentionally leaves component font sizes alone.
 */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/open-sans/open-sans-normal-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/open-sans/open-sans-normal-latin.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: "Open Sans";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/open-sans/open-sans-italic-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/open-sans/open-sans-italic-latin.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;
}

:root {
    --mcppk-font-sans: "Open Sans", Arial, "Helvetica Neue", sans-serif;
    --mcppk-font-regular: 400;
    --mcppk-font-medium: 600;
    --mcppk-font-bold: 700;
    --mcppk-line-body: 1.55;
    --mcppk-line-heading: 1.2;
    --text-font: var(--mcppk-font-sans);
    --body-font-family: var(--mcppk-font-sans);
    --heading-font-family: var(--mcppk-font-sans);
}

html,
body {
    font-family: var(--mcppk-font-sans) !important;
    font-weight: var(--mcppk-font-regular);
    line-height: var(--mcppk-line-body);
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Explicit component roots replace old Ubuntu declarations without touching icons. */
body :is(
    .entry-content,
    .page-grid,
    .profession-header,
    .mcppk-site-header,
    .mcppk-site-footer,
    .mcppk-site-menu,
    [data-mcppk-site-dialog],
    .mcppk-city-select,
    .mcppk-home-refresh,
    .mcppk-home-enrollment,
    .mcppk-course-page,
    .mcppk-catalog,
    .mcppk-native-lead-form,
    .mcppk-lead-dialog,
    .mcppk-blog,
    .mcppk-accr,
    .mcppk-clinical
) {
    font-family: var(--mcppk-font-sans) !important;
}

/* Text elements only: FontAwesome, Swiper and other icon glyph faces keep their fonts. */
body :is(
    h1, h2, h3, h4, h5, h6,
    p, a, li, dt, dd, th, td,
    button, input, select, textarea,
    label, legend, summary, figcaption, blockquote
):not(:where(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .dashicons, .material-icons, .glyphicon, [class^="icon-"], [class*=" icon-"])) {
    font-family: var(--mcppk-font-sans) !important;
}

body :is(h1, h2, h3, h4, h5, h6) {
    font-weight: var(--mcppk-font-bold) !important;
    line-height: var(--mcppk-line-heading) !important;
    letter-spacing: normal !important;
}

/* Keep running text open and comfortable without altering page geometry or sizes. */
body :is(.entry-content, .mcppk-blog, .mcppk-accr, .mcppk-clinical)
    :is(p, li, dd, dt, blockquote) {
    line-height: var(--mcppk-line-body);
    letter-spacing: normal;
}

body :is(button, input, select, textarea) {
    letter-spacing: normal !important;
}
body :is(input, select, textarea) {
    font-weight: var(--mcppk-font-regular);
}
body button,
body :is(
    .button,
    .mcppk-site-action,
    .mcppk-primary-nav a,
    .mcppk-site-menu__primary,
    .mcppk-native-lead-form__submit,
    .mcppk-home-refresh__button,
    .mcppk-course-button,
    .mcppk-accr-button,
    .mcppk-clinical-search button,
    .mcppk-clinical-pdf-button
) {
    font-weight: var(--mcppk-font-medium) !important;
    letter-spacing: normal !important;
}

body :is(
    .mcppk-native-lead-form__field > span,
    .mcppk-clinical label,
    .mcppk-blog-search label,
    .mcppk-accr legend,
    .mcppk-accr summary,
    .mcppk-accr-eyebrow,
    .mcppk-course-fact__label,
    .mcppk-course-eyebrow,
    .mcppk-home-refresh__eyebrow,
    .mcppk-home-refresh__direction-kind
) {
    font-weight: var(--mcppk-font-medium) !important;
    letter-spacing: normal !important;
}

body :is(strong, b) {
    font-weight: var(--mcppk-font-bold);
}
body .mcppk-accr-facts strong {
    font-weight: var(--mcppk-font-bold);
}

/* Catalogue measurements belong to the catalogue stylesheet; only weights change here. */
body .mcppk-catalog :is(.mcppk-program-row__title, .mcppk-direction-card__title) {
    font-weight: var(--mcppk-font-bold) !important;
    letter-spacing: normal !important;
}
body .mcppk-catalog :is(
    .mcppk-program-row__meta,
    .mcppk-program-row__direction,
    .mcppk-program-row__hours,
    .mcppk-catalog__result
) {
    font-weight: var(--mcppk-font-regular) !important;
    letter-spacing: normal !important;
}

/* Preserve real italics in articles and references; code retains the site's monospace. */
body :is(.mcppk-blog, .mcppk-accr, .mcppk-clinical) :is(em, cite) {
    font-family: var(--mcppk-font-sans);
    font-style: italic;
}
