/* help.css — the in-app Help & guide view. Additive layer (loaded after
   ux-settings.css); consumes the app's alias tokens (--card/--line/--ink/…)
   so dark mode Just Works with zero extra rules. */

.help-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.help-search {
  flex: 1 1 280px;
  max-width: 440px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.help-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.help-count { color: var(--ink-soft); font-size: 12.5px; }

/* quick-jump chips to each group */
.help-toc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.help-toc a {
  font-size: 12.5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  text-decoration: none;
}
.help-toc a:hover { color: var(--ink); border-color: var(--ink-faint); }

.help-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px 10px;
  margin-bottom: 18px;
}
.help-group > h2 {
  font-size: 16px;
  margin: 0 0 4px;
}
.help-intro { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 10px; }

.help-item { border-top: 1px solid var(--line-soft, var(--line)); }
/* The app already puts a rotating "▸" chevron on every <details> summary
   (studio-v2.css F60) — adopt that affordance instead of adding a second one.
   Block display keeps titles flush left; the chevron rotates on open. */
.help-item summary {
  cursor: pointer;
  padding: 12px 8px 12px 4px;
  font-weight: 600;
  font-size: 13.5px;
  list-style: none;
  display: block;
  text-align: left;
}
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::marker { content: ""; display: none; }
.help-item > div { padding: 0 4px 14px; font-size: 13.5px; color: var(--ink-soft); }
.help-item > div p { margin: 0 0 8px; }
.help-item > div ol, .help-item > div ul { margin: 0 0 10px; padding-left: 20px; }
.help-item > div li { margin: 3px 0; }
.help-item > div strong { color: var(--ink); }
.help-item > div code {
  font-family: var(--mono, monospace);
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  word-break: break-all;
}
.help-note {
  border-left: 3px solid var(--amber, var(--accent));
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  background: var(--bg);
  font-size: 12.5px;
}
.help-item.help-hit-hidden, .help-group.help-hit-hidden { display: none; }

.help-foot {
  color: var(--ink-soft);
  font-size: 12.5px;
  text-align: center;
  padding: 6px 0 18px;
}

/* The one line shown in place of the articles while web/help.js fetches them, or when it could
   not (audit 2026-10-03, F8). Alias tokens only, so both themes follow. */
.help-status {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 22px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.help-retry {
  font: inherit;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.help-retry:hover { border-color: var(--ink-faint); }
.help-retry:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* When Help cannot load, Try again is the only thing on the page to press: 44 px tall at phone width,
   like every .btn there (phone-a11y.css), which it is not. It measured 30. */
@media (max-width: 640px) {
  .help-retry { min-height: 44px; }
}
