/* ==========================================================================
   FONT DUY NHAT CUA TOAN TRANG: Roboto (self-hosted).
   Nguon: Google Fonts v51, variable, Apache License 2.0.
     - roboto-latin.woff2       42 KB  (ky tu latin co ban)
     - roboto-vietnamese.woff2  14 KB  (ky tu tieng Viet)
   Kem 1 font KY HIEU du phong (Noto Sans Symbols 2) de cac ky tu nhu
   mui ten / icon / emoji cung giong nhau tren moi may, thay vi moi he dieu
   hanh tu ve mot kieu rieng (emoji cua iOS / Windows / Android).
   ========================================================================== */

/* --- 1. Roboto: font chinh, phu toan bo chu va so --- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/roboto-vietnamese.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: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/roboto-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;
}

/* --- 2. Noto Sans Symbols 2: chi phu cac ky hieu/icon/emoji ma Roboto thieu.
   unicode-range gioi han dung vao vung ky hieu, khong dung tới chu thuong. --- */
@font-face {
  font-family: 'Noto Sans Symbols 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-symbols2.woff2') format('woff2');
  unicode-range: U+2190, U+2192-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219,
    U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF,
    U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FF0B, U+FF0D,
    U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F300-1F5FA, U+1F600-1F64F,
    U+1F680-1F6FF, U+1F700-1F7FF, U+1F800-1F8AD, U+1F900-1F9FF, U+1FA00-1FAFF,
    U+1FB00-1FBFF;
}

/* Bien font DUY NHAT cua trang.
   Thu tu fallback theo TUNG KY TU: chu -> Roboto, ky hieu/emoji -> Noto Symbols.
   Chi generic 'sans-serif' lam luoi an toan cuoi cung khi woff2 loi mang. */
:root {
  --font-rb: 'Roboto', 'Noto Sans Symbols 2', sans-serif;
}

/* Ep buoc moi phan tu dung font tren, vo hieu hoa moi font stack khac
   (tu preflight Tailwind, inline style, stylesheet thu vien...).
   Nap tren moi trang qua /fonts/roboto.css. */
*,
*::before,
*::after,
html,
body,
input,
button,
select,
textarea,
optgroup {
  font-family: var(--font-rb) !important;
}

/* Khong de trinh duyet tu bia (synthesize) net dam/nghieng: moi may render
   weight that giong nhau. Roboto variable co san 100-900 nen khong can fake. */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  font-synthesis-style: none;
}
