/* ==========================================================================
   Noto Sans Thai (self-host) — บังคับ metrics ให้เท่า "Noto Sans Thai Looped" ตัวเดิม

   ทำไมต้องทำ: เลย์เอาต์ทั้งเว็บถูกจูนด้วย metrics ของ Noto Sans Thai Looped
   (ascent 1250 / descent 350 / upem 1000 → line-height: normal = 1.60em)
   ส่วน Noto Sans Thai ของจริงคือ ascent 1061 / descent 450 → normal = 1.511em
   พอสลับฟอนต์เฉยๆ baseline จะยกขึ้น ~0.145em (ราว 5px ที่ขนาด 34px) เลย์เอาต์เพี้ยน

   *-override ด้านล่างสั่งให้เบราว์เซอร์คิดระยะด้วยตัวเลขชุดเดิมของ Looped
   ผลคือกล่องข้อความสูงเท่าเดิม baseline อยู่ที่เดิม ไม่ต้องตามแก้ CSS ทีละจุด

   ตั้งชื่อเป็น 'Noto Sans Thai Fixed' แยกจาก 'Noto Sans Thai' ของ Google
   เพราะไฟล์อื่น (wnav/base.php, public_register.php ฯลฯ) ยังเรียก 'Noto Sans Thai' จาก Google อยู่
   ใน frontend_asset/css.php ให้ใช้ "Noto Sans Thai Fixed", "Noto Sans Thai Looped", sans-serif ทุกจุด

   ไฟล์ woff2 ดึงมาจาก Google Fonts (Noto Sans Thai v29, variable font wght 100–900)
   แยก subset ตาม unicode-range เดิม — ไฟล์เดียวต่อ subset ครอบคลุมทุกน้ำหนัก
   ถ้าจะอัปเดตฟอนต์: โหลด woff2 ชุดใหม่มาทับ แล้วคง *-override ไว้
   หมายเหตุ: Safari ยังไม่รองรับ *-override (จะแสดงแบบ metrics จริง)
   ========================================================================== */

/* thai */
@font-face {
  font-family: 'Noto Sans Thai Fixed';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('noto-sans-thai-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
  ascent-override: 125%;
  descent-override: 35%;
  line-gap-override: 0%;
}

/* latin-ext */
@font-face {
  font-family: 'Noto Sans Thai Fixed';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('noto-sans-thai-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  ascent-override: 125%;
  descent-override: 35%;
  line-gap-override: 0%;
}

/* latin */
@font-face {
  font-family: 'Noto Sans Thai Fixed';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('noto-sans-thai-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  ascent-override: 125%;
  descent-override: 35%;
  line-gap-override: 0%;
}
