/* ============================================================
   VIZ 1.3 — PHYSICAL CHAIN
   Producers -> TSO -> DSO -> Consumers, with a flowing energy pulse.
   Triggered by the "see it" button next to "Why so many?".
   ============================================================ */

.viz-panel[data-viz="3"] {
  --chain-cyan:   #3FA9C4;
  --chain-green:  #3FB58A;
  --chain-navy:   #1f3a52;
  --chain-amber:  #E0A23B;
}

.v13-chain {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  box-sizing: border-box;
  color: var(--ref-ink);
  animation: v13-card-in .35s cubic-bezier(.2,.7,.3,1);
}

.v13-chain .vc-tag {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--chain-cyan); font-weight: 700; margin-bottom: 4px;
}
.vc-header {
  text-align: center;
  margin-bottom: 10px;
}
.v13-chain .vc-sub {
  font-size: 13px; color: var(--ref-muted); line-height: 1.5; margin-bottom: 14px;
}
.v13-chain .vc-sub b { color: var(--chain-cyan); }

.vc-stage {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 200px;
}
.vc-stage svg { width: 100%; height: auto; }

/* stage labels under each node */
.vc-label {
  font-size: 11px; font-weight: 700;
}
.vc-icon-stroke { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the flowing energy pulse along the chain wire */
.vc-pulse { }

/* caption + back */
.vc-caption {
  text-align: center; font-size: 12px; color: var(--ref-muted);
  margin-top: 6px; min-height: 1.4em;
}
.vc-back {
  align-self: flex-start; margin-top: 12px;
  font-size: 12px; font-weight: 600; color: var(--chain-cyan);
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 0;
}
.vc-back:hover { text-decoration: underline; }

/* dashed arrows between segments */
@keyframes vc-dash {
  to { stroke-dashoffset: -16; }
}
.vc-arrow {
  stroke: var(--chain-cyan);
  stroke-width: 2.5;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  animation: vc-dash 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .vc-arrow { animation: none; }
}
