/* site/model/docs.html -- a long-form prose page, unlike every other page
   family here (tables/grids/pickers). style.css's own typography stops at
   headings inside .page-header and .home-card, so this file only adds what
   a multi-section article needs: a readable measure, spaced-out <section>s,
   and a display area for KaTeX-rendered equations (see docs_equations.js). */

.docs-article {
  max-width: 720px;
  margin: 0 auto;
}

.docs-lede {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.docs-article section {
  margin-top: 2rem;
}

.docs-article h2 {
  font-size: 1.3rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.docs-article h3 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.4rem;
  color: var(--text-primary);
}

.docs-article p {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.docs-article p:last-child {
  margin-bottom: 0;
}

/* A KaTeX display equation (see docs_equations.js). overflow-x is a safety
   net for a long \begin{aligned} block on narrow phone widths, so it
   scrolls instead of breaking the page's own layout. */
.docs-formula {
  overflow-x: auto;
  padding: 0.25rem 0;
  color: var(--text-primary);
}
