/* QSL.now help center: a two-column shell on wide screens (sidebar of grouped topics, the article),
   a stacked list above the article on narrow ones. Tokens only; both themes flow through site.css.
   Class names are prefixed help- so nothing collides with the .help hint in batches.css. Each group
   head carries a site.css .hue-* class, so the four groups read sky, amber, violet, and teal. */

.help-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 32px; max-width: var(--max); margin: 24px auto 0; }
.help-article { margin: 0; max-width: 720px; }

/* the sidebar: a sticky card, groups stacked, every link on ONE line (the title is cut with an
   ellipsis rather than wrapped, and the label is kept short in help.ts) */
.help-nav {
  position: sticky; top: 16px; align-self: start;
  /* site.css styles every nav as a centered wrapping row; this one is a stretched column */
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px;
  padding: 10px 8px 12px;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.help-group { min-width: 0; }
.help-group ul { list-style: none; margin: 0; padding: 0; }
.help-group-head {
  margin: 0 0 2px; padding: 6px 12px 2px;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;   /* 0.85rem: 0.72 was the smallest text on the site */
  color: var(--accent-link);   /* the group's hue */
}
.help-nav a {
  display: flex; align-items: center; min-height: var(--tap); padding: 8px 12px;
  border-radius: var(--radius-sm); border-left: 3px solid transparent;
  color: var(--text-2); font-weight: 600; font-size: 0.97rem; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.help-nav a:hover { background: var(--accent-soft); color: var(--text); }
.help-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-link); border-left-color: var(--accent); box-shadow: none; border-radius: var(--radius-sm); }

/* narrow: the sidebar sits above the article as a plain stacked list, never a wrapping row of pills.
   From 480 px the groups sit two across to keep the list short before the article starts. */
@media (max-width: 820px) {
  .help-shell { grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
  .help-nav { position: static; display: grid; grid-template-columns: 1fr; gap: 6px 16px; }
}
@media (max-width: 820px) and (min-width: 480px) {
  .help-nav { grid-template-columns: 1fr 1fr; }
}
