/* News only: the /trending/ archive and the single news template.
   Linked from those pages alone. */

/* ---- chips shared by the archive rows and the post ---- */
.nw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.nw-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.nw-topic { background: rgba(43,127,240,.1); color: #1a5fd0; border-color: transparent; }
.nw-impact::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.nw-high { background: rgba(234,67,53,.1); color: #b3261e; border-color: transparent; }
.nw-medium { background: rgba(251,188,5,.18); color: #8a5a00; border-color: transparent; }
.nw-low { background: rgba(52,168,83,.12); color: #1e7e34; border-color: transparent; }

/* ---- hero: a dateline, like a wire story ---- */
.nw-hero { padding: 50px 0 96px; color: #fff; background:
    linear-gradient(180deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 34px,
    radial-gradient(760px 480px at 100% 0%, rgba(43,127,240,.55), transparent 62%),
    linear-gradient(135deg, #0a1428, #12224a 65%, #0e1b33); }
.nw-hero h1 { max-width: 24ch; font-size: clamp(1.8rem, 3.8vw, 2.8rem); text-wrap: balance; }
.nw-hero .lead { max-width: 62ch; }
.nw-hero .post-meta a { color: #fff; font-weight: 700; }
.nw-dateline { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; flex-wrap: wrap; }
.nw-date { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.nw-date b { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 50%; background: var(--g-red); color: #fff;
  font-family: var(--font-display); font-size: 1rem; font-variant-numeric: tabular-nums; }
.nw-date span { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nw-hero .nw-chips { margin: 0; }
.nw-hero .nw-chip { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.nw-hero .nw-high { background: rgba(234,67,53,.9); border-color: transparent; }
.nw-hero .nw-medium { background: rgba(251,188,5,.95); color: #3d2a00; border-color: transparent; }
.nw-hero .nw-low { background: rgba(52,168,83,.9); border-color: transparent; }

/* ---- the short version ---- */
.nw-brief-wrap { margin-top: -60px; position: relative; z-index: 2; }
.nw-brief { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.nw-box { padding: 22px 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.nw-box:last-child { border-bottom: 0; }
.nw-box h2 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.nw-box p { color: var(--ink); font-size: .96rem; line-height: 1.6; }
.nw-do { background: var(--bg-soft); }
.nw-do h2 { color: #1e7e34; }
.nw-do ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nw-do li { position: relative; padding-left: 28px; font-size: .94rem; line-height: 1.5; font-weight: 500; }
.nw-do li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--g-green); background: #fff; }
.nw-do li::after { content: ""; position: absolute; left: 5px; top: 5px; width: 5px; height: 9px; border: solid var(--g-green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---- body ---- */
.nw-body-sec { padding-top: 46px; }
.nw-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.nw-prose { max-width: 70ch; }
.nw-sources { margin-top: 36px; padding: 20px 22px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.nw-sources h2 { font-size: .78rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px !important; }
.nw-sources ol { margin: 0 0 0 18px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.nw-sources a { overflow-wrap: anywhere; }
.nw-pager { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
.nw-pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.nw-pager a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.nw-pager span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 5px; }
.nw-pager b { display: block; font-family: var(--font-display); font-size: .94rem; line-height: 1.4; color: var(--ink); }
.nw-next { text-align: right; }

/* ---- sidebar feed ---- */
.nw-feed { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.nw-feed li { position: relative; }
.nw-feed li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.nw-feed time { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.nw-feed a { font-weight: 600; font-size: .9rem; line-height: 1.4; color: var(--ink); text-decoration: none; }
.nw-feed a:hover { color: var(--brand); }
.an-all { margin-top: 12px; font-weight: 700; font-size: .88rem; }

/* ---- archive: grouped by month ---- */
.nw-month { margin-bottom: 40px; }
.nw-month-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 1.3rem !important; padding-bottom: 12px; margin-bottom: 18px !important; border-bottom: 2px solid var(--ink); }
.nw-month-h b { font-family: var(--font-body); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 760px) {
  .nw-brief.nw-b2 { grid-template-columns: 1fr 1fr; }
  .nw-brief.nw-b3 { grid-template-columns: 1fr 1fr 1.1fr; }
  .nw-box { border-bottom: 0; border-right: 1px solid var(--line); }
  .nw-box:last-child { border-right: 0; }
  .nw-pager { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .nw-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .nw-side { position: sticky; top: 96px; }
}
@media (prefers-reduced-motion: reduce) { .nw-pager a { transition: none; } }
