/* Help handbook shell. Type scale matches guides-article.css. */

.help-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.help-shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  width: 100%;
  flex: 1;
}

.help-sidebar {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
}

.help-sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.help-nav-group {
  margin-bottom: 1.15rem;
}

.help-nav-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

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

.help-nav-list a {
  display: block;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.help-nav-list a:hover {
  color: var(--text-primary);
  background: var(--bg-subtle, var(--bg-card-hover, transparent));
  text-decoration: none;
}

.help-nav-list a.active {
  color: var(--green);
  background: var(--green-glow);
  border-color: var(--green-border);
}

.help-article {
  min-width: 0;
  max-width: 760px;
}

.help-kicker {
  display: inline-flex;
  align-items: center;
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 0.5rem;
}

.help-article .article-title,
.help-article h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.help-article .article-subtitle,
.help-lede {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}

.help-article > p,
.help-prose p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body, var(--text-secondary));
  margin: 0 0 0.85rem;
}

.help-article h2,
.help-prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.85rem 0 0.65rem;
}

.help-article ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-body, var(--text-secondary));
}

.help-article li {
  margin-bottom: 0.35rem;
}

.help-article code {
  font-size: 0.88em;
}

.help-sidebar-panel {
  border: none;
}

.help-sidebar-panel > summary.help-sidebar-toggle {
  display: none;
}

.help-sidebar-label-wide {
  display: block;
}

.faq-search-box {
  margin-bottom: 1rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 0.7rem;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2.35rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-surface, var(--bg-card));
  color: var(--text-primary);
  outline: none;
}

.faq-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.faq-category-section {
  margin-bottom: 1.5rem;
}

.faq-category-section .category-heading {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.5rem;
}

.faq-category-section:first-of-type .category-heading {
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 5rem;
}

.faq-summary {
  padding: 0.7rem 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: var(--green);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--green);
}

.faq-answer {
  padding: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.faq-answer p {
  margin-bottom: 0.65rem;
}

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

.faq-answer strong {
  color: var(--text-primary);
}

.faq-glossary-link {
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .help-shell {
    grid-template-columns: 1fr;
    padding: 1.15rem 1rem 2.5rem;
  }

  .help-sidebar {
    position: static;
    max-height: none;
  }

  .help-sidebar-label-wide {
    display: none;
  }

  .help-sidebar-panel > summary.help-sidebar-toggle {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle, transparent);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    list-style: none;
  }

  .help-sidebar-panel > summary.help-sidebar-toggle::-webkit-details-marker {
    display: none;
  }

  .help-sidebar-panel:not([open]) .help-nav {
    display: none;
  }

  .help-sidebar-panel[open] .help-nav {
    display: block;
    margin-top: 0.75rem;
  }
}
