/**
 * Brand typography.
 *
 * Headings : Bookmania
 * Text     : Poppins (English) -> MiSans Khmer (Khmer) -> Noto Sans JP (Japanese)
 *
 * A browser takes each glyph from the first family that contains it, so one
 * stack covers all three scripts: Latin from Poppins, Khmer from MiSans Khmer,
 * Japanese from Noto Sans JP. Families missing from the page are simply
 * skipped, which is why Bookmania/MiSans can be added later without a change
 * here (see inc/fonts.php for the @font-face rules).
 */

:root {
  --rh-font-body: "Poppins", "MiSans Khmer", "Noto Sans JP",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --rh-font-heading: "Bookmania", "MiSans Khmer", "Noto Sans JP",
    Georgia, "Times New Roman", serif;
}

/* -------------------------------------------------------------------------
 * Text
 * ---------------------------------------------------------------------- */
body,
button,
input,
select,
textarea,
optgroup {
  font-family: var(--rh-font-body);
}

/* -------------------------------------------------------------------------
 * Headings
 * ---------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  /* !important so no theme rule, plugin stylesheet or inline WPBakery style
     can put a different family on a heading. Icon fonts (Font Awesome,
     dashicons) sit on child elements and are unaffected. */
  font-family: var(--rh-font-heading) !important;
  /* Bookmania Semibold. Set explicitly rather than relying on the browser's
     default heading weight. Lighter cuts: 400 (Regular), 300 (Light). */
  font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Legacy parent selectors
 *
 * main.min.css hard-codes Roboto/Rubik on these five rules. They are kept
 * here so the parent's Google Fonts request can stay switched off.
 * ---------------------------------------------------------------------- */
.rh_prop_card_meta_theme_stylish .rh_prop_card__meta .rh_meta_titles,
.rh_agent_form .rh_prop_stylish_card__excerpt .rh_agent_form__row,
.rh_prop_stylish_card__excerpt .rh_agent_form .rh_agent_form__row,
.rh_prop_stylish_card__excerpt p,
.rh_theme_card__priceLabel_sty span.rh_theme_card__status_sty,
.rh_theme_card__priceLabel_sty .rh_theme_card__price_sty,
.rh_my-property .rh_my-property__btns .stripe-button-el span {
  font-family: var(--rh-font-body);
}
