/*
 * fonts.css — self-host ของ Google Fonts (Kanit + Saira Condensed)
 * ทำไม: มหาวิทยาลัยอาจบล็อกโดเมน Google Fonts (css api / gstatic) บนเครือข่ายภายใน
 *       + ลดการยิง request (พร้อม IP ผู้ใช้) ออกไป Google ทุกครั้งที่โหลดหน้า (PDPA)
 *       (หมายเหตุ: ห้ามพิมพ์ hostname เต็มในคอมเมนต์นี้ตรง ๆ — ชนกับ grep guard ที่เช็คว่าลบ CDN ออกหมดแล้ว)
 *
 * Generate มาจาก: Google Fonts CSS2 API — family=Kanit:wght@300;400;500;600;700 + family=Saira+Condensed:wght@500;600;700&display=swap
 *   ดึงด้วย User-Agent Chrome/120 (เพื่อให้ได้ woff2 ไม่ใช่ ttf)
 * วันที่ generate: 2026-08-08 (F001d)
 * เวอร์ชันฟอนต์ ณ วันที่ดึง: Kanit v17 · Saira Condensed v12
 *
 * ตัดออกจากต้นฉบับ Google: subset "vietnamese" และ "latin-ext" (เหลือเฉพาะ "thai" + "latin")
 *   เหตุผล: ระบบนี้ใช้แค่ไทย + อังกฤษ ตัดออกลดขนาดไฟล์รวม (29 @font-face เดิม → เหลือ 13)
 *   Saira Condensed ไม่มี subset "thai" จาก Google อยู่แล้ว (ใช้ latin เท่านั้นในทุก weight)
 *
 * อัปเดตฟอนต์ในอนาคต: ดึง CSS ใหม่จาก Google Fonts CSS2 API ด้วย curl + UA เบราว์เซอร์สมัยใหม่
 *   แล้วกรองเหลือเฉพาะ block subset "thai" กับ "latin" ก่อนแทนที่ url() ให้ชี้ /shared/fonts/*.woff2
 */

/* thai */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/shared/fonts/kanit-300-thai.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/shared/fonts/kanit-300-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;
}
/* thai */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/shared/fonts/kanit-400-thai.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/shared/fonts/kanit-400-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;
}
/* thai */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/shared/fonts/kanit-500-thai.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/shared/fonts/kanit-500-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;
}
/* thai */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/shared/fonts/kanit-600-thai.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/shared/fonts/kanit-600-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;
}
/* thai */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/shared/fonts/kanit-700-thai.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* latin */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/shared/fonts/kanit-700-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;
}
/* latin */
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/shared/fonts/saira-condensed-500-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;
}
/* latin */
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/shared/fonts/saira-condensed-600-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;
}
/* latin */
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/shared/fonts/saira-condensed-700-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;
}
