/* KhabarThali 6.18 — refined editorial shell, PHP 8.2-compatible. */
:root{
  --kt618-paper:#fff;
  --kt618-soft:#faf9f7;
  --kt618-canvas:var(--kt-bg,#f4f3ef);
  --kt618-ink:#151515;
  --kt618-muted:#6f7479;
  --kt618-line:#e6e3de;
  --kt618-line-strong:#d6d1ca;
  --kt618-red:var(--kt-red,#c52635);
  --kt618-navy:var(--kt-navy,#08141d);
  --kt618-green:#158b55;
  --kt618-font:var(--kt-font-family,"Noto Sans Devanagari","Nirmala UI",Mangal,sans-serif);
  --kt618-container:min(var(--kt-width,1240px),calc(100vw - 32px));
}
html[data-theme="dark"]{
  --kt618-paper:#0c1419;
  --kt618-soft:#111b21;
  --kt618-canvas:#071015;
  --kt618-ink:#f5f7f8;
  --kt618-muted:#9ba7ae;
  --kt618-line:#26343b;
  --kt618-line-strong:#36454d;
  --kt-category-page-bg:#0b151a;
  --kt-category-panel-bg:#101b21;
  --kt-category-alt-bg:#0d1820;
}
html{scroll-behavior:smooth}
body.kbt6{font-family:var(--kt618-font)!important;color:var(--kt618-ink);background-color:var(--kt618-canvas)!important;background-image:radial-gradient(circle at 1px 1px,rgba(20,20,20,.028) 1px,transparent 0)!important;background-size:24px 24px!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html[data-theme="dark"] body.kbt6{background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.025) 1px,transparent 0)!important}
body.kbt6 button,body.kbt6 input,body.kbt6 textarea,body.kbt6 select{font-family:var(--kt618-font)}
.kt-container{width:var(--kt618-container)!important;max-width:none!important;margin-inline:auto!important}

/* Utility bar */
.kt615-shell-top{background:var(--kt618-paper);border-bottom:1px solid var(--kt618-line);font-size:10.5px;color:var(--kt618-muted)}
.kt615-shell-top__inner{min-height:29px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.kt615-shell-top__left,.kt615-shell-top__right{display:flex;align-items:center;gap:13px;min-width:0}.kt615-shell-top__right a{color:var(--kt618-muted);text-decoration:none}.kt615-shell-top__right a:hover{color:var(--kt618-red)}
.kt615-mini-weather,.kt615-mini-market{display:inline-flex;align-items:center;gap:5px}.kt615-mini-market.is-up{color:var(--kt618-green)}.kt615-mini-market.is-down{color:var(--kt618-red)}

/* Minimal masthead */
.kt615-masthead{background:var(--kt618-paper);border-bottom:1px solid var(--kt618-line)}
.kt615-masthead__inner{min-height:96px;display:grid;grid-template-columns:1fr minmax(260px,430px) 1fr;align-items:center;gap:20px}
.kt615-masthead__left{display:flex;align-items:center}.kt615-publication-note{display:flex;flex-direction:column;gap:2px;color:var(--kt618-muted);font-size:10.5px;line-height:1.5}.kt615-publication-note strong{color:var(--kt618-ink);font-size:11.5px;font-weight:700}
.kt615-logo{display:flex;align-items:center;justify-content:center;min-width:0;position:relative}.kt615-logo .custom-logo-link{display:block}.kt615-logo .custom-logo{display:block;max-height:68px!important;max-width:var(--kt-logo-width,340px)!important;width:auto!important;height:auto!important}.kt615-logo .kt-wordmark{font-size:46px!important;line-height:1!important;letter-spacing:-.035em;font-weight:800!important}.kt615-logo .kt-wordmark span:first-child{color:var(--kt618-ink)}.kt615-logo .kt-wordmark span:last-child{color:var(--kt618-red)}.kt615-logo .kt-brand-text small{display:block;text-align:center;margin-top:5px;color:var(--kt618-muted);font-size:9.5px}
.kt615-masthead__right{display:flex;align-items:center;justify-content:flex-end;gap:4px}.kt615-header-icon{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--kt618-ink);cursor:pointer}.kt615-header-icon:hover{background:var(--kt618-soft)}.kt615-mobile-menu{display:none}.kt615-theme-toggle svg:last-child{display:none}html[data-theme="dark"] .kt615-theme-toggle svg:first-child{display:none}html[data-theme="dark"] .kt615-theme-toggle svg:last-child{display:block}

/* Primary category bar */
.kt615-nav-wrap{background:var(--kt618-paper);border-bottom:1px solid var(--kt618-line-strong);position:relative;z-index:32}
.kt615-nav{min-height:43px;display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:4px}.kt615-home-link,.kt615-nav-search{width:34px;height:34px;display:grid;place-items:center;border:0;background:transparent;color:var(--kt618-ink);text-decoration:none}.kt615-home-link{color:var(--kt618-red)}
.kt615-main-nav{min-width:0}.kt615-main-nav .kt-menu{display:flex!important;align-items:stretch!important;justify-content:center!important;gap:0!important;margin:0!important;padding:0!important;list-style:none!important;white-space:nowrap}.kt615-main-nav .kt-menu>li{display:flex!important;position:relative}.kt615-main-nav .kt-menu>li>a{height:42px!important;display:flex!important;align-items:center!important;padding:0 13px!important;border:0!important;background:transparent!important;color:var(--kt618-ink)!important;text-decoration:none!important;font-size:11.7px!important;font-weight:700!important;line-height:1!important}.kt615-main-nav .kt-menu>li>a:hover,.kt615-main-nav .kt-menu>li.current-menu-item>a,.kt615-main-nav .kt-menu>li.current-menu-ancestor>a{color:var(--kt618-red)!important}.kt615-main-nav .kt-menu>li.current-menu-item>a:after,.kt615-main-nav .kt-menu>li.current-menu-ancestor>a:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;background:var(--kt618-red)}
.kt-nav-wrap.is-sticky,.kt-nav-wrap.kt-is-sticky{position:fixed!important;inset:0 0 auto!important;background:color-mix(in srgb,var(--kt618-paper) 97%,transparent)!important;backdrop-filter:blur(13px);box-shadow:0 4px 14px rgba(0,0,0,.055)!important}

/* Topic strip is a desktop secondary rail only; hiding it on mobile removes duplicate categories. */
.kt615-topic-wrap{background:var(--kt618-paper);border-bottom:1px solid var(--kt618-line)}.kt615-topic-wrap .kt-topic-strip{min-height:33px;display:flex;align-items:center;gap:7px;padding:4px 0;overflow-x:auto;scrollbar-width:none}.kt615-topic-wrap .kt-topic-strip::-webkit-scrollbar{display:none}.kt615-topic-wrap .kt-topic-strip>span{display:none}.kt615-topic-wrap .kt-topic-strip a{flex:0 0 auto;padding:4px 10px;border:1px solid var(--kt618-line);border-radius:999px;background:var(--kt618-soft);color:var(--kt618-muted);text-decoration:none;font-size:9.2px;font-weight:650}.kt615-topic-wrap .kt-topic-strip a:hover{color:var(--kt618-red);border-color:color-mix(in srgb,var(--kt618-red) 35%,var(--kt618-line))}

/* Shared publication styling */
.kt-page,.kt-archive-page,.kt-author-profile,.kt-ref-single,.kt-search-page,.kt-404{font-family:var(--kt618-font)!important;color:var(--kt618-ink)}
.kt-page{margin-top:22px!important;margin-bottom:36px!important;padding:22px 28px!important;background:var(--kt618-paper);border:1px solid var(--kt618-line)}
.kt-page-header{margin:0 0 24px!important;padding:0 0 16px!important;border-bottom:1px solid var(--kt618-line)!important;background:transparent!important}.kt-page-header h1{margin:4px 0 7px!important;color:var(--kt618-ink)!important;font-size:clamp(30px,3vw,44px)!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.025em!important}.kt-page-header p{color:var(--kt618-muted)!important}.kt-eyebrow{color:var(--kt618-red)!important;font-size:10px!important;font-weight:800!important;letter-spacing:.03em!important}
.kt-page-content,.entry-content,.kt-article-body{font-family:var(--kt618-font)!important;line-height:1.9!important}.kt-widget,.kt-card,.kt-article-sidebar>section{border-color:var(--kt618-line)!important;box-shadow:none!important;border-radius:2px!important}.kt-widget-title,.kt-section-title{color:var(--kt618-ink)!important;font-weight:800!important}
.kt-author-profile{padding:20px!important;border:1px solid var(--kt618-line)!important;background:var(--kt618-soft)!important;border-radius:2px!important}

/* Footer */
.kt615-prefooter{margin-top:26px;margin-bottom:14px;padding:15px;border:1px solid var(--kt618-line);background:var(--kt618-paper)}
.kt615-footer{margin-top:34px;background:var(--kt618-navy);color:#dce4e8;border-top:2px solid var(--kt618-red)}.kt615-footer>.kt-container{padding:31px 0 15px}.kt615-footer__grid{display:grid;grid-template-columns:1.4fr .72fr .72fr .9fr .9fr;gap:28px;padding-bottom:22px}.kt615-footer__logo .custom-logo{max-height:52px!important;max-width:235px!important;width:auto!important}.kt615-footer__brand p{max-width:340px;margin:11px 0;color:#a3b1ba;font-size:11.2px;line-height:1.75}.kt615-footer__socials{display:flex;gap:8px}.kt615-footer__socials a{width:29px;height:29px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.15);border-radius:50%;color:#fff}.kt615-footer h3{margin:0 0 10px;color:#fff;font-size:11.7px;font-weight:800}.kt615-footer__col{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.kt615-footer__col a{color:#aebdc6;text-decoration:none;font-size:10.5px}.kt615-footer__app>a{display:inline-flex;gap:7px;align-items:center;padding:8px 10px;border:1px solid rgba(255,255,255,.16);border-radius:2px;color:#fff;text-decoration:none;font-size:10.5px}.kt615-footer__app small{display:block;margin-top:8px;color:#91a3ae;font-size:9.5px;line-height:1.55}.kt615-footer__bottom{min-height:45px;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:space-between;gap:16px;color:#8fa1ac;font-size:9.5px}.kt615-footer__bottom nav{display:flex;gap:12px;flex-wrap:wrap}.kt615-footer__bottom a{color:#9fb0ba;text-decoration:none}.kt615-footer-theme{width:31px;height:31px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:transparent;color:#fff}.kt615-footer-theme svg:last-child{display:none}html[data-theme="dark"] .kt615-footer-theme svg:first-child{display:none}html[data-theme="dark"] .kt615-footer-theme svg:last-child{display:block}.kt615-bottom-nav{display:none}

.kt-drawer,.kt-search-dialog{background:var(--kt618-paper);color:var(--kt618-ink)}.kt-drawer::backdrop,.kt-search-dialog::backdrop{background:rgba(3,9,13,.62);backdrop-filter:blur(4px)}

@media(max-width:1080px){:root{--kt618-container:min(100% - 24px,1120px)}.kt615-publication-note{display:none}.kt615-masthead__inner{grid-template-columns:48px minmax(220px,1fr) auto}.kt615-main-nav .kt-menu{justify-content:flex-start!important;overflow-x:auto;scrollbar-width:none}.kt615-main-nav .kt-menu::-webkit-scrollbar{display:none}}
@media(max-width:767px){
 :root{--kt618-container:calc(100% - 20px)}
 body.kbt6{background:var(--kt618-paper)!important;background-image:none!important}
 .kt615-shell-top{display:none}.kt615-masthead{border-bottom:1px solid var(--kt618-line)}.kt615-masthead__inner{min-height:58px;grid-template-columns:38px minmax(0,1fr) 72px;gap:4px}.kt615-mobile-menu{display:grid}.kt615-desktop-menu{display:none}.kt615-masthead__left{display:block}.kt615-logo .custom-logo{max-height:39px!important;max-width:190px!important}.kt615-logo .kt-wordmark{font-size:26px!important}.kt615-logo .kt-brand-text small{display:none}.kt615-masthead__right{gap:0}.kt615-header-icon{width:34px;height:34px}
 .kt615-nav-wrap{border-bottom:1px solid var(--kt618-line)}.kt615-nav{width:100%!important;min-height:39px;display:block!important}.kt615-home-link,.kt615-nav-search{display:none!important}.kt615-main-nav{width:100%}.kt615-main-nav .kt-menu{justify-content:flex-start!important;overflow-x:auto!important;padding:0 10px!important;scroll-snap-type:x proximity}.kt615-main-nav .kt-menu>li{scroll-snap-align:start}.kt615-main-nav .kt-menu>li>a{height:39px!important;padding:0 11px!important;font-size:10.3px!important}.kt615-main-nav .kt-menu>li.current-menu-item>a:after{left:10px;right:10px}
 .kt615-topic-wrap{display:none!important}
 .kt-page{width:100%!important;margin:0!important;padding:18px 14px 28px!important;border:0!important}.kt-page-header h1{font-size:30px!important}.kt-author-profile{padding:14px!important}
 .kt615-footer{margin-top:20px}.kt615-footer>.kt-container{padding:24px 15px 90px}.kt615-footer__grid{grid-template-columns:1fr 1fr;gap:22px 16px}.kt615-footer__brand,.kt615-footer__app{grid-column:1/-1}.kt615-footer__bottom{align-items:flex-start;flex-direction:column;padding:12px 0}.kt615-footer__bottom nav{gap:9px}.kt615-bottom-nav{position:fixed;z-index:94;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);height:62px;padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb,var(--kt618-paper) 97%,transparent);border-top:1px solid var(--kt618-line);backdrop-filter:blur(13px)}.kt615-bottom-nav a,.kt615-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;color:var(--kt618-muted);text-decoration:none;font-family:inherit;font-size:7.8px}.kt615-bottom-nav .is-active{color:var(--kt618-red)}
}

/* 6.19 responsive hardening: keeps the publication shell readable even when a mobile browser
   exposes a desktop-like ~980px layout viewport. */
html,body{max-width:100%;overflow-x:hidden}
body.kbt6{min-width:0}
.kt-container{box-sizing:border-box}

/* Kantipur-like editorial type treatment: self-hosted Noto Sans Devanagari, clean tracking. */
body.kbt6,
.kt615-masthead,
.kt615-nav-wrap,
.kt615-topic-wrap,
.kt615-footer,
.kt618-home,
.kt618-archive,
.kt-page,
.kt-ref-single{font-family:var(--kt-font-family)!important}
body.kbt6 h1,body.kbt6 h2,body.kbt6 h3,body.kbt6 h4{letter-spacing:0!important;text-wrap:pretty}

@media(max-width:1100px){
  :root{--kt618-container:calc(100% - 20px)!important}
  .kt-container{width:calc(100% - 20px)!important;max-width:none!important;margin-inline:auto!important}
  .kt615-shell-top{display:none!important}
  .kt615-masthead{border-bottom:1px solid var(--kt618-line)!important}
  .kt615-masthead__inner{min-height:60px!important;grid-template-columns:40px minmax(0,1fr) 76px!important;gap:4px!important}
  .kt615-publication-note{display:none!important}
  .kt615-mobile-menu{display:grid!important}
  .kt615-desktop-menu{display:none!important}
  .kt615-masthead__left{display:block!important}
  .kt615-logo .custom-logo{max-height:42px!important;max-width:min(190px,58vw)!important}
  .kt615-logo .kt-wordmark{font-size:28px!important;letter-spacing:-.01em!important}
  .kt615-logo .kt-brand-text small{display:none!important}
  .kt615-masthead__right{gap:0!important}
  .kt615-header-icon{width:36px!important;height:36px!important}
  .kt615-nav{width:100%!important;min-height:41px!important;display:block!important}
  .kt615-home-link,.kt615-nav-search{display:none!important}
  .kt615-main-nav{width:100%!important;min-width:0!important}
  .kt615-main-nav .kt-menu{justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0 10px!important;scroll-snap-type:x proximity;scrollbar-width:none!important}
  .kt615-main-nav .kt-menu::-webkit-scrollbar{display:none!important}
  .kt615-main-nav .kt-menu>li{flex:0 0 auto!important;scroll-snap-align:start}
  .kt615-main-nav .kt-menu>li>a{height:41px!important;padding:0 11px!important;font-size:11px!important;white-space:nowrap!important}
  .kt615-topic-wrap{display:none!important}
  .kt-page,.kt-archive-page,.kt-search-page,.kt-author-profile{max-width:100%!important}
}


/* 6.20 mobile navigation/drawer alignment and larger editorial text. */
@media(max-width:1100px){
  body.kbt6{font-size:17px!important;line-height:1.75!important}
  .kt615-masthead__inner{min-height:66px!important;grid-template-columns:44px minmax(0,1fr) 82px!important}
  .kt615-mobile-menu{width:40px!important;height:40px!important}
  .kt615-logo .custom-logo{max-height:46px!important;max-width:min(205px,60vw)!important}
  .kt615-logo .kt-wordmark{font-size:30px!important}
  .kt615-header-icon{width:39px!important;height:39px!important}
  .kt615-nav-wrap{overflow:hidden!important}
  .kt615-nav{min-height:47px!important;overflow:hidden!important}
  .kt615-main-nav{overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%)}
  .kt615-main-nav::-webkit-scrollbar{display:none!important}
  .kt615-main-nav .kt-menu{display:flex!important;flex-wrap:nowrap!important;min-width:max-content!important;padding:0 14px!important;gap:0!important;scroll-snap-type:x proximity!important}
  .kt615-main-nav .kt-menu>li{flex:0 0 auto!important;scroll-snap-align:start!important}
  .kt615-main-nav .kt-menu>li>a{height:47px!important;padding:0 14px!important;font-size:13.5px!important;line-height:1!important;font-weight:750!important;white-space:nowrap!important}
  .kt615-main-nav .kt-menu>li.current-menu-item>a:after,.kt615-main-nav .kt-menu>li.current-menu-ancestor>a:after{left:13px!important;right:13px!important;height:3px!important}

  /* Hamburger is on the left, so the drawer enters from the left on phones/tablets. */
  .kt-drawer{width:min(390px,92vw)!important;height:100dvh!important;max-height:100dvh!important;margin:0 auto 0 0!important;border-left:0!important;border-right:1px solid var(--kt618-line)!important;padding:22px 20px!important;box-shadow:22px 0 70px rgba(6,26,47,.20)!important}
  .kt-drawer-menu>li>a{font-size:16px!important;line-height:1.6!important;padding:13px 4px!important;font-weight:750!important}
  .kt-drawer-services{font-size:13px!important;gap:10px!important}.kt-drawer-services a{padding:8px 0!important}

  .kt-page-content,.entry-content,.kt-article-body{font-size:17px!important;line-height:1.95!important}
  .kt615-bottom-nav{height:68px!important}.kt615-bottom-nav a,.kt615-bottom-nav button{font-size:9.5px!important;gap:4px!important}.kt615-bottom-nav svg{width:21px!important;height:21px!important}
}

@media(max-width:600px){
  body.kbt6{font-size:17px!important}
  .kt615-main-nav .kt-menu>li>a{font-size:13px!important;padding-inline:13px!important}
  .kt-drawer{width:min(360px,94vw)!important}
}


/* KhabarThali 6.22 — same editorial language across pages. */
.kt-page,.kt-author-profile,.kt-ref-single,.kt-search-page,.kt-404{font-family:var(--kt-font-family,"Mukta","Noto Sans Devanagari",sans-serif)!important}
.kt-page h1,.kt-page h2,.kt-page h3,.kt-author-profile h1,.kt-ref-single h1{font-family:var(--kt-font-family)!important;letter-spacing:-.025em}
.kt-author-profile{background:var(--kt-category-panel-bg,#fffaf5);border-top:1px solid var(--kt618-line);border-bottom:1px solid var(--kt618-line);padding:28px!important}
.kt-author-profile h1{font-size:clamp(36px,4vw,54px);line-height:1.18;font-weight:800}
.kt-news-grid .kt-card h3 a,.kt-page .kt-card h3 a,.kt-author-profile+* .kt-card h3 a{color:var(--kt-headline-color,#003f8f)}
.kt-news-grid .kt-card h3 a:visited,.kt-page .kt-card h3 a:visited{color:var(--kt-headline-visited,#c61f2f)}
.kt-section-heading{border-top:1px solid var(--kt618-line);padding-top:16px}.kt-section-heading h2{font-size:clamp(27px,2.7vw,38px);font-weight:800}
@media(max-width:700px){
 .kt-author-profile{padding:20px 16px!important;border-radius:0!important}.kt-author-profile h1{font-size:34px!important}.kt-section-heading h2{font-size:29px!important}.kt-news-grid{grid-template-columns:1fr!important}.kt-news-grid .kt-card{border-bottom:1px solid var(--kt618-line);padding-bottom:16px}
}
