/*
 * The guide. A reading page, not an app screen, so it is the one column here sized by MEASURE
 * rather than by what fits: .auth-page's 26rem is right for a login form and wrong for prose,
 * where a line that short breaks the eye's return sweep.
 *
 * It is also the only page in the app a signed-out stranger reaches from pretor.ar, so it has to
 * stand on its own with no nav above it.
 */

.guide {
  max-inline-size: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.guide__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-subtle, inherit);
}

.guide__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide__section p {
  line-height: 1.65;
}

/* Numbered because the order is the point: a lawyer who fills in the firm profile before proving
   their Telegram has nothing to provision against. */
.guide__steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-inline-start: 1.5rem;
  list-style: decimal;
}

.guide__steps h3 {
  margin-block-end: 0.35rem;
}

.guide__examples {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-inline-start: 1.25rem;
  list-style: disc;
}

/* The one screenshot on the page (PRE-90): what t.me/PretorBot opens on. Bordered rather than
   floated free, because it is a capture of another product's screen sitting inside ours and the
   frame is what says so; the caption says the rest. */
.guide__shot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.guide__shot img {
  inline-size: 100%;
  block-size: auto;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.guide__shot figcaption {
  font-size: 0.875rem;
  color: var(--color-text-subtle, inherit);
}

.guide__note {
  border-inline-start: 3px solid var(--color-border);
  padding-inline-start: 1rem;
}

.guide__map {
  display: grid;
  gap: 0.35rem 1.5rem;
}

.guide__map dt {
  font-weight: 600;
}

.guide__map dd {
  margin-inline-start: 0;
  margin-block-end: 0.75rem;
}

/* Two columns only where there is room for the term and its line to sit side by side; below that
   the term stacks over its definition, which is how a <dl> reads on a phone anyway. */
@media (width >= 40rem) {
  .guide__map {
    grid-template-columns: minmax(8rem, max-content) 1fr;
  }

  .guide__map dd {
    margin-block-end: 0;
  }
}

.guide__footer {
  border-block-start: 1px solid var(--color-border);
  padding-block-start: 1.5rem;
}
