/* Help center (/help, /help/<article>, /help/whats-new). The pages are built by site-src/help/build.mjs from
   the app's own help content; they reuse site.css (the privacy page's layout, cards, buttons, badges) and add
   only what's below. */

/* ---- Help home ---- */
.help-hero { max-width: 720px; }
.help-hero .kicker { margin-bottom: 16px; }
.help-hero .lead { margin-top: 16px; }

.help-search { margin-top: 32px; display: flex; gap: 8px; align-items: stretch; }
.help-search__box { position: relative; flex: 1; min-width: 0; }
.help-search__box > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.help-search .input { height: 52px; padding-left: 44px; font-size: 17px; }
.help-search .input::-webkit-search-cancel-button { cursor: pointer; }
.help-search .btn { height: 52px; flex: none; }
@media (max-width: 479.98px) {
  .help-search { flex-direction: column; }
  .help-search .btn { width: 100%; }
}

.help-results { margin-top: 32px; max-width: 720px; }
.help-results__count { margin-bottom: 4px; }
.help-results__count .link { font-weight: 500; }

.help-topics { margin-top: 48px; display: grid; gap: 16px; align-items: start; }
@media (min-width: 720px) { .help-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .help-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help-topic { padding: 20px 20px 8px; scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 960px) { .help-topic { padding: 24px 24px 12px; } }
.help-topic:target { border-color: var(--ink); }
.help-topic__head { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.help-topic__head .caption { margin-top: 2px; }
.help-topic__icon, .help-news__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-lg);
  background: var(--paper-2); color: var(--ink);
}
.help-topic__list { list-style: none; padding: 0; margin: 14px 0 0; }
.help-topic__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px; line-height: 1.4; color: var(--text); text-decoration: none;
}
.help-topic__list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.help-more { margin-top: 24px; display: grid; gap: 16px; }
@media (min-width: 720px) { .help-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.help-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.help-panel .kicker { display: inline-flex; align-items: center; gap: 8px; }
.help-panel > p:not(.kicker) { color: var(--text); font-size: 15px; }
.help-panel__list { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: 15px; color: var(--text); }
.help-panel .btn-row, .help-panel > .btn { margin-top: auto; }

/* ---- Link lists (search results, Related) ---- */
.help-links { list-style: none; padding: 0; margin: 0; display: grid; }
.prose .help-links { padding-left: 0; gap: 0; margin-top: 12px; }
.prose .help-links > li::before { content: none; }
.help-links a {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text); text-decoration: none;
}
.help-links li:first-child a { border-top: 1px solid var(--rule); }
.help-links__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.help-links__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.help-links__text .kicker { font-size: 11px; }
.help-links__kicker .badge { height: 20px; font-size: 11px; }
.help-links__title { font: 600 16px/1.35 var(--font-body); color: var(--ink); }
.help-links__sub { font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.help-links__chev { color: var(--text-muted); width: 18px; height: 18px; }
.help-links a:hover .help-links__title { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Article ---- */
.help-crumbs ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; }
.help-crumbs li + li::before { content: "/"; padding-inline: 8px; color: var(--rule-strong); }
.help-crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--text-muted); text-decoration: none; }
.help-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.help-title { text-wrap: balance; }
.help-lead { margin-top: 16px; }
.help-meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.help-meta:empty { display: none; }
.help-actions { margin-top: 20px; }
.help-actions .caption { max-width: 22em; }

.toc a[aria-current="page"] { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.toc-mobile a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.help-toc__all { margin-top: 12px; font-size: 14px; }
.toc .help-toc__all a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; }

.help-prose { margin-top: 24px; }
@media (min-width: 960px) { .help-prose { margin-top: 32px; } }
.help-prose > :first-child { margin-top: 0; }
.help-prose h2 { margin-top: 40px; padding-top: 0; border-top: 0; font: 600 20px/1.35 var(--font-head); letter-spacing: -0.01em; color: var(--ink); }
.help-prose h2:first-child { margin-top: 0; }
.help-prose > aside, .help-prose > .help-showme, .help-prose > .help-support { margin-top: 20px; }

.help-steps { list-style: none; counter-reset: step; padding-left: 0 !important; gap: 14px !important; }
.help-steps > li { counter-increment: step; position: relative; padding-left: 44px; min-height: 28px; }
.help-steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); border: 1px solid var(--rule);
  font: 600 14px/1 var(--font-body); color: var(--ink);
}

.help-callout {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--paper-2);
  font-size: 16px; line-height: 1.6;
}
.help-callout > .icon { margin-top: 3px; color: var(--ink); }
.help-callout p { margin: 0; }
.help-callout--tip { background: var(--green-tint); border-color: var(--green-line); }
.help-callout--tip > .icon, .help-callout--tip strong { color: var(--green); }

.help-showme .btn { font-size: 15px; }
.prose .btn, .prose .btn:hover { text-decoration: none; overflow-wrap: normal; }

.help-support {
  margin-top: 48px !important;
  padding: 24px; border-radius: var(--r-lg); background: var(--paper-2);
}
.help-support h2 { margin: 0; }
.help-support p { margin-top: 8px; font-size: 16px; }
.help-support .btn-row { margin-top: 16px; }
.help-support .btn--ghost { margin-left: -4px; }

/* ---- What's new ---- */
.help-release + .help-release { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.help-release h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 24px; }
.help-release__headline { font: 500 17px/1.4 var(--font-body); color: var(--text-muted); }
.help-release > .caption { margin-top: 4px; }
.prose .help-news { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 20px; }
.prose .help-news > li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.prose .help-news > li::before { content: none; }
.help-news h3 { margin: 0 !important; font: 600 17px/1.4 var(--font-body) !important; color: var(--ink); }
.prose .help-news p { margin-top: 2px; font-size: 16px; line-height: 1.6; }
.help-news .link { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; font-size: 15px; font-weight: 500; }

@media print {
  .help-search, .help-results, .help-actions, .help-showme, .help-support .btn-row { display: none !important; }
}

/* The plans in a help article (the "plans" block; plans.js fills them from the server's plans). */
.help-plans { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.help-plan { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 12px 14px; background: var(--paper); color: var(--text); }
.help-plan p { margin: 0; }
.help-plan p + p { margin-top: 4px; }
.help-plan__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.help-plan__price { margin-left: auto; font-weight: 600; color: var(--ink); }
/* "On the vendor plans:" over a part of an article that's for some plans only. */
.help-for { margin: 12px 0 -4px; font-weight: 600; color: var(--text-muted); }
