/* =====================================================
   fonts.css  —  全局字体统一文件（核心强制层）
   =====================================================
   规则：所有界面、所有模式（中文/维语）都只使用 ALKATIP Yazma Tom。
   - @font-face 定义 ALKATIP Yazma Tom + ALKATIP Yazma（双字体文件）
   - 全局通配符强制 font-family: "ALKATIP Yazma Tom" !important
   - 禁止任何其他 CSS 覆盖，所有硬编码字体在其他 CSS 中已清理
   ===================================================== */

/* 1. 字体文件声明（先后顺序即优先级，Tom 优先） */
@font-face {
  font-family: "ALKATIP Yazma Tom";
  src: url("../fonts/ALKATIP Yazma Tom.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ALKATIP Yazma";
  src: url("../fonts/ALKATIP Yazma.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2. 全界面全局强制 —— 任何元素、任何伪元素、任何状态都只使用 ALKATIP */
*,
*::before,
*::after,
html,
body,
div,
span,
p,
a,
label,
li,
ul,
ol,
h1, h2, h3, h4, h5, h6,
table, thead, tbody, tr, td, th,
input, select, textarea, button,
form, fieldset, legend,
pre, code, kbd, samp,
img, svg, canvas,
section, article, header, footer, nav,
strong, b, i, em, small, sub, sup {
  font-family: "ALKATIP Yazma Tom", "ALKATIP Yazma", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3. 针对维文字符启用连字与字形替换（中文无影响） */
*,
html,
body,
body * {
  font-variant-ligatures: contextual;
  font-feature-settings: 'kern','liga','calt';
}
