
/* Responsive improvements for Kahuta News theme v2.5.2 and KNASC layouts */
html{overflow-x:clip}
body{min-width:0;overflow-wrap:break-word}
body img,body video,body svg{max-width:100%}
body iframe{max-width:100%}
body .container{max-width:100%;box-sizing:border-box}
body .page-grid,body .hero-grid,body .category-grid,body .archive-grid,
body .related-grid,body .kn-footer-grid,body .knasc-contact-grid,
body .knasc-contact-help{min-width:0}
body .page-grid>*,
body .hero-grid>*,
body .category-grid>*,
body .archive-grid>*,
body .related-grid>*,
body .kn-footer-grid>*{min-width:0}
body .entry-content,body .entry-content p,body .single-article,
body .news-card,body .news-card h2,body .sidebar{overflow-wrap:anywhere}
body .entry-content table{max-width:100%;display:block;overflow-x:auto}
body .entry-content pre,body pre{max-width:100%;overflow-x:auto}
body .entry-content img{height:auto}
body .kn-identity .brand>a{max-width:100%;white-space:normal}
body .navigation .nav-inner{min-width:0}
body .navigation #primary-menu{min-width:0}
body .navigation .menu{max-width:100%}
body .site-footer .menu{flex-wrap:wrap;justify-content:center}
body .site-footer .footer-widgets{min-width:0}
body .knasc-contact-card,body .knasc-contact-info{max-width:100%}
body .knasc-contact-phone-row{min-width:0}
body .knasc-contact-phone-row a{overflow-wrap:anywhere}
body .ticker{min-width:0;overflow:hidden}
body .breaking{max-width:100%}
body .search-toggle .search-form{max-width:min(90vw,440px)}
/* Left social rail. Hide completely if links not configured. */
.knasc-social-rail{position:fixed;left:0;top:48%;transform:translateY(-50%);z-index:950;
 display:flex;flex-direction:column;gap:5px;align-items:flex-start;pointer-events:none}
.knasc-social-link{pointer-events:auto;display:flex;align-items:center;gap:9px;direction:ltr;
 min-height:43px;min-width:43px;padding:9px 12px;border-radius:0 9px 9px 0;
 color:#fff!important;text-decoration:none!important;font:800 16px/1.3 Arial,sans-serif!important;
 box-shadow:0 3px 12px #13203333;transform:translateX(0);transition:padding .18s,box-shadow .18s}
.knasc-social-link>span:first-child{display:inline-flex;align-items:center;justify-content:center;
 width:20px;min-width:20px;height:20px;font-size:20px}
.knasc-social-link .knasc-social-name{font-size:12px;max-width:0;overflow:hidden;opacity:0;
 transition:max-width .18s,opacity .18s;white-space:nowrap}
.knasc-social-link:hover .knasc-social-name,.knasc-social-link:focus-visible .knasc-social-name{max-width:100px;opacity:1}
.knasc-social-link:hover,.knasc-social-link:focus-visible{padding-right:16px;box-shadow:0 6px 18px #13203355}
.knasc-social-facebook{background:#1877f2}.knasc-social-youtube{background:#e51d29}.knasc-social-tiktok{background:#161616}
@media(max-width:1000px){
 body .page-grid{grid-template-columns:minmax(0,1fr) minmax(195px,25%)!important;gap:18px!important}
 body .navigation .menu a{padding-inline:10px!important}
 body .kn-identity{max-width:100%!important}
}
@media(max-width:780px){
 body .page-grid{grid-template-columns:minmax(0,1fr)!important}
 body .sidebar{width:100%!important;max-width:100%!important}
 body .hero-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .category-grid{grid-template-columns:minmax(0,1fr)!important}
 body .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .kn-footer-grid{grid-template-columns:minmax(0,1fr)!important}
 body .knasc-contact-grid,body .knasc-contact-help{grid-template-columns:minmax(0,1fr)!important}
 body .kn-identity{flex-wrap:wrap!important;justify-content:center!important}
 body .navigation .nav-inner{flex-wrap:wrap}
 body .navigation #primary-menu{max-width:100%;width:100%}
 body .navigation .menu{max-width:100%}
 body .single-article h1{font-size:clamp(23px,5vw,32px)!important}
 body .entry-content{font-size:clamp(16px,3.7vw,20px)!important}
 .knasc-social-rail{top:auto;bottom:72px;transform:none}
 .knasc-social-link{min-width:38px;min-height:38px;padding:7px 9px}
 .knasc-social-link .knasc-social-name{display:none}
}
@media(max-width:540px){
 body .container{width:calc(100% - 26px)!important}
 body .hero-grid,body .archive-grid,body .related-grid{grid-template-columns:minmax(0,1fr)!important}
 body .category-grid .news-card:not(.lead-card){grid-template-columns:92px minmax(0,1fr)!important;gap:10px}
 body .hero-grid .lead-card .card-body{padding:34px 14px 12px!important}
 body .hero-grid .lead-card h2{font-size:clamp(18px,4.8vw,23px)!important}
 body .topbar{flex-wrap:wrap;gap:7px}
 body .breaking strong{padding:8px 10px;font-size:12px}
 body .knasc-contact-hero{padding:24px 12px!important}
 body .knasc-contact-hero h1{font-size:30px!important}
 body .knasc-contact-actions{flex-wrap:wrap}
 body .article-tools,body .share-links,body .nav-links{flex-wrap:wrap}
 body .knasc-contact-phone-row{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
 .knasc-social-link,.knasc-social-link .knasc-social-name{transition:none}
}
