/* ==========================================================================
   Luyện thi — bộ biến dùng chung với Tài Liệu Toán (H1, plan/luyen-thi/thiet-ke-he-sinh-thai.md).
   CHÉP từ theme tailieutoan-hoc-duong (assets/css/skin.css :root + fonts.css), KHÔNG nạp CSS theme:
   Luyện thi phải chạy được khi tắt thư viện hoặc dời sang tên miền riêng.
   Đổi màu bên theme → chép lại giá trị ở đây; plan/ui-review/luyenthi-he-sinh-thai/so-token.py báo chỗ lệch.
   Tên biến có tiền tố --lt- (không trùng --mlib-/--gt- của theme khi hai bộ CSS cùng có mặt).
   Font tự host (SIL OFL 1.1): Be Vietnam Pro cho chữ, Baloo 2 cho tiêu đề và số — đều có bộ chữ tiếng Việt.
   ========================================================================== */
/* Be Vietnam Pro (SIL Open Font License 1.1), tự host từ Google Fonts. Tải ngày 2026-10-22. */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-vietnamese-400.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: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-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: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-vietnamese-500.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: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-latin-ext-500.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-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: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-vietnamese-600.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: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-latin-ext-600.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-latin-600.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: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-vietnamese-700.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: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-latin-ext-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/be-vietnam-pro-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;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/baloo2-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: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/baloo2-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/baloo2-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;
}

:root {
  /* Màu — nguồn: skin.css :root (cột phải là tên bên theme) */
  --lt-chu: #1f2937;            /* --mlib-text */
  --lt-chu-phu: #475569;        /* --mlib-muted (7,2:1 trên trắng) */
  --lt-nen: #fffbf5;            /* --mlib-bg: kem */
  --lt-the: #ffffff;            /* --mlib-surface */
  --lt-vien: #efe6d8;           /* --mlib-border, --gt-line */
  --lt-vien-dam: #e2d5c0;       /* --gt-line-2 */
  --lt-mem: #f6f0e6;            /* --gt-soft */
  --lt-xanh: #1560bd;           /* --mlib-primary, --gt-blue (logo) */
  --lt-navy: #132a4f;           /* --mlib-primary-ink, --gt-navy */
  --lt-navy-2: #0b1a33;         /* --gt-navy-2 */
  --lt-cam: #f7931e;            /* --mlib-accent (logo) — chữ trên cam luôn là navy/đen, KHÔNG chữ trắng */
  --lt-cam-dam: #c2410c;        /* --mlib-accent-ink: bóng nổi dưới nút cam */
  --lt-cam-sang: #ffa53d;       /* nút cam khi rê chuột */
  --lt-la: #15803d;             /* --mlib-success, --gt-green */
  --lt-tim: #6d28d9;            /* --gt-purple */
  --lt-hong: #be185d;           /* màu thứ 5 của thước kẻ */
  --lt-vang: #ffd166;           /* --gt-yellow */
  --lt-la-nhat: #e3f5e9;        /* --gt-green-bg */
  --lt-xanh-nhat: #e3eefc;      /* --gt-blue-bg */
  --lt-cam-nhat: #ffeed6;       /* --gt-orange-bg */
  --lt-cam-chu: #9a4a0b;        /* --gt-orange: chữ cam trên nền cam nhạt (≥ 5:1) */
  --lt-tim-nhat: #efe7fd;       /* --gt-purple-bg */
  /* Màu CHỦ ĐẠO của Luyện thi = cam (chủ repo chốt 03/11; Tài Liệu Toán chủ đạo navy). Chữ trên nền chủ đạo luôn navy (6,2:1). */
  --lt-chu-dao: var(--lt-cam);
  --lt-chu-dao-day: var(--lt-cam-dam);
  --lt-tren-chu-dao: var(--lt-navy);
  --lt-thuoc: linear-gradient(90deg, #15803d 0 20%, #1560bd 20% 40%, #f7931e 40% 60%, #ffd166 60% 80%, #be185d 80% 100%); /* --gt-ruler */

  /* Chữ */
  --lt-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lt-font-tieu-de: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif; /* --gt-head */

  /* Hình khối */
  --lt-bo: 20px;                /* --mlib-radius */
  --lt-bo-nho: 14px;
  --lt-khung: 1200px;           /* --mlib-container */
  --lt-bong-the: 0 8px 20px rgba(19, 42, 79, 0.12);
  --lt-bong-noi: 0 16px 32px rgba(19, 42, 79, 0.14);

  /* Chuyển động — nguồn: skin.css :root thứ hai */
  --lt-nhanh: 220ms;            /* --gt-motion-fast */
  --lt-vua: 420ms;              /* --gt-motion-base */
  --lt-cham: 900ms;             /* --gt-motion-slow */
  --lt-em: cubic-bezier(0.22, 1, 0.36, 1);   /* --gt-ease-out */
  --lt-nay: cubic-bezier(0.34, 1.56, 0.64, 1); /* --gt-ease-pop */
}

/* ---------- Nền tảng trang (trang công khai PHP + vỏ app React đều dùng) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.lt-trang {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--lt-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lt-chu);
  background-color: var(--lt-nen);
  background-image: radial-gradient(rgba(19, 42, 79, 0.06) 1px, transparent 1.2px); /* giấy kem chấm bi như theme */
  background-size: 22px 22px;
}
:where(.lt-trang) img, :where(.lt-trang) svg { max-width: 100%; }
:where(.lt-trang) a { color: var(--lt-xanh); } /* :where = độ ưu tiên 0, để màu của nút, ô, thẻ luôn thắng */
:where(.lt-trang) :focus-visible { outline: 3px solid var(--lt-xanh); outline-offset: 3px; }
.lt-an-chu { /* chỉ cho trình đọc màn hình */
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lt-bo-qua { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: var(--lt-navy); color: #fff; font-weight: 700; }
.lt-bo-qua:focus { top: 12px; color: #fff; }
.lt-khung { max-width: var(--lt-khung); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .lt-khung { padding: 0 24px; } }

/* Patrick Hand (OFL, tự host): chữ viết tay cho cây bút trên hero trang chủ — có dấu tiếng Việt */
@font-face { font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/patrickhand-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: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/patrickhand-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/patrickhand-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; }
