/* Fonts of the panel, one family per script, all served from here (wwwroot/fonts): no outside font service.
   Arabic: Tajawal (css/admin.css). Persian and Urdu: Vazirmatn. Latin and Cyrillic languages: Inter.
   Hindi: Noto Sans Devanagari. Chinese and Japanese: the fonts of the device.
   The page's language (html lang, from the cookie "hm.lang") picks the order: see --hm-font below. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Inter-400-cyrillic-9f73b2f4.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* cyrillic */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Inter-400-cyrillic-ext-705d6250.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic-ext */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Inter-400-latin-f11d729b.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Inter-400-latin-ext-cf3eb50f.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin-ext */
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/NotoSansDevanagari-400-devanagari-a454d576.woff2') format('woff2');
    unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; } /* devanagari */
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Vazirmatn-400-arabic-55397bc2.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; } /* arabic */
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Vazirmatn-400-latin-ee0a5328.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin */
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Vazirmatn-400-latin-ext-a2120b64.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin-ext */

/* ── which font leads, by the language of the page ─────────────────────────────────────────────────────────
   Every list ends with the others, so a guest's name in another script is still drawn with a proper font. */
html { --hm-font: 'Tajawal', 'Vazirmatn', 'Inter', 'Noto Sans Devanagari', 'Segoe UI', system-ui, Arial, sans-serif; }
html[lang="fa"], html[lang="ur"] { --hm-font: 'Vazirmatn', 'Tajawal', 'Noto Sans Devanagari', 'Segoe UI', Tahoma, system-ui, sans-serif; }
html[lang="en"], html[lang="de"], html[lang="es"], html[lang="fr"], html[lang="it"], html[lang="pt"], html[lang="tr"], html[lang="ru"] {
    --hm-font: 'Inter', 'Tajawal', 'Vazirmatn', 'Noto Sans Devanagari', 'Segoe UI', system-ui, Arial, sans-serif; }
html[lang="hi"] { --hm-font: 'Inter', 'Noto Sans Devanagari', 'Nirmala UI', 'Tajawal', 'Segoe UI', system-ui, sans-serif; }
html[lang="ja"] { --hm-font: 'Inter', 'Yu Gothic UI', 'Meiryo', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Noto Sans CJK JP', 'Tajawal', system-ui, sans-serif; }
html[lang="zh"] { --hm-font: 'Inter', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', 'Tajawal', system-ui, sans-serif; }

html, body { font-family: var(--hm-font); }
/* MudBlazor writes its own font lists on :root; these come after and are more exact, so every Mud text follows */
html[lang] {
    --mud-typography-default-family: var(--hm-font); --mud-typography-h1-family: var(--hm-font); --mud-typography-h2-family: var(--hm-font);
    --mud-typography-h3-family: var(--hm-font); --mud-typography-h4-family: var(--hm-font); --mud-typography-h5-family: var(--hm-font);
    --mud-typography-h6-family: var(--hm-font); --mud-typography-subtitle1-family: var(--hm-font); --mud-typography-subtitle2-family: var(--hm-font);
    --mud-typography-body1-family: var(--hm-font); --mud-typography-body2-family: var(--hm-font); --mud-typography-input-family: var(--hm-font);
    --mud-typography-button-family: var(--hm-font); --mud-typography-caption-family: var(--hm-font); --mud-typography-overline-family: var(--hm-font);
}
/* form controls do not take the page's font by themselves */
button, input, select, textarea, optgroup { font-family: inherit; }
/* scripts that sit taller or wider than Arabic in the same box */
html[lang="hi"] body { line-height: 1.6; }
html[lang="ja"] body, html[lang="zh"] body { letter-spacing: 0; }
