/* network-base.css V1.0 (4 ธ.ค. 2569)
   มาตรฐานฟอนต์และหน้าตากลางของเว็บเครือข่ายทนายความ
   ต้นแบบ: ระบบเครือข่ายทนายความ.com — ฟอนต์ Sarabun ขนาดตัวอักษรเท่ากันทุกเว็บ
   ไม่กำหนดสี: เว็บทนายชาย ทนายหญิง และเว็บกลางจังหวัด ใช้สีของตัวเองต่อไป
   แก้ไฟล์นี้ไฟล์เดียว ทุกเว็บที่เรียกใช้จะเปลี่ยนตาม */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700;800&display=swap');

:root{
  --nw-font:'Sarabun','TH Sarabun New',sans-serif;
  --nw-fs-body:17px;
  --nw-fs-h1:34px;
  --nw-fs-h2:27px;
  --nw-fs-h3:22px;
  --nw-fs-h4:19px;
  --nw-lh:1.55;
  --nw-radius:9px;
}

/* 1. fonts */
html body,
html body *:not(i):not(svg):not(svg *):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.material-icons):not(.material-symbols-outlined){
  font-family:var(--nw-font) !important;
}

/* 2. sizes */
html body{font-size:var(--nw-fs-body) !important;line-height:var(--nw-lh) !important;}
html body p,
html body li,
html body td,
html body th,
html body label,
html body input,
html body select,
html body textarea{font-size:var(--nw-fs-body) !important;line-height:var(--nw-lh) !important;}
html body h1{font-size:var(--nw-fs-h1) !important;line-height:1.3 !important;}
html body h2{font-size:var(--nw-fs-h2) !important;line-height:1.35 !important;}
html body h3{font-size:var(--nw-fs-h3) !important;line-height:1.4 !important;}
html body h4{font-size:var(--nw-fs-h4) !important;line-height:1.4 !important;}
html body h1,html body h2,html body h3,html body h4{font-weight:700 !important;}

/* 3. buttons (no colour/shape change; FAB untouched) */
html body .btn:not([class*="fab"] *):not([id*="fab"] *),
html body button:not([class*="fab"]):not([class*="fab"] *):not([id*="fab"] *),
html body input[type="submit"],
html body input[type="button"]{
  font-size:var(--nw-fs-body) !important;
  font-weight:700 !important;
}
html body input:not([type="checkbox"]):not([type="radio"]),
html body select,
html body textarea{border-radius:var(--nw-radius) !important;}

/* 4. mobile */
@media (max-width:640px){
  :root{--nw-fs-body:16px;--nw-fs-h1:28px;--nw-fs-h2:23px;--nw-fs-h3:20px;--nw-fs-h4:18px;}
}
