/* Same Jyotirupa.ttf supplied by the owner; Latin text retains its UI font. */
@font-face {
    font-family: "Grantha Assamese";
    src: url("../fonts/jyotirupa.ttf?v=0c4e24dd") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0980-09FF;
}

:root {
    --backend-font-sans: "Grantha Assamese", "Inter", ui-sans-serif, system-ui, sans-serif;
    --backend-font-serif: "Grantha Assamese", ui-serif, Georgia, serif;
    --backend-font-mono: "Grantha Assamese", ui-monospace, monospace;
}

html body,
body.admin-login,
.font-sans,
button,
input,
select,
textarea,
.grantha-editor,
.grantha-editor .ge-button,
.grantha-editor .ge-toolbar select,
.grantha-editor .ge-color,
.grantha-editor .ge-surface .tiptap,
.typo-home-action,
.typo-home-pill,
.typo-access-badge {
    font-family: var(--backend-font-sans);
}

.font-serif { font-family: var(--backend-font-serif); }
.font-mono,
pre,
code,
kbd,
samp,
.grantha-editor .ge-source { font-family: var(--backend-font-mono); }

/* Imported HTML can retain an explicit old font. Render with the shared stack
   without rewriting the stored book or changing author formatting/size. */
.grantha-editor .ge-surface .tiptap [style*="font-family"],
.grantha-editor .ge-surface .tiptap font[face],
.prose [style*="font-family"],
.prose font[face] {
    font-family: var(--backend-font-sans) !important;
}
