/* 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; }

/* The topics and their answers (the owner, 2026-11-01: "lots of similar looking boxes", then "seems to all blur
   together. can you make it seem more distinct and seperated"). Clear zones instead of thin lines everywhere: the
   topic list down the side (the picked one a dark pill), the topic on a soft panel of its own with each answer a
   separate white item and its plan's coloured tag, and Support a dark block of its own. A phone gets one row per topic
   that opens its answers (help.js: html.js is set before the first paint, so the rows start closed with no jump);
   without JavaScript every answer shows. */
.help-browse { margin-top: 40px; }
@media (min-width: 960px) { .help-browse { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 40px; align-items: start; margin-top: 56px; } }
.help-nav { display: none; }
@media (min-width: 960px) {
  .help-nav { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
  .help-nav .kicker { margin: 0 0 10px 12px; }
  .help-nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
  .help-nav a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 10px;
    color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; transition: background-color .15s; }
  .help-nav a:hover { background: var(--paper-2); color: var(--ink); }
  .help-nav a[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 600; }
  .help-nav__n { font-variant-numeric: tabular-nums; color: var(--text-muted); font-weight: 400; font-size: 14px; }
  .help-nav a[aria-current="true"] .help-nav__n { color: rgba(255,255,255,.7); }
}

/* A topic: a soft panel with its answers as separate white items. */
.help-topic { background: var(--paper-2); border-radius: 18px; padding: 4px 24px 24px; margin-bottom: 16px; scroll-margin-top: calc(var(--header-h) + 16px); }
.help-topic__title { margin: 0; font: inherit; }
.help-topic__toggle { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  gap: 4px 16px; padding: 20px 0 16px; cursor: default; }
.help-topic__name { font: 600 24px/1.2 var(--font-head); letter-spacing: -0.015em; color: var(--ink); }
.help-topic__blurb { grid-column: 1 / -1; grid-row: 2; font-size: 15px; line-height: 1.4; color: var(--text-muted); }
.help-topic__n { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.help-topic__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .help-topic__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .help-topic__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help-topic__list li { display: flex; }
.help-topic__list a { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 14px 40px 14px 16px; position: relative; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(20,24,46,.06);
  color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.help-topic__list a::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid var(--control); border-top: 2px solid var(--control); transform: rotate(45deg); transition: border-color .15s; }
.help-topic__list a:hover { box-shadow: 0 8px 20px -10px rgba(20,24,46,.35); transform: translateY(-1px); }
.help-topic__list a:hover::after { border-color: var(--ink); }
.help-topic__list a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.help-index__title { font-size: 15px; line-height: 1.4; font-weight: 500; }
/* The plan an answer is part of: a small tag, one colour per plan. */
.help-index__plan { font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .02em; padding: 4px 8px; border-radius: 999px;
  background: var(--paper-2); color: var(--text-muted); white-space: nowrap; }
.help-index__plan[data-plan="collector_pro"] { background: #FCF0CC; color: #7A5200; }
.help-index__plan[data-plan="vendor"] { background: #E4ECFC; color: #1D4FB8; }
.help-index__plan[data-plan="vendor_pro"] { background: var(--ink); color: #fff; }
/* One answer per line (phones): the tag beside the title, so each answer stays one or two lines tall. */
@media (max-width: 719.98px) {
  .help-topic__list a { flex-direction: row; align-items: center; gap: 10px; padding: 13px 36px 13px 14px; }
  .help-index__title { flex: 1; min-width: 0; }
  .help-index__plan { flex: none; }
}

/* A computer with JavaScript: one topic at a time, picked from the list down the side (help.js). Before a topic is
   picked the first one shows, so nothing jumps. */
@media (min-width: 960px) {
  .js .help-index:not([data-picked]) .help-topic:not(:first-child),
  .js .help-index[data-picked] .help-topic:not(.is-current) { display: none; }
}

/* Phones and tablets with JavaScript: one row per topic, closed until tapped; an open topic is its panel. */
@media (max-width: 959.98px) {
  .js .help-topic:not(.is-open) { background: none; border-radius: 0; padding: 0; margin: 0; border-bottom: 1px solid var(--rule-strong); }
  .js .help-topic.is-open { padding: 0 14px 14px; margin: 10px 0; }
  .js .help-topic__toggle { cursor: pointer; padding: 18px 36px 16px 0; position: relative; min-height: 56px; }
  .js .help-topic__toggle::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px;
    border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
  .js .help-topic.is-open .help-topic__toggle::after { transform: rotate(-135deg); top: 30px; }
  .js .help-topic__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .js .help-topic__name { font-size: 19px; }
  .js .help-topic:not(.is-open) .help-topic__list { display: none; }
  .js .help-topic__n { display: none; }
}

/* What's new and Support: two different blocks, set apart from the answers. */
.help-foot { display: grid; gap: 24px; margin-top: 40px; align-items: stretch; }
@media (min-width: 720px) { .help-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.help-foot__part { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 0; }
.help-foot__title { margin: 0; font: 600 19px/1.3 var(--font-head); color: var(--ink); }
.help-foot__part > p:not(.kicker) { color: var(--text); font-size: 15px; margin: 0; }
.help-foot__part > .kicker { color: var(--red); }
.help-foot__list { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: 15px; color: var(--text); }
.help-foot .btn-row { margin: 6px 0 0; }
.help-foot__support { background: var(--ink); border-radius: 18px; padding: 24px 26px; }
.help-foot__support > .kicker { color: #B9BED3; }
.help-foot__support .help-foot__title, .help-foot__support > p:not(.kicker) { color: #fff; }
.help-foot__support .btn--secondary { background: #fff; border-color: #fff; color: var(--ink); }
.help-foot__support .btn--ghost { color: #fff; }
@media (hover: hover) { .help-foot__support .btn--ghost:hover { background: rgba(255,255,255,.12); } .help-foot__support .btn--secondary:hover { background: #E3E5EC; } }

/* ---- 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-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-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); }
