/* Adobe Source Han Serif TC Medium (思源宋體 Medium), SIL OFL 1.1.
   Only Chinese/CJK glyphs use this face; Latin text keeps the existing UI fallback.
   The actual Medium file is used, with no synthesized bold/italic. */
@font-face {
  font-family: "Gary Source Han Serif TC Medium";
  src: url("/assets/fonts/SourceHanSerifTC-Medium-v2.003.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+2000-206F, U+2100-214F, U+2E80-2FFF, U+3000-33FF,
    U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE1F,
    U+FE30-FE4F, U+FF00-FFEF, U+20000-2FA1F, U+30000-323AF;
}

/* Shared by the original layout, all six themes, login and style management.
   Site branding and page titles retain their existing typography. */
body :where(*):not(:where(.brand, .brand *, .workflow-title, .workflow-title *,
  #projectTitle, #projectTitle *, .site-title, .site-title *)) {
  font-family: "Gary Source Han Serif TC Medium", Study, "Microsoft JhengHei", sans-serif !important;
  font-weight: 500 !important;
  font-synthesis: none !important;
}

/* These titles previously inherited the sans face from a parent; keep it explicit. */
#projectTitle,
html[data-theme="original"] .brand,
html[data-theme="original"] .brand * {
  font-family: Study, "Microsoft JhengHei", sans-serif;
}
.card > .site-title,
.card > .brand {
  font-family: "Microsoft JhengHei", sans-serif;
}
