/* Help Center — scoped under .help-* to reuse global tokens from cntx-home.css */

/* Override parent Twenty Twenty-Five (Manrope) on Help surfaces */
.help-section,
.help-section *,
.help-prose,
.help-prose .wp-block-heading,
.help-prose .wp-block-paragraph,
.help-prose .wp-block-list,
.help-hero-title,
.help-section-head h2,
.help-topic-card h3,
.help-card h3,
.help-mini-title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.help-wrap {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.help-hero {
  padding: 48px 0 28px;
}

.help-hero--compact {
  padding-bottom: 8px;
}

.help-hero-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .help-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    align-items: start;
  }
}

.help-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cntx-primary);
  margin-bottom: 10px;
}

.help-kicker i,
.help-kicker svg {
  width: 16px;
  height: 16px;
}

.help-hero-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--cntx-neutral-900);
}

.help-hero-sub,
.help-deck {
  margin: 12px 0 0;
  color: var(--cntx-neutral-600);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 58ch;
}

.help-search {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--cntx-border);
  background: var(--cntx-surface);
  box-shadow: var(--shadow-xs);
}

.help-search i,
.help-search svg {
  width: 18px;
  height: 18px;
  color: var(--cntx-neutral-500);
  flex: 0 0 auto;
}

.help-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cntx-neutral-900);
  font: inherit;
  min-width: 0;
}

.help-search-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--cntx-primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.help-search-btn i,
.help-search-btn svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.help-search-live {
  margin-top: 10px;
  border: 1px solid var(--cntx-border);
  background: var(--cntx-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.help-search-live a {
  display: block;
  padding: 10px 14px;
  color: var(--cntx-neutral-800);
  text-decoration: none;
  border-bottom: 1px solid var(--cntx-border);
  font-size: 14px;
}

.help-search-live a:last-child {
  border-bottom: 0;
}

.help-search-live a:hover,
.help-search-live a:focus-visible {
  background: var(--cntx-primary-soft);
  outline: none;
}

.help-sidecard {
  border: 1px solid var(--cntx-border);
  background: var(--cntx-surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.help-mini-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cntx-neutral-900);
}

.help-mini-list {
  display: grid;
  gap: 8px;
}

.help-mini-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 12px;
}

.help-mini-item:hover {
  background: rgba(124, 58, 237, 0.06);
}

.help-mini-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--cntx-primary);
  flex: 0 0 auto;
}

.help-mini-item strong {
  display: block;
  font-size: 14px;
  color: var(--cntx-neutral-900);
}

.help-mini-item span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--cntx-neutral-500);
}

.help-see-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cntx-primary);
  text-decoration: none;
}

.help-section {
  padding: 28px 0 40px;
}

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

.help-section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cntx-neutral-900);
}

.help-section-head p {
  margin: 6px 0 0;
  color: var(--cntx-neutral-600);
  font-size: 14px;
}

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

@media (min-width: 720px) {
  .help-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .help-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.help-topic-card,
.help-card {
  border: 1px solid var(--cntx-border);
  background: var(--cntx-surface);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.help-topic-card {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.help-topic-card:hover,
.help-card:hover {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.help-topic-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.10);
  color: var(--cntx-primary);
  flex: 0 0 auto;
}

.help-topic-icon i,
.help-topic-icon svg {
  width: 18px;
  height: 18px;
}

.help-topic-card h3,
.help-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cntx-neutral-900);
}

.help-topic-card p,
.help-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cntx-neutral-600);
}

.help-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.help-card-body {
  padding: 16px;
}

.help-card-top,
.help-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.help-card-top {
  margin-bottom: 10px;
  justify-content: space-between;
}

.help-tag,
.help-chip,
.help-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--cntx-neutral-600);
}

.help-tag,
.help-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.14);
  color: var(--cntx-primary);
  font-weight: 600;
}

.help-tag i,
.help-tag svg {
  width: 13px;
  height: 13px;
}

.help-empty {
  color: var(--cntx-neutral-600);
  grid-column: 1 / -1;
}

.help-cta-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background:
    radial-gradient(circle at 12% 20%, rgba(124, 58, 237, 0.12), transparent 42%),
    var(--cntx-surface);
}

.help-cta-card h2 {
  margin: 0;
  font-size: 22px;
  color: var(--cntx-neutral-900);
}

.help-cta-card p {
  margin: 8px 0 0;
  color: var(--cntx-neutral-600);
}

.help-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.help-crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--cntx-neutral-500);
}

.help-crumbs a {
  color: var(--cntx-neutral-700);
  text-decoration: none;
}

.help-crumbs a:hover {
  color: var(--cntx-primary);
}

.help-crumbs .dot {
  opacity: 0.5;
}

.help-single-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 980px) {
  .help-single-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.help-article-card {
  margin-top: 18px;
  border: 1px solid var(--cntx-border);
  background: var(--cntx-surface);
  border-radius: 18px;
  padding: 22px;
}

.help-prose {
  color: var(--cntx-neutral-800);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
}

.help-prose h2,
.help-prose .wp-block-heading {
  margin: 1.6em 0 0.55em;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cntx-neutral-900);
}

.help-prose h3 {
  margin: 1.3em 0 0.45em;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cntx-neutral-900);
}

.help-prose p,
.help-prose ul,
.help-prose ol {
  margin: 0 0 1em;
}

.help-prose a {
  color: var(--cntx-primary);
}

.help-sidebar-sticky {
  position: sticky;
  top: 88px;
}

.help-toc {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.help-toc a {
  color: var(--cntx-neutral-700);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.help-toc a:hover {
  color: var(--cntx-primary);
}

.help-related-block {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--cntx-border);
  background: var(--cntx-surface);
}

.help-related-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--cntx-neutral-900);
}

.help-related-block h2 + ul + h2 {
  margin-top: 18px;
}

.help-related-list {
  margin: 0;
  padding-left: 18px;
  color: var(--cntx-neutral-700);
}

.help-related-list a {
  color: var(--cntx-primary);
  text-decoration: none;
}

.help-related-list a:hover {
  text-decoration: underline;
}

[data-theme="dark"] .help-search,
[data-theme="dark"] .help-sidecard,
[data-theme="dark"] .help-topic-card,
[data-theme="dark"] .help-card,
[data-theme="dark"] .help-article-card,
[data-theme="dark"] .help-related-block,
[data-theme="dark"] .help-cta-card,
[data-theme="dark"] .help-search-live {
  background: rgba(12, 15, 34, 0.72);
  border-color: rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] .help-hero-title,
[data-theme="dark"] .help-section-head h2,
[data-theme="dark"] .help-topic-card h3,
[data-theme="dark"] .help-card h3,
[data-theme="dark"] .help-mini-title,
[data-theme="dark"] .help-mini-item strong,
[data-theme="dark"] .help-prose h2,
[data-theme="dark"] .help-prose h3,
[data-theme="dark"] .help-cta-card h2,
[data-theme="dark"] .help-related-block h2 {
  color: #e9ecff;
}

[data-theme="dark"] .help-hero-sub,
[data-theme="dark"] .help-deck,
[data-theme="dark"] .help-section-head p,
[data-theme="dark"] .help-topic-card p,
[data-theme="dark"] .help-card p,
[data-theme="dark"] .help-prose,
[data-theme="dark"] .help-cta-card p,
[data-theme="dark"] .help-time,
[data-theme="dark"] .help-crumbs {
  color: rgba(168, 176, 216, 0.85);
}
