.docs-intro {
  position: relative;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at top left, var(--color-sky-glass-faint), var(--color-transparent) 34%),
    radial-gradient(circle at bottom right, var(--color-accent-wash), var(--color-transparent) 38%),
    var(--color-bg);
}

.docs-intro .lead {
  margin-bottom: 28px;
}

.docs-intro-note {
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.docs-intro-note p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.docs-toc-section {
  padding-bottom: 36px;
  background: var(--color-panel);
}

.docs-toc-section .toc-nav {
  position: static;
}

.docs-reading-hint {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-soft);
}

.docs-reading-hint strong {
  color: var(--color-accent-dark);
  font-family: var(--font-display);
}

.docs-reading-hint p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.docs-article {
  background: var(--color-bg);
}

.docs-chapter {
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  border-top: 1px solid var(--color-border);
}

.docs-chapter:nth-child(even) {
  background: var(--color-panel);
}

.docs-chapter h2 {
  max-width: 680px;
}

.docs-chapter h3 {
  margin-top: 42px;
}

.docs-chapter p {
  color: var(--color-text-muted);
}

.docs-chapter li {
  color: var(--color-text-muted);
}

.chapter-number {
  display: inline-flex;
  min-width: 42px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--color-warning);
  color: var(--color-text);
  font: 750 12px/1 var(--font-mono);
}

.docs-chapter pre {
  margin-top: 26px;
  margin-bottom: 30px;
}

.docs-chapter .table-wrap {
  margin-top: 30px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-soft);
}

.docs-chapter .callout p {
  color: var(--color-text);
}

.docs-chapter .callout-title {
  font-family: var(--font-display);
}

@media (max-width: 640px) {
  .docs-reading-hint {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .docs-intro-note {
    padding: 20px;
  }

  .docs-chapter h3 {
    margin-top: 34px;
  }
}