/* Public guide pages (templates/core/guides/guide.html): the hero, the visual's slot, the written sections and the
   "More guides" links, on the shared public layout (layouts/public.css). The visuals have their own stylesheets
   (step-screens.css, guide-swimlane.css, guide-models.css, guide-listing-cards.css). Tokens only. */

.guide-column {
  max-width: 720px;
  margin-inline: auto;
}

/* On wide screens the title takes the h2 size of the public scale so it fits the 720px column */
@media (min-width: 768px) {
  .guide-hero__title {
    font-size: var(--ds-type-h2-size);
    line-height: var(--ds-type-h2-leading);
    letter-spacing: var(--ds-type-h2-tracking);
  }
}

.guide-hero {
  padding-bottom: var(--ds-space-32);
}

.guide-body {
  padding-bottom: var(--ds-space-120);
}

.guide-visual {
  margin-bottom: var(--ds-space-64);
}

.guide-sections {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-48);
  max-width: 720px;
  margin-inline: auto;
}

.guide-section__heading {
  margin-bottom: var(--ds-space-16);
  color: var(--ds-text);
  font-size: var(--ds-type-h3-size);
  line-height: var(--ds-type-h3-leading);
  font-weight: 600;
}

.guide-section__text {
  color: var(--ds-text);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-leading);
}

.guide-section__text + .guide-section__text {
  margin-top: var(--ds-space-16);
}

.guide-more {
  max-width: 720px;
  margin: var(--ds-space-64) auto 0;
  padding-top: var(--ds-space-32);
  border-top: 1px solid var(--ds-border);
}

.guide-more__heading {
  margin-bottom: var(--ds-space-16);
  color: var(--ds-text);
  font-size: var(--ds-type-h3-size);
  line-height: var(--ds-type-h3-leading);
  font-weight: 600;
}

.guide-more__list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-more__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-16);
  min-height: 48px;
  padding: var(--ds-space-12) var(--ds-space-16);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-12);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-leading);
  font-weight: 500;
  text-decoration: none;
}

.guide-more__link:hover {
  background: color-mix(
    in srgb,
    var(--ds-surface),
    var(--ds-text) var(--ds-hover-tint)
  );
}

.guide-more__link:focus-visible {
  outline: 2px solid var(--ds-focus-ring);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .guide-body {
    padding-bottom: var(--ds-space-64);
  }

  .guide-visual {
    margin-bottom: var(--ds-space-48);
  }

  .guide-more {
    margin-top: var(--ds-space-48);
  }
}
