/* NurtureLead help centre: the article and topic pages, the search results, and the AI help assistant.
   Every colour is a token of site.css (light and dark follow from there); nothing here names a colour of its own. */

/* ---- the head of a help page */
.sec.help-head { padding: 40px 0; }
.help-head h1 { max-width: 900px; margin-top: 20px; }
.help-head .lead { max-width: 760px; margin-top: 16px; }
.help-topic { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.help-topic h1 { margin-top: 0; }
.help-topic .ico { width: 44px; height: 44px; }
.help-search { margin-top: 28px; }
.help-count { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 22px; color: var(--muted); }
.crumbs a { color: var(--muted); font-weight: 400; }
.crumbs a:hover { color: var(--text); }
.sec.help-main { padding-top: 0; }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 64px; align-items: start; }
.help-grid > * { min-width: 0; }

/* ---- an article's text (what the Markdown renderer writes) */
.help-body { display: flex; flex-direction: column; gap: 14px; max-width: 760px; color: var(--text-2); }
.help-body h2 { margin-top: 22px; font-size: 20px; line-height: 28px; letter-spacing: 0; color: var(--text); }
.help-body > h2:first-child { margin-top: 0; }
.help-body h3 { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--text); }
.help-body ol, .help-body ul { display: flex; flex-direction: column; gap: 8px; padding-left: 26px; }
.help-body ol { list-style: decimal; }
.help-body ul { list-style: disc; }
.help-body li { padding-left: 2px; }
.help-body li::marker { color: var(--muted); }
.help-body ol > li::marker { font: 14px var(--mono); }
.help-body strong { font-weight: 600; color: var(--text); }
.help-body code { padding: 1px 6px; border-radius: 4px; background: var(--raised); color: var(--text); font: 14px/22px var(--mono); overflow-wrap: anywhere; }
.help-table { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.help-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.help-table th, .help-table td { padding: 10px 16px; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 1px solid var(--line-soft); }
.help-table thead th { vertical-align: bottom; color: var(--muted); font-size: 12px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom-color: var(--line); }
.help-table tbody th { color: var(--text); font-weight: 500; }
.help-table tbody tr:last-child > * { border-bottom: 0; }

/* ---- lists of articles (a topic's page, the search page) */
.help-list { display: flex; flex-direction: column; gap: 12px; }
.help-item { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-weight: 400; }
.help-item:hover { text-decoration: none; border-color: var(--line-strong); }
.help-item:hover .help-item-t { text-decoration: underline; }
.help-item-c { font-size: 12px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.help-item-t { font-size: 20px; line-height: 28px; font-weight: 600; }
.help-item-s { font-size: 14px; line-height: 22px; color: var(--text-2); }

/* ---- beside the text: the other articles, and "Still stuck?" */
.help-side { display: flex; flex-direction: column; gap: 16px; }
.help-side .topic h2, .help-grid .topic h2 { font-size: 16px; line-height: 26px; }
.topic li a[aria-current] { font-weight: 600; }
.stuck { display: flex; flex-direction: column; gap: 12px; }
.stuck h2 { font-size: 16px; line-height: 26px; letter-spacing: 0; }
.stuck .ask { margin-top: 0; }
.stuck .ph { white-space: nowrap; }
.stuck .chat-log { max-height: 420px; padding: 14px; border-radius: 6px; background: var(--ground); font-size: 13px; line-height: 20px; }

/* ---- the search box's results on the front page */
.results { width: 640px; max-width: 100%; margin-top: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; text-align: left; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); color: var(--text); font-weight: 400; }
.result:first-child { border-top: 0; }
.result:hover { text-decoration: none; background: var(--sidebar); }
.result-t { font-size: 15px; line-height: 24px; font-weight: 500; }
.result-c { font-size: 12px; line-height: 24px; color: var(--muted); white-space: nowrap; }
.result-s { grid-column: 1 / -1; font-size: 14px; line-height: 22px; color: var(--muted); }

/* ---- the AI help assistant */
.chat-log { display: flex; flex-direction: column; gap: 12px; max-height: 380px; overflow-y: auto; }
.chat-log .bubble { overflow-wrap: anywhere; }
.chat-log .bubble.bot a { font-weight: 500; }
.chat-log .answer { white-space: pre-wrap; }
.chat-log .wait { color: var(--muted); }
.chat-log .btn { align-self: flex-start; height: auto; min-height: 32px; padding: 5px 12px; font-size: 13px; line-height: 20px; white-space: normal; text-align: left; }
.ask .btn { flex-shrink: 0; }
.linkish { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 500; text-align: left; }
.linkish:hover { text-decoration: underline; }
.esc { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.esc textarea { display: block; width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; resize: vertical; }
.esc textarea::placeholder { color: var(--faint); }
.esc-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- narrower screens */
@media (max-width: 900px) {
  .help-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  .sec.help-head { padding: 28px 0 32px; }
  .help-topic { gap: 12px; }
  .help-topic .ico { width: 36px; height: 36px; }
  .help-item { padding: 16px 20px; }
  .help-item-t { font-size: 18px; line-height: 26px; }
  .help-table table { font-size: 13px; line-height: 20px; }
  .help-table th, .help-table td { padding: 8px; }
  .help-table thead th { font-size: 12px; line-height: 16px; text-transform: none; letter-spacing: 0; }
  .result { grid-template-columns: minmax(0, 1fr); }
  .result-c { order: -1; line-height: 18px; }
}
