/* Docs page. Loaded after /styles.css and /download.css and uses their tokens. */
.docs { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.docs-toc { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: .1rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.docs-toc a { padding: .4rem 0; color: var(--mute); text-decoration: none; font-size: .92rem; transition: color .2s; }
.docs-toc a:hover { color: var(--text); }

.docs-body { min-width: 0; max-width: 46rem; }
.docs-body > section { padding-bottom: 4rem; scroll-margin-top: 5.5rem; }
.docs-body > section + section { padding-top: 4rem; border-top: 1px solid var(--line); }
.docs-body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.docs-body h3 { margin-top: 2.25rem; font-size: 1.1rem; letter-spacing: -.02em; }
.docs-body p { margin-top: .9rem; color: var(--mute); line-height: 1.65; }
.docs-body strong { color: var(--text); font-weight: 500; }
.docs-body a { color: var(--acc-2); text-underline-offset: 3px; }
.docs-body code { font: 500 .88em var(--mono); color: var(--text); }
.docs-body p code, .docs-body dd code, .docs-body td code, .docs-body th code { padding: .1em .4em; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.docs-body .cmd { margin-top: 1rem; }
.docs-body .table-scroll { margin-top: 1.25rem; }
.docs-body .files { min-width: 30rem; }
.docs-body .files td { white-space: normal; color: var(--mute); }

/* A real sequence, so it is numbered. */
.steps { counter-reset: step; list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.75rem; min-width: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid rgba(255, 122, 26, .5); color: var(--acc-2); font: 500 .8rem var(--mono); }
.steps li p { margin-top: 0; }

.os-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.os-grid article { padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); min-width: 0; }
.os-grid h3 { margin-top: 0; }

.facts { margin: 1.5rem 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .95rem 1.25rem; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--mute); font-size: .92rem; }
.facts dd { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }

.docs-tip { padding: .9rem 1.1rem; border-left: 2px solid var(--acc); border-radius: 0 10px 10px 0; background: rgba(255, 110, 20, .07); color: var(--text) !important; font-size: .95rem; }

.code { margin: 1rem 0 0; border: 1px solid var(--line-2); border-radius: 12px; background: #050506; overflow: hidden; }
.code figcaption { display: flex; align-items: center; justify-content: space-between; padding: .45rem .5rem .45rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--mute); font-size: .82rem; }
.code .cmd-copy { height: 2rem; }
.code pre { margin: 0; padding: 1.1rem; overflow-x: auto; font-size: .86rem; line-height: 1.65; }
.code pre code { font-weight: 400; }

@media (max-width: 56rem) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: .25rem 1.1rem; padding: 0 0 1rem; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}
