/* Vestigo blog visualization system — design tokens extracted from vstigo.com
   Namespaced under .vviz so it never fights the PaperMod theme. */
.vviz {
  --vv-bg:        #0a0e1a;
  --vv-panel:     #0f1320;
  --vv-emerald:   #34d399;
  --vv-emerald-e: #6ee7b7;
  --vv-blue:      #3b82f6;
  --vv-blue-lt:   #60a5fa;
  --vv-red:       #ef4444;
  --vv-pink:      #f472b6;
  --vv-green:     #22c55e;
  --vv-amber:     #f59e0b;
  --vv-s2:        #e2e8f0;
  --vv-s3:        #cbd5e1;
  --vv-s4:        #94a3b8;
  --vv-s5:        #64748b;
  --vv-line:      rgba(255,255,255,0.06);

  position: relative;
  margin: 2.4rem 0;
  border: 1px solid var(--vv-line);
  border-radius: 12px;
  background: radial-gradient(120% 120% at 50% 0%, #0d1426 0%, var(--vv-bg) 70%);
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
}

/* mono eyebrow / caption — matches the site's label system */
.vviz__eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.65);
  padding: 14px 18px 0;
  margin: 0;
}
.vviz__caption {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--vv-s4);
  padding: 10px 18px 16px;
  margin: 0;
  border-top: 1px solid var(--vv-line);
  background: rgba(255,255,255,0.012);
}

/* canvas / stage */
.vviz__stage {
  position: relative;
  width: 100%;
  display: block;
  background: var(--vv-bg);
}
.vviz__stage canvas,
.vviz__stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* scanline + dotted-grid ambient overlay (the "Live Operations Center" texture) */
.vviz__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px),
    radial-gradient(rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 100% 3px, 22px 22px;
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* static fallback image — shown until JS upgrades, and for no-webgl */
.vviz__fallback {
  display: block; width: 100%; height: auto;
}
.vviz.is-live .vviz__fallback { display: none; }

/* poster-first: hide the live stage until JS upgrades the figure.
   !important overrides per-stage inline display (flex/grid) so we don't double-stack. */
.vviz:not(.is-live) .vviz__stage { display: none !important; }

/* true reduced-motion: show the end-state content, but no transitions/animations */
@media (prefers-reduced-motion: reduce) {
  .vviz *, .vviz *::before, .vviz *::after {
    transition: none !important;
    animation: none !important;
  }
}

.vviz a { color: var(--vv-blue-lt); }

/* neutralize the PaperMod theme's global code styling inside our viz
   (the theme forces code{color:#34D399;background:#0f1320} which fights our reds/ambers) */
.vviz code, .vviz pre {
  background: transparent !important;
  color: inherit !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: inherit !important;
}
