/* Documentation page. Shared tokens and components live in site.css. */
.docs { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 72px; padding-top: 72px; }
.docs-side { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 72px); overflow-y: auto; padding: 40px 0 40px; display: grid; gap: 32px; align-content: start; }
.docs-side .eyebrow { display: block; margin-bottom: 12px; }
.doc-link { display: block; padding: 9px 14px; border-radius: 10px; font-size: 15px; color: var(--ink-2); transition: background-color 200ms, color 200ms; }
.doc-link:hover { background: var(--mist); color: var(--ink); }
.doc-link[aria-current="page"] { background: var(--btn); color: var(--on-btn); }
.toc-link { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--line-strong); font-size: 14px; line-height: 1.45; color: var(--ink-2); transition: color 200ms, border-color 200ms; }
.toc-link.is-h3 { padding-left: 28px; font-size: 13px; }
.toc-link:hover { color: var(--ink); }
.toc-link.is-active { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.docs-main { padding: 56px 0 0; min-height: 80vh; }
.docs-state { padding: 80px 0; color: var(--ink-2); display: grid; gap: 16px; justify-items: start; }
.docs-menu { display: none; }

.article { max-width: 760px; font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.article > * + * { margin-top: 1.1em; }
.article h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 68px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 0.5em; text-wrap: balance; }
/* Version shown under the title of the release notes */
.article .doc-version { margin-top: 0; font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; color: var(--ink-3); }
.article h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.2; letter-spacing: -0.01em; margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line-strong); text-wrap: balance; }
.article h3 { font-size: 21px; font-weight: 600; line-height: 1.4; margin-top: 1.9em; text-wrap: balance; }
.article h4 { font-size: 17px; font-weight: 600; margin-top: 1.6em; text-wrap: balance; }
.article p, .article li { color: var(--ink-body); }
.article a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color 200ms; }
.article a:hover { text-decoration-color: var(--ink); }
.article ul, .article ol { padding-left: 1.4em; display: grid; gap: 0.4em; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li::marker { color: var(--ink-3); }
.article strong { font-weight: 600; color: var(--ink); }
.article code { font-family: var(--mono); font-size: 0.86em; background: var(--mist); padding: 2px 6px; border-radius: 6px; }
.article pre { background: var(--mist); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article pre code { background: none; padding: 0; font-size: inherit; }
.article blockquote { background: var(--mist); border-radius: 18px; padding: 20px 24px; }
.article blockquote > * + * { margin-top: 0.7em; }
.article hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2.4em 0; }
.article img { border-radius: 14px; box-shadow: var(--shadow-float); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.article th { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; font-weight: 400; color: var(--ink-3); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.article td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article td:first-child { white-space: nowrap; }
.docs-foot { margin-top: 96px; border-top: 1px solid var(--line-strong); padding: 28px 0 48px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.docs-foot span { margin-right: auto; }
.docs-foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 0; }
  .docs-side { position: static; max-height: none; padding: 24px 0 0; display: none; }
  .docs-side.is-open { display: grid; }
  .docs-menu { display: inline-flex; margin-top: 24px; justify-self: start; }
  .docs-main { padding-top: 32px; }
  .article td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .doc-link, .toc-link, .article a { transition: none; }
}
