/* A quiet transaction boundary around one sculpted Homelander module. */
.tx-flow{padding:2.25rem 1.5rem;border-bottom:1px solid var(--hairline);scroll-margin-top:6rem;}
.tx-flow-inner{max-width:1120px;margin-inline:auto;container-type:inline-size;}
.tx-flow-heading{margin-bottom:1.35rem;}
.tx-flow-heading h2{font-size:2.4rem;line-height:1.1;overflow-wrap:anywhere;}
.tx-flow-transaction{margin:0;padding:1.1rem clamp(1rem,3vw,2rem) 1.5rem;border:1px solid rgba(199,190,255,.16);border-radius:20px;background:radial-gradient(ellipse at 50% 65%,rgba(122,76,181,.065),transparent 64%);}
.tx-flow-transaction figcaption{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem 1rem;margin-bottom:1.5rem;font-family:var(--font-body);line-height:1.5;}
.tx-flow-boundary-label{color:var(--ink-muted);font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;}
.tx-flow-mode{display:inline-flex;align-items:center;gap:.45rem;color:var(--ink-dim);font-size:.72rem;font-weight:400;}
.tx-flow-mode::before{content:"";width:4px;height:4px;flex:0 0 4px;border-radius:50%;background:var(--lavender);opacity:.7;}
.tx-flow-path{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'intent' 'in' 'hook' 'out' 'recipients';align-items:center;isolation:isolate;}
.tx-flow-node{position:relative;z-index:1;min-width:0;max-width:100%;font:600 1rem/1.45 var(--font-body);color:var(--ink);text-align:center;overflow-wrap:anywhere;}
.tx-flow-intent{grid-area:intent;justify-self:center;display:flex;align-items:center;justify-content:center;gap:.65rem;min-height:3.1rem;padding:.7rem 1rem;border:1px solid rgba(199,190,255,.2);border-radius:10px;background:#211c2a;font-size:.9rem;font-weight:500;}
.tx-flow-icon{display:block;flex:0 0 auto;width:1.15rem;height:1.15rem;color:var(--lavender);fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;opacity:.82;}
.tx-flow-label{position:relative;z-index:1;min-width:0;}
.tx-flow-hook{grid-area:hook;justify-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;width:min(100%,22rem);min-height:9.5rem;padding:1.05rem 1rem 1.15rem;border:1px solid rgba(184,149,238,.5);border-radius:17px;background:linear-gradient(160deg,#382a49 0%,#2a2038 48%,#211b2d 100%);box-shadow:0 12px 28px rgba(0,0,0,.2),0 0 32px rgba(135,81,213,.06),inset 0 1px 0 rgba(255,255,255,.08);}
.tx-flow-hook::before{content:"";position:absolute;inset:0 17px auto;height:1px;background:linear-gradient(90deg,transparent,rgba(225,206,255,.65),transparent);pointer-events:none;}
.tx-flow-core{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 auto;width:5.75rem;height:3rem;border:1px solid rgba(205,174,250,.35);border-radius:11px;background:linear-gradient(145deg,rgba(185,144,243,.15),rgba(123,75,188,.045));box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 4px 12px rgba(8,4,16,.16);}
.tx-flow-core img{display:block;width:76%;height:76%;object-fit:contain;}
.tx-flow-hook-copy{position:relative;z-index:1;min-width:0;max-width:100%;}
.tx-flow-hook strong{display:block;color:var(--ink);font:600 1.075rem/1.45 var(--font-body);letter-spacing:-.015em;}
.tx-flow-detail{display:block;margin-top:.2rem;color:var(--ink-muted);font:400 .85rem/1.55 var(--font-body);}
.tx-flow-core-light{position:absolute;inset:-1px;z-index:0;border:1px solid rgba(214,182,255,.75);border-radius:inherit;background:radial-gradient(ellipse at 50% 0,rgba(189,143,255,.24),transparent 72%);box-shadow:0 0 24px rgba(168,109,248,.15),inset 0 0 20px rgba(179,123,255,.08);opacity:0;pointer-events:none;}
.tx-flow-connector{display:flex;align-items:center;justify-content:center;height:2.4rem;color:rgba(199,190,255,.48);}
.tx-flow-connector-in{grid-area:in;}
.tx-flow-connector-out{grid-area:out;height:3rem;}
.tx-flow-connector svg{display:block;width:2.1rem;height:.85rem;transform:rotate(90deg);overflow:visible;}
.tx-flow-connector path{fill:none;stroke:currentColor;stroke-width:1;vector-effect:non-scaling-stroke;}
.tx-flow-recipients{grid-area:recipients;position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;list-style:none;margin:0;padding:0;}
.tx-flow-recipient{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;min-width:0;min-height:4.2rem;padding:.65rem .2rem;border:1px solid rgba(199,190,255,.16);border-radius:9px;background:#201b29;color:var(--ink);font:500 .8125rem/1.5 var(--font-body);text-align:center;overflow-wrap:anywhere;}
.tx-flow-recipient .tx-flow-icon{position:relative;z-index:1;width:1.05rem;height:1.05rem;}
.tx-flow-receipt-light{position:absolute;inset:-1px;z-index:0;border:1px solid rgba(199,190,255,.65);border-radius:inherit;background:rgba(174,132,240,.075);box-shadow:0 0 14px rgba(167,114,240,.08);opacity:0;pointer-events:none;}
.tx-flow-wires{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:visible;pointer-events:none;}
.tx-flow-wire{fill:none;stroke:rgba(199,190,255,.32);stroke-width:1;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;}
.tx-flow-signal{fill:none;stroke:var(--lavender);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:.12 1;stroke-dashoffset:1.12;opacity:0;}
.tx-flow-signal-head{stroke:#f4edff;stroke-width:2.5;stroke-dasharray:.018 1;filter:drop-shadow(0 0 3px rgba(199,163,255,.65));}
.tx-flow.is-wired .tx-flow-connector svg{visibility:hidden;}
@container (min-width:42rem){
  .tx-flow-path{grid-template-columns:minmax(0,1fr) minmax(2.5rem,.55fr) minmax(0,2fr) minmax(3rem,.65fr) minmax(0,1.12fr);grid-template-areas:'intent in hook out recipients';}
  .tx-flow-intent{width:100%;padding-inline:.75rem;}
  .tx-flow-connector,.tx-flow-connector-out{height:auto;min-height:3rem;}
  .tx-flow-connector svg{transform:none;}
  .tx-flow-recipients{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,1fr);gap:.65rem;}
  .tx-flow-recipient{flex-direction:row;justify-content:flex-start;gap:.65rem;min-height:2.75rem;padding:.6rem .85rem;font-size:.9rem;text-align:left;}
}
/* With enlarged text, output terminals get their own rows and a left branch. */
@container (max-width:16rem){
  .tx-flow-transaction figcaption{gap:.35rem;}
  .tx-flow-mode{font-size:.7rem;}
  .tx-flow-recipients{grid-template-columns:minmax(0,1fr);padding-left:2rem;gap:.6rem;}
  .tx-flow-recipient{flex-direction:row;justify-content:flex-start;gap:.6rem;min-height:3rem;padding:.6rem .65rem;text-align:left;}
}
@media (max-width:640px){
  .tx-flow{padding:2.5rem min(1.5rem,24px);}
  .tx-flow-heading h2{font-size:2.15rem;}
  .tx-flow-transaction{padding:1rem min(1rem,16px) 1.25rem;border-radius:16px;}
  .tx-flow-transaction figcaption{margin-bottom:1.35rem;}
  .tx-flow-hook{border-radius:14px;}
}
@media (prefers-reduced-motion:reduce){
  .tx-flow-signal,.tx-flow-signal-head{display:none;}
  .tx-flow-core-light,.tx-flow-receipt-light{opacity:0!important;}
}
