.helpcenter-container {
  max-width: 1200px;
}

.help-hero__header p {
  max-width: 640px;
  margin: 0 auto 1rem auto;
}

.help-search {
  max-width: 720px;
  margin: 0 auto;
}

.help-search .form-control-lg {
  padding-right: 4rem;
}

.help-search__button {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.help-search__suggestions {
  position: absolute;
  inset: auto 0 auto 0;
  margin-top: 0.5rem;
  z-index: 10;
  display: none;
  max-height: 16rem;
  overflow-y: auto;
}

.help-search__suggestions.show {
  display: block;
}

.help-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
}

.help-card:hover,
.help-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.7);
  text-decoration: none;
}

.help-card__icon {
  font-size: 2rem;
  color: var(--bs-primary);
}

.help-link {
  font-weight: 500;
  text-decoration: none;
}

.help-link:hover,
.help-link:focus-visible {
  text-decoration: underline;
}

.help-list-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.help-list-card__header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.help-list-card .list-group-item {
  background: transparent;
  color: inherit;
  padding: 1rem 1.5rem;
}

.help-article__meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.help-article__content figure.help-embed {
  margin: 2rem auto;
  background: rgba(15, 23, 42, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
  max-width: min(100%, 820px);
}

.help-article__content img {
  max-width: 100%;
  height: auto;
}

.help-article__content .help-embed__ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 0.5rem;
}

.help-article__content .help-embed__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.help-article__content figure.help-embed--image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.help-article__content figure.help-embed--image img {
  max-width: min(100%, 760px);
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

.help-article__content figure.help-embed--image figcaption {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

[data-bs-theme='light'] .help-article__content figure.help-embed--image figcaption {
  color: rgba(15, 23, 42, 0.7);
}

.help-toc {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 3px solid rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
}

.help-toc__item {
  margin-bottom: 0.5rem;
}

.help-toc__item--level-3 {
  padding-left: 1rem;
  font-size: 0.95rem;
}

.help-helpfulness {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.help-helpfulness__vote {
  min-width: 7rem;
}

.help-result__excerpt mark {
  background: rgba(99, 102, 241, 0.3);
  padding: 0 0.2rem;
  border-radius: 0.25rem;
}

[data-bs-theme='light'] .help-card,
[data-bs-theme='light'] .help-list-card,
[data-bs-theme='light'] .help-helpfulness {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

[data-bs-theme='light'] .help-card:hover,
[data-bs-theme='light'] .help-card:focus-visible {
  border-color: rgba(76, 114, 255, 0.45);
  box-shadow: 0 20px 36px rgba(76, 114, 255, 0.12);
}

[data-bs-theme='light'] .help-list-card__header {
  background: rgba(241, 246, 255, 0.9);
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

[data-bs-theme='light'] .help-list-card .list-group-item {
  background: rgba(255, 255, 255, 0.95);
}

[data-bs-theme='light'] .help-toc {
  background: rgba(240, 247, 255, 0.92);
  border-left-color: rgba(76, 114, 255, 0.45);
}

[data-bs-theme='light'] .help-article__content figure.help-embed {
  background: rgba(241, 246, 255, 0.9);
}

@media (max-width: 768px) {
  .help-search__button {
    width: 3rem;
    justify-content: center;
  }

  .help-search .form-control-lg {
    padding-right: 3.25rem;
  }

  .help-helpfulness {
    padding: 1rem;
  }
}
