.help-hero {
  padding-bottom: 40px;
}

.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 24px 0 88px;
}

.help-toc {
  position: sticky;
  top: 80px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-3);
}

.help-toc h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.help-toc nav {
  display: grid;
  gap: 4px;
}

.help-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: 0.15s ease;
}

.help-toc a:hover,
.help-toc a.is-active {
  background: var(--orange-dim);
  color: var(--text);
}

.help-main {
  min-width: 0;
}

.help-search {
  margin-bottom: 28px;
}

.help-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.help-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

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

.help-search input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.help-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.help-section {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.help-section-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.help-section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.help-section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-3);
  scroll-margin-top: 88px;
  overflow: hidden;
}

.faq-item.is-hidden {
  display: none;
}

.faq-item.is-target {
  border-color: rgba(246, 130, 31, 0.55);
  box-shadow: 0 0 0 1px rgba(246, 130, 31, 0.25);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  cursor: pointer;
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-q .chev {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.faq-item.is-open .faq-q .chev {
  transform: rotate(180deg);
  color: var(--orange);
}

.faq-a {
  display: none;
  padding: 0 20px 20px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 450;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-a p {
  margin: 0 0 12px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-a ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.faq-a li {
  margin: 4px 0;
}

.faq-a pre,
.faq-a code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.faq-a pre {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.faq-id {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.faq-id a {
  color: var(--muted);
  text-decoration: none;
}

.faq-id a:hover {
  color: var(--orange);
}

.help-empty {
  display: none;
  padding: 28px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

.help-empty.is-visible {
  display: block;
}

.help-section.is-hidden {
  display: none;
}

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

  .help-toc {
    position: static;
  }

  .help-toc nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .help-toc a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: var(--bg);
  }
}
