/* =====================================================================
   jdtheme26 — Brand fonts (operator 2026-09-26)
   • English : Baloo 2 — the previous site version's Latin font (SIL OFL, self-hosted)
   • Chinese : 思源黑體 = Noto Sans TC (SIL OFL), loaded from Google Fonts in functions.php
               (weights 400 / 500 / 700; Google slices it by unicode-range so a page only
               downloads the characters it uses — no local subsetting to maintain).
   Latin glyphs use Baloo 2; Chinese glyphs fall through to Noto Sans TC.
   Icon fonts (FontAwesome / woodmart-font) are NOT affected.
   No !important: html:root (0,1,1) outranks WoodMart's inline :root (0,1,0).
   ===================================================================== */

@font-face {
  font-family: 'Baloo 2';
  src: url('../fonts/baloo2-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('../fonts/baloo2-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

html:root {
  /* BODY TEXT (operator 2026-09-29: 「所有"內文"都改中文字體 … 用蘋方-繁，但是第二個放思源黑體（Noto Sans CJK TC）給非mac備用」):
     Latin letters and digits stay Baloo 2 (it has no Chinese glyphs, so Chinese falls through to the next name);
     Chinese = PingFang TC on Apple devices → Noto Sans CJK TC where that font is installed (Android, Linux) → "Noto Sans TC" = the same
     思源黑體 as a web font (Google Fonts, already loaded) for Windows and every device without the two above → 微軟正黑體 as the last resort.
     Titles, menus and header elements keep --jd-font-display. */
  --jd-font-body:    "Baloo 2", "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --jd-font-display: "Baloo 2", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;

  /* every WoodMart font variable (the Sweets demo sets them all to Jost) */
  --wd-text-font:           var(--jd-font-body);
  --wd-alternative-font:    var(--jd-font-body);
  --wd-title-font:          var(--jd-font-display);
  --wd-entities-title-font: var(--jd-font-display);
  --wd-widget-title-font:   var(--jd-font-display);
  --wd-header-el-font:      var(--jd-font-display);   /* header elements incl. the main menu */
}
