/* Help center — light/dark via landingv2 theme tokens */

.lv-help {
  padding: 8px 0 100px;
}

.lv-help-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

/* —— TOC —— */
.lv-help-toc-sticky {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 16px);
  max-height: calc(100vh - var(--nav-h, 72px) - 32px);
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--elevated-soft);
  scrollbar-width: thin;
}

.lv-help-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--muted);
}

.lv-help-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.lv-help-search input::placeholder {
  color: var(--muted);
}

.lv-help-toc-group + .lv-help-toc-group {
  margin-top: 16px;
}

.lv-help-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.lv-help-toc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.lv-help-toc-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.lv-help-toc-nav a:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--ink);
}

.lv-help-toc-nav a.is-active {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-deep);
}

.lv-help-toc-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.lv-help-toc-foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.lv-help-toc-foot a:hover {
  text-decoration: underline;
}

/* —— Main content —— */
.lv-help-group-label {
  font-family: var(--font-display, "Cabinet Grotesk", Satoshi, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 14px;
}

.lv-help-group-label:not(:first-child) {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.lv-help-section {
  scroll-margin-top: calc(var(--nav-h, 72px) + 24px);
  margin-bottom: 18px;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--elevated);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

:root[data-theme="dark"] .lv-help-section,
:root:not([data-theme="light"]) .lv-help-section {
  box-shadow: none;
}

.lv-help-section:target,
.lv-help-section:has(+ *) {
  /* keep cascade calm */
}

.lv-help-section:target {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.lv-help-section-head {
  margin-bottom: 14px;
}

.lv-help-section-title {
  font-family: var(--font-display, "Cabinet Grotesk", Satoshi, sans-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}

.lv-help-section-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.lv-help-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.lv-help-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.lv-help-body li > p {
  margin: 0 0 8px;
}

.lv-help-body li > p:last-child {
  margin-bottom: 0;
}

.lv-help-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.lv-help-body a:hover {
  text-decoration: underline;
}

.lv-help-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  margin: 8px auto 0;
}

.lv-help-body .text-center,
.lv-help-body li.text-center {
  text-align: center;
}

.lv-help-body code {
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--ink);
}

/* —— Video card —— */
.lv-help-video {
  position: relative;
  max-width: 560px;
  margin: 0 auto 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0b10;
  aspect-ratio: 16 / 9;
}

.lv-help-video a {
  display: block;
  position: relative;
  height: 100%;
  text-decoration: none;
}

.lv-help-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.lv-help-video a:hover .lv-help-video-img {
  opacity: 1;
  transform: scale(1.02);
}

.lv-help-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ff0033;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.lv-help-video a:hover .lv-help-video-play {
  transform: translate(-50%, -50%) scale(1.06);
}

.lv-help-yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: #c00;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  width: fit-content;
}

.lv-help-yt-btn:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
}

.lv-help-body > .lv-help-yt-btn,
.lv-help-body .lv-help-yt-btn {
  display: flex;
}

.lv-help-empty {
  margin-top: 24px;
  padding: 28px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: var(--elevated-soft);
}

.lv-help-empty a {
  color: var(--accent);
  font-weight: 600;
}

/* —— Back to top —— */
.lv-help-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lv-help-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .lv-help-layout {
    grid-template-columns: 1fr;
  }

  .lv-help-toc-sticky {
    position: relative;
    top: 0;
    max-height: none;
  }

  .lv-help-toc-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lv-help-toc-group {
    min-width: 160px;
  }
}

@media (max-width: 640px) {
  .lv-help {
    padding-bottom: 72px;
  }

  .lv-help-section {
    padding: 16px;
    border-radius: 14px;
  }

  .lv-help-video-play {
    width: 52px;
    height: 52px;
  }
}
