/* The Help section (HelpController; docs/engineering/HELP-VIDEOS.md). Existing tokens only, logical properties only. */
.help-lead, .help-summary { font-size:15px; line-height:1.7; color:var(--muted); max-width:62ch; margin:-12px 0 24px; }
html[lang=ar] .help-lead, html[lang=ar] .help-summary { line-height:1.9; }

/* The guide list: the whole row opens the guide (at least 56px high). */
.help-guides { border:1px solid var(--line); border-radius:17px; background:var(--surface); padding:4px 20px; max-width:860px; }
.help-guides .list-row { position:relative; }
.help-guides .list-row-title::after { content:""; position:absolute; inset:0; }
.help-guides .list-row-title:focus-visible { outline:none; }
.help-guides .list-row:has(.list-row-title:focus-visible) { outline:3px solid var(--blue); outline-offset:2px; border-radius:8px; }
.help-guides .list-row-meta { font-size:13px; line-height:1.6; color:var(--muted); }
.help-length { font-size:13px; color:var(--muted); white-space:nowrap; }

/* One guide: the phone-shaped video beside the written steps; stacked on narrow screens. */
.help-layout { display:grid; grid-template-columns:minmax(0, 360px) minmax(0, 1fr); gap:32px; align-items:start; max-width:1000px; }
.help-video { margin:0; min-width:0; }
.help-video video { display:block; width:100%; height:auto; aspect-ratio:332 / 720; max-height:78vh; border-radius:17px; border:1px solid var(--line); }
.help-video video:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.help-video figcaption { font-size:13px; line-height:1.7; color:var(--muted); margin-top:10px; }
.help-text { min-width:0; }
.help-intro { font-size:15px; line-height:1.75; margin:0 0 14px; max-width:62ch; }
html[lang=ar] .help-intro { line-height:1.9; }
.help-text h2 { font-size:21px; margin:22px 0 12px; }
html[lang=ar] .help-text h2 { font-size:20px; }
.help-steps { margin:0; padding:0; list-style:none; counter-reset:help-step; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.help-steps li { counter-increment:help-step; display:grid; grid-template-columns:32px minmax(0, 1fr); gap:12px; padding:14px 18px; border-top:1px solid var(--line); font-size:15px; line-height:1.7; }
html[lang=ar] .help-steps li { line-height:1.9; }
.help-steps li:first-child { border-top:0; }
.help-steps li::before { content:counter(help-step); display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--moon-soft); color:var(--moon-ink); font-size:13px; font-weight:600; }

/* Before sign-in (the sign-in layout): the guide alone on the page. */
.help-public { width:min(100%, 1040px); margin:0 auto; padding:24px 16px 40px; }
.help-public .passkey-top { margin-bottom:24px; }
.help-public .language-switch { min-height:44px; display:inline-flex; align-items:center; }
.help-public-note { font-size:13px; color:var(--muted); margin:24px 0 4px; }
.help-public .help-back { min-height:44px; }
.help-public .help-back .icon { transform:rotate(180deg); }
html[dir=rtl] .help-public .help-back .icon { transform:none; }

@media (max-width:820px) {
  .help-layout { grid-template-columns:minmax(0, 1fr); gap:20px; }
  .help-video { max-width:360px; margin-inline:auto; width:100%; }
  .help-guides { padding:4px 16px; }
}
