/* Toán 12: chữ Inter (có tiếng Việt) + công thức KaTeX. Nạp sau style.css; chỉ dùng cho trang bài Toán 12. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-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: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

body { font-family: "Inter Variable", "Inter", "Segoe UI", Roboto, Arial, sans-serif; font-feature-settings: "cv11", "ss03"; line-height: 1.6; }
h1, h2, .box > .t { letter-spacing: -.005em; }
h1 { font-weight: 750; }
h2 { font-weight: 700; }

/* công thức: KaTeX dựng sẵn, màu theo chữ (sáng/tối) */
.tx { font-size: 1em; }
/* các dòng công thức liền nhau (đặc biệt có phân số) cách xa nhau hơn để không dính */
.tx .katex .base { margin-top: .26em; margin-bottom: .26em; }
.box { line-height: 1.7; }
p.center .tx .katex .base { margin-top: .12em; margin-bottom: .12em; }
.tx .katex { font-size: 1.12em; line-height: 1.25; text-rendering: auto; }
.box .tx .katex { font-size: 1.1em; }
p.center { margin: 10px 0; text-align: center; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
p.center .tx .katex { font-size: 1.28em; }
li .tx .katex, td .tx .katex { font-size: 1.1em; }
.bbt th { font-style: normal; }
.bbt td, .bbt th { font-size: 1.05em; }
.bbt td.ar { font-size: 20px; }
.tbl-compact td .tx .katex { font-size: 1.1em; }
@media (max-width: 560px) {
  .tx .katex { font-size: 1.06em; }
  p.center .tx .katex { font-size: 1.15em; }
}
