/* Help center layout and components */

.help-hero {
  margin-bottom: 2rem;
}

.help-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.45rem;
}

.help-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  color: var(--jk-text-muted);
}

.help-search {
  position: relative;
  max-width: 28rem;
}

.help-search input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.4rem;
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-lg);
  font-size: 0.95rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 0.75rem center no-repeat;
}

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

.help-search__hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--jk-text-light);
}

.help-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.help-quick-link {
  display: block;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--jk-transition), box-shadow var(--jk-transition);
}

.help-quick-link:hover {
  border-color: var(--jk-orange);
  box-shadow: var(--jk-shadow-sm);
}

.help-quick-link__icon {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.help-quick-link strong {
  display: block;
  color: var(--jk-navy);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.help-quick-link span {
  font-size: 0.82rem;
  color: var(--jk-text-muted);
}

.help-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: 1.25rem;
}

.help-sidebar nav {
  background: #fff;
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-lg);
  padding: 0.85rem;
  box-shadow: var(--jk-shadow-sm);
}

.help-sidebar__title {
  margin: 0 0 0.65rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jk-text-light);
}

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

.help-toc a {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: var(--jk-radius);
  font-size: 0.84rem;
  color: var(--jk-text-muted);
  text-decoration: none;
  transition: background var(--jk-transition), color var(--jk-transition);
}

.help-toc a:hover {
  background: var(--jk-bg-alt);
  color: var(--jk-navy);
}

.help-toc a.is-active {
  background: var(--jk-orange-soft);
  color: var(--jk-orange-dark);
  font-weight: 600;
}

.help-toc li + li {
  margin-top: 0.15rem;
}

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

.help-section {
  scroll-margin-top: 1.25rem;
}

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

.help-section__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.help-section__icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--jk-radius);
  background: var(--jk-orange-soft);
  color: var(--jk-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.help-callout {
  border-radius: var(--jk-radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.help-callout--tip {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.help-callout--note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.help-callout--warn {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.help-callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

.help-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.help-feature {
  padding: 0.85rem 1rem;
  background: var(--jk-bg-alt);
  border-radius: var(--jk-radius);
  border: 1px solid var(--jk-border);
}

.help-feature strong {
  display: block;
  color: var(--jk-navy);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.help-feature p {
  margin: 0;
  font-size: 0.84rem;
}

.help-status-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.35rem;
}

.help-status-demo--complete {
  background: #ecfdf5;
  color: #047857;
}

.help-status-demo--partial {
  background: #fef9c3;
  color: #a16207;
}

.help-status-demo--empty {
  background: #fef2f2;
  color: #b91c1c;
}

.help-faq {
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius);
  overflow: hidden;
}

.help-faq-item + .help-faq-item {
  border-top: 1px solid var(--jk-border);
}

.help-faq-item summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--jk-navy);
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.help-faq-item summary::after {
  content: "+";
  color: var(--jk-text-light);
  font-size: 1.1rem;
  font-weight: 400;
}

.help-faq-item[open] summary::after {
  content: "−";
}

.help-faq-item summary:hover {
  background: var(--jk-bg-alt);
}

.help-faq-item__body {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--jk-text-muted);
}

.help-faq-item__body p {
  margin: 0;
}

.help-no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--jk-text-muted);
}

.help-no-results[hidden] {
  display: none;
}

mark.help-highlight {
  background: #fef08a;
  color: inherit;
  padding: 0 0.1rem;
  border-radius: 2px;
}

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

  .help-sidebar {
    position: static;
  }

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