/* 子集字体：只含项目实际用到的字形（3.8MB → 几十 KB），由
 * scripts/build-icons.mjs 生成 —— 新增图标后要重跑它，否则该图标缺字形。
 * 完整字体留在 Client/assets/fonts/ 作源，不进 public、不随站发布。
 * 四条变体轴（FILL/GRAD/opsz/wght）都保留，`filled` 的实心态照常工作。
 * URL 上的 ?v=<hash> 由脚本自动写入（子集变则 URL 变，避开陈旧缓存）。 */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url(/fonts/MaterialSymbolsOutlined.subset.woff2?v=e715f6e9) format('woff2');
}

@layer base {
  .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    /* 图标 ligature 实际挂在 rclt / rlig 下（不是 liga）；三个都显式打开，
     * 免得哪天有浏览器把这里列出的特性当成全集。 */
    font-feature-settings: 'rclt' 1, 'rlig' 1, 'liga' 1;
    opacity: 0;
  }

  .fonts-loaded .material-symbols-outlined {
    opacity: 1;
  }
}
