/* Operator guide. Long-form reading layout inside the admin shell. */

.help-page .content {
  max-width: 62rem;
}

.help-toc {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e5ea);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.help-toc h2 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  margin: 0 0 0.75rem;
}

.help-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.help-toc li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.help-toc a {
  color: var(--accent, #e8590c);
  text-decoration: none;
}

.help-toc a:hover,
.help-toc a:focus-visible {
  text-decoration: underline;
}

.help-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 1.5rem;
}

.help-section h2 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border, #e2e5ea);
}

.help-section h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.help-section p {
  line-height: 1.65;
  margin: 0 0 0.9rem;
}

.help-list,
.help-definitions {
  line-height: 1.65;
}

.help-list {
  padding-left: 1.25rem;
}

.help-list li {
  margin-bottom: 0.5rem;
}

.help-list-spaced li {
  margin-bottom: 0.9rem;
}

.help-definitions {
  margin: 0;
}

.help-definitions dt {
  font-weight: 700;
  margin-top: 1rem;
}

.help-definitions dd {
  margin: 0.2rem 0 0;
  color: var(--muted, #4b5563);
}

/* Numbered workflow stages. The counter carries the sequence, so the visual
   weight sits on the number rather than a bullet. */
.help-steps {
  list-style: none;
  counter-reset: helpstep;
  padding: 0;
  margin: 0;
}

.help-steps > li {
  counter-increment: helpstep;
  position: relative;
  padding: 0 0 1.25rem 3rem;
  border-left: 2px solid var(--border, #e2e5ea);
  margin-left: 1rem;
}

.help-steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.help-steps > li::before {
  content: counter(helpstep);
  position: absolute;
  left: -1rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent, #e8590c);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-steps-tight > li {
  padding-bottom: 0.85rem;
}

.callout {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 4px solid;
}

.callout h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.callout p {
  margin: 0;
}

.callout-note {
  background: #f1f5f9;
  border-left-color: #64748b;
}

.callout-warning {
  background: #fff4e6;
  border-left-color: var(--accent, #e8590c);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .help-toc ol {
    columns: 1;
  }

  .help-steps > li {
    padding-left: 2.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  .callout-note {
    background: #1e293b;
  }

  .callout-warning {
    background: #3a2510;
  }

  .mono {
    background: #1e293b;
  }
}
