/* ============================================================
   Thmanyah typeface — global site font
   Source: https://font.thmanyah.com/
   Files: public/fonts/thmanyah/*.woff2 (+ .otf fallback)
   Loaded last in <head> so it wins over the theme stylesheets.
   ============================================================ */

@font-face {
    font-family: 'Thmanyah';
    src: url('/fonts/thmanyah/thmanyahsans-Light.woff2') format('woff2'),
         url('/fonts/thmanyah/thmanyahsans-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah';
    src: url('/fonts/thmanyah/thmanyahsans-Regular.woff2') format('woff2'),
         url('/fonts/thmanyah/thmanyahsans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah';
    src: url('/fonts/thmanyah/thmanyahsans-Medium.woff2') format('woff2'),
         url('/fonts/thmanyah/thmanyahsans-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah';
    src: url('/fonts/thmanyah/thmanyahsans-Bold.woff2') format('woff2'),
         url('/fonts/thmanyah/thmanyahsans-Bold.otf') format('opentype');
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah';
    src: url('/fonts/thmanyah/thmanyahsans-Black.woff2') format('woff2'),
         url('/fonts/thmanyah/thmanyahsans-Black.otf') format('opentype');
    font-weight: 800 900;
    font-style: normal;
    font-display: swap;
}

/* Display / serif cut — opt in with .font-display or font-family: var(--jd-font-display) */
@font-face {
    font-family: 'Thmanyah Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Bold.woff2') format('woff2');
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Display';
    src: url('/fonts/thmanyah/thmanyahserifdisplay-Black.woff2') format('woff2');
    font-weight: 800 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --jd-font: 'Thmanyah', 'Segoe UI', Tahoma, sans-serif;
    --jd-font-display: 'Thmanyah Display', 'Thmanyah', Georgia, serif;
}

/*
 * Vite injects the bundled theme CSS as <style> tags at the end of <head>,
 * i.e. AFTER this stylesheet, so plain declarations here lose the cascade.
 * Everything below is therefore !important, and the legacy font tokens are
 * re-declared on :root so components reading them pick up Thmanyah too.
 */
:root {
    --font: 'Thmanyah', 'Segoe UI', Tahoma, sans-serif !important;
    --bs-body-font-family: 'Thmanyah', 'Segoe UI', Tahoma, sans-serif !important;
    --bs-font-sans-serif: 'Thmanyah', 'Segoe UI', Tahoma, sans-serif !important;
}

/*
 * Kept as three separate rules on purpose: if a browser rejects the long
 * :not() chain, html/body still get the typeface instead of the whole
 * declaration block being dropped.
 */
html {
    font-family: var(--jd-font) !important;
}

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

/*
 * The :not() chain keeps the icon webfonts (Font Awesome, boxicons,
 * remixicon, line-awesome, material design icons, summernote) working —
 * forcing a family on those elements renders their ::before glyphs as tofu.
 */
body *:not(i):not([class*="fa-"]):not([class*="bx-"]):not([class*="bxs-"]):not([class*="ri-"]):not([class*="la-"]):not([class*="mdi"]):not([class*="note-icon"]):not(.material-icons) {
    font-family: var(--jd-font) !important;
}

/* Buttons / inputs do not inherit the body font by default */
button,
input,
select,
textarea,
optgroup {
    font-family: var(--jd-font) !important;
}

.font-display,
.jd-display,
.jd-display * {
    font-family: var(--jd-font-display) !important;
}
