/* Documentation extends the shared site palette and typography. */
.docs-page { --docs-gap: clamp(28px, 3.3vw, 56px); }
.docs-page [hidden] { display: none !important; }
.docs-page .head-inner { max-width: 1440px; }
.docs-page .site-nav .docs-current { color: var(--ink); }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 72ch) 180px; gap: var(--docs-gap); max-width: 1480px; padding: 0 32px; margin: 0 auto; justify-content: center; }
.docs-sidebar { position: sticky; top: 100px; align-self: start; height: calc(100dvh - 120px); overflow-y: auto; padding: 0 20px 20px 0; margin-top: 38px; border-right: 1px solid var(--rule); }
.docs-menu > summary { display: none; }
.docs-menu > .docs-nav { display: block; }
.docs-menu::details-content { content-visibility: visible; }
.docs-nav .nav-group { margin: 24px 0 8px 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); }
.docs-nav .nav-group:first-child { margin-top: 0; }
.docs-nav ul, .docs-toc ul { list-style: none; padding: 0; margin: 0; }
.docs-nav a { display: block; padding: 6px 12px; margin: 2px 0; font-size: 14px; color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--ink); background: var(--paper-deep); }
.docs-nav a[aria-current] { background: var(--qtype-bg); border-left-color: var(--indigo); color: var(--indigo); }
.docs-sidebar-source { display: flex; justify-content: space-between; border-top: 1px solid var(--rule); margin: 26px 12px 0; padding-top: 18px; font-size: 12px; color: var(--ink-soft); text-decoration: none; }
.docs-article { min-width: 0; padding: 48px 0 28px; }
.docs-article:focus { outline: none; }
.docs-eyebrow { display: flex; gap: 12px; align-items: center; font: 11px var(--mono); color: var(--ink-soft); letter-spacing: .02em; }
.docs-eyebrow span { color: var(--rule-strong); }
.docs-title h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; font-weight: 550; margin: 18px 0; font-variation-settings: "wdth" 105; }
.docs-title .docs-lead { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
.docs-title { padding-bottom: 32px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.docs-article section { margin-top: 42px; }
.docs-article section:first-of-type { margin-top: 0; }
.docs-article h2 { font-size: 25px; font-weight: 550; letter-spacing: -.025em; line-height: 1.3; margin-bottom: 18px; }
.docs-article h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.docs-article h2, .docs-article h3, #main-content { scroll-margin-top: 100px; }
.docs-article p, .docs-article li, .docs-article dd { color: var(--body-copy); }
.docs-article p + p { margin-top: 14px; }
.docs-article ul, .docs-article ol { padding-left: 24px; margin: 16px 0; }
.docs-article li { padding-left: 3px; margin: 9px 0; }
.docs-article strong { color: var(--ink); font-weight: 600; }
.docs-article :not(pre) > code { background: var(--paper-deep); padding: 2px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.docs-start { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-decoration: none; padding: 24px; margin-top: 24px; border: 1px solid var(--rule-strong); background: var(--paper-deep); }
.docs-start:hover { border-color: var(--indigo); }
.docs-start small { display: block; font: 10px var(--mono); letter-spacing: .1em; color: var(--indigo); }
.docs-start strong { display: block; margin: 9px 0 6px; font-size: 20px; line-height: 1.35; letter-spacing: -.02em; }
.docs-start span > span { font-size: 14px; color: var(--ink-soft); }
.docs-start > b { color: var(--indigo); font-size: 28px; font-weight: 400; }
.docs-types { margin-bottom: 22px; }
.docs-types > div { display: grid; grid-template-columns: 85px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.docs-types dd { font-size: 15px; }
.docs-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.docs-guide-grid > a { display: block; padding: 20px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.docs-guide-grid strong { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.docs-guide-grid strong span { color: var(--ink-soft); }
.docs-guide-grid a:hover strong { color: var(--indigo); }
.docs-guide-grid p { font-size: 14px; line-height: 1.6; margin-top: 7px; color: var(--ink-soft); }
.docs-note { padding: 18px 20px; border-left: 2px solid var(--indigo); background: var(--paper-deep); margin: 24px 0; }
.docs-note > strong { font-size: 14px; }
.docs-note p { font-size: 14px; margin-top: 6px; }
.docs-code { border: 1px solid var(--rule); background: var(--console); margin: 20px 0; min-width: 0; }
.docs-code figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; padding: 8px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); font: 11px var(--mono); }
.docs-code pre { margin: 0; padding: 20px; max-width: 100%; overflow: auto; color: var(--console-text); font: 13px/1.8 var(--mono); tab-size: 2; }
.docs-code pre code { font: inherit; }
.docs-code .copy { position: static; color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 3px; background: transparent; padding: 5px 10px; font: inherit; cursor: pointer; }
.docs-code .copy:hover { color: var(--ink); border-color: var(--rule-strong); }
.docs-endpoints dt { margin-top: 20px; }
.docs-endpoints dd { margin-top: 6px; font-size: 14px; }
.docs-toc { font-size: 12px; }
.docs-toc > p { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.docs-toc a { display: block; color: var(--ink-soft); text-decoration: none; padding: 5px 0; line-height: 1.5; }
.docs-toc a:hover { color: var(--indigo); }
.docs-toc-wide { position: sticky; top: 116px; align-self: start; margin-top: 51px; max-height: calc(100dvh - 140px); overflow: auto; }
.docs-toc .docs-top { border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 14px; }
.docs-toc-inline { display: none; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--rule); margin-top: 56px; padding-top: 24px; }
.docs-pager a { text-decoration: none; font-size: 15px; }
.docs-pager a:last-child { text-align: right; }
.docs-pager a > span:first-child { display: block; color: var(--ink-soft); font: 11px var(--mono); margin-bottom: 7px; }
.docs-footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.docs-footer a { color: var(--ink-soft); }
.docs-skip { position: fixed; z-index: 100; top: 8px; left: 12px; padding: 10px 16px; background: var(--paper); transform: translateY(-200%); }
.docs-skip:focus { transform: translateY(0); }
.docs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1200px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 72ch); }
  .docs-toc-wide { display: none; }
  .docs-toc-inline { display: block; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
  .docs-toc-inline ul { display: flex; flex-wrap: wrap; gap: 2px 22px; padding: 0; margin: 0; }
  .docs-toc-inline li { margin: 0; padding: 0; }
}
@media (max-width: 899px) {
  .docs-layout { display: block; max-width: 800px; padding: 0 24px; }
  .docs-sidebar { position: static; height: auto; overflow: visible; padding: 0; margin: 0; border: 0; }
  .docs-menu { border-bottom: 1px solid var(--rule); }
  .docs-menu > summary { display: flex; justify-content: space-between; padding: 16px 0; cursor: pointer; font-size: 13px; font-weight: 500; }
  .docs-menu > summary::-webkit-details-marker { display: none; }
  .docs-menu:not([open]) > .docs-nav { display: none; }
  .docs-menu::details-content { content-visibility: hidden; }
  .docs-menu[open]::details-content { content-visibility: visible; }
  .docs-nav { padding: 8px 0 20px; }
  .docs-sidebar-source { display: none; }
  .docs-article { padding-top: 32px; }
  .docs-page .site-nav { display: flex; margin-left: auto; gap: 18px; }
  .docs-page .head-inner { gap: 20px; }
  .docs-page .head-source { display: none; }
}
@media (max-width: 500px) {
  .docs-layout { padding: 0 20px; }
  .docs-page .head-inner { width: calc(100% - 32px); gap: 12px; flex-wrap: nowrap; }
  .docs-page .brand-name { font-size: 17px; }
  .docs-page .brand { gap: 8px; }
  .docs-page .brand-mark { width: 30px; height: 30px; }
  .docs-page .brand-mark img { width: 26px; height: 26px; }
  .docs-page .site-nav { gap: 12px; }
  .docs-page .site-nav a { font-size: 12px; }
  .docs-page .head-actions { margin-left: 0; }
  .docs-eyebrow { font-size: 10px; gap: 8px; }
  .docs-guide-grid { grid-template-columns: 1fr; }
  .docs-start { padding: 20px; }
  .docs-code pre { padding: 16px; font-size: 12px; }
  .docs-types > div { grid-template-columns: 65px 1fr; gap: 12px; }
}
/* Entrance, matching the homepage and download page. rise-in and the
   reduced-motion override live in /css/site.css. */
.docs-title > *, .docs-toc-inline, .docs-article > section:first-of-type, .docs-sidebar, .docs-toc-wide { animation: rise-in 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.docs-sidebar { animation-delay: 60ms; }
.docs-title > :nth-child(1) { animation-delay: 30ms; }
.docs-title > :nth-child(2) { animation-delay: 90ms; }
.docs-title > :nth-child(3) { animation-delay: 140ms; }
.docs-toc-inline, .docs-toc-wide { animation-delay: 190ms; }
.docs-article > section:first-of-type { animation-delay: 230ms; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
