/*
 * EVNav TH — self-hosted brand typefaces
 * IBM Plex Sans (Latin) + IBM Plex Sans Thai (Thai), weights 400 & 600.
 * License: SIL Open Font License 1.1 — see OFL-IBM-Plex.txt in this folder.
 * Source: @ibm/plex-sans 1.1.0 and @ibm/plex-sans-thai (npm, official IBM packages).
 *
 * Use the combined family:   font-family: var(--font-sans);
 * "EVNav Sans" picks the Latin file for Latin text and the Thai file for Thai
 * text via unicode-range, so a Thai-only page never downloads the Latin file
 * and vice versa.
 */

:root {
  --font-sans: "EVNav Sans", "Noto Sans Thai",
    "Sukhumvit Set", "Leelawadee UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Combined family: Latin ---------- */
@font-face {
  font-family: "EVNav Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("IBMPlexSans-Regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0308, U+0329, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20BF, U+2100-214F,
    U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EVNav Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("IBMPlexSans-SemiBold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0308, U+0329, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20BF, U+2100-214F,
    U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Combined family: Thai ---------- */
@font-face {
  font-family: "EVNav Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("IBMPlexSansThai-Regular.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "EVNav Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("IBMPlexSansThai-SemiBold.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* ---------- Named families (for explicit use) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("IBMPlexSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("IBMPlexSans-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("IBMPlexSansThai-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("IBMPlexSansThai-SemiBold.woff2") format("woff2");
}
