/* ═══ Help page — layout (moved out of the old inline <style>) ═══ */
html, body { height: 100%; overflow: hidden; }

.help-layout { display: grid; grid-template-columns: 220px 1fr; flex: 1; min-height: 0; }
.help-sidebar {
  border-right: 1px solid var(--border); background: var(--chrome-lo);
  padding: 24px 16px; overflow-y: auto; position: sticky; top: 0;
}
.help-sidebar h3 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin: 20px 0 10px;
}
.help-sidebar h3:first-child { margin-top: 0; }
.help-nav { list-style: none; padding: 0; }
.help-nav li { margin-bottom: 2px; }
.help-nav a {
  display: block; padding: 5px 10px; border-radius: 5px; font-size: 12px;
  color: var(--text-mid); text-decoration: none; transition: background 0.1s, color 0.1s;
}
.help-nav a:hover { background: var(--border); color: var(--text); text-decoration: none; }
.help-nav a.active { background: var(--accent-tint); color: var(--accent-text); font-weight: 600; }

.help-content { padding: 56px 56px; overflow-y: auto; max-width: 820px; }
.help-content h1 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.help-content .article-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 28px; }
.help-content h2 { font-size: 14px; font-weight: 700; margin: 34px 0 10px; }
.help-content h3 { font-size: 12.5px; font-weight: 700; margin: 22px 0 8px; }
.help-content p { font-size: 12px; line-height: 1.75; color: var(--text-mid); margin-bottom: 14px; }
.help-content ol, .help-content ul { padding-left: 20px; margin-bottom: 14px; }
.help-content li { font-size: 12px; line-height: 1.7; color: var(--text-mid); margin-bottom: 5px; }
.help-content hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.help-content code {
  font-family: monospace; background: var(--chrome-lo); border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 5px; font-size: 11px;
}
.help-kbd {
  display: inline-block; font-family: monospace; font-size: 10.5px; line-height: 1;
  padding: 3px 6px; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 4px; background: var(--chrome); color: var(--text);
}
.help-tip-box {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--chrome-lo); border-radius: 6px; padding: 10px 14px;
  font-size: 11.5px; line-height: 1.65; color: var(--text-mid); margin: 14px 0 20px;
}
.help-tip-box strong { color: var(--text); }

/* ═══ Clips: short loops recorded from the app (help/clips/, dev/help/build-help-clips.py) ═══ */
.help-clip { margin: 18px 0 24px; }
.help-clip video {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 8px; background: var(--chrome-lo);
}
/* sprite-only clips are 2x art at their own size: keep the pixels square when scaled */
.help-clip.is-pixel video { image-rendering: pixelated; }
.help-clip figcaption {
  font-size: 11px; line-height: 1.5; color: var(--text-dim);
  text-align: center; margin: 8px auto 0; max-width: 560px;
}

/* ═══ Phones: one column, no sidebar ═══ */
@media (max-width: 760px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-sidebar { display: none; }
  .help-content { padding: 28px 16px 40px; }
}
