/* Request-path diagram for generated case-study pages. */
.reqflow {
  margin: 28px 0;
  padding: 0;
}
.reqflow-title {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.reqflow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* the spine */
.reqflow-list::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border);
}
.reqflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 18px;
  padding: 0 0 22px 0;
  margin: 0;
}
.reqflow-step:last-child {
  padding-bottom: 0;
}
.reqflow-n {
  grid-row: 1 / span 2;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font:
    11px ui-monospace,
    monospace;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.reqflow-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  align-self: center;
  min-height: 31px;
  display: flex;
  align-items: center;
}
.reqflow-note {
  grid-column: 2;
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.7;
  margin-top: 4px;
}
.reqflow-note code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* A step that isn't a network hop — drawn off the main path. */
.reqflow-step.is-aside .reqflow-n {
  border-style: dashed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.reqflow-step.is-aside .reqflow-name {
  color: var(--text-muted);
  font-weight: 550;
}
.reqflow-step.is-aside .reqflow-note {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .reqflow-step {
    grid-template-columns: 26px 1fr;
    column-gap: 14px;
  }
  .reqflow-list::before {
    left: 12.5px;
  }
  .reqflow-n {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .reqflow-name {
    font-size: 14px;
    min-height: 26px;
  }
  .reqflow-note {
    font-size: 13px;
  }
}
