/* help.css — /help searchable FAQ / help center (Phase 5).
   Uses the ATB design tokens from theme.css / landing.css (--ink, --teal-deep,
   --hairline, 'Newsreader', 'Geist Mono', etc.). Scoped under .help-wrap. */

.help-wrap { max-width: var(--container); margin: 0 auto; padding: 44px 32px 88px; }
@media (max-width: 880px) { .help-wrap { padding-left: 20px; padding-right: 20px; } }

/* ---- header + search ------------------------------------------------ */
.help-head { margin: 0 0 22px; }
.help-head .eyebrow {
  font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--teal-deep);
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500;
  padding: 5px 11px; border-radius: 99px; background: var(--teal-wash);
  border: 1px solid rgba(0,75,59,.18);
}
.help-head .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.help-head h1 {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.05; letter-spacing: -.025em; margin: 0 0 8px; color: var(--ink);
}
.help-head h1 em { font-style: italic; color: var(--teal-deep); font-weight: 400; }
.help-head .sub { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin: 0; max-width: 70ch; }

.help-search { position: relative; margin: 22px 0 6px; max-width: 560px; }
.help-search input {
  width: 100%; box-sizing: border-box; padding: 14px 16px 14px 44px;
  border: 1px solid var(--hairline-2); border-radius: 12px; font-size: 15px;
  font-family: inherit; color: var(--ink); background: #fff;
  box-shadow: 0 1px 2px rgba(11,31,23,.04); transition: border-color .15s ease, box-shadow .15s ease;
}
.help-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-wash); }
/* 16px stops iOS Safari auto-zooming when the search field is focused. */
@media (max-width: 560px) { .help-search input { font-size: 16px; } }
.help-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; }
.help-search .clr {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; cursor: pointer; color: var(--ink-mute);
  font-size: 20px; line-height: 1; padding: 6px; display: none;
}
.help-search.has-q .clr { display: block; }

/* ---- category chips ------------------------------------------------- */
.help-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.help-chip {
  font-family: 'Geist Mono', monospace; font-size: 11.5px; font-weight: 500;
  letter-spacing: .02em; padding: 7px 13px; border-radius: 99px; cursor: pointer;
  background: #fff; color: var(--ink-soft); border: 1px solid var(--hairline-2);
  transition: all .15s ease;
}
.help-chip:hover { border-color: var(--teal); color: var(--ink); }
.help-chip.active { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }

/* ---- categories + items --------------------------------------------- */
.help-cat { margin: 0 0 30px; }
.help-cat h2 {
  font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 1.4rem;
  letter-spacing: -.01em; color: var(--ink); margin: 0 0 3px;
}
.help-cat .cat-blurb { color: var(--ink-mute); font-size: 13px; margin: 0 0 14px; }

.help-item { border: 1px solid var(--hairline); border-radius: 12px; background: #fff; margin: 0 0 10px; overflow: hidden; }
.help-item + .help-item { margin-top: 10px; }
.help-q {
  width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 12px;
  text-align: left; background: none; border: 0; cursor: pointer; padding: 16px 18px;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.help-q:hover { background: var(--surface); }
.help-q .chev { flex: none; margin-left: auto; color: var(--ink-mute); transition: transform .2s ease; }
.help-item.open .help-q .chev { transform: rotate(180deg); }
.help-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.help-item.open .help-a { max-height: 600px; }
.help-a-inner { padding: 0 18px 16px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.help-a-inner p { margin: 0 0 8px; }
.help-a-inner p:last-child { margin-bottom: 0; }
.help-a-inner a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.help-a-inner code { font-family: 'Geist Mono', monospace; font-size: 12.5px; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
.help-a-inner ul { margin: 6px 0; padding-left: 20px; }

mark.help-hit { background: var(--teal-wash); color: inherit; padding: 0 1px; border-radius: 3px; }

/* hidden by search/filter */
.help-item.hide, .help-cat.hide { display: none; }

/* ---- no-results + contact fallback ---------------------------------- */
.help-empty { display: none; text-align: center; padding: 40px 20px; color: var(--ink-mute); font-size: 14px; }
.help-empty.show { display: block; }
.help-foot {
  margin: 34px 0 0; padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--teal-wash); display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.help-foot .ft { flex: 1; min-width: 220px; }
.help-foot h3 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 1.15rem; margin: 0 0 3px; color: var(--ink); }
.help-foot p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.help-foot .btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 18px;
  font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff;
  border: 1px solid rgba(0,75,59,.5); box-shadow: 0 8px 18px -8px rgba(0,75,59,.55);
}
.help-foot .btn:hover { transform: translateY(-1px); }
