/* static/css/help.css */

/* Scope everything to the help modal/page container */
.help {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #1f2937;
}

/* Reset hanging/indented wrapping */
.help,
.help p,
.help div,
.help li {
  text-align: left;
  text-indent: 0 !important;
}

/* Paragraphs */
.help p {
  margin: 0.35rem 0;
  padding-left: 0;
}

/* DEBUG margins */
/*.help p {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    text-indent: 0;*/
/*    border: 1px solid red;*/
/*}*/

/* Headings */
.help h1,
.help h2,
.help h3 {
  margin: 0.7rem 0 0.35rem 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.help h1 {
  font-size: 1.15rem;
  font-weight: 700;
}

.help h2 {
  font-size: 1rem;
  font-weight: 700;
}

.help h3 {
  font-size: 0.95rem;
  font-weight: 650;
}

/* Section title helpers */
.help .help-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.4rem 0;
}

.help .help-subtitle {
  color: #6b7280;
  margin: 0 0 0.7rem 0;
}

/* Horizontal rule */
.help hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0.8rem 0;
}

/* Lists */
.help ul,
.help ol {
  margin: 0.35rem 0 0.6rem 1.2rem;
  padding-left: 1.2rem;
}

.help li {
  margin: 0.2rem 0;
  padding-left: 0;
}

/* Code */
.help code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: #f3f4f6;
  padding: 0.08rem 0.28rem;
  border-radius: 6px;
}

/* Callouts */
.help .callout {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  margin: 0.6rem 0;
}

.help .callout-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Keep callout body clean */
.help .callout p,
.help .callout div {
  margin-left: 0;
  padding-left: 0;
  text-indent: 0 !important;
}

/* Key/value grid */
.help .kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0.5rem 0;
}

.help .kv .k {
  color: #374151;
  font-weight: 650;
}

.help .kv .v {
  color: #111827;
}