/* ---- Help centre ------------------------------------------------------------
   Short task pages on the guides' reading column (guides.css): a title, the
   answer in a sentence or two, numbered steps, "If it doesn't work", and a way
   to reach Veylet support. Used by /help (public) and /app/help (the app). */

.help-page .article-head h1 { font-size: clamp(34px, 4.6vw, 54px); overflow-wrap: break-word; hyphens: auto; }
.help-page .article-body { margin-top: 40px; }

/* Numbered steps: the number sits in a quiet ring beside the step. */
.article-body .help-steps { counter-reset: help-step; list-style: none; padding: 0; margin: 16px 0 0; max-width: 66ch; }
.help-steps > li { counter-increment: help-step; position: relative; padding-left: 46px; min-height: 30px; }
.help-steps > li + li { margin-top: 16px; }
.help-steps > li::before {
  content: counter(help-step);
  position: absolute; left: 0; top: 0.12em;
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums;
}

/* A term and what it means: statuses, checks, share tools. */
.help-terms { max-width: 68ch; margin: 16px 0 0; }
.help-terms > div { padding: 14px 0; border-top: 1px solid var(--line); }
.help-terms > div:last-child { border-bottom: 1px solid var(--line); }
.help-terms dt { font-size: 17px; font-weight: 500; line-height: 1.45; }
.help-terms dd { margin: 6px 0 0; font-size: 17px; line-height: 1.65; }
.help-terms dd ul { margin-top: 8px; }
.help-page .article-body code { font: 15px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }

/* Still stuck: the closing note on the page's 2px rule (guides' .article-next). */
.help-stuck .article-actions .button { min-height: 44px; }
.help-stuck p a:not(.button) { overflow-wrap: anywhere; }

/* The index and "More in": title and one line, no thumbnails. */
.help-page .guide-list a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; column-gap: 0; }
.help-page .guide-list .guide-list-title { align-self: auto; }
.help-index .help-groups { max-width: 820px; margin-top: 40px; }
.help-group + .help-group { margin-top: 48px; }
.help-group h2 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.help-group > p { max-width: 60ch; margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.help-back { margin-top: 32px; font-size: 16px; }
.help-back a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Header and footer links keep a 44px target at every width. */
.help-page header nav a,
.help-page footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* A redirect page for one review flag: one line and one link. */
.help-redirect { max-width: 60ch; padding-block: 48px; font-size: 17px; line-height: 1.6; }
.help-redirect a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .help-page .article-body { margin-top: 32px; }
  .help-steps > li { padding-left: 40px; }
  .help-terms dt, .help-terms dd { font-size: 16px; }
}
@media (max-width: 380px) {
  .help-page header { flex-wrap: wrap; }
  .help-page .crumbs { font-size: 12px; }
}
