/* Bound a sidebar to its own content run, never the entire document. */
@media(min-width:1025px){
  /* A sidebar must not contribute its intrinsic height to the news grid row.
     This baseline works before JS, with blocked/deferred JS and in native AMP. */
  body :is(.kt-home-persistent-layout,.kt-home-editorial-shell.has-home-sidebar,.kt-with-sidebar,.bt-news-with-urgent,.kt-sana-block-with-sidebar){align-items:start!important}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar):not(.kt-rail-managed){contain:size;align-self:stretch!important;min-height:0!important;height:auto!important;max-height:none!important;position:static!important;top:auto!important;overflow-y:auto!important;overflow-x:hidden!important;align-content:start!important;grid-auto-rows:max-content!important;scrollbar-width:thin;overscroll-behavior-y:contain}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar)>*{flex-shrink:0!important;min-width:0}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-main,.kt-home-editorial-shell.has-home-sidebar>.kt-home-content,.kt-with-sidebar>.kt-article,.kt-with-sidebar>.kt-archive-content,.kt-with-sidebar>.kt-page,.bt-news-with-urgent>.bt-news-with-urgent__main,.kt-sana-block-with-sidebar>.kt-sana-block-content){align-self:start!important;min-height:0!important}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed{box-sizing:border-box!important;contain:none!important;align-self:start!important;min-height:0!important;max-height:var(--kt-rail-limit,none)!important;position:static!important;top:auto!important;overflow:visible!important;align-content:start!important;grid-auto-rows:max-content!important}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed>*{flex-shrink:0!important;min-width:0}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed.kt-rail-scroll{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:var(--kt-muted,#64748b) transparent;overscroll-behavior-y:contain}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed.kt-rail-sticky{position:sticky!important;top:var(--kt-rail-top,88px)!important}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed.kt-rail-measuring{contain:none!important;height:auto!important;max-height:none!important;overflow:visible!important;position:static!important;top:auto!important}
  body .kt-rail-content{align-self:start!important;min-height:0!important}
  /* Native AMP cannot run measurement JS. Size containment prevents the rail
     from expanding its grid row; overflow remains accessible without scripts. */
  html[amp] body .kt-home-persistent-layout{display:grid;gap:var(--kt-layout-gap,24px);align-items:start;direction:rtl;min-width:0}
  html[amp] body .kt-home-persistent-layout.kt-home-sidebar-right{grid-template-columns:minmax(0,var(--kt-sidebar-width,315px)) minmax(0,1fr)}
  html[amp] body .kt-home-persistent-layout.kt-home-sidebar-left{grid-template-columns:minmax(0,1fr) minmax(0,var(--kt-sidebar-width,315px))}
  html[amp] body .kt-home-persistent-layout.kt-home-sidebar-right>.kt-home-persistent-sidebar,html[amp] body .kt-home-persistent-layout.kt-home-sidebar-left>.kt-home-persistent-main{grid-column:1;grid-row:1}
  html[amp] body .kt-home-persistent-layout.kt-home-sidebar-left>.kt-home-persistent-sidebar,html[amp] body .kt-home-persistent-layout.kt-home-sidebar-right>.kt-home-persistent-main{grid-column:2;grid-row:1}
  html[amp] body .kt-home-persistent-layout>.kt-home-persistent-sidebar.kt-sidebar,
  html[amp] body .kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,
  html[amp] body:not(.archive):not(.blog):not(.search) .kt-with-sidebar>.kt-sidebar{contain:size;align-self:stretch!important;min-height:0!important;max-height:none!important;position:static!important;top:auto!important;overflow-y:auto!important;overflow-x:hidden!important;align-content:start!important;grid-auto-rows:max-content;scrollbar-width:thin;overscroll-behavior-y:contain}
  html[amp] body .kt-home-persistent-sidebar>*{flex-shrink:0}
}
