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

:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --secondary: #1976d2;
  --text: #212121;
  --text-light: #757575;
  --background: #fafafa;
  --card-bg: #ffffff;
  --border: #e0e0e0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

/* Animated Stats Banner */
.stats-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff4444;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.stat-sublabel {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 5px;
}

/* 60 Second Action Banner */
.action-banner {
  background: linear-gradient(
    to bottom,
    #d21034 0%,
    #d21034 33.33%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    #000000 66.66%,
    #000000 100%
  );
  color: #fff;
  padding: 25px 20px;
  text-align: center;
  font-weight: 600;
  border-bottom: 4px solid #007229;
  position: relative;
}

.action-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 150px solid transparent;
  border-bottom: 150px solid transparent;
  border-left: 120px solid #007229;
}

.action-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.action-title {
  font-size: 1.5rem;
  margin-bottom: 18px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.action-btn {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.15rem;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
  border: 2px solid white;
  cursor: pointer;
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.action-script {
  margin-top: 15px;
  font-size: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Navigation */
nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  padding: 15px 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.nav-content a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s;
  scroll-snap-align: center;
}

.nav-content a:hover {
  background: var(--primary);
  color: white;
}

/* Active nav highlight during scroll */
.nav-content a.active {
  background: var(--primary);
  color: #fff;
}

/* Main Layout with Sidebar */
.main-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
  padding: 40px 20px;
  position: relative;
}

.content-area {
  flex: 1;
  min-width: 0;
}

/* Sticky Sidebar */
.quick-facts-sidebar {
  width: 280px;
  position: sticky;
  top: 80px;
  height: fit-content;
  background: #ffffff;
  color: var(--text);
  padding: 20px 20px 24px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}
.quick-facts-sidebar::before {
  /* Sudan flag-inspired vertical accent */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(
    to bottom,
    #D21034 0% 33.33%, /* red */
    #FFFFFF 33.33% 66.66%, /* white */
    #000000 66.66% 100% /* black */
  );
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.quick-facts-sidebar::after {
  /* green triangle at the top of the accent bar (hoist side) */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-top: 18px solid #007229; /* green */
  border-right: 12px solid transparent;
  border-top-left-radius: 12px;
}

.quick-facts-sidebar h3 {
  font-size: 1.05rem;
  margin: 6px 0 14px;
  text-align: left;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
}

.fact-item {
  position: relative;
  margin: 12px 0;
  padding: 14px 12px 12px 16px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.fact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #D21034, #000000); /* red to black accent */
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}

.fact-number {
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
  color: var(--primary);
}

.fact-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* Interactive Network Diagram */
.network-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.network-container h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2rem;
}

#network-canvas {
  width: 100%;
  height: 600px;
  position: relative;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}


/* Simplified node visuals: flat circles, centered icon + label */
.network-node {
  position: absolute;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
}

.network-node:hover {
  transform: scale(1.1);
  z-index: 10;
}

.node-uae { background: #f57c00; color: #fff; width: 140px; height: 140px; border-width: 3px; }

.node-gold { background: #ffc107; color: #111; }

.node-weapons { background: #c62828; color: #fff; }

.node-companies { background: #455a64; color: #fff; }

.node-rsf { width: 110px; height: 110px; background: #212121; color: #fff; }

.node-us { background: #3949ab; color: #fff; }

.node-popup {
  position: absolute;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 300px;
  display: none;
  max-height: 70vh;
  overflow: auto;
}

.node-popup h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.node-popup ul {
  list-style: none;
  padding: 0;
}

.node-popup li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.node-popup li:last-child {
  border-bottom: none;
}

/* Section Styling */
section {
  margin-bottom: 60px;
}

section h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 6px;
}
section h2::after {
  content: '';
  display: block;
  width: clamp(80px, 12%, 160px);
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 8px;
}

section h3 {
  font-size: 1.8rem;
  color: var(--text);
  margin: 30px 0 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.card h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Accountability compare layouts */
.compare-grid.two-up {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.compare-card h4 {
  margin-bottom: 10px;
}
.compare-card.statement {
  border-top: 4px solid #607d8b;
}
.compare-card.evidence {
  border-top: 4px solid var(--primary);
}

/* Read-more expandable sections */
.expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.expand-toggle:hover { background: #145ca3; }
.expandable-content { display: none; margin-top: 16px; }

/* Media Coverage section (scoped) */
.media-coverage {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 24px;
  margin-top: 24px;
}
.media-coverage .header h3 { font-size: 1.6rem; color: var(--text); margin-bottom: 6px; }
.media-coverage .header p { color: var(--text-light); }
.media-coverage .disclaimer { background: #e8f5e9; border-left: 4px solid #4caf50; border-radius: 8px; padding: 16px 18px; }
.media-coverage .disclaimer-title { font-weight: 800; color: #2e7d32; margin-bottom: 6px; }
.media-coverage .disclaimer-text { color: #1b5e20; }
.media-coverage .stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.media-coverage .stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.media-coverage .stat-number { font-size: 36px; font-weight: 800; color: var(--primary); }
.media-coverage .stat-label { color: var(--text-light); font-weight: 600; }
.media-coverage .stat-sublabel { color: #999; font-size: 12px; }
.media-coverage .chart-section { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-top: 12px; }
.media-coverage .chart-title { font-weight: 800; color: var(--text); margin-bottom: 4px; }
.media-coverage .chart-subtitle { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }
.media-coverage .bar-chart { display: flex; flex-direction: column; gap: 12px; }
.media-coverage .bar-item { display: flex; gap: 12px; align-items: center; }
.media-coverage .bar-label { min-width: 140px; font-weight: 700; color: var(--text); }
.media-coverage .bar-wrapper { flex: 1; height: 38px; background: #f5f5f5; border-radius: 8px; overflow: visible; }
.media-coverage .bar-fill { height: 100%; background: linear-gradient(90deg, var(--secondary), #1565C0); border-radius: 8px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; width: 0%; transition: width 1s ease; position: relative; }
.media-coverage .bar-fill.sudan { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.media-coverage .bar-value { color: #fff; font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
.media-coverage .bar-fill[data-width="3"] .bar-value,
.media-coverage .bar-fill[data-width="2"] .bar-value,
.media-coverage .bar-fill[data-width="1"] .bar-value {
  position: absolute;
  left: 100%;
  margin-left: 12px;
  color: var(--primary);
  font-weight: 800;
}
.media-coverage .bar-fill.tiny { justify-content: flex-start; padding-right: 0; }
.media-coverage .bar-fill.tiny .bar-value { position: absolute; right: -6px; transform: translateX(100%); color: var(--text); }
.media-coverage .bar-value-out { display: none !important; font-weight: 800; font-size: 0.9rem; color: var(--text); }
.media-coverage .callout { background: #fff3e0; border-left: 4px solid #ff8f00; border-radius: 8px; padding: 16px; }
.media-coverage .comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.media-coverage .comparison-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.media-coverage .comparison-item.highlighted { border: 2px solid var(--primary); background: #ffebee; }
.media-coverage .comparison-conflict { font-weight: 800; }
.media-coverage .comparison-deaths { color: var(--primary); font-weight: 800; font-size: 1.6rem; }
.media-coverage .charity-link { display: inline-block; background: var(--secondary); color: #fff; padding: 6px 10px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 12px; margin-right: 6px; }
.media-coverage .charity-link:hover { background: #145ca3; }

/* Mobile cards (hidden by default) */
.mobile-coverage-cards { display: none; }
.coverage-card { background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.coverage-card.highlighted { border-color: var(--primary); background: #ffebee; }
.coverage-card-title { font-size: 18px; font-weight: 800; color: var(--text); }
.coverage-card-value { font-size: 28px; font-weight: 800; color: var(--secondary); }
.coverage-card.highlighted .coverage-card-value { color: var(--primary); }
.coverage-card-label { font-size: 14px; color: #666; }
.coverage-card-rank { font-size: 12px; color: #999; }
.coverage-progress { width: 100%; height: 10px; background: #f0f0f0; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.coverage-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary), #1565C0); border-radius: 6px; }
.coverage-card.highlighted .coverage-progress > span { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }

.evidence-card {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.evidence-card strong {
  color: #e65100;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 15px;
  background: var(--card-bg);
  margin: 10px 0;
  border-radius: 4px;
  border-left: 4px solid var(--primary);
}

.info-list li strong {
  color: var(--primary);
  display: block;
  margin-bottom: 5px;
}

.timeline {
  position: relative;
  padding-left: 30px;
  margin: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.timeline-item {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
  }

  .quick-facts-sidebar {
    position: static;
    width: 100%;
    order: -1;
  }

  #network-canvas {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .stat-value {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  #network-canvas {
    height: 400px;
  }

  .node-uae {
    width: 100px;
    height: 100px;
    font-size: 1rem;
  }

  .node-gold,
  .node-weapons,
  .node-companies,
  .node-us {
    width: 70px;
    height: 70px;
    font-size: 0.7rem;
  }

  .node-rsf {
    width: 80px;
    height: 80px;
    font-size: 0.75rem;
  }

  section h2 {
    font-size: 1.8rem;
  }
}

/* Extra-small phones: keep nodes smaller */
@media (max-width: 480px) {
  #network-canvas { padding: 10px; }
  .node-uae { width: 90px; height: 90px; }
  .node-gold, .node-weapons, .node-companies, .node-us { width: 60px; height: 60px; }
  .node-rsf { width: 70px; height: 70px; }
}

/* Mobile layout for media coverage bars (robust across iPhone sizes) */
@media (max-width: 768px) {
  .media-coverage .bar-chart { gap: 20px; display: none !important; }
  .media-coverage .bar-item { flex-direction: column; align-items: stretch; gap: 10px; }
  .media-coverage .bar-label { min-width: 100%; width: 100%; font-size: 16px; text-align: left; }
  .media-coverage .bar-wrapper { width: 100%; height: 40px; position: relative; overflow: visible !important; }
  .media-coverage .bar-fill { padding-right: 0; }
  /* Position the value above the right edge of the bar */
  .media-coverage .bar-value { position: absolute; right: 0; top: -30px; color: #1a1a1a; font-weight: 700; font-size: 14px; white-space: nowrap; background: #fff; padding: 2px 4px; border-radius: 3px; }
  /* For tiny bars (<5%), position value at the left and color to primary */
  .media-coverage .bar-fill[data-width="3"] .bar-value,
  .media-coverage .bar-fill[data-width="2"] .bar-value,
  .media-coverage .bar-fill[data-width="1"] .bar-value { left: 0; right: auto; top: -30px; color: var(--primary); background: #ffebee; padding: 2px 6px; }
  /* Use card view on mobile */
  .media-coverage .mobile-coverage-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
}

/* Connect-the-dots: mobile-friendly layout (no cards) */
@media (max-width: 768px) {
  #network-canvas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: auto;
    padding: 12px;
  }
  #network-canvas > svg { display: none; }
  .network-node {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto;
    width: 76px !important;
    height: 76px !important;
  }
  .node-uae { grid-column: 1 / -1; }
  /* Simplify node visuals to give text room */
  .network-node::before,
  .node-us::after,
  .node-weapons::after,
  .node-weapons .node-label::before,
  .node-weapons .node-label::after { content: none !important; display: none !important; }
  .node-label { font-size: 12px; line-height: 1.1; padding: 0 4px; }
  .node-companies .node-label,
  .node-weapons .node-label { font-size: 11px; }
}

/* Avoid overlap on small tablets */
@media (max-width: 640px) and (min-width: 481px) {
  .media-coverage .bar-item { flex-direction: column; align-items: stretch; gap: 8px; }
  .media-coverage .bar-label { min-width: 100%; }
  .media-coverage .bar-wrapper { width: 100%; }
}

/* Footer */
footer {
  background: var(--text);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 80px;
}

footer a {
  color: white;
  text-decoration: underline;
}

/* Node labels and minimal icons (no emojis) */
.node-label { font-size: 0.9rem; line-height: 1; }

.node-icon { display: inline-block; }
.node-flag { display: inline-block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.18); }

/* UAE flag (non-emoji, CSS-built) */
.flag-uae { /* Accurate UAE flag: red vertical band (25%), green/white/black stripes */
  width: 30px; height: 18px;
  background:
    linear-gradient(to right, #D21034 0 25%, transparent 25%) 0 0 / 100% 100% no-repeat,
    linear-gradient(to bottom, #00732F 0 33.33%, #FFFFFF 33.33% 66.66%, #000000 66.66% 100%) 0 0 / 100% 100% no-repeat;
}

/* US flag approximation (stripes + canton) */
.flag-us { width: 30px; height: 18px; background:
  linear-gradient(#3c3b6e, #3c3b6e) left top / 40% 55% no-repeat,
  repeating-linear-gradient(to bottom, #b22234 0 2px, #ffffff 2px 4px) left top / 100% 100% no-repeat; }

.network-node::before {
  content: '';
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.95;
}

/* Gold: coin icon */
.node-gold::before {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #fff59d, #fdd835 70%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fbc02d;
}

/* Weapons: crosshair icon */
/* Icons drawn inside node, centered */
.icon-gold { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff59d, #fdd835 70%); box-shadow: inset 0 0 0 2px #fbc02d; }
.icon-missile { position: relative; width: 24px; height: 8px; background: #fff; border-radius: 4px; transform: rotate(-45deg); }
.icon-missile::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.icon-building { position: relative; width: 20px; height: 16px; background: #fff; border-radius: 2px; }
.icon-building::before { content: ''; position: absolute; top: -6px; left: 4px; width: 12px; height: 6px; background: #fff; }
.icon-lock { position: relative; width: 16px; height: 12px; background: #fff; border-radius: 2px; }
.icon-lock::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 12px; height: 10px; border: 2px solid #fff; border-bottom: none; border-radius: 8px 8px 0 0; }

/* Ensure no legacy icon pseudo-elements show */
.network-node::before,
.network-node::after,
.node-weapons .node-label::before,
.node-weapons .node-label::after { content: none !important; }

/* Companies: building blocks */
.node-companies::before {
  width: 18px;
  height: 14px;
  background: rgba(255,255,255,0.9);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.05) inset,
    0 6px 0 0 rgba(255,255,255,0.9);
}
.node-companies::after {
  content: '';
  position: absolute;
  top: 19%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 8px solid rgba(255,255,255,0.9);
}

/* Suppress old icon layers for UAE/US to avoid double symbols */
.node-uae::before,
.node-uae::after,
.node-us::before,
.node-us::after {
  content: none !important;
  box-shadow: none !important;
}

/* RSF: shield */
.node-rsf::before {
  width: 18px;
  height: 22px;
  background: rgba(255,255,255,0.9);
  border-radius: 10px 10px 6px 6px / 12px 12px 8px 8px;
}
.node-rsf::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 10px;
  height: 12px;
  background: transparent;
  border: 2px solid #111;
  opacity: 0.2;
  transform: translate(-50%, -50%);
}

/* (Optional) You can add a subtle ring via border if needed */

/* Sources note (global message) */
.sources-note {
  max-width: 1200px;
  margin: 20px auto 0;
  background: #ffffff;
  border-left: 4px solid var(--secondary);
  padding: 15px 20px;
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Section-level Sources toggle */
.sources-section {
  margin: 20px 0;
  padding: 0;
  background: transparent;
}

.sources-toggle {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.sources-toggle:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border-color: #d7d7d7;
}

.toggle-icon {
  font-size: 18px;
  font-weight: 800;
}

.sources-content {
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.source-item {
  margin-bottom: 10px;
  padding: 10px 12px 10px 14px;
  border-left: 3px solid #d9d9d9;
  background: #fff;
  border-radius: 6px;
}

.source-item strong {
  color: var(--text);
}

.source-item a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
}

.source-item a:hover {
  text-decoration: underline;
}

.source-item em {
  display: block;
  margin-top: 8px;
  color: #666;
  font-size: 13px;
}

/* Mobile-friendly sources section */
@media (max-width: 768px) {
  .sources-section {
    padding: 15px;
  }
  .sources-toggle {
    font-size: 14px;
    padding: 10px 15px;
  }
  .source-item {
    font-size: 14px;
    padding: 12px;
  }
}

/* Vanilla JS Timeline (shadcn-like) */
.v-timeline-container {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 12px 0 28px;
}

.v-timeline-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.v-timeline-row {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 60px;
  align-items: flex-start;
}

.v-timeline-sticky {
  position: sticky;
  top: 140px;
  align-self: flex-start;
  z-index: 1;
  min-width: 120px;
  width: 120px;
}

.v-timeline-pin {
  position: absolute;
  left: 18px;
  top: -10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.v-timeline-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid #d1d5db;
}

.v-timeline-year {
  display: none; /* we render the date inside the card */
}

.v-timeline-content {
  flex: 1;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  align-items: flex-start;
}

.v-timeline-content h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.v-timeline-card {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid #eee;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 16px 18px;
  width: 100%;
}
.v-timeline-card p { margin: 0; line-height: 1.6; }
.v-timeline-card + .v-timeline-card { margin-top: 12px; }

.v-date {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 6px;
  display: block;
}

.v-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 24px 0 8px;
}

.v-timeline-track {
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.v-timeline-progress {
  position: absolute;
  left: 40px;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to top, var(--primary), var(--secondary), transparent);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .v-timeline-row { padding-top: 40px; }
  .v-timeline-sticky { top: 90px; min-width: 140px; }
  .v-timeline-year { font-size: 28px; padding-left: 70px; }
  .v-timeline-pin { left: 14px; }
  .v-timeline-track, .v-timeline-progress { left: 34px; }
}
