/* ============================================================
 * Page Pulse — Help Center (directory + articles)
 * Two-pane docs layout: a collapsible category sidebar (shared by the
 * directory and every article page) + a main content column. Reuses the
 * global.css design tokens; no card thumbnails.
 * ============================================================ */

.help-wrap { padding: 56px 0 48px; }
.help-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 56px; align-items: start; }

/* ---- LEFT: sticky, collapsible category nav ---- */
.help-nav { position: sticky; top: 96px; }
.help-nav__home { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); text-decoration: none; margin-bottom: 20px; transition: color .12s; }
.help-nav__home:hover { color: var(--v-600); }
.help-nav__home svg { width: 15px; height: 15px; }
.help-nav__group { border-bottom: 1px solid var(--line); }
.help-nav__group:first-of-type { border-top: 1px solid var(--line); }
.help-nav__cat { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: 0;
  cursor: pointer; padding: 13px 0; font-family: inherit; font-weight: 700; font-size: 14px;
  color: var(--ink); letter-spacing: -.01em; text-align: left; }
.help-nav__cat .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.help-nav__cat-name { flex: 1 1 auto; }
.help-nav__chev { width: 15px; height: 15px; color: var(--faint); flex: 0 0 auto; transition: transform .18s ease; }
.help-nav__group.is-open .help-nav__chev { transform: rotate(180deg); }
.help-nav__list { list-style: none; margin: 0; padding: 0 0 0 17px; overflow: hidden;
  max-height: 0; opacity: 0; transition: max-height .22s ease, opacity .18s ease; }
.help-nav__group.is-open .help-nav__list { max-height: 40em; opacity: 1; padding-bottom: 10px; }
.help-nav__list li a { display: block; font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 7px 10px; margin: 1px 0; border-radius: 8px; line-height: 1.4; transition: color .12s, background .12s; }
.help-nav__list li a:hover { color: var(--v-600); }
.help-nav__list li a.is-current { color: var(--v-700); font-weight: 600; background: var(--v-50);
  box-shadow: inset 2px 0 0 var(--v-500); }

/* ---- MAIN (directory) ---- */
.help-main h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.help-main__sub { color: var(--muted); font-size: 17px; margin: 12px 0 0; max-width: 620px; }
.help-search { display: flex; align-items: center; gap: 11px; margin: 24px 0 8px; max-width: 620px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: 13px 20px; box-shadow: var(--sh-xs); transition: box-shadow .15s, border-color .15s; }
.help-search:focus-within { border-color: var(--v-400); box-shadow: var(--sh-glow); }
.help-search svg { width: 19px; height: 19px; color: var(--faint); flex: 0 0 auto; }
.help-search input { border: 0; outline: 0; background: transparent; font-size: 16px; width: 100%; color: var(--ink); }

.help-sec { padding-top: 34px; margin-top: 30px; border-top: 1px solid var(--line); }
.help-sec:first-of-type { border-top: 0; margin-top: 24px; padding-top: 0; }
.help-sec__head { display: flex; align-items: center; gap: 9px; font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.help-sec__head .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.help-sec__head .ct { font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  background: var(--bg-2); border-radius: 999px; padding: 2px 10px; }
.help-sec__list { list-style: none; margin: 8px 0 0; padding: 0; }
.help-item a { display: block; padding: 14px; margin: 0 -14px; border-radius: 12px; text-decoration: none;
  transition: background .12s ease; }
.help-item a:hover { background: var(--v-50); }
.help-item__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.help-item__title svg { width: 15px; height: 15px; color: var(--faint); opacity: 0; transform: translateX(-4px);
  transition: opacity .12s, transform .12s; flex: 0 0 auto; }
.help-item a:hover .help-item__title { color: var(--v-600); }
.help-item a:hover .help-item__title svg { opacity: 1; transform: translateX(0); color: var(--v-500); }
.help-item__desc { display: block; font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.help-empty { color: var(--muted); font-size: 16px; padding: 32px 0; }

/* ============================================================
 * ARTICLE PAGE (page-templates/help-article.php)
 * ============================================================ */
.help-article-main { min-width: 0; }
.help-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.help-breadcrumb a { color: var(--muted); text-decoration: none; }
.help-breadcrumb a:hover { color: var(--v-600); }
.help-breadcrumb svg { width: 15px; height: 15px; color: var(--faint); }
.help-article-main .wd-cats { margin-bottom: 14px; }
.help-article-main h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.help-article-main .help-lead { font-size: 18.5px; line-height: 1.55; color: var(--ink-soft); margin: 16px 0 0; max-width: 720px; }
.help-metaline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; color: var(--faint); font-size: 14px; }
.help-metaline svg { width: 16px; height: 16px; }

.help-body { max-width: 720px; margin-top: 8px; }
.help-body .help-part { margin-top: 44px; }
.help-body h2 { font-size: 24px; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 14px; }
.help-body p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
.help-body ul, .help-body ol { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px 4px; padding-left: 22px; }
.help-body li { margin: 8px 0; padding-left: 4px; }
.help-body ol { counter-reset: step; }
.help-body a { color: var(--v-600); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.help-body a:hover { color: var(--v-700); }
.help-body strong { color: var(--ink); font-weight: 600; }
.help-fig { margin: 20px 0 6px; }
.help-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.help-fig figcaption { font-size: 13.5px; color: var(--faint); margin-top: 10px; text-align: center; }
.help-tips { margin-top: 48px; background: var(--v-50); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 24px 26px; }
.help-tips h3 { font-size: 16px; margin: 0 0 14px; }
.help-tips ul { list-style: none; margin: 0; padding: 0; }
.help-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); margin: 9px 0; line-height: 1.5; }
.help-tips li svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--up); margin-top: 2px; }

/* ---- Responsive: drop the sidebar, stack the content ---- */
@media (max-width: 880px) {
  .help-layout { grid-template-columns: 1fr; gap: 0; }
  .help-nav { display: none; }
  .help-wrap { padding-top: 36px; }
  .help-main h1, .help-article-main h1 { font-size: 28px; }
  .help-body { max-width: none; }
}
