/* /help/: the index and the user guides (scripts/help.mjs). On top of landing.css (nav, buttons, .info-kicker) and app.css
   (page frame .find, footer). Tokens only; logical properties so RTL works. Sections are numbered by CSS. */

.help { max-width: 960px; line-height: 1.7; counter-reset: help; }
.help-crumb { font-size: 14px; margin-bottom: 8px; }
.help-crumb a, .help-langs a, .help-contact a, .help-toc a, .help-sec a:not(.btn-solid) { color: var(--gold-text); }
.help-actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.help-size { color: var(--muted); font-size: 13px; }
.help-langs { margin-top: 12px; font-size: 14px; color: var(--muted); }
.help-langs a { font-weight: 500; margin-inline: 2px; }

.help-how { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 8px 0 20px; font-size: 15px; }
.help-how p { margin: 0; }

.help-toc { border-top: 1px solid var(--border); padding: 16px 0 0; margin-bottom: 8px; }
.help-toc h2 { font-family: var(--font-display); font-size: calc(24px * max(var(--title-scale), 0.8)); font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.help-toc ol { padding-inline-start: 24px; columns: 2 260px; column-gap: 32px; }
.help-toc li { margin-bottom: 6px; break-inside: avoid; }
.help-toc li::marker { color: var(--gold-text); }

.help-sec { counter-increment: help; scroll-margin-top: 110px; padding-top: 12px; }
.help-sec > h2 {
  font-family: var(--font-display);
  font-size: calc(28px * max(var(--title-scale), 0.8));
  font-weight: 600; line-height: 1.3;
  margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--border);
}
.help .help-sec > h2 > a { color: var(--heading); text-decoration: none; }
.help-sec > h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.help-sec > h2::before { content: counter(help) ". "; color: var(--gold-text); font-variant-numeric: lining-nums; }
html[lang="ur"] .help-sec > h2::before { content: counter(help) "۔ "; }
.help-sec p, .help-sec ul, .help-sec ol { margin-bottom: 10px; }
.help-sec ul, .help-sec ol { padding-inline-start: 22px; }
.help-sec li { margin-bottom: 6px; }
.help-sec li::marker { color: var(--gold-text); }
.help-sec h3 { font-size: 17px; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.help-intro { font-size: 16px; }
.help b, .help strong { color: var(--heading); font-weight: 600; }
.help .ui { color: var(--heading); background: var(--gold-pale); border-radius: 4px; padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.help .ltr { direction: ltr; unicode-bidi: isolate; }
.help .ring { display: inline-block; width: 20px; height: 13px; border: 2px solid var(--gold); border-radius: 5px; vertical-align: -2px; }
.help svg { max-width: 100%; height: auto; }

/* A numbered step: the words, and the real screen beside them (under them on a phone). */
.help-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 16px 32px; align-items: start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.help-step:not(:has(.help-shot)) { grid-template-columns: minmax(0, 1fr); }
.help-txt { display: flex; gap: 12px; align-items: flex-start; }
.help-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 15px; line-height: 1; font-variant-numeric: lining-nums;
}
.help-shot { margin: 0; }
.help-shot img { display: block; width: 100%; max-width: 340px; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(var(--shadow), 0.1); background: var(--surface); }
.help-shot.small img { max-width: 260px; }
.help-shot figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.help-auto ul { margin-top: 6px; }

.help-note { background: var(--gold-pale); border-inline-start: 4px solid var(--gold); border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.help-note.warn { background: var(--danger-bg); border-inline-start-color: var(--danger); }
.help-note strong { margin-inline-end: 4px; }
.help-note p { display: inline; margin: 0; }

.help-install { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.help-install-label { color: var(--muted); font-size: 14px; }

.help-statuses { display: grid; gap: 10px; margin: 12px 0; }
.help-statuses div { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 12px; align-items: baseline; }
.help-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; background: var(--gold-pale); color: var(--gold-text); }
.help-badge.listed { background: var(--brand); color: var(--on-brand); }
.help-badge.no { background: var(--danger-bg); color: var(--danger); }
.help-badge.off { background: var(--tint); color: var(--muted); }

.help-contact { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); }
.help-contact a { overflow-wrap: anywhere; }

/* /help/ index: the two guides */
.help-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-top: 12px; }
.help-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.help-card h2 { font-family: var(--font-display); font-size: calc(26px * max(var(--title-scale), 0.8)); font-weight: 600; color: var(--heading); line-height: 1.25; }
.help-card p { color: var(--muted); font-size: 15px; }
.help-card .help-actions { margin-top: auto; }

@media (max-width: 760px) {
  .help-step { grid-template-columns: minmax(0, 1fr); }
  .help-shot { padding-inline-start: 42px; }
  .help-statuses div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 900px) { .help-sec { scroll-margin-top: 140px; } }

/* An on-screen button named in a step ("Tap the menu ⋮"): a small key cap with its icon at text size (the manuals' .key /
   .kebab). Without these the icon's SVG drew at full width in black. */
.key { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border: 1px solid var(--border, #CDBF96);
  border-radius: 6px; background: var(--surface, #FBF8F0); color: var(--heading, #1A3A2A); font-weight: 600; line-height: 1.4;
  vertical-align: baseline; }
.key svg, .kebab { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.2em; fill: currentColor; }
