.help-document {
  scroll-behavior: smooth;
}

.help-page-body {
  margin: 0;
  min-height: 100vh;
  background: #fafaf8;
  color: #212f3d;
}

.help-page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.help-page-header .brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.help-page-header .app-topbar-brand {
  color: #212f3d;
  font-size: 1.1rem;
}

.help-page-header .app-topbar-brand span {
  display: inline;
}

.help-page-header .public-page-nav a {
  color: #374151;
}

.help-page-header .public-page-nav a.active,
.help-page-header .public-page-nav a:hover {
  color: #111827;
  background: #f1f3f5;
}

.help-page-header .public-page-nav .public-page-signin {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.help-page-header .public-page-nav .public-page-signin:hover {
  background: #292929;
  color: #ffffff;
}

.help-skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
}

.help-skip-link:focus {
  top: 12px;
}

.help-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 48px;
  width: min(1320px, 100%);
  margin: 0;
  padding: 36px 32px 72px;
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: calc(var(--help-header-height, 72px) + 24px);
  max-height: calc(100dvh - var(--help-header-height, 72px) - 48px);
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: thin;
}

.help-topic-menu > summary {
  display: none;
}

.help-sidebar-content {
  display: grid;
  gap: 20px;
}

.help-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #d9dee5;
  border-radius: 7px;
  background: #ffffff;
  color: #64748b;
}

.help-search:focus-within {
  outline: 2px solid #b8dfc4;
  outline-offset: 2px;
}

.help-search input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.88rem;
  color: #212f3d;
}

.help-search input[type="search"]:focus {
  outline: none;
  box-shadow: none;
}

.help-topic-nav {
  display: grid;
  gap: 24px;
}

.help-nav-group {
  display: grid;
  gap: 3px;
}

.help-nav-group h2 {
  margin: 0 0 7px;
  padding: 0 10px;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.help-topic-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #4b5563;
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
}

.help-topic-nav a > .bi {
  flex: 0 0 16px;
  text-align: center;
}

.help-topic-nav a:hover {
  background: #eef0f2;
  color: #111827;
}

.help-topic-nav a[aria-current="location"] {
  background: #e6f7eb;
  color: #166c35;
  font-weight: 600;
}

.help-topic-nav a:focus-visible,
.help-support-actions a:focus-visible {
  outline: 2px solid #168a3a;
  outline-offset: 2px;
}

.help-search-status {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
}

.help-content {
  min-width: 0;
  max-width: 880px;
  padding: 8px 0 0;
}

.help-content:focus {
  outline: none;
}

.help-intro {
  margin-bottom: 32px;
}

.help-intro .eyebrow {
  margin-bottom: 12px;
  color: #168a3a;
  font-size: 0.78rem;
}

.help-intro h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.help-intro > p:last-child {
  max-width: 640px;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
}

.help-article {
  padding: 30px 0 36px;
  border-bottom: 1px solid #e5e7eb;
  scroll-margin-top: calc(var(--help-header-height, 72px) + 22px);
}

.help-article:first-of-type {
  padding-top: 0;
}

.help-article h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.35;
}

.help-article h3 {
  margin: 24px 0 10px;
  color: #273244;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.help-article p,
.help-article li {
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.75;
}

.help-article p {
  margin: 0 0 14px;
}

.help-article > :last-child {
  margin-bottom: 0;
}

.help-article ul {
  padding-left: 22px;
  margin: 14px 0 18px;
}

.help-article li + li {
  margin-top: 8px;
}

.help-content a {
  color: #176b3b;
  text-underline-offset: 3px;
}

.help-content strong {
  color: #273244;
  font-weight: 600;
}

.help-article .help-workflow {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.help-workflow li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.help-workflow > li > .bi {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #e6f7eb;
  color: #168a3a;
}

.help-workflow p {
  margin: 4px 0 0;
}

.help-callout {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 22px 0;
  padding: 16px;
  border-left: 3px solid #9ad4ad;
  border-radius: 5px;
  background: #f0f8f2;
}

.help-callout > .bi {
  color: #168a3a;
  padding-top: 4px;
}

.help-callout p {
  margin: 0;
}

.help-app-description {
  margin: 26px 0;
}

.help-app-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.help-app-heading img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.help-app-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.help-contact-section {
  border-bottom: 0;
}

.help-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.help-support-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d6dce3;
  border-radius: 7px;
  font-size: 0.88rem;
  text-decoration: none;
}

.help-support-actions .help-contact-button {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.help-support-actions .help-visit-button {
  background: #ffffff;
  color: #111827;
}

.help-no-results {
  color: #64748b;
  padding: 24px 0;
  line-height: 1.7;
}

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

  .help-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .help-topic-menu {
    border: 1px solid #d9dee5;
    border-radius: 7px;
    background: #ffffff;
  }

  .help-topic-menu > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 0.94rem;
    font-weight: 500;
  }

  .help-topic-menu > summary::-webkit-details-marker {
    display: none;
  }

  .help-topic-menu[open] > summary > .bi {
    transform: rotate(180deg);
  }

  .help-sidebar-content {
    padding: 4px 16px 16px;
  }
}

@media (max-width: 620px) {
  .help-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }

  .help-page-header .public-page-nav {
    gap: 4px;
  }

  .help-page-header .public-page-nav a {
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .help-layout {
    padding: 20px 18px 48px;
  }

  .help-intro h1 {
    font-size: 1.8rem;
  }

  .help-article h2 {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-document {
    scroll-behavior: auto;
  }
}
