/* The public cheat sheet (/help/bot). Loaded on every page with the other area styles, so
   every rule is scoped to a .help-* class. Tokens only: the look follows app.css. */
.help-page { max-width: min(var(--width), 48rem); }
.help-page code { font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }
.help-page :is(ol, ul) { margin: 0; padding-left: 1.25rem; }
.help-page li + li, .help-page li > ul { margin-top: 0.35rem; }
/* A deep link must not land under the top of the screen without any air. */
.help-page :is(h2, h3, dt)[id], .help-command { scroll-margin-top: var(--gap); }

/* Command syntax and examples: monospace that wraps inside its own box, so a long example
   never widens the page on a phone; a word too long to wrap scrolls inside the box. */
.help-usage { margin: 0; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow-x: auto; }
.help-usage code { white-space: pre-wrap; }
.help-usage + .help-usage { margin-top: 0.4rem; }

.help-command > h4 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 1rem; }
.help-command:target { border-color: var(--accent); }
.help-anchor { color: var(--ink); text-decoration: none; }
.help-anchor:hover { text-decoration: underline; }
.help-need { color: var(--muted); }

/* Label above value on a phone, side by side from tablet width up. */
.help-facts, .help-roles, .help-errors { margin: 0; display: grid; gap: 0.15rem 1rem; }
.help-facts dt, .help-errors dt { font-weight: 600; }
.help-facts dt { color: var(--muted); font-size: 0.875rem; }
.help-facts dd, .help-roles dd, .help-errors dd { margin: 0 0 0.5rem; min-width: 0; }
.help-errors dt { margin-top: 0.25rem; }
@media (min-width: 36rem) {
  .help-facts, .help-roles { grid-template-columns: max-content 1fr; gap: 0.5rem 1rem; }
  .help-facts dd, .help-roles dd { margin: 0; }
}

.help-search input { width: 100%; }
.help-group[hidden], .help-command[hidden], .help-search[hidden] { display: none; }
.help-toc code { white-space: nowrap; }
