/* Help Center — extends marketing theme */
.help-hero {
  text-align: center;
  padding-bottom: 32px;
}

.help-hero__title {
  max-width: 640px;
  margin-inline: auto;
}

.help-hero__sub {
  color: var(--mk-text-2);
  font-size: clamp(15px, 2.5vw, 17px);
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.5;
}

.help-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 28px auto 0;
  width: 100%;
}

.help-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: var(--mk-input-bg);
  border: 1px solid var(--mk-input-border);
  border-radius: var(--mk-radius);
  color: var(--mk-input-text);
  font-size: 15px;
}

.help-search input::placeholder { color: var(--mk-input-placeholder); }

.help-search input:focus {
  outline: none;
  border-color: var(--mk-orange-border);
  box-shadow: 0 0 0 3px var(--mk-orange-glow);
}

.help-search .mk-btn {
  flex-shrink: 0;
  padding-inline: 22px;
}

.help-body {
  padding-top: 0;
}

.help-section + .help-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--mk-border);
}

.help-section__head {
  margin-bottom: 24px;
}

.help-section__head h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--mk-text);
}

.help-section__head p {
  margin: 0;
  color: var(--mk-text-2);
  font-size: 15px;
}

.help-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.help-results-head h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  margin: 0;
}

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

.help-articles--popular {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.help-article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.help-article:hover {
  border-color: var(--mk-orange-border);
  box-shadow: var(--mk-shadow);
  transform: translateY(-1px);
}

.help-article__main {
  min-width: 0;
  flex: 1;
}

.help-article__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--mk-text);
}

.help-article:hover .help-article__title {
  color: var(--mk-orange);
}

.help-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--mk-text-3);
}

.help-article__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-color, var(--mk-orange)) 12%, transparent);
  color: var(--cat-color, var(--mk-orange));
  font-weight: 600;
  font-size: 11px;
}

.help-article__time i,
.help-article__video i {
  margin-right: 4px;
}

.help-article__video {
  color: var(--mk-orange);
  font-weight: 600;
}

.help-article__chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mk-surface-2);
  color: var(--mk-text-3);
  font-size: 12px;
  transition: background 0.2s, color 0.2s;
}

.help-article:hover .help-article__chevron {
  background: var(--mk-orange-glow);
  color: var(--mk-orange);
}

.help-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.help-cat-card {
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.help-cat-card:hover {
  border-color: var(--mk-orange-border);
  box-shadow: 0 4px 24px rgba(255, 87, 34, 0.08);
  transform: translateY(-2px);
}

.help-cat-card.is-active {
  border-color: var(--mk-orange);
  background: color-mix(in srgb, var(--mk-orange) 6%, var(--mk-card-bg));
  box-shadow: 0 0 0 1px var(--mk-orange-border);
}

.help-cat-card__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
}

.help-cat-card__icon .fa {
  font-size: 26px;
  color: var(--mk-orange);
}

.help-cat-card__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--mk-text);
  line-height: 1.3;
}

.help-cat-card__count {
  font-size: 12px;
  color: var(--mk-text-3);
  margin: 0;
}

.help-empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--mk-text-2);
  border-radius: var(--mk-radius-md);
  background: var(--mk-surface-2);
}

.help-cta {
  padding: 56px 16px;
}

.help-cta h2 {
  font-size: clamp(24px, 5vw, 32px);
}

@media (max-width: 1024px) {
  .help-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .help-hero {
    padding-bottom: 24px;
  }

  .help-search {
    flex-direction: column;
    margin-top: 24px;
  }

  .help-search .mk-btn {
    width: 100%;
    justify-content: center;
  }

  .help-section + .help-section {
    margin-top: 40px;
    padding-top: 40px;
  }

  .help-articles--popular {
    grid-template-columns: 1fr;
  }

  .help-article {
    padding: 16px;
    gap: 12px;
  }

  .help-article__title {
    font-size: 14px;
  }

  .help-article__chevron {
    width: 28px;
    height: 28px;
  }

  .help-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .help-cat-card {
    padding: 18px 14px;
  }

  .help-cat-card__icon {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .help-cat-card__title {
    font-size: 13px;
  }

  .help-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-results-head .mk-btn {
    width: 100%;
    justify-content: center;
  }
}

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