/* These rules are opt-in. Missing attributes preserve the existing layout. */
:is(.hkn-home-main,.hkn-article-main)[data-hke-width]{width:100%;max-width:min(100%,var(--hke-size-width));}
:is(.hkn-home-main,.hkn-article-main)[data-hke-sidebar]{container-type:inline-size;container-name:hke-sized-layout;}
.hkn-home-main[data-hke-sidebar] :is(.hkn-home-lower,.hkn-top-grid){flex-wrap:wrap;}
.hkn-home-main[data-hke-sidebar] .hkn-home-lower>.hkn-latest,
.hkn-home-main[data-hke-sidebar] .hkn-top-grid>.hkn-lead-query,
.hkn-article-main[data-hke-sidebar]>.hkn-article-reading{flex:1 1 400px;max-width:100%;min-width:0;}
.hkn-home-main[data-hke-sidebar] .hkn-home-lower>.hkn-home-sidebar-slot,
.hkn-home-main[data-hke-sidebar] .hkn-top-grid>.hkn-support-query,
.hkn-article-main[data-hke-sidebar]>.hkn-article-sidebar-slot{flex:0 1 var(--hke-size-sidebar);max-width:100%;min-width:0;}
.hke-ad[data-hke-height]{box-sizing:border-box;min-height:var(--hke-size-height,0px);}
@media(max-width:900px){
 .hkn-home-main[data-hke-sidebar] .hkn-home-lower>:is(.hkn-latest,.hkn-home-sidebar-slot),
 .hkn-home-main[data-hke-sidebar] .hkn-top-grid>:is(.hkn-lead-query,.hkn-support-query),
 .hkn-article-main[data-hke-sidebar]>:is(.hkn-article-reading,.hkn-article-sidebar-slot){flex-basis:100%;width:100%;}
}
@media(max-width:600px){.hke-ad[data-hke-height]{min-height:var(--hke-size-mobileHeight,0px);}}
/* A deliberately narrow desktop container needs the same safe stacking as mobile. */
@container hke-sized-layout (max-width:900px){
 .hkn-home-main[data-hke-sidebar] .hkn-home-lower>:is(.hkn-latest,.hkn-home-sidebar-slot),
 .hkn-home-main[data-hke-sidebar] .hkn-top-grid>:is(.hkn-lead-query,.hkn-support-query),
 .hkn-article-main[data-hke-sidebar]>:is(.hkn-article-reading,.hkn-article-sidebar-slot){flex-basis:100%;width:100%;}
}
