/* Help: the topic list down the side, one readable column per topic, and an "On this page" list on wide screens. */
.help-nav { justify-content: space-between; }
.help-nav__help { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.help-nav__help[aria-current="page"], .help-nav__help:hover { background: var(--green-50); color: var(--green-900); }
/* On phones the brand and the sign-in button share one line; the breadcrumb already says this is Help. */
@media (max-width: 480px) { .help-nav__help { display: none; } }

.help-shell { max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 24px) 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.help-side { font-size: 15px; }
/* Follows the reader when the screen is tall enough to show the whole list (a scrolling sidebar stopped some pages drawing). */
@media (min-width: 901px) and (min-height: 760px) { .help-side { position: sticky; top: 16px; } }
.help-side > summary { display: none; }
/* Wide screens show the list even before the script opens it. */
@media (min-width: 901px) { .help-side::details-content { content-visibility: visible; display: contents; } }
.help-side__search { margin-bottom: 12px; }
.help-side__search .input { height: 40px; }
.help-side nav { display: flex; flex-direction: column; }
.help-side ul { list-style: none; margin: 0 0 8px; padding: 0; }
.help-side a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.help-side a:hover { background: var(--surface); color: var(--ink); }
.help-side a[aria-current="page"] { background: var(--green-50); color: var(--green-900); font-weight: 600; }
.help-side__home { font-weight: 600; }
.help-side__group { margin: 14px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

.help-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.help-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); }
.help-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.help-lede { font-size: 19px; color: var(--ink-2); }

.help-columns { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 40px; align-items: start; }
.help-toc { position: sticky; top: 16px; font-size: 14px; border-left: 1px solid var(--line); padding-left: 16px; }
.help-toc__title { font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.help-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.help-toc a { display: block; padding: 3px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.help-toc a:hover { color: var(--green-700); }
.help-toc a[aria-current="true"] { color: var(--green-900); font-weight: 600; }

/* The article: comfortable reading, headings that link to themselves. */
.help-article { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; }
.help-article h2 { font-size: 26px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.help-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.help-article h3 { font-size: 19px; margin-top: 12px; }
.help-article h4 { font-size: 16px; margin: 6px 0 0; font-family: var(--font-body); font-weight: 600; }
.help-article :is(h2, h3)[id] { scroll-margin-top: 16px; position: relative; }
.help-anchor { margin-left: 8px; color: var(--line-strong); text-decoration: none; font-weight: 500; opacity: 0; }
.help-article :is(h2, h3):hover .help-anchor, .help-anchor:focus { opacity: 1; }
.help-anchor:hover { color: var(--green-700); }
:target { animation: help-target 2s ease-out; }
@keyframes help-target { from { background: var(--green-50); } to { background: transparent; } }
.help-article ul, .help-article ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.help-article li > ul, .help-article li > ol { margin-top: 6px; }
.help-article code, .help-article kbd { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.help-article pre { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; line-height: 1.5; }
.help-article pre code { border: 0; padding: 0; background: none; font-size: inherit; }
.help-article dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.help-article dt { font-weight: 600; }
.help-article dd { margin: 2px 0 0; color: var(--ink-2); }

/* Quick start: numbered steps in a green card. */
.help-quick { background: var(--surface); border: 1px solid var(--green-100); border-left: 4px solid var(--green-700); border-radius: 12px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.help-quick h2 { margin: 0; padding: 0; border: 0; font-size: 20px; }
.help-quick ol { gap: 8px; }

/* Examples, tips and notes. */
.help-example { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.help-example__title { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--green-900); }
.help-tip, .help-note, .help-warn { padding: 12px 16px; border-radius: 10px; font-size: 16px; }
.help-tip { background: var(--green-50); border: 1px solid var(--green-100); color: #24392C; }
.help-note { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.help-warn { background: var(--purple-50); border: 1px solid var(--purple-100); color: var(--purple-900); }
.help-tip > b:first-child, .help-note > b:first-child, .help-warn > b:first-child { margin-right: 4px; }
.help-figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.help-figure figcaption { font-size: 14px; color: var(--ink-3); }

/* Tables scroll sideways on phones rather than squeezing. */
.help-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.help-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.help-table th, .help-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.help-table thead th { border-top: 0; background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.help-table td.num, .help-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.help-table tfoot td { font-weight: 600; border-top: 1px solid var(--line); }

/* Related topics and topic cards on the help home. */
.help-foot { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.help-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.45; }
.help-card b { color: var(--ink); font-family: var(--font-head); font-size: 17px; }
.help-card:hover { border-color: var(--green-700); color: var(--ink-2); }

/* Help home: search, then the topics by group. */
.help-home { display: flex; flex-direction: column; gap: 28px; max-width: 1000px; }
.help-hero { display: flex; flex-direction: column; gap: 14px; }
.help-search { position: relative; max-width: 640px; }
.help-search .input { height: 54px; font-size: 18px; padding-left: 46px; }
.help-search::before { content: ""; position: absolute; left: 17px; top: 18px; width: 13px; height: 13px; border: 2px solid var(--ink-3); border-radius: 50%; }
.help-search::after { content: ""; position: absolute; left: 30px; top: 32px; width: 7px; height: 2px; background: var(--ink-3); transform: rotate(45deg); }
.help-group { display: flex; flex-direction: column; gap: 12px; }
.help-group h2 { font-size: 20px; }
.help-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.help-results a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink-2); font-size: 15px; }
.help-results a:hover { border-color: var(--green-700); }
.help-results__where { font-size: 13px; color: var(--ink-3); }
.help-results__heading { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); }
.help-results mark { background: var(--green-100); color: inherit; border-radius: 2px; padding: 0 1px; }

@media (max-width: 1180px) {
  .help-columns { grid-template-columns: minmax(0, 760px); }
  .help-toc { display: none; }
}
@media (max-width: 900px) {
  .help-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .help-side { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .help-side > summary { display: flex; align-items: center; height: 46px; padding: 0 14px; cursor: pointer; font-weight: 600; }
  .help-side[open] { padding-bottom: 8px; }
  .help-side[open] > summary { border-bottom: 1px solid var(--line-soft); margin-bottom: 10px; }
  .help-side__search, .help-side nav { margin-left: 8px; margin-right: 8px; }
  .help-article { font-size: 16px; }
  .help-article h2 { font-size: 23px; }
  .help-lede { font-size: 17px; }
}
@media print {
  .tp-header, .help-side, .help-toc, .help-foot .help-cards { display: none !important; }
  .help-shell, .help-columns { display: block; }
}
