/* ============================================================
   BLUEGREY — help page (/nester/help/), ref BGY-007
   Long-form guide layout: sticky contents rail + a readable
   single column. Every value is a token from tokens.css.
   ============================================================ */

/* ---- layout: rail + column on wide screens, one column below ---- */
.help-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
@media (min-width: 960px) {
  .help-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-8); align-items: start; }
}

/* ---- contents rail: sticky under the condensed header ---- */
.help-toc ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.help-toc a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-colors);
}
.help-toc a:hover { color: var(--color-text); }
@media (min-width: 960px) {
  .help-toc {
    position: sticky;
    top: calc(var(--header-h-condensed) + var(--space-5));
    border-left: var(--border-hairline);
    padding-left: var(--space-5);
  }
}

/* ---- the guide column: comfortable measure, generous section gaps ---- */
.help-body { display: grid; gap: var(--space-9); max-width: var(--maxw-prose); min-width: 0; }
.help-sec { display: grid; gap: var(--space-4); }
.help-sec__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text-hi);
}
.help-sec h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-text-hi);
  margin-top: var(--space-4);
}
.help-sec p, .help-sec li { color: var(--color-text-secondary); line-height: var(--leading-normal); }
.help-sec strong { color: var(--color-text); font-weight: var(--weight-medium); }
.help-sec a { color: var(--color-accent-bright); transition: var(--transition-colors); }
.help-sec a:hover { color: var(--color-text); }
.help-sec ul { padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.help-kicker { font-size: var(--text-md); }

/* numbered steps: mono counters, engineering-drawing feel */
.help-steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--space-3); }
.help-steps li { counter-increment: step; position: relative; padding-left: var(--space-7); }
.help-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-bright);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  line-height: 1;
}

/* tables: hairline grid, mono headers, scroll inside their own box */
.help-table { overflow-x: auto; border: var(--border-hairline); border-radius: var(--radius-md); }
.help-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.help-table th {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-align: left;
}
.help-table th, .help-table td { padding: var(--space-3) var(--space-4); border-bottom: var(--border-hairline); }
.help-table tbody tr:last-child td { border-bottom: 0; }
.help-table td { color: var(--color-text-secondary); }
.help-table td:first-child { color: var(--color-text); white-space: nowrap; }

/* the legacy #advanced alias: an invisible anchor that still lands
   the old panel link at the Appearance section, clear of the header */
.help-alias { display: block; height: 0; }

/* ============================================================
   BGY-019 (BG-171): the long-form pages that share this layout
   (install, release notes, about, contact, FAQ, the legal four).
   Every value is a token from tokens.css.
   ============================================================ */

/* a page with no contents rail: one comfortable column */
.help-layout--single { grid-template-columns: 1fr; }
.help-layout--single .help-body { max-width: var(--maxw-prose); }

/* the draft mark on the legal four: a status line in the flow of the hero,
   accent-coloured so it reads as a status, never as a banner box */
.doc-status { color: var(--color-accent-bright); margin-top: var(--space-2); }
.page-lead strong, .page-note strong { color: var(--color-text); font-weight: var(--weight-medium); }

/* release notes: one article per version, newest first */
.log { display: grid; gap: var(--space-3); padding-bottom: var(--space-6); border-bottom: var(--border-hairline); }
.log:last-child { border-bottom: 0; }
.log__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.log__ver { color: var(--color-accent-bright); display: inline-flex; align-items: center; gap: var(--space-2); }
.log__date { font-size: var(--text-sm); color: var(--color-text-muted); }
.log__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-text-hi);
}
.log__items { padding-left: var(--space-5); display: grid; gap: var(--space-2); list-style: disc; }
.log__items li { color: var(--color-text-secondary); line-height: var(--leading-normal); }

/* FAQ: question + answer pairs inside a numbered section */
.faq { display: grid; gap: var(--space-2); padding-top: var(--space-4); }
.faq + .faq { border-top: var(--border-hairline); }
.faq__q {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-text-hi);
}


/* ---------- the post-purchase page (BGY-006.2): the licence key, readable and copyable ---------- */
.thanks-key code {
  display: block; padding: var(--space-4) var(--space-5);
  border: var(--border-hairline); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text-hi);
  font-family: var(--font-mono); font-size: var(--text-md);
  letter-spacing: var(--tracking-wide); word-break: break-all; user-select: all;
}
