/* ZH: giao diện bài viết (blog) và trang danh sách bài viết. Dùng token --lx-* của zh-luxury.css, nạp SAU zh-cong-khai.css. Tiền tố bv-.
   Cỡ chữ chỉ: 12 / 14 / 16 / 18 / 20 / 24 (tiêu đề lớn dùng clamp). Độ đậm <= 700. */
.bv-wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.bv-wrap.bv-wide { max-width: 1120px; }
.bv-crumb { font-size: 14px; color: var(--lx-text2); margin: 0 0 18px; }
.bv-crumb a { color: var(--lx-text2) !important; text-decoration: none; }
.bv-crumb a:hover { text-decoration: underline; }
.bv-chip { display: inline-block; margin: 0 0 12px !important; padding: 3px 10px; border: 1px solid var(--lx-hair); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-gold-text); }
.bv-h1 { font-size: clamp(28px, 4.4vw, 40px) !important; line-height: 1.2 !important; margin: 0 0 14px !important; }
.bv-lead { font-size: 18px; color: var(--lx-text2); max-width: 760px; margin: 0 0 28px; }
.bv-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 24px !important; font-size: 14px; color: var(--lx-text2); }

/* mục lục */
.bv-toc { border: 1px solid var(--lx-hair); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; background: color-mix(in srgb, var(--lx-surface) 60%, transparent); }
.bv-toc-t { margin: 0 0 8px !important; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-text2); }
.bv-toc ol { margin: 0 !important; padding-left: 20px; font-size: 16px; }
.bv-toc li { margin: 0 0 4px; }
.bv-toc a { text-decoration: none; }
.bv-toc a:hover { text-decoration: underline; }

/* thân bài */
.bv-body { font-size: 18px; line-height: 1.8; }
.bv-body h2 { font-size: 24px !important; margin: 44px 0 14px !important; scroll-margin-top: 92px; }
.bv-body h3 { font-size: 20px !important; margin: 28px 0 10px !important; }
.bv-body p { margin: 0 0 18px; }
.bv-body ul, .bv-body ol { margin: 0 0 20px; padding-left: 24px; }
.bv-body li { margin: 0 0 8px; }
.bv-body strong { font-weight: 700; }
.bv-body hr { border: 0; border-top: 1px solid var(--lx-hair); margin: 36px 0; }
.bv-body blockquote { margin: 0 0 20px; padding: 4px 0 4px 18px; border-left: 3px solid var(--lx-gold); color: var(--lx-text2); }
.bv-body blockquote p { margin: 0; }
.bv-body a { text-underline-offset: 3px; }

/* khối nhấn: tóm tắt nhanh, bài tập, lưu ý */
.bv-callout { border: 1px solid var(--lx-hair); border-left: 4px solid var(--lx-gold); border-radius: 12px; padding: 16px 20px 6px; margin: 26px 0; background: color-mix(in srgb, var(--lx-surface) 70%, transparent); }
.bv-callout-t { margin: 0 0 8px !important; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-gold-text); }
.bv-callout p:last-child, .bv-callout ul:last-child, .bv-callout ol:last-child { margin-bottom: 12px; }
.bv-bai-tap { border-left-color: var(--lx-gold-hi, var(--lx-gold)); background: color-mix(in srgb, var(--lx-gold) 8%, transparent); }

/* bảng */
.bv-tblw { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.bv-tblw table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; line-height: 1.5; }
.bv-tblw th, .bv-tblw td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--lx-hair); }
.bv-tblw th { background: color-mix(in srgb, var(--lx-gold) 10%, transparent); font-weight: 700; }

/* kêu gọi hành động cuối bài */
.bv-cta { margin: 44px 0 36px; padding: 24px; border: 1px solid var(--lx-hair); border-radius: 16px; background: color-mix(in srgb, var(--lx-surface) 70%, transparent); }
.bv-cta h2 { font-size: 24px !important; margin: 0 0 8px !important; }
.bv-cta p { margin: 0 0 14px; color: var(--lx-text2); }
.bv-cta p.cd-row { margin: 0; }
.bv-cta p.bv-cta-next { margin: 16px 0 0; font-size: 15px; line-height: 1.6; }
.bv-cta p.bv-cta-next a { color: var(--lx-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* thẻ bài viết (đọc tiếp, danh sách) */
.bv-related h2 { font-size: 24px !important; margin: 0 0 16px !important; }
.bv-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 8px; }
.bv-cards-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 40px; }
.bv-card { border: 1px solid var(--lx-hair); border-radius: 16px; padding: 20px; background: color-mix(in srgb, var(--lx-surface) 60%, transparent); display: flex; flex-direction: column; }
.bv-card:hover { border-color: var(--lx-gold-hi, var(--lx-gold)); }
.bv-card h3 { font-size: 20px !important; line-height: 1.35 !important; margin: 0 0 8px !important; }
.bv-card h3 a { color: var(--lx-text) !important; text-decoration: none; }
.bv-card h3 a:hover { text-decoration: underline; }
.bv-card p { margin: 0 0 10px; font-size: 16px; color: var(--lx-text2); }
.bv-card .bv-chip { align-self: flex-start; }
.bv-card .bv-card-m { margin: auto 0 0; font-size: 14px; }
.bv-note { font-size: 14px; color: var(--lx-text2); margin: 0; }

@media (min-width: 820px) { .bv-cards:not(.bv-cards-lg) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bv-wrap { padding: 24px 16px 48px; } .bv-body { font-size: 18px; } .bv-cta { padding: 20px 16px; } .bv-tblw table { min-width: 0; font-size: 14px; } .bv-tblw th, .bv-tblw td { padding: 8px; } }
@media print { .bv-toc, .bv-cta, .bv-related { display: none; } }

/* Ghi đè cỡ tiêu đề: zh-luxury.css ép h1/h2/h3 bằng "html[data-theme] body h2 {…} !important" (và h1 + p 16px), nên các cỡ dưới đây cần cùng tiền tố để thắng. */
html[data-theme] body .bv-h1 { font-size: clamp(28px, 4.4vw, 40px) !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
html[data-theme] body .bv-body h2, html[data-theme] body .bv-cta h2, html[data-theme] body .bv-related h2 { font-size: 24px !important; line-height: 1.3 !important; }
html[data-theme] body .bv-body h3 { font-size: 20px !important; line-height: 1.35 !important; }
html[data-theme] body .bv-card h3 { font-size: 18px !important; line-height: 1.4 !important; }
html[data-theme] body .bv-wrap .bv-meta { font-size: 14px !important; line-height: 1.5 !important; }   /* h1 + p của luxury có độ ưu tiên cao hơn một bậc */
html[data-theme] body .bv-wrap .bv-lead { font-size: 18px !important; line-height: 1.6 !important; margin-top: 0 !important; }
@media (max-width: 560px) {
  html[data-theme] body .bv-body h2, html[data-theme] body .bv-cta h2, html[data-theme] body .bv-related h2 { font-size: 20px !important; }
  html[data-theme] body .bv-body h3 { font-size: 18px !important; }
}
/* hộp "Về tác giả" và đoạn trải nghiệm thật (E-E-A-T) */
html[data-theme] body .bv-author{margin:28px 0 0 !important;padding:16px 18px !important;border:1px solid var(--cd-line,rgba(128,140,170,.35)) !important;border-radius:12px !important;font-size:15px !important;line-height:1.6 !important}
html[data-theme] body .bv-author p{margin:0 0 6px !important}
html[data-theme] body .bv-author p:last-child{margin-bottom:0 !important}
html[data-theme] body .bv-author-t{font-size:12px !important;letter-spacing:.08em !important;text-transform:uppercase !important;opacity:.75}
/* nút "Sửa bài này" cho người có quyền (chỉ hiện sau khi trình duyệt biết người dùng có quyền) */
.bv-sua { position: fixed; left: 16px; bottom: 16px; z-index: 40; padding: 10px 16px; border-radius: 999px; background: linear-gradient(135deg, #e8b84b, #c8961e); color: #1a1405 !important; font-size: 14px; font-weight: 700; text-decoration: none !important; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.bv-sua:hover { filter: brightness(1.08); }
/* ảnh trong bài */
html[data-theme] body .bv-fig { margin: 24px 0 !important; }
html[data-theme] body .bv-fig img { max-width: 100% !important; height: auto !important; border-radius: 12px !important; display: block !important; }
html[data-theme] body .bv-fig figcaption { margin: 8px 0 0 !important; font-size: 14px !important; color: var(--lx-text2) !important; text-align: center !important; }
html[data-theme] body .bv-hero { margin: 0 0 24px !important; }
.bv-card-img { display: block; margin: -20px -20px 14px; border-radius: 16px 16px 0 0; overflow: hidden; }
.bv-card-img img { width: 100%; height: auto; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }

/* danh mục bài viết (ZH_BLOG_DANH_MUC_V1) */
.bv-chip a { color: inherit !important; text-decoration: none; }
.bv-chip a:hover { text-decoration: underline; }
.bv-catgrid { margin: 0 0 12px; }
.bv-catgrid h2, .bv-allt, .bv-start h2, .bv-group-t { font-size: 24px !important; line-height: 1.3 !important; margin: 0 0 16px !important; }
.bv-allt { margin: 36px 0 16px !important; }
.bv-catcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bv-catcard { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--lx-hair); border-radius: 14px; background: color-mix(in srgb, var(--lx-surface) 60%, transparent); text-decoration: none !important; color: var(--lx-text) !important; }
.bv-catcard:hover { border-color: var(--lx-gold-hi, var(--lx-gold)); }
.bv-catcard strong { font-size: 18px; font-weight: 700; }
.bv-catcard span { font-size: 15px; line-height: 1.5; color: var(--lx-text2); }
.bv-catcard em { margin-top: auto; padding-top: 4px; font-size: 14px; font-style: normal; font-weight: 700; color: var(--lx-gold-text, var(--lx-text2)); }
.bv-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.bv-catchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--lx-hair); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none !important; color: var(--lx-text2) !important; }
.bv-catchip span { font-size: 12px; opacity: .75; }
.bv-catchip:hover { border-color: var(--lx-gold-hi, var(--lx-gold)); color: var(--lx-text) !important; }
.bv-catchip.on { background: color-mix(in srgb, var(--lx-gold) 16%, transparent); border-color: var(--lx-gold-hi, var(--lx-gold)); color: var(--lx-text) !important; }
.bv-start { margin: 0 0 36px; padding: 20px 24px; border: 1px solid var(--lx-hair); border-left: 4px solid var(--lx-gold); border-radius: 14px; background: color-mix(in srgb, var(--lx-surface) 70%, transparent); }
.bv-start h2 { margin-bottom: 12px !important; }
.bv-start ol { margin: 0; padding-left: 22px; }
.bv-start li { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.bv-start li a { display: block; font-size: 18px; font-weight: 700; color: var(--lx-text) !important; }
.bv-start li span { display: block; margin-top: 2px; color: var(--lx-text2); }
.bv-group { margin: 0 0 12px; }
.bv-more { margin: 24px 0 8px; font-size: 16px; color: var(--lx-text2); }
.bv-note-cat { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--lx-hair); border-radius: 12px; }
@media (max-width: 560px) { .bv-start { padding: 16px; } .bv-catcards { grid-template-columns: 1fr; } }
html[data-theme] body .bv-catgrid h2, html[data-theme] body .bv-allt, html[data-theme] body .bv-start h2, html[data-theme] body .bv-group-t { font-size: 24px !important; line-height: 1.3 !important; }
@media (max-width: 560px) { html[data-theme] body .bv-catgrid h2, html[data-theme] body .bv-allt, html[data-theme] body .bv-start h2, html[data-theme] body .bv-group-t { font-size: 20px !important; } }

/* ô tìm kiếm bài viết (ZH_BLOG_TIM_V1) */
.bv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bv-search { display: flex; gap: 8px; max-width: 640px; margin: 0 0 24px; }
.bv-search input { flex: 1; min-width: 0; padding: 12px 16px; font-size: 16px; border: 1px solid var(--lx-hair); border-radius: 12px; background: color-mix(in srgb, var(--lx-surface) 70%, transparent); color: var(--lx-text); }
.bv-search input:focus { outline: 2px solid var(--lx-gold-hi, var(--lx-gold)); outline-offset: 1px; }
.bv-search button { flex: none; padding: 12px 22px; font-size: 16px; }
.bv-res { margin: 0 0 28px; }
.bv-res[hidden], [data-bv-hide][hidden] { display: none !important; }
.bv-res-n { margin: 0 0 12px; font-size: 16px; color: var(--lx-text2); }
.bv-res-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.bv-resitem { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; padding: 14px 18px; border: 1px solid var(--lx-hair); border-radius: 14px; background: color-mix(in srgb, var(--lx-surface) 60%, transparent); text-decoration: none !important; color: var(--lx-text) !important; }
.bv-resitem:hover { border-color: var(--lx-gold-hi, var(--lx-gold)); }
.bv-resitem strong { font-size: 18px; font-weight: 700; line-height: 1.4; }
.bv-resc { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-gold-text, var(--lx-text2)); }
.bv-resd { font-size: 15px; line-height: 1.5; color: var(--lx-text2); }
@media (max-width: 560px) { .bv-search { flex-direction: column; } .bv-search button { width: 100%; } }
