/* ══════════════════════════════════════════════════════════════════════════
   page-wide.css — bộ trình bày TRANG NỘI DUNG RỘNG của chogia.vn
   Chuẩn trình bày: thuvienmasothue.com/gioi-thieu (Sếp Long chốt 07/11/2026).
   Cùng khuôn với tempsmail.org · giavangthegioi.vn · tygiayennhat.com.

   🔴 KHUNG 1170px = `.container` / `.entry-content` của theme Chogia_V2
      (đo thật 07/11/2026). KHÔNG bê 1312px của bản chuẩn — nội dung rộng hơn
      thanh điều hướng thì trang lệch trục, nhìn là thấy hỏng. Giữ nguyên TỶ LỆ
      và THANG CHỮ của bản chuẩn (H1 50px · H2 32px · hero padding 48 · bo 32),
      chỉ đổi bề ngang khung.

   🔴 MỌI luật bắt đầu bằng `.pw` — tệp này nạp cùng CSS của theme và 25
      plugin. Một luật trần kiểu `table{}` sẽ rò ra toàn site.

   🔴 CSS chỉ nạp trên ĐÚNG trang có bố cục (xem `cg-trang-rong.php`), không
      đổ vào 6.823 bài viết còn lại.
   ══════════════════════════════════════════════════════════════════════════ */

.pw {
  --pw-khung: 1170px;            /* = .container cua theme Chogia_V2 */
  --pw-gap: 20px;
  --pw-vien: #e3e7ee;
  --pw-nen-dam: #122b50;         /* --theme-primary-color */
  --pw-nen-dam2: #13212f;        /* --theme-second-color */
  --pw-nhan: #1091FF;            /* --theme-link-color */
  --pw-nhan-2: #5ec2ff;
  --pw-nhan-sau: #0a5fb0;
  --pw-nhan-nhat: #eaf4ff;
  --pw-sang: #7cc8ff;            /* dung TREN nen toi */
  --pw-mo: #5c6878;
  --pw-trang: #fff;
  --pw-nen2: #f6f8fb;
  color: #222;                   /* --theme-text-color */
  font-size: 16px;
  line-height: 1.7;
}
.pw *, .pw *::before, .pw *::after { box-sizing: border-box; }
.pw a { color: var(--pw-nhan-sau); text-decoration: none; }
.pw a:hover { text-decoration: underline; }

.pw-wrap { max-width: var(--pw-khung); margin: 0 auto; padding: 0 20px 56px; }

/* ── chữ ────────────────────────────────────────────────────────────────── */
.pw h1 {
  margin: 0; font-family: inherit;
  font-size: clamp(29px, 3.9vw, 50px); line-height: 1.12;
  font-weight: 800; letter-spacing: -0.03em; text-wrap: balance;
}
.pw h2 {
  position: relative; margin: 46px 0 16px; padding-top: 30px;
  border-top: 1px solid var(--pw-vien); font-family: inherit;
  font-size: clamp(23px, 2.5vw, 32px); line-height: 1.25;
  font-weight: 800; letter-spacing: -0.02em; color: #122b50;
}
/* vạch nhấn ngắn đè lên đường kẻ — mỗi mục một mốc màu để mắt bắt nhịp */
.pw h2::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pw-nhan), var(--pw-nhan-2));
}
.pw h3 { margin: 24px 0 8px; font-size: 18.5px; font-weight: 700; line-height: 1.4; color: #122b50; }
.pw p  { margin: 0 0 14px; line-height: 1.8; }
.pw ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.8; }
.pw li { margin-bottom: 6px; }
.pw strong { color: #122b50; }

/* ── đường dẫn ──────────────────────────────────────────────────────────── */
.pw-duong {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--pw-mo); padding: 20px 0 16px;
}
.pw-duong b { color: #222; font-weight: 600; }

/* ── khối mở đầu ────────────────────────────────────────────────────────── */
.pw-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--pw-gap);
  background: linear-gradient(135deg, var(--pw-nen-dam), var(--pw-nen-dam2));
  color: #fff; border-radius: 32px; padding: clamp(28px, 3.5vw, 48px);
  position: relative; overflow: hidden;
}
.pw-hero::before {
  content: ""; position: absolute; left: -120px; bottom: -170px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,200,255,.30), transparent 70%);
  pointer-events: none;
}
.pw-hero > * { position: relative; }
.pw-hero-trai { display: grid; gap: 20px; align-content: center; }
.pw-hero h1 { color: #fff; }
.pw-hero p { margin: 0; font-size: 17px; line-height: 1.7; color: #c2d0e2; max-width: 580px; }
.pw-nhan {
  justify-self: start; padding: 7px 16px; border-radius: 999px;
  background: rgba(124,200,255,.16); font-size: 13px; font-weight: 700;
  color: var(--pw-sang); letter-spacing: .02em;
}
.pw-nut { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.pw-nut a { height: 50px; display: inline-flex; align-items: center; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.pw-nut a:hover { text-decoration: none; }
.pw-nut .pw-chinh { background: linear-gradient(135deg, var(--pw-sang), var(--pw-nhan)); color: #2A1F05; }
.pw-nut .pw-chinh:hover { filter: brightness(1.06); }
.pw-nut .pw-phu { border: 1px solid rgba(255,255,255,.30); color: #fff; }
.pw-nut .pw-phu:hover { background: rgba(255,255,255,.09); }

.pw-hero-hop {
  min-height: 300px; border-radius: 24px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  padding: 30px; display: grid; gap: 16px; align-content: center;
}
.pw-hero-hop > b { font-size: 13px; font-weight: 700; color: var(--pw-sang); letter-spacing: .05em; }
.pw-hero-hop > span {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  font-size: 15.5px; line-height: 1.6; color: #dbe4f0;
}
.pw-hero-hop svg { margin-top: 3px; }

/* ── dải số liệu ────────────────────────────────────────────────────────── */
.pw-so { margin-top: var(--pw-gap); display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; }
.pw-so > div {
  position: relative; overflow: hidden; background: var(--pw-trang);
  border: 1px solid var(--pw-vien); border-radius: 24px; padding: 26px;
  display: grid; gap: 4px; box-shadow: 0 1px 2px rgba(18,43,80,.05), 0 8px 24px rgba(18,43,80,.06);
}
.pw-so > div::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--pw-nhan), var(--pw-nhan-2));
}
.pw-so b {
  font-family: inherit; font-size: 38px; font-weight: 800;
  letter-spacing: -0.035em; color: var(--pw-nhan-sau);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.pw-so em { font-style: normal; font-size: 14px; color: var(--pw-mo); }
/* ô CHỦ ĐẠO — nền đậm, để dải số có điểm neo thay vì phẳng đều */
.pw-so > .pw-noi { background: linear-gradient(135deg, var(--pw-nen-dam), var(--pw-nen-dam2)); border-color: transparent; }
.pw-so > .pw-noi::before { background: var(--pw-sang); }
.pw-so > .pw-noi b { color: var(--pw-sang); }
.pw-so > .pw-noi em { color: #c2d0e2; }

/* ── thẻ nguyên tắc ─────────────────────────────────────────────────────── */
.pw-the { margin-top: var(--pw-gap); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.pw-the > div {
  background: var(--pw-trang); border: 1px solid var(--pw-vien); border-radius: 24px;
  padding: 28px; display: grid; gap: 12px; align-content: start; box-shadow: 0 1px 2px rgba(18,43,80,.05), 0 8px 24px rgba(18,43,80,.06);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pw-the > div:hover { border-color: var(--pw-nhan); box-shadow: 0 10px 24px rgba(16,145,255,.16); transform: translateY(-2px); }
/* số thứ tự thành huy hiệu tròn thay vì chữ nhỏ lọt thỏm */
.pw-the i {
  font-style: normal; font-size: 14px; font-weight: 800;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pw-nhan-nhat); color: var(--pw-nhan-sau);
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.pw-the strong { font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: #122b50; }
.pw-the span { font-size: 15px; line-height: 1.7; color: var(--pw-mo); }

/* ── khối quy trình ─────────────────────────────────────────────────────── */
.pw-qt {
  margin-top: var(--pw-gap); background: var(--pw-trang); border: 1px solid var(--pw-vien);
  border-radius: 32px; padding: clamp(26px, 3.2vw, 44px); display: grid; gap: 28px;
}
.pw-qt-dau { display: grid; gap: 8px; max-width: 660px; }
.pw-qt-dau i { font-style: normal; font-size: 13px; font-weight: 800; color: var(--pw-nhan-sau); letter-spacing: .04em; }
.pw-qt h2 { margin: 0; padding: 0; border: 0; }
.pw-qt h2::before { display: none; }
.pw-buoc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.pw-buoc > div { padding: 24px; border-radius: 22px; background: var(--pw-nen2); display: grid; gap: 10px; align-content: start; }
.pw-buoc b {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--pw-nen-dam), var(--pw-nen-dam2));
  color: var(--pw-sang); display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.pw-buoc strong { font-size: 17.5px; font-weight: 700; color: #122b50; }
.pw-buoc span { font-size: 14.5px; line-height: 1.7; color: var(--pw-mo); }
.pw-chip { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 22px; border-top: 1px solid var(--pw-vien); }
.pw-chip > b { font-size: 14px; font-weight: 600; color: var(--pw-mo); margin-right: 4px; }
.pw-chip a {
  display: inline-block; padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--pw-vien); font-size: 13.5px; font-weight: 600; color: #222;
}
.pw-chip a:hover { border-color: var(--pw-nhan); color: var(--pw-nhan-sau); text-decoration: none; }

/* ── thân bài ─────────────────────────────────────────────────────────────
   🔴 Bản chuẩn: khối bài viết GẦN KÍN khung, không phải cột hẹp. */
.pw-than {
  margin-top: var(--pw-gap); background: var(--pw-trang);
  border: 1px solid var(--pw-vien); border-radius: 32px; padding: clamp(24px, 2.7vw, 35px);
}
.pw-than > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pw-dinhnghia {
  background: linear-gradient(135deg, var(--pw-nhan-nhat), var(--pw-nhan-nhat));
  border: 1px solid var(--pw-vien); border-left: 5px solid var(--pw-nhan);
  padding: 22px 26px; border-radius: 0 16px 16px 0; margin: 0 0 22px;
  font-size: 17.5px; line-height: 1.8;
}
.pw-dinhnghia strong { color: var(--pw-nhan-sau); }
.pw-dem { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin: 18px 0 26px; }
.pw-dem > div { text-align: center; border: 1px solid var(--pw-vien); border-radius: 16px; padding: 20px 10px; background: var(--pw-nhan-nhat); }
.pw-dem b {
  display: block; font-family: inherit; font-size: 30px; color: var(--pw-nhan-sau);
  line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.pw-dem em { font-style: normal; font-size: 13.5px; color: var(--pw-mo); }

.pw-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 14px; margin: 18px 0; }
.pw-luoi > div {
  position: relative; overflow: hidden; border: 1px solid var(--pw-vien); border-radius: 16px;
  padding: 20px 22px; background: var(--pw-trang); box-shadow: 0 1px 2px rgba(18,43,80,.05), 0 8px 24px rgba(18,43,80,.06);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
/* dải nhấn dọc mép trái, hiện rõ khi rê chuột */
.pw-luoi > div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--pw-nhan); opacity: .25; transition: opacity .15s; }
.pw-luoi > div:hover { border-color: var(--pw-nhan); box-shadow: 0 10px 24px rgba(16,145,255,.16); transform: translateY(-2px); }
.pw-luoi > div:hover::before { opacity: 1; }
.pw-luoi strong { display: block; font-size: 16.5px; margin-bottom: 7px; color: var(--pw-nhan-sau); line-height: 1.4; font-weight: 700; }
.pw-luoi span { display: block; font-size: 15px; color: var(--pw-mo); line-height: 1.72; }

.pw-than table {
  width: 100%; border-collapse: collapse; border: 1px solid var(--pw-vien);
  border-radius: 14px; overflow: hidden; margin: 14px 0 8px; font-size: 15.5px;
}
.pw-than table caption {
  /* 🔴 Một số theme đặt `caption{caption-side:bottom}` — không khai lại thì
     chú thích rơi xuống DƯỚI bảng, đọc như ghi chú lạc chỗ. */
  caption-side: top; text-align: left; padding: 0 0 10px; color: var(--pw-mo); font-size: 14px;
}
.pw-than th {
  width: 34%; text-align: left; background: var(--pw-nhan-nhat); padding: 14px 18px;
  border-bottom: 1px solid var(--pw-vien); vertical-align: top; font-weight: 700; color: var(--pw-nhan-sau);
}
.pw-than td { padding: 14px 18px; border-bottom: 1px solid var(--pw-vien); vertical-align: top; }
.pw-than tbody tr:nth-child(even) td { background: var(--pw-nen2); }
.pw-than tr:last-child th, .pw-than tr:last-child td { border-bottom: 0; }

.pw-than details {
  border: 1px solid var(--pw-vien); border-radius: 14px; margin: 0 0 10px;
  background: var(--pw-trang); transition: border-color .15s, background .15s;
}
.pw-than details:hover { border-color: var(--pw-vien); }
.pw-than details[open] { border-color: var(--pw-nhan); background: var(--pw-nhan-nhat); }
.pw-than summary {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer;
  font-weight: 700; font-size: 16.5px; list-style: none; line-height: 1.5; color: #122b50;
}
.pw-than summary::-webkit-details-marker { display: none; }
/* dấu +/− thành huy hiệu vuông bo góc, thấy rõ là bấm được */
.pw-than summary::before {
  content: "+"; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  background: var(--pw-nhan-nhat); color: var(--pw-nhan-sau);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.pw-than details[open] summary { color: var(--pw-nhan-sau); }
.pw-than details[open] summary::before { content: "\2212"; background: var(--pw-nhan); color: #fff; }
.pw-tl { padding: 0 20px 18px 58px; font-size: 15.5px; line-height: 1.8; color: var(--pw-mo); }

.pw-chuy {
  background: var(--pw-nen2); border: 1px solid var(--pw-vien);
  border-left: 5px solid var(--pw-sang); border-radius: 0 14px 14px 0;
  padding: 20px 24px; font-size: 15.5px; line-height: 1.8; margin: 20px 0;
}
.pw-chuy strong { color: var(--pw-nhan-sau); }

/* ── dải kêu gọi hành động ────────────────────────────────────────────────
   🔴 Trang dài vài nghìn pixel mà từ sau hero toàn thẻ sáng ⇒ nhạt dần về
      cuối. Dải này là điểm neo màu thứ hai. */
.pw-goi {
  margin-top: var(--pw-gap);
  background: linear-gradient(135deg, var(--pw-nen-dam), var(--pw-nen-dam2));
  border-radius: 32px; padding: clamp(28px, 3.5vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 24px; align-items: center; position: relative; overflow: hidden;
}
.pw-goi::before {
  content: ""; position: absolute; right: -140px; top: -160px; width: 440px; height: 440px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124,200,255,.26), transparent 70%);
  pointer-events: none;
}
.pw-goi > * { position: relative; }
.pw-goi h2 {
  margin: 0; padding: 0; border: 0; color: #fff;
  font-size: clamp(23px, 2.7vw, 34px); text-wrap: balance;
}
.pw-goi h2::before { display: none; }
.pw-goi p { margin: 10px 0 0; color: #c2d0e2; font-size: 16.5px; max-width: 560px; }
.pw-goi .pw-nut { justify-content: flex-end; margin: 0; }

/* ── mục "đi tiếp" — mũi tên nhấn, phân biệt với lưới thường ─────────────── */
.pw-tiep > div { background: var(--pw-nen2); }
.pw-tiep strong a::after { content: " \2192"; }

/* ── màn hình nhỏ ───────────────────────────────────────────────────────── */
@media (max-width: 860px) { .pw-goi .pw-nut { justify-content: flex-start; } }
@media (max-width: 640px) {
  .pw { font-size: 15.5px; }
  .pw-wrap { padding: 0 14px 40px; }
  .pw-hero { border-radius: 24px; }
  .pw-hero-hop { min-height: 0; padding: 24px; }
  .pw-qt, .pw-than, .pw-goi { border-radius: 24px; }
  .pw h2 { margin-top: 34px; padding-top: 22px; }
  .pw-than th { width: 42%; }
  .pw-than table { font-size: 14.5px; }
  .pw-than th, .pw-than td { padding: 11px 13px; }
  .pw-tl { padding-left: 20px; }
}

/* ── chữ đậm NẰM TRONG khối nền tối ──────────────────────────────────────
   🔴 LỖI ĐO ĐƯỢC 07/11/2026, tương phản 1.43 — tức chữ BIẾN MẤT:
      `.pw strong{color:#122b50}` là navy #101D30. Đặt một `<strong>`
      vào hộp hero (nền navy) thì chữ chìm hoàn toàn ở chế độ SÁNG. Chế độ
      tối lại không sao vì `--heading` khi đó là màu sáng ⇒ **lỗi chỉ hiện ở
      MỘT chế độ**, soát một chế độ là bỏ lọt.
   🔴 Và hai bộ đo tương phản đầu của em đều báo ĐẠT oan vì chúng chỉ đọc
      `background-color`, mù với `linear-gradient` của hero nên tưởng nền
      trắng. Phép đo đúng là đọc PIXEL trong ảnh chụp. */
.pw-hero strong, .pw-hero b,
.pw-goi strong, .pw-goi b,
.pw-so .pw-noi strong, .pw-so .pw-noi b,
.pw-buoc b strong { color: var(--pw-sang); }
.pw-hero-hop > b { color: var(--pw-sang); }   /* giữ nguyên, khai lại cho rõ ý */


/* 🔴 Giá trị ô số liệu phải NGẮN; nếu vẫn dài thì ngắt cho đều thay vì rơi
   lại một mẩu. Vấp 07/11: "07/11/2026 08:00" ngắt thành "07/11/202"/"08:00". */
.pw-so b, .pw-dem b { text-wrap: balance; }

/* 🔴 Theme Chogia_V2 có sẵn luật cho `.entry-content h2/table/details`.
   Khối `.pw` nằm TRONG `.entry-content` nên phải khai lại để không bị đè. */
.entry-content .pw h2 { font-size: clamp(23px, 2.5vw, 32px); }
.entry-content .pw-than table { display: table; }
.entry-content .pw-than table caption { caption-side: top; }
.entry-content .pw p:last-child { margin-bottom: 14px; }

/* ── Ẩn tiêu đề mặc định của theme trên trang CÓ bố cục rộng ──────────────
   🔴 VÌ SAO: theme in sẵn `<div class="entry-header"><h1 class="entry-title">`
      TRƯỚC phần nội dung. Trang bố cục rộng có tiêu đề riêng nằm trong khối
      hero, nên không ẩn thì người đọc thấy HAI tiêu đề chồng nhau — "Giới
      thiệu về Chợ Giá" rồi ngay dưới là "Bản đồ giá của nền kinh tế…".
   🔴 VÌ SAO ẨN BẰNG CSS CHỨ KHÔNG BỎ Ở MÁY CHỦ: `loop-single.php` của theme
      gọi `HT_Custom()->hide_header_footer()` — một phương thức **không có
      filter nào**, chỉ xét 3 shortcode cố định. Gỡ ở máy chủ thì phải sửa
      thẳng vào theme và mất sạch sau lần cập nhật theme kế tiếp, hoặc phải
      bọc output buffer cả trang — rủi ro trên site 6.800 bài không đáng.
   🟡 Hệ quả còn lại: thẻ `<h1>` của theme VẪN NẰM TRONG HTML (đã ẩn). HTML5
      và Google đều chấp nhận nhiều H1 nên không phải lỗi, nhưng ghi ra đây
      để người sau biết là CHỦ Ý, không phải sót.
   🔴 Chỉ áp khi có lớp `co-trang-rong` trên <body> — trang thường không đụng. */
body.co-trang-rong .loop-single > .entry-header { display: none; }

/* Khối `.pw` ngồi trong `.entry-content` của theme — gỡ padding/margin thừa */
body.co-trang-rong .entry-content > .pw { margin: 0; }
body.co-trang-rong .entry-content { padding-top: 0; }

/* 🔴 Theme có luật `.entry-content h1/h2/h3` với cùng độ đặc hiệu như `.pw h1`.
   Hoà độ đặc hiệu thì thứ tự nạp quyết định — mà thứ tự nạp phụ thuộc plugin
   khác, không chắc chắn. Khai thêm một bậc để luôn thắng. */
.entry-content .pw h1 { font-size: clamp(29px, 3.9vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.entry-content .pw-hero h1 { color: #fff; }
.entry-content .pw h3 { font-size: 18.5px; margin: 24px 0 8px; }
.entry-content .pw-goi h2 { color: #fff; font-size: clamp(23px, 2.7vw, 34px); }
/* `.pw` nằm trong `.entry-content` (đã rộng 1170) nên `.pw-wrap` không cần
   bó thêm; bỏ max-width để không hẹp hai lần. */
.entry-content .pw > .pw-wrap { max-width: none; padding-left: 0; padding-right: 0; }

/* ── Chống theme đè màu chữ của khối .pw ─────────────────────────────────
   🔴 ĐO ĐƯỢC 07/11/2026: nút phụ trong dải kêu gọi ra màu `rgb(0,124,212)`
      — màu link của theme — trên nền navy, tương phản **2.61** (chữ rất khó
      đọc). Luật của em `.pw-nut .pw-phu{color:#fff}` có độ đặc hiệu (0,2,0),
      thua `.entry-content a` chỉ khi theme khai cao hơn; thực tế theme khai
      `.entry-content a` kèm bối cảnh khác nên thắng.
      Khối `.pw` sống TRONG `.entry-content` nên mọi luật màu chữ phải khai
      kèm `.entry-content` để chắc chắn thắng, không phụ thuộc thứ tự nạp. */
.entry-content .pw-nut a.pw-chinh { color: #fff; }
.entry-content .pw-nut a.pw-phu   { color: #fff; }
.entry-content .pw-hero a,
.entry-content .pw-goi a          { color: #fff; }
.entry-content .pw a              { color: var(--pw-nhan-sau); }
.entry-content .pw-nut a.pw-chinh { background: var(--pw-nhan); }
.entry-content .pw-chip a         { color: #222; }
.entry-content .pw-chip a:hover   { color: var(--pw-nhan-sau); }
.entry-content .pw-luoi strong a  { color: var(--pw-nhan-sau); }

/* 🔴 Nút chính nền #1091FF chữ trắng chỉ đạt tương phản 3.17 — qua ngưỡng
   chữ lớn nhưng dưới 4.5 của chữ thường. Nút là chỗ người ta bấm, không nên
   để sát ngưỡng. Dùng tông xanh đậm hơn: 6.5. */
.entry-content .pw-nut a.pw-chinh {
  background: linear-gradient(135deg, var(--pw-nhan-sau), #084a8c);
  color: #fff;
}
.entry-content .pw-nut a.pw-chinh:hover { filter: brightness(1.12); }

/* ── Chống căn đều hai bên của theme ─────────────────────────────────────
   🔴 ĐO ĐƯỢC 07/11/2026: `.entry-content` của theme đặt `text-align: justify`
      và nó THỪA KẾ xuống toàn bộ khối `.pw` — tiêu đề H1 bị dãn chữ thành
      "tổng    hợp,    chuẩn    hoá", đọc rất xấu. Căn đều chỉ hợp với cột
      chữ hẹp; với tiêu đề lớn và thẻ ngắn thì nó phá nhịp.
   🔴 Thừa kế KHÔNG hiện ra trong phép đo bề rộng hay tương phản — chỉ nhìn
      ảnh chụp mới thấy. */
.entry-content .pw,
.entry-content .pw h1,
.entry-content .pw h2,
.entry-content .pw h3,
.entry-content .pw p,
.entry-content .pw li,
.entry-content .pw span,
.entry-content .pw strong,
.entry-content .pw em,
.entry-content .pw td,
.entry-content .pw th,
.entry-content .pw summary { text-align: left; }

/* ══════════════════════════════════════════════════════════════════════════
   GỌN TRÊN ĐIỆN THOẠI — Sếp Long yêu cầu 07/11/2026
   Đo trước khi sửa: trang cao **13.000–14.200px** trên khung 390px.
   Nguyên nhân chính không phải chữ nhiều, mà là:
     · dải số liệu xếp MỘT CỘT  → 5 ô × 124px = 620px cho 5 con số
     · thẻ nào cũng padding 24–28px, bo góc 24px, khoảng cách 20px
     · chữ thân bài 17,5px — cỡ của màn hình lớn
   Chữa bằng cách siết KHOẢNG TRẮNG và cho số liệu xếp 2 cột, KHÔNG cắt nội
   dung và KHÔNG thu nhỏ chữ xuống dưới ngưỡng đọc được (tối thiểu 15px).
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .pw { --pw-gap: 12px; font-size: 15.5px; line-height: 1.65; }
  .pw-wrap { padding: 0 12px 28px; }
  .pw-duong { padding: 14px 0 10px; font-size: 12.5px; }

  /* khối mở đầu */
  .pw-hero { border-radius: 18px; padding: 20px 18px; gap: 14px; }
  .pw-hero-trai { gap: 14px; }
  .pw-hero h1 { font-size: 27px; line-height: 1.18; }
  .pw-hero p { font-size: 15.5px; line-height: 1.6; }
  .pw-nhan { padding: 5px 12px; font-size: 12px; }
  .pw-nut { gap: 8px; }
  .pw-nut a { height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 11px; }
  .pw-hero-hop { min-height: 0; padding: 16px 16px; border-radius: 14px; gap: 10px; }
  .pw-hero-hop > b { font-size: 11.5px; }
  .pw-hero-hop > span { font-size: 14.5px; line-height: 1.5; grid-template-columns: 18px 1fr; gap: 9px; }
  .pw-hero-hop svg { width: 15px; height: 15px; margin-top: 2px; }

  /* 🔴 Dải số liệu: HAI CỘT thay vì một. Một cột cho 5 con số mất 620px màn
     hình mà không thêm thông tin gì. Ô chủ đạo chiếm trọn hàng đầu. */
  .pw-so { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pw-so > div { padding: 14px 13px; border-radius: 14px; gap: 2px; }
  .pw-so > .pw-noi { grid-column: 1 / -1; }
  .pw-so b { font-size: 26px; }
  .pw-so > .pw-noi b { font-size: 32px; }
  .pw-so em { font-size: 12.5px; line-height: 1.4; }

  /* thẻ nguyên tắc */
  .pw-the { gap: 10px; }
  .pw-the > div { padding: 18px 16px; border-radius: 16px; gap: 8px; }
  .pw-the i { width: 30px; height: 30px; font-size: 12px; }
  .pw-the strong { font-size: 17px; }
  .pw-the span { font-size: 14.5px; line-height: 1.6; }

  /* khối quy trình */
  .pw-qt { border-radius: 18px; padding: 20px 16px; gap: 16px; }
  .pw-qt-dau { gap: 5px; }
  .pw-qt-dau i { font-size: 11.5px; }
  .pw-buoc { gap: 8px; }
  .pw-buoc > div { padding: 15px 14px; border-radius: 14px; gap: 7px; }
  .pw-buoc b { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
  .pw-buoc strong { font-size: 15.5px; }
  .pw-buoc span { font-size: 14px; line-height: 1.6; }
  .pw-chip { padding-top: 14px; gap: 7px; }
  .pw-chip a { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }

  /* thân bài */
  .pw-than { border-radius: 18px; padding: 18px 14px; }
  .pw h2 { margin: 26px 0 11px; padding-top: 16px; font-size: 21px; line-height: 1.3; }
  .pw h2::before { width: 40px; height: 2.5px; }
  .pw h3 { font-size: 16.5px; margin: 18px 0 6px; }
  .pw p { margin-bottom: 11px; }
  .pw ul { padding-left: 19px; }
  .pw-dinhnghia { padding: 15px 16px; font-size: 15.5px; line-height: 1.65; margin-bottom: 16px; border-radius: 0 12px 12px 0; }
  .pw-dem { grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 18px; }
  .pw-dem > div { padding: 13px 8px; border-radius: 12px; }
  .pw-dem b { font-size: 23px; }
  .pw-dem em { font-size: 12px; }
  .pw-luoi { gap: 9px; margin: 14px 0; }
  .pw-luoi > div { padding: 14px 15px; border-radius: 12px; }
  .pw-luoi strong { font-size: 15.5px; margin-bottom: 5px; }
  .pw-luoi span { font-size: 14.5px; line-height: 1.6; }
  .pw-than table { font-size: 14px; margin: 11px 0 6px; }
  .pw-than th { width: 36%; padding: 10px 11px; }
  .pw-than td { padding: 10px 11px; }
  .pw-than table caption { font-size: 13px; padding-bottom: 8px; }
  .pw-than details { border-radius: 11px; margin-bottom: 7px; }
  .pw-than summary { padding: 12px 14px; font-size: 15px; gap: 9px; }
  .pw-than summary::before { width: 22px; height: 22px; border-radius: 6px; font-size: 15px; }
  .pw-tl { padding: 0 14px 13px 45px; font-size: 14.5px; line-height: 1.65; }
  .pw-chuy { padding: 15px 16px; font-size: 14.5px; line-height: 1.65; margin: 15px 0; border-radius: 0 12px 12px 0; }

  /* dải kêu gọi */
  .pw-goi { border-radius: 18px; padding: 22px 18px; gap: 14px; }
  .pw-goi h2 { font-size: 22px; }
  .pw-goi p { font-size: 15px; margin-top: 7px; }
}

/* Màn hình rất hẹp: số liệu về một cột cho khỏi vỡ chữ */
@media (max-width: 360px) {
  .pw-so, .pw-dem { grid-template-columns: 1fr; }
  .pw-so > .pw-noi { grid-column: auto; }
}

/* Chogia: khối .pw nằm trong `.entry-content` nên vài luật cỡ chữ phải khai
   kèm để thắng luật của theme (xem ghi chú về độ đặc hiệu ở trên). */
@media (max-width: 640px) {
  .entry-content .pw h2 { font-size: 21px; }
  .entry-content .pw h1 { font-size: 27px; }
  .entry-content .pw-goi h2 { font-size: 22px; }
  .entry-content .pw h3 { font-size: 16.5px; }
}

/* Vòng 2 — siết thêm sau khi đo lại (Sếp yêu cầu "gọn nữa") */
@media (max-width: 640px) {
  /* 🔴 Lưới "đi tiếp" chữ rất ngắn (một dòng tiêu đề + một câu) — để một cột
     là phí nửa màn hình. Cho 2 cột; các lưới nội dung dài vẫn giữ một cột. */
  .pw-luoi.pw-tiep { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pw-luoi.pw-tiep > div { padding: 12px 12px; }
  .pw-luoi.pw-tiep strong { font-size: 14.5px; }
  .pw-luoi.pw-tiep span { font-size: 13px; line-height: 1.5; }

  /* Thẻ nguyên tắc: huy hiệu số và tiêu đề về CÙNG MỘT HÀNG, đỡ một dòng mỗi thẻ */
  .pw-the > div { grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; }
  .pw-the i { grid-row: 1; }
  .pw-the strong { grid-row: 1; }
  .pw-the span { grid-column: 1 / -1; }

  /* Bước quy trình: cũng gộp số + tên bước một hàng */
  .pw-buoc > div { grid-template-columns: 32px 1fr; column-gap: 9px; align-items: center; }
  .pw-buoc b { grid-row: 1; }
  .pw-buoc strong { grid-row: 1; }
  .pw-buoc span { grid-column: 1 / -1; }

  /* Khoảng cách giữa các khối lớn */
  .pw-so, .pw-the, .pw-qt, .pw-than, .pw-goi { margin-top: 12px; }
}
@media (max-width: 400px) {
  .pw-luoi.pw-tiep { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   VÒNG 3 — soi lại mobile bằng ẢNH THẬT (Sếp yêu cầu 07/11/2026)
   Hai lỗi đo được trên CẢ BỐN site:
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* 🔴 (1) VÙNG BẤM QUÁ NHỎ. Chip dải liên kết chỉ cao **37px**, đường dẫn
     đầu trang chỉ **21px**. Chuẩn chạm là 44px (Apple HIG) / 48dp (Material).
     Ngón tay người lớn phủ ~45px — dưới ngưỡng đó là bấm trượt sang mục bên
     cạnh. Đây là lỗi DÙNG ĐƯỢC HAY KHÔNG, không phải lỗi thẩm mỹ. */
  .pw-chip a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
  }
  .pw-duong a {
    min-height: 40px;          /* đường dẫn ở sát mép trên, 44 sẽ đẩy nội dung
                                  xuống quá nhiều — 40 là mức dung hoà */
    display: inline-flex;
    align-items: center;
  }
  .pw-duong { padding: 6px 0 8px; }
  .pw-luoi.pw-tiep strong a { display: inline-block; padding: 5px 0; }

  /* 🔴 (2) TIÊU ĐỀ ĐỂ LẠI MỘT TỪ MỒ CÔI Ở DÒNG CUỐI.
     Đo thật: "…cập nhật từng 5 **phút**" — từ cuối chỉ 64px trên hàng rộng
     330px; "Chợ Giá là **gì**" — 19px/340px. Đọc bị hẫng.
     `.pw h1` ĐÃ có `text-wrap: balance` nhưng `.pw h2` thì CHƯA — nên lỗi chỉ
     hiện ở H2 và ở những H1 quá dài. `balance` cân đều độ dài các dòng;
     `pretty` chống mồ côi cho khối chữ dài. Dùng đúng loại cho đúng chỗ. */
  .pw h1, .pw h2, .pw h3, .pw-goi h2,
  .pw-the strong, .pw-buoc strong, .pw-luoi strong,
  .pw-than summary { text-wrap: balance; }
  .pw p, .pw li, .pw-the span, .pw-buoc span, .pw-luoi span,
  .pw-hero-hop > span, .pw-tl { text-wrap: pretty; }
}

/* Chogia: khối `.pw` nằm trong `.entry-content` — khai kèm để thắng theme. */
@media (max-width: 640px) {
  .entry-content .pw-chip a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; }
  .entry-content .pw-duong a { min-height: 40px; display: inline-flex; align-items: center; }
  .entry-content .pw h1, .entry-content .pw h2,
  .entry-content .pw h3, .entry-content .pw-goi h2 { text-wrap: balance; }
  .entry-content .pw p, .entry-content .pw li { text-wrap: pretty; }
}

/* ══════════════════════════════════════════════════════════════════════════
   VÒNG 4 — vùng bấm của thẻ "Đi tiếp"
   🔴 Liên kết trong thẻ chỉ cao **30px**, dưới ngưỡng chạm 44px. Thay vì ép
      riêng chữ cao lên (làm vỡ nhịp dòng), cho **CẢ THẺ thành vùng bấm** —
      vừa đạt chuẩn vừa đúng kỳ vọng của người dùng: nhìn thấy một thẻ thì
      bấm đâu trong thẻ cũng phải đi được.
   Cách làm: thẻ `position:relative`, liên kết phủ một lớp trong suốt lên
   toàn thẻ bằng `::after`. Không đổi bố cục, không thêm thẻ HTML.
   ══════════════════════════════════════════════════════════════════════════ */
.pw-luoi.pw-tiep > div { position: relative; }
.pw-luoi.pw-tiep strong a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
/* Giữ chữ mô tả bấm/bôi đen được bình thường dưới lớp phủ */
.pw-luoi.pw-tiep > div > span { position: relative; z-index: 1; pointer-events: none; }
@media (max-width: 640px) {
  .pw-luoi.pw-tiep strong a { padding: 0; }   /* lớp phủ lo vùng bấm rồi */
}
.entry-content .pw-luoi.pw-tiep > div { position: relative; }
.entry-content .pw-luoi.pw-tiep strong a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
