/* ═══ DC Dental — Custom Fonts ═══ */

/* DB Helvethaica X — Thai body font */
@font-face {
  font-family: 'DB Helvethaica X';
  src: url('fonts/DBHelvethaicaX-Regular.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DB Helvethaica X';
  src: url('fonts/DBHelvethaicaX-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DB Helvethaica X';
  src: url('fonts/DBHelvethaicaX-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DB Helvethaica X';
  src: url('fonts/DBHelvethaicaX-Medium.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DB Helvethaica X';
  src: url('fonts/DBHelvethaicaX-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Avenir — English / headings font */
@font-face {
  font-family: 'Avenir';
  src: url('fonts/Avenir.ttc') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('fonts/Avenir.ttc') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('fonts/Avenir.ttc') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ═══ Force DB Helvethaica X across the entire site ═══ */
/* Overrides Playfair Display / Avenir everywhere, including inline font-family styles.
   Only the typeface changes — weight, size and hierarchy stay the same. */
*, *::before, *::after {
  font-family: 'DB Helvethaica X', 'Sarabun', sans-serif !important;
}

/* Thai: ให้เบราว์เซอร์ตัดบรรทัดตามคำ (dictionary) ห้ามตัดกลางคำ */
html{-webkit-line-break:auto}
body,body *{word-break:normal;overflow-wrap:normal;line-break:auto;hyphens:none;-webkit-hyphens:none}
/* กันข้อความยาวเกินกรอบล้น: อนุญาตให้ตัดเฉพาะ URL/คำอังกฤษยาวผิดปกติ */
p,li,dd,td,figcaption{overflow-wrap:break-word;word-break:normal}
