/* The support guides.
 *
 * Three columns inside the same 1180px wrap the rest of the site uses: the guide list, the guide,
 * and the headings within it. The middle column is the only one that must survive every width, so
 * the headings rail goes first and the list folds into a disclosure below that. Both side columns
 * are sticky under the header rather than scrolling with the page — the list is the whole index and
 * is meant to stay reachable from the bottom of a long guide.
 */
header{flex-wrap:wrap}
.docs{display:grid;grid-template-columns:236px minmax(0,1fr) 194px;gap:var(--s5);align-items:start;padding:var(--s4) 0 var(--s7)}
.docs #main{min-width:0;overflow-wrap:anywhere}
.docs [hidden]{display:none!important}
.docs-aside{position:sticky;top:96px;max-height:calc(100vh - 132px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
@supports(height:100svh){.docs-aside{max-height:calc(100svh - 132px)}}
/* Open in the markup so the list is there with no script at all; docs.js folds it away on a narrow
 * screen, where 21 links ahead of the guide would be the whole first screenful. */
.docs-drawer{padding-right:var(--s2)}
.docs-drawer>summary{display:none}
.docs-drawer[open]>summary{display:none}
.docs-nav{display:flex;flex-direction:column;align-items:stretch;gap:var(--s3)}
.docs-group{margin:0;font-size:11px;font-weight:650;letter-spacing:1.6px;text-transform:uppercase;color:var(--secondary)}
.docs-group+ul{margin-top:7px}
.docs-nav ul{display:grid;gap:1px}
.docs-nav a{display:block;padding:8px 12px;border-radius:11px;color:var(--secondary);font-size:14px;font-weight:600;line-height:1.35;text-decoration:none}
.docs-nav a:hover{color:var(--accent)}
.docs-nav a[aria-current=page]{color:var(--ink);box-shadow:var(--sink-sm)}

/* Built by docs.js, so a reader without it gets the full list instead of a box that does nothing. */
.docs-search{position:relative;display:flex;flex-direction:column;gap:var(--s2)}
.docs-search input{width:100%;min-height:42px;padding:0 14px;border:0;border-radius:var(--r-ctl);background:var(--surface);color:var(--ink);font:15px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;box-shadow:var(--sink-sm);-webkit-appearance:none;appearance:none}
.docs-search input::placeholder{color:var(--secondary)}
.docs-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.docs-results{display:grid;gap:1px;margin:0;padding:0;list-style:none}
.docs-results a{display:block;padding:8px 12px;border-radius:11px;color:var(--ink);font-size:14px;font-weight:600;text-decoration:none;box-shadow:var(--raise-sm)}
.docs-results a:hover,.docs-results a[data-active]{color:var(--accent)}
.docs-results a span{display:block;margin-top:2px;color:var(--secondary);font-size:12.5px;font-weight:500}
.docs-empty{padding:8px 12px;color:var(--secondary);font-size:13.5px}
.docs-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.docs-status.docs-empty{position:static;width:auto;height:auto;clip-path:none;white-space:normal}

.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:var(--s3);color:var(--secondary);font-size:13px;font-weight:600}
.crumbs a{color:var(--secondary);text-decoration:none}
.crumbs a:hover{color:var(--accent)}
.crumbs span{color:var(--secondary);opacity:.6}

/* `.document` already carries this site's prose: muted body text, real list markers, sunken code
 * and sculpted disclosures. Only the measure and the page padding change here. */
.doc{max-width:none;padding:0;gap:var(--s3)}
.doc h1{font-size:clamp(38px,4.4vw,54px);letter-spacing:-2.2px;margin-bottom:var(--s1)}
.doc h2{font-size:clamp(24px,2.6vw,30px);margin-top:var(--s5);scroll-margin-top:104px}
.doc h3{margin-top:var(--s3);color:var(--ink)}
.doc>.lead{font-size:18px;max-width:62ch;margin-bottom:var(--s2)}
.doc dl{display:grid;gap:var(--s3);margin:0}
.doc dt{font-size:16px;font-weight:650;color:var(--ink)}
.doc dd{margin:3px 0 0;color:var(--secondary);font-size:15.5px;line-height:1.55}
.doc figure{display:flex;flex-direction:column;gap:var(--s2);margin:var(--s2) 0}
.doc figcaption{color:var(--secondary);font-size:13.5px}

/* A settings table is the one piece of content here that has a natural minimum width, so it scrolls
 * inside its own box rather than taking the page sideways with it. */
.doc-table{overflow-x:auto;overscroll-behavior-x:contain;padding:var(--s3);border-radius:var(--r-ctl);box-shadow:var(--raise-sm)}
.doc-table table{width:100%;border-collapse:collapse;font-size:14.5px}
.doc-table caption{margin-bottom:var(--s2);color:var(--secondary);font-size:13px;font-weight:650;letter-spacing:.4px;text-align:left;text-transform:uppercase}
.doc-table th,.doc-table td{padding:9px 12px 9px 0;text-align:left;vertical-align:top;color:var(--secondary);line-height:1.5}
.doc-table th{color:var(--ink);font-weight:650;white-space:nowrap}
.doc-table thead th{padding-bottom:11px;border-bottom:1px solid var(--line);font-size:12.5px;letter-spacing:.4px;text-transform:uppercase}
.doc-table tbody th{width:1%;padding-right:var(--s4)}
.doc-table tbody tr+tr th,.doc-table tbody tr+tr td{border-top:1px solid var(--line)}

.doc-toc{position:sticky;top:104px;max-height:calc(100vh - 132px);overflow-y:auto;display:flex;flex-direction:column;gap:var(--s2);padding-left:var(--s3);border-left:1px solid var(--line)}
.doc-toc p{margin:0;font-size:11px;font-weight:650;letter-spacing:1.6px;text-transform:uppercase;color:var(--secondary)}
.doc-toc ul{display:grid;gap:3px;margin:0;padding:0;list-style:none}
.doc-toc a{display:block;color:var(--secondary);font-size:13.5px;font-weight:600;line-height:1.4;text-decoration:none}
.doc-toc a:hover{color:var(--accent)}
.doc-toc a[data-current]{color:var(--accent)}

.docs-pager{display:grid;grid-template-columns:1fr 1fr;gap:var(--s3);margin-top:var(--s6);padding-top:var(--s4);border-top:1px solid var(--line)}
.docs-pager a{display:flex;flex-direction:column;gap:3px;padding:var(--s3) var(--s4);border-radius:var(--r-ctl);color:var(--ink);text-decoration:none;box-shadow:var(--raise-sm);transition:box-shadow var(--press) ease}
.docs-pager a:hover{box-shadow:var(--raise)}
.docs-pager a:active{box-shadow:var(--sink-sm)}
.docs-pager a span{color:var(--secondary);font-size:12px;font-weight:650;letter-spacing:.8px;text-transform:uppercase}
.docs-pager strong{font-size:15.5px;font-weight:650;letter-spacing:-.2px}
.docs-pager .next{grid-column:2;text-align:right}

@media(max-width:1080px){
 .docs{grid-template-columns:216px minmax(0,1fr);gap:var(--s5)}
 .doc-toc{display:none}
}
@media(max-width:860px){
 .desktop-link{display:none}
 .docs{grid-template-columns:1fr;gap:var(--s4);padding-top:var(--s3)}
 .docs-aside{position:static;max-height:none;overflow:visible}
 .docs-drawer{padding:var(--s3) var(--s4);border-radius:var(--r-ctl);box-shadow:var(--raise-sm)}
 .docs-drawer>summary,.docs-drawer[open]>summary{display:flex;align-items:center;gap:9px;min-height:44px;color:var(--ink);font-size:15px;font-weight:650;cursor:pointer;list-style:none}
 .docs-drawer>summary::-webkit-details-marker{display:none}
 .docs-drawer>summary::after{content:"";width:8px;height:8px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
 .docs-drawer[open]>summary::after{transform:rotate(225deg) translateY(-2px)}
 .docs-drawer[open]>.docs-nav{margin-top:var(--s3)}
 .docs-nav a{min-height:44px;display:flex;flex-direction:column;justify-content:center}
 .docs-search input{min-height:44px;font-size:16px}
 .docs-pager{grid-template-columns:1fr}
 .docs-pager .next{grid-column:1}
 .doc h1{font-size:34px;letter-spacing:-1.4px}
}
@media(prefers-reduced-motion:reduce){.docs-drawer>summary::after{transition:none}}
@media(prefers-contrast:more){
 .docs-nav a[aria-current=page],.docs-search input,.docs-results a,.docs-pager a,.doc-table,.docs-drawer{box-shadow:none;border:1px solid var(--ink)}
 .doc-toc a[data-current]{text-decoration:underline;text-decoration-thickness:2px}
}
@media(prefers-reduced-transparency:reduce){
 .docs-nav a[aria-current=page],.docs-search input,.docs-results a,.docs-pager a,.doc-table,.docs-drawer{box-shadow:none;border:1px solid var(--line)}
}
