/* Help center on top of site.css */
.docsbody { background: var(--bg-soft); }
.docs-hero {
  color: #E2E8F0;
  background: var(--navy) url("/assets/background.svg") center / cover no-repeat;
  padding: 64px 0 96px;
}
.docs-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; margin: 16px 0 14px; }
.docs-hero p { margin: 0 0 22px; color: #CBD5E1; max-width: 560px; font-size: 1.08rem; }
.docs-q {
  position: relative;
  max-width: 560px;
  margin: 0 0 22px;
}
.docs-q input {
  width: 100%;
  padding: 16px 18px;
  padding-inline-start: 52px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  backdrop-filter: blur(8px);
}
.docs-q input::placeholder { color: #94A3B8; }
.docs-q input:focus { outline: 0; border-color: rgba(34, 211, 238, .55); background: rgba(255, 255, 255, .12); }
.docs-q::after {
  content: "";
  position: absolute;
  top: 50%; inset-inline-start: 18px;
  width: 18px; height: 18px;
  translate: 0 -50%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2394A3B8' stroke-width='2' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3-3'/></svg>") center / contain no-repeat;
  pointer-events: none;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.docs-hero .cta { margin-top: 4px; }
.docs-strip { margin-top: -40px; position: relative; z-index: 2; }
.docs-topics { padding: 48px 0 8px; }
.docs-topics .head { margin-bottom: 28px; }
.docs-topics .features {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.docs-topics a {
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.docs-topics a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D9CCFF; color: inherit; }
.docs-topics a.active {
  border-color: #C4B5FD;
  background: #F8F5FF;
  box-shadow: var(--shadow);
  color: inherit;
}
.docs-topics img { width: 48px; height: 48px; margin-bottom: 12px; flex-shrink: 0; align-self: start; }
.docs-topics h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
  width: 100%;
  line-height: 1.45;
}
.docs-topics p { margin: 0; font-size: .92rem; color: var(--muted); }

.docs-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0 72px;
}
.docs-side {
  position: sticky; top: 84px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 12px 18px;
}
.docs-side nav { display: flex; flex-direction: column; gap: 2px; }
.docs-side .g { font-size: .72rem; font-weight: 800; color: var(--muted); padding: 12px 10px 4px; letter-spacing: .04em; }
.docs-side a {
  color: var(--text); font-weight: 600; font-size: .92rem; padding: 7px 10px; border-radius: 9px;
}
.docs-side a:hover, .docs-side a.active { background: #F1ECFF; color: var(--purple); }
.docs-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.docs-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 30px 30px; scroll-margin-top: 88px;
}
.docs-card[hidden] { display: none !important; }
.docs-card h2 { font-size: 1.55rem; margin: 0 0 6px; }
.docs-card > p.lead { color: var(--muted); margin: 0 0 18px; }
.docs-kicker { font-size: .78rem; font-weight: 800; color: var(--purple); background: #F1EBFF; padding: 3px 10px; border-radius: 99px; display: inline-block; margin-bottom: 10px; }

.docs-shot {
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0B0824;
  box-shadow: var(--shadow);
}
.docs-shot img { width: 100%; height: auto; display: block; }
.docs-shot figcaption {
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid #EEE9FA;
}
.steps b { display: block; color: var(--ink); font-size: 1.02rem; }
.steps span { display: block; color: var(--text); font-size: .95rem; margin-top: 2px; }
.stepn {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 900; color: #fff; background: var(--grad); flex-shrink: 0;
}

.path {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px;
}
.path i {
  display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px;
  background: #F1EBFF; color: var(--ink); font-style: normal; font-weight: 800; font-size: .9rem;
}
.path em { color: var(--purple); font-style: normal; font-weight: 900; }

.docs-card .note {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #F0FDFA; border: 1px solid #99F6E4; color: var(--ink); font-size: .95rem;
}
.docs-card .warn {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #FFF7ED; border: 1px solid #FED7AA; color: var(--ink); font-size: .95rem;
}
.docs-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.docs-links a {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-weight: 800;
}
.docs-links a span { font-weight: 600; color: var(--muted); font-size: .88rem; }
.docs-links a:hover { border-color: #D9CCFF; background: #F1ECFF; }

.docs-card table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 14px; font-size: .95rem; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); }
.docs-card th, .docs-card td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.docs-card tr:last-child td { border-bottom: 0; }
.docs-card th { color: var(--ink); font-weight: 800; background: var(--bg-soft); }

.docs-pager {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.docs-pager a {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-weight: 800; min-width: min(220px, 100%);
}
.docs-pager a span { font-weight: 600; color: var(--muted); font-size: .82rem; }
.docs-pager a:hover { border-color: #D9CCFF; background: #F1ECFF; }
.docs-pager a.next { margin-inline-start: auto; text-align: end; }
.docs-pager a[hidden] { display: none !important; }

.docs-empty { padding: 28px; color: var(--muted); display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.docs-empty.show { display: block; }
.docs-toc-btn { display: none; }
@media (max-width: 1080px) {
  .docs-topics .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .docs-side nav { display: none; }
  .docs-side.open nav { display: flex; }
  .docs-toc-btn { display: inline-flex; margin-top: 8px; }
  .docs-links { grid-template-columns: 1fr; }
  .docs-hero { padding: 40px 0 80px; }
  .docs-pager a { min-width: 100%; }
}
@media (max-width: 560px) {
  .docs-topics .features { grid-template-columns: 1fr; }
}
