/* ============================================================
   Help Center — shared components
   Builds on the design tokens in styles.css. Accent text uses
   --copper-ink where defined (Birdo) and falls back to --accent.
   ============================================================ */

:root { --help-accent: var(--copper-ink, var(--accent)); }

/* === SEARCH === */
.help-search { max-width: 640px; margin: 0 auto 8px; }
.help-search-field { position: relative; }
.help-search-field svg {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--text-ter); pointer-events: none;
}
.help-search input {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  color: var(--text); background: var(--bg-card);
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius-pill); padding: 16px 22px 16px 52px;
  box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s;
}
.help-search input::placeholder { color: var(--text-ter); }
.help-search input:focus { outline: none; border-color: var(--help-accent); }
.help-search-hint { text-align: center; font-size: 13px; color: var(--text-sec); margin-top: 14px; }

/* === CATEGORY SECTIONS === */
.help-cat { margin-top: 56px; }
.help-cat:first-of-type { margin-top: 0; }
.help-cat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--help-accent); display: block;
  padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}

/* === ARTICLE CARDS (clickable) === */
.help-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.help-card {
  display: block; text-decoration: none; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.help-card:hover { border-color: var(--help-accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.help-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: -0.2px; }
.help-card p { font-family: var(--font-body); font-size: 14px; color: var(--text-sec); line-height: 1.6; margin: 0; }
.help-card-arrow { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--help-accent); }

/* === NO RESULTS === */
.help-no-results { display: none; text-align: center; color: var(--text-sec); padding: 48px 0; }
.help-no-results strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; font-family: var(--font-head); }

/* === BREADCRUMB === */
.help-breadcrumb { font-size: 13px; color: var(--text-sec); margin-bottom: 28px; }
.help-breadcrumb a { color: var(--help-accent); text-decoration: none; }
.help-breadcrumb a:hover { text-decoration: underline; }
.help-breadcrumb span { color: var(--text-ter); margin: 0 8px; }

/* === ARTICLE === */
.help-article { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; }
.help-article-cat { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--help-accent); display: block; margin-bottom: 12px; }
.help-article h1 { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; color: var(--text); margin-bottom: 16px; text-wrap: balance; }
.help-article-lede { font-size: 18px; color: var(--text-sec); line-height: 1.7; margin-bottom: 8px; }
.help-article-body { margin-top: 40px; }
.help-article-body h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--text); margin: 40px 0 14px; letter-spacing: -0.3px; }
.help-article-body h2:first-child { margin-top: 0; }
.help-article-body h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); margin: 28px 0 8px; }
.help-article-body p { color: var(--text-sec); margin-bottom: 16px; line-height: 1.75; }
.help-article-body ul { padding-left: 20px; color: var(--text-sec); margin-bottom: 16px; }
.help-article-body li { margin-bottom: 8px; line-height: 1.7; }
.help-article-body li strong, .help-article-body p strong { color: var(--text); }
.help-article-body a { color: var(--help-accent); text-decoration: underline; }

/* === NUMBERED STEPS === */
.help-steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; }
.help-steps > li {
  position: relative; counter-increment: step;
  padding: 0 0 24px 52px; margin: 0;
}
.help-steps > li:not(:last-child) { border-left: 2px solid var(--border); margin-left: 15px; padding-left: 37px; }
.help-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  /* Solid (opaque) fill so the connecting line never shows through the number. */
  background: var(--help-accent); color: var(--text-inv);
  border: 1px solid var(--help-accent);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.help-steps > li:not(:last-child)::before { margin-left: -17px; }
.help-step-title { display: block; font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 16px; }
.help-steps > li p { margin-bottom: 0; }

/* === RELATED ARTICLES === */
.help-related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); }
.help-related-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--help-accent); display: block; margin-bottom: 18px; }
.help-related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.help-related a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.help-related a:hover { color: var(--help-accent); }
.help-related a::before { content: '→'; color: var(--help-accent); }

@media (max-width: 768px) {
  .help-article { padding: 40px 20px 72px; }
}
