/* Setup: under the section's head the steps from the guide stand in the lead's column, and the real screenshot of one
   step under the title, held in view while its steps pass (the frame's place for a picture: at the left of the words it
   belongs to). The screenshot stands in a Product window's frame, as the page's drawn windows do, cut to whole rows of
   the screen it shows. Below 900 px it stands inside its step; on a phone it takes the screen's width and the screen's
   head alone, so its words read. */
.ig-setup-body { display: grid; grid-template-columns: minmax(0, var(--ig-main)) minmax(0, 1fr); column-gap: var(--ig-gap); align-items: start; }
.ig-setup-steps { grid-column: 2; grid-row: 1; display: grid; gap: var(--space-6); min-width: 0; }
.ig-setup-aside { grid-column: 1; grid-row: 1; }
.ig-setup-list p { margin: 0; max-width: var(--measure); }
.ig-setup-copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4);
  padding-left: var(--space-7); }
.ig-setup-status { margin: 0; }
.ig-setup-status:empty { display: none; }
.ig-setup-steps > .tool { margin-top: var(--space-4); padding-left: var(--space-7); }
.ig-setup-aside { position: sticky; top: calc(var(--space-9) - var(--space-2)); }
.ig-setup-shot { margin: 0; display: grid; gap: var(--space-3); }
.ig-setup-window { padding: var(--space-4); }
.ig-setup-shot img { display: block; width: 100%; height: auto; }
.ig-setup-shot--inline { display: none; }
.ig-setup-shot figcaption { margin: 0; }

@media (max-width: 1199px) {
  .ig-setup-body { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: var(--space-6); }
  .ig-setup-steps { grid-column: 1; max-width: 40em; }
  .ig-setup-aside { grid-column: 2; }
  .ig-setup-body--steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  /* below 900 px the screenshot stands in its own step */
  .ig-setup-body { grid-template-columns: minmax(0, 1fr); }
  .ig-setup-aside { display: none; }
  .ig-setup-shot--inline { display: block; align-self: stretch; justify-self: stretch; max-width: 30rem; margin: var(--space-4) 0 0; }   /* a step sets its parts at their own width, and a window has none of its own */
}
@media (max-width: 599px) {
  .ig-setup-copy, .ig-setup-steps > .tool { padding-left: 0; }
  /* out of the step's indent, across the screen, over the steps' path */
  .ig-setup-shot--inline { position: relative; z-index: var(--layer-raised); max-width: none; margin-inline-start: calc(-1 * (var(--node) + var(--space-4))); }
  .ig-setup-window { padding: var(--space-3) var(--space-2); }
}

/* With no screenshot the steps stand across the container in rows (the parts' steps--rows), their Copy and the
   tool under them at the left edge */
.ig-setup-body--steps { grid-template-columns: minmax(0, 1fr); }
.ig-setup-body--steps > .ig-setup-steps { grid-column: 1; max-width: none; }
.ig-setup-body--steps .ig-setup-copy, .ig-setup-body--steps .ig-setup-steps > .tool { padding-left: 0; }
.ig-setup-body--steps .ig-setup-steps > .tool { max-width: calc(var(--measure) * 1.4); }
.ig-setup-foot { margin: 0; max-width: var(--measure); color: var(--ink-secondary); font: var(--t-body); text-wrap: pretty; }
.ig-setup-body:not(.ig-setup-body--steps) .ig-setup-foot { padding-left: var(--space-7); }
@media (max-width: 599px) { .ig-setup-body .ig-setup-foot { padding-left: 0; } }
