/* ---- documentation home ------------------------------------------------ */

/* The setup path is drawn as a rule with ticks: the steps run in an order, and
   the order is the information, so the numbers sit in the margin like marks on
   the edge of a cutting mat rather than as decoration on a card. A hairline
   spine joins them so the four read as one measurement, not four items. */

.vs-docs-article .vs-docs-path ol {
  list-style: none;
  counter-reset: vs-step;
  margin: var(--space-5) 0 var(--space-8);
  padding: 0;
  max-width: var(--ms-measure-block);
}

.vs-docs-article .vs-docs-path li {
  position: relative;
  counter-increment: vs-step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  margin: 0;
  padding: 0 0 var(--space-5);
  max-width: none;
}

/* The spine runs from each tick down to the next, and stops at the last. */
.vs-docs-article .vs-docs-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.25rem;
  bottom: 0;
  left: 1.25rem;
  border-left: var(--border-hairline) solid var(--color-rule-strong);
}

.vs-docs-article .vs-docs-path li::before {
  content: counter(vs-step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.25rem;
  font-family: var(--font-label);
  font-size: var(--text-body-strong);
  font-weight: var(--text-body-strong-weight);
  color: var(--color-accent-text);
  border: var(--border-hairline) solid var(--color-rule-strong);
  background: var(--color-paper-raised);
}

.vs-docs-article .vs-docs-path li > p {
  grid-column: 2;
  margin: 0;
  max-width: var(--ms-measure);
}

.vs-docs-article .vs-docs-path li > p:first-child {
  padding-top: var(--space-1);
  font-family: var(--font-display);
  font-synthesis: none;
  font-size: var(--text-body-strong);
  line-height: var(--text-body-strong-line-height);
  font-weight: var(--ms-h3-weight);
}

.vs-docs-article .vs-docs-path li > p + p {
  margin-top: var(--space-1);
  color: var(--color-ink-muted);
}

/* ---- entry points ---- */

/* Grouped the way the site tree groups them, and captioned in the same voice,
   so the home page and the sidebar are one map drawn twice rather than two. */

.vs-docs-article .vs-docs-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-8);
  margin: var(--space-5) 0 var(--space-8);
}

.vs-docs-article .vs-docs-index-group .rubric {
  margin: 0 0 var(--space-2);
  padding-bottom: var(--space-1);
  font-family: var(--font-label);
  font-size: var(--text-meta);
  line-height: var(--text-meta-line-height);
  font-weight: var(--text-body-strong-weight);
  letter-spacing: var(--ms-rule-label-tracking);
  text-transform: uppercase;
  color: var(--color-accent-text);
  border-bottom: var(--border-hairline) solid var(--color-rule-strong);
}

.vs-docs-article .vs-docs-index-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vs-docs-article .vs-docs-index-group li {
  margin: 0;
  padding: var(--space-1) 0;
}

@media (max-width: 40rem) {
  .vs-docs-article .vs-docs-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .vs-docs-article .vs-docs-index-group li {
    padding: var(--space-2) 0;
  }
}
