body.help-page {
  min-height: 100vh;
}

.help-page .minimal-home-v3-nav {
  width: min(1380px, calc(100vw - 48px));
}

.help-page .minimal-home-v3-header-context {
  display: grid;
  flex: 0 1 520px;
  min-width: 280px;
  max-width: 520px;
}

.help-page .minimal-brand-mark.has-site-logo {
  background: #ffffff center / cover no-repeat;
  box-shadow: 0 14px 30px rgba(22, 22, 22, 0.08);
}

.help-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.help-publish-action[hidden] {
  display: none !important;
}

.help-shell {
  width: min(1380px, calc(100vw - 48px));
  margin: 20px auto 88px;
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.help-stage {
  width: 100%;
  justify-items: stretch;
  text-align: left;
}

.help-stage::before,
.help-stage::after {
  opacity: 0.8;
}

.help-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.78fr);
  gap: 18px;
  width: 100%;
}

.help-hero,
.help-side-card,
.help-docs-section {
  border: 1px solid rgba(22, 22, 22, 0.06);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 60px rgba(22, 22, 22, 0.06);
  backdrop-filter: blur(18px);
}

.help-hero {
  display: grid;
  gap: 18px;
  padding: 30px 32px 32px;
}

.help-hero h1 {
  margin: 0;
  max-width: 10ch;
  color: #171717;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.help-hero-text {
  margin: 0;
  max-width: 58ch;
  color: rgba(23, 23, 23, 0.66);
  font-size: 16px;
  line-height: 1.85;
}

.help-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.help-search-field {
  display: grid;
  gap: 10px;
}

.help-search-label {
  color: rgba(17, 17, 17, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-search-field input {
  min-height: 60px;
  width: 100%;
  padding: 0 20px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 30px rgba(22, 22, 22, 0.04);
  color: #171717;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.help-search-field input::placeholder {
  color: rgba(17, 17, 17, 0.34);
}

.help-search-field input:hover,
.help-search-field input:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 190, 23, 0.36);
  box-shadow: 0 18px 34px rgba(255, 190, 23, 0.12);
}

.help-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.help-search-submit {
  min-height: 60px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd84a 0%, #ffc41d 60%, #f4a600 100%);
  box-shadow: 0 18px 36px rgba(255, 190, 23, 0.18);
  color: #241a07;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.help-search-submit:hover,
.help-search-submit:focus-visible {
  outline: none;
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow: 0 22px 40px rgba(255, 190, 23, 0.24);
}

.help-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(17, 17, 17, 0.54);
  font-size: 13px;
}

.help-result-query {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.05);
  color: #1b1b1b;
  font-weight: 700;
}

.help-side-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
}

.help-side-card strong {
  color: #171717;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.help-side-card p {
  margin: 0;
  color: rgba(17, 17, 17, 0.64);
  font-size: 15px;
  line-height: 1.8;
}

.help-side-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-side-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 190, 23, 0.12);
  color: rgba(34, 24, 6, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.help-docs-section {
  display: grid;
  gap: 18px;
  padding: 26px 28px 30px;
}

.help-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.help-section-head h2 {
  margin: 0;
  color: #171717;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.help-section-copy {
  margin: 8px 0 0;
  color: rgba(17, 17, 17, 0.54);
  font-size: 14px;
  line-height: 1.7;
}

.help-docs-list {
  display: grid;
  gap: 14px;
}

.help-doc {
  overflow: clip;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 242, 0.94));
  box-shadow: 0 18px 42px rgba(22, 22, 22, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.help-doc[open] {
  transform: translateY(-1px);
  border-color: rgba(255, 190, 23, 0.2);
  box-shadow: 0 24px 50px rgba(22, 22, 22, 0.08);
}

.help-doc summary {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 22px 24px 20px;
  cursor: pointer;
}

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

.help-doc-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.help-doc-title {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.help-doc-title strong {
  color: #141414;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.help-doc-title span {
  color: rgba(17, 17, 17, 0.44);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-all;
}

.help-doc-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.help-doc-badge,
.help-doc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.help-doc-badge.is-active {
  background: rgba(24, 133, 94, 0.11);
  color: #13714d;
}

.help-doc-badge.is-pending {
  background: rgba(255, 190, 23, 0.14);
  color: #8d6100;
}

.help-doc-chip {
  background: rgba(17, 17, 17, 0.05);
  color: rgba(17, 17, 17, 0.58);
}

.help-doc-summary {
  margin: 0;
  color: rgba(17, 17, 17, 0.7);
  font-size: 15px;
  line-height: 1.8;
}

.help-doc-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0 24px 12px;
}

.help-doc-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(22, 22, 22, 0.04);
  color: #171717;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.help-doc-admin-btn:hover,
.help-doc-admin-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.16);
  box-shadow: 0 14px 26px rgba(22, 22, 22, 0.08);
}

.help-doc-admin-delete {
  color: #a23518;
}

.help-doc-admin-delete:hover,
.help-doc-admin-delete:focus-visible {
  border-color: rgba(162, 53, 24, 0.24);
}

.help-doc-body {
  padding: 0 24px 24px;
}

.help-doc-body .markdown-body {
  padding-top: 2px;
}

.help-page .markdown-body {
  color: rgba(17, 17, 17, 0.88);
  font-size: 15px;
  line-height: 1.82;
}

.help-page .markdown-body > :first-child {
  margin-top: 0;
}

.help-page .markdown-body > :last-child {
  margin-bottom: 0;
}

.help-page .markdown-body h1,
.help-page .markdown-body h2,
.help-page .markdown-body h3,
.help-page .markdown-body h4 {
  margin: 1.35em 0 0.6em;
  color: #171717;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.help-page .markdown-body p,
.help-page .markdown-body ul,
.help-page .markdown-body ol,
.help-page .markdown-body blockquote,
.help-page .markdown-body pre,
.help-page .markdown-body table,
.help-page .markdown-body hr {
  margin: 0 0 1em;
}

.help-page .markdown-body ul,
.help-page .markdown-body ol {
  padding-left: 1.3em;
}

.help-page .markdown-body li + li {
  margin-top: 0.38em;
}

.help-page .markdown-body code {
  padding: 0.15em 0.4em;
  border-radius: 0.45em;
  background: rgba(17, 17, 17, 0.06);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.help-page .markdown-body pre {
  overflow: auto;
  padding: 16px 18px;
  border-radius: 18px;
  background: #12161c;
  color: #f8fafc;
}

.help-page .markdown-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.help-page .markdown-body blockquote {
  padding-left: 16px;
  border-left: 4px solid rgba(255, 190, 23, 0.38);
  color: rgba(17, 17, 17, 0.66);
}

.help-page .markdown-body a {
  color: #0f6ed7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-page .markdown-body hr {
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.help-page .markdown-body table {
  width: 100%;
  border-collapse: collapse;
}

.help-page .markdown-body th,
.help-page .markdown-body td {
  padding: 8px 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  text-align: left;
}

.help-empty-state {
  display: grid;
  gap: 8px;
  padding: 28px 24px;
  border: 1px dashed rgba(17, 17, 17, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 17, 17, 0.64);
}

.help-empty-state strong {
  color: #171717;
  font-size: 18px;
}

.help-empty-state p {
  margin: 0;
  line-height: 1.75;
}

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

  .help-side-card {
    order: -1;
  }
}

@media (max-width: 860px) {
  .help-page .minimal-home-v3-nav {
    width: min(100vw - 24px, 100%);
  }

  .help-shell {
    width: min(100vw - 24px, 100%);
    margin-bottom: 52px;
  }

  .help-page .minimal-home-v3-header-context {
    min-width: 0;
    width: 100%;
  }

  .help-search-form {
    grid-template-columns: 1fr;
  }

  .help-search-actions {
    width: 100%;
  }

  .help-search-actions .help-search-submit,
  .help-search-actions .minimal-home-v3-link {
    flex: 1 1 0;
  }

  .help-doc-head,
  .help-section-head {
    display: grid;
    justify-items: start;
  }

  .help-doc-admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .help-hero,
  .help-side-card,
  .help-docs-section {
    border-radius: 24px;
  }

  .help-hero,
  .help-side-card,
  .help-docs-section,
  .help-doc summary,
  .help-doc-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .help-doc-admin-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .help-hero h1 {
    max-width: none;
    font-size: clamp(34px, 11vw, 52px);
  }
}
