/* Long-story page only (/how-to/make-long-ai-story-video/).
   v5 (Nov 14 2026): tighten every stacked vertical gap (overrides v4, which lost to the page's inline step/section rules on specificity). Spacing only:
   no text, art, colors, frames, eggs or dedication changed.
   Rhythm: ~36-40px between blocks on desktop, ~24-28px on phones.
   Tinted bands (steps, How it works, Before you start, What's next) get
   their padding inside the color; white sections get half-gaps either side
   of their hairline so two neighbours add up to one gap, not two. */

/* Opening: hero -> hook 48 -> 36; intro -> Need to know box 40 -> 32;
   bottom 24 + How it works 48 = 72 -> 32 */
article.dkv--lv.dkv--hbw .dkv-open{padding-top:36px;padding-bottom:32px}
article.dkv--lv.dkv--hbw .dkv-open .dkv-v2row{margin-top:32px}

/* How it works band (tinted): 48/48 -> 36/36 */
article.dkv--lv.dkv--hbw .lv-pre .dkv-payoff{padding-top:36px;padding-bottom:36px}
article.dkv--lv.dkv--hbw .lv-pre .dkv-payoff > :last-child{margin-bottom:0}

/* Think of it like: 40 top / 40 + 12 last-p bottom -> 36 / 24+12 before step nav */
article.dkv--lv.dkv--hbw .dkv-end.lv-pre > .dkv-sec{padding-top:36px;padding-bottom:24px}

/* Steps (tinted): 56 top / 64 bottom + 16 last-child margin = 136px
   between two steps' content -> 40 + 40 */
article.dkv--lv.dkv--hbw .dkv-step,article.dkv--lv.dkv--hbw .dkv-step+.dkv-step{padding-top:40px;padding-bottom:40px}
article.dkv--lv.dkv--hbw .dkv-step .dkv-text > :last-child,
article.dkv--lv.dkv--hbw .dkv-step .dkv-vis > :last-child{margin-bottom:0}
/* Part 2 heading between steps 4 and 5 */
article.dkv--lv.dkv--hbw .dkv-steps .dkv-step:has(+ .lv-part){padding-bottom:40px}
article.dkv--lv.dkv--hbw .dkv-steps .lv-part{margin-top:32px;margin-bottom:0}
article.dkv--lv.dkv--hbw .dkv-steps .lv-part + .dkv-step{padding-top:28px}

/* End sections (white, hairline on top): each 40 top + 40 bottom = 80px
   between neighbours -> 22 + 18 = 40 */
article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec{padding-top:22px;padding-bottom:18px}
article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec > :last-child,
article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec > .hw-call:last-child{margin-bottom:0}
/* first section right after step 8's band */
article.dkv--lv.dkv--hbw .dkv-flow + .dkv-end > .dkv-sec:first-child{padding-top:36px}
/* figure / callouts inside sections: 40 -> 32 */
article.dkv--lv.dkv--hbw .dkv-sec > .dkv-tw + .hw-fig,
article.dkv--lv.dkv--hbw .dkv-sec > .dkv-sec-list + .hw-fig,
article.dkv--lv.dkv--hbw .dkv-sec > .hw-fig + .hw-call,
article.dkv--lv.dkv--hbw .dkv-sec > .hw-call + .hw-call{margin-top:32px}

/* white section -> tinted band, and tinted band -> white section */
article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec:has(+ .dkv-bys),
article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec:has(+ .dkv-wrap){padding-bottom:32px}
article.dkv--lv.dkv--hbw .dkv-end > .dkv-bys + .dkv-sec,
article.dkv--lv.dkv--hbw .dkv-end > .dkv-wrap + .dkv-sec{padding-top:32px}

/* Before you start band: 40 top / 56 bottom -> 36/36 */
article.dkv--lv.dkv--hbw .dkv-end > .dkv-bys,
article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec + .dkv-bys{padding-top:36px;padding-bottom:36px}
article.dkv--lv.dkv--hbw .dkv-bys > :last-child{margin-bottom:0}

/* What's next band: 48 top / 40 bottom + inner 12 -> 36/36 */
article.dkv--lv.dkv--hbw .dkv-end > .dkv-wrap{padding-top:36px;padding-bottom:36px;margin-bottom:0}
article.dkv--lv.dkv--hbw .dkv-wrap > :last-child,
article.dkv--lv.dkv--hbw .dkv-wrap .dkv-ws{margin-bottom:0}

/* FAQ -> Related guides */
article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec:has(+ .dkv-rel){padding-bottom:32px}

/* Sources -> Last updated: 32 + 16 + 28 = 76 -> 8 + 28 = 36 */
article.dkv--lv.dkv--hbw .dkv-sources{margin-bottom:0}
article.dkv--lv.dkv--hbw .dkv-end:not(.lv-pre){padding-bottom:8px}

@media (max-width:640px){
  article.dkv--lv.dkv--hbw .dkv-open{padding-top:24px;padding-bottom:24px}
  article.dkv--lv.dkv--hbw .dkv-open .dkv-v2row{margin-top:24px}
  article.dkv--lv.dkv--hbw .lv-pre .dkv-payoff{padding-top:28px;padding-bottom:28px}
  article.dkv--lv.dkv--hbw .dkv-end.lv-pre > .dkv-sec{padding-top:28px;padding-bottom:16px}
  article.dkv--lv.dkv--hbw .dkv-step,article.dkv--lv.dkv--hbw .dkv-step+.dkv-step{padding-top:28px;padding-bottom:28px}
  article.dkv--lv.dkv--hbw .dkv-steps .dkv-step:has(+ .lv-part){padding-bottom:28px}
  article.dkv--lv.dkv--hbw .dkv-steps .lv-part{margin-top:24px}
  article.dkv--lv.dkv--hbw .dkv-steps .lv-part + .dkv-step{padding-top:20px}
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec{padding-top:16px;padding-bottom:12px}
  article.dkv--lv.dkv--hbw .dkv-flow + .dkv-end > .dkv-sec:first-child{padding-top:28px}
  article.dkv--lv.dkv--hbw .dkv-sec > .dkv-tw + .hw-fig,
  article.dkv--lv.dkv--hbw .dkv-sec > .dkv-sec-list + .hw-fig,
  article.dkv--lv.dkv--hbw .dkv-sec > .hw-fig + .hw-call,
  article.dkv--lv.dkv--hbw .dkv-sec > .hw-call + .hw-call{margin-top:24px}
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec:has(+ .dkv-bys),
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec:has(+ .dkv-wrap),
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec:has(+ .dkv-rel){padding-bottom:24px}
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-bys + .dkv-sec,
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-wrap + .dkv-sec{padding-top:24px}
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-bys,
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-sec + .dkv-bys{padding-top:28px;padding-bottom:28px}
  article.dkv--lv.dkv--hbw .dkv-end > .dkv-wrap{padding-top:28px;padding-bottom:28px}
  article.dkv--lv.dkv--hbw .dkv-sources{margin-top:24px}
}
