/* Thai typography layer for the alhanwei Thai site.
   Latin glyphs keep the original Montserrat; Thai glyphs fall back to Sarabun / Noto Sans Thai. */
@import url("/wp-content/fonts/thai/fonts.css");

:root {
  --thai-font: "Sarabun", "Noto Sans Thai", "Leelawadee UI", "Tahoma", sans-serif;
}

body,
.entry-content,
.site,
.content-area,
.widget,
p, li, td, th, dd, dt, blockquote, figcaption,
input, textarea, select, button,
.kb-svg-icon, .kt-blocks-info-box-text, .kt-blocks-testimonial,
.kt-adv-heading, .kb-title, .wp-block-kadence-advancedheading {
  font-family: Montserrat, var(--thai-font);
}

/* Thai script needs a little more breathing room than Latin */
body { line-height: 1.65; }

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .kb-title, .kt-adv-heading,
.wp-block-kadence-advancedheading, .site-title {
  font-family: Montserrat, var(--thai-font);
  line-height: 1.35;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

p, li, td, th, .entry-content div, .kb-text-shape-wrap {
  word-break: normal;
  overflow-wrap: break-word;
}

/* Thai never uses all-caps letter-spacing tricks */
html[lang="th"] .kb-title,
html[lang="th"] .kt-adv-heading,
html[lang="th"] .wp-block-kadence-advancedheading {
  letter-spacing: 0 !important;
  text-transform: none;
}

/* navigation: Thai labels are longer than English, give them room */
html[lang="th"] .main-navigation .menu-item > a,
html[lang="th"] .mobile-navigation .menu-item > a {
  letter-spacing: 0;
  white-space: nowrap;
}

/* tables with long Thai spec text */
html[lang="th"] table td,
html[lang="th"] table th {
  line-height: 1.55;
}

/* buttons */
html[lang="th"] .kt-button,
html[lang="th"] .wp-block-button__link,
html[lang="th"] button,
html[lang="th"] input[type="submit"] {
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}


/* sidebar: Thai labels need a bit more room than English */
html[lang="th"] .widget-area { font-size: 15px; }
html[lang="th"] .widget-area .widget-title,
html[lang="th"] .widget-area h2 { font-size: 16px; line-height: 1.45; letter-spacing: 0; }
html[lang="th"] .widget-area li { line-height: 1.55; }
