/* Layout for the rendered guide content. */
.guide-page h1 { margin-top: 0; }
.guide-page h2 { font-size: 1.25rem; margin-top: 2rem; }
.guide-page h3 { font-size: 1.0625rem; margin-top: 1.5rem; }
/* comrak's heading anchor, an empty link after the heading's text: a # shown on hover or focus. */
.guide-page .anchor { margin-left: 0.4rem; text-decoration: none; }
.guide-page .anchor::before { content: "#"; color: var(--muted); opacity: 0; }
.guide-page :is(h1, h2, h3, h4):hover .anchor::before, .guide-page .anchor:focus::before { opacity: 1; }

.guide-page pre {
  overflow-x: auto;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.guide-page pre code { overflow-wrap: normal; }
.guide-page :not(pre) > code {
  padding: 0.1em 0.3em;
  background: var(--code-bg, var(--card));
  border-radius: 0.25rem;
  font-size: 0.9em;
}
/* The guide's tables hold prose, so their cells wrap, unlike the pool's figures; .scroll still lets a wide one
   scroll on a phone. */
.guide-page th, .guide-page td { white-space: normal; vertical-align: top; }
.guide-page td code { white-space: nowrap; }

.guide-source { margin-top: 2.5rem; font-size: 0.875rem; }
