/* ============================================================
   Suwannaphum Font Override — saorin theme
   Applies to both frontend (news feed) and backend (admincp)
   ============================================================ */

/* Load weight variants */
/* Already loaded via Google Fonts in _head.tpl:
   Suwannaphum: 100, 300, 400, 700, 900 */

/* Override the CSS variable used by body and most elements */
:root {
  --body-font-family: 'Suwannaphum', sans-serif;
}

/* Global override — applies to all text elements.
   Font Awesome icon selectors (.fa, .fas, .far, .fab, etc.) use
   higher-specificity class selectors with !important, so they
   correctly override this wildcard rule and icons stay intact. */
*:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: 'Suwannaphum', sans-serif !important;
}

/* Explicit overrides for elements that hardcode 'Gilroy' or 'Roboto' */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, div, li,
button, input, select, textarea, label,
td, th,
.empty_state,
.ele_page_title,
.dropdown-widget-header .title,
.payment-plan .text-xxlg,
.ele_sidebar_left .sidebar_innr > .btn span,
.notfound-wrapper .notfound h2,
.daytime_message h3,
.ele_wallet_balance h5,
.x-block-header,
.block-title,
.card, .card-header, .card-body,
.side-nav a, .side-nav .static,
.au-section-label,
.au-stat-num, .au-stat-label,
.stat-cell .text-xxlg, .stat-cell .text-lg,
.tooltip, .tooltip-inner,
.dropdown-item,
.form-control, .form-select,
.btn,
.badge,
.nav-link,
.modal-title, .modal-body, .modal-header,
.table, .table th, .table td {
  font-family: 'Suwannaphum', sans-serif !important;
}
