/* Noto Sans Thai (variable font, weight range 300-700) — self-hosted.
   Quicksand (self-hosted in quicksand.css) is a Latin-only family: it has NO Thai
   glyphs, so Thai text inside a 'Quicksand' stack used to fall back to whatever Thai
   font the visitor's OS/browser happened to pick (inconsistent per device/OS).
   This family is the explicit "Quicksand is not applicable" fallback for Thai script.

   Loaded only for the Thai locale (see client/blogs/index.blade.php + show.blade.php),
   and only the 'thai' subset is ever fetched as long as Quicksand stays first in the
   font stack (unicode-range keeps the other subsets off the wire).

   Files: assets/newtemp/fonts/noto-sans-thai-{thai,latin-ext,latin}.woff2
   Regenerate/update from:
     https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300..700&display=swap
   (browser UA -> variable woff2 URLs; a non-browser UA returns TTF src lists).

   Alternatives that were compared for the same role (all OFL, all ship a thai subset):
   Mitr (rounded terminals — closest personality match to Quicksand, but positioned for
   casual/display use), Prompt (geometric, neutral), Krub, Anuphan, Sarabun (the family
   bundled in the Flutter app). */

/* thai */
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/noto-sans-thai-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* latin-ext */
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/noto-sans-thai-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/noto-sans-thai-latin.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;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Same Thai subset, declared under the family name 'Quicksand'.

   Why: the compiled theme CSS (assets/newtemp/css/main.css — minified) sets
   `font-family: Quicksand, …` directly on many selectors (p, li, strong,
   .footer p, .dropdown-item, .service-price, .copyright-text, …), so adding
   'Noto Sans Thai' to each page's stack can never reach all of them, and
   blanket overrides would need !important fights (and would break the icon
   fonts that rely on font-family).

   Instead, reuse CSS's own subsetting rule: several @font-face rules may share
   one family and are split by unicode-range. So 'Quicksand' becomes
   Latin/Vietnamese (quicksand.css) + Thai (here) — every existing Quicksand
   declaration renders Thai script with Noto Sans Thai, with no selector changes
   and no !important. Latin is untouched because the range below is Thai-only
   (U+02D7 / U+0303 / U+0331 / U+200C-200D / U+25CC are the few non-Thai
   codepoints Google bundles; they are invisible in normal text).
   This file loads only for the Thai locale, so nothing changes elsewhere.
   ───────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/noto-sans-thai-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
