/* ==========================================================================
   Luyện thi — thành phần chung (H1). Cùng kiểu với Tài Liệu Toán (theme tailieutoan-hoc-duong, skin.css):
   nút viên thuốc nổi khối, thẻ viền be dày bo 20px, nhãn nền nhạt, ô danh mục màu viền trắng, tiêu đề mục có ô màu nghiêng.
   Dùng cho trang công khai (PHP) và app bên trong (React) — một tệp, hai nơi giống nhau.
   Cần token.css nạp trước. Quy tắc: chữ trên nền cam luôn tối; vùng chạm ≥ 44px; tương phản chữ ≥ 4,5:1;
   chuyển động tắt theo prefers-reduced-motion.
   ========================================================================== */

/* ---------- Nút ---------- */
.lt-nut {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 0.9375rem/1.2 var(--lt-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lt-nut svg { width: 20px; height: 20px; flex: none; }
.lt-nut--chinh, .lt-nut--chinh:visited { background: var(--lt-cam); border-color: var(--lt-cam); color: var(--lt-navy); box-shadow: 0 4px 0 var(--lt-cam-dam); }
.lt-nut--phu, .lt-nut--phu:visited { background: #fff; border-color: #e3d6c1; color: var(--lt-navy); box-shadow: 0 4px 0 #e3d6c1; }
.lt-nut--toi, .lt-nut--toi:visited { background: var(--lt-navy); border-color: var(--lt-navy); color: #fff; box-shadow: 0 4px 0 var(--lt-navy-2); }
/* nút nguy hiểm (xóa) — chỉ dùng trong hộp thoại hỏi lại; chữ trắng trên đỏ 6,6:1 */
.lt-nut--nguy, .lt-nut--nguy:visited { background: #b42318; border-color: #b42318; color: #fff; box-shadow: 0 4px 0 #7a1a12; }
.lt-nut--nho { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.lt-nut--rong { width: 100%; }
@media (hover: hover) {
  .lt-nut:hover { transform: translateY(-1px); }
  .lt-nut--chinh:hover { background: var(--lt-cam-sang); border-color: var(--lt-cam-sang); color: var(--lt-navy); }
  .lt-nut--phu:hover { border-color: var(--lt-cam); box-shadow: 0 4px 0 var(--lt-cam); color: var(--lt-navy); }
  .lt-nut--toi:hover { background: #1b3a6b; border-color: #1b3a6b; color: #fff; }
  .lt-nut--nguy:hover { background: #912018; border-color: #912018; color: #fff; }
}
.lt-nut:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lt-cam-dam); }
.lt-nut--phu:active { box-shadow: 0 1px 0 #e3d6c1; }
.lt-nut--toi:active { box-shadow: 0 1px 0 var(--lt-navy-2); }
.lt-nut:focus-visible { outline: 3px solid var(--lt-xanh); outline-offset: 3px; }
.lt-nut[aria-disabled="true"], .lt-nut:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Tiêu đề mục: chữ tròn + ô màu nghiêng (như .mlib-home__heading) ---------- */
.lt-tieu-de-muc {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 800 1.35rem/1.25 var(--lt-font-tieu-de);
  color: var(--lt-navy);
}
.lt-tieu-de-muc::before {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--lt-cam);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15);
  transform: rotate(-8deg);
}
.lt-tieu-de-muc--xanh::before { background: var(--lt-xanh); }
.lt-tieu-de-muc--la::before { background: var(--lt-la); }
.lt-tieu-de-muc--tim::before { background: var(--lt-tim); }
/* Rê chuột vào một mục trong khối → ô màu đầu tiêu đề lắc một cái (đồng bộ Tài Liệu Toán: .mlib-home__heading.is-wiggle, cùng nhịp). khung.js gắn .is-lac */
.lt-tieu-de-muc.is-lac::before { animation: lt-tieu-de-lac 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes lt-tieu-de-lac {
  0% { transform: rotate(-8deg) scale(1); }
  25% { transform: rotate(14deg) scale(1.12); }
  50% { transform: rotate(-20deg) scale(1.08); }
  75% { transform: rotate(4deg) scale(1.03); }
  100% { transform: rotate(-8deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .lt-tieu-de-muc.is-lac::before { animation: none; } }
.lt-dau-muc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.lt-dau-muc .lt-tieu-de-muc { margin: 0; }
.lt-dau-muc__xem { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--lt-xanh); text-decoration: none; }
.lt-dau-muc__xem:hover { text-decoration: underline; }

/* ---------- Thẻ ---------- */
.lt-the {
  position: relative;
  background: var(--lt-the);
  border: 2px solid var(--lt-vien);
  border-radius: var(--lt-bo);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lt-the--dem { padding: 22px; }
.lt-the > .lt-rong { border: 0; padding: 12px 4px; background: transparent; }
@media (hover: hover) {
  .lt-the--bam:hover { transform: translateY(-3px); border-color: var(--lt-cam); box-shadow: 0 10px 0 -4px rgba(247, 147, 30, 0.35); }
}
.lt-the--bam:focus-within { border-color: var(--lt-cam); }
/* Cả thẻ bấm được nhưng chỉ một link chính (link phủ), các link riêng bên trong nổi lên trên. */
.lt-the__phu::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lt-the__phu:focus-visible { outline: none; }
.lt-the__phu:focus-visible::after { outline: 3px solid var(--lt-xanh); outline-offset: 2px; }

/* ---------- Nhãn (chữ đậm trên nền nhạt cùng họ màu, đều ≥ 4,5:1) ---------- */
.lt-nhan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lt-mem);
  color: var(--lt-navy);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.lt-nhan--xanh { background: var(--lt-xanh-nhat); color: #0f4c99; }
.lt-nhan--cam { background: var(--lt-cam-nhat); color: var(--lt-cam-chu); }
.lt-nhan--la { background: var(--lt-la-nhat); color: #166534; }
.lt-nhan--tim { background: var(--lt-tim-nhat); color: #5b21b6; }
.lt-nhan--toi { background: var(--lt-navy); color: #fff; }

/* Viên số đếm cạnh mục (như .mlib-chips__count) */
.lt-vien-so { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: var(--lt-cam-nhat); color: var(--lt-cam-chu); font-size: 0.75rem; font-weight: 800; text-align: center; }

/* ---------- Viên chọn nhanh (link dạng viên thuốc, như .mlib-chips a) ---------- */
.lt-vien-ds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lt-vien {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--lt-vien-dam);
  border-radius: 999px;
  background: #fff;
  color: var(--lt-navy);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
@media (hover: hover) { .lt-vien:hover { border-color: var(--lt-cam); } }
.lt-vien[aria-current="page"] { background: var(--lt-chu-dao); border-color: var(--lt-chu-dao-day); color: var(--lt-tren-chu-dao); }

/* ---------- Ô danh mục màu (như .mlib-tile: viền trắng 4px, bo 22px, nổi khối, nghiêng nhẹ khi rê) ---------- */
.lt-o {
  --o-mau: var(--lt-xanh);
  --o-day: #0f4c99;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  padding: 14px 16px;
  border: 4px solid #fff;
  border-radius: 22px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.4px) 0 0 / 16px 16px,
    var(--o-mau);
  box-shadow: 0 6px 0 var(--o-day), 0 12px 22px rgba(19, 42, 79, 0.16);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lt-o__ve { position: absolute; top: 10px; right: 10px; width: 56%; max-width: 120px; height: auto; pointer-events: none; }
.lt-o__ten { position: relative; font: 800 1.15rem/1.2 var(--lt-font-tieu-de); }
.lt-o__phu { position: relative; display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.22); font-size: 0.8125rem; font-weight: 700; align-self: flex-start; }
@media (hover: hover) {
  a.lt-o:nth-child(odd):hover { transform: translateY(-4px) rotate(-1.2deg); color: #fff; }
  a.lt-o:nth-child(even):hover { transform: translateY(-4px) rotate(1.2deg); color: #fff; }
}
a.lt-o:focus-visible { outline: 3px solid var(--lt-navy); outline-offset: 3px; }
/* Ô chưa có nội dung: mờ, không bấm (là <div>, không phải link) */
.lt-o--cho { --o-mau: #64748b; --o-day: #475569; box-shadow: 0 4px 0 var(--o-day); } /* chữ trắng trên #64748b = 4,76:1; không dùng opacity (làm tụt tương phản) */
.lt-o--cho .lt-o__ten, .lt-o--cho .lt-o__phu { color: #fff; }
.lt-o--cho .lt-o__phu { background: rgba(15, 23, 42, 0.35); }

/* ---------- Hộp cột phụ: tiêu đề là dải màu (như .mlib-side-box) ---------- */
.lt-hop { background: #fff; border: 2px solid var(--lt-vien); border-radius: var(--lt-bo); overflow: hidden; }
.lt-hop { --hop-le: 14px; }
@media (min-width: 640px) { .lt-hop { --hop-le: 18px; } } /* lề trong vừa phải: không dính mép, không thụt sâu (chủ repo 04/11) */
.lt-hop__tieu-de { margin: 0; padding: 14px var(--hop-le); background: var(--lt-xanh-nhat); color: var(--lt-navy); font: 800 1.1rem/1.3 var(--lt-font-tieu-de); }
.lt-hop--cam .lt-hop__tieu-de { background: var(--lt-cam-nhat); }
.lt-hop--la .lt-hop__tieu-de { background: var(--lt-la-nhat); }
.lt-hop__than { padding: 12px var(--hop-le) 20px; }

/* Danh sách xếp hạng (như .mlib-rank-item) */
.lt-hang { margin: 0; padding: 0; list-style: none; counter-reset: hang; }
.lt-hang.lt-hop__than { padding: 4px var(--hop-le) 8px; } /* danh sách làm thân hộp: giữ lề trong của hộp */
.lt-hang__muc { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 2px dashed var(--lt-vien); counter-increment: hang; }
.lt-hang__muc:last-child { border-bottom: 0; }
.lt-hang__muc::before {
  content: counter(hang);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lt-mem);
  color: var(--lt-navy);
  font: 800 0.875rem/1 var(--lt-font-tieu-de);
}
.lt-hang__muc:nth-child(1)::before { background: var(--lt-vang); }
.lt-hang__muc:nth-child(3)::before { background: #fdba74; }
.lt-hang__link { color: var(--lt-navy); font-weight: 600; font-size: 0.9375rem; line-height: 1.4; text-decoration: none; }
.lt-hang__link:hover { color: var(--lt-xanh); text-decoration: underline; }
.lt-hang__meta { display: block; margin-top: 2px; color: var(--lt-chu-phu); font-size: 0.8125rem; }

/* ---------- Ô nhập (≥ 16px để iOS không phóng to) ---------- */
.lt-o-nhap {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--lt-vien-dam);
  border-radius: var(--lt-bo-nho);
  background: #fff;
  color: var(--lt-chu);
  font: 400 1rem/1.4 var(--lt-font);
}
.lt-o-nhap::placeholder { color: #64748b; }
.lt-o-nhap:focus { outline: none; border-color: var(--lt-cam); box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.25); }

/* ---------- Trạng thái rỗng ---------- */
.lt-rong { padding: 28px 20px; border: 2px dashed var(--lt-vien-dam); border-radius: var(--lt-bo); text-align: center; color: var(--lt-chu-phu); background: rgba(255, 255, 255, 0.6); }
.lt-rong__tieu-de { margin: 0 0 6px; color: var(--lt-navy); font: 800 1.1rem/1.3 var(--lt-font-tieu-de); }
.lt-rong p { margin: 0 0 14px; }

/* ---------- Thông báo (như .gt-alert) ---------- */
.lt-bao { margin: 0 0 16px; padding: 12px 16px; border: 2px solid var(--lt-vien); border-radius: 14px; background: #fff; font-size: 0.9375rem; }
.lt-bao--loi { border-color: #fecdca; background: #fef3f2; color: #b42318; }   /* 5,9:1 */
.lt-bao--tot { border-color: #bbf7d0; background: var(--lt-la-nhat); color: #166534; }
.lt-bao:focus { outline: 3px solid #fda29b; outline-offset: 2px; }
.lt-bao__tieu-de { margin: 0 0 4px; font-weight: 800; }
.lt-bao ul { margin: 0; padding-left: 18px; }
.lt-bao a { color: inherit; text-decoration: underline; }

/* ---------- Biểu mẫu: trường, ô nhập, ô chọn (như .gt-form / .gt-field / .gt-input / .gt-check) ---------- */
.lt-bieu-mau { display: grid; gap: 14px; }
.lt-bieu-mau__gui { width: 100%; margin-top: 4px; }
.lt-truong { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; } /* cột co được: ô ngày giờ (rộng tự nhiên ~280px) không đẩy tràn màn 320px — l29 bắt được 05/11 */
.lt-truong > label { color: var(--lt-navy); font-weight: 700; font-size: 0.9375rem; }
.lt-truong__goi-y { margin: 0; color: var(--lt-chu-phu); font-size: 0.8125rem; }
.lt-truong__loi { margin: 0; color: #b42318; font-size: 0.875rem; font-weight: 600; }
.lt-nhap { position: relative; display: flex; align-items: center; }
.lt-nhap input, .lt-nhap select, .lt-nhap textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--lt-vien-dam);
  border-radius: var(--lt-bo-nho);
  background: #fff;
  color: var(--lt-chu);
  font: 400 1rem/1.4 var(--lt-font); /* ≥ 16px: iOS không phóng to */
}
.lt-nhap input:hover, .lt-nhap select:hover, .lt-nhap textarea:hover { border-color: #d8c9b0; }
.lt-nhap input:focus, .lt-nhap select:focus, .lt-nhap textarea:focus { outline: none; border-color: var(--lt-xanh); box-shadow: 0 0 0 4px rgba(21, 96, 189, 0.15); }
.lt-truong.is-invalid .lt-nhap input { border-color: #d92d20; }
.lt-chon { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 10px; color: #334155; line-height: 1.45; cursor: pointer; }
.lt-chon input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lt-xanh); }
.lt-chon--khoi { display: flex; }

/* ---------- Liên kết chữ ---------- */
.lt-lien-ket { color: var(--lt-xanh); font-weight: 700; }
.lt-lien-ket:hover { color: var(--lt-navy); }

/* ---------- Trạng thái rỗng: phần chữ + nút ---------- */
.lt-rong__chu { margin: 0 0 14px; }
.lt-rong__nut { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.lt-nut.is-loading { opacity: 0.8; cursor: progress; }

/* ---------- Khung chờ (chỉ dùng khi chờ > 300 ms) ---------- */
.lt-cho { position: relative; overflow: hidden; border-radius: 10px; background: var(--lt-mem); }
.lt-cho::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: lt-cho 1.4s ease-in-out infinite; }
@keyframes lt-cho { to { transform: translateX(100%); } }

/* ---------- Hỏi đáp mở/đóng (details) ---------- */
.lt-hoi { border: 2px solid var(--lt-vien); border-radius: 16px; background: #fff; }
.lt-hoi + .lt-hoi { margin-top: 10px; }
.lt-hoi summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  color: var(--lt-navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.lt-hoi summary::-webkit-details-marker { display: none; }
.lt-hoi summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease; }
.lt-hoi[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.lt-hoi summary:focus-visible { outline: 3px solid var(--lt-xanh); outline-offset: -3px; border-radius: 14px; }
.lt-hoi__dap { padding: 0 18px 16px; color: var(--lt-chu); }
.lt-hoi__dap p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .lt-nut, .lt-the, .lt-o, .lt-vien, .lt-hoi summary::after { transition: none; }
  .lt-nut:hover, .lt-nut:active, .lt-the--bam:hover, a.lt-o:hover { transform: none !important; }
  .lt-cho::after { animation: none; }
}

/* ── Tờ bìa đề (.lt-bia) — MỘT kiểu cho mọi danh sách đề (trang công khai + app), chép đúng ô bìa "tờ đề"
   của Tài Liệu Toán (.mlib-cover-tile): nền chấm nhạt theo loại đề, tờ giấy trắng có dải màu đầu trang,
   góc gấp, tờ lót xoay; nhãn loại đề ở đầu, "Lớp" + số ở giữa, ba dòng chữ giả dưới đáy.
   Màu như thư viện: giữa kỳ xanh, cuối kỳ cam, Olympic tím, còn lại xanh lá.
   Cỡ ô do nơi dùng đặt qua --bia-r / --bia-c; chữ trong tờ co theo cỡ thật của ô (container query). */
.lt-bia {
  --bia-fg: var(--lt-la);
  --bia-bg: var(--lt-la-nhat);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--bia-r, 96px);
  height: var(--bia-c, 124px);
  padding: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 1px 1px, rgba(19, 42, 79, 0.08) 1px, transparent 0) 0 0 / 12px 12px, var(--bia-bg);
  isolation: isolate;
  container-type: size;
}
.lt-bia--xanh { --bia-fg: var(--lt-xanh); --bia-bg: var(--lt-xanh-nhat); }
.lt-bia--cam { --bia-fg: var(--lt-cam-chu); --bia-bg: var(--lt-cam-nhat); }
.lt-bia--tim { --bia-fg: var(--lt-tim); --bia-bg: var(--lt-tim-nhat); }
.lt-bia__to {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  max-height: 128px;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  padding: 12px 8px 9px;
  border-top: 4px solid var(--bia-fg);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(19, 42, 79, 0.14), 0 8px 16px -8px rgba(19, 42, 79, 0.35);
  transition: transform 0.2s ease;
}
.lt-bia__to::before { content: ""; position: absolute; inset: -4px 0 0; z-index: -1; border-radius: 3px; background: #fff; box-shadow: 0 1px 3px rgba(19, 42, 79, 0.16); transform: rotate(5deg) translate(4px, 1px); }
.lt-bia__to::after { content: ""; position: absolute; top: -4px; right: 0; width: 12px; height: 12px; border-bottom-left-radius: 2px; background: linear-gradient(225deg, var(--bia-bg) 50%, #dbe3ee 50%); box-shadow: -1px 1px 2px rgba(19, 42, 79, 0.15); }
@media (hover: hover) { :hover > .lt-bia .lt-bia__to, a:hover .lt-bia .lt-bia__to { transform: translateY(-2px) rotate(-1deg); } }
.lt-bia__nhan {
  flex: none;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--bia-fg);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lt-bia__lop { flex: none; margin-top: auto; color: #5b6b82; font-size: 0.6875rem; font-weight: 600; line-height: 1; }
.lt-bia__so { flex: none; color: var(--lt-navy); font: 800 2rem/1 var(--lt-font-tieu-de); }
.lt-bia__so svg { display: block; width: 1em; height: 1em; }
.lt-bia__nhan + .lt-bia__so { margin-top: auto; } /* Olympic không lớp: cúp đứng giữa tờ */
.lt-bia__dong {
  flex: 0 1 15px;
  min-height: 0;
  width: 100%;
  margin-top: auto;
  background:
    linear-gradient(#e3e8ef, #e3e8ef) 0 0 / 100% 3px,
    linear-gradient(#e3e8ef, #e3e8ef) 0 6px / 100% 3px,
    linear-gradient(#e3e8ef, #e3e8ef) 0 12px / 60% 3px;
  background-repeat: no-repeat;
}
/* Tờ thấp hơn 120px: bỏ dòng giả, thu lề + chữ; "Lớp" + số đứng giữa khoảng trống còn lại. */
@container (max-height: 119.9px) {
  .lt-bia__to { padding: 7px 5px 6px; }
  .lt-bia__nhan { font-size: 0.625rem; line-height: 1.15; letter-spacing: 0.02em; }
  .lt-bia__lop { font-size: 0.625rem; }
  .lt-bia__lop + .lt-bia__so { margin-top: 2px; }
  .lt-bia__so { margin-bottom: auto; font-size: 1.75rem; }
  .lt-bia__dong { display: none; }
}
/* Tờ rất nhỏ: bỏ chữ "Lớp", số vẫn rõ. */
@container (max-height: 79.9px) {
  .lt-bia__to { padding: 4px 3px; border-top-width: 3px; }
  .lt-bia__nhan { font-size: 0.5625rem; line-height: 1.12; letter-spacing: 0; }
  .lt-bia__lop { display: none; }
  .lt-bia__so { margin: auto 0; font-size: 1.375rem; }
}
/* Safari < 16 (chưa có container query): nhãn một dòng có dấu …, không đè chữ. */
@supports not (container-type: size) {
  .lt-bia__nhan { -webkit-line-clamp: 1; }
  .lt-bia__dong { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lt-bia__to { transition: none; } :hover > .lt-bia .lt-bia__to, a:hover .lt-bia .lt-bia__to { transform: none; } }

/* Công tắc bật/tắt dùng chung (06/11) — thay ô tích mặc định của trình duyệt cho lựa chọn "bật / tắt" (Hiện đáp án…).
   <label class="lt-gat"><input type="checkbox" role="switch"><span class="lt-gat__ray"></span><span>Chữ</span></label> */
.lt-gat { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--lt-navy); font-weight: 600; line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lt-gat input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.lt-gat__ray { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #cbd5e1; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .15); transition: background-color .2s ease; }
.lt-gat__ray::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .2s ease; }
.lt-gat input:checked + .lt-gat__ray { background: var(--lt-xanh); }
.lt-gat input:checked + .lt-gat__ray::after { transform: translateX(18px); }
.lt-gat input:focus-visible + .lt-gat__ray { outline: 3px solid var(--lt-xanh); outline-offset: 2px; }
.lt-gat input:disabled + .lt-gat__ray { opacity: .5; }
@media (hover: hover) { .lt-gat:hover .lt-gat__ray { box-shadow: inset 0 1px 2px rgba(15, 23, 42, .15), 0 0 0 4px rgba(26, 111, 216, .12); } }
@media (prefers-reduced-motion: reduce) { .lt-gat__ray, .lt-gat__ray::after { transition: none; } }
.lt-gat > span:last-child { min-width: 0; }
.lth-sd-xt__dau .lt-gat, .lt-bieu-mau .lt-gat { align-self: flex-start; }
