/* ==========================================================================
   Help: the guides, the video library, the sidebar. Loaded after site.css; same tokens.
   ========================================================================== */
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-toc { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; display: flex; flex-direction: column; padding: 18px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); }
.help-toc h4 { font: 700 .72rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dimmer); margin: 18px 10px 6px; }
.help-toc a { color: var(--text-dim); font-size: .94rem; padding: 7px 10px; border-radius: 8px; line-height: 1.35; }
.help-toc a:hover { color: #fff; background: var(--panel-strong); text-decoration: none; }
.help-toc a[aria-current="page"] { color: var(--on-orange); background: linear-gradient(180deg, var(--orange-bright), var(--orange)); font-weight: 600; }
.help-main { min-width: 0; }
.help-group + .help-group { margin-top: 56px; }
.help-group h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .6em; }
.help-card { display: block; }
.help-card:hover { text-decoration: none; }
.help-vstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.help-vstrip a { display: block; color: #fff; font: 600 .9rem/1.3 var(--font-display); }
.help-vstrip a:hover { text-decoration: none; }
.help-vstrip img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--border); margin-bottom: 8px; }
.help-vstrip small { display: block; color: var(--text-dimmer); font: 400 .8rem var(--font-body); }
.faq-wide { max-width: none; margin: 0; }

.help-hero h1 { max-width: 24ch; }
.help-video { margin: 0 0 28px; background: #000; border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.help-video video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.help-video p { margin: 0; padding: 12px 18px; font-size: .92rem; background: var(--panel); }
.help-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); }
.help-jump b { flex: 0 0 100%; font: 700 .74rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dimmer); }
.help-jump a { font-size: .88rem; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--text-dim); }
.help-jump a:hover { color: #fff; border-color: var(--border-strong); text-decoration: none; }
.help-sec { padding: 34px 0 6px; border-bottom: 1px solid var(--border); }
.help-sec:last-of-type { border-bottom: 0; }
.help-sec h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.help-sec p { font-size: 1.02rem; max-width: 74ch; }
.help-steps { max-width: 74ch; margin: 0 0 1.2em; padding-left: 1.4em; color: var(--text-dim); }
.help-steps li { margin: 0 0 .5em; padding-left: .3em; }
.help-steps li::marker { color: var(--orange-bright); font-weight: 700; }
.help-tip { padding: 12px 16px; background: rgba(63,180,221,.08); border: 1px solid rgba(63,180,221,.28); border-radius: var(--r-sm); }
.help-tip b { color: var(--teal-bright); margin-right: 8px; text-transform: uppercase; font-size: .76rem; letter-spacing: .1em; }
.help-shot { margin: 22px 0 28px; }
.help-shot a { display: block; border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); background: #000; cursor: zoom-in; }
.help-shot a:hover { border-color: var(--teal-bright); text-decoration: none; }
.help-shot img { width: 100%; height: auto; }
.help-shot figcaption { margin-top: 10px; font-size: .88rem; color: var(--text-dimmer); text-align: center; }
.help-related { margin: 48px 0 12px; }
.help-related h2 { font-size: 1.5rem; }
.zoom-ov { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(5,7,11,.92); cursor: zoom-out; }
.zoom-ov img { max-width: 100%; max-height: 100%; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }

.vid-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.vid-card { display: block; width: 100%; text-align: left; padding: 0; cursor: pointer; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; font: inherit; color: inherit; transition: transform .2s, border-color .2s; }
.vid-card:hover, .vid-card:focus-visible { transform: translateY(-3px); border-color: var(--border-strong); }
.vid-thumb { position: relative; display: block; aspect-ratio: 16/9; background: #000; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-num { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(5,7,11,.8); border: 1px solid var(--border-strong); color: var(--orange-bright); font: 700 .8rem/26px var(--font-display); text-align: center; }
.vid-len { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(5,7,11,.8); font-size: .78rem; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(5,7,11,.3); transition: opacity .2s; }
.vid-play svg { width: 54px; height: 54px; }
.vid-card:hover .vid-play, .vid-card:focus-visible .vid-play { opacity: 1; }
.vid-body { display: block; padding: 16px 18px 20px; }
.vid-body b { display: block; font: 700 1.05rem/1.3 var(--font-display); color: #fff; margin-bottom: 6px; }
.vid-body span { display: block; font-size: .9rem; color: var(--text-dim); line-height: 1.55; }
.vid-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5,7,11,.9); }
.vid-modal[hidden] { display: none; }
.vid-modal-box { width: min(1040px, 100%); max-height: 94vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.vid-modal-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px 0; }
.vid-modal-head h3 { font-size: 1.25rem; margin-bottom: 4px; }
.vid-modal-head p { font-size: .94rem; margin-bottom: 10px; max-width: 70ch; }
.vid-modal-head a { display: inline-block; margin-bottom: 14px; font-weight: 600; }
.vid-modal-head button { flex: none; width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; color: var(--text-dim); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.vid-modal-head button:hover { color: #fff; border-color: var(--border-strong); }
.vid-stage { background: #000; aspect-ratio: 16/9; }
.vid-stage video { display: block; width: 100%; height: 100%; }

@media (max-width: 960px) {
  .help-layout { grid-template-columns: 1fr; gap: 28px; }
  .help-toc { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 4px; order: 2; }
  .help-toc h4 { flex: 0 0 100%; margin: 12px 6px 2px; }
  .help-vstrip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .vid-grid { grid-template-columns: 1fr; } }
