/* VNR Article Template – shared across all sub-pages */
:root {
  --bg: #030303;
  --card: #0a0a0a;
  --text: #e0e0e0;
  --text-sub: #a0a0a0;
  --accent: #40c0ff;
  --border: rgba(64, 192, 255, 0.15);
  --green: #10b981;
  --amber: #f5a623;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.7 !important;
  margin: 0;
  padding: 0;
}

/* ─── TOP NAV BAR ─── */
.vnr-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 3, 3, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.vnr-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.vnr-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.vnr-nav-logo img {
  height: 44px;
  width: auto;
}

.vnr-nav-links {
  display: flex;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.vnr-nav-links a {
  color: #d4d4d4;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.vnr-nav-links a:hover {
  opacity: 1;
  color: #fff;
}

.vnr-nav-links a.active {
  color: var(--accent);
  font-weight: 700;
  opacity: 1;
}

/* ─── VNR LIVE FLASHING RED NAV ─── */
.vnr-live-link {
  color: #ef4444 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  animation: vnr-live-flash 1.5s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes vnr-live-flash {

  0%,
  100% {
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  }

  50% {
    color: #ff8888;
    text-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
  }
}

/* ─── FIXED SIDEBAR TOC ─── */
#scan-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  width: 160px;
}

.snav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 6px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.snav.active {
  color: #fff;
  border-left-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.snav .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.snav.active .dot {
  box-shadow: 0 0 8px var(--accent);
}

/* ─── ARTICLE BODY ─── */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 100px 40px 80px 200px;
}

.article-wrap .header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.article-wrap h1 {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.article-wrap .meta-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

h2 {
  scroll-margin-top: 64px;
  font-size: 24px;
  color: #fff;
  margin: 48px 0 16px;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

/* Map h2 border colors to TOC dot colors */
article h2:nth-of-type(1) {
  border-left-color: #40c0ff;
}

article h2:nth-of-type(2) {
  border-left-color: #f5a623;
}

article h2:nth-of-type(3) {
  border-left-color: #10b981;
}

article h2:nth-of-type(4) {
  border-left-color: #ff4d4d;
}

article h2:nth-of-type(5) {
  border-left-color: #a78bfa;
}

article h2:nth-of-type(6) {
  border-left-color: #ec4899;
}

h3 {
  font-size: 18px;
  color: var(--accent);
  margin: 32px 0 12px;
}

p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
}

ul,
ol {
  margin: 0 0 20px 24px;
}

li {
  margin-bottom: 8px;
  font-size: 15px;
}

strong {
  color: #fff;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: rgba(64, 192, 255, 0.04);
  font-style: italic;
  color: var(--text-sub);
}

/* ─── EVIDENCE BOXES & CARDS ─── */
.evidence-box,
.eb,
.risk-box,
.mechanism-card,
.stat-card,
.rc {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
}

/* Colorful KEY FINDINGS boxes */
.evidence-box,
.eb,
.risk-box,
.rc {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(64, 192, 255, 0.06) 0%, rgba(3, 3, 3, 0.95) 60%);
  box-shadow: 0 0 20px rgba(64, 192, 255, 0.05);
}

.evidence-box:nth-of-type(even),
.eb:nth-of-type(even),
.rc:nth-of-type(even) {
  border-left-color: #f5a623;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.06) 0%, rgba(3, 3, 3, 0.95) 60%);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.05);
}

.risk-box {
  border-left-color: #ff4d4d !important;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.08) 0%, rgba(3, 3, 3, 0.95) 60%) !important;
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.06) !important;
}

/* Stat squares with colored accents */
.stat-row,
.stat-grid,
.key-stats,
.stats-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 12px !important;
  margin: 24px 0 !important;
}

.stat-card,
.stat-box {
  background: rgba(64, 192, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 16px 12px !important;
  text-align: center !important;
  border-top: 3px solid var(--accent) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.stat-card:nth-child(2),
.stat-box:nth-child(2) {
  border-top-color: #ff4d4d !important;
}

.stat-card:nth-child(3),
.stat-box:nth-child(3) {
  border-top-color: var(--amber) !important;
}

.stat-card:nth-child(4),
.stat-box:nth-child(4) {
  border-top-color: #a78bfa !important;
}

.stat-card .num {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: var(--accent) !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
}

.stat-card:nth-child(2) .num {
  color: #ff4d4d !important;
}

.stat-card:nth-child(3) .num {
  color: var(--amber) !important;
}

.stat-card:nth-child(4) .num {
  color: #a78bfa !important;
}

.stat-card .desc,
.stat-card .d {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.terminal,
.term {
  background: #0d1117;
  font-family: 'JetBrains Mono', monospace;
  padding: 15px;
  border-radius: 5px;
  font-size: 13px;
  color: #88eeff;
  overflow-x: auto;
  border: 1px solid #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-sub);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

tr:hover {
  background: rgba(64, 192, 255, 0.04);
}

/* ─── FOOTER ─── */
.vnr-footer {
  max-width: 820px;
  margin: 60px auto 0;
  padding: 24px 40px 40px 200px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.vnr-footer a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-sub);
  text-decoration: none;
}

.vnr-footer .copy {
  font-size: 11px;
  color: #444;
  margin-top: 12px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #scan-nav {
    display: none;
  }

  .article-wrap {
    padding: 90px 20px 60px;
  }

  .vnr-footer {
    padding: 24px 20px 40px;
  }
}