/* A22: consistent vertical rhythm across the Lomo website.
   Spacing only: preserves typography, content, banners, navigation, forms.
   Desktop / tablet / phone share one spacing scale per viewport.
*/
:root {
  --lomo-section-pad: 56px;
  --lomo-article-pad-top: 42px;
  --lomo-article-pad-bottom: 52px;
  --lomo-story-pad-top: 25px;
  --lomo-story-pad-bottom: 27px;
  --lomo-callout-gap: 18px;
  --lomo-heading-gap: 22px;
}
/* Main vertical sections, including TURN and Research. */
.section { padding-block: var(--lomo-section-pad); }
.article-body, .article-body.chapter-body {
  padding-top: var(--lomo-article-pad-top);
  padding-bottom: var(--lomo-article-pad-bottom);
}
.story-section {
  padding-top: var(--lomo-story-pad-top);
  padding-bottom: var(--lomo-story-pad-bottom);
}
.story-section > h2 { margin-bottom: 18px; }
.story-section .lead-p { margin-bottom: 18px; }
.chapter-intro { margin-bottom: 20px !important; }
.callout, .note-banner { margin-block: var(--lomo-callout-gap); }
.sub-heading { margin-block: var(--lomo-heading-gap) 15px; }
.section > .container > .sub-heading:first-child,
.article-body > .sub-heading:first-child { margin-top: 0; }
.chapter-next { margin-top: 26px; margin-bottom: 0; }
.sources, .chapter-sources { margin-top: 22px; }
/* Tablet: retain visual hierarchy without desktop-sized gaps. */
@media (min-width:621px) and (max-width:920px) {
  :root {
    --lomo-section-pad: 42px;
    --lomo-article-pad-top: 36px;
    --lomo-article-pad-bottom: 44px;
    --lomo-story-pad-top: 23px;
    --lomo-story-pad-bottom: 25px;
    --lomo-callout-gap: 18px;
    --lomo-heading-gap: 24px;
  }
}
/* Phone: small, repeatable transitions, still generous enough to read. */
@media (max-width:620px) {
  :root {
    --lomo-section-pad: 28px;
    --lomo-article-pad-top: 26px;
    --lomo-article-pad-bottom: 34px;
    --lomo-story-pad-top: 20px;
    --lomo-story-pad-bottom: 22px;
    --lomo-callout-gap: 16px;
    --lomo-heading-gap: 22px;
  }
  .topic-hero:not(.lomo-illustrated-hero) { padding-block: 28px 30px; }
  .story-section > h2 { margin-bottom: 16px; }
  .story-section .lead-p { margin-bottom: 16px; }
  .chapter-intro { margin-bottom: 18px !important; }
  .mobile-toc { margin-bottom: 20px; }
  .note-banner, .callout { padding: 17px 19px; }
  .article-body .lead-p { margin-bottom: 17px; }
  .chapter-next { margin-top: 22px; }
  .sources, .chapter-sources { margin-top: 20px; padding-top: 18px; }
  .contact-wrap { gap: 20px; }
  .footer { padding-block: 36px 25px; }
  .footer-grid { gap: 21px; }
  .footer-bottom { margin-top: 25px; padding-top: 18px; }
}
