/* The help center, written by scripts/build-help.mjs: the index (/help) and
   one page per question (/help/<slug>). Built on the landing page's tokens in
   site.css and the article typography in blog.css; loaded after both. */

.kbz-help { color: var(--text); direction: rtl; text-align: right; }
.kbz-help * { box-sizing: border-box; }

.kbz-help [data-topic],
.kbz-help[data-topic] { --topic: var(--accent); }
.kbz-help [data-topic="groups"] { --topic: #c4a5ff; }
.kbz-help [data-topic="personal"] { --topic: #2dd4bf; }
.kbz-help [data-topic="general"] { --topic: #7cb7ff; }

/* ---------- a page ---------- */
html.is-help .kbz-help-body { min-height: 0; padding-top: 92px; padding-bottom: 96px; }
@media (min-width: 900px) { html.is-help .kbz-help-body { padding-top: 116px; } }

.kbz-help-crumbs { max-width: 720px; margin: 0 auto 22px; }
.kbz-help-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--faint); }
.kbz-help-crumbs li { display: inline-flex; align-items: center; }
.kbz-help-crumbs li + li::before { content: '‹'; margin-inline: 8px; color: var(--faint); }
.kbz-help-crumbs a { color: var(--muted); }
.kbz-help-crumbs a:hover { color: var(--text); }
.kbz-help-crumbs [aria-current] { color: var(--text); }

.kbz-help-article { max-width: 720px; margin-inline: auto; }
.kbz-help-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
.kbz-help-topic {
  padding: 4px 12px;
  border: 1px solid var(--topic);
  border-color: color-mix(in srgb, var(--topic) 40%, transparent);
  border-radius: 99px;
  color: var(--topic); font-size: 12.5px; font-weight: 700;
}
.kbz-help-topic:hover { color: var(--topic); border-color: var(--topic); }
.kbz-help-title {
  font-size: clamp(28px, 7vw, 44px); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

/* the short answer: the first thing read, the thing an answer engine quotes */
.kbz-help-answer {
  margin: 4px 0 0; padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: 14px;
  font-size: 17.5px; line-height: 1.75; font-weight: 500; color: var(--text);
}
.kbz-help-answer-label {
  display: block; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent);
}

/* the app's own labels, as they appear on screen */
.kbz-help-content b,
.kbz-help-answer b {
  padding: 1px 7px;
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 7px;
  color: var(--text); font-weight: 600;
  white-space: nowrap;
}
/* an edge case reads as a question with its answer under it */
.kbz-help-content h3 { margin: 30px 0 8px; padding-inline-start: 14px; border-inline-start: 2px solid var(--border-hi); }
.kbz-help-content h3 + p { padding-inline-start: 16px; }
.kbz-help-content h2:first-child { margin-top: 0; }

.kbz-help-updated { margin: 28px 0 0; font-size: 13.5px; color: var(--faint); }

/* ---------- more in this topic ---------- */
.kbz-help-more { max-width: 720px; margin: 56px auto 0; padding-top: 36px; border-top: 1px solid var(--border); }
.kbz-help-more-title { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: var(--text); }

.kbz-help-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.kbz-help-list a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kbz-help-list a:hover { color: var(--text); border-color: var(--border-hi); background: var(--card-hi); }
.kbz-help-list a:focus-visible,
.kbz-help-jump a:focus-visible,
.kbz-help-all:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.kbz-help-q { font-size: 16px; font-weight: 700; line-height: 1.4; }
.kbz-help-a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; line-height: 1.6; color: var(--muted);
}
@media (hover: hover) { .kbz-help-list a:hover { transform: translateY(-2px); } }

.kbz-help-all {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 10px 18px;
  border: 1px solid var(--border-hi); border-radius: 99px;
  color: var(--accent); font-size: 14.5px; font-weight: 700;
}
.kbz-help-all:hover { border-color: var(--accent); }
.kbz-help-all svg { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.kbz-help-all:hover svg { transform: translateX(-4px); }

/* ---------- the index ---------- */
/* three topics: they wrap on a phone instead of hiding off-screen */
.kbz-help-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.kbz-help-jump a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px;
  background: rgba(18, 24, 36, 0.85);
  border: 1px solid var(--border-hi);
  border-radius: 99px;
  color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.kbz-help-jump a:hover { color: var(--topic); border-color: color-mix(in srgb, var(--topic) 55%, transparent); }
.kbz-help-jump span { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* site.css pads every <section> like a landing-page band; these are lists */
.kbz-help .kbz-help-section { margin-bottom: 44px; padding-block: 0; scroll-margin-top: 84px; }
.kbz-help-section-head { margin-bottom: 16px; padding-inline-start: 14px; border-inline-start: 3px solid var(--topic); }
.kbz-help-section-head h2 { font-size: clamp(21px, 5.4vw, 26px); font-weight: 800; line-height: 1.25; color: var(--text); }
.kbz-help-section-head p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
@media (min-width: 760px) {
  .kbz-help-list.is-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.kbz-help .kbz-blog-about { max-width: 720px; }
.kbz-help .kbz-blog-about a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .kbz-help-list a, .kbz-help-all svg { transition: none; }
  .kbz-help-list a:hover { transform: none; }
}
