/* Text and reading order describe the flow independently of its arrows. */
.v8-flow {
  --flow-mark: var(--blue-dark);
  --flow-line: var(--line-dark);
  --flow-muted: var(--muted);
  min-width: 0;
  margin: 0;
  padding: 16px 0;
  border-block: 1px solid var(--flow-line);
}

.v8-flow--dark {
  --flow-mark: var(--lime);
  --flow-line: var(--line-light);
  --flow-muted: #c6d0d6;
}

.v8-flow figcaption {
  margin-bottom: 16px;
  color: var(--flow-mark);
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .02em;
}

.v8-flow svg {
  display: block;
  fill: none;
  stroke: var(--flow-mark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v8-flow :is(ol, ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v8-flow-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.v8-flow-hero,
.service-hero > .v8-flow {
  position: relative;
  z-index: 1;
  min-width: 0;
  align-self: center;
}

.v8-flow-exchange {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 2vw, 28px);
  align-items: center;
  text-align: center;
}

.v8-flow-node {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}

.v8-flow-node svg {
  width: clamp(37px, 6vw, 68px);
  height: auto;
}

.v8-flow-lanes {
  display: grid;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.v8-flow-lanes svg {
  width: 100%;
  height: 13px;
  margin-top: 2px;
  stroke-width: 2;
}

.v8-flow-hero .v8-flow-details > summary {
  padding: 12px 0;
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v8-flow-steps {
  display: grid;
  gap: 16px;
}

.v8-flow-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 39px;
}

.v8-flow-steps > li > svg {
  width: 32px;
  height: 32px;
}

.v8-flow-steps > li:not(:last-child)::after {
  content: "↓" / "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 32px;
  color: var(--flow-mark);
  font-size: 15px;
  line-height: 16px;
  text-align: center;
}

.v8-flow-steps strong,
.v8-flow-steps small {
  display: block;
}

.v8-flow-steps strong {
  font-size: 16px;
  line-height: 1.25;
}

.v8-flow-steps small {
  margin-top: 2px;
  color: var(--flow-muted);
  font-size: 14px;
  line-height: 1.35;
}

.v8-flow-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 22px clamp(20px, 4vw, 64px);
}

.v8-flow-case-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v8-flow-case-proof figure { margin: 0; }
.v8-flow-case-proof .sc-ui-screen { aspect-ratio: 16 / 10; }
.v8-flow-case-proof figcaption { margin-top: 5px; font-size: 13px; }

@media (max-width: 760px) {
  .v8-flow-case-layout { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .v8-flow-lanes { font-size: 13px; }
  .v8-flow-exchange { gap: 8px; }
}
