/* 25/11/2026 – trang SEO công khai (đề luyện theo Part, mẹo, từ vựng theo chủ đề, lộ trình…) dựng bằng tools/seo/tao-trang-seo.js.
   Chuẩn Giấy kem: nền kem lưới chấm, thẻ giấy viền mực 2px bo 8px bóng lệch cứng, xanh logo #4A5F9E/#5E75B8, vàng #EFC278. */
:root {
  --sx-kem: #F7F0DF; --sx-giay: #FBF6EC; --sx-trang: #FFFDF8; --sx-muc: #121212; --sx-chu: #17222D; --sx-phu: #4A4F5A;
  --sx-xanh: #4A5F9E; --sx-xanh-nhat: #5E75B8; --sx-vang: #EFC278; --sx-cam: #E66C2C; --sx-dung: #2F7A4B; --sx-sai: #B23A2B;
  --sx-bong: 4px 4px 0 rgba(24, 38, 65, .28);
}
body.sx-page {
  margin: 0; color: var(--sx-chu);
  background: var(--sx-kem) radial-gradient(circle, rgba(18, 18, 18, .08) 1.6px, transparent 2.2px) 0 0 / 20px 20px;
  font: 500 16px/1.7 "Plus Jakarta Sans", system-ui, sans-serif;
}
.sx-page main { max-width: 1180px; margin: 0 auto; padding: 18px 20px 72px; box-sizing: border-box; }
.sx-page main *, .sx-page main *::before, .sx-page main *::after { box-sizing: border-box; }
.sx-page a { color: var(--sx-xanh); text-underline-offset: 3px; }
.sx-page h1, .sx-page h2 { font-family: Unbounded, "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--sx-chu); }
.sx-page h1 { font-size: clamp(28px, 4vw, 48px); margin: 14px 0 14px; }
.sx-page h2 { font-size: clamp(22px, 2.6vw, 32px); margin: 0 0 14px; }
.sx-page h3 { font: 800 19px/1.35 "Plus Jakarta Sans", sans-serif; margin: 0 0 8px; }

/* đường dẫn */
.sx-vun { font-size: 14px; color: var(--sx-phu); margin: 6px 0 0; }
.sx-vun a { color: var(--sx-phu); }
.sx-vun span[aria-hidden] { margin: 0 6px; }

/* nhãn nhỏ */
.sx-nhan { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1.2 "Space Mono", monospace; letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--sx-muc); border-radius: 4px; padding: 5px 9px; background: var(--sx-vang); color: var(--sx-muc); box-shadow: 2px 2px 0 rgba(24, 38, 65, .28); }

/* bìa */
.sx-bia { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; margin: 18px 0 56px; }
.sx-mo { font-size: 18px; color: var(--sx-phu); max-width: 62ch; margin: 0 0 20px; }
.sx-bia figure { margin: 0; border: 2px solid var(--sx-muc); border-radius: 8px; overflow: hidden; box-shadow: var(--sx-bong); background: var(--sx-giay); }
.sx-bia figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sx-hai { display: flex; flex-wrap: wrap; gap: 12px; }

/* nút */
.sx-nut { display: inline-flex; align-items: stretch; min-height: 48px; border: 2px solid var(--sx-muc); border-radius: 8px; background: var(--sx-giay); color: var(--sx-muc) !important;
  font: 800 15px/1.2 "Plus Jakarta Sans", sans-serif; text-decoration: none; box-shadow: 3px 3px 0 rgba(24, 38, 65, .28); transition: transform .12s, box-shadow .12s; cursor: pointer; }
.sx-nut > span { display: flex; align-items: center; padding: 0 16px; }
.sx-nut > i { display: flex; align-items: center; justify-content: center; width: 44px; border-left: 2px solid var(--sx-muc); font-style: normal; }
.sx-nut.vang { background: var(--sx-vang); }
.sx-nut:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(24, 38, 65, .32); }
.sx-nut:focus-visible, .sx-page button:focus-visible, .sx-page summary:focus-visible { outline: 3px solid var(--sx-xanh-nhat); outline-offset: 2px; }

/* dải số liệu nhanh */
.sx-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0 0 56px; }
.sx-so div { background: var(--sx-trang); border: 2px solid var(--sx-muc); border-radius: 8px; padding: 14px 16px; box-shadow: 3px 3px 0 rgba(24, 38, 65, .22); }
.sx-so b { display: block; font: 800 24px/1.1 Unbounded, sans-serif; color: var(--sx-xanh); }
.sx-so small { color: var(--sx-phu); font-size: 14px; }

/* khối nội dung */
.sx-khoi { margin: 0 0 64px; }
.sx-khoi > p, .sx-dau p { max-width: 75ch; }
.sx-dau { margin-bottom: 20px; }
.sx-dau p { color: var(--sx-phu); margin: 0; }
.sx-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.sx-luoi.hai { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.sx-the { background: var(--sx-giay); border: 2px solid var(--sx-muc); border-radius: 8px; padding: 18px 20px; box-shadow: var(--sx-bong); }
.sx-the p { margin: 0 0 8px; }
.sx-the p:last-child, .sx-the ul:last-child { margin-bottom: 0; }
.sx-the ul, .sx-the ol { margin: 0 0 8px; padding-left: 20px; }
.sx-the .sx-so-thu { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 2px solid var(--sx-muc); border-radius: 6px; background: var(--sx-vang);
  font: 800 15px/1 Unbounded, sans-serif; margin-bottom: 10px; }
.sx-the.xanh { background: var(--sx-xanh); color: #fff; }
.sx-the.xanh h3, .sx-the.xanh a { color: #fff; }
.sx-vd { background: var(--sx-trang); border-left: 4px solid var(--sx-xanh-nhat); padding: 8px 12px; margin: 8px 0 0; font-size: 15px; border-radius: 0 6px 6px 0; }
.sx-vd [lang="en"] { font-style: italic; }

/* bảng */
.sx-bang-khung { overflow-x: auto; border: 2px solid var(--sx-muc); border-radius: 8px; box-shadow: var(--sx-bong); background: var(--sx-trang); }
.sx-bang { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.sx-bang th, .sx-bang td { text-align: left; padding: 10px 14px; border-bottom: 1.5px solid rgba(18, 18, 18, .15); vertical-align: top; }
.sx-bang thead th { background: var(--sx-xanh); color: #fff; font-weight: 800; }
.sx-bang tbody tr:last-child td { border-bottom: 0; }

/* bài luyện */
.sx-luyen { display: grid; gap: 18px; }
.sx-cau { background: var(--sx-giay); border: 2px solid var(--sx-muc); border-radius: 8px; padding: 18px 20px; box-shadow: var(--sx-bong); }
.sx-cau-dau { display: flex; justify-content: space-between; gap: 10px; font: 700 13px/1.2 "Space Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-phu); margin-bottom: 10px; }
.sx-cau .sx-de { font-weight: 700; margin: 0 0 12px; }
.sx-cau img.sx-tranh { display: block; width: 100%; max-width: 520px; height: auto; border: 2px solid var(--sx-muc); border-radius: 6px; margin: 0 0 12px; background: #eee; }
.sx-cau audio { display: block; width: 100%; max-width: 520px; margin: 0 0 12px; }
.sx-doan { background: var(--sx-trang); border: 1.5px solid rgba(18, 18, 18, .35); border-radius: 6px; padding: 14px 16px; margin: 0 0 14px; white-space: pre-line; font-size: 15px; }
.sx-doan b.sx-tieu { display: block; margin-bottom: 6px; white-space: normal; }
.sx-cau-con { border-top: 1.5px dashed rgba(18, 18, 18, .25); padding-top: 12px; margin-top: 12px; }
.sx-cau-con:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.sx-chon { display: grid; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.sx-chon button { width: 100%; min-height: 44px; text-align: left; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 2px solid var(--sx-muc); border-radius: 8px;
  background: var(--sx-trang); color: var(--sx-chu); font: 600 15px/1.4 "Plus Jakarta Sans", sans-serif; cursor: pointer; box-shadow: 2px 2px 0 rgba(24, 38, 65, .2); }
.sx-chon button b { display: inline-flex; flex: none; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1.5px solid var(--sx-muc); border-radius: 5px; background: var(--sx-giay); }
.sx-chon button:hover:not([disabled]) { background: #fff; transform: translate(-1px, -1px); }
.sx-chon button[disabled] { cursor: default; }
.sx-chon button.dung { background: #E3F2E6; border-color: var(--sx-dung); }
.sx-chon button.dung b { background: var(--sx-dung); color: #fff; border-color: var(--sx-dung); }
.sx-chon button.sai { background: #F8E1DD; border-color: var(--sx-sai); }
.sx-chon button.sai b { background: var(--sx-sai); color: #fff; border-color: var(--sx-sai); }
.sx-giai { margin-top: 10px; background: var(--sx-trang); border: 1.5px solid rgba(18, 18, 18, .3); border-radius: 6px; padding: 10px 14px; font-size: 15px; }
.sx-giai[hidden] { display: none; }
.sx-giai strong { color: var(--sx-xanh); }
.sx-loi { margin-top: 10px; font-size: 15px; }
.sx-loi summary { cursor: pointer; font-weight: 700; color: var(--sx-xanh); min-height: 32px; }
.sx-loi p { margin: 4px 0; }
.sx-diem { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 18px;
  background: var(--sx-xanh); color: #fff; border: 2px solid var(--sx-muc); border-radius: 8px; padding: 12px 16px; box-shadow: var(--sx-bong); }
.sx-diem b { font: 800 20px/1 Unbounded, sans-serif; color: #FFE2A8; }
.sx-diem a { color: #fff; font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; }
.sx-luyen > * { min-width: 0; }

/* từ vựng */
.sx-chude { scroll-margin-top: 90px; }
.sx-tu { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sx-tu article { background: var(--sx-trang); border: 2px solid var(--sx-muc); border-radius: 8px; padding: 12px 14px; box-shadow: 3px 3px 0 rgba(24, 38, 65, .22); }
.sx-tu h3 { font-size: 18px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.sx-tu h3 small { font: 600 13px/1.2 "Space Mono", monospace; color: var(--sx-phu); }
.sx-tu .ipa { font-size: 14px; color: var(--sx-phu); margin: 2px 0 6px; }
.sx-tu .nghia { font-weight: 700; margin: 0 0 6px; }
.sx-tu .vd { font-size: 14px; margin: 0; }
.sx-tu .vd i { display: block; color: var(--sx-phu); font-style: normal; }
.sx-muc-luc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.sx-muc-luc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 2px solid var(--sx-muc); border-radius: 8px; background: var(--sx-trang); color: var(--sx-chu);
  text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: 2px 2px 0 rgba(24, 38, 65, .2); }
.sx-muc-luc a:hover { background: var(--sx-xanh); color: #fff; }

/* thẻ liên kết */
.sx-lk { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.sx-lk a { display: block; background: var(--sx-trang); border: 2px solid var(--sx-muc); border-radius: 8px; padding: 14px 16px; color: var(--sx-chu); text-decoration: none;
  box-shadow: 3px 3px 0 rgba(24, 38, 65, .22); transition: transform .12s; }
.sx-lk a:hover { transform: translate(-1px, -1px); }
.sx-lk a small { display: block; font: 700 12px/1.3 "Space Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-xanh); margin-bottom: 4px; }
.sx-lk a b { display: block; line-height: 1.4; }
.sx-lk a span { display: block; color: var(--sx-phu); font-size: 14px; margin-top: 4px; }

/* dải kêu gọi */
.sx-goi { background: var(--sx-xanh) radial-gradient(circle, rgba(255, 255, 255, .12) 1.4px, transparent 2px) 0 0 / 18px 18px; color: #fff; border: 2px solid var(--sx-muc); border-radius: 8px;
  padding: 28px; box-shadow: var(--sx-bong); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 0 0 64px; }
.sx-goi h2 { color: #fff; margin-bottom: 8px; }
.sx-goi p { margin: 0; color: #F1F3FA; }
.sx-goi .sx-hai { justify-content: flex-end; }

/* câu hỏi thường gặp */
.sx-hoi { display: grid; gap: 12px; }
.sx-hoi details { background: var(--sx-giay); border: 2px solid var(--sx-muc); border-radius: 8px; box-shadow: 3px 3px 0 rgba(24, 38, 65, .22); }
.sx-hoi summary { cursor: pointer; padding: 14px 18px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; }
.sx-hoi summary::-webkit-details-marker { display: none; }
.sx-hoi summary::after { content: "+"; font: 800 20px/1 Unbounded, sans-serif; color: var(--sx-xanh); }
.sx-hoi details[open] summary::after { content: "–"; }
.sx-hoi details > div { padding: 0 18px 14px; }
.sx-hoi details > div p { margin: 0 0 8px; }

/* điện thoại */
@media (max-width: 860px) {
  .sx-bia { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
  .sx-bia figure { order: -1; }
  .sx-goi { grid-template-columns: 1fr; padding: 22px 18px; }
  .sx-goi .sx-hai { justify-content: flex-start; }
  .sx-khoi, .sx-so, .sx-goi { margin-bottom: 44px; }
}
@media (max-width: 560px) {
  .sx-page main { padding: 12px 16px 56px; }
  .sx-mo { font-size: 16px; }
  .sx-hai .sx-nut { width: 100%; justify-content: space-between; }
  .sx-cau, .sx-the { padding: 14px 14px; }
  .sx-so { grid-template-columns: 1fr 1fr; }
  .sx-so b { font-size: 20px; }
  .sx-diem { bottom: 8px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .sx-nut, .sx-lk a, .sx-chon button { transition: none; } }

/* Part 1–2: chỉ có chữ cái A–D (lời đọc không in), xếp một hàng */
.sx-chon.chi-chu { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-chon.chi-chu li { flex: 0 1 80px; }
.sx-chon.chi-chu button { justify-content: center; padding: 8px; }
