@import "https://assets.elements.dev/assets/app/pages/install/style.286fa46ff60e4c56.css";


/* The same lede as /learn and /install under their titles. */
.st-lede {
  margin: 0 0 var(--space-10);
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Every step down one column, read top to bottom. Each number sits on a
   line that runs to the next one, like /install's steps, so the page reads
   as one route from the first step to the last. */
.st-list {
  list-style: none;
  margin: 0 0 var(--space-16);
  padding: 0;
}

.st-item {
  position: relative;
  padding: 0 0 var(--space-12) 52px;
}

.st-item:last-child {
  padding-bottom: 0;
}

.st-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: 6px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 35%, var(--bg));
}

.st-title {
  margin: 0 0 var(--space-3);
  padding-top: 3px;
  font-size: 1.375rem;
  font-weight: var(--weight-bold);
  line-height: 1.3;
  color: var(--ink);
}

.st-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  background: var(--accent);
  color: white;
}

/* Every line of a step reads the same: one size, one weight, one colour.
   The action comes first, on a line of its own; anything about it follows
   on the next. */
.st-do,
.st-dos li,
.st-note,
.st-intro {
  max-width: 40rem;
  font-size: 1rem;
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--ink);
}

.st-do,
.st-intro {
  margin: 0 0 var(--space-3);
}

.st-dos {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
}

/* A step with numbered parts hangs the numbers in a gutter of their own,
   and each part's text, box and screenshot line up under its text, so
   the column of numbers shows where each part starts. */
.st-body:has(.st-dos) {
  padding-left: 1.75rem;
}

.st-body:has(.st-dos) .st-dos {
  padding-left: 0;
}

.st-dos li + li {
  margin-top: var(--space-2);
}

.st-note {
  margin: 0 0 var(--space-6);
}

.st-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 var(--space-3);
  font-size: 1rem;
  color: var(--accent);
}

.st-link svg {
  width: 14px;
  height: 14px;
}

.st-line {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 var(--space-6);
  max-width: 40rem;
}

.st-action {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
}

.st-action.is-block {
  display: block;
}


.st-signup {
  max-width: 26rem;
}

/* The bar above the step: the count on the left, back, the dots and next
   in the middle, and the switch to every step on the right. */
.st-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0 0 var(--space-8);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.st-count {
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  color: var(--ink);
  white-space: nowrap;
}

/* Under the title, left-aligned with it, so the dots never move as the
   title changes length. */
.st-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* A dot per step on a line: done steps filled, the current one ringed. */
.st-dots {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-dots::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 1px;
  background: var(--rule);
}

.st-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.st-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  /* The steps ahead stay visible on a dark page too. */
  border: 1.5px solid var(--ink-faint, var(--ink-soft));
}

.st-dot.is-done i {
  background: var(--accent);
  border-color: var(--accent);
}

.st-dot.is-on i {
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, var(--bg));
}

.st-all {
  margin-left: auto;
  white-space: nowrap;
}

/* One step at a time: the others stay in the html, out of view, and the
   line joining the numbers goes with them. */
.st-list.is-one .st-item:not(.is-on) {
  display: none;
}

.st-list.is-one .st-item::before {
  display: none;
}

/* The post page's prev and next row, drawn with buttons. */
/* Out of the step's indent, so the row spans the full width like the
   title and the bar above. */
.st-item .st-step-nav {
  margin-bottom: 0;
  margin-left: -52px;
}

.st-step-nav .nav-footer-button {
  font: inherit;
  cursor: pointer;
}

.st-list:not(.is-one) .st-step-nav {
  display: none;
}

@media (max-width: 600px) {
  .st-bar {
    flex-wrap: wrap;
  }

  .st-nav {
    width: 100%;
  }

  .st-item {
    padding-left: 0;
  }

  .st-item .st-step-nav {
    margin-left: 0;
  }

  .st-num {
    position: static;
    display: inline-grid;
    margin-right: var(--space-3);
    vertical-align: middle;
  }
}

/* Text that follows a screenshot inside the same step. */
.st-after-shot {
  margin-top: var(--space-8);
}

/* One step at a time, the bar carries the step's number and title, so the
   step itself starts with its first line and sits flush with the bar. */
.st-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.st-bar .st-count {
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--ink-soft);
}

.st-bar-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: var(--weight-bold);
  line-height: 1.25;
  color: var(--ink);
}

.st-list.is-one .st-title {
  display: none;
}

.st-list.is-one .st-item {
  padding-left: 0;
}

.st-list.is-one .st-item .st-step-nav {
  margin-left: 0;
}

/* The terminal box brings its own top margin; inside a step it sits the
   same distance under its line as a screenshot does. */
.st-action.is-block .lesson-prompt {
  margin-top: 0;
}

/* A jump to a step clears the page's top bar. */
.st-item {
  scroll-margin-top: var(--space-8);
}

/* As wide as its longer label, right-aligned, so switching views does not
   move or resize it. */
.st-all {
  min-width: 9.5rem;
  text-align: right;
  font-size: 0.875rem;
}

.st-top {
  margin: calc(-1 * var(--space-8)) 0 var(--space-16);
  text-align: center;
}

.st-via {
  margin: 0 0 var(--space-8);
}

.st-via .tab {
  text-decoration: none;
}
