/* Red Stet — shared stylesheet for the static help + science library.
 *
 * Loaded after /landing.css, which owns the site chrome (nav, footer,
 * container). Tokens come from /tokens.css, linked ahead of both — the
 * single definition shared with the app. This file declares no custom
 * properties, and neither does landing.css.
 *
 * Every rule here was extracted verbatim from the per-page \3c style>
 * blocks it replaces (Phase 6 consolidation, 2026-07-30) — 40 of the 43
 * help/science pages carried byte-identical copies. Pages keep an inline
 * \3c style> only for their own interface mocks and the one-line
 * .help-section-visual::before { content } label.
 *
 * Change a rule here and you change 40 pages. Page-specific tweaks belong
 * in that page's inline block, which is loaded after this file and wins.
 */

/* ── Document shell ────────────────────────────────────────────── */

.help-doc {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
.help-doc header.doc-head {
  max-width: 760px;
  margin: 0 auto 56px;
}
.help-doc h1 {
  font-family: var(--display);
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.help-doc .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.help-doc .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}
.help-doc .toc {
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0 0;
}
.help-doc .toc-title {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.help-doc .toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 24px; }
.help-doc .toc li { margin-bottom: 4px; break-inside: avoid; }
.help-doc .toc a {
  color: var(--ink-site);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.help-doc .toc a:hover { border-bottom-color: var(--red); }
.help-doc .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── Paired section layout ─────────────────────────────────────── */

.help-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin: 64px 0;
  padding-top: 36px;
  border-top: 1px solid var(--hair);
  align-items: start;
}
.help-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.help-section-text h2 {
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 14px;
  line-height: 1.2;
}
.help-section-text h3 {
  font-size: 16px;
  margin: 24px 0 6px;
  font-weight: 600;
}
.help-section-text p,
.help-section-text ul,
.help-section-text ol {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-site);
  margin: 0 0 12px;
}
.help-section-text ul, .help-section-text ol { padding-left: 22px; }
.help-section-text li { margin-bottom: 6px; }
.help-section-text code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: rgba(0,0,0,0.05);
  padding: 1px 6px;
  border-radius: 4px;
}
.help-section-text strong { color: var(--ink-site); }
.help-section-text a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-soft);
}
.help-section-text a:hover { border-bottom-color: var(--red); }
.help-section-text blockquote {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 18px;
  margin: 14px 0;
  font-style: italic;
  color: var(--ink-muted);
}
.help-section-visual {
  background: var(--paper-2);
  border-radius: 8px;
  padding: 24px 22px;
  position: sticky;
  top: 24px;
}
.help-section-visual::before {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

@media (max-width: 880px) {
  .help-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .help-section .help-section-visual {
    order: -1;
  }
}

/* ── Callouts and field names ──────────────────────────────────── */

.field-name {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--ink-muted);
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0;
}
.help-callout {
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 16px 0;
}
.help-callout strong { color: var(--red); }

/* ── Interface-mock primitives ─────────────────────────────────── */

.mock-label {
  display: block;
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.mock-label small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-muted);
  opacity: 0.85;
}
.mock-field {
  margin-bottom: 14px;
}
.mock-field:last-child { margin-bottom: 0; }
.mock-input,
.mock-textarea,
.mock-select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hair-strong);
  border-radius: 6px;
}
.mock-textarea { min-height: 90px; resize: none; line-height: 1.5; }

/* ── Other shared rules ──────────────────────────────────────── */

.visual-quote {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 10px;
}
.visual-attr {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}
.science-foot a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-soft);
}
