/* Manual pages (help.html / help-admin.html) — shares theme.css tokens */

.help-body {
  background: var(--c-cream);
  color: var(--c-charcoal);
  font-family: var(--font-body);
  margin: 0;
  line-height: 1.65;
}

.help-header {
  background: var(--c-charcoal);
  color: var(--c-white);
  padding: 22px 20px;
}
.help-header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.help-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-white);
}
.help-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}
.help-subtitle {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 2px;
}
.help-header .en-caps {
  font-family: var(--font-en);
  letter-spacing: 0.1em;
}

.help-layout {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  padding: 24px 20px 60px;
  align-items: flex-start;
}

/* TOC */
.help-toc {
  flex: 0 0 220px;
  position: sticky;
  top: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
}
.help-toc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.help-toc a {
  display: block;
  color: var(--c-charcoal);
  text-decoration: none;
  padding: 3px 0;
}
.help-toc a:hover { color: var(--c-blue); }

.help-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Section cards */
.help-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.help-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
  scroll-margin-top: 16px;
}
.help-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  margin: 16px 0 6px;
}
.help-card p { margin: 8px 0; font-size: 14px; }
.help-card ul, .help-card ol { margin: 8px 0; padding-left: 22px; font-size: 14px; }
.help-card li { margin: 4px 0; }

/* UI mimic elements */
.mimic-btn {
  display: inline-block;
  background: var(--c-blue);
  color: var(--c-white);
  border-radius: 8px;
  padding: 3px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  white-space: nowrap;
}
.mimic-btn.ghost {
  background: var(--c-white);
  color: var(--c-charcoal);
  border: 1px solid var(--c-border);
}
.mimic-field {
  display: inline-block;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 13px;
  color: var(--c-muted);
  white-space: nowrap;
}
.mimic-red { color: var(--c-red); font-weight: 600; }

/* Example box */
.example-box {
  background: var(--c-cream);
  border: 1px dashed var(--c-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 13.5px;
}
.example-box .ex-title {
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.example-box table { border-collapse: collapse; width: 100%; }
.example-box td { padding: 2px 8px 2px 0; vertical-align: top; }
.example-box td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.example-box .ex-hilite td { color: var(--c-blue); font-weight: 700; }

/* Term chip */
.term { font-weight: 600; }
.term-note { color: var(--c-muted); font-size: 0.93em; }

/* Flow diagram (admin) */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 10px 0;
}
.flow-step {
  background: var(--c-white);
  border: 1.5px solid var(--c-blue);
  color: var(--c-charcoal);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 600;
}
.flow-arrow { color: var(--c-muted); font-size: 15px; }

/* Compare table */
.help-table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 8px 0; }
.help-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 2px solid var(--c-border);
  padding: 6px 8px;
}
.help-table td { border-bottom: 1px solid var(--c-border); padding: 6px 8px; vertical-align: top; }

/* Checklist */
.checklist { list-style: none; padding-left: 4px; }
.checklist li::before { content: '✅ '; }

/* FAQ */
.faq-q { font-weight: 700; font-family: var(--font-display); margin-top: 12px; }

.help-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 12.5px;
  color: var(--c-muted);
}
.help-footer a { color: var(--c-blue); }

.tip {
  background: rgba(30, 86, 168, 0.07);
  border-left: 4px solid var(--c-blue);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13.5px;
  margin: 10px 0;
}
.warn-tip {
  background: rgba(210, 46, 44, 0.06);
  border-left: 4px solid var(--c-red);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13.5px;
  margin: 10px 0;
}

@media (max-width: 760px) {
  .help-layout { flex-direction: column; }
  .help-toc { position: static; flex: 1 1 auto; width: 100%; box-sizing: border-box; }
}

@media print {
  .help-toc, .help-header { display: none; }
  .help-body { background: #fff; }
  .help-card { border: none; padding: 0 0 16px; }
}

/* entry links on app pages */
.panel-help-link {
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-blue);
  text-decoration: none;
  margin-left: 8px;
  vertical-align: middle;
}
.footer-help-link { color: var(--c-blue); }

/* mobile: prevent horizontal overflow from nowrap value cells */
@media (max-width: 760px) {
  .help-card { padding: 16px 14px; overflow-x: hidden; }
  .example-box td:last-child { white-space: normal; }
  .mimic-btn, .mimic-field { white-space: normal; }
  .help-table { display: block; overflow-x: auto; }
}
