/* ═══════════════════════════════════════════════════════════════════════════
   HELP CENTER — Docs-style layout (sidebar + content)
   Hybrid of FAQ and Microsoft Docs: structured sections, sticky nav, clean typography.
   ═══════════════════════════════════════════════════════════════════════════ */

body.help-view {
  background: #f8fafc !important;
  color: #1e293b !important;
}
body.help-view .mp-nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.help-view .mp-nav .navbar-brand,
body.help-view .mp-nav .nav-link {
  color: #1e293b !important;
}
body.help-view .mp-nav .nav-link:hover {
  color: #0d9488 !important;
}

.help-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
@media (max-width: 768px) {
  .help-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 3rem;
    gap: 2rem;
  }
}

/* ─── Sidebar (sticky nav) ─── */
.help-nav {
  position: sticky;
  top: 5rem;
  height: fit-content;
}
@media (max-width: 768px) {
  .help-nav {
    position: static;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }
}

.help-nav-inner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.help-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 0.75rem 0;
  padding: 0 0.25rem;
}
.help-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.help-nav-list li {
  margin-bottom: 0.25rem;
}
.help-nav-list a {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.9375rem;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.help-nav-list a:hover {
  background: #f1f5f9;
  color: #0d9488;
}

/* ─── Main content ─── */
.help-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
@media (max-width: 768px) {
  .help-content {
    padding: 1.75rem 1.25rem;
  }
}

.help-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}
.help-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}
.help-lead {
  font-size: 1.0625rem;
  color: #64748b;
  margin: 0;
}
.help-lead a {
  color: #0d9488;
  font-weight: 500;
}

.help-section {
  margin-bottom: 2.5rem;
}
.help-section:last-of-type {
  margin-bottom: 0;
}

.help-section + .help-section {
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}
.help-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.25rem 0;
}

.help-section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #334155;
  margin: 1.25rem 0 0.5rem 0;
}
.help-section h3:first-child {
  margin-top: 0;
}

.help-section p,
.help-section li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 1rem 0;
}
.help-section p:last-child,
.help-section li:last-child {
  margin-bottom: 0;
}

.help-section a {
  color: #0d9488;
  font-weight: 500;
}
.help-section a:hover {
  text-decoration: underline;
}

.help-section ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem 0;
}
.help-section ol li {
  margin-bottom: 0.35rem;
}

/* ─── FAQ (details/summary) ─── */
.help-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.help-faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.help-faq-item:first-child {
  border-top: 1px solid #e2e8f0;
}
.help-faq-item summary {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.help-faq-item summary::-webkit-details-marker {
  display: none;
}
.help-faq-item summary::before {
  content: "+";
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d9488;
  width: 1.25em;
  flex-shrink: 0;
}
.help-faq-item[open] summary::before {
  content: "−";
}
.help-faq-item summary:hover {
  color: #0d9488;
}
.help-faq-item p {
  padding: 0 0 1rem 1.75rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

/* ─── CTA at bottom ─── */
.help-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}
.help-cta p {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 1rem 0;
}
.help-cta .btn {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  background: #059669;
  border-color: #059669;
  color: #fff;
}
.help-cta .btn:hover {
  background: #047857;
  border-color: #047857;
  color: #fff;
}
