/* ===================================================================
   Self-hosted fonts — Prompt + Sarabun (subset latin+thai, woff2)
   weight 400 = ไฟล์ -regular.woff2
   🔴 Prompt ใช้ font-display:optional — ไม่สลับฟอนต์กลางคัน จึงไม่มี FOUT ให้เห็นเลย
      ถ้าฟอนต์มาไม่ทัน (~100ms) หน้านั้นจะใช้ฟอนต์ระบบทั้งหน้าแล้วจบ ไม่เด้งสลับ
      ครั้งต่อไปฟอนต์อยู่ใน cache แล้ว (public/.htaccess ตั้ง max-age 1 ปี) จึงได้ Prompt ทันที
      ⚠️ คู่กับ <link rel=preload> ใน Layout::head() เสมอ — ขาด preload ฟอนต์แทบไม่มีทางทันใน 100ms
   Sarabun ยังเป็น swap — หน้าใบเสร็จ/ใบแจ้งหนี้ต้องได้ฟอนต์จริงแม้ต้องรอ
   =================================================================== */

/* ---------- Prompt (หัวเรื่อง/ปุ่ม) ---------- */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/prompt-v12-latin_thai-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('../fonts/prompt-v12-latin_thai-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('../fonts/prompt-v12-latin_thai-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('../fonts/prompt-v12-latin_thai-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url('../fonts/prompt-v12-latin_thai-800.woff2') format('woff2');
}

/* ---------- Sarabun (ใบยืนยัน/ใบเสร็จ จอง online) — self-hosted ---------- */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sarabun-v17-latin_thai-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sarabun-v17-latin_thai-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sarabun-v17-latin_thai-700.woff2') format('woff2');
}
