/* Figures for brief 05 (prompt supply chain). Same conventions as the ARTEX brief's figs.css: site tokens from base.css,
   motion only after figs.js marks a figure .anim, so without JS or with reduced motion every figure is complete and still. */
.article .ax { width: min(1080px, calc(100vw - 48px)); margin: 12px 0 8px; }
.article .ax figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); max-width: 72ch; }
.article .ax h5 { margin: 0 0 10px; font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.article .ax-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 22px; }
.article .ax-night { background: var(--night); border-color: var(--night-line); color: var(--night-fg); }
.article .ax-night h5, .article .ax-night figcaption { color: var(--night-muted); }

/* 0. In short */
.article .ax-sum { width: auto; padding: 22px 24px; border-left: 3px solid var(--blaze); background: var(--panel); border-radius: 0 10px 10px 0; }
.article .ax-sum ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.article .ax-sum li { counter-increment: s; position: relative; padding-left: 34px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.article .ax-sum li::before { position: absolute; left: 0; top: 1px; content: counter(s, decimal-leading-zero); font: 500 12px/1.9 var(--font-mono); color: var(--blaze); }
.article .ax-sum li b { color: var(--ink); }

/* 1. The path of one prompt: hops on a wire, a packet moving through, the lock only on the first wire */
.article .pp-path { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; }
.article .pp-hop { display: grid; gap: 4px; align-content: start; padding: 14px 12px; border: 1px solid var(--night-line); border-radius: 8px; background: var(--night-2); position: relative; }
.article .pp-hop small { font: 500 10.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); }
.article .pp-hop b { font: 700 16px/1.25 var(--font-display); font-stretch: 106%; color: var(--night-fg); }
.article .pp-hop span { font-size: 13px; line-height: 1.35; color: var(--night-muted); }
.article .pp-hop:not(.you):not(.model)::after { content: ""; position: absolute; top: 12px; right: 12px; width: 14px; height: 8px; border: 1.5px solid var(--night-blaze); border-radius: 50%; }
.article .pp-hop.you, .article .pp-hop.model { border-style: dashed; }
.article .pp-wire { position: relative; align-self: center; height: 2px; margin: 0 4px; background: repeating-linear-gradient(90deg, var(--night-line) 0 6px, transparent 6px 10px); }
.article .pp-wire em { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 9.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; font-style: normal; color: var(--night-ok); }
.article .pp-wire.lock::before { content: ""; position: absolute; top: -9px; left: calc(50% - 6px); width: 12px; height: 9px; border: 1.5px solid var(--night-ok); border-radius: 2px; background: var(--night); }
.article .pp-wire .pk { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--night-blaze); box-shadow: 0 0 10px var(--night-blaze); opacity: 0; }
.article .anim.in .pp-wire .pk { opacity: 1; animation: pp-run 4s linear infinite; animation-delay: calc(var(--w) * 0.8s); }
@keyframes pp-run { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 20% { left: calc(100% - 8px); opacity: 1; } 24%, 100% { left: calc(100% - 8px); opacity: 0; } }
.article .anim.in .pp-hop:not(.you):not(.model)::after { animation: pp-eye 4s ease-in-out infinite; animation-delay: calc(var(--h) * 0.8s); }
@keyframes pp-eye { 0%, 30%, 100% { background: transparent; } 8%, 22% { background: var(--night-blaze); box-shadow: 0 0 10px var(--night-blaze); } }
.article .pp-eyes { margin-top: 16px; display: flex; justify-content: center; }
.article .pp-eyes span { font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-blaze); padding: 6px 12px; border: 1px dashed var(--night-blaze); border-radius: 999px; }
@media (max-width: 860px) {
  .article .pp-path { grid-template-columns: minmax(0, 1fr); }
  .article .pp-wire { height: 30px; width: 2px; margin: 4px auto; background: repeating-linear-gradient(180deg, var(--night-line) 0 6px, transparent 6px 10px); }
  .article .pp-wire em { top: 50%; left: 14px; transform: translateY(-50%); }
  .article .pp-wire.lock::before { top: calc(50% - 5px); left: -6px; }
  .article .pp-wire .pk { left: -3px; top: 0; }
  @keyframes pp-run { 0% { top: 0; opacity: 0; } 4% { opacity: 1; } 20% { top: calc(100% - 8px); opacity: 1; } 24%, 100% { top: calc(100% - 8px); opacity: 0; } }
}

/* 2. The leak follows the seller: two routes to the same model, one lit */
.article .pp-sell { display: grid; gap: 10px; }
.article .pp-sell .row { display: grid; grid-template-columns: minmax(0, 1.1fr) 28px minmax(0, 1.2fr) 28px minmax(0, 0.9fr) minmax(0, 1.6fr); align-items: center; gap: 6px; }
.article .pp-sell .row > span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 14px; line-height: 1.3; }
.article .pp-sell .row > i { height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.article .pp-sell .row > b { font-weight: 500; font-size: 14px; color: var(--muted); padding-left: 8px; }
.article .pp-sell .row.hit .s { border-color: var(--blaze); background: var(--blaze-soft); font-weight: 600; }
.article .pp-sell .row.hit > b { color: var(--blaze); font-weight: 600; }
.article .anim .pp-sell .row.hit .s { border-color: var(--line); background: var(--paper); font-weight: 400; transition: all 0.5s ease 0.9s; }
.article .anim .pp-sell .row.hit > b { opacity: 0; transition: opacity 0.5s ease 1.3s; }
.article .anim.in .pp-sell .row.hit .s { border-color: var(--blaze); background: var(--blaze-soft); font-weight: 600; }
.article .anim.in .pp-sell .row.hit > b { opacity: 1; }
@media (max-width: 760px) { .article .pp-sell .row { grid-template-columns: minmax(0, 1fr); } .article .pp-sell .row > i { display: none; } .article .pp-sell .row > b { padding: 2px 0 8px; } }

/* 3. CloudTrail illustration: lines typed in order, the finding right after the first denied call */
.article .ax-term { font: 14px/1.55 var(--font-mono); }
.article .ax-term .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.article .ax-term .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.article .ax-term .bar span { margin-left: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }
.article .ax-term ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.article .ax-term li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; color: var(--night-fg); font-size: inherit; line-height: inherit; }
.article .ax-term li em { font-style: normal; color: var(--night-muted); }
.article .ax-term li b { font-weight: 500; color: var(--night-muted); }
.article .ax-term li:last-child b { color: var(--night-blaze); }
.article .ax-term li.find { margin: 8px 0; padding: 12px 14px; border: 1.5px dashed var(--night-blaze); border-radius: 8px; background: rgba(255, 107, 69, 0.1); color: #fff; grid-template-columns: minmax(0, 1fr); }
.article .ax-term li.find strong { color: var(--night-blaze); font-weight: 500; letter-spacing: 0.06em; }
.article .anim .ax-term li { opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; transition-delay: calc(var(--i) * 0.55s); }
.article .anim.in .ax-term li { opacity: 1; transform: none; }
.article .anim.in .ax-term li.find { animation: pp-glow 1.6s ease-in-out calc(var(--i) * 0.55s + 0.3s) 3; }
@keyframes pp-glow { 50% { box-shadow: 0 0 0 6px rgba(255, 107, 69, 0.18); } }
@media (max-width: 640px) { .article .ax-term { font-size: 12.5px; } .article .ax-term li { grid-template-columns: 78px minmax(0, 1fr); } .article .ax-term li > :last-child:not(:first-child) { grid-column: 2; } }

/* 4. One link, six devices: fan-out into findings linked as one story */
.article .pp-fan { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto auto; gap: 12px 10px; align-items: center; }
.article .pp-fan > div:not(.gap) { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.article .pp-fan small { font: 500 10.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.article .pp-fan b { font: 700 16px/1.25 var(--font-display); font-stretch: 106%; }
.article .pp-fan span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.article .pp-fan .src { grid-row: 1 / 3; }
.article .pp-fan .gap { grid-row: 1 / 3; text-align: center; border-top: 2px dashed var(--line); padding-top: 6px; }
.article .pp-fan .gap em { font: 500 11px var(--font-mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.article .pp-fan .first { border-color: var(--blaze) !important; background: var(--blaze-soft) !important; }
.article .pp-fan .first small { color: var(--blaze); }
.article ul.devs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.article .devs li { padding: 7px 8px; border: 1px solid var(--blaze); border-radius: 6px; font: 500 11px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; text-align: center; color: var(--blaze); background: var(--paper); }
.article .pp-fan .one { grid-column: 3 / 5; border-style: dashed !important; border-color: var(--blaze) !important; }
.article .anim .devs li { opacity: 0; transform: scale(0.8); transition: opacity 0.2s ease, transform 0.2s ease; transition-delay: calc(0.8s + var(--i) * 0.18s); }
.article .anim .pp-fan .one { opacity: 0; transition: opacity 0.4s ease 2.1s; }
.article .anim.in .devs li { opacity: 1; transform: none; }
.article .anim.in .pp-fan .one { opacity: 1; }
@media (max-width: 760px) { .article .pp-fan { grid-template-columns: minmax(0, 1fr); } .article .pp-fan .src, .article .pp-fan .gap { grid-row: auto; } .article .pp-fan .gap { border-top: 0; } .article .pp-fan .one { grid-column: auto; } }

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