/* Help tab (js/tab-help.js). Static guide; no animation of any kind.
   Uses the app.css tokens and its .panel / .ph classes. */

.hg {
  display: grid; gap: 16px; max-width: 920px; margin: 0 auto;
  padding: 16px clamp(12px, 3vw, 32px) 24px;
  font-size: 0.95rem; line-height: 1.55;
}
.hg .panel { scroll-margin-top: 150px; }
.hg p { margin: 0 0 10px; }
.hg p:last-child { margin-bottom: 0; }
.hg ul, .hg ol { margin: 0 0 10px; padding-left: 1.3em; }
.hg li { margin: 3px 0; }
.hg a { color: var(--cyan); }
.hg a:hover { color: #fff; }
.hg strong { color: #fff; }
.hg h3 { margin: 0 0 6px; font: 700 0.85rem/1.3 var(--sans); color: var(--gold); letter-spacing: 0.02em; }
.hg .ph:focus { outline: none; }
.hg .ph:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.hg-id { font-family: var(--mono); color: var(--gold) !important; letter-spacing: 0.04em; }

/* commands: monospace, select-all on tap so they're easy to copy */
.hg-cmd {
  display: inline-block; padding: 1px 7px; margin: 1px 0; border-radius: 6px;
  font: 600 0.9em/1.4 var(--mono); color: var(--cyan); white-space: pre-wrap; word-break: break-word;
  background: rgba(77, 232, 255, 0.08); border: 1px solid rgba(77, 232, 255, 0.3);
  user-select: all; -webkit-user-select: all;
}
/* replies from the gateway: quoted exactly, teal, not select-all */
.hg-reply {
  display: inline; padding: 1px 6px; border-radius: 6px;
  font: 500 0.88em/1.5 var(--mono); color: var(--teal); word-break: break-word;
  background: rgba(57, 255, 176, 0.06); border: 1px dashed rgba(57, 255, 176, 0.3);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hg-dim { color: var(--muted); }
.hg-note { color: var(--muted); font-size: 0.9em; }
.hg-q { color: var(--teal); font-family: var(--mono); font-weight: 500; }

/* things Alec still has to confirm -- deliberately loud, static */
.todo {
  display: inline-block; margin: 2px 0; padding: 2px 8px; border-radius: 6px;
  font: 700 0.82rem/1.4 var(--mono); color: #1a1200; background: var(--warn);
  border: 2px dashed #000;
}

/* table of contents */
.hg-toc { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--panel-b); background: rgba(2, 6, 20, 0.45); }
.hg-toc-h { font: 700 0.7rem/1 var(--mono) !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted) !important; }
.hg-toc ol { margin: 6px 0 0; columns: 2 220px; column-gap: 24px; }
.hg-toc li { break-inside: avoid; }
.hg-toc a { text-decoration: none; }
.hg-toc a:hover { text-decoration: underline; }

/* send / you-get pairs */
.hg-ex { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 10px; }
.hg-ex dt { font: 700 0.7rem/2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hg-ex dd { margin: 0; min-width: 0; }

.hg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.hg-box, .hg-rules { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(77, 232, 255, 0.14); background: rgba(2, 6, 20, 0.4); }
.hg-box ul, .hg-rules ul { margin-bottom: 0; }
.hg-rules { margin: 10px 0; }
.hg-steps li { margin: 6px 0; }
.hg-forms { list-style: none; padding-left: 0; }
.hg-forms li { margin: 6px 0; }
.hg-replies li { margin: 6px 0; }
.hg-sub { margin-top: 12px !important; }

/* BBS command table */
.hg-table-wrap { overflow-x: auto; margin: 8px 0 10px; }
.hg-table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.hg-table th { text-align: left; font: 700 0.66rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 8px 6px; }
.hg-table td { padding: 7px 6px; border-top: 1px solid rgba(77, 232, 255, 0.08); vertical-align: top; }
.hg-table td:first-child { width: 48%; }

/* public-messages warning */
.hg-warn { border-color: rgba(255, 209, 102, 0.45); }
.hg-warn .ph { color: var(--warn); }

/* troubleshooting */
.hg-faq { margin: 0; }
.hg-faq dt { margin: 14px 0 4px; font-weight: 700; color: #fff; }
.hg-faq dt:first-child { margin-top: 0; }
.hg-faq dd { margin: 0 0 0 0; padding-left: 12px; border-left: 2px solid rgba(77, 232, 255, 0.25); color: var(--ink); }

@media (max-width: 640px) {
  .hg { padding: 12px 10px 20px; font-size: 0.93rem; }
  .hg-two { grid-template-columns: 1fr; }
  .hg-ex { grid-template-columns: 1fr; gap: 2px; }
  .hg-ex dd { margin-bottom: 6px; }
  .hg-table thead { display: none; }
  .hg-table tr { display: block; padding: 6px 0; border-top: 1px solid rgba(77, 232, 255, 0.08); }
  .hg-table td { display: block; width: auto !important; border: 0; padding: 2px 4px; }
}
