/* 由 mkdocs-font-switch 在构建时生成，请勿手改 */

@font-face {
  font-family: "uuz";
  src: url("../fonts/uuz.woff2") format("woff2"), url("../fonts/uuz.otf") format("opentype");
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

html[data-site-font="uuz"] {
  --md-text-font: "uuz";
}

html[data-site-font="uuz"] body {
  --md-text-font-family: "uuz", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* 页眉里的切换按钮，沿用 .md-header__button 的位置与配色 */
.md-header__button.vsrg-font-switch {
  width: auto;
  min-width: 2.4rem;
  padding: 0 .5rem;
  border: 0;
  background: none;
  font-family: var(--md-text-font-family, sans-serif);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  color: inherit;
}

.md-header__button.vsrg-font-switch:hover {
  opacity: .7;
}

/* 字体文件正在下载时的反馈 */
.md-header__button.vsrg-font-switch[data-state="loading"] {
  cursor: progress;
  opacity: .4;
}
