/*!
 * Panda: nội dung dài dưới lưới mẫu của trang danh mục (term meta panda_noi_dung_duoi).
 * Cùng bảng màu và kiểu chữ với trang-rong.css (dv-): H2 đậm co giãn, thẻ nền trắng mờ viền xanh,
 * hỏi đáp dạng details với dấu + đỏ. Mọi lớp bắt đầu bằng w5-. Mô tả cấu trúc: docs/noi-dung-danh-muc.md
 */
.w5-sec{padding:clamp(48px,6vw,88px) 0 clamp(56px,7vw,96px);background:var(--navy-900);border-top:1px solid var(--line-soft)}
.w5-xt{margin:0 0 28px;padding:10px 14px;border-radius:10px;background:rgba(255,200,60,.12);border:1px dashed rgba(255,200,60,.55);color:#ffe9a8;font-size:14.5px;line-height:1.5}
.w5{max-width:960px;overflow-wrap:anywhere}
.w5>*:first-child{margin-top:0}
.w5 h2{margin:clamp(36px,5vw,56px) 0 14px;font-size:clamp(1.5rem,2.8vw,2.15rem);line-height:1.18;letter-spacing:-.028em;font-weight:800;color:#fff;max-width:30ch}
.w5 h3{margin:28px 0 8px;font-size:clamp(1.1rem,1.6vw,1.28rem);line-height:1.3;letter-spacing:-.015em;font-weight:700;color:#fff}
.w5 p{margin:0 0 1em;max-width:72ch;font-size:16.5px;line-height:1.75;color:#d5deec}
.w5 .w5-lead{font-size:clamp(1.05rem,1.4vw,1.2rem);line-height:1.65;color:#e8eef8}
.w5 strong,.w5 b{color:#fff;font-weight:600}
.w5 a:not(.btn){color:#9ed0f2;text-decoration:underline;text-underline-offset:3px}
.w5 a:not(.btn):hover{color:#fff}
.w5 hr{margin:32px 0;border:0;border-top:1px solid var(--line)}
.w5 img{border-radius:var(--r-frame);border:1px solid var(--line-soft);margin:16px 0}
.w5 blockquote{margin:20px 0;padding:6px 0 6px 18px;border-left:3px solid var(--red);max-width:72ch;color:#d5deec;font-size:17px;line-height:1.7}
.w5 blockquote p{margin:0}

/* Danh sách */
.w5 ul,.w5 ol{margin:0 0 1.2em;max-width:72ch;display:grid;gap:10px}
.w5 li{position:relative;padding-left:26px;font-size:16.5px;line-height:1.65;color:#d5deec}
.w5 ul>li::before{content:"";position:absolute;left:4px;top:.68em;width:7px;height:7px;border-radius:50%;background:var(--red-hi)}
.w5 ol{counter-reset:w5o}
.w5 ol>li{counter-increment:w5o;padding-left:36px}
.w5 ol>li::before{content:counter(w5o);position:absolute;left:0;top:.1em;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid rgba(255,90,95,.7);color:var(--red-hi);font-family:var(--mono);font-size:13px;font-weight:600;line-height:1}
.w5 ul.w5-tick>li::before{width:6px;height:11px;top:.42em;left:7px;border-radius:0;background:none;border:solid var(--ring);border-width:0 2px 2px 0;transform:rotate(45deg)}
.w5 ul.w5-tick>li{padding-left:30px}
.w5 ul.w5-x>li::before{content:"\00d7";top:-.05em;left:3px;width:auto;height:auto;border-radius:0;background:none;color:var(--red-hi);font-size:1.5em;line-height:1.2;font-weight:600}
.w5 ul.w5-x>li{padding-left:30px}

/* Ghi chú */
.w5 .w5-note{margin:22px 0;padding:16px 20px;border-radius:var(--r-frame);background:rgba(77,166,227,.09);border:1px solid rgba(77,166,227,.28);border-left:4px solid var(--ring);max-width:72ch}
.w5 .w5-note p{margin:0;font-size:16px}
.w5 .w5-note p+p{margin-top:.7em}

/* Thẻ */
.w5 .w5-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.6vw,20px);margin:22px 0}
.w5 .w5-card{padding:clamp(18px,2.4vw,26px);border-radius:var(--r-card);background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border:1px solid var(--line)}
.w5 .w5-card h3{margin:0 0 8px;font-size:1.12rem}
.w5 .w5-card p{margin:0;font-size:15.5px;line-height:1.65;color:var(--muted)}

/* Hàng nút */
.w5 .w5-cta{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 0;max-width:none}

/* Bảng */
.w5 table{width:100%;margin:22px 0;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:var(--r-frame);overflow:hidden;background:rgba(255,255,255,.03);font-size:15.5px;line-height:1.55}
.w5 th{padding:13px 16px;text-align:left;font-weight:600;color:#fff;background:rgba(255,255,255,.07);border-bottom:1px solid var(--line)}
.w5 td{padding:13px 16px;vertical-align:top;color:#d5deec;border-top:1px solid var(--line-soft)}
.w5 tbody tr:first-child td,.w5 thead+tbody tr:first-child td{border-top:0}
.w5 td:first-child{color:#fff;font-weight:600}
.w5 tbody tr:nth-child(even) td{background:rgba(255,255,255,.025)}

/* Hỏi đáp */
.w5 .w5-faq,.w5 details{max-width:880px}
.w5 .w5-faq{display:grid;gap:10px;margin:18px 0 8px}
.w5 details{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:14px;transition:border-color .2s,background .2s}
.w5 details+details{margin-top:10px}
.w5 .w5-faq details+details{margin-top:0}
.w5 details[open]{border-color:rgba(77,166,227,.6);background:rgba(255,255,255,.06)}
.w5 summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 20px;cursor:pointer;list-style:none;font-weight:600;font-size:16.5px;line-height:1.4;color:#fff}
.w5 summary::-webkit-details-marker{display:none}
.w5 summary::after{content:"+";flex:none;font-size:26px;font-weight:400;line-height:1;color:var(--red-hi);transition:transform .3s var(--ease)}
.w5 details[open] summary::after{transform:rotate(45deg)}
.w5 summary:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:14px}
.w5 details>div{padding:0 20px 18px;color:#d5deec;font-size:16px;line-height:1.7}
.w5 details>div p{font-size:16px;margin:0 0 .8em}
.w5 details>div>*:last-child{margin-bottom:0}

@media (max-width:1020px){
  .w5 .w5-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .w5 .w5-cards{grid-template-columns:1fr}
  .w5 .w5-cta .btn{flex:1 1 100%}
  .w5 summary{font-size:16px;padding:12px 16px}
  .w5 details>div{padding:0 16px 16px}
  /* Bảng thành thẻ: mỗi hàng một thẻ, mỗi ô một dòng "nhãn: giá trị" (nhãn lấy từ data-label). */
  .w5 table,.w5 tbody,.w5 tr,.w5 td{display:block;width:100%}
  .w5 table{border:0;background:none;border-radius:0;overflow:visible}
  .w5 thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .w5 tr{margin:0 0 12px;padding:6px 16px;border:1px solid var(--line);border-radius:var(--r-frame);background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02))}
  .w5 td,.w5 tbody tr:nth-child(even) td{padding:10px 0;border-top:1px solid var(--line-soft);background:none}
  .w5 tbody tr td:first-child,.w5 tbody tr:first-child td{border-top:0}
  .w5 td::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:12.5px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
  .w5 td:not([data-label])::before{display:none}
}
@media (prefers-reduced-motion:reduce){
  .w5 *{transition:none!important}
}
