/* The public help centre — a READING page, which is a different job from the inbox next door.
 *
 * Same vendored GemBoss kit (gemboss-ui.css loads first; never edit or restyle it here), same tokens,
 * same spacing scale — `npm run ui:gates` holds all three. What changes is the shape: one column, a
 * measure that stays readable, and nothing competing with the text.
 */
html, body { height: 100%; margin: 0; }
.help-page {
  font-family: var(--gemboss-serif);
  font-size: var(--gemboss-fs-body);
  line-height: 1.6;
  color: var(--gemboss-text);
  background: var(--gemboss-canvas);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
input:focus-visible, a:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }

.help-head {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--gemboss-divider); background: var(--gemboss-surface);
}
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--gemboss-text-strong); text-decoration: none; }
/* Dấu hiệu GemBoss thật (SVG vendored) — xem ghi chú trong inbox.css. */
.brand-mark { display: block; width: 24px; height: 24px; }
.help-search { flex: 1 1 240px; max-width: 420px; }
.help-search .field {
  width: 100%; min-height: 44px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md);
  background: var(--ui-surface); color: var(--ui-text);
}

/* 68ch, not a pixel width: the measure follows the type, which is the thing being read. */
.help-main { flex: 1; width: 100%; max-width: 68ch; margin: 0 auto; padding: 24px 16px; box-sizing: border-box; }
.help-foot { border-top: 1px solid var(--gemboss-divider); padding: 16px; text-align: center; }
.help-foot p { margin: 4px 0; }
/* A link in a footer line: WCAG 2.5.8 wants a 24px target, and a bare inline link is ~20px. */
.contact-telegram a { display: inline-block; min-height: 24px; line-height: 24px; font-weight: 600; }
.muted { color: var(--gemboss-text-muted); }

.group { margin-bottom: 32px; }
.group h2 { font-size: var(--gemboss-fs-h2); margin: 0 0 12px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card {
  display: grid; gap: 4px; min-height: 44px; padding: 12px; text-decoration: none; color: inherit;
  border: 1px solid var(--gemboss-divider); border-radius: var(--gemboss-radius-md); background: var(--gemboss-surface);
}
.card:hover { background: var(--gemboss-hover); }
.card-title { font-weight: 600; color: var(--gemboss-text-strong); }
.card-summary { color: var(--gemboss-text-muted); }

.crumbs { margin-bottom: 16px; }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--gemboss-text-muted); }
#a-title { font-size: var(--gemboss-fs-h1); margin: 0 0 8px; text-wrap: balance; }
.lede { font-size: var(--gemboss-fs-body-lg); color: var(--gemboss-text-muted); margin: 0 0 24px; }
#a-body h3, #a-body h4, #a-body h5 { margin: 24px 0 8px; }
#a-body p { margin: 0 0 16px; }
#a-body ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 4px; }
#a-updated { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--gemboss-divider); font-size: var(--gemboss-fs-caption); }
