.guide-page .docs-shell {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.guide-page .docs-main {
  max-width: 49rem;
}

.guide-page .docs-hero {
  border-top: 2px solid var(--accent);
  padding: 2.6rem 0 3rem;
}

.guide-page .docs-hero h1 {
  max-width: 23ch;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.12;
}

.guide-page .docs-section {
  padding: 2.8rem 0;
}

.guide-page .docs-section h2 {
  max-width: 30ch;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.guide-page .docs-section p {
  margin: 1.2rem 0;
  line-height: 1.85;
}

.guide-page .docs-section a:not(.button) {
  text-underline-offset: 0.2em;
}

.guide-page code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.guide-page pre {
  max-width: 100%;
  margin: 1.6rem 0;
  padding: 1.1rem;
  background: var(--bg-2);
  line-height: 1.7;
}

.guide-page pre code {
  font-size: 1em;
  overflow-wrap: normal;
}

.guide-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  gap: 0.8rem;
  margin: 2rem 0;
  padding: 0;
  counter-reset: steps;
}

.guide-flow li {
  border-top: 1px solid var(--line-strong);
  padding-top: 0.7rem;
  font-size: 0.85rem;
}

.guide-flow li::before {
  display: block;
  counter-increment: steps;
  content: "0" counter(steps);
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
}

.guide-cards {
  display: grid;
  gap: 1.5rem;
}

.guide-cards > a {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--line);
  text-decoration: none;
}

.guide-cards h3 {
  margin-top: 1rem;
  line-height: 1.4;
  font-size: 1.35rem;
}

.guide-cards .guide-link {
  color: var(--accent);
}

.guide-cards > a:hover {
  border-color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: var(--bg);
  padding: 0.7rem;
}

.skip-link:focus {
  top: 1rem;
}

.guide-page :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.guide-page section {
  scroll-margin-top: 1.2rem;
}

@media (max-width: 980px) {
  .guide-page .docs-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .guide-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
