/* ============================================================
   RANKED — Style Sheet
   Dark, editorial, professional. Bloomberg meets Drudge.
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #18181f;
  --border: #222230;
  --text: #e8e8f0;
  --text-dim: #888899;
  --text-muted: #555566;
  --accent: #e63946;
  --accent2: #457b9d;
  --accent3: #f4a261;
  --green: #2dc653;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── HEADER ──────────────────────────────────────────────── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: flex; flex-direction: column; justify-content: center; }

.logo-text {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  line-height: 1;
}

.logo-tag {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.15s;
  text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.live-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 2px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.timestamp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ── CATEGORY NAV BAR ────────────────────────────────────── */
.category-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 60px; /* sticks right below header; ticker scrolls away */
  z-index: 90;
  /* Smooth shadow appears when page is scrolled */
  transition: box-shadow 0.2s;
}
.category-bar.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.category-bar::-webkit-scrollbar { display: none; }

.category-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  align-items: center;
  height: 42px;
}

.cat-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.cat-btn:hover { color: var(--text-dim); background: var(--bg3); }
.cat-btn.active {
  color: var(--text);
  background: var(--bg3);
  border-bottom: 2px solid var(--accent2);
  border-radius: 4px 4px 0 0;
}
.cat-btn[data-cat="WAR"].active { border-color: var(--accent); }
.cat-btn[data-cat="MARKETS"].active { border-color: var(--green); }
.cat-btn[data-cat="SPORTS"].active { border-color: var(--accent3); }
.cat-btn[data-cat="POLITICS"].active { border-color: #a78bfa; }

/* ── WAR SUB-CATEGORY BAR ────────────────────────────────── */
.subcategory-bar {
  background: #0e0e1a;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 102px; /* header 60px + category bar 42px */
  z-index: 89;
}
.subcategory-bar::-webkit-scrollbar { display: none; }

.subcategory-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  align-items: center;
  height: 36px;
}

.subcat-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.subcat-btn {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.subcat-btn:hover { color: var(--text-dim); background: var(--bg3); }
.subcat-btn.active {
  color: #fff;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.3);
}

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-bar {
  background: var(--accent);
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
}

.ticker-label {
  background: #b02030;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  animation: ticker-scroll 45s linear infinite;
  padding-left: 100%;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 360px 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-header h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}

.section-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
  text-transform: none;
  margin-left: 8px;
}

.updated-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1px;
}

/* ── LEFT COLUMN — BREAKING ──────────────────────────────── */
.col-left {
  position: sticky;
  top: 94px;
}

/* Story Cards */
.story-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
  cursor: pointer;
}

.story-card:hover { border-color: var(--accent2); }

.story-card.loading {
  pointer-events: none;
}

.story-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.story-category {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent2);
}

.story-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.story-headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}

.story-fact {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.story-source {
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.story-source span {
  color: var(--accent2);
}

/* Skeleton loading */
.skeleton-line {
  height: 12px;
  background: var(--bg3);
  border-radius: 4px;
  margin-bottom: 8px;
  animation: shimmer 1.5s infinite;
}
.w80 { width: 80%; }
.w70 { width: 70%; }
.w65 { width: 65%; }
.w60 { width: 60%; }
.w50 { width: 50%; }
.w40 { width: 40%; }
.w30 { width: 30%; }
.w90 { width: 90%; }

@keyframes shimmer {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}

/* ── CENTER COLUMN ───────────────────────────────────────── */
.col-center { display: flex; flex-direction: column; gap: 32px; }

.section-block {}

/* Happening Now */
.ongoing-list { display: flex; flex-direction: column; gap: 12px; }

.ongoing-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent3);
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  transition: border-left-color 0.15s;
}

.ongoing-item:hover { border-left-color: var(--accent); }

.ongoing-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent3);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ongoing-headline {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.ongoing-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* Ranked List */
.ranked-block { }

.ranked-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ranked-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s;
  cursor: pointer;
}

.ranked-item:hover { border-color: var(--accent2); }

.rank-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
  transition: color 0.15s;
}

.ranked-item:hover .rank-num { color: var(--accent); }

.rank-content { flex: 1; }

.rank-headline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.rank-why {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── RIGHT COLUMN ────────────────────────────────────────── */
.col-right { display: flex; flex-direction: column; gap: 24px; }

/* Featured Article */
.featured-article {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 6px 6px;
  padding: 20px;
}

.article-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-excerpt {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.read-more {
  display: inline-block;
  color: var(--accent2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.read-more:hover { color: var(--text); }

/* Article List */
.article-list { display: flex; flex-direction: column; gap: 8px; }

.article-preview {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  opacity: 0.6;
}

.article-preview-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.3;
  margin: 6px 0 4px;
}

.article-preview-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* Newsletter */
.newsletter-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 6px;
}

.newsletter-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.4;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.email-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.email-input:focus { border-color: var(--accent2); }

.subscribe-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.subscribe-btn:hover { background: #c1121f; }

.newsletter-note {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── ARTICLE GRID ────────────────────────────────────────── */
.article-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.article-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.1s, box-shadow 0.2s;
  position: relative;
}
.article-card:hover {
  border-color: var(--accent2);
  background: var(--bg3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.article-card:active { transform: translateY(0); }
.featured-card { border-top: 3px solid var(--accent2); }
.hot-card { border-top: 3px solid var(--accent); }
.coming-card { opacity: 0.4; pointer-events: none; }
.article-card-cat { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent2); margin-bottom: 6px; }
.article-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 5px; }
.article-card-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-bottom: 6px; }
.article-card-excerpt { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* Article count in section header */
.article-count-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 8px;
}

/* ── THE RECORD ──────────────────────────────────────────── */
.record-list { display: flex; flex-direction: column; gap: 8px; }

.record-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.15s;
}
.record-item:hover { border-color: var(--text-muted); }

.record-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent2);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.record-event {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.record-context {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 6px;
}

.record-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ── CALENDAR ────────────────────────────────────────────── */
/* Filter bar */
.calendar-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cal-filter {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-mono);
}

.cal-filter:hover { border-color: var(--text-muted); color: var(--text-dim); }

.cal-filter.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.calendar-list { display: flex; flex-direction: column; gap: 4px; }

.calendar-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0 16px;
  align-items: start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  transition: border-color 0.15s;
}
.calendar-item:hover { border-color: var(--text-muted); }

.calendar-item.urgent { border-left: 3px solid var(--accent); }
.calendar-item.watch  { border-left: 3px solid var(--accent3); }
.calendar-item.info   { border-left: 3px solid var(--accent2); }

.cal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent2);
  line-height: 1.4;
  padding-top: 2px;
}
.cal-date .cal-day { font-size: 20px; font-weight: 700; display: block; color: var(--text); line-height: 1; margin-bottom: 2px; }

.cal-content { }
.cal-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.cal-desc { font-size: 11px; color: var(--text-dim); line-height: 1.4; }

.cal-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
  align-self: start;
  margin-top: 2px;
}
.cal-badge.urgent { background: rgba(230,57,70,0.15); color: var(--accent); }
.cal-badge.watch  { background: rgba(244,162,97,0.15); color: var(--accent3); }
.cal-badge.info   { background: rgba(69,123,157,0.15); color: var(--accent2); }
.cal-badge.done   { background: var(--bg3); color: var(--text-muted); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── POLISH ADDITIONS ────────────────────────────────────── */

/* Article card entrance animation */
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.article-grid .article-card {
  animation: card-in 0.3s ease both;
}
.article-grid .article-card:nth-child(1)  { animation-delay: 0.02s; }
.article-grid .article-card:nth-child(2)  { animation-delay: 0.04s; }
.article-grid .article-card:nth-child(3)  { animation-delay: 0.06s; }
.article-grid .article-card:nth-child(4)  { animation-delay: 0.08s; }
.article-grid .article-card:nth-child(5)  { animation-delay: 0.10s; }
.article-grid .article-card:nth-child(6)  { animation-delay: 0.12s; }
.article-grid .article-card:nth-child(7)  { animation-delay: 0.14s; }
.article-grid .article-card:nth-child(8)  { animation-delay: 0.16s; }
.article-grid .article-card:nth-child(9)  { animation-delay: 0.18s; }
.article-grid .article-card:nth-child(10) { animation-delay: 0.20s; }
.article-grid .article-card:nth-child(11) { animation-delay: 0.22s; }
.article-grid .article-card:nth-child(12) { animation-delay: 0.24s; }
.article-grid .article-card:nth-child(13) { animation-delay: 0.26s; }
.article-grid .article-card:nth-child(14) { animation-delay: 0.28s; }

/* Hot card subtle glow on hover */
.hot-card:hover {
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.2);
}
.featured-card:hover {
  box-shadow: 0 4px 20px rgba(69, 123, 157, 0.2);
}

/* Article page: smooth scroll progress bar at top */
.article-page {
  position: relative;
}

/* Story card pulse for hot items */
.story-card[style*="e63946"] {
  animation: hot-border-pulse 2s ease-in-out infinite;
}
@keyframes hot-border-pulse {
  0%, 100% { border-color: #e63946; }
  50% { border-color: #b02030; }
}

/* Improved breaking story cards */
.story-card {
  transition: border-color 0.2s, background 0.2s;
}
.story-card:hover {
  background: var(--bg3);
}

/* Section sub-label tweak */
.section-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  margin-left: 8px;
}

/* Ongoing item hover */
.ongoing-item {
  transition: border-left-color 0.2s, background 0.15s;
}
.ongoing-item:hover {
  background: var(--bg3);
}

/* Record item  */
.record-item:hover {
  background: var(--bg3);
}

/* ══════════════════════════════════════════════════════════
   UI ENHANCEMENTS v2
   ══════════════════════════════════════════════════════════ */

/* ── HERO STORY ──────────────────────────────────────────── */
.hero-story {
  background: linear-gradient(135deg, #14041a 0%, #0d0d18 60%, #0a0a0f 100%);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 28px 24px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-story::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff6b7a, var(--accent));
  background-size: 200% 100%;
  animation: hero-shimmer 3s linear infinite;
}
@keyframes hero-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-deck {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 480px;
}
.hero-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.hero-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}

/* ── CATEGORY GLOW TAGS ──────────────────────────────────── */
.cat-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.cat-tag-war    { color: #ff6b7a; background: rgba(230,57,70,0.12); border: 1px solid rgba(230,57,70,0.25); }
.cat-tag-market { color: #4ade80; background: rgba(45,198,83,0.1);  border: 1px solid rgba(45,198,83,0.2); }
.cat-tag-energy { color: #fbbf24; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.2); }
.cat-tag-world  { color: #60a5fa; background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.2); }
.cat-tag-pol    { color: #c084fc; background: rgba(192,132,252,0.1);border: 1px solid rgba(192,132,252,0.2); }
.cat-tag-tech   { color: #38bdf8; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.2); }
.cat-tag-def    { color: var(--accent2); background: rgba(69,123,157,0.1); border: 1px solid rgba(69,123,157,0.2); }

/* Breaking story category glows */
.story-category { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.story-category-war    { color: #ff6b7a !important; }
.story-category-market { color: #4ade80 !important; }
.story-category-energy { color: #fbbf24 !important; }
.story-category-pol    { color: #c084fc !important; }

/* ── DATA WIDGETS ────────────────────────────────────────── */
.widgets-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
.widget-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.widget-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.widget-value.danger { color: var(--accent); }
.widget-value.warn   { color: #fbbf24; }
.widget-value.good   { color: var(--green); }
.widget-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.3;
}
/* Countdown urgency pulse */
.widget-countdown .widget-value {
  animation: pulse 1s infinite;
}
/* Progress bar widget */
.widget-progress {
  margin-top: 8px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.widget-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--green);
  transition: width 1s ease;
}
.widget-progress-fill.warn { background: #fbbf24; }
.widget-progress-fill.danger { background: var(--accent); }

/* ── SIGNAL / NOISE TOGGLE ───────────────────────────────── */
.signal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.signal-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.signal-options {
  display: flex;
  gap: 4px;
}
.signal-btn {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.signal-btn:hover { color: var(--text-dim); border-color: var(--text-muted); }
.signal-btn.active-low  { color: var(--green);   border-color: var(--green);   background: rgba(45,198,83,0.08); }
.signal-btn.active-med  { color: #fbbf24;         border-color: #fbbf24;         background: rgba(251,191,36,0.08); }
.signal-btn.active-high { color: var(--accent);   border-color: var(--accent);   background: rgba(230,57,70,0.1); }

/* Hidden by noise filter */
.noise-hidden { display: none !important; }

/* ── MAP WIDGET ──────────────────────────────────────────── */
.world-map-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.map-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.world-map-widget svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}
.hotspot {
  cursor: pointer;
  transition: all 0.2s;
}
.hotspot circle {
  fill: var(--accent);
  opacity: 0.8;
  animation: hotspot-pulse 2s ease-in-out infinite;
}
.hotspot:hover circle { opacity: 1; r: 8; }
.hotspot text {
  fill: var(--text-dim);
  font-size: 7px;
  font-family: var(--font-sans);
  font-weight: 600;
  pointer-events: none;
}
@keyframes hotspot-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}
.hotspot.active circle { fill: #fbbf24; opacity: 1; }

/* Typography: tighten article card line length */
.article-card-excerpt { max-width: 56ch; }
.article-card-title   { max-width: 52ch; }

/* Source links — higher contrast */
.story-source span { color: var(--accent2); font-weight: 600; }
.record-source     { font-family: var(--font-mono); font-size: 10px; color: var(--accent2); font-weight: 600; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  main { grid-template-columns: 1fr 1fr; }
  .col-right { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .col-left { position: static; }
}

@media (max-width: 768px) {
  main { grid-template-columns: 1fr; }
  .col-right { grid-column: 1; display: flex; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  nav { order: 3; width: 100%; overflow-x: auto; }
}

/* ══════════════════════════════════════════════════════════
   FEATURE: READ TIME BADGES
   ══════════════════════════════════════════════════════════ */
.read-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 4px;
}

/* ══════════════════════════════════════════════════════════
   FEATURE: SEARCH ZERO-STATE
   ══════════════════════════════════════════════════════════ */
.search-zero-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  text-align: center;
  border-radius: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.search-zero-icon { font-size: 28px; opacity: 0.4; }
.search-zero-title { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.search-zero-sub { font-size: 11px; color: var(--text-muted); line-height: 1.6; }
.search-zero-sub a { color: var(--accent2); text-decoration: none; }
.search-zero-sub a:hover { text-decoration: underline; }
.search-zero-suggestions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.search-zero-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.search-zero-pill:hover { color: var(--text); border-color: var(--text-dim); background: var(--bg3); }

/* ══════════════════════════════════════════════════════════
   FEATURE: LIVE PRICE STRIP
   ══════════════════════════════════════════════════════════ */
.price-strip {
  background: #0d0d14;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  height: 30px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 0 16px;
}
.price-strip-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 16px;
  flex-shrink: 0;
}
.price-strip-items {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: hidden;
}
.price-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}
.price-item:first-child { padding-left: 0; }
.price-sym { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); }
.price-val { font-size: 11px; font-weight: 600; color: var(--text); }
.price-chg { font-size: 9px; font-weight: 700; }
.price-chg.up   { color: var(--green); }
.price-chg.down { color: var(--accent); }
.price-chg.flat { color: var(--text-muted); }
.price-updated {
  font-size: 8px;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 16px;
  letter-spacing: 0.5px;
}
