/*
Theme Name: ThreatPulse
Theme URI: https://threatpulse.ai
Author: ThreatPulse Editorial Team
Author URI: https://threatpulse.ai
Description: Swiss High-Contrast Light Editorial Theme for AI Threat Intelligence & Tech Journalism. Inspired by Wirecutter, The Verge Light Mode, and Semafor. Engineered for high-RPM US monetization and maximum reader dwell time.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: threatpulse
*/

/* ==========================================================================
   SWISS LIGHT EDITORIAL DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Canvas & Surfaces */
  --canvas: #ffffff;
  --surface-warm: #f8fafc;
  --surface-card: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-tag: #f1f5f9;

  /* Architectural Hairline Borders */
  --border-hairline: #e2e8f0;
  --border-card: #e2e8f0;
  --border-focus: #cbd5e1;

  /* Ink Typography */
  --ink-primary: #0f172a;       /* Deep Onyx for commanding headlines */
  --ink-body: #1e293b;          /* Rich Charcoal for reading comfort */
  --ink-secondary: #475569;     /* Contextual Slate */
  --ink-muted: #64748b;         /* Metadata & timestamps */
  --ink-faint: #94a3b8;

  /* High-Intent Accent Psychology */
  --signal-coral: #dc2626;       /* Critical threat & alert */
  --signal-coral-soft: #fee2e2;
  --tech-navy: #1e3a8a;          /* Intellectual authority */
  --tech-indigo: #4f46e5;        /* AI research & deep tech */
  --alert-amber: #d97706;        /* Regulatory & caution */
  --alert-amber-soft: #fef3c7;
  --intel-emerald: #059669;      /* Live system status */
  --intel-emerald-soft: #d1fae5;

  /* Typography Scales */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Geometry */
  --max-width: 1260px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--surface-warm);
  color: var(--ink-body);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--signal-coral);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   READING PROGRESS TRACKER
   ========================================================================== */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal-coral), var(--tech-indigo));
  width: 0%;
  z-index: 10000;
  box-shadow: 0 1px 6px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   TOP MASTHEAD: SWISS NEWSPAPER BAR
   ========================================================================== */
.newspaper-masthead {
  background: var(--canvas);
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 8px 0;
  color: var(--ink-secondary);
}
.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.threat-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--signal-coral-soft);
  color: var(--signal-coral);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.badge-text-mobile {
  display: none;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--signal-coral);
  border-radius: 50%;
  animation: radarBlink 1.6s infinite;
}
@keyframes radarBlink {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--signal-coral); }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.masthead-edition {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-muted);
}
@media (max-width: 768px) {
  .badge-text-desktop {
    display: none;
  }
  .badge-text-mobile {
    display: inline;
  }
  .desktop-only-inline {
    display: none !important;
  }
  .masthead-edition {
    gap: 8px;
    font-size: 10px;
  }
}

/* ==========================================================================
   PRIMARY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--canvas);
  border-bottom: 2px solid var(--ink-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Logo */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
  white-space: nowrap;
}
.brand-mark .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--ink-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
}
.brand-mark span.coral-accent {
  color: var(--signal-coral);
}

/* Navigation Links (Desktop) */
.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
.desktop-nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 8px 0;
  position: relative;
}
.desktop-nav a:hover,
.desktop-nav .current-menu-item a {
  color: var(--ink-primary);
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--signal-coral);
  transition: width 0.2s ease;
}
.desktop-nav a:hover::after,
.desktop-nav .current-menu-item a::after {
  width: 100%;
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tech-navy);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.header-action-btn:hover {
  background: #dbeafe;
  color: var(--tech-indigo);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--ink-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.mobile-menu-toggle.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .bar-2 {
  opacity: 0;
}
.mobile-menu-toggle.active .bar-3 {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 2px solid var(--ink-primary);
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}
.mobile-drawer.active {
  max-height: 520px;
  overflow-y: auto;
}
.mobile-drawer-inner {
  padding: 16px 20px 24px;
}
.mobile-nav-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-links li a {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav-links li a:hover {
  background: #f8fafc;
  color: var(--signal-coral);
  padding-left: 18px;
}
.mobile-drawer-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

/* ==========================================================================
   NATIVE-STYLED HIGH-RPM AD UNITS (Clean White Architecture)
   ========================================================================== */
.ad-unit-clean {
  margin: 24px auto;
  background: #ffffff;
  border: 1px dashed var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
.ad-unit-clean:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}
.ad-unit-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.ad-unit-desc {
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 500;
}
.ad-leaderboard {
  max-width: 970px;
  min-height: 90px;
}
.ad-sidebar-sticky {
  width: 100%;
  min-height: 250px;
  max-height: 600px;
}
.ad-inarticle-clean {
  max-width: 720px;
  min-height: 250px;
  margin: 36px auto;
}

/* ==========================================================================
   SWISS BENTO HERO GRID
   ========================================================================== */
.bento-showcase {
  margin: 32px 0 44px;
}
.bento-magazine-grid {
  display: grid;
  grid-template-columns: 1.9fr 1.1fr;
  gap: 24px;
}
@media (max-width: 960px) {
  .bento-magazine-grid { grid-template-columns: 1fr; }
}

/* 65% Primary Lead Investigation */
.bento-lead-card {
  background: var(--canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.bento-lead-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.bento-lead-visual {
  position: relative;
  width: 100%;
  height: 390px;
  background: #f1f5f9;
  overflow: hidden;
}
.bento-lead-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-lead-card:hover .bento-lead-visual img {
  transform: scale(1.04);
}
.bento-lead-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.7) 100%);
}
.bento-lead-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category-pill-coral {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--signal-coral);
  background: var(--signal-coral-soft);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 14px;
}
.bento-lead-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  margin-bottom: 14px;
}
.bento-lead-card h2 a:hover {
  color: var(--signal-coral);
}
.bento-lead-card p {
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.meta-byline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: auto;
  border-top: 1px solid var(--border-hairline);
  padding-top: 16px;
}
.author-pill {
  font-weight: 600;
  color: var(--ink-primary);
}

/* 35% Executive Fast-Brief Stack */
.bento-brief-stack {
  background: var(--canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.stack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ink-primary);
}
.stack-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-primary);
}
.brief-entry {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.brief-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.entry-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--signal-coral);
  line-height: 1;
}
.entry-body h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--ink-primary);
}
.entry-body h4 a:hover {
  color: var(--signal-coral);
}

/* ==========================================================================
   2-COLUMN EDITORIAL FLOW (Chronological Dispatches + Sidebar)
   ========================================================================== */
.editorial-canvas-row {
  display: grid;
  grid-template-columns: 2.15fr 1fr;
  gap: 36px;
  margin-bottom: 70px;
}
@media (max-width: 960px) {
  .editorial-canvas-row { grid-template-columns: 1fr; }
}

/* Chronological Dispatches Stream */
.dispatches-stream-clean {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.stream-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink-primary);
  padding-bottom: 12px;
  margin-bottom: 6px;
}

/* Clean Horizontal Cards */
.clean-dispatch-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  background: var(--canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
@media (max-width: 680px) {
  .clean-dispatch-card { grid-template-columns: 1fr; }
}
.clean-dispatch-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.clean-card-thumb {
  height: 100%;
  min-height: 175px;
  background: #f1f5f9;
  overflow: hidden;
}
.clean-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.clean-dispatch-card:hover .clean-card-thumb img {
  transform: scale(1.04);
}
.clean-card-body {
  padding: 22px 22px 22px 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 680px) {
  .clean-card-body { padding: 20px; }
}
.clean-card-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 8px;
}
.clean-card-body h3 a:hover {
  color: var(--signal-coral);
}
.clean-card-body p {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* High-RPM Sidebar */
.editorial-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-sticky-enclosure {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Threat Barometer Card */
.barometer-card {
  background: var(--canvas);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--signal-coral);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.barometer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.barometer-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-primary);
}
.barometer-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--signal-coral);
}
.barometer-progress {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.barometer-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, #f59e0b, var(--signal-coral));
}
.barometer-text {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* VIP Newsletter Briefing Box */
.vip-newsletter-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.vip-newsletter-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 8px;
}
.vip-newsletter-card p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}
.vip-form input {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.vip-form input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--tech-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.vip-form button {
  width: 100%;
  padding: 12px;
  background: var(--ink-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.vip-form button:hover {
  background: var(--signal-coral);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

/* ==========================================================================
   SINGLE ARTICLE EDITORIAL TEMPLATE (Puck & Wirecutter Style)
   ========================================================================== */
.article-editorial-shell {
  max-width: 840px;
  margin: 36px auto 70px;
}
.article-masthead-meta {
  margin-bottom: 30px;
}
.article-masthead-meta h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  margin-bottom: 18px;
}
@media (max-width: 680px) {
  .article-masthead-meta h1 { font-size: 30px; }
}
.article-byline-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 0;
  flex-wrap: wrap;
}
.verified-stamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--intel-emerald);
  font-weight: 700;
}
.article-lead-image {
  margin: 30px 0 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-hairline);
}
.article-lead-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Long-Form Reading Typography (Serif 18px) */
.post-content {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.82;
  color: #1e293b;
}
.post-content p {
  margin-bottom: 26px;
}

/* Classic Editorial Drop Cap */
.post-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.4rem;
  float: left;
  line-height: 0.78;
  margin-right: 14px;
  margin-top: 6px;
  font-weight: 800;
  color: var(--signal-coral);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  margin: 46px 0 18px;
  border-left: 4px solid var(--signal-coral);
  padding-left: 14px;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin: 34px 0 14px;
}
.post-content ul, .post-content ol {
  margin: 18px 0 28px 28px;
}
.post-content li {
  margin-bottom: 10px;
}

/* Semafor-Style Cognitive Boxes */
.takeaways-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--intel-emerald);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 36px 0;
  box-shadow: var(--shadow-subtle);
}
.takeaways-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--intel-emerald);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.threat-alert-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--signal-coral);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 36px 0;
  box-shadow: var(--shadow-subtle);
}
.threat-alert-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-coral);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Source Attribution Box */
.source-attribution {
  background: #ffffff;
  border: 1px solid var(--border-card);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 40px;
  box-shadow: var(--shadow-subtle);
}
.source-attribution a {
  color: var(--signal-coral);
  font-weight: 600;
}

/* Author Credentials Card (E-E-A-T AdSense Powerhouse) */
.author-profile-box {
  display: flex;
  gap: 22px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 26px;
  margin: 48px 0;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.author-avatar-frame {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border-hairline);
  overflow: hidden;
  flex-shrink: 0;
}
.author-profile-bio h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 6px;
}
.author-profile-bio p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   HIGH-TRUST LIGHT FOOTER (AdSense Standards)
   ========================================================================== */
.site-footer-light {
  background: #ffffff;
  border-top: 1px solid var(--border-hairline);
  padding: 60px 0 36px;
  margin-top: 80px;
}
.footer-three-col {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-three-col { grid-template-columns: 1fr; gap: 32px; }
}
.footer-three-col h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-primary);
  margin-bottom: 16px;
}
.footer-three-col p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.65;
}
.footer-three-col ul {
  list-style: none;
}
.footer-three-col li {
  margin-bottom: 10px;
}
.footer-three-col a {
  font-size: 14px;
  color: var(--ink-secondary);
}
.footer-three-col a:hover {
  color: var(--signal-coral);
}
.footer-bottom-strip {
  border-top: 1px solid var(--border-hairline);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (Mobile & Tablet)
   ========================================================================== */

/* Tablet & Intermediate (< 992px) */
@media (max-width: 992px) {
  .desktop-nav {
    display: none !important;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-drawer {
    display: block;
  }
  .bento-magazine-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .editorial-canvas-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sidebar-sticky-enclosure {
    position: static;
  }
  .ad-leaderboard {
    max-width: 100%;
    min-height: auto;
  }
}

/* Small Tablet & Mobile Landscape (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .header-row {
    height: 64px;
  }
  .brand-mark {
    font-size: 20px;
    gap: 8px;
  }
  .brand-mark .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  /* Newspaper Masthead Clean Stacking */
  .newspaper-masthead {
    padding: 6px 0;
  }
  .masthead-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .threat-status-badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  .masthead-edition {
    font-size: 10px;
    gap: 8px;
  }

  /* Bento Showcase */
  .bento-showcase {
    margin: 18px 0 28px;
  }
  .bento-lead-visual {
    height: 240px;
  }
  .bento-lead-content {
    padding: 20px;
  }
  .bento-lead-card h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .bento-lead-card p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .bento-brief-stack {
    padding: 20px;
  }
  .brief-entry {
    padding: 12px 0;
  }
  .entry-num {
    font-size: 18px;
  }
  .entry-body h4 {
    font-size: 14px;
  }

  /* Clean Dispatch Cards */
  .clean-dispatch-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .clean-card-thumb {
    height: 200px;
    min-height: auto;
  }
  .clean-card-body {
    padding: 18px;
  }
  .clean-card-body h3 {
    font-size: 18px;
  }

  /* Single Post Editorial Layout */
  .article-editorial-shell {
    margin: 20px auto 40px;
  }
  .article-masthead-meta h1 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 14px;
  }
  .article-byline-strip {
    font-size: 12px;
    gap: 8px;
    padding: 10px 0;
  }
  .article-lead-image {
    margin: 20px 0 24px;
  }
  .article-lead-image img {
    max-height: 320px;
  }
  .post-content {
    font-size: 17px;
    line-height: 1.75;
  }
  .post-content > p:first-of-type::first-letter {
    font-size: 3.6rem;
    margin-right: 10px;
  }
  .post-content h2 {
    font-size: 22px;
    margin: 32px 0 14px;
  }
  .post-content h3 {
    font-size: 18px;
    margin: 24px 0 10px;
  }
  .takeaways-box, .threat-alert-box {
    padding: 18px;
    margin: 24px 0;
  }
  .author-profile-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 14px;
  }
  .author-avatar-frame {
    margin: 0 auto;
  }

  /* Responsive Ads */
  .ad-unit-clean {
    margin: 18px auto;
    padding: 14px 10px;
    width: 100%;
  }
  .ad-unit-label {
    font-size: 9px;
  }
  .ad-unit-desc {
    font-size: 11px;
  }

  /* Footer */
  .site-footer-light {
    padding: 40px 0 28px;
    margin-top: 50px;
  }
  .footer-three-col {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .footer-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .header-row {
    height: 60px;
  }
  .brand-mark {
    font-size: 18px;
  }
  .brand-mark .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    padding: 10px 8px;
  }
  .bento-lead-visual {
    height: 200px;
  }
  .bento-lead-card h2 {
    font-size: 19px;
  }
  .meta-byline-row {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .article-masthead-meta h1 {
    font-size: 23px;
  }
}

/* Related Dispatches Grid */
.related-dispatches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 680px) {
  .related-dispatches-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

