/* ==========================================================================
   News / blog (/newslist, /news/{id}) — nw- prefix
   Magazine layout: compact dark masthead, featured story, horizontal story cards,
   and a white reading column with a sticky table of contents on article pages.
   Depends on home-redesign.css tokens.
   ========================================================================== */
.nw { background: #151919; color: #fff; }
.nw .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.nw .container:before, .nw .container:after { display: none !important; }

/* ---------- masthead ---------- */
.nw-mast { padding: 40px 0 26px; border-bottom: 1px solid var(--hx-line); background: radial-gradient(700px 240px at 85% 0%, rgba(255, 208, 0, .12), transparent 70%), #151919; }
.nw-mast h1 { margin: 0 0 8px; font-size: 38px; line-height: 1.1; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.nw-mast p { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.7; color: var(--hx-text); }
.nw-years { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--hx-line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.nw-years__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-muted); margin-right: 8px; }
.nw-years a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff !important; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.nw-years a small { font-size: 11px; color: var(--hx-muted); }
.nw-years a:hover { border-color: var(--hx-yellow); color: var(--hx-yellow) !important; text-decoration: none; }
.nw-years a[aria-current="true"] { background: var(--hx-yellow); border-color: var(--hx-yellow); color: #151919 !important; }
.nw-years a[aria-current="true"] small { color: #151919; opacity: .7; }

/* ---------- featured story ---------- */
.nw-featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: #fff; color: #3a3f3f; margin: 32px 0 28px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.nw-featured__media { position: relative; display: block; min-height: 340px; background: #eee; }
.nw-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-featured__body { padding: 32px 34px 30px; display: flex; flex-direction: column; }
.nw-featured__body .nw-meta { color: #8a6f00; }
.nw-featured h2 { margin: 10px 0 12px; font-size: 26px; line-height: 1.25; font-weight: 700; }
.nw-featured h2 a { color: #151919 !important; text-decoration: none; }
.nw-featured h2 a:hover { color: #b58f00 !important; }
.nw-featured p { margin: 0 0 20px; font-size: 15px; line-height: 1.75; }
.nw-featured .hx-btn { align-self: flex-start; margin-top: auto; }
.nw-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hx-muted); }
.nw-meta i { margin-right: 5px; }

/* ---------- story list ---------- */
.nw-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.nw-list__head h2 { margin: 0; color: #fff; font-size: 18px; font-weight: 700; }
.nw-list__head span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-muted); }
.nw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nw-story { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .04); border: 1px solid var(--hx-line); transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.nw-story:hover { border-color: rgba(255, 208, 0, .5); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.nw-story__media { position: relative; display: block; min-height: 100%; background: #222; }
.nw-story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-story__date { position: absolute; left: 10px; top: 10px; padding: 5px 9px; border-radius: 8px; background: rgba(21, 25, 25, .85); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; text-align: center; }
.nw-story__date strong { display: block; font-size: 18px; color: var(--hx-yellow); letter-spacing: 0; }
.nw-story__body { padding: 18px 20px 18px; display: flex; flex-direction: column; min-width: 0; }
.nw-story h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.35; font-weight: 700; }
.nw-story h3 a { color: #fff !important; text-decoration: none; }
.nw-story h3 a:after { content: ''; position: absolute; inset: 0; }
.nw-story:hover h3 a { color: var(--hx-yellow) !important; }
.nw-story p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--hx-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.nw-story .nw-meta { margin-top: auto; font-size: 11px; }
.nw-empty { padding: 40px 20px; text-align: center; color: var(--hx-text); border: 1px dashed var(--hx-line); border-radius: 14px; }

/* ---------- pagination ---------- */
.nw-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 32px 0 8px; flex-wrap: wrap; }
.nw-pager a, .nw-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; color: #fff !important; }
.nw-pager a:hover { border-color: var(--hx-yellow); color: var(--hx-yellow) !important; text-decoration: none; }
.nw-pager span[aria-current="page"] { background: var(--hx-yellow); border-color: var(--hx-yellow); color: #151919 !important; }
.nw-pager span.is-gap { border: 0; min-width: 20px; color: var(--hx-muted) !important; }
.nw-pager a.is-disabled { opacity: .35; pointer-events: none; }

/* ---------- article ---------- */
.nw-article__mast { padding: 40px 0 150px; border-bottom: 0; }
.nw-article__mast .nw-crumbs { font-size: 12px; color: var(--hx-muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.nw-article__mast .nw-crumbs a { color: var(--hx-muted) !important; }
.nw-article__mast .nw-crumbs a:hover { color: var(--hx-yellow) !important; }
.nw-article__mast .nw-crumbs span:last-child { color: #fff; }
.nw-article__mast h1 { margin: 14px 0 16px; max-width: 860px; font-size: 38px; line-height: 1.15; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.nw-article__mast .nw-lead { margin: 0; max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--hx-text); }
.nw-article__mast .nw-meta { color: var(--hx-yellow); }
.nw-article__mast .nw-meta span { color: var(--hx-muted); }
.nw-paper { background: #fff; color: #2b2f2f; padding: 0 0 56px; }
.nw-figure { margin: -120px 0 36px; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); background: #eee; aspect-ratio: 21 / 9; }
.nw-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-read { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.nw-body { max-width: 760px; font-size: 16.5px; line-height: 1.8; text-align: justify; hyphens: auto; }
.nw-body p { margin: 0 0 18px; text-align: justify !important; }
.nw-body > p:first-of-type { font-size: 18.5px; line-height: 1.7; color: #151919; }
.nw-body h2, .nw-body h3, .nw-body figcaption, .nw-body li { text-align: left; }
.nw-body h2 { margin: 36px 0 14px; font-size: 24px; line-height: 1.3; font-weight: 700; color: #151919; scroll-margin-top: 90px; letter-spacing: -.01em; }
.nw-body h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 700; color: #151919; scroll-margin-top: 90px; }
.nw-body strong, .nw-body b { color: #151919; }
.nw-body a { color: #151919; font-weight: 700; text-decoration: underline; text-decoration-color: var(--hx-yellow); text-underline-offset: 3px; }
.nw-body a:hover { color: #b58f00; }
.nw-body ul, .nw-body ol { margin: 0 0 18px; padding-left: 24px; }
.nw-body li { margin: 0 0 6px; }
.nw-body img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 auto; }
.nw-body figure { margin: 28px 0; }
.nw-body figcaption { margin-top: 8px; font-size: 13px; color: #6b6f6f; text-align: center; }
.nw-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 28px 0; background: #000; }
.nw-body blockquote { margin: 28px 0; padding: 18px 24px; border-left: 5px solid var(--hx-yellow); background: #faf8f3; border-radius: 0 12px 12px 0; font-size: 17px; color: #151919; }
.nw-body blockquote p:last-child { margin-bottom: 0; }
.nw-toc { position: sticky; top: 84px; }
.nw-toc__box { padding: 18px 20px; border: 1px solid #ebe7dd; border-radius: 14px; background: #faf8f3; }
.nw-toc__title { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a6f00; margin-bottom: 10px; }
.nw-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.nw-toc li { counter-increment: toc; }
.nw-toc ol a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 6px 0; font-size: 13px; line-height: 1.4; color: #3a3f3f; text-decoration: none; border-top: 1px dashed #ebe7dd; }
.nw-toc li:first-child a { border-top: 0; padding-top: 0; }
.nw-toc ol a:before { content: counter(toc, decimal-leading-zero); font-size: 11px; font-weight: 700; color: #b8b2a4; padding-top: 2px; }
.nw-toc ol a:hover { color: #8a6f00; }
.nw-toc ol a.is-active { color: #151919; font-weight: 700; }
.nw-toc ol a.is-active:before { color: #8a6f00; }
.nw-toc__share { margin-top: 14px; padding: 16px 20px; border: 1px solid #ebe7dd; border-radius: 14px; }
.nw-toc__share .nw-toc__title { margin-bottom: 8px; }
.nw-share { display: flex; gap: 8px; }
.nw-share a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #151919; color: #fff !important; font-size: 14px; }
.nw-share a:hover { background: var(--hx-yellow); color: #151919 !important; }
.nw-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid #ebe7dd; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nw-tags span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a8f8f; margin-right: 4px; }
.nw-tags a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid #ebe7dd; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #151919 !important; text-decoration: none !important; }
.nw-tags a img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.nw-tags a:hover { border-color: #151919; }

/* ---------- prev / next + more ---------- */
.nw-after { padding: 36px 0 44px; }
.nw-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 32px; }
.nw-nav a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--hx-line); border-radius: 12px; background: rgba(255, 255, 255, .03); color: #fff !important; min-width: 0; transition: border-color .15s ease; }
.nw-nav a:hover { border-color: var(--hx-yellow); text-decoration: none; }
.nw-nav a small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-muted); }
.nw-nav a strong { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.nw-nav a.nw-nav--next { text-align: right; align-items: flex-end; }
.nw-more__head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.nw-more__head h2 { margin: 0; font-size: 18px; color: #fff; }
.nw-more__head a { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hx-yellow) !important; }
.nw-more .nw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-more .nw-story { grid-template-columns: 1fr; }
.nw-more .nw-story__media { min-height: 0; aspect-ratio: 16 / 9; }
.nw-after .dp-cta { margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .nw-read { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; }
}
@media (max-width: 991px) {
    .nw-mast h1 { font-size: 32px; }
    .nw-featured { grid-template-columns: 1fr; }
    .nw-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
    .nw-featured__media img { position: static; aspect-ratio: 16 / 9; }
    .nw-grid { grid-template-columns: 1fr; }
    .nw-story { grid-template-columns: 180px minmax(0, 1fr); }
    .nw-article__mast { padding-bottom: 120px; }
    .nw-article__mast h1 { font-size: 30px; }
    .nw-figure { margin-top: -90px; }
    .nw-read { grid-template-columns: 1fr; }
    .nw-toc { position: static; }
    .nw-toc__box { display: none; } /* long TOC on a phone pushes the story down; the share box stays */
    .nw-more .nw-grid { grid-template-columns: 1fr; }
    .nw-more .nw-story { grid-template-columns: 180px minmax(0, 1fr); }
    .nw-more .nw-story__media { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 580px) {
    .nw-mast { padding: 28px 0 22px; }
    .nw-mast h1 { font-size: 26px; }
    .nw-featured__body { padding: 20px 20px 22px; }
    .nw-featured h2 { font-size: 21px; }
    .nw-story, .nw-more .nw-story { grid-template-columns: 1fr; }
    .nw-story__media, .nw-more .nw-story__media { min-height: 0; aspect-ratio: 16 / 9; }
    .nw-story__media img { position: static; aspect-ratio: 16 / 9; }
    .nw-article__mast { padding: 28px 0 100px; }
    .nw-article__mast h1 { font-size: 25px; }
    .nw-figure { margin-top: -80px; aspect-ratio: 16 / 10; border-radius: 12px; }
    .nw-body { font-size: 15.5px; }
    .nw-body h2 { font-size: 21px; }
    .nw-nav { grid-template-columns: 1fr; }
    .nw-nav a.nw-nav--next { text-align: left; align-items: flex-start; }
}
