/* Help: a reading layout for people who already have the app. Sidebar of topics + one article. */
.help { --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.help { max-width: 1180px; margin: 0 auto; padding: 96px var(--gutter) 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.help__nav { position: sticky; top: 84px; font-size: 14px; }
.help__nav p { font-family: var(--code); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin: 22px 0 8px; }
.help__nav p:first-child { margin-top: 0; }
.help__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help__nav a { display: block; padding: 6px 10px; border-radius: 8px; color: rgba(245, 241, 234, 0.72); text-decoration: none; }
.help__nav a:hover { color: var(--ivory); background: rgba(255, 244, 220, 0.05); }
.help__nav a[aria-current="page"] { color: var(--amber); background: rgba(237, 179, 65, 0.09); }

.doc { max-width: 72ch; padding-bottom: 40px; }
.doc .crumbs { margin-bottom: 28px; }
.doc h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.04em; }
.doc .lede { margin-top: 22px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: rgba(245, 241, 234, 0.82); }
.doc h2 { margin-top: 56px; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; letter-spacing: -0.03em; scroll-margin-top: 80px; }
.doc h3 { margin-top: 32px; font-size: 19px; letter-spacing: -0.01em; scroll-margin-top: 80px; }
.doc p, .doc li { font-size: 17px; line-height: 1.62; color: rgba(245, 241, 234, 0.8); }
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc strong, .doc b { color: var(--ivory); font-weight: 600; }
.doc a { color: var(--amber); text-underline-offset: 3px; }
.doc kbd { font-family: var(--code); font-size: 0.8em; padding: 2px 6px; border-radius: 6px; background: var(--ink-3); box-shadow: inset 0 -1px 0 rgba(255, 244, 220, 0.12), inset 0 0 0 1px var(--line); color: var(--ivory); }
.doc code { font-family: var(--code); font-size: 0.86em; color: var(--arc); background: rgba(255, 244, 220, 0.06); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.doc .menu { color: var(--ivory); font-weight: 500; white-space: nowrap; }

/* Code blocks, with a copy button added by help.js */
.code { position: relative; margin-top: 16px; border-radius: 14px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--code); font-size: 13.5px; line-height: 1.6; color: var(--arc); white-space: pre; }
.code pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.code__copy { position: absolute; top: 8px; right: 8px; font: 500 12px var(--sans); color: var(--mute); background: var(--ink-3); border: 0; border-radius: 8px; padding: 5px 10px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.code__copy:hover { color: var(--ivory); }
.code__copy.is-done { color: var(--amber); }
.code--wrap pre { white-space: pre-wrap; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0 !important; gap: 14px !important; }
.steps > li { counter-increment: step; position: relative; padding: 16px 20px 16px 58px; border-radius: 14px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 15px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--sans); color: #1a1206; background: var(--amber); }
.steps > li > :first-child { margin-top: 0; }

/* Callouts */
.note { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: rgba(237, 179, 65, 0.07); box-shadow: inset 0 0 0 1px rgba(237, 179, 65, 0.22); }
.note p { margin: 0; font-size: 15.5px; }
.note p + p { margin-top: 8px; }

/* Tables */
.doc .tbl { margin-top: 18px; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: rgba(245, 241, 234, 0.8); }
.doc thead th { background: var(--ink-3); color: var(--ivory); font-weight: 600; font-size: 13.5px; }
.doc tbody tr:last-child td, .doc tbody tr:last-child th { border-bottom: 0; }

/* Topic cards on the help index */
.topics { list-style: none; padding: 0 !important; margin-top: 28px !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
.topics a { display: block; height: 100%; padding: 18px 20px; border-radius: 14px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: box-shadow 0.2s; }
.topics a:hover { box-shadow: inset 0 0 0 1px rgba(237, 179, 65, 0.4); }
.topics b { display: block; font-size: 17px; color: var(--ivory); }
.topics span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--mute); }

.pager { margin-top: 64px; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.pager a { color: var(--mute); text-decoration: none; }
.pager a:hover { color: var(--ivory); }

@media (max-width: 860px) {
  .help { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 84px; }
  .help__nav { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 24px; }
  .topics { grid-template-columns: 1fr; }
}

/* Grid children shrink below their content, so long code scrolls inside its block instead of widening the page. */
.doc > *, .doc li, .steps > li { min-width: 0; }
.code pre { padding-right: 76px; }
