/* The guides (site/help/, built by scripts/site-help.mjs): one question each, in the site's own tokens (styles.css). */

.help { padding-top: 28px; padding-bottom: 72px; }
.help-article { max-width: 760px; }
.help-article > * { max-width: 100%; }

/* Breadcrumb and date */
.help-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.help-crumbs a { color: var(--ink-3); text-decoration: none; }
.help-crumbs a:hover { color: var(--signal); }
.help-article h1 { font-size: clamp(34px, 5.2vw, 58px); max-width: 20ch; line-height: 1.02; letter-spacing: -.04em; margin: 18px 0 14px; }
.help-date { font-size: 15px; line-height: 1.4; color: var(--ink-3); margin: 0 0 30px; }
.help-date::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-inline-end: 9px; vertical-align: 1px; }

/* Text */
.help-article > p, .help-article li { color: var(--ink-2); }
.help-article > p:first-of-type { font-size: 21px; color: var(--ink); }
.help-article h2 { font-size: clamp(25px, 2.8vw, 32px); max-width: 30ch; line-height: 1.15; letter-spacing: -.02em; margin: 52px 0 16px; scroll-margin-top: 92px; }
.help-article a { font-weight: 500; }
.help-article b, .help-article strong { color: var(--ink); }

/* The short answer: what an assistant would quote */
.help-answer { position: relative; margin: 26px 0 30px; padding: 22px 24px 22px 26px; border-radius: 12px; background: #e3f5ec; color: #06301d !important; font-size: 19px; border-inline-start: 4px solid var(--signal); }
.help-answer strong { display: block; color: #0a7a4a !important; font-size: 14px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.help-answer .path { background: #fff; border-color: #bfe3cf; color: #06301d; }

/* Contents */
.help-toc { margin: 0 0 8px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 12px; }
.help-toc p { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.help-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 4px; }
.help-toc li { counter-increment: toc; display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.help-toc li::before { content: counter(toc, decimal-leading-zero); font: 500 13px/1.75 var(--mono); color: var(--signal); flex: none; }
.help-toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.help-toc a:hover { color: var(--signal); text-decoration: underline; }

/* Numbered steps */
.help-steps { list-style: none; margin: 0 0 1.2em; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.help-steps li { counter-increment: step; position: relative; padding: 14px 18px 14px 58px; background: var(--bg-2); border-radius: 10px; font-size: 17px; line-height: 1.5; }
.help-steps li::before { content: counter(step); position: absolute; inset-inline-start: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 14px/28px var(--mono); text-align: center; }
[dir="rtl"] .help-steps li { padding: 14px 58px 14px 18px; }
.help-article ul:not([class]) { padding-inline-start: 1.2em; }
.help-article ul:not([class]) li { margin-bottom: .4em; }

/* Settings paths as chips */
.path { display: inline; padding: .08em .45em; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg-2); color: var(--ink); font-size: .9em; font-weight: 500; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Tables scroll inside themselves on a phone */
.help-table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--rule); border-radius: 12px; }
.help-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.help-table th, .help-table td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--rule); }
.help-table thead th { background: var(--bg-2); font: 600 13px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.help-table tbody tr:last-child > * { border-bottom: 0; }
.help-table tbody th { color: var(--ink); font-weight: 600; }
.help-table td { color: var(--ink-2); }

/* The download card */
.help-cta { display: flex; gap: 22px; align-items: flex-start; margin: 56px 0 0; padding: 28px; border-radius: 16px; background: var(--night); color: var(--scope-ink); --ink: #f1f3f2; --ink-2: #b4bbb7; --ink-3: #8a918e; --rule: #262c2a; --signal: #5ef0a6; }
.help-cta img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.help-cta p { color: var(--ink-2); font-size: 17px; margin: 0; }
.help-cta p a { color: var(--ink); font-weight: 650; }
.help-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.help-cta .btn { background: var(--signal); border-color: var(--signal); color: #06110b; }
.help-cta .btn:hover { background: #fff; border-color: #fff; color: #06110b; }
.help-cta .btn.line { background: transparent; border-color: #4a524e; color: var(--ink); }
.help-cta .btn.line:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.help-cta p.help-cta-note { font-size: 14px; color: var(--ink-3); }

/* More guides */
.help-more { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--rule); }
.help-more h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.help-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.help-more a { display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; transition: border-color .2s, transform .2s; }
.help-more a:hover { border-color: var(--signal); transform: translateY(-2px); }
.help-more strong { color: var(--ink); font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.help-more span { color: var(--ink-3); font-size: 15px; line-height: 1.45; }

/* The language picker is a plain list of links here, one per language of this guide */
.help-lang summary { list-style: none; }
.help-lang summary::-webkit-details-marker { display: none; }
.help-lang[open] .lang-btn { color: var(--ink); border-color: var(--ink-3); }
.help-lang .lang-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 5px; color: var(--ink); font: 500 16px var(--sans); text-decoration: none; }
.help-lang .lang-menu a:hover, .help-lang .lang-menu a:focus-visible { background: var(--bg-2); outline: none; }
.help-lang .lang-menu a[aria-current]::after { content: "✓"; color: var(--signal); font-family: var(--mono); }
.help-page .top nav { margin-inline-start: auto; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .help-answer { background: #10261b; color: #e3f9ec !important; }
  :root:not([data-theme="light"]) .help-answer strong { color: #5ef0a6 !important; }
  :root:not([data-theme="light"]) .help-answer .path { background: #0c1a13; border-color: #24503a; color: #e3f9ec; }
  :root:not([data-theme="light"]) .help-cta { background: var(--bg-2); border: 1px solid var(--rule); }
}

@media (max-width: 640px) {
  .help { padding-top: 18px; padding-bottom: 48px; }
  .help-article > p:first-of-type { font-size: 19px; }
  .help-answer { padding: 18px 18px 18px 20px; font-size: 18px; }
  .help-article h2 { margin-top: 40px; }
  .help-steps li { padding: 12px 14px 12px 52px; font-size: 16px; }
  .help-steps li::before { inset-inline-start: 13px; top: 11px; }
  [dir="rtl"] .help-steps li { padding: 12px 52px 12px 14px; }
  .help-cta { flex-direction: column; padding: 22px 18px; }
  .help-cta img { width: 52px; height: 52px; }
  .help-cta .btn { width: 100%; }
  .help-more ul { grid-template-columns: 1fr; }
}
