/**
 * Chula AI theme — local brand fonts.
 */

@font-face {
  font-family: "Chula Charas New";
  src: url("../fonts/ChulaCharasNewReg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chula Charas New";
  src: url("../fonts/ChulaCharasNewIta.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Chula Charas New";
  src: url("../fonts/ChulaCharasNewBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chula Charas New";
  src: url("../fonts/ChulaCharasNewBoldIta.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Chula Longkorn";
  src: url("../fonts/CHULALONGKORNReg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chula Longkorn";
  src: url("../fonts/CHULALONGKORNBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/**
 * Theme pages: Chula brand fonts only (Charas body, Longkorn headings).
 * Overrides front-end font plugins on public theme markup when possible.
 */
body[class*="theme-chula-ai"] {
  font-family: "Chula Charas New", "Chula Longkorn", sans-serif !important;
}

body[class*="theme-chula-ai"] .chula-v2-header,
body[class*="theme-chula-ai"] .chula-v2-site-footer,
body[class*="theme-chula-ai"] main,
body[class*="theme-chula-ai"] .chula-v2-container {
  font-family: inherit;
}

body[class*="theme-chula-ai"] h1,
body[class*="theme-chula-ai"] h2,
body[class*="theme-chula-ai"] h3,
body[class*="theme-chula-ai"] h4,
body[class*="theme-chula-ai"] h5,
body[class*="theme-chula-ai"] h6 {
  font-family: "Chula Longkorn", "Chula Charas New", sans-serif !important;
}
