/* Docs section. Loaded after style.css, landing.css, pages.css and explorer.css,
   which stay unchanged. Only what long-form pages need: a contents list, a
   readable text column, code blocks, tables, callouts, figures and pager links. */

/* Page head: the same type as the other inner pages, one step smaller so that
   long titles fit on two lines. */
body:has(#hero[hidden]) .docs #page-title{font-size:clamp(40px,4.7vw,68px);letter-spacing:-.055em;line-height:1.05;max-width:20ch}
body:has(#hero[hidden]) .docs .page-description{max-width:60ch}
body:has(#hero[hidden]) .docs .content-heading{margin-bottom:38px}

/* Two columns: contents list, then the article. */
.docs-layout{order:2;display:grid;grid-template-columns:228px minmax(0,1fr);column-gap:72px;border-top:1px solid #25303f;padding-top:36px}

.docs-nav{position:sticky;top:108px;align-self:start;max-height:calc(100svh - 128px);overflow-y:auto;padding:0 8px 24px 0;font-size:13px;line-height:1.5;scrollbar-color:#3b5479 #0c1420}
.docs-nav-toggle{display:none}
.docs-nav-group{margin:22px 0 8px;font-size:10px;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;color:#7f8d9e}
.docs-nav-group:first-child{margin-top:0}
.docs-nav ul{list-style:none;margin:0;padding:0}
.docs-nav a{display:block;padding:7px 0 7px 14px;border-left:1px solid #25303f;color:#a8b7c9}
.docs-nav a:hover{color:#f2f5fa;border-left-color:#697788}
.docs-nav a[aria-current=page]{color:#f2f5fa;border-left-color:#9cc8ff}
.docs-nav a:focus-visible{outline-offset:2px}

/* Article text. */
.docs-article{min-width:0;max-width:74ch;font-size:16px;line-height:1.75;color:#b5beca}
.docs-article>*:first-child{margin-top:0}
.docs-article p{margin:0 0 18px}
.docs-article h2{margin:52px 0 16px;font-size:28px;font-weight:450;letter-spacing:-.035em;line-height:1.2;color:#f2f5fa;scroll-margin-top:104px}
.docs-article h3{margin:34px 0 12px;font-size:19px;font-weight:450;letter-spacing:-.02em;line-height:1.35;color:#e3ebf5;scroll-margin-top:104px}
.docs-article ul,.docs-article ol{margin:0 0 18px;padding-left:22px}
.docs-article li{margin:0 0 8px}
.docs-article li::marker{color:#6f829a}
.docs-article strong{font-weight:500;color:#e3ebf5}
.docs-article a{color:#f2f5fa;text-decoration:underline;text-decoration-color:#697788;text-underline-offset:4px}
.docs-article a:hover{color:#9cc8ff;text-decoration-color:#9cc8ff}
.docs-article a:focus-visible{outline-offset:3px}
.docs-article code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;color:#cfe0f5;background:#0e1520;border:1px solid #1c2838;border-radius:3px;padding:1px 5px;overflow-wrap:anywhere}
.docs-article pre{margin:0 0 22px;padding:16px 18px;background:#0a0f17;border:1px solid #25303f;border-radius:4px;overflow-x:auto;font-size:13px;line-height:1.65;scrollbar-color:#3b5479 #0c1420}
.docs-article pre:focus-visible{outline:2px solid #9cc8ff;outline-offset:3px}
.docs-article pre code{display:block;width:max-content;min-width:100%;padding:0;border:0;background:none;font-size:inherit;color:#cfe0f5;white-space:pre;overflow-wrap:normal}
.docs-article blockquote{margin:0 0 22px;padding:2px 0 2px 18px;border-left:2px solid #43536a;color:#d2e2f6}
.docs-article blockquote p{margin:0 0 10px}
.docs-article blockquote p:last-child{margin-bottom:0}
.docs-article dl{margin:0 0 22px}
.docs-article dt{margin:16px 0 4px;color:#e3ebf5;font-weight:500}
.docs-article dd{margin:0}

/* "On this page" list under the head of long pages. */
.docs-toc{margin:0 0 34px;padding:16px 0;border-top:1px solid #1c2838;border-bottom:1px solid #1c2838;font-size:13px;line-height:1.6}
.docs-toc p{margin:0 0 8px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#7f8d9e}
.docs-article .docs-toc ul{display:flex;flex-wrap:wrap;gap:4px 22px;list-style:none;margin:0;padding:0}
.docs-article .docs-toc li{margin:0}
.docs-article .docs-toc a{color:#a8b7c9;text-decoration:none}
.docs-article .docs-toc a:hover{color:#9cc8ff}

/* Callouts: a plain note, and a stated limit. */
.docs-note,.docs-limit{margin:0 0 24px;padding:4px 0 4px 18px;border-left:2px solid #9cc8ff;color:#d2e2f6;font-size:15px;line-height:1.7}
.docs-limit{border-left-color:#deb0bb}
.docs-article .docs-note p,.docs-article .docs-limit p{margin:0 0 10px}
.docs-article .docs-note p:last-child,.docs-article .docs-limit p:last-child{margin-bottom:0}
.docs-label{display:block;margin-bottom:4px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#9cc8ff}
.docs-limit .docs-label{color:#deb0bb}

/* Tables scroll inside their own box; the page never scrolls sideways. */
.docs-table{margin:0 0 24px;max-width:100%;overflow-x:auto;border-top:1px solid #25303f;border-bottom:1px solid #25303f;scrollbar-color:#3b5479 #0c1420}
.docs-table:focus-visible{outline:2px solid #9cc8ff;outline-offset:3px}
.docs-table table{width:100%;min-width:0;font-size:14px;line-height:1.6}
.docs-table.wide table{min-width:620px}
.docs-table th{padding:12px 18px 12px 0;white-space:normal;vertical-align:bottom}
.docs-table td{padding:13px 18px 13px 0;color:#b5beca}
.docs-table th:last-child,.docs-table td:last-child{padding-right:0}
.docs-table tbody th{font-weight:450;font-size:14px;color:#e3ebf5;border-bottom:1px solid #182536;vertical-align:top;white-space:normal}
.docs-table tbody tr:last-child th{border-bottom:0}

/* Figures with inline SVG. Drawn narrow so the labels stay readable on a phone. */
.docs-figure{margin:6px 0 28px;padding:22px 18px 16px;background:#080c13;border:1px solid #1c2838;border-radius:4px}
.docs-figure svg{width:100%;max-width:470px;height:auto;margin:0 auto}
.docs-figure figcaption{margin-top:14px;font-size:13px;line-height:1.6;color:#8c9eb6;text-align:center}

/* Landing page: one block per audience, and the list of all pages. */
.docs-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 34px;margin:0 0 12px;border-top:1px solid #25303f}
.docs-map>div{min-width:0;padding:24px 0 6px}
.docs-map>div+div{border-left:1px solid #25303f;padding-left:28px}
.docs-article .docs-map h2{margin:0 0 10px;font-size:20px}
.docs-article .docs-map p{font-size:14px;line-height:1.7;color:#a2afc1;margin-bottom:12px}
.docs-article .docs-map ol{font-size:14px;line-height:1.6;padding-left:19px}
.docs-article .docs-map li{margin-bottom:7px}
.docs-article.docs-home{max-width:none}
.docs-home>p,.docs-home>h2,.docs-home>.docs-limit,.docs-home>.docs-note,.docs-home>ul{max-width:74ch}
.docs-article .docs-pages{list-style:none;margin:0 0 24px;padding:0;border-top:1px solid #25303f}
.docs-article .docs-pages li{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:8px 32px;margin:0;padding:14px 0;border-bottom:1px solid #182536;font-size:14px;line-height:1.6}
.docs-pages span{color:#a2afc1}

/* Previous and next page. */
.docs-pager{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:56px;padding-top:26px;border-top:1px solid #25303f;font-size:14px;line-height:1.5}
.docs-article .docs-pager a{display:block;min-height:44px;padding:4px 0;text-decoration:none;color:#f2f5fa}
.docs-article .docs-pager a:hover{color:#9cc8ff}
.docs-pager span{display:block;margin-bottom:5px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#7f8d9e}
.docs-pager .next{grid-column:2;text-align:right}
.docs-source{margin-top:34px;font-size:12px;line-height:1.7;color:#8391a4}

@media(max-width:1100px){.docs-layout{column-gap:48px;grid-template-columns:208px minmax(0,1fr)}.docs-map{gap:0 24px}.docs-map>div+div{padding-left:22px}}
@media(max-width:900px){
 .docs-layout{display:block;padding-top:22px}
 .docs-nav{position:static;max-height:none;overflow:visible;margin:0 0 30px;padding:0 0 18px;border-bottom:1px solid #25303f}
 .docs-nav ul{columns:2;column-gap:28px}
 .docs-nav li{break-inside:avoid}
 .docs-nav a{padding:9px 0 9px 14px}
 /* With docs.js the list folds behind a button; without it the list stays open. */
 .docs-nav.is-collapsible .docs-nav-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:10px 14px;border:1px solid #43536a;border-radius:3px;background:none;color:#f2f5fa;font-size:13px}
 .docs-nav.is-collapsible .docs-nav-toggle::after{content:"+";font-size:18px;line-height:1;color:#9cc8ff}
 .docs-nav.is-collapsible .docs-nav-toggle[aria-expanded=true]::after{content:"\2212"}
 .docs-nav.is-collapsible .docs-nav-list{display:none;padding-top:20px}
 .docs-nav.is-collapsible[data-open] .docs-nav-list{display:block}
 .docs-nav.is-collapsible{padding-bottom:0;border-bottom:0}
 .docs-nav.is-collapsible[data-open]{padding-bottom:18px;border-bottom:1px solid #25303f}
 .docs-map{display:block}
 .docs-map>div{padding:22px 0 4px}
 .docs-map>div+div{border-left:0;border-top:1px solid #25303f;padding-left:0}
}
/* Wide tables become stacked blocks on narrow screens; each cell names its column. */
@media(max-width:700px){
 .docs-table.wide{overflow:visible}
 .docs-table.wide table{display:block;min-width:0}
 .docs-table.wide thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .docs-table.wide tbody,.docs-table.wide tr{display:block}
 .docs-table.wide tr{padding:16px 0;border-bottom:1px solid #182536}
 .docs-table.wide tbody tr:last-child{border-bottom:0}
 .docs-table.wide tbody th,.docs-table.wide td{display:block;padding:0;border:0}
 .docs-table.wide tbody th+td,.docs-table.wide td+td{margin-top:10px}
 .docs-table.wide tbody th::before,.docs-table.wide td::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:10px;font-weight:400;line-height:1.5;letter-spacing:.08em;text-transform:uppercase;color:#7f8d9e}
}
@media(max-width:600px){
 body:has(#hero[hidden]) .docs #page-title{font-size:clamp(34px,10vw,46px);line-height:1.07}
 body:has(#hero[hidden]) .docs .content-heading{margin-bottom:26px}
 .docs-article{font-size:15px;line-height:1.75}
 .docs-article h2{margin-top:42px;font-size:24px}
 .docs-article h3{font-size:18px}
 .docs-article pre{padding:14px;font-size:12px}
 .docs-note,.docs-limit{font-size:14px}
 .docs-table table{font-size:13px}
 .docs-table th,.docs-table td{padding-right:12px}
 .docs-figure{padding:16px 10px 12px}
 .docs-nav ul{columns:1}
 .docs-article .docs-pages li{display:block}
 .docs-pages span{display:block;margin-top:3px}
 .docs-pager{grid-template-columns:1fr;gap:6px}
 .docs-pager .next{grid-column:1;text-align:left}
}
