/* How a call moves, one lane a system (.callpath; drew.json): twelve columns, a lane's name on a row of its own and
   its parts on the rows under it, each part a share of the row that its lane's count gives it (--span), packed from
   the left (a part keeps its lane's row and takes the next free place in it). A lane's line runs along the top of
   its parts, grey for the other system and violet for Synthflow, and each part's number sits on it. Under 900 px
   the lanes turn into one path down the page in the call's order: each part its number on the path's line, its
   system's name, its head and its words. */
.callpath { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: var(--space-5); margin: 0; }
.callpath-names, .callpath-steps { display: contents; }
.callpath-steps { margin: 0; padding: 0; list-style: none; }
.callpath-name { grid-column: 1 / -1; grid-row: var(--row); display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--ink-secondary); font: var(--t-label); letter-spacing: 0; }
.callpath-name:not(:first-child) { margin-top: var(--space-6); }
.callpath-name--ours { color: var(--ink-accent); }
.callpath-name img { flex: none; }
.callpath-step { grid-column: span var(--span); grid-row: var(--row); display: grid; align-content: start; justify-items: start; row-gap: var(--space-2); min-width: 0;
  padding: 0 var(--space-6) 0 0; border-top: 1px solid var(--border-strong); }
.callpath-step--ours { border-top-color: var(--accent); }
.callpath-num { display: grid; place-items: center; width: var(--space-5); height: var(--space-5); margin-top: calc(var(--space-5) / -2); border: 1px solid var(--border-strong); border-radius: 50%;
  background: var(--surface-page); color: var(--ink-secondary); font: var(--t-caption); font-variant-numeric: tabular-nums; }
.callpath-step--ours > .callpath-num { border-color: var(--accent); color: var(--ink-accent); }
.callpath-head { margin: var(--space-2) 0 0; color: var(--ink-primary); text-wrap: balance; overflow-wrap: break-word; }
.callpath-who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.callpath-what { margin: 0; max-width: var(--measure); color: var(--ink-secondary); font: var(--t-body); text-wrap: pretty; overflow-wrap: break-word; }
.callpath-what code { font: var(--t-code-m); letter-spacing: var(--t-code-m-tracking); overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .callpath { display: block; }
  .callpath-names { display: none; }
  .callpath-steps { display: grid; row-gap: 0; }
  .callpath-step { position: relative; grid-column: auto; grid-row: auto; row-gap: var(--space-1); padding: 0 0 var(--space-6) var(--space-7); border-top: 0; }
  .callpath-step::before { content: ""; position: absolute; left: calc(var(--space-5) / 2); top: var(--space-5); bottom: 0; border-left: 1px solid var(--border-strong); }
  .callpath-step--ours::before { border-left-color: var(--accent); }
  .callpath-step:last-child { padding-bottom: 0; }
  .callpath-step:last-child::before { content: none; }
  .callpath-num { position: absolute; left: 0; top: 0; margin: 0; }
  .callpath-who { position: static; width: auto; height: auto; overflow: visible; clip-path: none; margin: 0; color: var(--ink-secondary); font: var(--t-label-s); letter-spacing: 0; }
  .callpath-step--ours > .callpath-who { color: var(--ink-accent); }
  .callpath-head { margin-top: 0; }
}
@media (forced-colors: active) { .callpath-step, .callpath-num { border-color: CanvasText; } }

/* One more fact of the section (which contacts it calls) beside the setting that starts a call: a part of the section
   under its own head, its words in the page's main column and the setting, a small window, in the rail */
.ig-moves-more { display: grid; grid-template-columns: minmax(0, var(--ig-main)) minmax(0, 1fr); gap: var(--space-6) var(--ig-gap); align-items: start; }
.ig-moves-words { display: grid; gap: var(--space-3); max-width: var(--measure); }
.ig-moves-words p { margin: 0; }
.ig-moves-figure { margin: 0; display: grid; gap: var(--space-3); }
.fr-words > .ig-moves-figure { max-width: 30rem; margin-top: var(--space-3); }   /* the example with no words of its own: in the head, under the lead */
.ig-moves .section-head:has(.ig-moves-figure) { align-items: start; }
.ig-moves-figure figcaption { margin: 0; }
.ig-action .product-window-head img { width: var(--icon-m); height: var(--icon-m); }
.ig-action-foot { margin: 0; padding: var(--space-3) var(--product-window-inset); border-top: 1px solid var(--border-subtle); }
/* a field of the other system's record, as its workflow editor names it: a neutral chip, since violet is Synthflow's */
.ig-token { display: inline-block; margin-right: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-xs);
  background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border-subtle); color: var(--ink-secondary); font: var(--t-label-s); }

@media (max-width: 1199px) {
  .ig-moves-more { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); column-gap: var(--space-6); }
}
@media (max-width: 899px) {
  .ig-moves-more { grid-template-columns: minmax(0, 1fr); }
  .ig-moves-figure { max-width: 30rem; }
}

/* A drawing of the call's path (moves.picture, the parts' picture): under the lanes, across the container */
.ig-moves-picture { margin-top: var(--space-7); }

/* Less material (the type's own): one more fact with no example, or an example with no words, stands alone */
.ig-moves-more--one { grid-template-columns: minmax(0, 1fr); }
.ig-moves-more--one .ig-moves-figure { max-width: 30rem; }
