/* ==========================================================================
   JBuz Tech & AI Chronicle - Editorial Stylesheet (TechCrunch / Bloomberg Inspired)
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', 'Merriweather', 'Georgia', serif;
  --font-display: 'Syne', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Light Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f1f5f9;
  --bg-surface-alt: #e2e8f0;
  
  --text-main: #090d16;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-subtle: #e2e8f0;
  --border-strong: #0f172a;
  --border-accent: #2563eb;

  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.15);

  --ticker-bg: #0f172a;
  --ticker-text: #f8fafc;
  --ticker-tag-bg: #dc2626;

  --badge-ai: #2563eb;
  --badge-silicon: #7c3aed;
  --badge-cyber: #dc2626;
  --badge-enterprise: #059669;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-editorial: 0 16px 32px -8px rgba(15, 23, 42, 0.12);

  --max-w-content: 1320px;
  --header-height: 72px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #101726;
  --bg-surface-raised: #182238;
  --bg-surface-alt: #1e2c47;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-light: #475569;

  --border-subtle: #1e293b;
  --border-strong: #f8fafc;
  --border-accent: #3b82f6;

  --accent-primary: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.25);

  --ticker-bg: #030712;
  --ticker-text: #f3f4f6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.5);
  --shadow-editorial: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading Progress Bar */
#reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}
#reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 0.1s linear;
}

/* ==========================================================================
   TOP SYSTEM BAR & MASTHEAD
   ========================================================================== */
.top-system-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 8px 0;
}
.top-system-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-system-left, .top-system-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #10b981;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.theme-toggle-btn {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
}

/* Masthead */
.masthead-section {
  background: var(--bg-surface);
  border-bottom: 2px solid var(--text-main);
  padding: 28px 0 20px;
  text-align: center;
}
.masthead-edition {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.masthead-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.masthead-title a:hover {
  opacity: 0.9;
}
.masthead-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
}

/* ==========================================================================
   BREAKING NEWS TICKER (Bloomberg Style)
   ========================================================================== */
.breaking-ticker-bar {
  background: var(--ticker-bg);
  color: var(--ticker-text);
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.ticker-inner {
  display: flex;
  align-items: stretch;
  height: 44px;
}
.ticker-label {
  background: var(--ticker-tag-bg);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  flex-shrink: 0;
}
.ticker-content {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-slide 32s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ticker-text);
}
.ticker-item a:hover {
  text-decoration: underline;
  color: #60a5fa;
}
.ticker-item::after {
  content: "•";
  color: #dc2626;
  margin-left: 28px;
}
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   PRIMARY NAVIGATION
   ========================================================================== */
.main-nav-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.main-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav-inner::-webkit-scrollbar {
  display: none;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-link-item a {
  display: block;
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-link-item a:hover,
.nav-link-item.active a {
  color: var(--text-main);
  border-bottom-color: var(--accent-primary);
}
.nav-action-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
}
.feed-icon-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-surface-raised);
}
.feed-icon-btn:hover {
  color: var(--accent-primary);
}

/* ==========================================================================
   HERO / FEATURED GRID (TechCrunch style)
   ========================================================================== */
.hero-editorial-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 32px;
  margin: 36px 0 48px;
}

.hero-main-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.hero-main-card:hover {
  box-shadow: var(--shadow-editorial);
  border-color: var(--border-accent);
}
.hero-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-raised);
}
.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-main-card:hover .hero-img-wrapper img {
  transform: scale(1.03);
}
.category-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.category-badge.cat-ai-autonomous {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}
.category-badge.cat-silicon-quantum {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}
.category-badge.cat-cybersecurity {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}
.category-badge.cat-enterprise-tech {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.hero-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-main);
}
.hero-title a:hover {
  color: var(--accent-primary);
}
.hero-summary {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.byline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}
.author-name {
  font-weight: 700;
  color: var(--text-main);
}

/* Secondary Featured Stack */
.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: var(--transition);
}
.side-feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}
.side-feature-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.side-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.side-feature-card:hover .side-feature-img img {
  transform: scale(1.03);
}
.side-feature-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.side-feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.side-feature-title a:hover {
  color: var(--accent-primary);
}
.side-feature-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   HOMEPAGE SPLIT: RECENT DISPATCHES & TRENDING LEADERBOARD
   ========================================================================== */
.home-split-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  background: var(--accent-primary);
}

/* Recent Dispatches List */
.dispatches-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dispatch-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.dispatch-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.dispatch-content {
  display: flex;
  flex-direction: column;
}
.dispatch-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 6px 0 10px;
}
.dispatch-title a:hover {
  color: var(--accent-primary);
}
.dispatch-excerpt {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}
.dispatch-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: auto;
}
.dispatch-thumb {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface-raised);
}
.dispatch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.dispatch-item:hover .dispatch-thumb img {
  transform: scale(1.05);
}

/* Trending Leaderboard (Bloomberg Style) */
.trending-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.trending-list-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.trending-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.trending-rank {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1;
  min-width: 28px;
}
.trending-list-item:nth-child(1) .trending-rank { color: #dc2626; }
.trending-list-item:nth-child(2) .trending-rank { color: #2563eb; }
.trending-list-item:nth-child(3) .trending-rank { color: #7c3aed; }
.trending-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trending-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}
.trending-title a:hover {
  color: var(--accent-primary);
}
.trending-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Newsletter Callout */
.newsletter-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 8px;
  padding: 28px;
  margin-top: 32px;
  text-align: left;
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}
.newsletter-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 16px;
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-input {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #020617;
  color: #f8fafc;
  font-size: 0.875rem;
}
.newsletter-input:focus {
  outline: none;
  border-color: #3b82f6;
}
.newsletter-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-btn:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   ARTICLE DETAIL PAGE (Clean Reading Typography)
   ========================================================================== */
.article-detail-container {
  max-width: 860px;
  margin: 36px auto 80px;
  padding: 0 20px;
}
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.article-breadcrumbs a:hover {
  color: var(--accent-primary);
}
.article-header {
  margin-bottom: 28px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
  color: var(--text-main);
}
.article-deck {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.article-byline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}
.author-profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.author-profile-name {
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--text-main);
}
.author-profile-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.article-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-btn {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.share-btn:hover {
  background: var(--bg-surface-alt);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.article-lead-figure {
  margin-bottom: 36px;
  border-radius: 8px;
  overflow: hidden;
}
.article-lead-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.article-lead-figure figcaption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 8px 0 0;
  font-style: italic;
}

/* Key Takeaways Box */
.takeaways-card {
  background: var(--bg-surface-raised);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 0 0 36px;
}
.takeaways-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.takeaways-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.5;
}
.takeaways-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.65rem;
  color: var(--accent-primary);
}

/* Article Prose Typography */
.article-prose {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-main);
}
.article-prose p {
  margin-bottom: 1.5em;
}
.article-prose p.lead-paragraph {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-main);
  font-weight: 400;
}
.article-prose p.lead-paragraph::first-letter {
  font-family: var(--font-display);
  font-size: 3.8rem;
  float: left;
  line-height: 0.8;
  margin: 4px 10px 0 0;
  font-weight: 900;
  color: var(--accent-primary);
}
.article-prose h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2em 0 0.8em;
  line-height: 1.25;
  color: var(--text-main);
}
.article-prose h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
}
.article-prose blockquote {
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  border-left: 3px solid var(--accent-primary);
  padding: 16px 0 16px 24px;
  margin: 2em 0;
  background: var(--bg-surface-raised);
  border-radius: 0 6px 6px 0;
}
.article-prose blockquote cite {
  display: block;
  font-size: 0.875rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
}
.article-prose ul, .article-prose ol {
  margin: 1.5em 0;
  padding-left: 28px;
}
.article-prose li {
  margin-bottom: 0.6em;
}

/* Data Tables */
.table-container {
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-align: left;
}
th {
  background: var(--bg-surface-raised);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--border-subtle);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
tr:last-child td {
  border-bottom: none;
}

/* Related Stories Section */
.related-stories-section {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 2px solid var(--border-subtle);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
}
.related-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}
.related-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-body {
  padding: 16px;
}
.related-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}
.related-title a:hover {
  color: var(--accent-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #020617;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 56px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #f8fafc;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 340px;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f8fafc;
  margin-bottom: 16px;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
}
.footer-links-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* Toast notifications */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
  }
  .home-split-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .dispatch-item {
    grid-template-columns: 1fr;
  }
  .dispatch-thumb {
    order: -1;
    max-height: 200px;
  }
  .top-system-inner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .article-byline-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
