/* DDD Flow preview — illustrative chain settlement graph on /chains.
   Namespaced .cfp-* so it never collides with chains page styles.
   Driven by js/chain-flow-preview.js; uses tokens.css variables. */

.cfp { margin: 0.4rem 0 1.6rem; }

.cfp-head { margin-bottom: 0.9rem; }
.cfp-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d99a6c;
  border: 1px solid rgba(217, 154, 108, 0.35);
  background: rgba(217, 154, 108, 0.06);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 0.65rem;
}
.cfp-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.35rem;
}
.cfp-dek {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 62ch;
  margin: 0;
}

.cfp-stage {
  position: relative;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(45, 212, 191, 0.05), transparent 60%),
    var(--bg-card);
}
.cfp-stage canvas { display: block; width: 100%; height: auto; }
.cfp-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  background: radial-gradient(80% 60% at 50% 50%, transparent 60%, rgba(10, 13, 15, 0.5));
}

.cfp-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; }
.cfp-lg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.cfp-sw { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.cfp-sw-gain { background: var(--accent); box-shadow: 0 0 8px rgba(45, 212, 191, 0.6); }
.cfp-sw-lose { background: #d99a6c; box-shadow: 0 0 8px rgba(217, 154, 108, 0.5); }
.cfp-sw-flow { width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #7FE5C8); }
.cfp-sw-size { background: transparent; border: 2px solid var(--text-faint); }

.cfp-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.55;
  max-width: 76ch;
}

@media (max-width: 520px) {
  .cfp-legend { gap: 10px 14px; }
}
