.help-dialog {
  width: 760px;
}

.help-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
}

.help-dialog .dialog-heading {
  flex: none;
  padding-bottom: 12px;
}

.help-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 28px 24px;
  font-size: 14px;
  line-height: 1.55;
}

.help-intro {
  margin: 0 0 16px;
}

.help-section {
  border-top: 1px solid var(--line);
}

.help-section:last-child {
  border-bottom: 1px solid var(--line);
}

.help-section summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 4px;
  font-weight: 650;
  cursor: pointer;
}

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

.help-section summary:hover {
  color: var(--blue-dark);
}

.help-section summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.help-section summary > .icon {
  flex: none;
  color: var(--blue-dark);
}

.help-section .help-chevron {
  margin-inline-start: auto;
  width: 16px;
  height: 16px;
}

.help-section[open] .help-chevron {
  transform: rotate(180deg);
}

.help-section-body {
  padding: 0 4px 14px 34px;
}

.help-section-body > * {
  margin: 0 0 8px;
}

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

.help-section-body ol {
  padding-inline-start: 20px;
}

.help-section-body li + li {
  margin-top: 6px;
}

.help-reference dt {
  margin-top: 12px;
  font-weight: 650;
}

.help-reference dt:first-child {
  margin-top: 0;
}

.help-reference dd {
  margin: 2px 0 0;
}

.help-example {
  margin-top: 14px;
  border-inline-start: 3px solid var(--blue);
  padding: 2px 0 2px 10px;
}

.help-api code {
  display: block;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.help-section-body code {
  overflow-wrap: anywhere;
}

.help-links {
  padding-inline-start: 20px;
}

.help-links a {
  color: var(--blue-dark);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .help-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .help-section-body {
    padding-left: 4px;
  }
}
