/* base.css: phông tự host, reset, chữ nền, focus, gạch chân khi rê chuột (.rx-hl). */

/* Phông biến thiên (woff2), tự lưu trong theme, không tải từ máy chủ ngoài. */
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;
  src:url(../fonts/source-sans-3-vietnamese-wght-normal.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:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;
  src:url(../fonts/source-sans-3-latin-wght-normal.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:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;
  src:url(../fonts/source-serif-4-vietnamese-wght-normal.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:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;
  src:url(../fonts/source-serif-4-latin-wght-normal.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}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--rx-page);color:var(--rx-ink);font-family:var(--rx-body-font);font-weight:var(--rx-body-weight);font-size:var(--rx-body-size);line-height:var(--rx-body-lh)}
img,svg{display:block;max-width:100%}
img{height:auto}
a{color:inherit;text-decoration:none}
ul,ol{margin:0;padding:0;list-style:none}
p{margin:0}
button,input{font:inherit;color:inherit;border-radius:0}

/* Tiêu đề: mọi cỡ, weight, line-height lấy từ token vai trò (tokens.css, CHUAN-CHU-NUT-V4.md). Thẻ h1 đến h4 kiểu theo vai trò: h1 Tên trang, h2 Tiêu đề section, h3 Tiêu đề khối, h4 Tiêu đề phụ. */
h1,h2,h3,h4{margin:0}
h1{font-family:var(--rx-h1-font);font-weight:var(--rx-h1-weight);font-size:var(--rx-h1-size);line-height:var(--rx-h1-lh)}
h2{font-family:var(--rx-h2-font);font-weight:var(--rx-h2-weight);font-size:var(--rx-h2-size);line-height:var(--rx-h2-lh)}
h3{font-family:var(--rx-h3-font);font-weight:var(--rx-h3-weight);font-size:var(--rx-h3-size);line-height:var(--rx-h3-lh)}
h4{font-family:var(--rx-h4-font);font-weight:var(--rx-h4-weight);font-size:var(--rx-h4-size);line-height:var(--rx-h4-lh)}

/* Focus cho mọi link, nút, ô nhập */
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--rx-accent);outline-offset:3px}

/* Gạch chân đỏ chạy từ trái sang phải khi rê chuột hoặc focus */
.rx-hl{--rx-hl:var(--rx-accent);padding-bottom:4px;text-decoration-line:none;text-decoration-color:var(--rx-hl);text-decoration-thickness:2px;text-underline-offset:.2em;text-decoration-skip-ink:auto} /* gạch chân hover là gạch chữ của trình duyệt: bám chân từng dòng, không chạm dòng dưới khi chữ xuống hàng. Bật bằng text-decoration-line (không dùng màu trong suốt: Safari không vẽ lại khi rê chuột). padding-bottom giữ nguyên để cao dòng bằng mốc. */
a:hover .rx-hl,a:focus-visible .rx-hl,a:hover.rx-hl,a:focus-visible.rx-hl{text-decoration-line:underline}

/* Chữ chỉ dành cho trình đọc màn hình */
.rx-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Link "Bỏ qua tới nội dung": chỉ hiện khi Tab tới */
.rx-skip{position:absolute;left:var(--rx-space-3);top:-100px;z-index:100;padding:12px 16px;background:var(--rx-ink);color:var(--rx-on-dark);font-family:var(--rx-ui-font);font-weight:var(--rx-ui-weight);font-size:var(--rx-ui-size);line-height:var(--rx-ui-lh)}
.rx-skip:focus{top:var(--rx-space-3)}

/* R-24 (Phiên 20D): main là đích nhảy của liên kết "Bỏ qua" (tabindex -1), không phải phần tử tương tác: không vẽ viền đỏ bao cả trang. */
main[tabindex="-1"]:focus,main[tabindex="-1"]:focus-visible{outline:none}
