/* Help pages (website/help/, made by tools/build-help.mjs). Builds on tutorial.css's layout. */
.help-intro { padding-bottom: 8px; }
.help-intro h1 { max-width: 18ch; }
.help .breadcrumbs.help-crumbs { margin: 40px 0 28px; }
.help-nav ol { counter-reset: none; }
.help-nav li + li { margin-top: 9px; }
.help-nav a { display: flex; gap: 9px; line-height: 1.35; }
.help-nav a span { color: var(--faint); min-width: 1.4em; font-variant-numeric: tabular-nums; }
.help-nav a[aria-current="page"] { color: var(--accent); }
.help-nav a[aria-current="page"] span { color: var(--accent); }
.help-chapter h1 { margin-bottom: 22px; }
.help-chapter h2 { margin-top: 46px; scroll-margin-top: 92px; }
.help-chapter h3 { margin-top: 30px; scroll-margin-top: 92px; }
.help-chapter h4 { margin: 24px 0 8px; font-size: 1rem; scroll-margin-top: 92px; }
.help-chapter h2 + h3 { margin-top: 18px; }
.help-chapter img { border-radius: var(--radius-sm); }
.help-chapter li { margin-bottom: 8px; }
.help-chapter li > ul, .help-chapter li > ol { margin-top: 8px; }
.help-chapter .tutorial-note > :last-child { margin-bottom: 0; }
.help-toc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg2); padding: 16px 20px; margin: 0 0 8px; }
.help-toc p { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.help-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.help-toc li { margin: 0; padding: 0; font-size: .9rem; }
.help-figure { margin: 26px 0; }
.help-figure img { border: 1px solid var(--line); width: 100%; height: auto; }
.help-figure figcaption { color: var(--faint); font-size: .85rem; margin-top: 8px; }
.help-code { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.help-code code { background: none; border: 0; padding: 0; font-size: inherit; }
.help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.help-pager a { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); font-weight: 600; }
.help-pager a:hover { border-color: var(--accent); text-decoration: none; }
.help-pager small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; margin-bottom: 2px; }
.help-pager .next { text-align: right; }
.help-list h3 a { color: var(--text); }
.help-list h3 a:hover { color: var(--accent); }
.help-list li { grid-template-columns: 38px 1fr; }
.help-list .chapter-number { color: var(--accent); }
.help-start p { max-width: 68ch; }
.help-search { margin-top: 28px; max-width: 640px; }
.help-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.help-search input { width: 100%; font: 1rem var(--font); color: var(--text); background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 12px 14px; }
.help-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.help-results-count { color: var(--muted); font-size: .88rem; margin: 10px 0 0; min-height: 1.4em; }
.help-results { list-style: none; padding: 0; margin: 6px 0 0; }
.help-results li { border-bottom: 1px solid var(--line); }
.help-results a { display: block; padding: 12px 0; color: var(--text); }
.help-results a:hover { text-decoration: none; }
.help-results a:hover b { color: var(--accent); }
.help-results small { display: block; color: var(--faint); font-size: .8rem; }
.help-results span { display: block; color: var(--muted); font-size: .9rem; }
.help-results mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); border-radius: 3px; padding: 0 2px; }
@media (max-width: 760px) {
  .help .breadcrumbs.help-crumbs { margin: 24px 0 20px; }
  .help-nav { order: 2; }
  .help-chapter h2, .help-chapter h3, .help-chapter h4 { scroll-margin-top: 80px; }
  .help-pager { grid-template-columns: 1fr; }
  .help-pager .next { text-align: left; }
}
@media print { .help-toc, .help-pager, .help-search { display: none; } }
