/* Help Center (docs/), built by scripts/build-docs.js on top of marketing.css */

/* ── search ── */
.help-search { position: relative; display: flex; align-items: center; max-width: 620px; margin: 28px 0 0; background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--sh-md); }
.help-search.big { margin: 34px auto 0; border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .08); border: 0; }
.help-search-icon { width: 20px; height: 20px; color: var(--ink-3); position: absolute; left: 18px; pointer-events: none; }
.help-search input { flex: 1; width: 100%; border: 0; background: none; font: 500 16px/1.2 var(--font); color: var(--ink); padding: 17px 54px 17px 50px; border-radius: inherit; outline: none; }
.help-search.big input { font-size: 17.5px; padding: 21px 60px 21px 52px; }
.help-search input::-webkit-search-cancel-button { display: none; }
.help-search:focus-within { box-shadow: 0 0 0 4px rgba(62, 172, 97, .25), var(--sh-md); }
.help-kbd { position: absolute; right: 16px; font: 600 12px var(--font); color: var(--ink-3); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; background: var(--surface-2); }
.help-search:focus-within .help-kbd { display: none; }
.help-results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(15, 22, 35, .4), 0 0 0 1px rgba(15, 22, 35, .06); padding: 8px; text-align: left; max-height: 420px; overflow-y: auto; }
.help-results a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.help-results a:hover, .help-results a.is-on { background: var(--brand-soft); }
.help-results b { display: block; font-size: 15px; }
.help-results small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.help-results mark { background: rgba(62, 172, 97, .22); color: inherit; border-radius: 3px; padding: 0 1px; }
.help-results .help-r-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink); }
.help-results .help-empty { padding: 16px 14px; color: var(--ink-2); font-size: 14.5px; }
.help-results .help-empty a { display: inline; padding: 0; color: var(--brand-ink); font-weight: 600; }

/* ── hub hero ── */
.help-hero { text-align: center; }
.help-hero-inner { position: relative; max-width: 760px; }
.help-hero h1 { margin: 18px auto 14px; }
.help-hero .hero-sub { margin: 0 auto; }
.help-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13.5px; color: #9fbdab; }
.help-chips a { color: #e6f2ea; text-decoration: none; padding: 6px 13px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s; }
.help-chips a:hover { background: rgba(255, 255, 255, .16); }

/* ── category cards (hub) ── */
.help-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-cat { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 28px; text-decoration: none; color: var(--ink); box-shadow: var(--sh-sm); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.help-cat::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(62, 172, 97, .18); transition: transform .4s; }
.help-cat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.help-cat:hover::after { transform: scale(1.15); }
.help-cat-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand-soft), #d9f0e1); color: var(--brand-ink); flex: none; }
.help-cat-icon svg { width: 24px; height: 24px; }
.help-cat-icon.big { width: 64px; height: 64px; border-radius: 18px; }
.help-cat-icon.big svg { width: 30px; height: 30px; }
.help-cat h3 { font-size: 20px; margin: 18px 0 8px; }
.help-cat p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px; }
.help-cat ul { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.help-cat li { font-size: 14px; color: var(--ink); padding-left: 16px; position: relative; }
.help-cat li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.help-cat-count { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand-ink); }
.help-go { width: 15px; height: 15px; transition: transform .2s; }
a:hover .help-go { transform: translateX(3px); }

/* ── article cards ── */
.help-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.help-cards.one { grid-template-columns: 1fr; }
.help-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; text-decoration: none; color: var(--ink); box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.help-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: rgba(62, 172, 97, .35); }
.help-card h3 { font-size: 18px; margin: 6px 0 0; }
.help-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.help-card-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.help-card-meta .help-go { margin-left: auto; color: var(--brand-ink); }
.help-card-kind { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); }
.help-card-kind svg { width: 14px; height: 14px; }
.help-card-kind.video { background: #f1ecff; color: #6b46e5; }

/* ── page top (category + article) ── */
.help-top { position: relative; overflow: hidden; padding: calc(clamp(32px, 5vw, 56px) + 84px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(900px 400px at 90% -10%, rgba(62, 172, 97, .16), transparent 60%), linear-gradient(180deg, #eef6f1, #f6f8fa); border-bottom: 1px solid var(--border); }
.help-top .wrap { position: relative; }
.help-top h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 14px 0 10px; max-width: 820px; }
.help-top-row { display: flex; gap: 20px; align-items: center; margin-top: 10px; }
.help-top-row h1 { margin: 0 0 6px; }
.help-top-row p { margin: 0; color: var(--ink-2); max-width: 640px; }
.help-lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 720px; margin: 0; }
.help-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); }
.help-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.help-crumbs a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.help-crumbs a:hover { text-decoration: underline; }
/* first section under the pill nav */
main > section:first-child.help-top { padding-top: calc(clamp(32px, 5vw, 56px) + 84px); }

/* ── three-column layout ── */
.help-article-band, .help-cat-band { padding-top: clamp(28px, 4vw, 48px); overflow: clip; }
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.help-layout.no-toc { grid-template-columns: 240px minmax(0, 1fr); }
.help-main { min-width: 0; max-width: 760px; }
.help-count { font-size: 13.5px; color: var(--ink-3); margin: 0 0 12px; }

.help-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; }
.help-side-home { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand-ink); text-decoration: none; margin-bottom: 14px; }
.help-side-home svg { width: 15px; height: 15px; }
.help-filter { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; margin-bottom: 18px; }
.help-filter svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.help-filter input { border: 0; background: none; font: 14px var(--font); padding: 10px 0; width: 100%; outline: none; }
.help-filter:focus-within { border-color: var(--brand); background: #fff; }
.help-side-group { margin-bottom: 18px; }
.help-side-cat { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.help-side-cat svg { width: 16px; height: 16px; color: var(--brand-ink); }
.help-side-cat.is-active { color: var(--brand-ink); }
.help-side ul { list-style: none; margin: 0; padding: 0 0 0 8px; border-left: 2px solid var(--border); margin-left: 7px; }
.help-side-link { display: block; font-size: 14px; line-height: 1.35; color: var(--ink-2); text-decoration: none; padding: 7px 10px; margin-left: -10px; border-left: 2px solid transparent; transform: translateX(-2px); }
.help-side-link:hover { color: var(--ink); }
.help-side-link.is-active { color: var(--brand-ink); font-weight: 700; border-left-color: var(--brand); }
.help-side-toggle { display: none; }

.help-toc { position: sticky; top: 96px; font-size: 13.5px; }
.help-toc p { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.help-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.help-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color .15s, border-color .15s; }
.help-toc a:hover { color: var(--ink); }
.help-toc a.is-active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; }

/* ── article body ── */
.help-body { font-size: 16.5px; line-height: 1.7; color: #27303f; }
.help-body > :first-child { margin-top: 0; }
.help-body h2 { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.25; margin: 2.2em 0 .6em; scroll-margin-top: 96px; color: var(--ink); }
.help-body h3 { font-size: 18px; margin: 1.6em 0 .4em; color: var(--ink); }
.help-body p { margin: 0 0 1em; }
.help-body ul:not(.docs-steps) { padding-left: 1.2em; margin: 0 0 1.2em; }
.help-body ul:not(.docs-steps) li { margin: .35em 0; }
.help-body ul:not(.docs-steps) li::marker { color: var(--brand); }
.help-body a { color: var(--brand-ink); font-weight: 600; }
.help-body strong { color: var(--ink); }
.help-body code { font: 600 .86em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); padding: .2em .45em; border-radius: 6px; color: var(--ink); white-space: nowrap; }

/* numbered steps */
.help-body .docs-steps { list-style: none; counter-reset: step; margin: 1.2em 0 1.6em; padding: 0; }
.help-body .docs-steps > li { counter-increment: step; position: relative; padding: 0 0 22px 56px; }
.help-body .docs-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--font); color: #fff; background: linear-gradient(140deg, #4cc272, #2e9450); box-shadow: 0 6px 14px -6px rgba(46, 148, 80, .8); }
.help-body .docs-steps > li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: linear-gradient(var(--brand-soft), transparent); }
.help-body .docs-steps > li:last-child { padding-bottom: 4px; }
.help-body .docs-steps > li:last-child::after { display: none; }
.help-body .docs-steps p { margin: 0 0 .6em; }

/* screenshots and video */
.help-body img.shot { display: block; max-width: 100%; height: auto; margin: 18px 0 22px; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 18px 40px -22px rgba(15, 22, 35, .45); background: #fff; }
.help-body img.shot.narrow { max-width: min(340px, 100%); }
.help-body .docs-video-container { margin: 22px 0 28px; border-radius: 18px; overflow: hidden; background: #0c2117; box-shadow: 0 24px 50px -24px rgba(15, 22, 35, .6); border: 1px solid rgba(15, 22, 35, .1); }
.help-body .docs-video-container video, .help-body .docs-video-container iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }

/* callouts */
.help-body .docs-callout { position: relative; margin: 1.4em 0; padding: 16px 18px 16px 54px; border-radius: 14px; font-size: 15.5px; line-height: 1.6; background: #f2f7ff; border: 1px solid #dbe7fb; color: #26364f; }
.help-body .docs-callout::before { content: ""; position: absolute; left: 17px; top: 17px; width: 24px; height: 24px; border-radius: 8px; background: #3b82f6 center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 8h.01M12 12v5'/%3E%3C/svg%3E"); }
.help-body .docs-callout strong { color: inherit; }
.help-body .docs-tip { background: #effaf3; border-color: #cfeedb; color: #1e4a2f; }
.help-body .docs-tip::before { background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7V16h8v-1.3A7 7 0 0 0 12 2Z'/%3E%3C/svg%3E"); }
.help-body .docs-warning { background: #fff8ec; border-color: #f9e2b6; color: #5c3f0c; }
.help-body .docs-warning::before { background-color: #f59e0b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E"); }

/* feedback + prev/next */
.help-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 48px 0 0; padding: 20px 22px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.help-feedback p { margin: 0; font-weight: 700; }
.help-feedback div { display: flex; gap: 8px; }
.help-feedback button { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--font); padding: 9px 16px; border-radius: 99px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.help-feedback button svg { width: 16px; height: 16px; }
.help-feedback button:hover { border-color: var(--brand); background: var(--brand-soft); }
.help-feedback .help-feedback-thanks { font-weight: 600; color: var(--brand-ink); }
.help-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 0; }
.help-pn a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--border); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.help-pn a:hover { border-color: rgba(62, 172, 97, .45); box-shadow: var(--sh-md); transform: translateY(-2px); }
.help-pn small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--brand-ink); }
.help-pn small svg { width: 14px; height: 14px; }
.help-pn b { font-size: 15.5px; }
.help-pn-next { text-align: right; align-items: flex-end; }

/* ── still need help ── */
.help-band { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 90% 0%, rgba(62, 172, 97, .32), transparent 60%), linear-gradient(160deg, #0c2117, #123524 60%, #0e2a1c); color: #e8f2ec; }
.help-band-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.help-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 12px; }
.help-band p { color: #b9cdc1; margin: 0; max-width: 460px; }
.kicker-dark { display: inline-flex; color: #8fe0a9; background: rgba(62, 172, 97, .16); border: 1px solid rgba(143, 224, 169, .3); padding: 5px 12px; border-radius: 99px; margin: 0; }
.help-band-cards { display: grid; gap: 12px; }
.help-contact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.help-contact:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.help-contact > svg:first-child { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(62, 172, 97, .22); color: #8fe0a9; flex: none; }
.help-contact span { flex: 1; }
.help-contact b { display: block; font-size: 16px; }
.help-contact small { color: #9fbdab; font-size: 13.5px; }
.help-contact .help-go { color: #8fe0a9; }

/* ── responsive ── */
@media (max-width: 1180px) {
  .help-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .help-toc { display: none; }
}
@media (max-width: 900px) {
  .help-cats { grid-template-columns: 1fr; }
  .help-cards { grid-template-columns: 1fr; }
  .help-band-grid { grid-template-columns: 1fr; }
  .help-layout, .help-layout.no-toc { grid-template-columns: 1fr; gap: 0; }
  .help-side { display: none; position: static; max-height: none; margin: 0 0 24px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-2); }
  .help-side.is-open { display: block; }
  .help-side-toggle { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font: 600 14px var(--font); padding: 9px 16px; border-radius: 99px; border: 1px solid var(--border); background: #fff; color: var(--ink); margin-bottom: 18px; cursor: pointer; }
  .help-side-toggle svg { width: 16px; height: 16px; }
  .help-cat-band .help-side { display: none !important; }
  .help-top-row { align-items: flex-start; }
  .help-cat-icon.big { width: 52px; height: 52px; }
  .help-body { font-size: 16px; }
  .help-body .docs-steps > li { padding-left: 48px; }
  .help-body .docs-steps > li::before { width: 32px; height: 32px; font-size: 14px; }
  .help-body .docs-steps > li::after { left: 15px; top: 36px; }
  .help-pn { grid-template-columns: 1fr; }
  main > section:first-child.help-top { padding-top: calc(28px + 72px); }
  .help-kbd { display: none; }
}

/* Help Center nav */
.help-logo { align-items: center; gap: 10px; text-decoration: none; }
.help-tag { font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid rgba(62, 172, 97, .25); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 901px) { .help-header .nav-links { gap: 18px; } .help-header .nav-links a { font-size: 13.5px; } }
@media (max-width: 1280px) and (min-width: 901px) { .help-header .nav-login { display: none; } }

/* Full width: the Help Center uses the whole screen (gutters only), not the 1180px marketing column. */
body.help { --wrap: none; }
body.help .wrap, body.help .help-top .wrap, body.help .hero .wrap { max-width: none; }
.help-hero-inner, .help-main { max-width: none; }
.help-body p, .help-body li, .help-body .docs-callout { max-width: 88ch; }
@media (min-width: 1600px) {
  .help-layout { grid-template-columns: 260px minmax(0, 1fr) 240px; }
  .help-layout.no-toc { grid-template-columns: 260px minmax(0, 1fr); }
  .help-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Tables in articles (e.g. the Claude connector's tool list) */
.help-body .docs-table-wrap { overflow-x: auto; margin: .6em 0 1.6em; border: 1px solid var(--border); border-radius: 14px; }
.help-body .docs-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.help-body .docs-table th { text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.help-body .docs-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.help-body .docs-table tr:last-child td { border-bottom: 0; }

.help-body .docs-table td:last-child { white-space: nowrap; color: var(--ink-2); }
.help-body .docs-table code { font-size: 13.5px; }
.help-body .docs-table { table-layout: fixed; min-width: 620px; }
.help-body .docs-table th:first-child { width: 230px; }
.help-body .docs-table th:last-child { width: 170px; }
.help-body .docs-table td:first-child code { white-space: normal; overflow-wrap: anywhere; }
.help-body p > code:only-child { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
@media (max-width: 640px) { .help-body .docs-table th:first-child { width: 200px; } .help-body .docs-table th:last-child { width: 150px; } }

/* Help Center: the floating nav spans the page like the content (same side gutters) */
body.help .site-header .nav, body.help .site-header.is-scrolled .nav { max-width: none; width: calc(100% - 2 * var(--gutter)); }

/* Help Center phones: menu button at the far right of the pill, no gray fill (only a light hover where a mouse can hover) */
@media (max-width: 900px) { body.help .site-header .nav-toggle { margin-left: auto; } }
body.help .nav-toggle, body.help .nav-toggle:active, body.help .nav-toggle:focus { background: transparent; }
@media (hover: hover) { body.help .nav-toggle:hover { background: rgba(15, 22, 35, .06); } }
body.help.nav-open .nav-toggle { background: transparent; }
body.help.nav-open .nav-toggle span { background: var(--ink); }
