/* =========================================================
   Blog lanhdaohieuqua.com (01/11/2026)
   Chỉ đọc token trong :root của css/site.css (bản chụp style.css của ban-moi):
   xanh --accent #1C5AB3, cam GTI --signal, xanh đậm --dark, nền --bg-2, viền --line.
   Trang bài viết chuyển từ khuôn A (Khuon-bai-viet/khuon-a-chuong) sang nhận diện L.E.T.:
   viền mảnh màu --line thay viền mực 2px, bóng mềm thay bóng cứng, bo 8px.
   Luật gióng giữ nguyên: hai đường dọc L0 (mép trái khung) và L1 = L0 + rãnh.
   ========================================================= */

/* ---------- Nhãn dùng chung ---------- */
.chu-de { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--band); color: var(--accent-ink); font-size: var(--t-xs); font-weight: 600; }
.nhan-mau { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: var(--t-xs); font-weight: 600; }
.nhan-mau .icon { width: 14px; height: 14px; flex: none; }
.bai-the__dong { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.bai-the__meta { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; font-size: var(--t-xs); color: var(--ink-2); }
.bai-the__meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.bai-the__meta .icon { width: 15px; height: 15px; color: var(--accent); }

/* =========================================================
   TRANG DANH SÁCH
   ========================================================= */

/* Đầu trang: nền chấm bán sắc như hero trang chủ */
.blog-dau { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.blog-dau__nen {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(55%, 900px);
  background: linear-gradient(135deg, var(--accent) 0%, #5B8BD6 45%, var(--signal) 100%);
  -webkit-mask-image: radial-gradient(circle, #000 1.6px, transparent 2.1px), radial-gradient(ellipse 70% 70% at 70% 45%, #000 15%, transparent 70%);
  -webkit-mask-size: 14px 14px, 100% 100%; -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle, #000 1.6px, transparent 2.1px), radial-gradient(ellipse 70% 70% at 70% 45%, #000 15%, transparent 70%);
  mask-size: 14px 14px, 100% 100%; mask-composite: intersect;
  opacity: 0.5;
}
.blog-dau__luoi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3) var(--s-5); align-items: end; }
.blog-dau__tieu-de { margin-top: var(--s-2); font-size: var(--t-hero); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; color: var(--dark); max-width: 16ch; }
.blog-dau__dan { margin-top: var(--s-3); font-size: var(--t-lg); color: var(--ink-2); max-width: 46ch; }
.blog-dau__mau { max-width: 30ch; padding: 0.625rem 0.875rem; border-radius: var(--radius); line-height: 1.45; }

/* Bài nổi bật */
.blog-noi { padding-top: var(--s-4); }
.bai-noi {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 40px 32px rgba(0, 0, 0, 0.02), 0 22px 18px rgba(0, 0, 0, 0.03), 0 12px 10px rgba(0, 0, 0, 0.03), 0 7px 5px rgba(0, 0, 0, 0.04), 0 3px 2px rgba(0, 0, 0, 0.07);
}
.bai-noi__anh { position: relative; display: block; min-height: 100%; overflow: hidden; }
.bai-noi__anh img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-out); }
.bai-noi:hover .bai-noi__anh img { transform: scale(1.03); }
.bai-noi__nhan {
  position: absolute; left: var(--s-3); top: var(--s-3); display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: var(--t-xs); font-weight: 600; color: var(--dark);
}
.bai-noi__nhan .icon { width: 14px; height: 14px; color: var(--signal); }
.bai-noi__chu { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.bai-noi__tieu-de { font-size: var(--t-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--dark); }
.bai-noi__tieu-de a { color: inherit; }
.bai-noi__tieu-de a:hover { color: var(--accent); }
.bai-noi__tom { color: var(--ink-2); }
.bai-noi .btn { margin-top: var(--s-1); }
.bai-noi .btn .icon { width: 18px; height: 18px; }

/* Thanh lọc chủ đề */
.blog-luoi__dau { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.blog-dem { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; }
.loc-chu-de { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.loc-chu-de button {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: 600 var(--t-sm) / 1 var(--font-body); cursor: pointer;
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.loc-chu-de button .icon { width: 16px; height: 16px; color: var(--accent); }
.loc-chu-de button span { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: 0.375rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: var(--t-xs); }
.loc-chu-de button:hover { border-color: var(--accent); }
.loc-chu-de button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.loc-chu-de button[aria-pressed="true"] .icon { color: #fff; }
.loc-chu-de button[aria-pressed="true"] span { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Lưới thẻ bài: cả thẻ bấm được nhờ link phủ */
.luoi-bai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.the-blog {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2);
}
.the-blog::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.the-blog:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.the-blog:hover::after { transform: scaleX(1); }
.the-blog picture { display: block; overflow: hidden; }
.the-blog img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 700ms var(--ease-out); }
.the-blog:hover img { transform: scale(1.04); }
.the-blog__than { display: flex; flex-direction: column; gap: 0.625rem; flex: 1; padding: var(--s-3); }
.the-blog h3 { font-size: var(--t-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--dark); }
.the-blog h3 a { color: inherit; }
.the-blog h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.the-blog:hover h3 a { color: var(--accent); }
.the-blog h3 + p:not(.bai-the__meta) { font-size: var(--t-sm); color: var(--ink-2); }
.the-blog .bai-the__meta { margin-top: auto; padding-top: 0.5rem; }
.the-blog:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.the-blog h3 a:focus-visible { outline: none; }
.the-blog[hidden] { display: none; }
.blog-rong { margin-top: var(--s-4); padding: var(--s-4); text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Phân trang */
.phan-trang { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); }
.phan-trang ol { display: flex; gap: 0.375rem; }
.phan-trang ol a, .phan-trang__nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 44px; min-height: 44px; padding-inline: 0.75rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: var(--t-sm);
}
.phan-trang ol a:hover, .phan-trang__nut:hover { border-color: var(--accent); color: var(--accent); }
.phan-trang a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.phan-trang a[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.phan-trang__nut .icon { width: 16px; height: 16px; }

@media (max-width: 1024px) { .luoi-bai { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .blog-dau__luoi { grid-template-columns: minmax(0, 1fr); }
  .blog-dau__nen { width: 100%; opacity: 0.32; }
  .bai-noi { grid-template-columns: minmax(0, 1fr); }
  .bai-noi__anh img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .luoi-bai { grid-template-columns: minmax(0, 1fr); }
  .loc-chu-de { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .loc-chu-de::-webkit-scrollbar { display: none; }
  .loc-chu-de button { flex: none; }
  .phan-trang__nut span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* =========================================================
   TRANG BÀI VIẾT (khuôn A theo chương, nhận diện L.E.T.)
   ========================================================= */

/* Thanh tiến độ đọc */
.tiendo { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 60; background: var(--signal); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Hai đường dọc: L0 = mép trái .container, L1 = L0 + rãnh */
:root { --ch-rail: 220px; --ch-chu: 720px; }
@media (max-width: 1099px) { :root { --ch-rail: 150px; } }
@media (max-width: 860px) { :root { --ch-rail: 0px; } }
.ch-cot, .ch-so, .ch-truot, .ch-buoc, .ch-trich, .ch-moc, .ch-dau { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.ch-cot, .ch-so, .ch-truot, .ch-buoc, .ch-trich, .ch-moc { padding-left: var(--ch-rail); }
.ch-cot > * { max-width: var(--ch-chu); }

/* Bìa: ảnh tràn, lớp phủ xanh đậm L.E.T. */
.ch-bia { position: relative; isolation: isolate; min-height: min(88svh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--dark); }
.ch-bia picture, .ch-bia > picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ch-bia > picture img { object-fit: cover; object-position: 50% 35%; }
.ch-bia::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 48, 94, 0.25) 0%, rgba(18, 48, 94, 0.55) 45%, rgba(18, 48, 94, 0.95) 100%); }
.ch-bia-in { padding-block: var(--s-7) var(--s-5); }
.ch-duong { display: flex; align-items: center; gap: 0.375rem; font-size: var(--t-sm); font-weight: 600; }
.ch-duong a { color: rgba(255, 255, 255, 0.92); }
.ch-duong a:hover { color: #fff; text-decoration: underline; }
.ch-duong .icon { width: 14px; height: 14px; color: rgba(255, 255, 255, 0.7); }
.ch-bia__nhan { display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center; margin-top: var(--s-3); }
.ch-bia .the-cham { color: #fff; }
.ch-bia h1 { margin-top: var(--s-2); max-width: 22ch; font-size: var(--t-hero); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; color: #fff; }
.ch-bia .dek { margin-top: var(--s-3); max-width: 58ch; font-size: var(--t-lg); line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.ch-bia .byline { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: var(--s-3); font-size: var(--t-sm); color: rgba(255, 255, 255, 0.9); }
.ch-bia .byline span { display: inline-flex; align-items: center; gap: 0.5rem; }
.ch-bia .byline .icon { width: 16px; height: 16px; color: var(--signal); }
.ch-bia .byline a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ch-cuon { position: absolute; right: var(--gutter); bottom: var(--s-5); display: flex; flex-direction: column; align-items: center; gap: 0.375rem; font-size: var(--t-xs); font-weight: 600; color: #fff; }
.ch-cuon .icon { width: 24px; height: 24px; animation: ch-nhun 1.8s ease-in-out infinite; }
@keyframes ch-nhun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Mục lục chương: bám dưới đầu trang khi cuộn */
.ch-muc { position: sticky; top: 72px; z-index: 20; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ch-muc ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ch-muc li + li { border-left: 1px solid var(--line); }
.ch-muc a { position: relative; display: flex; align-items: baseline; gap: 0.75rem; height: 100%; padding: var(--s-2) var(--s-3); color: var(--ink); transition: background-color var(--dur-1); }
.ch-muc li:first-child a { padding-left: 0; }
.ch-muc a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.ch-muc a:hover { background: var(--bg-2); }
.ch-muc .so { font-size: var(--t-sm); font-weight: 700; color: var(--accent); }
.ch-muc .ten { font-size: var(--t-sm); font-weight: 600; line-height: 1.35; }
.ch-muc a.dang::after { transform: scaleX(1); }
.ch-muc a.dang .so { color: var(--dark); }

/* Thân bài */
.ch-bai { background: var(--bg); }
.ch-cot > p { margin-bottom: var(--s-3); font-size: 1.125rem; line-height: 1.75; color: var(--ink); }
.ch-cot strong { color: var(--dark); }
.ch-mo { padding-block: var(--s-6) var(--s-2); }
.ch-mo .loi { font-size: var(--t-xl); line-height: 1.4; font-weight: 500; color: var(--dark); letter-spacing: -0.01em; }
.ch-mo .loi b { color: var(--accent); font-weight: 600; }

/* Mở chương: số lớn ở L0, tên chương ở L1, gạch dưới chạy hết khung */
.chuong { padding-block: var(--s-6) var(--s-3); scroll-margin-top: 140px; }
.ch-dau { display: grid; grid-template-columns: var(--ch-rail) minmax(0, 1fr); align-items: end; margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); position: relative; }
.ch-dau::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--signal); }
.ch-dau .so-lon { font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 700; line-height: 0.8; letter-spacing: -0.05em; color: var(--accent); }
.ch-dau .nhan { display: block; margin-bottom: 0.5rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.ch-dau h2 { font-size: var(--t-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--dark); }

/* Ô số liệu: thẻ trắng viền mảnh, ô đậm nền xanh đậm */
.ch-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); margin-block: var(--s-4); }
.ch-so .o { padding: var(--s-4) var(--s-3); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.ch-so .o.dam { background: var(--dark); border-color: var(--dark); color: #fff; }
.ch-so .gia { display: block; font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.ch-so .o.dam .gia { color: #fff; }
.ch-so .giai { display: block; margin-top: 0.75rem; font-size: var(--t-sm); line-height: 1.45; }
.ch-so .o:not(.dam) .giai { color: var(--ink); }
.ch-so .nguon { display: block; margin-top: 0.75rem; font-size: var(--t-xs); color: var(--ink-2); }
.ch-so .o.dam .nguon { color: rgba(255, 255, 255, 0.82); }

/* Chùm ảnh trượt */
.ch-truot { margin-block: var(--s-4); }
.ch-truot .ray { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; box-shadow: var(--shadow-up); }
.ch-truot .ray::-webkit-scrollbar { display: none; }
.ch-truot figure { margin: 0; scroll-snap-align: start; }
.ch-truot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ch-truot .dk { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-2); }
.ch-truot .dem { font-size: var(--t-sm); font-weight: 700; color: var(--dark); font-variant-numeric: tabular-nums; }
.ch-truot .nut { display: flex; gap: 0.5rem; }
.ch-truot button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--dark); cursor: pointer; transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
.ch-truot button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.ch-truot button:disabled { opacity: 0.4; cursor: default; }
.ch-truot button .icon { width: 18px; height: 18px; }
.ch-truot .chu { min-height: 1.6em; margin-top: 0.5rem; font-size: var(--t-sm); color: var(--ink-2); }

/* Dòng thời gian ngang */
.ch-moc { margin-block: var(--s-4); }
.ch-moc ol { position: relative; display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); }
.ch-moc li { position: relative; scroll-snap-align: start; padding: var(--s-5) var(--s-3) 0 0; }
.ch-moc li::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; border-top: 2px solid var(--line); }
.ch-moc li:last-child::before { right: auto; width: 32px; }
.ch-moc .cham { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font-size: var(--t-xs); font-weight: 700; }
.ch-moc li.noi .cham { background: var(--warn-bg); border-color: var(--signal); color: var(--warn-ink); box-shadow: 0 0 0 5px rgba(232, 106, 35, 0.16); }
.ch-moc b { display: block; margin-bottom: 0.375rem; font-size: var(--t-base); line-height: 1.35; color: var(--dark); }
.ch-moc span:not(.cham) { display: block; font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); }
@media (min-width: 1100px) { .ch-moc ol { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }

/* Trích dẫn nổi bật */
.ch-trich { margin-block: var(--s-5); }
.ch-trich blockquote { position: relative; max-width: 860px; margin: 0; padding: var(--s-1) 0 var(--s-1) var(--s-4); border-left: 4px solid var(--signal); }
.ch-trich p { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--dark); }
.ch-trich figcaption { margin-top: var(--s-2); padding-left: calc(var(--s-4) + 4px); }
.ch-trich cite { font-style: normal; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }

/* Ba bước */
.ch-buoc { margin-block: var(--s-4); }
.ch-buoc ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); counter-reset: b; }
.ch-buoc li { counter-increment: b; position: relative; padding: var(--s-4) var(--s-3) var(--s-3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ch-buoc li::before { content: "Bước " counter(b); display: inline-flex; margin-bottom: var(--s-2); padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--band); color: var(--accent-ink); font-size: var(--t-xs); font-weight: 700; }
.ch-buoc li:last-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.ch-buoc li:last-child::before { background: rgba(255, 255, 255, 0.18); color: #fff; }
.ch-buoc b { display: block; margin-bottom: 0.375rem; font-size: var(--t-base); line-height: 1.35; }
.ch-buoc li:not(:last-child) b { color: var(--dark); }
.ch-buoc span { display: block; font-size: var(--t-sm); line-height: 1.5; }
.ch-buoc li:not(:last-child) span { color: var(--ink-2); }

/* Khép bài: nền xanh đậm, chữ trắng */
.ch-ket { position: relative; overflow: hidden; isolation: isolate; margin-top: var(--s-6); padding-block: var(--s-7); background: var(--dark); color: #fff; }
.ch-ket::after { content: ""; position: absolute; right: -140px; top: -160px; z-index: -1; width: 460px; height: 460px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, 0.05); }
.ch-ket .chu-lon { max-width: 16ch; font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.ch-ket .chu-lon em { font-style: normal; color: #FFB48A; }
.ch-ket p:not(.chu-lon) { margin-top: var(--s-3); max-width: 46ch; font-size: var(--t-lg); color: rgba(255, 255, 255, 0.9); }
.ch-ket .hang-nut { margin-top: var(--s-4); }
.ch-ket__vien { border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; background: transparent; }
.ch-ket__vien:hover { background: #fff; color: var(--dark); }

/* Ghi công */
.ch-cong { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ch-cong dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); }
.ch-cong dl > div { padding: var(--s-3); }
.ch-cong dl > div:first-child { padding-left: 0; }
.ch-cong dl > div + div { border-left: 1px solid var(--line); }
.ch-cong dt { margin-bottom: 0.25rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.ch-cong dd { margin: 0; font-weight: 600; color: var(--dark); }
.ch-cong dd > a:not([target]) { text-decoration: underline; text-underline-offset: 3px; }

/* Hỏi đáp cuối bài */
.ch-hoi { padding-block: var(--s-6); }
.ch-hoi h2 { margin-bottom: var(--s-3); font-size: var(--t-xl); font-weight: 600; color: var(--dark); }

/* Hiện dần khi cuộn: chỉ transform và opacity */
.js [data-hien] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js [data-hien].thay { opacity: 1; transform: none; }
.ch-muc a:focus-visible, .ch-truot .ray:focus-visible, .ch-truot button:focus-visible, .ch-moc ol:focus-visible, .ch-cuon:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 860px) {
  .ch-muc { position: static; }
  .ch-muc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-muc li:nth-child(3) { border-left: 0; }
  .ch-muc li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ch-muc li:nth-child(3) a { padding-left: 0; }
  .ch-buoc ol { grid-template-columns: minmax(0, 1fr); }
  .ch-cong dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-cong dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ch-cong dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chuong { scroll-margin-top: 80px; }
}
@media (max-width: 560px) {
  .ch-dau { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .ch-cuon { display: none; }
  .ch-trich blockquote { padding-left: var(--s-3); }
  .ch-trich figcaption { padding-left: calc(var(--s-3) + 4px); }
  .ch-muc .ten { font-size: var(--t-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-cuon .icon { animation: none; }
  .js [data-hien] { opacity: 1; transform: none; transition: none; }
  .the-blog:hover, .the-blog:hover img, .bai-noi:hover .bai-noi__anh img { transform: none; }
}
/* Số viết bằng chữ ("8 hoặc 10"): nhỏ hơn một bậc, không gãy dòng */
.ch-so .gia--chu { font-size: clamp(2rem, 3.6vw, 2.75rem); white-space: nowrap; line-height: 1.2; }

/* Thẻ chỉ có chữ (bài tóm lược không có ảnh riêng), 01/11/2026 */
.the-blog--chu .the-blog__than { padding-top: var(--s-4); }
.the-blog__goc { font-size: var(--t-xs); color: var(--ink-2); font-style: italic; }
.bai-noi .the-blog__goc { margin-top: -0.25rem; }

/* Trang bài Blog theo chương (01/11/2026). Mục lục 5 đến 7 chương: một hàng, cuộn ngang khi chật */
.ch-muc ol.nhieu { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scrollbar-width: thin; }
.ch-muc ol.nhieu li:nth-child(n) { border-top: 0; }
.ch-muc ol.nhieu li + li { border-left: 1px solid var(--line); }
.ch-muc ol.nhieu li:nth-child(n+2) a { padding-left: var(--s-3); }
.ch-mo__nhan { margin-bottom: var(--s-2); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ch-cot ul { margin: 0 0 var(--s-3); padding-left: 1.25rem; list-style: disc; }
.ch-cot ul li { margin-bottom: 0.625rem; font-size: 1.125rem; line-height: 1.7; color: var(--ink); }
.ch-cot ul li::marker { color: var(--signal); }
.ch-y__dau { margin: var(--s-3) 0 var(--s-2); font-size: var(--t-lg); font-weight: 600; color: var(--dark); }
/* Ý chính bài gốc: danh sách đánh số, mỗi ý một hàng có số tròn */
.ch-y { width: min(100% - 2 * var(--gutter), var(--container)); margin: 0 auto var(--s-3); padding-left: var(--ch-rail); list-style: none; counter-reset: y; }
.ch-y li { counter-increment: y; position: relative; max-width: var(--ch-chu); padding: var(--s-2) 0 var(--s-2) 3rem; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); }
.ch-y li:last-child { border-bottom: 1px solid var(--line); }
.ch-y li::before { content: counter(y); position: absolute; left: 0; top: var(--s-2); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--band); color: var(--accent-ink); font-size: var(--t-sm); font-weight: 700; }
/* Tự soi: ba thẻ câu hỏi, thẻ cuối nền xanh */
.ch-buoc--hoi li::before { content: "Câu hỏi " counter(b); }
.ch-buoc--hoi b { font-weight: 600; font-size: var(--t-lg); line-height: 1.4; }
.ch-muc ol.nhieu { grid-auto-columns: minmax(176px, 1fr); position: relative; }
.ch-muc ol.nhieu a { padding-block: var(--s-2); }
.ch-muc ol.nhieu .ten { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-muc { transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2); }
.ch-muc.an { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* Căn đều hai bên cho thân bài (.ch-bai--deu, cả 20 bài từ 01/11/2026 theo Vũ Hải). Chỉ áp cho đoạn văn và gạch đầu dòng, không áp cho lời mở,
   tiêu đề, câu trích. Tiếng Việt không ngắt âm tiết bằng gạch nối được, nên dòng cuối giữ căn trái và màn hẹp
   dưới 600px trả về căn trái để tránh khe trắng lớn giữa các chữ. */
.ch-bai--deu .ch-cot > p, .ch-bai--deu .ch-cot li, .ch-bai--deu .ch-y li { text-align: justify; text-justify: inter-word; text-align-last: left; }
@media (max-width: 600px) { .ch-bai--deu .ch-cot > p, .ch-bai--deu .ch-cot li, .ch-bai--deu .ch-y li { text-align: left; } }

/* Sửa 02/11/2026: đầu trang tự ẩn khi cuộn xuống, mục lục chương lên sát mép trên để không hở khe 72px lộ chữ phía sau;
   mục lục nhiều chương cuộn ngang bằng vuốt hoặc tự kéo theo chương đang đọc, giấu thanh cuộn (Windows hiện cả thanh dọc) */
.ch-muc { transition: top var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), opacity var(--dur-2); }
body:has(.site-header.is-hidden) .ch-muc { top: 0; }
.ch-muc ol.nhieu { overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.ch-muc ol.nhieu::-webkit-scrollbar { display: none; }

/* Dải thông tin bài: bốn ô trải hết chiều rộng, ghi chú bản quyền nằm cùng dải, chữ chạy hết bề ngang */
.ch-cong dl > div { padding: var(--s-4) var(--s-4); }
.ch-cong dl > div:last-child { padding-right: 0; }
.ch-cong dd { font-size: var(--t-base); line-height: 1.45; }
.ch-cong dd .icon { width: 0.95em; height: 0.95em; margin-left: 0.35em; vertical-align: -0.1em; }
.ch-cong__bq { display: flex; gap: 0.75rem; align-items: flex-start; max-width: none; margin: 0; padding: var(--s-3) 0 var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-sm); line-height: 1.6; color: var(--ink-2); }
.ch-cong__bq .icon { flex: none; margin-top: 0.2em; color: var(--accent); }
@media (max-width: 860px) {
  .ch-cong dl > div { padding: var(--s-3); }
  .ch-cong dl > div:nth-child(even) { padding-right: 0; }
}
.ch-cong dd { overflow-wrap: normal; word-break: normal; hyphens: none; }
.ch-cong dd .icon { display: inline-block; }
@media (max-width: 520px) {
  .ch-cong dl { grid-template-columns: minmax(0, 1fr); }
  .ch-cong dl > div, .ch-cong dl > div:nth-child(even) { padding: var(--s-3) 0; border-left: 0; }
  .ch-cong dl > div + div { border-top: 1px solid var(--line); }
}
