/* Long-story page only (/how-to/make-long-ai-story-video/).
   v2 (Nov 14 2026): undo the doubled vertical gaps from lv-spacing-v1.
   v1 added 40px/32px margins AND 4px top / 16px bottom padding on
   end-section figures, which stacked with the figures' 14px margin-bottom
   and with step/section padding. Target rhythm: 40px desktop / 32px phone
   between blocks. Spacing only: no changes to figures, frames, colors,
   text, or eggs. */

/* Drop the chrome padding. The 4px rim and 16px plate shadow paint into
   the 40/32 block gap and do not need their own layout space on top of it. */
.dkv--lv .dkv-sec > .hw-fig{
  padding-top:0;
  padding-bottom:0;
}

/* Keep the v1 block gaps, and zero the leftover 14px margin on the first
   sibling so it cannot add if margins fail to collapse. */
.dkv--lv .dkv-sec > .dkv-tw + .hw-fig,
.dkv--lv .dkv-sec > .dkv-sec-list + .hw-fig,
.dkv--lv .dkv-sec > .hw-fig + .hw-call,
.dkv--lv .dkv-sec > .hw-call + .hw-call{
  margin-top:40px;
}
.dkv--lv .dkv-sec > .hw-fig:has(+ .hw-call),
.dkv--lv .dkv-sec > .hw-call:has(+ .hw-call),
.dkv--lv .dkv-sec > .hw-fig:last-child{
  margin-bottom:0;
}

/* FIG 10 was the last child of a 40px-padded section, then .dkv-bys
   added another 32px = 102px after v1's 16+14 figure extras. Leave the
   section's bottom padding off and let bys provide the 40/32 gap. */
.dkv--lv .dkv-sec:has(+ .dkv-bys){
  padding-bottom:0;
}
.dkv--lv .dkv-sec + .dkv-bys{
  padding-top:40px;
}

/* "Part 2" sits between step 4 and step 5. Its 8/40 margins were stacking
   on the steps' 64px bottom / 56px top padding (72px above, 96px below). */
.dkv--lv .dkv-steps .lv-part{
  margin-top:0;
  margin-bottom:0;
}
.dkv--lv .dkv-steps .dkv-step:has(+ .lv-part){
  padding-bottom:40px;
}
.dkv--lv .dkv-steps .lv-part + .dkv-step{
  padding-top:40px;
}

@media (max-width:600px){
  .dkv--lv .dkv-sec > .dkv-tw + .hw-fig,
  .dkv--lv .dkv-sec > .dkv-sec-list + .hw-fig,
  .dkv--lv .dkv-sec > .hw-fig + .hw-call,
  .dkv--lv .dkv-sec > .hw-call + .hw-call{
    margin-top:32px;
  }
  .dkv--lv .dkv-sec + .dkv-bys{
    padding-top:32px;
  }
  .dkv--lv .dkv-steps .dkv-step:has(+ .lv-part){
    padding-bottom:32px;
  }
  .dkv--lv .dkv-steps .lv-part + .dkv-step{
    padding-top:32px;
  }
}
