/* Help center (/help/ and /help/<slug>/): page-help.php, inc/help-articles.php. Enqueued only on help pages. */

.ee-help-hero .hero-subtitle + .hero-subtitle { margin-top: var(--spacing-sm); }
.ee-help-hero .hero-subtitle a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.ee-help-meta { color: rgba(255,255,255,.8); font-size: .9375rem; margin: var(--spacing-sm) 0 0; }

/* Hub */
.ee-help-cat { margin: 0 0 var(--spacing-3xl); scroll-margin-top: calc(var(--header-height, 72px) + 16px); }
.ee-help-cat h2 { font-size: 1.5rem; line-height: 1.25; color: var(--color-slate-900); margin: 0 0 6px; }
.ee-help-cat-lead { color: var(--color-slate-600); margin: 0 0 var(--spacing-lg); max-width: 68ch; }
.ee-help-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-md); }
.ee-help-cards li { min-width: 0; }
.ee-help-cards a { display: grid; gap: 6px; height: 100%; padding: var(--spacing-lg); background: #fff; border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl); text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.ee-help-cards a:hover, .ee-help-cards a:focus-visible { border-color: var(--color-primary-600); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.ee-help-cards strong { color: var(--color-primary-700); font-size: 1.0625rem; line-height: 1.35; }
.ee-help-cards span { color: var(--color-slate-600); font-size: .9375rem; line-height: 1.55; }
.ee-help-hub-faq { margin: 0 auto var(--spacing-2xl); max-width: 860px; }

/* Article */
.ee-help-lead { font-size: 1.125rem; color: var(--color-slate-700); }
.ee-help-steps { counter-reset: ee-step; list-style: none; padding: 0; margin: var(--spacing-md) 0 0; display: grid; gap: 12px; }
.ee-help-steps li { counter-increment: ee-step; position: relative; padding-left: 44px; min-height: 30px; }
.ee-help-steps li::before { content: counter(ee-step); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-primary-600); color: #fff; font-weight: 700; font-size: .875rem; display: flex; align-items: center; justify-content: center; }
.ee-help-article code { font-size: .9em; background: var(--color-slate-100); padding: 1px 5px; border-radius: 4px; word-break: break-word; }
.ee-help-tips { margin: var(--spacing-xl) 0; padding: var(--spacing-lg); background: var(--color-primary-50); border: 1px solid var(--color-primary-100);
  border-left: 4px solid var(--color-primary-600); border-radius: var(--radius-lg); }
.ee-help-tips h2 { font-size: 1.125rem; margin: 0 0 var(--spacing-sm); }
.ee-help-tips ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.ee-help-stuck { margin: var(--spacing-2xl) 0 0; padding: var(--spacing-lg); background: var(--color-slate-50); border: 1px solid var(--color-slate-200); border-radius: var(--radius-xl); }
.ee-help-stuck h2 { font-size: 1.125rem; margin: 0 0 6px; }
.ee-help-stuck p { margin: 0; }
.ee-help-hub .ee-help-stuck { max-width: 860px; margin: 0 auto; }
.ee-related .ee-help-more { margin-top: var(--spacing-lg); }

@media (max-width: 1024px) { .ee-help-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ee-help-cards { grid-template-columns: 1fr; }
  .ee-help-steps li { padding-left: 38px; }
  .ee-help-steps li::before { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .ee-help-cards a { transition: none; } }
