/* Help Center: layered on top of styles.css.
   Shared across every /help/ page (index + articles) since they all reuse
   the same search box, card grid, article prose, and screenshot framing. */

/* ---------- Header ---------- */
.help-hero {
  padding: 72px 0 0;
}
.help-hero .section-head { max-width: none; }
.help-hero h1 { font-size: clamp(34px, 3.8vw, 56px); margin-top: 14px; }
.help-hero .lede { margin-top: 16px; }

.help-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}
.help-back:hover { color: var(--amber-light); }
.help-back::before { content: "←"; }

/* ---------- Search ---------- */
.help-search-wrap {
  margin-top: 36px;
  max-width: 560px;
}
.help-search {
  position: relative;
}
.help-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--deep);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.help-search input::placeholder { color: var(--text-faint); }
.help-search input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}
.help-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}
.help-search-count {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 13px;
  min-height: 18px;
}

/* ---------- Article grid (index page) ---------- */
.help-cards { padding: 48px 0 96px; }
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.help-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: block;
}
.help-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}
.help-card-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.help-card h3 { font-size: 20px; margin-bottom: 8px; }
.help-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.help-empty {
  display: none;
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 15px;
}
.help-empty.show { display: block; }

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

/* ---------- Article page ---------- */
.help-article-wrap { padding: 40px 0 88px; }
.help-article {
  max-width: 760px;
  margin: 0 auto;
}
.help-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.help-article h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 20px;
}
.help-article h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--text);
}
.help-article h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--text);
}
.help-article p, .help-article li {
  color: rgba(226, 232, 240, 0.82);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.help-article ul, .help-article ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.help-article li { margin-bottom: 8px; }
.help-article strong { color: var(--text); font-weight: 600; }
.help-article a { color: var(--amber-light); text-decoration: underline; text-underline-offset: 3px; }
.help-article a:hover { color: var(--amber); }

.help-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0 36px;
  background: rgba(255, 255, 255, 0.015);
}
.help-toc p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.help-toc ul { margin: 0; padding-left: 18px; }
.help-toc li { margin-bottom: 4px; font-size: 15px; }
.help-toc a { color: var(--text-dim); }
.help-toc a:hover { color: var(--amber-light); }

.help-figure {
  margin: 22px 0 28px;
}
.help-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  display: block;
}
.help-figure figcaption {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

.help-note {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.05);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.help-note strong { color: var(--text); }

.help-next-nav {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.help-next-nav a {
  color: var(--text-dim);
  font-size: 14px;
}
.help-next-nav a:hover { color: var(--amber-light); }
.help-next-nav .next { text-align: right; }
.help-next-nav .label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
