/* Help pages (tutorials and FAQ). Colours, the top bar, the logo and the light/dark switch come from ../styles.css. */
body { background: var(--bg); }
.help-top { max-width: 1180px; }
.help-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.help-nav a {
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; border: 1px solid transparent;
}
.help-nav a:hover { border-color: var(--line); color: var(--accent-text); }
.help-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.help-nav a.to-app { border-color: var(--accent); color: var(--accent-text); }

.help-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 20px 40px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.help-wrap.single { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.help-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.help-toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.help-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.help-toc li { counter-increment: toc; }
.help-toc a { display: flex; gap: 8px; padding: 5px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.help-toc a::before { content: counter(toc); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.help-toc a:hover { background: var(--surface-2); }
.help-toc a.on { background: var(--accent-soft); color: var(--accent-text); }
.help-toc a.on::before { background: var(--accent); color: var(--accent-ink); }

.help-main { min-width: 0; }
.help-hero { padding: 6px 0 18px; }
.help-hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.help-hero p { margin: 0; color: var(--muted); font-size: 16px; max-width: 70ch; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }

.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin: 0 0 18px; scroll-margin-top: 16px; }
.step-card > h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 10px; }
.step-card > h2 .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
.step-card h3 { font-size: 16px; color: var(--heading); margin: 18px 0 6px; }
.step-card p, .step-card li { max-width: 78ch; }
.step-card p { margin: 0 0 10px; }
.step-card ol, .step-card ul { margin: 0 0 10px; padding-left: 22px; }
.step-card li { margin: 3px 0; }
.step-card a, .faq a, .help-hero a { color: var(--accent-text); }
b.ui, span.ui { font-weight: 650; color: var(--heading); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
kbd { font: 12px var(--mono); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); }

figure.shot { margin: 14px 0 16px; }
figure.shot img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(25, 44, 88, .10); background: #f4f6fb; }
figure.shot.narrow img { max-width: 420px; }
figure.shot.phone img { max-width: 300px; }
figure.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.shots-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.shots-2 figure.shot { margin: 10px 0; }

.tip, .note, .warn { border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.tip { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); }
.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.tip::before { content: "Tip: "; font-weight: 700; color: var(--ok); }
.note::before { content: "Good to know: "; font-weight: 700; color: var(--heading); }
.warn::before { content: "Note: "; font-weight: 700; color: var(--warn); }
.tier { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); vertical-align: middle; margin-left: 4px; }

table.opts { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0 12px; }
table.opts th, table.opts td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.opts th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
table.opts td:first-child { font-weight: 600; color: var(--heading); white-space: nowrap; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pager a { flex: 1; display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--heading); font-weight: 650; }
.pager a span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pager a:hover { border-color: var(--accent); }
.pager a.next { text-align: right; }

/* hub */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 10px 0 26px; }
.hub a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; transition: border-color .2s, transform .15s; }
.hub a:hover { border-color: var(--accent); transform: translateY(-2px); }
.hub a img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); }
.hub a strong { font-size: 18px; color: var(--heading); }
.hub a span { color: var(--muted); font-size: 14px; }
.quick { counter-reset: q; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick li { counter-increment: q; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.quick li::before { content: counter(q); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.quick b { color: var(--heading); }

/* FAQ */
.faq-search { position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--bg); }
.faq-search input { width: 100%; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.faq-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.faq-search .muted { display: block; margin-top: 6px; font-size: 13px; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.faq-cats a { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.faq-cats a:hover { border-color: var(--accent); color: var(--accent-text); }
.faq h2 { font-size: 19px; margin: 22px 0 10px; scroll-margin-top: 90px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; scroll-margin-top: 90px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { position: relative; cursor: pointer; padding: 13px 16px 13px 46px; font-weight: 650; color: var(--heading); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; position: absolute; left: 16px; top: 14px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; background: var(--surface-2); color: var(--accent-text); }
.faq details[open] summary::before { content: "\2212"; }
.faq .a { padding: 0 16px 14px 46px; }
.faq .a p { margin: 0 0 8px; max-width: 78ch; }
.faq .a ul, .faq .a ol { margin: 0 0 8px; padding-left: 20px; }
.faq .a figure.shot img { max-width: min(100%, 560px); }
.faq mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }
.faq .none { text-align: center; padding: 30px 0; }

.help-foot { text-align: center; padding: 0 20px 30px; }
.help-foot a { color: var(--accent-text); }
.foot-brand { display: inline-flex; vertical-align: middle; margin-right: 2px; }
.foot-logo { height: 26px; width: auto; }

@media (max-width: 960px) {
  .help-wrap { grid-template-columns: minmax(0, 1fr); }
  .help-toc { position: static; max-height: none; }
  .hub, .quick { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .help-wrap { padding: 4px 16px 30px; }
  .help-nav a { padding: 6px 9px; font-size: 13px; }
  .help-hero h1 { font-size: 24px; }
  .step-card { padding: 16px; }
  .shots-2 { grid-template-columns: minmax(0, 1fr); }
  .faq .a { padding-left: 16px; }
  table.opts td:first-child { white-space: normal; }
}

/* Parts about a feature the administrator switched off (help.js) */
[data-feature-off] { display: none !important; }

/* The Studio tutorial's groups of steps */
.help-group { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 28px 0 10px 4px; }
.help-main .help-group:first-of-type { margin-top: 8px; }
