/* News Hub chrome — scoped, no Tailwind build needed */
.nbt-cmd { margin-bottom: 8px; }
.nbt-risk { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:700;
  border:1px solid; border-radius:999px; padding:5px 11px; white-space:nowrap; }
.nbt-risk__dot { width:7px; height:7px; border-radius:50%; box-shadow:0 0 0 3px rgba(255,255,255,.05); }
.nbt-tabs { display:flex; gap:4px; margin-top:0; border-bottom:1px solid var(--line,#1f2937);
  overflow-x:auto; -webkit-overflow-scrolling:touch; }
/* Base tab styling comes from the shared .tab-strip (--stacked) in base.css;
   this scoped rule just makes the active room unmistakable inside the hub. */
.nbt-tabs .tab-strip__tab.is-active { background:rgba(0,212,168,.08); border-radius:9px 9px 0 0; }

/* ── Market snapshot band — labeled market backdrop above the room nav ── */
.nbt-snap { margin-top:16px; padding:13px 14px 6px; border:1px solid var(--line,#1f2937);
  border-radius:14px; background:rgba(255,255,255,.015); }
.nbt-snap__head { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.nbt-snap__title { font-size:12px; font-weight:800; color:#fff; text-transform:uppercase; letter-spacing:.12em; }
.nbt-snap__hint { font-size:12px; color:var(--muted,#9ca3af); }
.nbt-snap__tape { display:flex; flex-wrap:wrap; gap:8px; }
.nbt-snap__sent { margin-top:2px; }
.nbt-snap__sent .nbt-sent { margin:8px 0 6px; }

/* ── Room navigation — clearly separated from the snapshot ── */
.nbt-nav { margin-top:18px; }
.nbt-nav__head { display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  flex-wrap:wrap; margin-bottom:8px; }
.nbt-nav__label { font-size:12px; font-weight:800; color:#fff; text-transform:uppercase; letter-spacing:.12em; }
.nbt-nav__viewing { font-size:12px; color:var(--muted,#9ca3af); }
.nbt-nav__viewing-sub { color:var(--muted,#9ca3af); }
.nbt-zone { margin-top:24px; }
.nbt-zone__head { margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid var(--line,#1f2937); }
.nbt-zone__head h2 { font-size:clamp(22px,3vw,30px); font-weight:800; color:#fff; letter-spacing:-.02em; line-height:1.1; }
.nbt-zone__head p { font-size:13px; color:var(--muted,#9ca3af); margin-top:6px; max-width:64ch; line-height:1.55; }
.nbt-zone__empty { font-size:13px; color:var(--muted,#9ca3af); padding:30px; text-align:center;
  border:1px dashed var(--line,#1f2937); border-radius:14px; }
/* When JS is on, show only the active zone; noscript keeps every zone visible */
.nbt-hub.js .nbt-zone { display:none; }
.nbt-hub.js .nbt-zone.is-active { display:block; }

/* Ground-News-style sentiment bar (bull / bear / neutral) */
.nbt-sent { margin: 14px 0 16px; }
.nbt-sent__top { display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  flex-wrap:wrap; margin-bottom:6px; }
.nbt-sent__label { font-size:12px; font-weight:700; color:#fff; text-transform:uppercase;
  letter-spacing:.04em; }
.nbt-sent__sub { font-size:12px; font-weight:500; color:var(--muted,#9ca3af); text-transform:none;
  letter-spacing:0; margin-left:4px; }
.nbt-sent__counts { font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.nbt-sent__dot { color:var(--muted,#9ca3af); margin:0 5px; font-weight:400; }
.nbt-sent__n { color:var(--muted,#9ca3af); font-weight:500; margin-left:5px; }
.nbt-sent__bar { display:flex; height:9px; border-radius:999px; overflow:hidden;
  background:#1a2230; border:1px solid var(--line,#1f2937); }
.nbt-sent__bar > span { height:100%; display:block; transition:width .3s ease; }

/* Editorial article layer (ed-*) now lives in static/editorial.css (site-wide,
   Task #1116) — loaded for every page from base.html. */
.nbt-snap .pill { white-space:nowrap; }

.cite-sup { color: #00d4a8; font-size: 0.7em; margin-left: 1px; text-decoration: none; vertical-align: super; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── News-first feed (Task #766 → #961: Yahoo-style list + tabbed sidebar) ──
   All scoped CSS — no Tailwind build needed. Mono stack hardcoded (no var). */
.nf-shell { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:30px; align-items:start; margin-top:2px; }
@media (max-width:1100px){ .nf-shell { grid-template-columns:1fr; gap:24px; } }
.nf-main { min-width:0; }

/* Vertical headline list (thumbnail left, text right) */
#nf-grid.nf-list { display:flex; flex-direction:column; gap:0; }
.nf-row { display:flex; gap:15px; padding:16px 2px; border-bottom:1px solid var(--line,#1f2937); position:relative; }
.nf-row:first-child { padding-top:2px; }
.nf-thumb { flex:0 0 170px; width:170px; aspect-ratio:16/10; border-radius:11px; overflow:hidden; background:#0e1521; display:block; }
.nf-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.nf-row:hover .nf-thumb img { transform:scale(1.05); }
.nf-row__txt { flex:1; min-width:0; display:flex; flex-direction:column; }
.nf-row__title { font-size:16px; font-weight:700; color:#e8eef6; line-height:1.32; text-decoration:none;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.nf-row__title:hover { color:#00d4a8; }
.nf-row__sum { font-size:13px; color:var(--muted,#9ca3af); margin-top:6px; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nf-row__meta { font-size:12px; color:var(--muted,#9ca3af); margin-top:9px; font-variant-numeric:tabular-nums;
  display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.nf-row__src { color:#cbd5e1; font-weight:600; }
.nf-row__dot { opacity:.6; }
.nf-row__chips { margin-top:9px; display:flex; flex-wrap:wrap; gap:5px; }
.nf-chip { font-size:12px; font-family:'Inter',system-ui,sans-serif; padding:2px 7px; border-radius:5px;
  background:#0b1220; border:1px solid var(--line,#1f2937); color:#00d4a8; text-decoration:none; transition:border-color .2s,color .2s; }
.nf-chip:hover { border-color:rgba(0,212,168,.5); color:#5eead4; }
@media (max-width:640px){
  .nf-thumb { flex-basis:104px; width:104px; border-radius:9px; }
  .nf-row__title { font-size:14px; }
  .nf-row__sum { display:none; }
}

/* Show-more collapse (rows are flex). JS off (no .nf-js) ⇒ all visible. */
#nf-grid.nf-js .nf-extra { display:none; }
#nf-grid.nf-js.nf-open .nf-extra { display:flex; }
/* Trending filter overrides BOTH collapse states (beats .nf-open via !important). */
#nf-grid.nf-filter .nf-row.nf-match { display:flex !important; }
#nf-grid.nf-filter .nf-row:not(.nf-match) { display:none !important; }

/* Trending-filter banner */
.nf-filter-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px;
  padding:9px 12px; border:1px solid rgba(0,212,168,.25); background:rgba(0,212,168,.06); border-radius:10px;
  font-size:12px; color:var(--muted,#9ca3af); }
.nf-filter-bar__view { color:#00d4a8; font-weight:600; text-decoration:none; }
.nf-filter-bar__view:hover { text-decoration:underline; }
.nf-filter-bar__clear { margin-left:auto; font-size:12px; font-weight:700; color:#cbd5e1;
  border:1px solid var(--line,#1f2937); border-radius:7px; padding:4px 10px; background:transparent; cursor:pointer;
  transition:border-color .2s,color .2s; }
.nf-filter-bar__clear:hover { border-color:rgba(0,212,168,.5); color:#5eead4; }
.nf-filter-bar__follow { font-size:12px; font-weight:700; color:#cbd5e1; border:1px solid var(--line,#1f2937);
  border-radius:7px; padding:4px 10px; background:transparent; cursor:pointer; transition:border-color .2s,color .2s; }
.nf-filter-bar__follow:hover { border-color:rgba(251,191,36,.5); color:#fbbf24; }
.nf-filter-bar__follow.is-on { color:#fbbf24; border-color:rgba(251,191,36,.5); background:rgba(251,191,36,.07); }

/* ── Task #1084: sectioned feed, category chips, favorites ──
   The [hidden] guard is the phantom-"Show all" fix: several feed elements
   carry custom display rules (flex/grid) that would otherwise override the
   UA's [hidden]{display:none}, so the bar showed on page load. */
#zone-feed [hidden] { display:none !important; }

.nf-cats { display:none; flex-wrap:wrap; gap:7px; margin:2px 0 14px; }
#news-hub.js .nf-cats { display:flex; }
.nf-cat-btn { font-size:12px; font-weight:700; color:#cbd5e1; padding:6px 12px; border-radius:999px;
  border:1px solid var(--line,#1f2937); background:transparent; cursor:pointer;
  transition:border-color .2s,color .2s,background .2s; }
.nf-cat-btn:hover { border-color:rgba(0,212,168,.45); color:#5eead4; }
.nf-cat-btn.is-active { color:#04110d; background:#00d4a8; border-color:#00d4a8; }
.nf-cat-btn.is-active:hover { color:#04110d; }
.nf-cat-btn__n { font-size:12px; opacity:.75; }

.nf-follow-strip { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:-4px 0 14px;
  font-size:12px; color:var(--muted,#9ca3af); }
.nf-follow-strip__chips { display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px; }
.nf-follow-chip { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700;
  padding:3px 9px; border-radius:999px; border:1px solid rgba(251,191,36,.35); color:#fbbf24;
  background:rgba(251,191,36,.06); }
.nf-follow-chip button { border:0; background:transparent; color:inherit; cursor:pointer;
  font-size:13px; line-height:1; padding:0; }

/* Section headers */
.nf-sec { margin-top:26px; min-width:0; }
#nf-grid .nf-sec:first-child { margin-top:4px; }
/* ESPN-style section slugs (Task #1098): big, heavy, uppercase, mint bar. */
.nf-sec__head { display:flex; align-items:baseline; gap:10px; margin-bottom:6px; padding-left:10px;
  border-left:4px solid #00d4a8; }
.nf-sec__title { font-size:clamp(15px,1.7vw,18px); font-weight:900; text-transform:uppercase;
  letter-spacing:.08em; color:#fff; }
.nf-sec__count, .nf-sec__hint { font-size:12px; color:var(--muted,#9ca3af); }
.nf-follow { margin-left:auto; font-size:12px; font-weight:700; color:#cbd5e1;
  border:1px solid var(--line,#1f2937); border-radius:7px; padding:3px 9px; background:transparent;
  cursor:pointer; transition:border-color .2s,color .2s; white-space:nowrap; display:none; }
#news-hub.js .nf-follow { display:inline-block; }
.nf-follow:hover { border-color:rgba(251,191,36,.5); color:#fbbf24; }
.nf-follow.is-on { color:#fbbf24; border-color:rgba(251,191,36,.5); background:rgba(251,191,36,.07); }

/* Two-column story lists on wide screens — fills the empty right-hand gap. */
.nf-sec__list { display:grid; grid-template-columns:1fr; }
@media (min-width:1280px){
  .nf-sec__list { grid-template-columns:repeat(2, minmax(0,1fr)); column-gap:34px; }
}

/* Save control (JS-only — hidden without JS so it is never a dead button) */
.nf-save { margin-left:auto; font-size:12px; font-weight:700; color:#9ca3af;
  border:1px solid var(--line,#1f2937); border-radius:7px; padding:2px 9px; background:transparent;
  cursor:pointer; transition:border-color .2s,color .2s; white-space:nowrap; display:none; }
#news-hub.js .nf-save { display:inline-block; }
.nf-save:hover { border-color:rgba(251,191,36,.5); color:#fbbf24; }
.nf-save.is-saved { color:#fbbf24; border-color:rgba(251,191,36,.5); background:rgba(251,191,36,.07); }

/* Top stories band */
.nf-top { margin-bottom:6px; }
.nf-top__grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:22px; margin-top:10px; }
@media (max-width:900px){ .nf-top__grid { grid-template-columns:1fr; } }
.nf-card { display:flex; flex-direction:column; min-width:0; position:relative; }
.nf-card__img { display:block; border-radius:12px; overflow:hidden; background:#0e1521; aspect-ratio:16/9; margin-bottom:10px; }
.nf-card__img img, .nf-card__thumb img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.nf-card:hover .nf-card__img img, .nf-card:hover .nf-card__thumb img { transform:scale(1.04); }
.nf-card__title { font-size:14px; font-weight:700; color:#e8eef6; line-height:1.35; text-decoration:none;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.nf-card--lead .nf-card__title { font-size:20px; font-weight:800; color:#fff; line-height:1.25; -webkit-line-clamp:3; }
.nf-card__title:hover { color:#00d4a8; }
.nf-card__sum { font-size:13px; color:var(--muted,#9ca3af); margin-top:7px; line-height:1.55;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nf-top__side { display:flex; flex-direction:column; gap:14px; min-width:0; }
.nf-card--mini { flex-direction:row; gap:12px; align-items:flex-start; }
.nf-card__thumb { flex:0 0 108px; width:108px; aspect-ratio:16/11; border-radius:9px; overflow:hidden;
  background:#0e1521; display:block; }
.nf-card__txt { flex:1; min-width:0; display:flex; flex-direction:column; }

/* Picking a category chip reveals that section's full tail (still JS-gated). */
#nf-grid.nf-js.nf-cat .nf-extra { display:flex; }

/* Trending follow star (sidebar) */
.nf-trend-wrap { display:flex; align-items:center; gap:2px; }
.nf-trend-wrap .nf-trend { flex:1; min-width:0; }
.nf-trend__fw { flex:0 0 auto; border:0; background:transparent; color:#6b7280; font-size:14px;
  padding:4px 7px; border-radius:7px; cursor:pointer; transition:color .2s,background .2s; display:none; }
#news-hub.js .nf-trend__fw { display:inline-block; }
.nf-trend__fw:hover { color:#fbbf24; background:rgba(251,191,36,.08); }
.nf-trend__fw.is-on { color:#fbbf24; }

/* ── Tabbed market sidebar ── */
.nf-aside { min-width:0; }
@media (min-width:1101px){ .nf-aside { position:sticky; top:74px; } }
.nf-side { border:1px solid var(--line,#1f2937); border-radius:14px; background:rgba(255,255,255,.015); overflow:hidden; }
.nf-side__tabs { display:flex; border-bottom:1px solid var(--line,#1f2937); }
.nf-side__tab { flex:1; padding:10px 6px; font-size:12px; font-weight:700; color:var(--muted,#9ca3af);
  background:transparent; border:0; border-bottom:2px solid transparent; cursor:pointer; white-space:nowrap;
  transition:color .2s,border-color .2s,background .2s; }
.nf-side__tab:hover { color:#cbd5e1; }
.nf-side__tab.is-active { color:#fff; border-bottom-color:#00d4a8; background:rgba(0,212,168,.07); }
.nf-side__panel { padding:14px; }
.nf-side__panel[hidden] { display:none; }
.nf-side__hint { font-size:12px; color:var(--muted,#9ca3af); margin-bottom:10px; line-height:1.45; }
.nf-side__sub { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.1em;
  color:var(--muted,#9ca3af); margin:14px 0 7px; }
.nf-side__sub:first-child { margin-top:0; }
.nf-side__sub--up { color:#00d4a8; }
.nf-side__sub--down { color:#ff5c5c; }
.nf-side__list { display:flex; flex-direction:column; gap:2px; }
.nf-side__empty { font-size:12px; color:var(--muted,#9ca3af); padding:18px 4px; text-align:center; line-height:1.5; }
.nf-side__more { display:inline-block; margin-top:12px; font-size:12px; font-weight:600; color:#00d4a8; text-decoration:none; }
.nf-side__more:hover { text-decoration:underline; }

/* Trending rows (buttons that filter the list) */
.nf-trend { display:flex; align-items:baseline; gap:8px; width:100%; text-align:left; padding:7px 8px;
  border:0; border-radius:8px; background:transparent; cursor:pointer; transition:background .15s; }
.nf-trend:hover { background:rgba(0,212,168,.06); }
.nf-trend__sym { font-family:'Inter',system-ui,sans-serif; font-weight:700; font-size:13px; color:#fff; }
.nf-trend__cnt { font-size:12px; color:var(--muted,#9ca3af); }
.nf-trend__pct { margin-left:auto; font-family:'Inter',system-ui,sans-serif; font-weight:700; font-size:12px; font-variant-numeric:tabular-nums; }

/* Mover / smart-money rows */
.nf-mover, .nf-sm { display:flex; align-items:baseline; gap:8px; padding:6px 8px; border-radius:8px;
  text-decoration:none; transition:background .15s; }
.nf-mover:hover, .nf-sm:hover { background:rgba(0,212,168,.06); }
.nf-mover__sym, .nf-sm__sym { font-family:'Inter',system-ui,sans-serif; font-weight:700; font-size:13px; color:#fff; }
.nf-mover__px { font-size:12px; color:var(--muted,#9ca3af); }
.nf-mover__pct { margin-left:auto; font-family:'Inter',system-ui,sans-serif; font-weight:700; font-size:12px; font-variant-numeric:tabular-nums; }
.nf-sm__who { font-size:12px; color:#cbd5e1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:120px; }
.nf-sm__who--wide { max-width:185px; }
.nf-sm__amt { margin-left:auto; font-size:12px; color:var(--muted,#9ca3af); white-space:nowrap; }

/* Calendar rows */
.nf-cal { display:flex; align-items:baseline; gap:8px; padding:6px 8px; }
.nf-cal--stack { flex-direction:column; gap:2px; align-items:flex-start; }
.nf-cal__what { font-size:12px; color:#fff; font-weight:600; }
.nf-cal:not(.nf-cal--stack) .nf-cal__when { margin-left:auto; }
.nf-cal__when { font-size:12px; color:#00d4a8; font-family:'Inter',system-ui,sans-serif; }
.nf-cal__title { font-size:12px; color:#cbd5e1; line-height:1.4; }

/* Sidebar filler modules (Task #1115) — balance the aside against the feed */
.nf-side--extra { margin-top:14px; }
.nf-brief { display:flex; align-items:baseline; gap:8px; padding:6px 8px; border-radius:8px;
  text-decoration:none; transition:background .15s; }
.nf-brief:hover { background:rgba(0,212,168,.06); }
.nf-brief__kind { font-size:12px; font-weight:600; color:#e8eef6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nf-brief__day { margin-left:auto; font-size:12px; color:var(--muted,#9ca3af); white-space:nowrap; }
