.help-page { --help-accent: #377a12; }
.help-page .site-header { border-bottom: 1px solid var(--line); }
.help-skip { position: fixed; top: -70px; left: 20px; padding: 12px 20px; background: var(--mint); z-index: 100; }
.help-skip:focus { top: 12px; }
.help-layout { max-width: 1472px; margin: 0 auto; display: grid; grid-template-columns: 244px minmax(0, 800px) 192px; gap: 48px; padding: 112px 32px 80px; min-height: 80vh; }
.help-sidebar { position: sticky; top: 104px; height: calc(100vh - 132px); overflow-y: auto; padding-right: 20px; border-right: 1px solid var(--line); }
.help-home { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.025em; margin: 0 0 32px 10px; }
.help-home span { font-size: 12px; font-weight: 500; color: var(--green); border: 1px solid #d3e9c7; background: #f3faee; padding: 3px 7px; margin-left: 5px; border-radius: 5px; letter-spacing: 0; }
.help-nav-group { font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--muted); margin: 25px 10px 8px; }
.help-sidebar nav > a { display: block; padding: 9px 10px; border-radius: 6px; margin: 3px 0; font-size: 14px; line-height: 1.6; }
.help-sidebar nav > a:hover { background: var(--bg-alt); }
.help-sidebar nav > a[aria-current] { background: #f1f9ea; color: #2f660f; font-weight: 600; }
.help-sidebar-note { border-top: 1px solid var(--line); margin: 36px 10px 0; padding-top: 16px; font-size: 12px; color: var(--muted); }
.help-mobile-nav { display: none; }
.help-article { min-width: 0; }
.help-breadcrumb { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; margin: 0 0 22px; }
.help-breadcrumb > span:last-child { letter-spacing: .04em; }
.help-article h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.4; letter-spacing: -.04em; font-weight: 650; margin-bottom: 16px; }
.help-intro { font-size: 17px; color: var(--muted); line-height: 1.85; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.help-content { font-size: 16px; line-height: 1.95; }
.help-content h2 { font-size: 23px; line-height: 1.5; font-weight: 650; letter-spacing: -.035em; margin: 48px 0 20px; scroll-margin-top: 105px; }
.help-content h3 { font-size: 17px; line-height: 1.65; font-weight: 600; margin-bottom: 9px; }
.help-content p { margin: 14px 0; }
.help-content a:not(.help-card) { color: var(--help-accent); text-decoration: underline; text-decoration-color: #9bc585; text-underline-offset: 4px; }
.help-content a:hover { text-decoration-color: currentColor; }
.help-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color .15s, background .15s; }
.help-card:hover { border-color: #92c774; background: #fbfef9; }
.card-number { font: 12px ui-monospace, monospace; color: var(--green); padding-bottom: 28px; }
.help-card h3 { margin-bottom: 3px; }
.help-card p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; }
.card-arrow { position: absolute; top: 19px; right: 22px; color: var(--muted); }
.help-definitions { display: grid; grid-template-columns: 145px 1fr; gap: 0 20px; }
.help-definitions dt { font-weight: 600; border-bottom: 1px solid var(--line); padding: 18px 0; }
.help-definitions dd { color: var(--muted); border-bottom: 1px solid var(--line); padding: 18px 0; }
.help-flow { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 30px 12px; margin: 26px 0; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; }
.help-flow span { padding: 9px 18px; background: white; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 14px; }
.help-flow b { font-weight: 400; color: var(--faint); }
.help-note { padding: 15px 20px; background: #f6faf3; border-left: 3px solid #88bf64; border-radius: 0 6px 6px 0; margin: 24px 0; font-size: 14px; line-height: 1.9; }
.help-note p { margin: 0; }
.help-link-list { margin: 20px 0 30px; }
.help-content .help-muted, .help-content .help-source { color: var(--muted); font-size: 13px; line-height: 1.8; }
.help-source { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 32px !important; }
.help-step { display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 20px 0; }
.step-number { background: var(--ink); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; height: 28px; width: 28px; font: 13px ui-monospace, monospace; margin-top: 3px; }
.help-step p { margin: 0; }
.help-toc { position: sticky; top: 115px; align-self: start; font-size: 13px; }
.help-toc-title { font-size: 12px; font-weight: 600; margin: 0 0 12px; }
.help-toc a { display: block; color: var(--muted); padding: 6px 0 6px 14px; border-left: 1px solid var(--line); line-height: 1.7; }
.help-toc a:hover, .help-toc a.is-active { color: var(--help-accent); border-left-color: var(--help-accent); }
.help-pager { display: flex; justify-content: space-between; gap: 18px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.help-pager a { display: flex; flex-direction: column; gap: 5px; font-size: 14px; padding: 12px 0; }
.help-pager small { color: var(--muted); font-size: 12px; }
.help-pager .next { margin-left: auto; text-align: right; }
.help-pager strong { font-weight: 550; }
.help-content pre { padding: 18px; background: #f6f6f5; border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; line-height: 1.7; margin: 16px 0; font-size: 13px; }
.help-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; font-size: .86em; background: #f4f4f2; padding: 2px 4px; border-radius: 3px; }
.help-content pre code { padding: 0; background: none; font-size: inherit; }
.help-checks { padding-left: 24px; }
.help-checks li { padding: 8px 0 8px 5px; }
.help-table-wrap { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; margin: 28px 0; }
.help-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; line-height: 1.85; }
.help-table th, .help-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-table thead { background: #f7f7f5; }
.help-table th { font-weight: 550; }
.help-table tbody th { width: 34%; }
.help-table tr:last-child > * { border-bottom: 0; }
.connection-helper { border: 1px solid #bbd7a9; border-radius: 10px; padding: 24px; margin: 26px 0; background: #fdfffb; }
.connection-helper h3 { margin: 0; }
.connection-helper > p { font-size: 14px; }
.connection-helper label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.connection-helper textarea { font: 13px/1.7 ui-monospace, monospace; display: block; width: 100%; resize: vertical; border: 1px solid #c9cec5; border-radius: 6px; padding: 12px; color: var(--ink); background: white; min-height: 120px; }
.helper-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 14px; }
.help-text-button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 8px; }
#configMessage { font-size: 14px; color: #7d4113; }
#configMessage:empty { display: none; }
#configResults[hidden] { display: none; }
#configResults { border-top: 1px solid #dce8d3; margin-top: 24px; padding-top: 8px; }
.config-field { padding: 15px 0; border-bottom: 1px solid var(--line); }
.config-field:last-child { border-bottom: 0; }
.config-field-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.config-field-value { display: flex; align-items: flex-start; gap: 12px; }
.config-field-value code { flex: 1; background: white; line-height: 1.8; font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
.help-copy { flex-shrink: 0; border: 1px solid var(--line-strong); background: white; color: var(--ink); border-radius: 5px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.help-copy:hover { background: #eff7e9; border-color: #a9c695; }
.help-prompt { display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: #f7f7f5; border: 1px solid var(--line); border-radius: 8px; margin: 16px 0; font-size: 15px; }
.help-prompt span { flex: 1; }
.help-feedback { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #222; color: white; border-radius: 7px; padding: 10px 18px; font-size: 14px; z-index: 100; max-width: 90vw; box-shadow: 0 4px 20px #0002; }
.help-feedback:empty { display: none; }
.help-page :focus-visible { outline: 2px solid #4f8d29; outline-offset: 4px; }
@media (max-width: 1200px) { .help-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; } .help-toc { display: none; } }
@media (max-width: 800px) {
 .help-layout { display: block; padding: 86px 22px 40px; }
 .help-sidebar { position: static; height: auto; overflow: visible; border: 0; padding: 0; margin-bottom: 30px; }
 .help-home, .help-sidebar-note, .help-desktop-nav { display: none; }
 .help-mobile-nav { display: block; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
 .help-mobile-nav summary { cursor: pointer; font-size: 14px; font-weight: 600; }
 .help-mobile-nav nav { padding-bottom: 16px; }
 .help-article h1 { font-size: 29px; }
 .help-content h2 { font-size: 22px; margin-top: 38px; }
 .help-intro { font-size: 16px; }
 .help-table th, .help-table td { padding: 12px; }
 .help-definitions { grid-template-columns: 1fr; gap: 0; }
 .help-definitions dt { border-bottom: 0; padding-bottom: 0; }
 .help-definitions dd { padding-top: 5px; }
 .connection-helper { padding: 18px; }
}
@media (max-width: 480px) {
 .help-cards { grid-template-columns: 1fr; }
 .help-card { padding: 20px; }
 .card-number { padding-bottom: 18px; }
 .help-flow { gap: 8px; padding: 20px 10px; }
 .help-flow span { padding: 7px 10px; font-size: 13px; }
 .help-prompt { align-items: flex-start; gap: 10px; padding: 14px; }
 .help-step { gap: 10px; }
 .config-field-value { flex-wrap: wrap; }
 .config-field-value code { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .help-page { scroll-behavior: auto; } .help-card { transition: none; } }

/* Docs has its own navigation; the product site is a single return link. */
.help-page .header-inner { max-width: 1472px; }
.docs-wordmark { margin-left: 5px; color: var(--muted); font-weight: 400; }
.docs-back-link { font-size: 12px; color: var(--muted); line-height: 1.5; padding-block: 8px; }
.docs-back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.help-page .header-actions { gap: 20px; }
.help-page .site-footer { padding: 22px 32px; border-top: 1px solid var(--line); }
.help-page .footer-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1408px; gap: 16px; }
@media (max-width: 640px) {
  .help-page .header-inner { gap: 8px; }
  .help-page .header-actions { gap: 12px; flex-wrap: wrap; }
  .help-page .site-footer { padding-inline: 20px; }
  .help-page .footer-brand { order: initial; }
}
