/* The help center's own layout, on top of blog.css. Colours, radii and type come from
   tokens.css (generated from the design system); do not add a palette here. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── help home ───────────────────────────────────────── */
.help-hero { padding-bottom: 56px; }
.help-hero h1 { margin: 10px 0 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
.help-search { position: relative; margin-top: 26px; max-width: 620px; }
.help-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }
.help-search input {
  width: 100%; height: 56px; padding: 0 18px 0 50px; border-radius: var(--r); border: 1px solid var(--border-strong);
  background: var(--surface); font: 500 17px var(--font-sans); color: var(--ink); box-shadow: var(--sh-card);
}
.help-search input:focus { outline: none; box-shadow: var(--focus); border-color: var(--accent); }
.help-body { padding: 48px 0 72px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.help-section { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); padding: 24px 26px 18px; box-shadow: var(--sh-flat); scroll-margin-top: 90px; }
.help-section h2 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.help-section > p { margin: 6px 0 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.help-section ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.help-section li { border-bottom: 1px solid var(--border); }
.help-section li:last-child { border-bottom: 0; }
.help-section li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap-min); padding: 10px 0; font-size: 15.5px; font-weight: 550; line-height: 1.35; text-decoration: none; color: var(--ink); }
.help-section li a::after { content: "\203A"; flex: none; font-size: 20px; color: var(--ink-faint); }
.help-section li a:hover { color: var(--accent-onwhite); }
.help-none { margin: 0 0 24px; font-size: 16px; color: var(--ink-soft); }
.help-none a { color: var(--accent-onwhite); }
.help-contact { margin-top: 32px; max-width: 420px; }

/* ── article ─────────────────────────────────────────── */
.help-head { background: var(--bg); padding: 44px 0 36px; border-bottom: 1px solid var(--border); }
.help-head h1 { margin: 14px 0 0; max-width: 820px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.028em; text-wrap: balance; }
.help-updated { margin: 12px 0 0; font-size: 14px; color: var(--ink-faint); }
.help-layout { padding-top: 40px; }
.help .prose { font-size: 17.5px; line-height: 1.68; }
.help .prose h2 { margin: 48px 0 14px; font-size: 25px; }
.help .prose h3 { margin: 28px 0 10px; font-size: 19px; color: var(--ink); }
.help .answer { margin: 0 0 32px; padding: 24px 26px 22px; }
.help .answer p { margin: 0; font-size: 18px; }

/* Numbered steps: the number sits in a soft square so a skimming eye finds the next one. */
.prose ol.steps { list-style: none; counter-reset: step; margin: 0 0 26px; padding: 0; }
.prose ol.steps li { counter-increment: step; position: relative; padding: 0 0 14px 48px; min-height: 34px; }
.prose ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-onwhite);
  font-size: 15px; font-weight: 700; line-height: 1;
}
.prose ol.steps li b, .prose li b, .prose p b { color: var(--ink); }

.prose .note { margin: 0 0 26px; padding: 18px 20px; border-radius: var(--r); background: var(--surface-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.prose .note b { display: block; color: var(--ink); margin-bottom: 4px; }
.prose .note p { margin: 0; font-size: 16px; line-height: 1.6; }

/* Screenshots: framed like a window so they read as the app, not as decoration. */
.shot { margin: 8px 0 30px; }
.shot a { display: block; cursor: zoom-in; }
.shot img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--border); box-shadow: var(--sh-card); background: var(--surface-soft); }
.shot-narrow img { width: auto; max-width: min(100%, 380px); margin-inline: auto; }
.shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-faint); text-align: center; }

.help-related { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--border); }
.help .prose .help-related h2 { margin-top: 28px; font-size: 20px; }
.help-related ul li::before { display: none; }
.help-related ul li { padding-left: 0; }

/* On narrow screens blog.css hides the rail; here it moves under the article, because the
   section's other articles and the support card are how a stuck reader moves on. */
@media (max-width: 980px) {
  .help-layout { gap: 8px; }
  .help .rail { display: block; padding-bottom: 40px; }
  .help-layout .rail-in { position: static; }
}
@media (max-width: 640px) {
  .help-hero { padding-bottom: 36px; }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .help-section { padding: 20px 18px 12px; }
  .help-head { padding: 28px 0 24px; }
  .help .prose { font-size: 17px; }
  .help .answer { padding: 20px 18px; }
}
