/* The docs site, on top of the portal's style.css (tokens, sky, type, code,
   tables, footer): the page's text in one solid box on the sky (design/BRAND.md),
   the list of pages fixed beside it on a wide screen, under it on a phone. */
.to-portal { margin-left: auto; color: var(--text); }
.docs { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 48px; }
.page { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 22px 22px; box-shadow: var(--shadow); min-width: 0; }
.page h1 { margin-top: 20px; }
.page h2 { margin: 28px 0 8px; }
.page li { margin: 4px 0; }
.page table { box-shadow: none; }
.page blockquote { margin: 14px 0; padding: 2px 16px; border-left: 3px solid var(--au-mark); background: var(--well); border-radius: 0 var(--r) var(--r) 0; }
.page .raw { margin: 28px 0 0; }
.toc { font-size: 13.5px; }
.toc h2 { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 16px 0 4px; }
.toc h2:first-child { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 3px 0; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--au-small); }
.toc a[aria-current] { color: var(--fg); font-weight: var(--w-strong); }
@media (min-width: 900px) {
  .docs { grid-template-columns: 240px minmax(0, 1fr); }
  .page { grid-column: 2; grid-row: 1; padding: 8px 36px 28px; }
  .toc { grid-column: 1; grid-row: 1; position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; }
}
/* a wide table scrolls inside the page; its code names stay whole */
.page table { display: block; overflow-x: auto; }
.page td code { overflow-wrap: normal; white-space: nowrap; }
