/**
 * Nam Việt — News list + detail styles (Trang 9 + 10).
 *
 * Both halves ported to v2 "industrial" (client sign-off 2026-06-06). Source:
 * design/v2/news.html (list) + design/v2/news-detail.html (detail). Uses the
 * mockups' own class names directly (.newsroom/.feature/.ncard/.pager for the
 * list; .art-hero/.article/.prose/.sidebar for the detail) — page CSS is scoped
 * to news pages, matching the homepage-VI convention (raw mockup classes, not
 * nv- prefixes). Shared atoms (.container, .page-hero, .crumb, .sec-head,
 * .kicker, .btn*) come from base.css — not redefined here.
 *
 * Enqueued (handle `nv-news`) on home/category/tag (list) + single post (detail).
 */

/* ============================================================== */
/* LIST (Trang 9) — v2                                            */
/* ============================================================== */

.newsroom { background: var(--paper); }

/* Featured editorial block */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--white); box-shadow: var(--sh-sm); overflow: hidden; margin-bottom: 54px; transition: box-shadow 0.3s, transform 0.3s; }
.feature:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.feature .f-ph { position: relative; overflow: hidden; min-height: 380px; display: block; }
.feature .f-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feature:hover .f-ph img { transform: scale(1.05); }
.feature .f-ph .cat { position: absolute; top: 18px; left: 18px; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 7px 13px; z-index: 2; }
.feature .f-body { padding: 48px 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.feature .f-tag { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-700); }
.feature .f-date { font-family: var(--mono); font-size: 0.78rem; color: var(--s-400); margin: 12px 0 16px; display: flex; align-items: center; gap: 8px; }
.feature .f-date svg { width: 15px; height: 15px; stroke: var(--s-400); stroke-width: 1.7; fill: none; }
.feature h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--ink); line-height: 1.1; margin-bottom: 16px; }
.feature h2 a { color: inherit; }
.feature h2 a:hover { color: var(--orange-700); }
.feature p { color: var(--s-500); font-size: 1rem; line-height: 1.65; margin-bottom: 26px; max-width: 40em; }

.read-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange-700); transition: gap 0.2s, color 0.2s; }
.read-more:hover { color: var(--orange); gap: 13px; }
.read-more .ar { transition: transform 0.2s; }
.read-more:hover .ar { transform: translateX(3px); }

/* Filters (server-side category links styled as pills) */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; align-items: center; }
.fbtn { font-family: var(--body); font-size: 0.88rem; font-weight: 600; color: var(--s-700); background: transparent; border: 1.5px solid var(--s-200); padding: 10px 20px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s; display: inline-flex; align-items: center; gap: 8px; }
.fbtn:hover { color: var(--orange-700); border-color: var(--orange); transform: translateY(-1px); }
.fbtn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.fbtn .ct { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; background: rgba(26,28,31,0.08); color: inherit; padding: 1px 8px; line-height: 1.6; }
.fbtn.active .ct { background: rgba(255,255,255,0.22); }

/* Article grid (magazine cards) — also reused by the detail "related" grid */
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ncard { display: flex; flex-direction: column; background: var(--white); box-shadow: var(--sh-sm); overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.ncard:hover { box-shadow: var(--sh-lg); transform: translateY(-5px); }
.ncard .n-ph { position: relative; overflow: hidden; aspect-ratio: 16/10; display: block; }
.ncard .n-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ncard:hover .n-ph img { transform: scale(1.06); }
.ncard .n-ph .cat { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 6px 11px; z-index: 2; }
.ncard .n-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ncard .n-date { font-family: var(--mono); font-size: 0.74rem; color: var(--s-400); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.ncard .n-date svg { width: 14px; height: 14px; stroke: var(--s-400); stroke-width: 1.7; fill: none; }
.ncard h3 { font-size: 1.18rem; color: var(--ink); line-height: 1.28; margin-bottom: 10px; transition: color 0.2s; }
.ncard h3 a { color: inherit; }
.ncard:hover h3 { color: var(--orange-700); }
.ncard p { font-size: 0.9rem; color: var(--s-500); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.ncard .read-more { font-size: 0.78rem; margin-top: auto; }

/* Empty state */
.news-empty { text-align: center; padding: 64px 24px; background: var(--white); border: 1px dashed var(--s-200); box-shadow: var(--sh-sm); }
.news-empty h2, .news-empty h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.news-empty p { color: var(--s-500); font-size: 0.95rem; }

/* Pagination (WP paginate_links → .pager) */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 64px; padding-top: 42px; border-top: 1px solid var(--s-200); flex-wrap: wrap; }
.pager .page-numbers { font-family: var(--mono); font-size: 0.86rem; font-weight: 700; min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s; color: var(--s-700); border: 1.5px solid var(--s-200); }
.pager a.page-numbers:hover { color: var(--orange-700); border-color: var(--orange); transform: translateY(-1px); }
.pager .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }
.pager .page-numbers.dots { color: var(--s-400); min-width: auto; border: none; }
.pager .page-numbers.prev, .pager .page-numbers.next { font-size: 1.1rem; }

/* List responsive */
@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; }
  .feature .f-ph { min-height: 300px; aspect-ratio: 16/9; }
  .feature .f-body { padding: 36px 34px 38px; }
  .ngrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .ngrid { grid-template-columns: 1fr; }
  .filters { gap: 10px; }
}

/* ============================================================== */
/* DETAIL (Trang 10) — v2                                         */
/* ============================================================== */

/* Article hero (dark band — centred, narrower than .page-hero) */
.art-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 0; }
.art-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.16; }
.art-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,25,0.94), rgba(20,22,25,0.62)); }
.art-hero .container { position: relative; z-index: 2; padding: 54px 28px 60px; max-width: 880px; margin: 0 auto; }
.art-hero .crumb { flex-wrap: wrap; margin-bottom: 22px; }
.art-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; margin: 16px 0 20px; letter-spacing: -0.03em; }
.art-meta { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.82rem; color: var(--s-300); align-items: center; }
.art-meta .mi { display: inline-flex; align-items: center; gap: 8px; }
.art-meta .mi svg { width: 15px; height: 15px; stroke: var(--orange); stroke-width: 1.7; fill: none; }

/* Article layout */
.article { background: var(--paper); padding: 0 0 96px; }
.art-lead-img { max-width: 1080px; margin: -40px auto 0; position: relative; z-index: 5; padding: 0 28px; }
.art-lead-img img { width: 100%; aspect-ratio: 16/8; object-fit: cover; box-shadow: var(--sh-lg); }
.art-wrap { max-width: 1080px; margin: 0 auto; padding: 56px 28px 0; display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }

/* prose */
.prose p { font-size: 1.05rem; line-height: 1.8; color: var(--s-700); margin-bottom: 22px; }
.prose > p:first-child::first-letter { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 0.8; float: left; color: var(--orange); padding: 6px 12px 0 0; }
.prose h2 { font-size: 1.6rem; color: var(--ink); margin: 38px 0 16px; }
.prose h3 { font-size: 1.28rem; color: var(--ink); margin: 30px 0 14px; }
.prose ul, .prose ol { margin: 0 0 22px 24px; color: var(--s-700); line-height: 1.8; }
.prose a { color: var(--orange-700); text-decoration: underline; }
.prose a:hover { color: var(--orange); }
/* The share/tags/prev-next chrome is nested inside .prose (matches design DOM),
   so the body-link underline above bleeds onto it. Exclude the chrome — these are
   UI components, not running-text links (design renders them without underline). */
.prose .tag { color: var(--s-700); text-decoration: none; }
.prose .tag:hover { color: var(--orange-700); }
.prose .art-nav a { text-decoration: none; }
.prose blockquote { position: relative; background: var(--white); box-shadow: var(--sh-sm); padding: 34px 36px 30px; margin: 34px 0; }
.prose blockquote p { font-size: 1.15rem; line-height: 1.65; color: var(--ink); font-style: italic; margin-bottom: 14px; }
.prose blockquote cite { font-style: normal; font-weight: 700; font-family: var(--display); color: var(--orange-700); font-size: 0.98rem; }
.prose figure, .prose img { margin: 32px 0; }
.prose figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--sh-sm); margin: 0; }
.prose figure figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--s-400); margin-top: 10px; text-align: center; }

/* share */
.share { margin: 44px 0 0; padding: 26px 0; border-top: 1px solid var(--s-200); border-bottom: 1px solid var(--s-200); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.share .s-label { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-500); }
.share-btns { display: flex; gap: 12px; }
.sbtn { width: 46px; height: 46px; display: grid; place-items: center; background: transparent; border: 1.5px solid var(--s-200); color: var(--s-700); cursor: pointer; transition: all 0.2s; }
.sbtn:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-orange); }
.sbtn svg { width: 19px; height: 19px; fill: currentColor; }

/* tags */
.tags { margin-top: 34px; }
.tags .t-label { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-500); margin-bottom: 14px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: 0.84rem; font-weight: 500; color: var(--s-700); background: transparent; border: 1.5px solid var(--s-200); padding: 7px 15px; transition: all 0.2s; }
.tag:hover { color: var(--orange-700); border-color: var(--orange); transform: translateY(-1px); }

/* prev / next */
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.art-nav a { background: var(--white); box-shadow: var(--sh-sm); padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow 0.3s, transform 0.3s; }
.art-nav a:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.art-nav .anl { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-700); display: inline-flex; align-items: center; gap: 7px; }
.art-nav .anl svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.art-nav .ant { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
.art-nav .next { text-align: right; }
.art-nav .next .anl { justify-content: flex-end; }

/* sidebar */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--white); box-shadow: var(--sh-sm); padding: 26px 24px; }
.widget h3 { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 700; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--s-100); }
.rel { display: flex; gap: 14px; padding: 12px 0; align-items: center; transition: transform 0.2s; }
.rel:first-of-type { padding-top: 0; }
.rel:hover { transform: translateX(3px); }
.rel img { width: 74px; height: 74px; object-fit: cover; flex: none; }
.rel .ri b { display: block; font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--ink); line-height: 1.32; margin-bottom: 6px; transition: color 0.2s; }
.rel:hover .ri b { color: var(--orange-700); }
.rel .ri span { font-family: var(--mono); font-size: 0.74rem; color: var(--s-400); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--s-100); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: 0.92rem; font-weight: 500; color: var(--s-700); transition: color 0.2s, padding 0.2s; }
.cat-list a:hover { color: var(--orange-700); padding-left: 5px; }
.cat-list a .ar { color: var(--orange); transition: transform 0.2s; }
.cat-list a:hover .ar { transform: translateX(3px); }

/* related grid section */
.related { background: var(--white); border-top: 1px solid var(--s-200); padding: 88px 0; }
.related-head { margin-bottom: 40px; }
.related-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 14px; color: var(--ink); }

/* copy toast */
.copy-toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--ink); color: #fff; padding: 13px 22px; font-size: 0.9rem; font-weight: 500; box-shadow: var(--sh-lg); opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 2000; display: flex; align-items: center; gap: 9px; }
.copy-toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.copy-toast svg { width: 18px; height: 18px; stroke: var(--orange); stroke-width: 2.5; fill: none; }

/* CTA band (shared copy — kept page-local per rollout convention) */
.cta-band { position: relative; background: var(--orange); color: #fff; overflow: hidden; padding: 72px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay; background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 40px 40px; }
.cta-band::after { content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 100%; background: linear-gradient(120deg, transparent, rgba(26,28,31,0.18)); pointer-events: none; }
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band .ctk { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; margin: 12px 0 6px; max-width: 18em; }
.cta-band .c-phone { font-family: var(--mono); font-weight: 700; font-size: 1.2rem; margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.cta-band .c-phone .cp-ico { display: flex; align-items: center; }
.cta-band .c-phone .cp-ico svg { width: 20px; height: 20px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--orange-700); box-shadow: 0 16px 30px rgba(26,28,31,0.22); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* Detail responsive */
@media (max-width: 980px) {
  .art-wrap { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .widget { flex: 1; min-width: 280px; }
}
@media (max-width: 680px) {
  .art-lead-img { margin-top: -24px; }
  .art-lead-img img { aspect-ratio: 16/10; }
  .art-nav { grid-template-columns: 1fr; }
  .art-nav .next { text-align: left; }
  .art-nav .next .anl { justify-content: flex-start; }
  .sidebar { flex-direction: column; }
  .prose > p:first-child::first-letter { font-size: 2.8rem; }
}
