/* Help center (help.navtrix.app) — on top of the site's stylesheet (header/footer, Inter font).
   Plain CSS: the help pages are generated outside Vite/Tailwind. Same dark palette as the site. */
:root { --hc-bg: #0b0f19; --hc-card: #111827; --hc-card2: #0f1626; --hc-line: rgba(255,255,255,.08); --hc-fg: #e5e7eb; --hc-mut: #9ca3af; --hc-acc: #38bdf8; --hc-red: #ef4444; --hc-ok: #10b981; --hc-side-w: 300px; }
html { scroll-padding-top: 120px; }
body.hc { margin: 0; background: var(--hc-bg); color: var(--hc-fg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
.hc a { color: inherit; }
.hc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Bar under the site header: title + index button (phones) */
.hc-bar { border-bottom: 1px solid var(--hc-line); background: #0a0f1c; }
.hc-bar-in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.hc-bar-title { font-weight: 700; font-size: 15px; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.hc-bar-title svg { color: var(--hc-acc); }
.hc-bar-btn { margin-left: auto; display: none; align-items: center; gap: 6px; background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--hc-line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hc-bar-btn:focus-visible, .hc-input:focus-visible, .hc-play:focus-visible, .hc a:focus-visible { outline: 2px solid var(--hc-acc); outline-offset: 2px; }

/* Layout */
.hc-wrap { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: var(--hc-side-w) minmax(0, 1fr); gap: 0; }
/* top = the site header (sticky: app bar 36 px + 64 px + border) */
.hc-side { position: sticky; top: 101px; align-self: start; height: calc(100vh - 101px); overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--hc-line); padding: 16px 12px 40px 16px; box-sizing: border-box; }
.hc-main { min-width: 0; padding: 20px 32px 64px; box-sizing: border-box; }
.hc-side-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; color: #fff; }
.hc-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* Search */
.hc-search { position: relative; }
.hc-input { width: 100%; box-sizing: border-box; background: #0d1424; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px 10px 36px; font: inherit; font-size: 14px; }
.hc-input::placeholder { color: #6b7280; }
.hc-search-ico { position: absolute; left: 11px; top: 11px; color: #6b7280; pointer-events: none; }
.hc-results { margin-top: 8px; }
.hc-results-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #0d1322; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; margin: 0; }
.hc-hit { display: block; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.hc-hit:hover, .hc-hit[aria-selected="true"] { background: rgba(56,189,248,.12); }
.hc-hit-mod { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--hc-mut); }
.hc-hit-title { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.hc-hit-sum { display: block; color: var(--hc-mut); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.hc mark { background: rgba(250,204,21,.28); color: #fff; border-radius: 3px; padding: 0 1px; }
.hc-res-count, .hc-res-hint, .hc-res-empty { font-size: 12px; color: var(--hc-mut); margin: 6px 10px; }

/* Index */
.hc-nav { margin-top: 14px; font-size: 14px; }
.hc-nav details { border-bottom: 1px solid var(--hc-line); }
.hc-nav summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 4px; color: #fff; font-weight: 600; font-size: 13.5px; }
.hc-nav summary::-webkit-details-marker { display: none; }
.hc-nav summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.hc-nav details[open] > summary::before { transform: rotate(45deg); }
.hc-nav summary a { text-decoration: none; flex: 1; }
.hc-nav summary .hc-n { color: #6b7280; font-weight: 500; font-size: 12px; }
.hc-nav ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 15px; }
.hc-nav li a { display: block; padding: 5px 8px; border-radius: 8px; color: #cbd5e1; text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.hc-nav li a:hover { background: rgba(255,255,255,.05); color: #fff; }
.hc-nav li a[aria-current="page"] { background: rgba(56,189,248,.14); color: #fff; box-shadow: inset 3px 0 0 var(--hc-acc); }

/* Content */
.hc-crumbs { font-size: 12.5px; color: var(--hc-mut); margin: 0 0 14px; }
.hc-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.hc-crumbs li + li::before { content: "›"; margin-right: 4px; color: #4b5563; }
.hc-crumbs a { text-decoration: none; }
.hc-crumbs a:hover { color: #fff; }
.hc-main h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 0 0 10px; color: #fff; letter-spacing: -.01em; }
.hc-main h2 { font-size: 21px; color: #fff; margin: 34px 0 12px; }
.hc-lead { font-size: 17px; line-height: 1.6; color: #d1d5db; margin: 0 0 8px; max-width: 70ch; }
.hc-badge { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; background: rgba(167,139,250,.16); color: #c4b5fd; margin-left: 8px; }
.hc-note { font-size: 12.5px; color: var(--hc-mut); margin: 6px 0 0; }
.hc-box { background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 16px; padding: 18px 20px; }
.hc-purpose { margin-top: 18px; }
.hc-purpose h2, .hc-tips h2 { margin-top: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--hc-acc); }
.hc-purpose p, .hc-tips p { margin: 0; line-height: 1.65; color: #d1d5db; }
.hc-tips { margin-top: 26px; border-left: 3px solid var(--hc-acc); }

/* Steps */
.hc-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.hc-step { margin: 0 0 26px; scroll-margin-top: 90px; }
.hc-say { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: #fff; line-height: 1.5; font-size: 15.5px; margin: 0 0 10px; }
.hc-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-red); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: -1px; }
.hc-fig { margin: 0; }
.hc-fig a { display: block; max-width: 100%; }
.hc-fig img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hc-fig.hc-phone a { max-width: 320px; }
.hc-res { margin: 10px 0 0; background: rgba(16,185,129,.1); border-left: 3px solid var(--hc-ok); border-radius: 8px; padding: 8px 12px; font-size: 14.5px; line-height: 1.55; color: #d1fae5; }
.hc-res b { color: #6ee7b7; }
.hc-final { margin-top: 8px; }
.hc-final summary { cursor: pointer; font-weight: 600; color: #fff; padding: 6px 0; }

/* Video facade */
.hc-video { margin: 22px 0 8px; max-width: 720px; }
.hc-play { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.hc-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.hc-play-ico { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: #e11d2f; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.hc-play-ico::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.hc-play:hover .hc-play-ico { background: #f43f5e; }
.hc-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }

/* Related + prev/next */
.hc-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0; list-style: none; margin: 0; }
.hc-card { display: block; height: 100%; box-sizing: border-box; text-decoration: none; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, background .15s; }
.hc-card:hover { border-color: rgba(56,189,248,.5); background: var(--hc-card2); }
.hc-card b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.hc-card span { display: block; color: var(--hc-mut); font-size: 13px; line-height: 1.5; }
.hc-card .hc-card-n { margin-top: 8px; color: var(--hc-acc); font-size: 12px; font-weight: 600; }
.hc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.hc-pn a { display: block; text-decoration: none; border: 1px solid var(--hc-line); border-radius: 14px; padding: 12px 16px; background: var(--hc-card); }
.hc-pn a:hover { border-color: rgba(56,189,248,.5); }
.hc-pn small { display: block; color: var(--hc-mut); font-size: 12px; }
.hc-pn b { color: #fff; font-size: 14.5px; }
.hc-pn .hc-next { text-align: right; grid-column: 2; }

/* Home */
.hc-hero { padding: 18px 0 8px; }
.hc-hero .hc-search { max-width: 640px; margin-top: 18px; }
.hc-hero .hc-input { font-size: 16px; padding: 14px 14px 14px 42px; border-radius: 14px; }
.hc-hero .hc-search-ico { left: 14px; top: 15px; }
.hc-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.hc-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.hc-videos .hc-video { margin: 0; }
.hc-videos p { margin: 6px 0 0; font-size: 13.5px; color: #d1d5db; }
.hc-faq details { background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.hc-faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.hc-faq p { margin: 8px 0 0; color: #d1d5db; line-height: 1.6; }
.hc-more { margin-top: 40px; }
.hc-more a { color: var(--hc-acc); }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* Text-only articles (configure a tracker, compatible trackers, FAQ) */
.hc-cols { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hc-callout { display: block; text-decoration: none; margin: 22px 0 6px; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(56,189,248,.45); background: linear-gradient(135deg, rgba(14,116,144,.25), rgba(16,185,129,.12)); }
.hc-callout:hover { border-color: rgba(56,189,248,.8); }
.hc-callout b { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
.hc-callout span { display: block; color: #d1d5db; font-size: 14px; line-height: 1.5; }
.hc-callout .hc-card-n { margin-top: 8px; color: var(--hc-acc); font-weight: 600; }
.hc-point, .hc-any, .hc-fam { margin-top: 18px; }
.hc-point h2, .hc-any h2 { margin-top: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--hc-acc); }
.hc-any { border-left: 3px solid var(--hc-ok); }
.hc-any p, .hc-fam p { margin: 8px 0 0; line-height: 1.6; color: #d1d5db; }
.hc-any a, .hc-fam a, .hc-faq-group a, .hc-note a { color: var(--hc-acc); }
.hc-fam h3 { margin: 0; font-size: 18px; color: #fff; }
.hc-fam h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--hc-mut); }
.hc-fam .hc-mut { margin-top: 2px; color: var(--hc-mut); font-size: 13.5px; }
.hc-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 12px 0 0; }
.hc-kv div { background: rgba(0,0,0,.25); border: 1px solid var(--hc-line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.hc-kv dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--hc-mut); }
.hc-kv dt .hc-badge { margin-left: 4px; padding: 1px 7px; font-size: 10px; background: rgba(16,185,129,.16); color: #6ee7b7; }
.hc-kv dd { margin: 4px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.hc-code { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.55); border: 1px solid var(--hc-line); color: #6ee7b7; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.hc-faq-group h2 { margin-top: 30px; }

/* Phones / tablets: the index becomes a drawer */
.hc-backdrop { display: none; }
@media (max-width: 1023px) {
  .hc-wrap { grid-template-columns: minmax(0, 1fr); }
  .hc-bar-btn { display: inline-flex; }
  .hc-side { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: auto; width: min(86vw, 340px); background: #0b1120; border-right: 1px solid rgba(255,255,255,.12); transform: translateX(-105%); transition: transform .2s ease; visibility: hidden; }
  .hc-open .hc-side { transform: none; visibility: visible; }
  .hc-side-head { display: flex; }
  .hc-open .hc-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); }
  .hc-open { overflow: hidden; }
  .hc-main { padding: 16px 16px 48px; }
  .hc-pn { grid-template-columns: 1fr; }
  .hc-pn .hc-next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .hc-side { transition: none; } }
