/* codemany.com reading pages: /faq, /changelog, /terms and /privacy.
 * The only pages allowed to scroll vertically (the no-scroll gate checks them with "doc": no sideways
 * scroll, nothing clipped). Same tokens, grid and footer as the one-screen pages. */
body.doc-page { height: auto; min-height: 100vh; min-height: 100svh; }
.doc { display: block; padding-top: clamp(24px, 6vh, 56px); padding-bottom: clamp(32px, 8vh, 72px); }
.doc article { max-width: 76ch; }
.doc h1 { margin: 8px 0 4px; font-size: clamp(24px, 4vh, 32px); line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
.doc .updated { margin: 0 0 24px; font-size: 12px; color: var(--muted-foreground); }
.doc h2 {
  margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 15px; font-weight: 700; letter-spacing: -.02em; scroll-margin-top: 16px;
}
.doc h3 { margin: 18px 0 6px; font-size: 13px; font-weight: 500; }
.doc p, .doc li, .doc dd { color: #3f3f46; }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin: 3px 0; }
.doc li::marker { color: var(--muted-foreground); }
.doc b, .doc strong { color: var(--foreground); font-weight: 500; }
.doc a { text-underline-offset: 3px; }
.doc pre {
  margin: 0 0 12px; padding: 10px 12px; overflow-x: auto; font: inherit; font-size: 12px; line-height: 1.6;
  background: var(--muted); border: 1px solid var(--border); border-radius: 6px;
}
.doc pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
.doc table { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 13px; }
.doc th, .doc td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { font-weight: 500; }
.doc td { color: #3f3f46; }

/* table of contents */
.doc .toc { margin: 12px 0 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.doc .toc li { margin: 0; }
.toc a { color: var(--muted-foreground); }
.toc a:hover { color: var(--foreground); }

/* changelog: one block per release */
.release { margin: 0; }
.release h2 { display: flex; align-items: baseline; gap: 12px; }
.release h2 time { font-size: 12px; font-weight: 400; color: var(--muted-foreground); }

@media (max-width: 600px) {
  .doc h2 { margin-top: 24px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { padding: 6px 0; border-bottom: 1px solid var(--border); }
  .doc td { border: 0; padding: 0; }
  .doc td:first-child { color: var(--foreground); font-weight: 500; }
}
