/**
 * PIVOT Typography Core
 * Version: 1.0.0
 *
 * Authoritative PIVOT font system:
 * - Headings/display: Poppins
 * - Body/UI: Inter
 *
 * This is a safety layer. Source-level legacy declarations can be
 * removed later after visual verification.
 */

:root {
    --pivot-font-body:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    --pivot-font-heading:
        "Poppins",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

/* --------------------------------------------------------------------------
   BODY / NORMAL TEXT
   -------------------------------------------------------------------------- */

html body {
    font-family: var(--pivot-font-body) !important;
}

/*
 * Apply Inter to normal rendered frontend text.
 *
 * Explicit exclusions protect icon glyph fonts and genuine code/technical
 * typography from being corrupted.
 */
html body :where(*):not(
    :where(
        i,
        svg,
        svg *,
        code,
        pre,
        kbd,
        samp,
        tt,

        .fa,
        .fas,
        .far,
        .fal,
        .fab,
        .fad,
        .fat,
        .fa-solid,
        .fa-regular,
        .fa-brands,

        [class^="fa-"],
        [class*=" fa-"],

        .dashicons,
        .dashicons-before,
        [class^="dashicons-"],
        [class*=" dashicons-"],

        [class^="tutor-icon"],
        [class*=" tutor-icon"],

        [class^="icon-"],
        [class*=" icon-"],

        .pivot-mono,
        .pivot-code,
        [data-pivot-font="mono"]
    )
) {
    font-family: var(--pivot-font-body) !important;
}

/* --------------------------------------------------------------------------
   HEADINGS / DISPLAY TYPOGRAPHY
   -------------------------------------------------------------------------- */

html body :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    [role="heading"],
    .elementor-heading-title,
    .entry-title,
    .page-title,
    .product_title,
    .woocommerce h1,
    .woocommerce h2,
    .woocommerce h3,
    .tutor-course-details-title
) {
    font-family: var(--pivot-font-heading) !important;
}

/* --------------------------------------------------------------------------
   FORMS / BUTTONS
   -------------------------------------------------------------------------- */

html body :where(
    button,
    input,
    select,
    textarea,
    option,
    label,
    .button,
    .btn,
    .elementor-button,
    .elementor-button-text
) {
    font-family: var(--pivot-font-body) !important;
}

/* --------------------------------------------------------------------------
   COMMON TEXT CONTENT
   -------------------------------------------------------------------------- */

html body :where(
    p,
    a,
    li,
    dt,
    dd,
    td,
    th,
    caption,
    blockquote,
    figcaption,
    summary,
    small,
    strong,
    b,
    em
) {
    font-family: var(--pivot-font-body) !important;
}
