/* PKI Trust Engine: animated certificate flow, shown at the top of the page */
.section-dark{background:linear-gradient(180deg,#2B040B,#3A050E);color:#fff}
.flow-top{padding:1.4rem 0 1.8rem}
.flow-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:1rem}
.flow-head h1{color:#fff;font-size:clamp(1.7rem,2.6vw,2.3rem);font-weight:800;margin:0 0 .3rem}
.flow-head p{margin:0;color:rgba(255,255,255,.86);max-width:80ch;text-align:left!important}
.flow-head .btn{flex:none}

.flow{display:grid;grid-template-columns:minmax(0,1fr) 290px;background:#14161a;border:1px solid rgba(255,255,255,.16);border-top:3px solid var(--crimson)}
.flow-main{min-width:0;display:flex;flex-direction:column}
.flow-stage{flex:1;display:flex;align-items:center;justify-content:center;overflow-x:auto;-webkit-overflow-scrolling:touch}
.flow-svg{display:block;width:100%;height:auto;max-height:calc(100vh - 250px);min-height:300px}
.flow-svg text{font-family:var(--head)}
.fl-band{fill:rgba(255,255,255,.62);font-size:13px;font-weight:600;text-anchor:middle}
.fl-bnd{stroke:rgba(255,255,255,.24);stroke-width:1.5;stroke-dasharray:6 7}
.fl-btxt{fill:rgba(255,255,255,.45);font-size:11px;font-weight:600;text-anchor:middle}
.fl-node{fill:#23262c;stroke:rgba(255,255,255,.55);stroke-width:1.5}
.fl-panel{fill:rgba(255,255,255,.05);stroke:rgba(255,255,255,.25);stroke-width:1}
.fl-title{fill:#fff;font-size:15px;font-weight:700;text-anchor:middle}
.fl-label{fill:rgba(255,255,255,.85);font-size:13px;font-weight:600;text-anchor:middle}
.fl-small{fill:rgba(255,255,255,.62);font-size:11px;font-weight:600;text-anchor:middle}
.fl-port{font-size:10px;font-weight:600;fill:rgba(255,255,255,.75)}

.flow-track{height:5px;background:rgba(255,255,255,.14);cursor:pointer}
.flow-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--crimson),#FF4A63)}

.flow-side{display:flex;flex-direction:column;border-left:1px solid rgba(255,255,255,.14)}
.flow-cap{padding:1.1rem 1.2rem .9rem;min-height:12.6rem}
.flow-cap .k{display:block;font:700 .85rem/1 var(--head);color:#FF8A9B;margin-bottom:.45rem}
.flow-cap h3{color:#fff;font-size:1.15rem;margin:0 0 .4rem}
.flow-cap p{margin:0;color:rgba(255,255,255,.88);font-size:.95rem;line-height:1.5;text-align:left!important}
.flow-ctl{display:flex;gap:.4rem;padding:0 1.2rem 1rem}
.flow-btn{flex:1;height:2.6rem;padding:0 .6rem;border:1px solid rgba(255,255,255,.45);background:transparent;color:#fff;font:700 .9rem/1 var(--head);cursor:pointer;transition:background .2s,border-color .2s}
.flow-btn:hover{background:rgba(255,255,255,.14);border-color:#fff}
.flow-btn.primary{background:var(--crimson);border-color:var(--crimson)}
.flow-btn.primary:hover{background:#d8142f}

.flow-steps{display:flex;flex-direction:column;margin-top:auto;border-top:1px solid rgba(255,255,255,.14)}
.flow-step{position:relative;display:flex;align-items:center;gap:.7rem;background:none;border:0;border-bottom:1px solid rgba(255,255,255,.08);color:rgba(255,255,255,.62);padding:.5rem 1.2rem;text-align:left;cursor:pointer;font:600 .88rem/1.2 var(--head)}
.flow-step:last-child{border-bottom:0}
.flow-step b{flex:none;width:1.5rem;height:1.5rem;display:grid;place-items:center;border:1px solid rgba(255,255,255,.3);border-radius:50%;font-size:.78rem;color:rgba(255,255,255,.6)}
.flow-step:hover{color:#fff}
.flow-step[aria-current="step"]{color:#fff;background:rgba(192,17,43,.22)}
.flow-step[aria-current="step"] b{background:var(--crimson);border-color:var(--crimson);color:#fff}
.flow-step[aria-current="step"]::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#FF4A63}

@media (max-width:1000px){
  .flow{grid-template-columns:1fr}
  .flow-side{border-left:0;border-top:1px solid rgba(255,255,255,.14)}
  .flow-cap{min-height:8rem}
  .flow-steps{display:grid;grid-template-columns:repeat(4,1fr)}
  .flow-step{flex-direction:column;align-items:flex-start;gap:.3rem;border-right:1px solid rgba(255,255,255,.08);padding:.7rem .7rem}
  .flow-svg{min-width:760px;max-height:none}
  .flow-head{flex-direction:column;align-items:flex-start}
}
