/* ------------------------------------------------------------------
   Kanit — ประกาศใหม่ให้ใช้งานได้จริง
   ------------------------------------------------------------------
   ของเดิมที่ assets/vendors/fonts/kanit/style.css เสียสองจุด:

   1. ใช้ format('ttf') ซึ่งไม่ใช่ค่าที่ CSS รู้จัก (ต้องเป็น 'truetype')
      เบราว์เซอร์จึงข้ามแหล่งไฟล์ทิ้ง เหลือแต่ local() ที่ไม่มีในเครื่องผู้ใช้
      ผลคือ document.fonts.check('16px Kanit') = false — ฟอนต์ไม่เคยโหลดเลย
      ทั้งระบบจึงแสดงด้วยฟอนต์ระบบสำรองมาตลอด

   2. แยกแต่ละน้ำหนักเป็นคนละ font-family ('Kanit Std Bold' ฯลฯ)
      โดยตั้ง font-weight: normal ทุกตัว → สั่ง font-weight:700 ก็ไม่มีทางเจอไฟล์ Bold
      หัวข้อภาษาไทยจึงถูกเบราว์เซอร์ปลอมตัวหนาให้ (faux bold) ซึ่งทำให้สระและ
      วรรณยุกต์บวมติดกัน อ่านยากกว่าตัวหนาจริง

   ไฟล์นี้ประกาศ family เดียวชื่อ Kanit พร้อมน้ำหนักจริง 300-700
   ไม่แก้ไฟล์ vendor เดิม (ยังโหลดอยู่ได้ ไม่ชนกัน)
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../vendors/fonts/kanit/kanit-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../vendors/fonts/kanit/kanit-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../vendors/fonts/kanit/kanit-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../vendors/fonts/kanit/kanit-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../vendors/fonts/kanit/kanit-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Kanit';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../vendors/fonts/kanit/kanit-Italic.ttf') format('truetype');
}

/* ------------------------------------------------------------------
   Noto Sans Thai Looped — ฟอนต์อ่านข้อมูล (เนื้อความ ตาราง ช่องกรอก)
   ------------------------------------------------------------------
   เพิ่ม 2 ต.ค. 2569 ตามที่เจ้าของงานเลือก: Kanit เป็นฟอนต์ไทยแบบไม่มีหัว
   เหมาะกับหัวข้อ แต่ในตารางข้อมูลแน่น ๆ ตัวที่หน้าตาคล้ายกัน (ด/ค บ/ป ผ/พ)
   แยกยาก ฟอนต์แบบมีหัวอ่านชื่อคน ชื่อคณะ และรหัสได้ชัดกว่า
   Kanit ยังใช้ที่ชื่อหน้า หัวการ์ด เมนู และปุ่ม (ดู cem-admin.css)

   ไฟล์ woff2 แยกชุดอักขระไทย/ละติน — เบราว์เซอร์โหลดเฉพาะชุดที่หน้าใช้จริง
   ที่มา: @fontsource/noto-sans-thai-looped 5.3.0 · สัญญาอนุญาต OFL (vendors/fonts/noto-sans-thai-looped/OFL.txt)
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../vendors/fonts/noto-sans-thai-looped/noto-sans-thai-looped-thai-400-normal.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../vendors/fonts/noto-sans-thai-looped/noto-sans-thai-looped-latin-400-normal.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;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../vendors/fonts/noto-sans-thai-looped/noto-sans-thai-looped-thai-500-normal.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../vendors/fonts/noto-sans-thai-looped/noto-sans-thai-looped-latin-500-normal.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;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../vendors/fonts/noto-sans-thai-looped/noto-sans-thai-looped-thai-600-normal.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../vendors/fonts/noto-sans-thai-looped/noto-sans-thai-looped-latin-600-normal.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;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../vendors/fonts/noto-sans-thai-looped/noto-sans-thai-looped-thai-700-normal.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../vendors/fonts/noto-sans-thai-looped/noto-sans-thai-looped-latin-700-normal.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;
}
