/* Kalam Aflam Design System 1.6.0 — unified FULL-WIDTH editorial layout.
 * Front-end only, includes all archived posts, pages, category/search templates,
 * and restores the existing new editorial footer on the static homepage.
 * No ads, content, post URLs, footer widget assignments, or SEO values are deleted.
 */
:root{
 --kads-full-ink:#171717;
 --kads-full-paper:#f6f3ed;
 --kads-full-border:#ded8d0;
 --kads-full-accent:#a94332;
 --kads-full-width:1280px;
}
/* Remove the old content-sidebar, including the otherwise empty theme wrapper. */
body.kads-unified-site #secondary,
body.kads-unified-site aside.kads-sidebar,
body.kads-unified-site .kads-sidebar,
body.kads-unified-site .cm_post_page_lay_wrap > .single-container > .row > .cm-col-lg-4,
body.kads-unified-site .cm_post_page_lay_wrap .page-container > .row > .cm-col-lg-4:has(#secondary){
 display:none!important;
}
/* Theme uses an 8/4 grid on articles. Make articles/pages genuinely full-width. */
body.kads-unified-site:not(.home) #primary.content-area,
body.kads-unified-site:not(.home) #content .site-main,
body.kads-unified-site:not(.home) .cm_post_page_lay_wrap .single-container,
body.kads-unified-site:not(.home) .cm_post_page_lay_wrap .page-container{
 width:100%!important;
 max-width:100%!important;
 float:none!important;
 margin-inline:auto!important;
 box-sizing:border-box!important;
}
body.kads-unified-site:not(.home) .cm_post_page_lay_wrap .single-container > .row,
body.kads-unified-site:not(.home) .cm_post_page_lay_wrap .page-container > .row{
 display:flex!important;
 flex-direction:row!important;
 flex-wrap:wrap!important;
 width:100%!important;
 margin-inline:0!important;
 box-sizing:border-box!important;
}
body.kads-unified-site:not(.home) .cm_post_page_lay_wrap .single-container > .row > :is(.cm-col-lg-8,.cm-col-lg-12),
body.kads-unified-site:not(.home) .cm_post_page_lay_wrap .page-container > .row > :is(.cm-col-lg-8,.cm-col-lg-12){
 width:100%!important;
 max-width:100%!important;
 flex:0 0 100%!important;
 float:none!important;
 margin:0!important;
 min-width:0!important;
 box-sizing:border-box!important;
 order:0!important;
}
/* Sticky-sidebar wrapper should not preserve a narrower 8-column width or a ghost gap. */
body.kads-unified-site .cm_post_page_lay_wrap .sticky_portion,
body.kads-unified-site .cm_post_page_lay_wrap .theiaStickySidebar,
body.kads-unified-site .cm_post_page_lay_wrap .content-entry{
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
}
body.kads-unified-site .cm_post_page_lay_wrap .theiaStickySidebar{
 position:static!important;
 transform:none!important;
 height:auto!important;
 min-height:0!important;
}
body.kads-unified-site:not(.home) #content .cm-container{
 width:min(var(--kads-full-width),calc(100% - 36px))!important;
 max-width:var(--kads-full-width)!important;
 margin-inline:auto!important;
 box-sizing:border-box!important;
}
body.kads-unified-site:not(.home) .cm_post_page_lay_wrap article.post-detail,
body.kads-unified-site:not(.home) .cm_post_page_lay_wrap article.page{
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
 box-sizing:border-box!important;
}
/* Custom archive/search has no sidebar anymore; use 3-column magazine grid on desktop. */
body.kads-unified-site .kads-shell{
 width:min(1240px,calc(100% - 36px))!important;
 max-width:1240px!important;
 margin-inline:auto!important;
}
body.kads-unified-site .kads-content{display:block!important;width:100%!important;}
body.kads-unified-site .kads-main{width:100%!important;max-width:100%!important;}
body.kads-unified-site .kads-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
/* Consistent content rhythm without stretching reading paragraphs too wide. */
body.kads-unified-site .cm_post_page_lay_wrap article.post-detail > .the_content > p{
 max-width:76ch;
}
body.kads-unified-site .cm_post_page_lay_wrap :is(article.page,article.post-detail) img{
 max-width:100%;height:auto;
}
/* The existing EDITORIAL footer (#block-10 + Jetpack subscribe + stats) is the
   single source of truth for every URL, including the homepage where a legacy
   preview stylesheet previously hid the whole theme footer. */
html body.kads-unified-site footer.footer,
html body.kads-unified-site.home.page-id-18366 footer.footer{
 display:block!important;
 visibility:visible!important;
 opacity:1!important;
 position:relative!important;
 clear:both!important;
 width:100%!important;
 height:auto!important;
 overflow:visible!important;
 background:#171717!important;
 border-top:3px solid var(--kads-full-accent)!important;
 color:#f6f3ed!important;
 margin-top:clamp(30px,5vw,70px)!important;
 box-sizing:border-box!important;
}
html body.kads-unified-site footer.footer .footer_inner{
 display:block!important;
 visibility:visible!important;
 opacity:1!important;
 width:100%!important;
 height:auto!important;
 background:#171717!important;
 box-sizing:border-box!important;
}
html body.kads-unified-site footer.footer .footer_inner > .cm-container{
 max-width:1240px!important;
 width:100%!important;
 margin-inline:auto!important;
 box-sizing:border-box!important;
}
html body.kads-unified-site footer.footer .ka-footer-nav,
html body.kads-unified-site footer.footer #blog_subscription-4,
html body.kads-unified-site footer.footer #blog-stats-4{
 visibility:visible!important;
 opacity:1!important;
}
html body.kads-unified-site footer.footer .copyright_section{
 display:block!important;
 visibility:visible!important;
 opacity:1!important;
 background:#111111!important;
 color:#e3dfda!important;
}
html body.kads-unified-site footer.footer #blog_subscription-4 input[type=email]{
 color:#171717!important;-webkit-text-fill-color:#171717!important;
}
html body.kads-unified-site footer.footer #blog_subscription-4 :is(button,input[type=submit]){
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}
/* A11y and responsive adjustments. */
html body.kads-unified-site footer.footer a:focus-visible{
 outline:3px solid #f08a66!important;outline-offset:3px!important;
}
@media(max-width:1050px){
 body.kads-unified-site .kads-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:650px){
 body.kads-unified-site .kads-grid{grid-template-columns:minmax(0,1fr)!important;}
 body.kads-unified-site:not(.home) #content .cm-container,
 body.kads-unified-site .kads-shell{width:calc(100% - 24px)!important;}
 body.kads-unified-site:not(.home) .cm_post_page_lay_wrap .single-container > .row > :is(.cm-col-lg-8,.cm-col-lg-12),
 body.kads-unified-site:not(.home) .cm_post_page_lay_wrap .page-container > .row > :is(.cm-col-lg-8,.cm-col-lg-12){padding-inline:0!important;}
 html body.kads-unified-site footer.footer .footer_inner > .cm-container{
  width:calc(100% - 20px)!important;
 }
}

/* The approved footer navigation already includes the legal pages. Keep the
   theme copyright notice but omit its duplicate legacy footer link menu. */
html body.kads-unified-site footer.footer .copyright_section .footer_nav{display:none!important;}
