/* Help guides (/docs): editorial look, three columns on desktop
   (guides list, the guide, "On this page"). Builds on editorial.css. */
.lp-docs .lp-wrap { --lp-wrap: min(100% - 2 * var(--lp-gut), 1280px); }

/* ── Index ─────────────────────────────────────────────── */
.dc-hero { position: relative; padding: 72px 0 40px; text-align: center;
  background-image: linear-gradient(var(--lp-line) 1px, transparent 1px), linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 48px 48px; }
.dc-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none;
  background: linear-gradient(rgba(247, 239, 233, 0), #f7efe9); }
.dc-hero .lp-wrap { z-index: 1; }
.dc-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-ink); margin: 0 0 14px; }
.dc-hero h1 { font-family: var(--lp-serif); font-weight: 480; letter-spacing: -.022em; font-variation-settings: "opsz" 96, "SOFT" 50;
  font-size: clamp(42px, 5.6vw, 72px); line-height: 1; margin: 0; }
.dc-hero h1 em { font-style: italic; color: var(--accent-ink); font-weight: 420; }
.dc-hero .lp-lead { margin: 18px auto 0; }
.dc-search { max-width: 560px; margin: 28px auto 0; }
.dc-search input { width: 100%; box-sizing: border-box; min-height: 54px; padding: 0 20px; border: 0; border-radius: 14px;
  background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-line); font: inherit; font-size: 16px; color: var(--lp-ink); }
.dc-search input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.dc-index { padding-top: 32px; }
.dc-group + .dc-group { margin-top: 56px; }
.dc-group[hidden], .dc-card[hidden], .dc-none[hidden] { display: none; }
.dc-group-h { font-family: var(--lp-serif); font-weight: 500; font-size: 28px; letter-spacing: -.015em; margin: 0 0 18px; }
.dc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dc-card { display: flex; flex-direction: column; padding: 24px 24px 22px; border-radius: 16px; background: var(--lp-card);
  box-shadow: inset 0 0 0 1px var(--lp-line); text-decoration: none; color: inherit; transition: transform .2s ease; }
.dc-card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 0; }
.dc-card p { font-size: 14.5px; line-height: 1.5; color: var(--lp-body); margin: 8px 0 0; }
.dc-card-go { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
@media (hover: hover) { .dc-card:hover { transform: translateY(-2px); } }
.dc-none { text-align: center; color: var(--lp-body); padding: 32px 0; }

/* ── Guide page ────────────────────────────────────────── */
.dc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 220px; gap: 56px; padding: 48px 0 112px; align-items: start; }
.dc-nav, .dc-side { position: sticky; top: calc(var(--bb-chrome) + 28px); max-height: calc(100vh - var(--bb-chrome) - 56px); overflow-y: auto; }
.dc-nav-home { display: inline-block; font-size: 14px; font-weight: 600; color: var(--lp-ink); text-decoration: none; margin-bottom: 18px; }
.dc-nav-h { font-size: 12.5px; font-weight: 600; color: var(--lp-muted); margin: 20px 0 8px; }
.dc-nav ul, .dc-toc ol { list-style: none; margin: 0; padding: 0; }
.dc-nav a:not(.dc-nav-home) { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; font-size: 14.5px; line-height: 1.35;
  color: var(--lp-body); text-decoration: none; }
.dc-nav a:hover { color: var(--lp-ink); }
.dc-nav a.on { background: var(--lp-pink); color: var(--accent-ink); font-weight: 600; }
.dc-toc ol { border-left: 1px solid var(--lp-line); }
.dc-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.35;
  color: var(--lp-body); text-decoration: none; }
.dc-toc a:hover { color: var(--lp-ink); }
.dc-toc a.on { color: var(--lp-ink); border-left-color: var(--accent-ink); font-weight: 600; }

.dc-main { max-width: 760px; min-width: 0; }
.dc-crumb { display: flex; gap: 8px; font-size: 14px; color: var(--lp-muted); margin-bottom: 16px; }
.dc-crumb a { color: var(--lp-body); text-decoration: none; }
.dc-title { font-family: var(--lp-serif); font-weight: 480; letter-spacing: -.02em; font-variation-settings: "opsz" 96, "SOFT" 50;
  font-size: clamp(34px, 3.8vw, 52px); line-height: 1.04; margin: 0; }
.dc-summary { font-size: 19px; line-height: 1.5; color: var(--lp-body); margin: 16px 0 0; }
.dc-updated { font-size: 13.5px; color: var(--lp-muted); margin: 14px 0 0; }

.dc-body { font-size: 17px; line-height: 1.7; color: #3a2f3e; margin-top: 36px; }
.dc-body h2 { font-family: var(--lp-serif); font-weight: 500; font-variation-settings: "opsz" 60, "SOFT" 50; letter-spacing: -.015em;
  font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; margin: 56px 0 14px; color: var(--lp-ink);
  padding-top: 40px; border-top: 1px solid var(--lp-line); }
.dc-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dc-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 32px 0 8px; color: var(--lp-ink); }
.dc-body h2[id], .dc-body h3[id] { scroll-margin-top: calc(var(--bb-chrome) + 24px); }
.dc-body p { margin: 0 0 18px; }
.dc-body strong { color: var(--lp-ink); }
.dc-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.dc-body ul { padding-left: 22px; margin: 0 0 20px; }
.dc-body ul li { margin-bottom: 8px; }
.dc-body ul li::marker { color: var(--accent-ink); }
.dc-body code { background: var(--lp-panel); padding: 2px 6px; border-radius: 5px; font-size: .88em; }
.dc-body kbd, .dc-body em.ui { font-style: normal; }

/* Numbered steps: an ordered list gets circled numbers */
.dc-body ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; }
.dc-body ol > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 16px; }
.dc-body ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lp-ink); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* Screenshots */
.doc-shot { margin: 26px 0 30px; }
.doc-shot-frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--lp-line); padding: 1px; }
.doc-shot-frame img { display: block; width: 100%; height: auto; border-radius: 13px; }
.doc-shot-screen .doc-shot-frame { padding: 34px 1px 1px; position: relative; background: #f4eee8; }
.doc-shot-screen .doc-shot-frame::before { content: ""; position: absolute; left: 14px; top: 13px; width: 9px; height: 9px; border-radius: 50%;
  background: #e6d9d3; box-shadow: 15px 0 0 #e6d9d3, 30px 0 0 #e6d9d3; }
.doc-shot-screen .doc-shot-frame img { border-radius: 0 0 13px 13px; }
.doc-shot-phone { display: flex; justify-content: center; border-radius: 18px; background: var(--lp-pink); overflow: hidden; }
.doc-shot-phone { padding: 28px 0; }
.doc-shot-phone .doc-shot-frame { width: 270px; border-radius: 38px; padding: 9px;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(47, 36, 51, .85); }
.doc-shot-phone .doc-shot-frame img { border-radius: 30px; }
.doc-shot-screen .doc-shot-frame { margin: 0 auto 0 0; }

/* Callouts */
.dc-body blockquote { margin: 24px 0; padding: 18px 22px; border-radius: 14px; background: var(--lp-panel); }
.dc-body blockquote p:last-child { margin-bottom: 0; }
.dc-body .doc-callout-tip { background: var(--lp-sage); }
.dc-body .doc-callout-note { background: var(--lp-sky); }
.dc-body .doc-callout-warn { background: var(--lp-butter); }
.dc-body .doc-callout strong:first-child { display: block; margin-bottom: 2px; }

/* Tables */
.dc-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15.5px; display: block; overflow-x: auto; }
.dc-body th, .dc-body td { border-bottom: 1px solid var(--lp-line); padding: 11px 16px 11px 0; text-align: left; vertical-align: top; }
.dc-body th { font-weight: 700; color: var(--lp-ink); border-bottom-color: rgba(67, 51, 76, .3); }

/* End of guide */
.dc-help { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 56px;
  padding: 28px 30px; border-radius: 18px; background: var(--lp-pink); }
.dc-help h2 { font-family: var(--lp-serif); font-weight: 500; font-size: 26px; letter-spacing: -.012em; margin: 0; }
.dc-help p { margin: 6px 0 0; color: var(--lp-body); font-size: 15.5px; max-width: 440px; }
.dc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.dc-pager a { display: block; padding: 18px 22px; border-radius: 14px; background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-line);
  text-decoration: none; color: var(--lp-ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; transition: transform .2s ease; }
.dc-pager small { display: block; font-size: 13px; font-weight: 500; color: var(--lp-muted); margin-bottom: 4px; }
.dc-pager-next { text-align: right; grid-column: 2; }
@media (hover: hover) { .dc-pager a:hover { transform: translateY(-2px); } }

.dc-toc-phone { display: none; margin-top: 24px; border-radius: 14px; background: var(--lp-card); box-shadow: inset 0 0 0 1px var(--lp-line); }
.dc-toc-phone summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; }
.dc-toc-phone summary::-webkit-details-marker { display: none; }
.dc-toc-phone ol { margin: 0 18px 14px; padding-left: 18px; }
.dc-toc-phone li { padding: 4px 0; }
.dc-toc-phone a { color: var(--lp-body); }

@media (max-width: 1180px) {
  .dc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .dc-side { display: none; }
  .dc-toc-phone { display: block; }
}
@media (max-width: 860px) {
  .dc-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .dc-nav { display: none; }
  .dc-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .dc-hero { padding: 44px 0 28px; text-align: left; }
  .dc-search { margin-left: 0; }
  .dc-cards { grid-template-columns: 1fr; }
  .dc-body { font-size: 16.5px; }
  .dc-help { padding: 24px 20px; }
  .dc-help .lp-btn { width: 100%; }
  .dc-pager { grid-template-columns: 1fr; }
  .dc-pager-next { grid-column: 1; }
  .doc-shot-phone .doc-shot-frame { width: 240px; }
}
.dc-body hr { display: none; }
