
/* AutoPilot V22.62 — unified page background + compact article vertical rhythm */

:root{
  --ap-page-bg:#0b0f12;
}

/* One canonical background on every page. */
html,
body,
body.home-v15,
body.article-page,
body.articles-page{
  background:var(--ap-page-bg)!important;
  background-color:var(--ap-page-bg)!important;
}

/* Remove accidental page-level gradients/alternate fills without changing cards/sections. */
body::before,
body::after{
  background-color:transparent;
}

/* Individual article pages: remove excessive empty space below the fixed header
   and after the final content block. */
body.article-page .article-shell{
  padding-top:24px!important;
  padding-bottom:34px!important;
}
body.article-page .article-back{
  margin-bottom:18px!important;
}
body.article-page .article-kicker{
  margin-bottom:8px!important;
}
body.article-page .article-shell h1{
  margin-bottom:12px!important;
}
body.article-page .article-lead{
  margin-bottom:16px!important;
}
body.article-page .article-meta{
  padding-bottom:16px!important;
}
body.article-page .article-hero{
  margin-top:20px!important;
  margin-bottom:22px!important;
}
body.article-page .article-body>p:first-child{
  margin-top:0!important;
}
body.article-page .article-body>*:last-child{
  margin-bottom:0!important;
}
body.article-page .article-next{
  margin-top:28px!important;
  margin-bottom:0!important;
}
body.article-page .article-sources{
  margin-top:30px!important;
}

/* Articles library page: same tighter top/bottom rhythm. */
body.articles-page .articles-shell{
  padding-top:28px!important;
  padding-bottom:42px!important;
}
body.articles-page .articles-intro{
  margin-top:0!important;
  margin-bottom:22px!important;
}

@media(max-width:700px){
  body.article-page .article-shell{
    padding-top:18px!important;
    padding-bottom:26px!important;
  }
  body.articles-page .articles-shell{
    padding-top:22px!important;
    padding-bottom:32px!important;
  }
}
