/*
 * The typefaces this site renders with, served from our own server.
 *
 * The stack is 'Google Sans','Sarabun',sans-serif - the same one the Billing
 * system (WSBS) uses, so the website, the Helpdesk portal and Billing all read
 * as one product. Google Sans covers Thai as well as Latin, so it is what
 * actually appears; Sarabun stands behind it for anything Google Sans lacks
 * and is normally never downloaded, because a browser only fetches a face
 * whose unicode-range matches text on the page.
 *
 * Hosted here rather than linked to fonts.googleapis.com. The Helpdesk portal
 * shares an origin with the marketing pages, and every outside origin those
 * pages talk to is one a strict CSP has to allow (WWW-07). It also stops a
 * visitor's IP address reaching Google on every page view, which matters for
 * the PDPA notice the portal has to carry.
 *
 * Both families are licensed under the SIL Open Font License 1.1, which
 * permits hosting and redistribution. Google Sans was published under the OFL
 * in 2025. See fonts/OFL-GoogleSans.txt and fonts/OFL-Sarabun.txt.
 * Downloaded from Google Fonts on 2026-10-09.
 */

/* ---------------------------------------------------------------- Google Sans
 * A variable font: Google serves one identical file whichever weight is asked
 * for, so there is one file per subset and the whole 400-700 range is declared
 * on it. Asking for three weights stored the same bytes three times and would
 * have made every browser download them three times.
 */
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/googlesans-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/googlesans-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;
}

/* -------------------------------------------------------------------- Sarabun
 * Static faces, one file per weight. The fallback behind Google Sans, kept
 * because the Billing system names it and because a Google Sans file failing
 * to load should land on a proper Thai face rather than on whatever the
 * operating system happens to pick.
 */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sarabun-thai-400.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sarabun-latin-400.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: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/sarabun-thai-500.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/sarabun-latin-500.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: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/sarabun-thai-700.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/sarabun-latin-700.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;
}
