/* NativeHelpy documentation (/docs/): the site's colours and header from /styles.css, plus the reading layout. */
.docs-head .head-nav { gap: 6px; }
.docs-head .head-nav a.here { color: var(--ink); background: var(--surface-2); }
@media (max-width: 860px) {
    /* no menu button on the docs: the two links stay in the bar */
    .docs-head .head-nav { position: static; flex-direction: row; align-items: center; background: none; border: 0; padding: 0; box-shadow: none; transform: none; opacity: 1; pointer-events: auto; }
    .docs-head .head-nav a:not(.btn) { padding: 8px 9px; font-size: .9rem; }
    .docs-head .head-nav .nav-cta { display: none; }
}

.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 72px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; } }

.toc { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: .92rem; }
.toc p { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; border-inline-start: 2px solid transparent; }
.toc a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.toc ol ol a { padding-inline-start: 22px; font-size: .88rem; }
@media (max-width: 900px) {
    .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 12px; }
    .toc ol ol { display: none; }
}

.doc { max-width: 50rem; min-width: 0; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); font-weight: 780; margin: 0 0 14px; }
.doc .lede { color: var(--ink-2); font-size: 1.08rem; margin: 0 0 8px; }
.doc section { padding-top: 34px; scroll-margin-top: 70px; }
.doc h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); font-weight: 750; margin: 0 0 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 1.12rem; font-weight: 700; margin: 26px 0 8px; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 10px 0; }
.doc li { margin: 5px 0; }
.doc strong { color: var(--ink); }

.doc code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .86em; background: var(--surface-2); border-radius: 5px; padding: 1px 5px; color: var(--ink); overflow-wrap: anywhere; }
.doc pre { background: #0f2545; color: #e8eefb; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: .86rem; line-height: 1.55; margin: 14px 0; }
.doc pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.doc pre .c { color: #9fb1d4; }

.doc .table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.doc th { background: var(--surface-3); color: var(--ink); font-weight: 650; white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }
.doc td code { white-space: nowrap; }

.doc .note { background: var(--accent-weak); border-inline-start: 3px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.doc .note p { margin: 4px 0; color: var(--ink); }
.doc .steps-list { counter-reset: s; list-style: none; padding: 0; }
.doc .steps-list > li { counter-increment: s; position: relative; padding-inline-start: 42px; margin: 14px 0; }
.doc .steps-list > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.doc .cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
