/* Mục Tin tức (/tin-tuc, /tin-tuc/<slug>) — dựng tĩnh bởi scripts/build-news.mjs, dùng nền legal.css. news-css-version: 4 */
.nw-list { padding: 28px 0 72px; }
.nw-hero { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.nw-hero h1 { margin: 0 0 10px; font: 800 clamp(1.9rem, 4vw, 2.7rem)/1.1 var(--font-display); letter-spacing: -0.025em; color: var(--ink); }
.nw-hero p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.nw-empty { text-align: center; color: var(--ink-3); }

.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.nw-card { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.nw-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--orange, #2f7bff), 0 12px 28px rgba(0,0,0,.25); }
.nw-card img, .nw-card-ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, #0b4fc4, #38bdf8); }
.nw-card-body { display: grid; gap: 8px; align-content: start; padding: 16px 18px 18px; }
.nw-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--plate); color: var(--ink-2); font-size: .76rem; font-weight: 700; }
.nw-card-title { font: 800 1.08rem/1.3 var(--font-display); color: var(--ink); }
.nw-card-sum { color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
.nw-card-date { color: var(--ink-3); font-size: .82rem; }

.nw-crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: .86rem; color: var(--ink-3); }
.nw-crumb a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.nw-crumb a:hover { color: var(--ink); }
.nw-toc .nw-back { margin-top: 8px; color: var(--ink-3); }
.nw-cover { margin: 18px 0 8px; }
.nw-cover img, .nw-article figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.nw-article figure { margin: 16px 0 18px; }
.nw-article figcaption { margin-top: 8px; font-size: .88rem; color: var(--ink-3); }
.nw-article h2 { scroll-margin-top: 90px; }
.nw-article h3 { margin: 20px 0 6px; font: 800 1.04rem/1.35 var(--font-display); color: var(--ink); }
.nw-article table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .94rem; }
.nw-article th, .nw-article td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.nw-article th { background: var(--plate); color: var(--ink); }

.nw-faq { display: grid; gap: 8px; margin-bottom: 8px; }
.nw-faq details { padding: 12px 16px; border-radius: 14px; background: var(--plate); border: 1px solid var(--line); }
.nw-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.nw-faq details p { margin: 8px 0 0; }

.nw-cta { display: grid; gap: 8px; justify-items: start; margin: 28px 0 18px; padding: 20px 22px; border-radius: 18px; color: #fff; background: radial-gradient(120% 120% at 0% 0%, #38BDF8 0%, #1D7BEA 50%, #0B4FC4 100%); }
.nw-cta p { margin: 0; color: rgba(255,255,255,.9); }
.nw-cta .nw-cta-title { font: 800 1.2rem/1.3 var(--font-display); color: #fff; }
.nw-cta a.btn.btn-primary { margin-top: 6px; background: #fff !important; color: #0B4FC4 !important; border: 0; box-shadow: none; }

.nw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-3); }
.nw-share a { padding: 6px 12px; border-radius: 999px; background: var(--plate); text-decoration: none; }
.nw-related { margin-top: 30px; padding-top: 6px; border-top: 1px solid var(--line); }
.nw-related .nw-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.nw-related .nw-card-sum { display: none; }
@media (prefers-reduced-motion: reduce) { .nw-card { transition: none; } .nw-card:hover { transform: none; } }
/* Hướng dẫn theo bước (/huong-dan/<slug>): nội dung tách từ guide-sepay dùng lại class gd-* của guide.css. */
.nw-gd .gd-important, .nw-gd .gd-note { margin: 14px 0; }
.nw-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 8px; }
.nw-steps a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--plate); border: 1px solid var(--line); color: var(--ink) !important; font-weight: 700; text-decoration: none; line-height: 1.35; }
.nw-steps a:hover { border-color: var(--orange, #2f6bff); }
.nw-steps small { color: var(--ink-3); font-weight: 600; font-size: .8rem; }
.nw-step-next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .nw-steps { grid-template-columns: 1fr; } .nw-step-next { grid-column: 1; } }
