.help {
  background: var(--bg);
}

.help-top {
  border-bottom: var(--section-border);
  background: rgba(10, 10, 11, 0.92);
  position: sticky;
  top: 0;
  z-index: 2;
}

.help-top-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.help-top-links {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.help-top-links a {
  color: var(--muted);
  text-decoration: none;
}

.help-top-links a:hover { color: #fff; }

.help-shell {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.help-nav {
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
  padding-bottom: 1rem;
}

.help-nav-label {
  margin: 1.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.help-nav-label:first-child { margin-top: 0; }

.help-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-nav a {
  display: block;
  padding: 0.28rem 0;
  color: #d4d4d8;
  text-decoration: none;
  font-size: 0.95rem;
}

.help-nav a:hover { color: #fff; }

.help-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 650;
}

.help-doc {
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.help-doc h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.help-doc h2 {
  margin: 2rem 0 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.help-doc h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.help-doc p { margin: 0 0 1rem; }

.help-doc ul,
.help-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.help-doc li { margin: 0.35rem 0; }

.help-doc code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.86em;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-related {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 42rem;
}

.help-related h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.help-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-related li { margin: 0.25rem 0; }

.help-index { margin-top: 2rem; }

.help-index h2 {
  margin: 1.4rem 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.help-index ul {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
}

.help-index li {
  margin: 0.7rem 0;
}

.help-index a {
  font-weight: 650;
  text-decoration: none;
}

.help-index span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .help-top-inner { flex-wrap: wrap; }

  .help-shell {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .help-nav {
    position: static;
    max-height: none;
    display: flex;
    gap: 0.35rem 0.9rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
  }

  .help-nav-label { display: none; }

  .help-nav ul {
    display: flex;
    gap: 0.9rem;
  }

  .help-nav a {
    white-space: nowrap;
    padding: 0.15rem 0;
  }
}
