/* THAIMOST — central typography system (v2 staging, 22/11/2026)
   Latin/Vietnamese/Cyrillic/Greek: Inter.  Thai: Noto Sans Thai.  CJK, Arabic, Devanagari: system fonts.

   How it works (one file, no per-component overrides):
   1. Inter + Noto Sans Thai are declared under the family names "TM Sans" AND "Montserrat".
      Every existing rule that says font-family:"Montserrat" / var(--disp) / var(--body) therefore
      renders Inter (Thai glyphs from Noto Sans Thai) without touching each component.
      The Google Fonts <link> for the real Montserrat is removed from every page.
   2. Both fonts are variable fonts. Their weight range is declared as 400–650, so any old
      font-weight:700/800/900 is rendered at 650 — no ExtraBold/Black anywhere, and 600/500/400
      stay as they are. Synthetic bold is disabled so the browser cannot fake heavier text.
   3. The rules below set the hierarchy (nav, mega menu, buttons, product titles, labels), readable
      grey tones and line heights per language. */

@font-face{font-family:'TM Sans';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'TM Sans';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'TM Sans';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}
@font-face{font-family:'TM Sans';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:'TM Sans';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'TM Sans';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'TM Sans';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'TM Sans';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/notosansthai/v29/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hX2g.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 650;font-display:swap;src:url(https://fonts.gstatic.com/s/notosansthai/v29/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hX2g.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}

/* metric-matched fallback while Inter loads (reduces layout shift) */
@font-face{font-family:'TM Sans Fallback';src:local('Arial');size-adjust:107.1%;ascent-override:90.4%;descent-override:22.5%;line-gap-override:0%}

html:root{
  --tm-font:'TM Sans','TM Sans Fallback',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans','Hiragino Kaku Gothic ProN','Microsoft YaHei','Yu Gothic','Malgun Gothic','Apple SD Gothic Neo','Noto Sans CJK SC','Noto Sans JP','Noto Sans KR','Nirmala UI','Noto Sans Devanagari','Segoe UI Arabic','Noto Sans Arabic',Roboto,Arial,sans-serif;
  --disp:var(--tm-font);
  --body:var(--tm-font);
  /* weights */
  --fw-body:400; --fw-meta:500; --fw-nav:600; --fw-btn:600; --fw-title:600; --fw-h:650; --fw-price:650;
  /* readable greys (old light grey #9A938B was below 3:1 on cream) */
  --mut-2:#7A7269;
}
html{font-synthesis-weight:none;text-rendering:optimizeLegibility}
html body{font-family:var(--tm-font);font-weight:var(--fw-body)}
html body input,html body select,html body textarea,html body button{font-family:var(--tm-font)}

/* headings */
html body h1{font-weight:var(--fw-h)}
html body h2{font-weight:var(--fw-h);letter-spacing:-.015em}
html body h3,html body h4{font-weight:var(--fw-title)}

/* small uppercase labels: calmer tracking and weight (was up to .22em / 800) */
.eyebrow,.wd-eye,.nw-eye,.tmc-eye,.tmad-eye,.net-badge,.net-pill,.rfq-eye,.onb-kick,.kicker,.proof-lab,.phero .kick,
.deal .wl,.stc .mkt small,.stc .vlab,.spb-vip,.spb-tag,.navlbl,.sb-grp,.tmh-dr-h,.tm-ss-h,.tmh-tags-scroll .tmh-tl,
.fgroup h4,.fcol h4,.tcard .tb,.step-eyebrow .lab,.rc h4,.acard .cat,.pcat{letter-spacing:.07em!important;font-weight:600!important}

/* navigation */
.tmh-nav2 a{font-weight:var(--fw-nav)!important;letter-spacing:0}
.tmh-top a,.tmh-top-r a,.tmh-top-r span{font-weight:500!important}
.tmh-auth .tmh-signin,.tmh-auth .tmh-join,.tmh-rfq{font-weight:var(--fw-btn)!important}
.tmh-tag,.tmh-tags-scroll a{font-weight:500!important}

/* mega menus (header.js .tmh-* and catmenu.js #tm-mm) */
.tmh-ch,#tm-mm .tm-h{font-weight:600!important;font-size:14px!important;line-height:1.3!important;margin-bottom:10px!important;letter-spacing:0}
.tmh-sub,#tm-mm .tm-sub{font-weight:400!important;font-size:13px!important;line-height:1.5!important;padding:3px 0!important;color:#4A443D!important}
.tmh-sub:hover,#tm-mm .tm-sub:hover{color:#D8400A!important}
.tmh-more,#tm-mm .tm-all{font-weight:600!important;font-size:12.5px!important;margin-top:7px!important}
.tmh-mega-foot a,#tm-mm .tm-foot a{font-weight:600!important}
.tmh-mega-in{gap:24px 28px!important}

/* buttons (by class: some cards are <button> elements, so no global button rule) */
.btn,.btn-o,.btn-out,.qa,.wd-add,.wd-cta,.nw-cta,.wd-vall,.nw-vall,.net-cta,.net-cta2,.chip,.sb,.vd,
.link-more,.pgbtn,.btn-reg,.btn-clear,.fapply,.tmad-cta,.btn-w,.signin,.cta a,.sbtns a,.cbtns .btn{font-weight:var(--fw-btn)!important}

/* product cards: titles 600, prices 650, supplier/meta 500 */
.pcard h3,.wd-nm,.nw-nm,.card .cbd h3,.cbd h3,.scard h3{font-weight:var(--fw-title)!important;letter-spacing:-.005em}
.pcard h3,.card .cbd h3{line-height:1.35!important}
.pcard .price,.wd-price,.nw-price,.card .pr,.pr{font-weight:var(--fw-price)!important}
.pcard .supp,.wd-sup,.nw-sup,.card .sup,.pcard .moq,.card .mq{font-weight:500!important}
.nw-sup{letter-spacing:.02em!important;color:#7A7269!important}

/* dashboards and admin tables */
.tbl th{font-weight:600!important;letter-spacing:.04em!important}

/* languages: line height and tracking that suit each script */
html[lang="th"] body{line-height:1.7}
html[lang="th"] h1,html[lang="th"] h2,html[lang="th"] h3,html[lang="th"] h4{line-height:1.4!important}
html[lang="vi"] h1,html[lang="vi"] h2,html[lang="vi"] h3{line-height:1.3!important}
html[lang="zh-CN"] body,html[lang="ja"] body,html[lang="ko"] body{line-height:1.7}
html[lang="zh-CN"] h1,html[lang="zh-CN"] h2,html[lang="zh-CN"] h3,html[lang="ja"] h1,html[lang="ja"] h2,html[lang="ja"] h3,html[lang="ko"] h1,html[lang="ko"] h2,html[lang="ko"] h3{line-height:1.35!important}
html[lang="th"] *,html[lang="zh-CN"] *,html[lang="ja"] *,html[lang="ko"] *,html[lang="ar"] *,html[lang="hi"] *{letter-spacing:0!important}
html[lang="ar"] body{line-height:1.75}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] h4{line-height:1.45!important}
html[lang="hi"] h1,html[lang="hi"] h2,html[lang="hi"] h3{line-height:1.4!important}
html[lang="hi"] body{line-height:1.75}
