/* Keep the public header and footer aligned with the visible page content. */
.site:has(main .article){--layout-width:820px}
.site.theme-editorial:has(main .article){--layout-width:940px}
.site.theme-neon-casino:has(main .article){--layout-width:980px}
.site.theme-telegram-feed:has(main .article){--layout-width:860px}
.site.theme-retro-terminal:has(main .article){--layout-width:920px}
.site:has(main.wrap > .panel):not(:has(main .news-grid)):not(:has(main .article)){
  --layout-width:1160px;
}
.site .top,.site .footer{
  width:min(var(--layout-width,1160px),calc(100% - 36px))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  border-radius:20px!important;
  overflow:hidden;
  box-sizing:border-box;
}
@media(max-width:600px){
  .site .top,.site .footer{
    width:calc(100% - 24px)!important;
    border-radius:16px!important;
  }
}
