/* Nairaview news pages, refurbishment v2 (26 Nov 2026), from the
   deep-research plan. Loaded only by the four news pages.
   Reuses the site's own classes (.news-card, .news-grid, .news-meta,
   .news-thumb, .kicker, .section-heading, .dir-count, .news-more-btn)
   wherever possible; sharp edges, no decorative pills. Filters are
   plain text tabs with an underline, sector labels are small caps
   text, ticker tags are plain text links. */

/* ---- Context + freshness lines (plan items 12 and 3) ---- */
.news-context { color: var(--muted); font: 500 12px/1.6 "IBM Plex Mono", "Noto Sans", monospace; margin: 0 0 4px; }

/* ---- Shared card anatomy (plan items 5 and 14) ---- */
.news-sector-label { display: block; font: 700 10px/1.4 "IBM Plex Mono", "Noto Sans", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.news-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .news-meta { margin-top: auto; padding-top: 10px; }
.news-tickers { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.news-tickers a { font: 700 11px/1.4 "IBM Plex Mono", "Noto Sans", monospace; letter-spacing: .03em; color: var(--green-strong); text-decoration: none; }
.news-tickers a:hover { text-decoration: underline; }
/* ---- Card thumbnails: one fixed 16/10 frame, picture cropped to fill
   it (plan fix, 26 Nov). Without this every picture renders at its
   natural shape and the grid goes ragged. ---- */
.news-thumb { overflow: hidden; }
.news-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---- Lead story hero (plan item 1) ---- */
.news-hero:empty { display: none; }
.news-hero-card { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: center; text-decoration: none; color: inherit; border-top: 3px solid var(--green); background: var(--surface); padding: 24px 28px; }
.news-hero-thumb { overflow: hidden; }
.news-hero-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-hero-body .kicker { margin-bottom: 10px; }
.news-hero-body h2 { margin: 0 0 12px; font: 700 clamp(24px, 3vw, 32px)/1.1 "Barlow Semi Condensed", "Noto Sans", sans-serif; letter-spacing: -.02em; }
.news-hero-body p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-hero-card:hover h2 { color: var(--green-strong); }
.news-hero-rule { color: var(--muted); font: 500 11px/1.5 "IBM Plex Mono", "Noto Sans", monospace; margin-top: 12px; }

/* ---- Top Stories + Insights rails (plan item 1) ---- */
.news-top-rail { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
.news-top-rail .nv-take-grid { grid-template-columns: 1fr; }
.news-text-list { display: flex; flex-direction: column; }
.news-text-item { display: block; text-decoration: none; color: inherit; padding: 2px 0 14px 14px; margin-bottom: 14px; border-left: 3px solid var(--green-strong); }
.news-text-item:last-child { margin-bottom: 0; }
.news-text-item .news-sector-label { margin-bottom: 4px; }
.news-text-head { display: block; font: 700 18px/1.2 "Barlow Semi Condensed", "Noto Sans", sans-serif; margin-bottom: 4px; }
.news-text-item:hover .news-text-head { color: var(--green-strong); }
.news-text-meta { display: block; color: var(--muted); font: 500 10px/1.4 "IBM Plex Mono", "Noto Sans", monospace; }

/* ---- Plain-text tab filters (plan item 6): text, active underlined ---- */
.news-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 18px; overflow-x: auto; }
.news-tab { background: none; border: 0; padding: 4px 2px; font: 600 11px/1.4 "IBM Plex Mono", "Noto Sans", monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; white-space: nowrap; }
.news-tab:hover { color: var(--ink); }
.news-tab[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---- Sector blocks (plan item 4): one lead card, text headlines below ---- */
.news-sector-block { margin-bottom: 8px; }
.news-sector-block .news-sector-lead { margin-bottom: 18px; }
.news-card.news-lead { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; align-items: start; min-height: 0; }
.news-card.news-lead .news-thumb { margin: 0; }
.news-card.news-lead h3 { margin-top: 0; font-size: 22px; }
.news-card.news-lead .news-sector-label { grid-column: 1 / -1; margin-bottom: -12px; }

/* ---- Compact headlines list (plan item 7) ---- */
.news-search { display: block; width: 100%; max-width: 460px; padding: 10px 12px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 14px/1.4 "Barlow", "Noto Sans", sans-serif; border-radius: 0; }
.news-search:focus { outline: 2px solid var(--gold-line); outline-offset: 0; }
.news-list { display: flex; flex-direction: column; }
.news-row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-row-mark { font: 700 12px/1.4 "IBM Plex Mono", "Noto Sans", monospace; letter-spacing: .02em; color: var(--green-strong); padding-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-row-meta { display: block; color: var(--muted); font: 500 10px/1.4 "IBM Plex Mono", "Noto Sans", monospace; margin-bottom: 3px; }
.news-row-head { display: block; font: 700 16px/1.25 "Barlow Semi Condensed", "Noto Sans", sans-serif; }
.news-row:hover .news-row-head { color: var(--green-strong); }

/* ---- Newsroom archive (plan item 9) ---- */
.news-archive-date { font: 700 15px/1.3 "Barlow Semi Condensed", "Noto Sans", sans-serif; margin: 26px 0 4px; }
.news-archive-group:first-child .news-archive-date { margin-top: 0; }

/* ---- Most mentioned rail (plan item 10) ---- */
.news-mentioned { list-style: none; margin: 0; padding: 0; }
.news-mentioned li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.news-mentioned-ticker { font: 700 13px/1.4 "IBM Plex Mono", "Noto Sans", monospace; color: var(--green-strong); text-decoration: none; margin-right: 10px; }
.news-mentioned-ticker:hover { text-decoration: underline; }
.news-mentioned-count { color: var(--muted); font: 500 11px/1.4 "IBM Plex Mono", "Noto Sans", monospace; margin-right: 10px; white-space: nowrap; }
.news-mentioned-head { color: inherit; text-decoration: none; }
.news-mentioned-head:hover { color: var(--green-strong); }

/* ---- Market notes (plan item 8): latest note leads, related links ---- */
.notes-grid > :first-child { grid-column: 1 / -1; }
.notes-grid > :first-child h3 { font-size: 22px; }
.news-related { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.news-related a { color: var(--ink); text-decoration: none; }
.news-related a:hover { color: var(--green-strong); }
.news-related-source { color: var(--muted); font-size: 12px; }

/* ---- Market strip (plan item 2): one row under the nav, scrolls on mobile ---- */
.news-strip { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 18px; font: 500 12px/1.6 "IBM Plex Mono", "Noto Sans", monospace; color: var(--muted); overflow-x: auto; }
.news-strip-item { white-space: nowrap; }
.news-strip-label { text-transform: uppercase; letter-spacing: .06em; font-size: 10px; margin-right: 6px; }
.news-strip-value { color: var(--ink); font-weight: 700; }
.news-strip-pct { font-weight: 700; }
.news-strip-date { margin-left: auto; white-space: nowrap; }
.news-strip-note { color: var(--muted); }
.news-strip .up, .news-signal-market .up { color: var(--green-strong); }
.news-strip .down, .news-signal-market .down { color: var(--red); }
.news-strip .neu, .news-signal-market .neu { color: var(--muted); }

/* ---- Morning Signal (plan item 8): market in numbers + what to watch ---- */
#morningSignal:empty { display: none; }
.news-signal-market { font: 500 14px/1.7 "IBM Plex Mono", "Noto Sans", monospace; color: var(--muted); margin: 0 0 18px; }
.news-signal-market strong { color: var(--ink); }
.news-signal-market .up, .news-signal-market .down, .news-signal-market .neu { font-weight: 700; }
.news-fig-date { color: var(--muted); }
.news-signal-watch { margin-bottom: 10px; }
.news-signal-watch .kicker { margin-bottom: 12px; }

/* ---- "Nairaview take" strip: notes across (hub rail overrides to 1 col) ---- */
.nv-take-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .news-hero-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .news-top-rail { grid-template-columns: 1fr; }
  .news-card.news-lead { grid-template-columns: 1fr; gap: 14px; }
  .news-card.news-lead .news-sector-label { margin-bottom: 0; }
  .nv-take-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .news-hero-card { padding: 18px; }
  .nv-take-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 76px 1fr; gap: 12px; }
  .news-tabs { flex-wrap: nowrap; }
}
