/**
 * Modern Professional News Publication Design System
 * Inspired by Rest of World, TechCrunch, Canary Media, The Information, and modern editorial grids.
 */

/* ==========================================================================
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Editorial Color Palette (Light Mode - Clean, Authoritative, High-Contrast) */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-hover: #f8fafc;

  --text: #0f172a;           /* Deep Charcoal / Near Black */
  --text-secondary: #334155; /* Slate Body */
  --text-muted: #64748b;     /* Editorial Meta */
  --text-dim: #94a3b8;

  --border: #e2e8f0;         /* Hairline dividers */
  --border-subtle: #f1f5f9;
  --border-strong: #cbd5e1;

  --primary: #0284c7;        /* Vertical default accent */
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-subtle: rgba(2, 132, 199, 0.08);

  --danger: #dc2626;
  --warning: #d97706;
  --success: #16a34a;

  /* Distinctive Editorial Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Lora', 'Georgia', serif;

  /* Layout */
  --container-max: 1260px;
  --reader-max: 720px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
}

[data-theme="dark"] {
  --bg: #0b0f17;
  --bg-subtle: #0f172a;
  --surface: #111827;
  --surface-alt: #1e293b;
  --surface-hover: #1e293b;

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border: #1e293b;
  --border-subtle: #172033;
  --border-strong: #334155;

  --accent-subtle: rgba(2, 132, 199, 0.16);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Screen reader skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

/* Standard Minimal Icon */
.news-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   3. COMPACT PUBLICATION MASTHEAD (~50px)
   ========================================================================== */
.site-masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  position: relative;
  z-index: 60;
}

.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.masthead-brand-wrap {
  display: flex;
  align-items: center;
}

/* Distinctive Geometric Wordmark */
.edition-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.wordmark-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.edition-wordmark:hover .wordmark-emblem {
  transform: scale(1.05);
}

.wordmark-typography {
  display: flex;
  align-items: center;
}

.wordmark-brand {
  font-family: var(--font-sans);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  white-space: nowrap;
}

.brand-lead {
  color: var(--text);
  font-weight: 800;
}

.brand-tail {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Concept 03: Two-Tier Masthead (Stacked Authority) */
.edition-wordmark-twotier {
  gap: 0;
}

.edition-wordmark-twotier .wordmark-emblem {
  line-height: 0;
}

.airport-emblem-svg {
  display: block;
}

.wordmark-baffle {
  display: inline-block;
  width: 1.5px;
  height: 28px;
  background-color: var(--border-subtle, #E2E0D8);
  margin: 0 12px;
  border-radius: 1px;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

[data-theme="dark"] .wordmark-baffle {
  background-color: #383A42;
}

.wordmark-tier-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  gap: 1px;
}

.wordmark-tier-stack .tier-lead {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1.1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.wordmark-tier-stack .tier-accent {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-amber-500, #D4910A);
  line-height: 1.1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

[data-theme="dark"] .wordmark-tier-stack .tier-accent {
  color: var(--color-amber-400, #E8A824);
}

/* Airfield Guidance Sign Chassis Boundaries (Works in light and dark mode) */
.guidance-chassis {
  fill: #141416;
  stroke: #242529;
  stroke-width: 1.5px;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

[data-theme="dark"] .guidance-chassis {
  fill: #242529;
  stroke: #383A42;
  stroke-width: 1.5px;
}

/* Masthead Right Controls */
.masthead-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-form {
  position: relative;
  width: 200px;
  display: flex;
  align-items: center;
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search-wrapper.is-expanded .header-search-form {
  width: 360px;
}

.header-search-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.38rem 1.8rem 0.38rem 2.15rem;
  font-size: 0.82rem;
  color: var(--text);
  transition: all 0.18s ease;
}

.header-search-input:focus,
.header-search-wrapper.is-expanded .header-search-input {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.search-clear-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 50%;
}
.search-clear-btn:hover {
  color: var(--text);
}

.search-inline-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 420px;
  max-width: calc(100vw - 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 440px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-inline-tip,
.search-inline-loading,
.search-inline-empty {
  padding: 1.25rem 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

.search-dropdown-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: background 0.12s ease;
}
.search-dropdown-row:hover {
  background: var(--surface-alt);
}
.search-dropdown-row:last-child {
  border-bottom: none;
}

.search-row-kicker {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.search-row-title {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
}

.search-row-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Edition Selector Pill */
.edition-selector-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
  font-size: 0.78rem;
}

.edition-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-left: 0.2rem;
}

.edition-links-group {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.edition-pill-item {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  transition: all 0.15s ease;
  font-size: 0.78rem;
}

.edition-pill-item:hover {
  color: var(--text);
  background: var(--surface);
}

.edition-pill-item.active {
  background: var(--bg);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: inline-flex; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline-flex; }

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   4. PRIMARY EDITORIAL NAVIGATION & DATE BAR (~36px)
   ========================================================================== */
.primary-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.primary-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}

.nav-links-cluster {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links-cluster::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0;
  display: inline-block;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--desk-color, var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--desk-color, var(--accent));
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--desk-color, var(--accent));
  font-weight: 700;
}

.nav-date-wrap {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.utility-date {
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   6. MAIN CONTAINER
   ========================================================================== */
.main-content-area {
  flex: 1;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Section Title Bar */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-action-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s ease;
}

.section-action-link:hover {
  color: var(--accent-hover);
}

/* Kicker & Meta */
.item-kicker-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.item-kicker {
  font-size: 0.74rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--accent);
}

.meta-dot {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.item-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breaking-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--danger);
  color: #ffffff;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-xs);
}

.item-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.source-tag {
  font-weight: 500;
  color: var(--text-muted);
}

/* Key Context takeaways on text-first lead stories */
.lead-takeaways-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1.15rem;
  margin: 0.85rem 0 0.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.takeaways-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.takeaways-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  position: relative;
  padding-left: 1.1rem;
}

.takeaways-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ==========================================================================
   7. SECTION 1: TOP STORIES (HERO EDITORIAL GRID)
   ========================================================================== */
.hero-top-stories-section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.25rem;
  align-items: start;
}

/* Lead Dominant Story */
.lead-story-item {
  display: flex;
  flex-direction: column;
}

.lead-story-media {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  max-height: 290px;
}

.lead-story-media img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lead-story-media:hover img {
  transform: scale(1.015);
}

.lead-headline {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.lead-headline a:hover {
  color: var(--accent);
}

.lead-deck {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* Secondary Column Stack */
.hero-secondary-col {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.secondary-column-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.secondary-column-label {
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.secondary-column-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.secondary-story-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.secondary-story-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.secondary-main {
  flex: 1;
}

.secondary-headline {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.secondary-headline a:hover {
  color: var(--accent);
}

.secondary-deck {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.secondary-thumb {
  width: 160px;
  height: 105px;
  min-width: 160px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}

.secondary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.secondary-thumb:hover img {
  transform: scale(1.02);
}

/* Broadsheet Text-First Balanced Hero Grid (No empty voids) */
.hero-broadsheet-grid,
.niche-broadsheet-grid {
  display: grid;
  grid-template-columns: 5fr 3.8fr 3.2fr;
  gap: 2rem;
  align-items: stretch;
}

.mobile-edition-switch {
  display: none;
}

.broadsheet-lead-col {
  display: flex;
  flex-direction: column;
}

.broadsheet-lead-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.broadsheet-lead-headline {
  font-family: var(--font-sans);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text);
  margin: 0.45rem 0 0.85rem;
}

.broadsheet-lead-headline a {
  color: var(--text);
  transition: color 0.15s ease;
}

.broadsheet-lead-headline a:hover {
  color: var(--accent);
}

.broadsheet-lead-deck {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.broadsheet-secondary-col {
  border-left: 1px solid var(--border);
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
}

.broadsheet-feature-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.broadsheet-feature-headline {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.32;
  color: var(--text);
  margin: 0.35rem 0 0.55rem;
}

.broadsheet-feature-headline a {
  color: var(--text);
  transition: color 0.15s ease;
}

.broadsheet-feature-headline a:hover {
  color: var(--accent);
}

.broadsheet-feature-deck {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.broadsheet-dispatches-col {
  border-left: 1px solid var(--border);
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
}

.broadsheet-dispatches-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.broadsheet-dispatches-stack .compact-story-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.broadsheet-dispatches-stack .compact-story-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ==========================================================================
   8. SECTION 2: LATEST NEWS STREAM + IN DEPTH
   ========================================================================== */
.news-stream-section {
  margin-bottom: 3rem;
}

.news-stream-grid {
  display: grid;
  grid-template-columns: 7.5fr 4.5fr;
  gap: 2.5rem;
  align-items: start;
}

/* Latest Feed Stream (Tweakers Density + Rest of World Polish) */
.stream-feed-list {
  display: flex;
  flex-direction: column;
}

.stream-row-item {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s ease;
}

.stream-row-item:last-child {
  border-bottom: none;
}

.stream-time-col {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 44px;
}

.stream-main-col {
  flex: 1;
  min-width: 0;
}

.stream-headline-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.stream-sector-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.stream-sector-kicker::after {
  content: ' \2022 ';
  margin-left: 0.35rem;
  color: var(--text-dim);
}

.stream-sector-pill {
  display: none;
}

.stream-headline {
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  display: inline;
}

.stream-headline a {
  color: var(--text);
  transition: color 0.12s ease;
}

.stream-headline a:hover {
  color: var(--accent);
}

.stream-meta-inline {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}

.stream-deck {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* In-Depth Column */
.in-depth-col {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.in-depth-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.compact-story-item {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.compact-story-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compact-headline {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.compact-headline a:hover {
  color: var(--accent);
}

.compact-deck {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.numbered-story-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.numbered-story-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rank-number {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 800;
  font-feature-settings: 'tnum';
  color: var(--border-strong);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.numbered-content {
  flex: 1;
}

.numbered-headline {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
}

.numbered-headline a:hover {
  color: var(--accent);
}

/* Topics Pill Cloud in Sidebar */
.topics-sidebar-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.topics-box-title {
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.topics-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.topic-nav-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.topic-nav-pill:hover {
  background: var(--surface-alt);
  color: var(--accent);
  border-color: var(--accent);
}

.topic-count {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 700;
}

/* ==========================================================================
   9. SECTION 3: SECTOR SPOTLIGHTS (ONLY POPULATED SECTORS)
   ========================================================================== */
.sector-spotlight-section {
  margin-bottom: 3rem;
}

.spotlight-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.editorial-card-item {
  display: flex;
  flex-direction: column;
}

.card-media {
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
  max-height: 180px;
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.card-media:hover img {
  transform: scale(1.02);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-headline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.card-headline a:hover {
  color: var(--accent);
}

.card-deck {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   10. ARCHIVE & SECTION DIRECTORY PAGES (Latest, Sectors, Entities, etc.)
   ========================================================================== */
.archive-page-container {
  max-width: 980px;
  margin: 0 auto;
}

.archive-header-strip {
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.archive-page-title {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.archive-page-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.breadcrumb-trail {
  margin-bottom: 0.5rem;
}

.breadcrumb-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* Niche / Topic Page Hero & Editorial Grid */
.niche-desk-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.niche-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.niche-icon {
  display: flex;
  align-items: center;
}

.niche-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid;
  background: var(--bg-subtle);
}

.niche-page-title {
  font-family: var(--font-sans);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.niche-page-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.5;
  max-width: 720px;
}

/* Desk Article Counter Badge */
.desk-article-counter {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-muted);
  padding: 0.15rem 0.6rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-left: 0.5rem;
}

/* Desk Intelligence KPI Ribbon */
.desk-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.desk-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid var(--border);
  padding-right: 1rem;
}
.desk-kpi-card:last-child {
  border-right: none;
  padding-right: 0;
}

.desk-kpi-value {
  font-family: var(--font-mono, monospace);
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.desk-kpi-label {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Desk Tracked Sub-Domains Strip */
.desk-topics-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.desk-strip-label {
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.desk-pills-wrap {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.desk-topic-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
}

/* Desk Card Grid & Ecosystem */
.niche-grid-section {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.niche-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.desk-ecosystem-panel {
  margin-top: 3rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ecosystem-panel-title {
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.ecosystem-entities-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ecosystem-entity-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.pill-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.topic-card-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: auto;
}

.topic-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.topic-micro-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.topic-card-featured-box {
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: auto;
}

.featured-box-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.featured-box-date {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.featured-box-headline {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.featured-box-headline a {
  color: inherit;
}
.featured-box-headline a:hover {
  color: var(--desk-accent, var(--accent));
}

.featured-box-deck {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.niche-hero-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.niche-editorial-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.25rem;
  align-items: start;
}

.niche-editorial-grid.single-story-layout {
  grid-template-columns: 7fr 5fr;
}

.niche-lead-col .lead-story-media {
  min-height: 340px;
  max-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}

.niche-lead-col .lead-story-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.niche-lead-col .lead-headline {
  font-size: 1.65rem;
  line-height: 1.25;
}

.niche-secondary-col {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.related-desks-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.related-desk-snippet {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.related-desk-snippet:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-headline {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
  margin: 0.25rem 0;
}

.related-headline a:hover {
  color: var(--accent);
}

.niche-stream-section {
  margin-bottom: 2.5rem;
}

.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
}

.filter-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.archive-stream-wrapper {
  display: flex;
  flex-direction: column;
}

.stream-date-divider {
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.75rem 0 0.35rem;
  border-bottom: 1px solid var(--border);
  margin-top: 1rem;
}

.stream-date-divider:first-child {
  margin-top: 0;
  padding-top: 0;
}

/* ==========================================================================
   11. VISUAL TOPICS & COVERAGE MAP
   ========================================================================== */
.coverage-jump-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.coverage-jump-strip::-webkit-scrollbar {
  display: none;
}

.jump-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.jump-strip-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jump-pill {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.jump-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-hover);
}

/* Unified Editorial Topics & Coverage Directory */
.topics-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.topic-directory-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topic-directory-card:hover {
  border-color: var(--desk-accent, var(--border-strong));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.topic-card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--desk-accent, var(--accent));
}

.topic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.topic-card-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topic-card-icon {
  display: flex;
  align-items: center;
  color: var(--desk-accent, var(--accent));
}

.topic-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--desk-accent, var(--accent));
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
}

.topic-card-enter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.topic-directory-card:hover .topic-card-enter-link {
  color: var(--desk-accent, var(--accent));
}

.topic-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.topic-card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.topic-card-title a {
  color: inherit;
}

.topic-card-title a:hover {
  color: var(--desk-accent, var(--accent));
}

.topic-card-scope {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.topic-card-latest-line {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-latest-tag {
  font-weight: 750;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.topic-latest-link {
  color: var(--text-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-latest-link:hover {
  color: var(--desk-accent, var(--accent));
}

.topic-latest-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  flex-shrink: 0;
}


/* Entities Directory Grid */
.entities-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.entity-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.entity-class-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
}

.entity-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.entity-card-aliases {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.entity-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
  font-size: 0.8rem;
}

.entity-count-text {
  color: var(--text-muted);
}

.entity-view-link {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Regulatory Scope Bar */
.regulatory-scope-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.84rem;
}

.regulatory-scope-label {
  font-weight: 600;
  margin-right: 0.4rem;
}

.regulatory-scope-list {
  color: var(--text-secondary);
}

/* Pagination */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pagination-btn:hover:not(.disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 0.25rem;
}

.pagination-page-number {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pagination-page-number.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Empty States */
.empty-archive-box {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-icon-decor {
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.empty-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.empty-box-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.btn-editorial-action {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.btn-editorial-action:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-clear-saved {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-saved:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ==========================================================================
   11. ARTICLE READER VIEW (The Information & Rest of World Serenity)
   ========================================================================== */
.article-reader-container {
  max-width: 780px;
  margin: 0 auto;
}

.reader-back-nav {
  margin-bottom: 1.25rem;
}

.back-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--accent);
}

.article-main-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.article-kicker-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.article-standfirst {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.article-byline-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.byline-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.byline-author {
  font-weight: 600;
  color: var(--text);
}

/* Featured Media */
.article-featured-media {
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}

.article-featured-media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.media-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem 0;
  line-height: 1.4;
}

/* Serene Article Prose */
.article-prose-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2.75rem;
}

.article-prose-body p {
  margin-bottom: 1.4rem;
}

.article-prose-body h2, .article-prose-body h3 {
  font-family: var(--font-sans);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.article-prose-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
}

/* Subtle sentence highlight for verification affordance */
.evidence-sentence {
  cursor: pointer;
  border-bottom: 1px dotted var(--border-strong);
  transition: all 0.15s ease;
}

.evidence-sentence:hover, .evidence-sentence.active {
  background: var(--accent-subtle);
  border-bottom-color: var(--accent);
  border-bottom-style: solid;
}

/* Context & Significance Box */
.article-context-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
}

.context-box-heading {
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.context-box-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Companies Mentioned */
.article-companies-box {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-bottom: 2.75rem;
}

.companies-box-heading {
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.companies-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.company-mention-pill {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.company-mention-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-alt);
}

.company-pill-arrow {
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Related Stories Section */
.related-coverage-section {
  border-top: 1px solid var(--text);
  padding-top: 1.5rem;
}

.related-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-story-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.related-story-headline {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
}

.related-story-headline a:hover {
  color: var(--accent);
}

.related-story-date {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   12. SOURCE VERIFICATION DRAWER (Secondary / Epistemic Grounding)
   ========================================================================== */
.evidence-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.evidence-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.evidence-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.evidence-drawer-panel.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  transition: color 0.15s ease;
}

.drawer-close-btn:hover {
  color: var(--text);
}

.drawer-body-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.drawer-card-label {
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.drawer-statement-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.drawer-source-tag {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.drawer-quote {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
  margin: 0.5rem 0;
  font-style: italic;
}

.drawer-subcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.5rem;
}

.subcard-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.subcard-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.subcard-link {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.subcard-hash {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.drawer-empty-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   13. PUBLICATION SEARCH MODAL
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 110;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.search-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.search-modal-window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 640px;
  overflow: hidden;
}

.search-input-header {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-icon-decor {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

#search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-empty-state {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.search-result-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.1s ease;
}

.search-result-row:hover {
  background: var(--bg-subtle);
}

.search-result-row:last-child {
  border-bottom: none;
}

.search-result-headline {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
}

.search-result-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   14. SITE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 420px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem 1rem;
}

.footer-link {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   15. RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-secondary-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .hero-broadsheet-grid,
  .niche-broadsheet-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .broadsheet-dispatches-col {
    grid-column: span 2;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .niche-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .niche-secondary-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .news-stream-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .in-depth-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .spotlight-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-masthead {
    padding: 0.5rem 0;
  }

  .masthead-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  .masthead-brand-wrap {
    flex: 1;
    min-width: 0;
  }

  .wordmark-primary {
    font-size: 1.1rem;
  }

  .wordmark-subtitle {
    font-size: 0.62rem;
  }

  .masthead-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .header-search-form {
    display: none;
  }

  .edition-selector-pill .edition-label {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .primary-nav {
    display: none;
    border-top: 1px solid var(--border);
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0.5rem;
  }

  .nav-links-cluster {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-date-wrap {
    padding-top: 0.5rem;
    font-size: 0.74rem;
  }

  .lead-headline {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .hero-broadsheet-grid,
  .niche-broadsheet-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .broadsheet-secondary-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
  }

  .broadsheet-dispatches-col {
    grid-column: span 1;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
  }

  .broadsheet-lead-headline {
    font-size: 1.55rem;
  }

  .secondary-story-item {
    flex-direction: column;
  }

  .secondary-thumb {
    width: 100%;
    height: 140px;
  }

  .topics-directory-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .spotlight-card-grid {
    grid-template-columns: 1fr;
  }

  .desk-kpi-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .niche-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .related-stories-grid {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 1.85rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .evidence-drawer-panel {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  /* Dedicated compact single-row mobile masthead (~48-50px) */
  .site-masthead {
    padding: 0.35rem 0;
    min-height: 48px;
  }

  .masthead-inner {
    height: 48px;
    align-items: center;
    gap: 0.5rem;
  }

  .edition-wordmark {
    white-space: nowrap;
    gap: 0.55rem;
  }

  .edition-wordmark-twotier {
    gap: 0;
  }

  .edition-wordmark-twotier .wordmark-emblem svg {
    width: 32px;
    height: 32px;
  }

  .edition-wordmark-twotier .wordmark-baffle {
    height: 24px;
    margin: 0 8px;
  }

  .edition-wordmark-twotier .tier-lead {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .edition-wordmark-twotier .tier-accent {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .wordmark-emblem svg {
    width: 30px;
    height: 24px;
  }

  .wordmark-brand {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1.1;
  }

  /* Mobile Topics & Coverage: Streamlined ~80px scannable entries */
  .topics-directory-grid {
    gap: 0.75rem;
  }

  .topic-directory-card {
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--desk-accent, var(--accent));
  }

  .topic-card-accent-bar {
    display: none;
  }

  .topic-card-header {
    margin-bottom: 0.4rem;
  }

  .topic-card-title {
    font-size: 1.12rem;
    margin-bottom: 0.3rem;
  }

  .topic-card-scope {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }

  .utility-bar-inner {
    font-size: 0.75rem;
  }

  .edition-selector-pill {
    display: none !important;
  }

  .mobile-edition-switch {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
    margin-top: 0.5rem;
  }

  .mobile-edition-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }

  .mobile-edition-pills {
    display: flex;
    gap: 0.4rem;
  }

  .edition-selector {
    display: none;
  }

  .utility-sep {
    display: none;
  }
}

/* ==========================================================================
   INDUSTRY NICHE DESKS STRIP
   ========================================================================== */
.industry-desks-strip {
  margin: 1.25rem 0 2rem 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.desks-strip-header {
  margin-bottom: 1rem;
}

.desks-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.desks-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.desks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.desk-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.desk-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.desk-card.active {
  border-color: var(--accent);
  background: var(--surface-alt);
}

.desk-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.desk-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.desk-card-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: var(--surface-alt);
  color: var(--text-secondary);
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.desk-card:hover .desk-card-count,
.desk-card.active .desk-card-count {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.desk-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
