/* Figures for the Cloud One brief. Site tokens from base.css. Motion is CSS only; html.paused (the site's pause button)
   and reduced motion stop it, and every figure reads complete when still. */
.article .cp { width: min(1080px, calc(100vw - 48px)); margin: 12px 0 8px; }
.article .cp figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); max-width: 72ch; }
.article .cp-panel { border: 1px solid var(--night-line); border-radius: 10px; background: var(--night); color: var(--night-fg); padding: 24px; }
.article .cp h5 { margin: 0 0 14px; font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); }

/* 1. Paths in | control plane | what it reaches, with packets moving along the wires */
.article .cp-map { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 0.9fr) 48px minmax(0, 1fr); align-items: center; }
.article .cp-col { display: grid; gap: 14px; }
.article .cp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.article .cp-col li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--night-line); border-radius: 8px; background: var(--night-2); font-size: 13.5px; line-height: 1.3; color: var(--night-fg); }
.article .cp-col li i { width: 8px; height: 8px; border-radius: 50%; background: var(--night-muted); flex: none; }
.article .cp-col .tag { font: 500 10.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); }
.article .cp-in li i { background: var(--night-blaze); }
.article .cp-col li { align-items: flex-start; }
.article .cp-col li i { margin-top: 5px; }
.article .cp-col li b { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(255, 107, 69, 0.45); font: 500 10.5px/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--night-blaze); }
.article .cp-core { border: 1.5px solid var(--night-blaze); border-radius: 12px; padding: 20px 16px; background: rgba(255, 107, 69, 0.07); text-align: center; display: grid; gap: 8px; position: relative; }
.article .cp-core strong { font: 800 22px/1.15 var(--font-display); font-stretch: 112%; color: var(--night-fg); }
.article .cp-core span { font-size: 13px; line-height: 1.45; color: var(--night-muted); }
.article .cp-core::after { content: ""; position: absolute; inset: -7px; border-radius: 16px; border: 1px solid rgba(255, 107, 69, 0.35); animation: cp-pulse 2.6s ease-out infinite; }
.article .cp-wire { height: 2px; background: repeating-linear-gradient(90deg, var(--night-line) 0 6px, transparent 6px 11px); position: relative; overflow: hidden; }
.article .cp-wire::after { content: ""; position: absolute; top: -2px; left: -12px; width: 12px; height: 6px; border-radius: 3px; background: var(--night-blaze); box-shadow: 0 0 10px var(--night-blaze); animation: cp-run 1.8s linear infinite; }
.article .cp-wire.out::after { animation-delay: 0.9s; }
@keyframes cp-run { to { transform: translateX(72px); } }
@keyframes cp-pulse { 0% { opacity: 0.9; transform: scale(0.98); } 100% { opacity: 0; transform: scale(1.06); } }

@media (max-width: 760px) {
  .article .cp-map { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 36px auto 36px auto; }
  .article .cp-wire { width: 2px; height: 36px; justify-self: center; background: repeating-linear-gradient(180deg, var(--night-line) 0 6px, transparent 6px 11px); }
  .article .cp-wire::after { top: -12px; left: -2px; width: 6px; height: 12px; animation-name: cp-drop; }
  @keyframes cp-drop { to { transform: translateY(54px); } }
}

/* 2. Inside or outside: two routes, the same destination */
.article .cp-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .article .cp-routes { grid-template-columns: minmax(0, 1fr); } }
.article .cp-route { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 20px 22px; display: grid; gap: 12px; align-content: start; }
.article .cp-route h4 { margin: 0; font: 500 11.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blaze); }
.article .cp-route ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.article .cp-route li { position: relative; padding: 0 0 14px 26px; font-size: 15px; line-height: 1.45; }
.article .cp-route li:last-child { padding-bottom: 0; }
.article .cp-route li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); background: var(--paper); }
.article .cp-route li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 2px; width: 1.5px; background: var(--line); }
.article .cp-route li.end::before { background: var(--blaze); border-color: var(--blaze); }
.article .cp-route li b { display: block; font: 700 15.5px/1.3 var(--font-display); font-stretch: 108%; color: var(--ink); }
.article .cp-route p { margin: 0; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .article .cp *, .article .cp *::before, .article .cp *::after { animation: none !important; } }
