/* Reading pages: guide, privacy, security, terms. Built by tools/build-docs.py. */
.doc { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1260px; gap: clamp(32px, 6vw, 96px); padding-top: 120px; padding-bottom: 80px; align-items: start; }
.doc-spot { position: absolute; right: var(--gut); top: 110px; width: clamp(90px, 9vw, 140px); }

.doc-toc { position: sticky; top: 100px; max-height: calc(100svh - 130px); overflow-y: auto; padding-right: 8px; font-size: 14px; }
.doc-toc .eyebrow { margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--dim); line-height: 1.35; transition: color 200ms, background-color 200ms; }
.doc-toc a::before { content: counter(toc); min-width: 1.4em; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.3); }
.doc-toc a:hover { color: var(--fg); background: rgb(255 255 255 / 0.05); }
.doc-toc a.is-here { color: var(--fg); background: rgb(255 255 255 / 0.08); }

.doc article { min-width: 0; max-width: 44rem; font-size: 16.5px; line-height: 1.7; color: var(--mid); }
.doc article h1 { color: var(--fg); margin: 0 0 20px; max-width: 16ch; }
.doc .meta { font-size: clamp(17px, 1.4vw, 19px); color: var(--mid); margin: 0 0 40px; }
.doc article h2 { color: var(--fg); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; margin: 64px 0 16px; scroll-margin-top: 96px; }
.doc article h3 { color: var(--fg); font-size: 18px; letter-spacing: -0.01em; font-weight: 600; margin: 32px 0 8px; scroll-margin-top: 96px; }
.doc article p { margin: 0 0 16px; }
.doc article ul, .doc article ol { margin: 0 0 20px; padding-left: 1.3em; }
.doc article li { margin: 6px 0; }
.doc article li::marker { color: var(--dim); }
.doc article strong, .doc article b { color: var(--fg); font-weight: 600; }
.doc article a { color: var(--fg); text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 3px; }
.doc article a:hover { text-decoration-color: var(--lumi-glow); }
.doc article code { font-family: var(--font-sans); font-size: 0.92em; padding: 1px 7px; border-radius: 5px; background: rgb(255 255 255 / 0.08); color: var(--fg); white-space: nowrap; }
.doc article .eyebrow { margin: 40px 0 8px; }

.doc .callout { margin: 24px 0; padding: 18px 20px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--mid); }
.doc .callout > :last-child { margin-bottom: 0; }

.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 15px; table-layout: auto; }
.doc thead th { text-align: left; font-weight: 500; color: var(--dim); padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-2); }
.doc tbody td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--mid); }
.doc tbody td:first-child { color: var(--fg); }

.doc figure { margin: 24px 0 28px; }
.doc figure img { width: 100%; max-width: 560px; height: auto; border-radius: 12px; border: 1px solid var(--line); filter: grayscale(1); }
.doc figcaption { margin-top: 10px; font-size: 14px; color: var(--dim); }

@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .doc-toc { position: static; max-height: none; overflow: visible; order: 2; border-top: 1px solid var(--line); padding-top: 24px; }
  .doc-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .doc-spot { top: 80px; width: 84px; }
  .doc article h1 { max-width: calc(100% - 90px); }
}

/* Lumi's stops along the article: alternating heights in the right margin. */
.doc-sec { position: relative; }
.doc-roam { position: absolute; width: clamp(84px, 8vw, 120px); right: calc(-1 * clamp(110px, 11vw, 170px)); }
.doc-roam--a { top: 8px; }
.doc-roam--b { top: 40%; }
.doc-roam--c { bottom: 8px; }
.doc-sec .doc-spot { top: 0; right: calc(-1 * clamp(110px, 11vw, 170px)); }
@media (max-width: 960px) { .doc-sec .doc-spot { right: -6px; top: -10px; width: 72px; } }
