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

.help-sidebar {
  position: sticky;
  top: calc(var(--header-offset) + var(--subnav-height) + 20px);
}

.help-sidebar__panel,
.help-main-panel {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.help-sidebar__panel {
  padding: 1rem;
  max-height: calc(100vh - (var(--header-offset) + var(--subnav-height) + 40px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.help-sidebar__title {
  margin: 0 0 0.35rem;
  color: #111827 !important;
  font-size: 1.1rem;
}

.help-sidebar__intro {
  margin: 0 0 0.9rem;
  color: #4b5563 !important;
  font-size: 0.95rem;
}

.help-sidebar__search {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  background: #f8fafc;
  color: #111827 !important;
  font: inherit;
}

.help-sidebar__search::placeholder {
  color: #6b7280;
}

.help-sidebar__results {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
  max-height: 22rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.help-sidebar__results.is-scrollable {
  padding-right: 0.2rem;
}

.help-search-result {
  display: block;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.help-search-result strong {
  display: block;
  color: #111827 !important;
  font-size: 0.96rem;
}

.help-search-result span {
  display: block;
  margin-top: 0.2rem;
  color: #4b5563 !important;
  font-size: 0.9rem;
}

.help-sidebar__tree {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.help-tree__group {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.help-tree__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  list-style: none;
  color: #111827 !important;
  font-weight: 600;
}

.help-tree__summary::-webkit-details-marker {
  display: none;
}

.help-tree__summary::after {
  content: "+";
  color: #4b5563 !important;
  font-weight: 700;
}

.help-tree__group[open] .help-tree__summary::after {
  content: "−";
}

.help-tree__links {
  display: grid;
  gap: 0.25rem;
  padding: 0 0.55rem 0.65rem;
}

.help-tree__link {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  color: #374151 !important;
  font-size: 0.95rem;
}

.help-tree__link:hover,
.help-tree__link:focus-visible {
  background: #f8fafc;
  color: #111827 !important;
}

.help-tree__link.is-active {
  background: #f0fdf4;
  color: #166534 !important;
  font-weight: 600;
}

.help-tree__empty {
  padding: 0 0.95rem 0.85rem;
  color: #6b7280 !important;
  font-size: 0.9rem;
}

.help-main-panel {
  padding: 1.4rem;
}

.help-article-page {
  --article-page-bg: #eef1f4;
  --article-surface: #ffffff;
  --article-border: rgba(17, 24, 39, 0.08);
  --article-text: #111827;
  --article-text-soft: #4b5563;
  --article-accent: #5ab562;
  background: var(--article-page-bg);
  color: var(--article-text);
}

.help-article-page main {
  padding-bottom: 5rem;
}

.help-article-page .article-shell,
.help-article-page .help-layout .article-shell {
  padding-top: 0;
}

.help-article-page .article-card {
  padding: 1.6rem;
  border: 1px solid var(--article-border);
  border-radius: 28px;
  background: var(--article-surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.help-article-page .article-card h1,
.help-article-page .article-card h2,
.help-article-page .article-card h3 {
  color: var(--article-text);
}

.help-article-page .article-card p,
.help-article-page .article-card li {
  color: var(--article-text-soft);
}

.help-article-page .article-card ul,
.help-article-page .article-card ol {
  margin: 0.7rem 0 1.1rem;
  padding-left: 1.2rem;
}

.help-article-page .article-card code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
  background: #f3f4f6;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.help-article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.help-article-page .article-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--article-text);
  font-size: 0.92rem;
  font-weight: 500;
}

.help-article-page .article-note {
  margin: 1rem 0 1.1rem;
  padding: 0.95rem 1rem;
  border-left: 4px solid var(--article-accent);
  border-radius: 0 16px 16px 0;
  background: #f0fdf4;
}

.help-article-page .article-note p {
  margin: 0;
  color: #111827;
}

.help-article-page .article-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
}

.help-article-page table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.help-article-page th,
.help-article-page td {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  text-align: left;
  vertical-align: top;
  color: var(--article-text-soft);
}

.help-article-page th {
  background: #f8fafc;
  color: var(--article-text);
  font-weight: 600;
}

.help-article-page .article-steps {
  display: grid;
  gap: 1.15rem;
}

.help-article-page .article-step {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.help-article-page .article-step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.help-article-page .article-step p {
  margin: 0.45rem 0 0;
}

.help-article-page .article-step-image {
  margin: 0.95rem 0 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.help-article-page .article-step-image img {
  display: block;
  width: 100%;
  height: auto;
}

.help-article-page .article-step-image--crop {
  height: var(--shot-height, 320px);
}

.help-article-page .article-step-image--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--shot-position, center top);
}

.help-article-page .article-step-image figcaption {
  padding: 0.7rem 0.9rem;
  color: #4b5563;
  font-size: 0.92rem;
}

.help-article-page .article-faq {
  margin-top: 1.5rem;
}

.help-article-page .article-faq details {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: #f8fafc;
  padding: 0.9rem 1rem;
}

.help-article-page .article-faq details + details {
  margin-top: 0.75rem;
}

.help-article-page .article-faq summary {
  cursor: pointer;
  color: var(--article-text);
  font-weight: 600;
}

.help-article-page .article-faq p {
  margin: 0.7rem 0 0;
}

.article-related {
  margin-top: 1.5rem;
}

.article-related h2 {
  margin: 0 0 0.9rem;
  color: #111827 !important;
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.article-related__item {
  display: block;
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.article-related__item strong {
  display: block;
  color: #111827 !important;
  font-size: 0.98rem;
}

.article-related__item span {
  display: inline-block;
  margin-top: 0.3rem;
  color: #166534 !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.article-related__item p {
  margin: 0.45rem 0 0;
  color: #4b5563 !important;
  font-size: 0.92rem;
}

.help-layout .help,
.help-layout .article-shell {
  padding-top: 0;
}

.help-layout .help .container,
.help-layout .article-shell .container {
  max-width: none;
  padding: 0;
}

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

  .help-sidebar {
    position: static;
  }

  .help-sidebar__panel {
    max-height: none;
    overflow: visible;
  }
}
