/* ==========================================================================
   Cybergen — Cyber News hub (/cyber-news): a newsroom front page, deliberately
   different from the blog's card grid. Prefix nw-.
   ========================================================================== */
.nw-hero { padding: 120px 0 0; }
.nw-mast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-bottom: 36px; }
.nw-mast h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 800; line-height: .98; letter-spacing: -1.5px; margin: 14px 0 16px; }
.nw-mast h1 .shimmer { opacity: 1; animation: shimmer 5s linear infinite; }
.nw-mast p { color: rgba(255,255,255,.72); font-size: 17px; max-width: 600px; margin: 0; line-height: 1.6; }
.nw-meta { display: grid; gap: 14px; justify-items: end; text-align: right; }
.nw-date { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.nw-date b { display: block; font-size: 22px; font-weight: 800; letter-spacing: 0; text-transform: none; color: #fff; margin-top: 4px; }
.nw-meta .search { margin: 0; width: 320px; }
.nw-feed { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.nw-feed svg { width: 14px; height: 14px; color: var(--accent); }
.nw-feed:hover { color: #fff; }

/* wire ticker */
.nw-wire { background: var(--navy-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); color: #fff; font-size: 13.5px; display: flex; align-items: stretch; overflow: hidden; }
.nw-wire .ticker-label { padding: 13px 22px; }
.nw-wire .marquee { flex: 1; }
.nw-wire .marquee-track { animation-duration: 55s; }
.nw-wire .item { padding: 13px 24px; white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); }
.nw-wire .item time { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.nw-wire .item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(148,212,244,.5); margin-left: 14px; }
.nw-wire a.item:hover { color: var(--accent); }

/* front page */
.nw-front { background: #fff; padding: 56px 0 24px; border-bottom: 1px solid var(--line); }
.nw-front-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.nw-lead { display: block; color: inherit; }
.nw-lead .thumb { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); }
.nw-lead .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.nw-lead:hover .thumb img { transform: scale(1.03); }
.nw-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.nw-kicker .dot-pulse { background: var(--blue); }
.nw-lead h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; color: var(--navy); margin: 0 0 14px; text-wrap: balance; transition: color .2s; }
.nw-lead:hover h2 { color: var(--blue); }
.nw-lead p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; max-width: 680px; }
.nw-line { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.nw-line .sep { color: var(--accent); }
.nw-line svg { width: 15px; height: 15px; color: var(--blue); }
.nw-latest { border-left: 1px solid var(--line); padding-left: 36px; }
.nw-latest h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; color: var(--blue); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.nw-latest ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.nw-latest li { counter-increment: n; border-bottom: 1px solid var(--line); }
.nw-latest li:last-child { border-bottom: 0; }
.nw-latest a { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; color: inherit; }
.nw-latest a::before { content: counter(n, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 4px; }
.nw-latest time { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 5px; }
.nw-latest b { font-size: 15.5px; line-height: 1.4; color: var(--navy); font-weight: 600; transition: color .2s; }
.nw-latest a:hover b { color: var(--blue); }
.nw-latest small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* story rows */
.nw-body { background: var(--light); padding: 56px 0 90px; }
.nw-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.nw-rows { display: grid; gap: 0; }
.nw-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 200px; gap: 26px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); color: inherit; }
.nw-row:last-child { border-bottom: 1px solid var(--line); }
.nw-row time { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); line-height: 1.5; }
.nw-row time b { display: block; font-size: 30px; line-height: 1; letter-spacing: -.5px; color: var(--navy); margin-bottom: 4px; }
.nw-row h3 { font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--navy); margin: 0 0 8px; transition: color .2s; }
.nw-row:hover h3 { color: var(--blue); }
.nw-row p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
.nw-row .more { font-size: 13.5px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.nw-row .more svg { width: 15px; height: 15px; transition: transform .2s; }
.nw-row:hover .more svg { transform: translateX(3px); }
.nw-row .thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy); }
.nw-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-empty { padding: 26px 30px; border: 1px dashed rgba(0,84,133,.35); border-radius: 14px; background: #fff; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.nw-empty b { color: var(--navy); }
.nw-empty a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* sidebar */
.nw-side { display: grid; gap: 18px; position: sticky; top: 96px; }
.nw-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.nw-box h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.nw-box p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.nw-box strong { font-size: 40px; font-weight: 800; line-height: 1; color: var(--navy); display: block; margin-bottom: 6px; letter-spacing: -1px; }
.nw-box .btn { width: 100%; justify-content: center; }
.nw-box.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.nw-box.dark h4 { color: var(--accent); }
.nw-box.dark p { color: rgba(255,255,255,.72); }
.nw-box.dark strong { color: #fff; }
.nw-box .nl-form { display: grid; gap: 10px; }
.nw-box .nl-form input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid rgba(148,212,244,.35); background: rgba(255,255,255,.08); color: #fff; padding: 0 14px; font: inherit; }
.nw-box .nl-form input::placeholder { color: rgba(255,255,255,.5); }
.nw-box .nl-msg { font-size: 13px; color: var(--accent); margin: 0; }
.nw-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nw-links a { font-size: 14px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.nw-links li:last-child a { border-bottom: 0; }
.nw-links a:hover { color: var(--blue); }
.nw-links svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* search results reuse the blog card look */
.nw-body .grid-posts { margin-bottom: 30px; }

@media (max-width: 1080px) {
  .nw-front-grid, .nw-body-grid { grid-template-columns: 1fr; }
  .nw-latest { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .nw-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .nw-hero { padding-top: 104px; }
  .nw-mast { grid-template-columns: 1fr; gap: 20px; }
  .nw-meta { justify-items: start; text-align: left; }
  .nw-meta .search { width: 100%; }
  .nw-row { grid-template-columns: 1fr; gap: 12px; }
  .nw-row time { display: flex; align-items: baseline; gap: 10px; }
  .nw-row time b { font-size: 22px; margin: 0; }
  .nw-row .thumb { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .nw-lead .thumb img, .nw-row .more svg { transition: none; } }
