/* The Help page (31 Oct 2026). Sits on top of the legal page layout in
   styles.css, which gives it the column, the table of contents and the
   paragraph styles. Only what the Help page adds lives here. */

/* The "right Steam account" warning at the top. It is the one thing on the
   page that gets people banned if they miss it, so it uses the danger
   colours rather than the quieter accent note. */
.legal-content .help-warning {
  background: var(--color-danger-muted);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-panel);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.legal-content .help-warning p {
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.legal-content .help-warning p:last-child {
  margin-bottom: 0;
}
.legal-content .help-warning .help-warning__title {
  font-weight: var(--fw-bold);
  color: var(--color-danger);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--fs-200);
}

/* Numbered steps. The site's reset removes list numbers, so they are put
   back here, the same way styles.css puts bullets back on .legal-content ul. */
.legal-content ol {
  color: var(--color-text-muted);
  list-style: decimal;
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.legal-content ol li::marker {
  color: var(--color-accent-hover);
  font-weight: var(--fw-bold);
}
.legal-content .help-steps strong {
  color: var(--color-text);
}

/* Commands tables: the same column split in all three, so they line up. */
.help-commands {
  table-layout: fixed;
  width: 100%;
}
.help-commands th:first-child,
.help-commands td:first-child {
  width: 38%;
}

/* Search box above the known issues. */
.help-filter {
  display: block;
  margin-bottom: var(--space-4);
}
.help-filter input {
  width: 100%;
  font: inherit;
  font-size: var(--fs-300);
  color: var(--color-text);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: var(--space-3) var(--space-4);
}
.help-filter input::placeholder {
  color: var(--color-text-faint);
}
.help-filter input:focus-visible {
  outline: 2px solid var(--color-accent-border);
  outline-offset: 2px;
}
.legal-content .help-filter__none {
  color: var(--color-text-faint);
}

/* Each known issue opens and closes on its own. */
.help-issues {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.help-issue {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.help-issue[open] {
  border-color: var(--color-accent-border);
}
.help-issue summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}
.help-issue summary::-webkit-details-marker {
  display: none;
}
.help-issue summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform var(--duration-base) var(--ease-standard);
}
.help-issue[open] summary::after {
  transform: rotate(225deg);
}
.help-issue summary:hover {
  background: var(--color-surface-hover);
}
.help-issue summary:focus-visible {
  outline: 2px solid var(--color-accent-border);
  outline-offset: -2px;
}
.help-issue__body {
  padding: 0 var(--space-4) var(--space-3);
}
.legal-content .help-issue__body p:first-of-type {
  color: var(--color-text-muted);
}
.legal-content .help-issue__body code {
  word-break: break-all;
}
