/*! Noto Sans Thai webfont kit - self-hosted (SIL Open Font License, see fonts/notosansthai/OFL.txt) */

/* ==========================================================================
   Noto Sans Thai - ฟอนต์หลักของเว็บ (ฝังในเว็บ ไม่ดึงจากภายนอก)
   ไฟล์: assets/fonts/notosansthai/notosansthai-<น้ำหนัก>-webfont.{woff2,woff,ttf}

   โครงสร้าง
   ---------
   1) ประกาศ family 'Noto Sans Thai' ครบ 8 น้ำหนัก (200-900)
      ใช้แทน 'Prompt' เดิมทุกจุดทั้งใน style.css และ <style> ในหน้า HTML
      ฟอนต์นี้มีทั้งตัวไทย ละติน ตัวเลข และเครื่องหมายวรรคตอนครบ

   2) ประกาศทับ (alias) เฉพาะตัวไทยของ 'Averia Libre' ซึ่งเป็นฟอนต์หัวเรื่อง
      ตัวจริงของ Averia Libre ไม่มีตัวอักษรไทยเลย หัวเรื่องภาษาไทยจึงเคย
      ตกไปใช้ฟอนต์ระบบ - บล็อกนี้ดึงกลับมาใช้ Noto Sans Thai
      => ไฟล์นี้ต้องโหลด "หลัง" ลิงก์ Google Fonts เสมอ (ประกาศทีหลังชนะ)

   คำเตือน: ห้ามลบบรรทัด unicode-range ในหัวข้อ 2)
            มิฉะนั้นหัวเรื่องภาษาอังกฤษจะกลายเป็น Noto Sans Thai ไปด้วย
   ========================================================================== */


/* --------------------------------------------------------------------------
   1) ตระกูลหลัก: Noto Sans Thai (ครอบคลุมทุก unicode)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/notosansthai/notosansthai-extralight-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-extralight-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-extralight-webfont.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/notosansthai/notosansthai-light-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-light-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-light-webfont.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/notosansthai/notosansthai-regular-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-regular-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-regular-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/notosansthai/notosansthai-medium-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-medium-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-medium-webfont.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/notosansthai/notosansthai-semibold-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-semibold-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-semibold-webfont.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/notosansthai/notosansthai-bold-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-bold-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-bold-webfont.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/notosansthai/notosansthai-extrabold-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-extrabold-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-extrabold-webfont.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/notosansthai/notosansthai-black-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-black-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-black-webfont.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2) ทับตัวอักษรไทยของ 'Averia Libre' (ฟอนต์หัวเรื่อง - ตัวจริงไม่มีตัวไทย)
      ประกาศเฉพาะ style: normal ให้เบราว์เซอร์ทำ oblique เองเมื่อสั่งเอียง
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Averia Libre';
    src: url('../fonts/notosansthai/notosansthai-light-webfont.woff2') format('woff2'),
         url('../fonts/notosansthai/notosansthai-light-webfont.woff') format('woff'),
         url('../fonts/notosansthai/notosansthai-light-webfont.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Averia Libre';
    src: url('../fonts/notosansthailooped/notosansthailooped-400-thai.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Averia Libre';
    src: url('../fonts/notosansthailooped/notosansthailooped-600-thai.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Averia Libre';
    src: url('../fonts/notosansthailooped/notosansthailooped-700-thai.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* --------------------------------------------------------------------------
   3) กันตกหล่น: องค์ประกอบที่ใช้ฟอนต์ default ของ Bootstrap และ form control
   -------------------------------------------------------------------------- */
:root {
    --bs-font-sans-serif: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

input, textarea, select, button, ::placeholder {
    font-family: 'Noto Sans Thai', sans-serif;
}


/* --------------------------------------------------------------------------
   3) ตระกูลหลักปัจจุบัน: Noto Sans Thai Looped (ฟอนต์ไทยแบบมีหัว)
      โหลดจากไฟล์ในเครื่อง ไม่ดึงจากภายนอก
      ไฟล์: assets/fonts/notosansthailooped/notosansthailooped-<น้ำหนัก>-<ช่วง>.woff2
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-200-thai.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: 200;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-200-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-200-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;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-300-thai.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: 300;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-300-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-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;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-400-thai.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('../fonts/notosansthailooped/notosansthailooped-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-500-thai.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('../fonts/notosansthailooped/notosansthailooped-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-600-thai.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('../fonts/notosansthailooped/notosansthailooped-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-700-thai.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('../fonts/notosansthailooped/notosansthailooped-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-800-thai.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: 800;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-800-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-800-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;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-900-thai.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: 900;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-900-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Sans Thai Looped';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/notosansthailooped/notosansthailooped-900-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;
}
