/* ── Help docs (/docs/) ── phone first. Built by tools/pages/docs/build.py; extends page.css. */
.docs-h1 { max-width: 28ch; }
.docs-kicker { text-decoration: none; }
.docs-kicker:hover { color: var(--hl-on-paper); }

/* Article: section list folds on phones, sits beside the text on desktop */
.docs-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 8px; }
.docs-side li a[aria-current] { color: var(--ink); font-weight: 600; }
.docs-onpage { padding: 16px 18px; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); }
.docs-side_h { margin: 0 0 6px !important; font-size: 12px !important; font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text-on-paper-3) !important; }
.docs-onpage ol { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.docs-onpage li { margin: 0 !important; padding: 0 !important; }
.docs-onpage li::marker { content: none; }
.docs-onpage a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.4; color: var(--text-on-paper-2) !important; text-decoration: none !important; }
.docs-onpage a:hover { color: var(--hl-on-paper) !important; }
.docs-prose img { margin-inline: auto; border: 1px solid var(--hair-on-paper); background: var(--white); }
.docs-prose .docs-shot { display: block; width: fit-content; max-width: 100%; margin-inline: auto; text-decoration: none; cursor: zoom-in; }
.docs-prose .docs-shot img { border-radius: 8px; }
/* Marked screenshots sit in a white frame with a soft shadow; the caption never widens the figure */
.docs-prose .docs-fig { width: fit-content; max-width: 100%; margin-inline: auto; margin-top: 24px !important; }
.docs-prose .docs-fig + * { margin-top: 24px !important; }
.docs-fig .docs-shot { padding: 6px; border: 1px solid var(--hair-on-paper); border-radius: 14px; background: var(--white); box-shadow: 0 1px 2px rgba(26, 26, 46, 0.04), 0 16px 40px -18px rgba(26, 26, 46, 0.28); }
.docs-fig .docs-shot img { border: 0; border-radius: 9px; }
.docs-fig figcaption { contain: inline-size; margin-top: 12px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--text-on-paper-3); text-wrap: balance; }
.docs-prose h2, .docs-prose h3 { scroll-margin-top: 84px; }
.docs-prose em { font-style: italic; }
.docs-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); background: #0b1326; }
.docs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.docs-help { margin-top: 40px !important; padding: 18px 20px; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); }
.docs-help p { margin: 0 !important; font-size: 16px !important; line-height: 1.55 !important; color: var(--text-on-paper-2); }
.docs-help .docs-help_h { margin-bottom: 4px !important; font-size: 17px !important; font-weight: 700; color: var(--ink); }
.docs-help a { color: var(--hl-on-paper); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
/* In an article it closes the page as an ink band; section pages keep the light card, as the ink trial band follows them */
.docs-prose .docs-help { margin-top: 24px !important; padding: 22px 24px; border: 0; background: var(--ink); }
.docs-prose .docs-help p { color: var(--text-on-ink-2) !important; }
.docs-prose .docs-help .docs-help_h { font-size: 18px !important; letter-spacing: -0.01em; color: var(--paper) !important; }
.docs-prose .docs-help a { color: var(--hl-on-ink); }
.docs-related { padding: 48px 0 72px; }
.docs-related_h { margin-bottom: 16px !important; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }

/* Docs home: search + categories */
.docs-search { margin-top: 24px; max-width: 640px; }
.docs-search_l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.docs-search input { width: 100%; height: 56px; margin: 0; padding: 0 18px; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); color: var(--ink); font: inherit; font-size: 17px; box-shadow: 0 1px 2px rgba(26, 26, 46, 0.04); -webkit-appearance: none; appearance: none; }
.docs-search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.docs-results { max-width: 640px; margin-top: 12px; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); overflow: hidden; }
.docs-results a { display: block; padding: 14px 18px; border-top: 1px solid var(--hair-on-paper); color: var(--ink); text-decoration: none; }
.docs-results a:first-child { border-top: 0; }
.docs-results a:hover, .docs-results a:focus { background: rgba(var(--ink-rgb), 0.03); }
.docs-results b { display: block; font-size: 16px; line-height: 1.35; font-weight: 600; }
.docs-results span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-on-paper-3); }
.docs-results p { margin: 0 !important; padding: 14px 18px; font-size: 15px; color: var(--text-on-paper-2); }
.docs-results p a { display: inline; padding: 0; border: 0; color: var(--hl-on-paper); text-decoration: underline; }
.docs-cats { display: grid; gap: 12px; }
.docs-cat { padding: 20px; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); }
.docs-cat_h { margin: 0 !important; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.docs-cat_h a { color: var(--ink); text-decoration: none; }
.docs-cat_h a:hover { color: var(--hl-on-paper); }
.docs-cat_d { margin: 6px 0 10px !important; font-size: 15px; line-height: 1.5; color: var(--text-on-paper-2); }
.docs-cat ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.docs-cat li { margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--hair-on-paper); }
.docs-cat li::marker { content: none; }
.docs-cat li a { display: block; padding: 11px 0; font-size: 15px; line-height: 1.4; color: var(--text-on-paper-2); text-decoration: none; }
.docs-cat li a:hover { color: var(--hl-on-paper); }
.docs-cat_more { display: inline-block; margin-top: 8px; padding: 6px 0; font-size: 15px; font-weight: 600; color: var(--hl-on-paper); text-decoration: none; }

@media screen and (min-width: 768px) {
  .docs-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .docs-cat { padding: 24px; }
}
@media screen and (min-width: 992px) {
  .docs-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 36px; }
  .docs-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Article header: the title block closes with a hairline, and the opening paragraph reads as the intro */
.docs-hero { padding-bottom: 24px; border-bottom: 1px solid var(--hair-on-paper); }
.docs-lead { max-width: 62ch; margin-top: 16px !important; font-size: 18px; line-height: 1.6; color: var(--text-on-paper-2); text-wrap: pretty; }
.docs-lead strong { color: var(--ink); font-weight: 600; }
.docs-lead a { color: var(--hl-on-paper); text-decoration: underline; text-underline-offset: 2px; }
@media screen and (min-width: 768px) {
  .docs-hero { padding-bottom: 32px; }
  .docs-lead { margin-top: 20px !important; font-size: 20px; line-height: 1.55; }
}

/* Steps: numbered ink discs joined by a thin line. Bullets: short ink dashes. Nested lists keep plain markers. */
.docs-prose ol.docs-steps { counter-reset: step; padding-left: 0; list-style: none; }
.docs-steps > li { position: relative; margin-top: 0; padding: 0 0 16px 44px; counter-increment: step; }
.docs-steps > li:last-child { padding-bottom: 0; }
.docs-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; line-height: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.docs-steps > li::after { content: ""; position: absolute; left: 13.5px; top: 34px; bottom: 6px; width: 1px; background: var(--hair-on-paper); }
.docs-steps > li:last-child::after { content: none; }
.docs-prose ul.docs-list { padding-left: 0; list-style: none; }
.docs-list > li { position: relative; padding-left: 24px; }
.docs-list > li::before { content: ""; position: absolute; left: 3px; top: 13.5px; width: 8px; height: 2px; border-radius: 1px; background: var(--ink); }

/* Sections open with a hairline and room to breathe */
.docs-prose > h2:not(:first-child) { margin-top: 48px !important; padding-top: 32px; border-top: 1px solid var(--hair-on-paper); }
.docs-prose > .docs-onpage + h2 { margin-top: 36px !important; padding-top: 0; border-top: 0; }

/* Tips and reference lists sit on white cards */
.docs-prose > .docs-tips { margin-top: 48px !important; }
.docs-tips { padding: 20px 22px 22px; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); box-shadow: inset 3px 0 0 var(--ink); }
.docs-prose .docs-tips h2 { margin: 0 !important; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text-on-paper-3); }
.docs-tips ul { margin-top: 10px !important; }
.docs-tips li { font-size: 16px; line-height: 1.6; }
.docs-tips .docs-list > li::before { top: 12.5px; }
.docs-prose .pg-facts { padding: 4px 20px !important; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); }
.docs-prose .pg-facts li:last-child { border-bottom: 0; }

/* Previous and next article in the section */
.docs-pager { display: grid; gap: 12px; margin-top: 56px !important; }
.docs-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.docs-pager a:hover { border-color: var(--ink); transform: translateY(-2px); }
.docs-pager_k { font-size: 12px; font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text-on-paper-3); }
.docs-pager_t { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
@media screen and (min-width: 768px) {
  .docs-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .docs-pager_next { grid-column: 2; text-align: right; }
}
/* Free-trial card under the help band: readers who found the article in a search and don't have an account */
.docs-try { margin-top: 16px !important; padding: 20px 24px; border: 1px solid var(--hair-on-paper); border-radius: var(--r-card); background: var(--white); }
.docs-try p { margin: 0 !important; font-size: 16px !important; line-height: 1.55 !important; color: var(--text-on-paper-2); }
.docs-try .docs-try_h { margin-bottom: 4px !important; font-size: 18px !important; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.docs-try .pg-cta { margin-top: 16px; }

/* intro paragraph under a docs category's cards */
.docs-cat_intro { margin-top: 24px; }
