:root {
  --display: "Google Sans Display", "Google Sans", Arial, sans-serif;
  --text: "Google Sans Text", Roboto, Arial, sans-serif;
  --nav: "Google Sans Text", Roboto, Arial, sans-serif;
  --font: "Google Sans Text", Roboto, Arial, sans-serif;
}

/* Thai UI: Prompt (Google Fonts). English keeps Google Sans above. */
html[lang="th"],
html[data-lang-folder="th"] {
  --display: "Prompt", "Google Sans Display", Arial, sans-serif;
  --text: "Prompt", "Google Sans Text", Roboto, Arial, sans-serif;
  --nav: "Prompt", "Google Sans Text", Roboto, Arial, sans-serif;
  --font: "Prompt", "Google Sans Text", Roboto, Arial, sans-serif;
  --fw-body: 300;
  --fw-title: 400;
  --fw-num: 600;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--text);
}

/*
 * Prompt only: body Light 300, titles Regular 400.
 * Scoped to Thai html so English Google Sans weights stay unchanged.
 * !important beats later page CSS font-weight declarations.
 */
html[lang="th"] body,
html[data-lang-folder="th"] body {
  font-weight: var(--fw-body);
}

html[lang="th"] :is(
  p, li, td, th, label, a, button, input, select, textarea,
  span, div, figcaption, dd, dt, small, strong, b, em, legend, option, blockquote
):not(:is(h1, h2, h3, h4, h5, h6) *),
html[data-lang-folder="th"] :is(
  p, li, td, th, label, a, button, input, select, textarea,
  span, div, figcaption, dd, dt, small, strong, b, em, legend, option, blockquote
):not(:is(h1, h2, h3, h4, h5, h6) *) {
  font-weight: var(--fw-body) !important;
}

html[lang="th"] :is(h1, h2, h3, h4, h5, h6),
html[data-lang-folder="th"] :is(h1, h2, h3, h4, h5, h6) {
  font-weight: var(--fw-title) !important;
}

/* Main menu: Regular 400 */
html[lang="th"] .nav :is(a, button, strong, .nav-panel-title, .nav-back),
html[data-lang-folder="th"] .nav :is(a, button, strong, .nav-panel-title, .nav-back) {
  font-weight: 400 !important;
}

/* GULF stock index bar: Regular 400 */
html[lang="th"] .header-stock,
html[lang="th"] .header-stock :is(span, .header-stock-symbol, .header-stock-price, .header-stock-change),
html[data-lang-folder="th"] .header-stock,
html[data-lang-folder="th"] .header-stock :is(span, .header-stock-symbol, .header-stock-price, .header-stock-change) {
  font-weight: 400 !important;
}

/* Buttons / pills (incl. contact topic chips): Regular 400 */
html[lang="th"] :is(button, .pill, a.pill, .ct-topics .ct-choice),
html[data-lang-folder="th"] :is(button, .pill, a.pill, .ct-topics .ct-choice) {
  font-weight: 400 !important;
}

/* Stat / capacity numbers: SemiBold 600 */
html[lang="th"] :is(
  [data-count],
  .ren-stat-value,
  .gfp-stat-value,
  .gbs-stat-value,
  .gbs-map-value,
  .bo-biz-value,
  .co-metrics strong
),
html[data-lang-folder="th"] :is(
  [data-count],
  .ren-stat-value,
  .gfp-stat-value,
  .gbs-stat-value,
  .gbs-map-value,
  .bo-biz-value,
  .co-metrics strong
) {
  font-weight: var(--fw-num) !important;
}

/* Home stock card: price Medium 500, result row Regular 400 */
html[lang="th"] .stock-price,
html[data-lang-folder="th"] .stock-price {
  font-weight: 500 !important;
}

/* Board / management card names: Medium 500 (span is otherwise Light 300) */
html[lang="th"] .bod-name,
html[data-lang-folder="th"] .bod-name {
  font-weight: 500 !important;
}

/* Service reports table: header + company column Medium 500 */
html[lang="th"] .sr-table :is(thead th, tbody th),
html[data-lang-folder="th"] .sr-table :is(thead th, tbody th) {
  font-weight: 500 !important;
}

/* Board profile: primary position + BE year numbers Regular 400 */
html[lang="th"] .bod-positions li:first-child,
html[data-lang-folder="th"] .bod-positions li:first-child,
html[lang="th"] .bod-year,
html[data-lang-folder="th"] .bod-year {
  font-weight: 400 !important;
}

html[lang="th"] .stock :is(dt, dd),
html[data-lang-folder="th"] .stock :is(dt, dd) {
  font-weight: 400 !important;
}

/* Font Awesome needs its own weights; don't flatten icons to Light */
html[lang="th"] :is(.fa-solid, .fas, .fa-brands, .fab),
html[data-lang-folder="th"] :is(.fa-solid, .fas, .fa-brands, .fab) {
  font-weight: 900 !important;
}

html[lang="th"] :is(.fa-regular, .far, .fa-light, .fal),
html[data-lang-folder="th"] :is(.fa-regular, .far, .fa-light, .fal) {
  font-weight: 400 !important;
}
