/**
 * AST Font — GraphikThai (local, แทน Maledpan/Google Fonts เดิม)
 * ใช้: <link rel="stylesheet" href="../assets/css/ast-font.css">
 * น้ำหนักจริงในไฟล์: 400 Regular / 500 Medium / 600 SemiBold
 * mapping: 100-400 → Regular, 500 → Medium, 600-900 → SemiBold (ไม่มี Bold แท้ — 700 ใช้ SemiBold ไม่สังเคราะห์)
 */
@font-face{
  font-family:'GraphikThai';
  src:url('../font/GraphikThai.woff2') format('woff2'),url('../font/GraphikThai.ttf') format('truetype');
  font-weight:100 400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'GraphikThai';
  src:url('../font/GraphikThai-500.woff2') format('woff2'),url('../font/GraphikThai-500.ttf') format('truetype');
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'GraphikThai';
  src:url('../font/GraphikThai-600.woff2') format('woff2'),url('../font/GraphikThai-600.ttf') format('truetype');
  font-weight:600 900;
  font-style:normal;
  font-display:swap;
}

/* ============================================================
   Typography layer — ระบบตัวอักษรกลางทั้ง portal (แนว SeedWebs)
   หลัก: heading ใหญ่แต่เส้นกลาง (500/600) + tracking ติดลบนิด,
   body ไทย line-height สูง, ตารางแน่นกว่า
   หน้าไหนอยากได้ค่าอื่น override ใน <style> ของหน้าได้ (โหลดทีหลังชนะ)
   ============================================================ */
:root{
  /* type scale */
  --fs-display:32px; --fs-h1:28px; --fs-h2:21px; --fs-h3:17px;
  --fs-body:15px;    --fs-sm:13px; --fs-meta:12px;
  /* line-height: body ไทย 1.7, heading 1.3, ตาราง 1.5 */
  --lh-body:1.7; --lh-heading:1.3; --lh-table:1.5;
  /* tracking: หัวข้อใหญ่ติดลบนิดแบบ SeedWebs (-2.5% ของเขา, เราใช้ -1.5% กันสระไทยชน) */
  --track-tight:-0.015em;
  /* tracking กว้างสำหรับหัวข้อ EN ตัวพิมพ์ใหญ่เท่านั้น — ห้ามใช้กับข้อความไทย */
  --track-caps:.07em;
}
html{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
body{ line-height:var(--lh-body); }
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{ line-height:var(--lh-heading); font-weight:600; }
h1,h2,.h1,.h2{ letter-spacing:var(--track-tight); }
p,li,dd{ line-height:var(--lh-body); }
table td,table th{ line-height:var(--lh-table); }

/* Bootstrap utility → น้ำหนักจริงของ GraphikThai */
.fw-medium{ font-weight:500!important; }
.fw-semibold{ font-weight:600!important; }
.fw-bold,b,strong{ font-weight:600; }

/* utilities */
.track-caps{ letter-spacing:var(--track-caps); text-transform:uppercase; }
.prose{ max-width:70ch; }
