.help-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.help-topbar .nav {
  gap: 1rem;
}

.help-top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.help-top-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.help-top-nav a[aria-current="page"] {
  color: var(--primary);
}

.help-support-pill {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
}

.help-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
  flex: 1;
  width: min(1180px, 94%);
}

.help-sidebar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 0.85rem 1.25rem;
  height: fit-content;
  position: sticky;
  top: 76px;
  box-shadow: 0 12px 28px rgba(32, 59, 114, 0.06);
}

.help-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.55rem 0.85rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  color: var(--text);
}

.help-sidebar-close {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.help-sidebar-nav details {
  border-radius: 12px;
  margin-bottom: 0.25rem;
}

.help-sidebar-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  font-weight: 700;
  color: var(--text);
  border-radius: 12px;
}

.help-sidebar-nav summary::-webkit-details-marker {
  display: none;
}

.help-sidebar-nav summary:hover,
.help-sidebar-nav a:hover {
  background: rgba(43, 79, 151, 0.08);
}

.help-sidebar-nav a {
  display: block;
  padding: 0.4rem 0.75rem 0.4rem 1.1rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.92rem;
}

.help-sidebar-nav a.is-active {
  color: var(--primary);
  background: rgba(43, 79, 151, 0.1);
  font-weight: 600;
}

.help-main {
  min-width: 0;
}

.help-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.help-menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.help-search {
  flex: 1;
}

.help-search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(32, 59, 114, 0.05);
}

.help-search input:focus {
  outline: 2px solid rgba(43, 79, 151, 0.35);
  outline-offset: 1px;
}

.help-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem 1.5rem 1.8rem;
  box-shadow: 0 16px 36px rgba(32, 59, 114, 0.07);
}

.help-hero h1,
.help-article h1,
.help-category-page h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  letter-spacing: -0.02em;
}

.help-lead {
  color: var(--muted);
  margin: 0 0 1.4rem;
  line-height: 1.55;
  max-width: 52rem;
}

.help-hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.help-hero h1 {
  position: relative;
  z-index: 2;
}

.help-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
}

.help-category-page h1,
.help-article h1 {
  position: relative;
  z-index: 2;
}

.help-sidebar {
  z-index: 2;
}

.help-category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, #fff, #f7faff);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.help-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 79, 151, 0.35);
  box-shadow: 0 14px 28px rgba(32, 59, 114, 0.1);
}

.help-category-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.help-category-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.help-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.1rem;
}

.help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.help-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.help-md {
  line-height: 1.65;
  color: var(--text);
}

.help-md h2,
.help-md h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  margin: 1.35rem 0 0.55rem;
}

.help-md p,
.help-md ul,
.help-md ol {
  margin: 0.55rem 0;
}

.help-md ul,
.help-md ol {
  padding-left: 1.25rem;
}

.help-md a {
  color: var(--primary);
  font-weight: 600;
}

.help-md blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(108, 208, 77, 0.12);
  border-radius: 0 12px 12px 0;
  color: var(--text);
}

.help-images {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.help-images img {
  width: 100%;
  max-width: 720px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.help-videos {
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0;
}

.help-videos iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #0f1b33;
}

.help-nav-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.help-nav-articles a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: #f8fbff;
}

.help-nav-articles a span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.help-nav-articles a.help-nav-next {
  text-align: right;
}

.help-related {
  margin-top: 1.5rem;
}

.help-related h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.7rem;
}

.help-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.help-related a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.help-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.help-article-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #f8fbff;
}

.help-article-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.help-article-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.help-cta-banner {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 45%, #1e40af);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.help-cta-banner a {
  color: #12301a;
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
}

.help-empty,
.help-loading,
.help-error {
  color: var(--muted);
  margin: 0.5rem 0;
}

.help-error {
  color: #b42318;
}

.help-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.1rem 0 1.4rem;
}

.help-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.help-footer-cta {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.help-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 28, 56, 0.42);
  z-index: 30;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .help-shell {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .help-menu-toggle {
    display: inline-flex;
  }

  .help-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 40;
    border-radius: 0 18px 18px 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow: auto;
  }

  .help-sidebar.is-open {
    transform: translateX(0);
  }

  .help-sidebar-close {
    display: inline-flex;
  }

  .help-top-nav {
    display: none;
  }

  .help-nav-articles {
    grid-template-columns: 1fr;
  }

  .help-nav-articles a.help-nav-next {
    text-align: left;
  }
}
