.guide-hero {
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}

.guide-hero > p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: 12rem minmax(0, 45rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.guide-nav {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.15rem;
  border-inline-start: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

.guide-nav a {
  padding: 0.42rem 0.5rem;
  text-decoration: none;
}

.guide-nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.guide-content {
  min-width: 0;
}

.guide-content section {
  scroll-margin-top: 6rem;
}

.guide-content section + section {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.guide-content h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
}

.guide-content h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.guide-content p,
.guide-content dd {
  max-width: 65ch;
  color: var(--text);
}

.guide-content p + p {
  margin-top: 0.9rem;
}

.guide-content p a {
  color: var(--brand);
  font-weight: 650;
}

.guide-content :not(pre) > code {
  color: var(--brand);
  overflow-wrap: anywhere;
}

.guide-steps {
  margin: 1.4rem 0;
  padding-inline-start: 1.5rem;
}

.guide-steps > li {
  padding-inline-start: 0.4rem;
}

.guide-steps > li::marker {
  color: var(--brand);
  font-weight: 700;
}

.guide-steps > li + li {
  margin-top: 1.6rem;
}

.guide .copy-button {
  width: fit-content;
  min-height: 2rem;
  border: 1px solid currentColor;
  border-radius: 0.25rem;
  padding: 0.4rem 0.7rem;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
}

.guide .copy-button:hover {
  outline: 1px solid currentColor;
}

.guide-prompt {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  color: var(--brand);
}

.guide-content details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.guide-content summary {
  cursor: pointer;
  font-weight: 650;
}

.guide-content details p {
  margin: 0.8rem 0 0.2rem 1rem;
}

@media (max-width: 760px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .guide-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
    border-inline-start: 0;
    border-block: 1px solid var(--line);
    padding: 0.55rem 0;
  }

  .guide-content section {
    scroll-margin-top: 1rem;
  }
}
