/*
Theme Name: Khabar Desk
Description: हिंदी न्यूज़ पोर्टल के लिए तेज़, हल्की और Google AdSense-अनुकूल WordPress थीम। ऑटो-जनरेटेड पॉलिसी पेज, NewsArticle schema, ads.txt और नीति-अनुकूल विज्ञापन प्लेसमेंट के साथ।
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khabar-desk
*/
:root{
  --ink:#14201a; --field:#0f5132; --field-d:#0a3a24; --mustard:#f0b429;
  --paper:#fff; --mist:#f3f5f0; --line:#dfe4da; --muted:#55615a; --alert:#b3261e;
  --sans:'Noto Sans Devanagari',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --serif:'Noto Serif Devanagari','Noto Serif',Georgia,serif;
  --wrap:1180px; --gap:24px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;font-family:var(--sans);font-size:17px;line-height:1.75;color:var(--ink);background:var(--paper)}
img,video,iframe{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:hover{color:var(--field)}
:focus-visible{outline:3px solid var(--mustard);outline-offset:2px}
h1,h2,h3,h4{font-family:var(--serif);line-height:1.4;margin:0 0 .5em;font-weight:800}
p{margin:0 0 1em}
.skip{position:absolute;left:-999px;top:0;background:var(--mustard);color:var(--ink);padding:8px 14px;z-index:100}
.skip:focus{left:8px;top:8px}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 16px}

/* top bar */
.topbar{background:var(--field-d);color:#e8efe9;font-size:14px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:38px}
.topbar a{color:#e8efe9;padding:0 8px}
.topbar a:hover{color:var(--mustard)}
.topbar .social{display:flex;flex-wrap:wrap}

/* masthead */
.masthead{background:var(--paper);border-bottom:1px solid var(--line)}
.masthead .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px}
.brand .site-title{font-family:var(--serif);font-weight:800;font-size:clamp(26px,4vw,38px);line-height:1.2;margin:0;color:var(--field)}
.brand .site-title a{color:inherit}
.brand .tagline{margin:0;font-size:14px;color:var(--muted)}
.custom-logo{max-height:64px;width:auto}
.search-form{display:flex;border:2px solid var(--field);border-radius:6px;overflow:hidden;min-width:0}
.search-form input[type=search]{border:0;padding:8px 12px;font:inherit;font-size:15px;min-width:0;width:200px;background:#fff}
.search-form button{border:0;background:var(--field);color:#fff;padding:0 16px;font:inherit;font-size:15px;cursor:pointer}
.search-form button:hover{background:var(--field-d)}

/* nav */
.primary-nav{background:var(--field);position:sticky;top:0;z-index:50}
.admin-bar .primary-nav{top:32px}
.primary-nav .wrap{padding:0}
.primary-nav ul{list-style:none;margin:0;padding:0 8px;display:flex;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.primary-nav li{flex:0 0 auto}
.primary-nav a{display:block;color:#fff;padding:11px 14px;font-weight:600;font-size:16px;white-space:nowrap;border-bottom:3px solid transparent}
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current-cat>a{background:var(--field-d);border-bottom-color:var(--mustard);color:#fff}

/* ticker */
.ticker{background:var(--mist);border-bottom:1px solid var(--line)}
.ticker .wrap{display:flex;align-items:center;gap:12px;min-height:44px}
.ticker-label{flex:none;background:var(--mustard);color:var(--ink);font-weight:800;font-size:14px;padding:3px 12px;border-radius:3px}
.ticker-list{list-style:none;margin:0;padding:0;flex:1;min-width:0;position:relative}
.ticker-list li{display:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:16px}
.ticker-list li.is-on{display:block}
.no-js .ticker-list li:first-child{display:block}

/* layout */
.site-main{padding:var(--gap) 0 40px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:32px}
.page-head{margin-bottom:20px;padding-bottom:12px;border-bottom:3px solid var(--field)}
.page-head h1{font-size:clamp(24px,3.4vw,32px);margin:0}
.page-head p{margin:6px 0 0;color:var(--muted)}
.section-title{font-size:21px;margin:0 0 16px;padding-left:12px;border-left:6px solid var(--mustard)}

/* hero */
.hero{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px;margin-bottom:32px}
.hero-main .thumb{display:block;aspect-ratio:16/10;background:var(--mist);overflow:hidden;border-radius:6px}
.hero-main img{width:100%;height:100%;object-fit:cover;display:block}
.hero-main h2{font-size:clamp(22px,3vw,30px);margin:12px 0 6px}
.hero-side{display:flex;flex-direction:column;gap:0}
.hero-side article{padding:12px 0;border-bottom:1px solid var(--line)}
.hero-side article:first-child{padding-top:0}
.hero-side article:last-child{border:0}
.hero-side h3{font-size:18px;margin:4px 0 4px}

/* cards */
.post-list{display:flex;flex-direction:column}
.card{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}
.card .thumb{display:block;aspect-ratio:3/2;background:var(--mist);overflow:hidden;border-radius:6px}
.card img{width:100%;height:100%;object-fit:cover;display:block}
.card h2{font-size:20px;margin:6px 0 6px}
.card .excerpt{color:var(--muted);font-size:15.5px;margin:0 0 6px}
.card-nothumb{grid-template-columns:1fr}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-size:13px;font-weight:700;background:var(--mist);color:var(--field);padding:1px 10px;border-radius:99px;border:1px solid var(--line)}
.chip:hover{background:var(--field);color:#fff}
.meta{font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 14px}
.meta a:hover{color:var(--field)}

/* sidebar */
.sidebar .widget{margin-bottom:28px}
.widget-title{font-size:19px;margin:0 0 12px;padding-left:12px;border-left:6px solid var(--mustard)}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:10px 0;border-bottom:1px solid var(--line);font-weight:600;line-height:1.55;font-size:16px}
.widget li:last-child{border:0}
.sticky-side{position:sticky;top:64px}

/* single */
.breadcrumbs{font-size:14px;color:var(--muted);margin-bottom:12px}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs .sep{margin:0 6px}
.entry-title{font-size:clamp(26px,4vw,38px);margin:10px 0 12px}
.entry-meta{padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:18px}
.featured{margin:0 0 20px}
.featured img{width:100%;border-radius:6px;display:block}
.featured figcaption,.wp-caption-text{font-size:14px;color:var(--muted);margin-top:6px}
.entry-content{font-size:18.5px;line-height:1.9}
.entry-content h2{font-size:26px;margin:1.6em 0 .6em}
.entry-content h3{font-size:22px;margin:1.4em 0 .5em}
.entry-content a{color:var(--field);text-decoration:underline;text-underline-offset:3px}
.entry-content ul,.entry-content ol{padding-left:1.4em;margin:0 0 1em}
.entry-content blockquote{margin:1.4em 0;padding:8px 18px;border-left:5px solid var(--mustard);background:var(--mist)}
.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.entry-content th{background:var(--mist)}
.entry-content .alignleft{float:left;margin:0 18px 10px 0}.entry-content .alignright{float:right;margin:0 0 10px 18px}.aligncenter{display:block;margin:0 auto}
.share{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}
.share a,.share button{font:inherit;font-size:15px;font-weight:700;padding:6px 16px;border-radius:6px;border:0;color:#fff;cursor:pointer}
.share .wa{background:#1a7f4b}.share .fb{background:#1b4fa0}.share .tw{background:#222}.share .cp{background:var(--muted)}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}
.author-box{display:flex;gap:16px;background:var(--mist);border:1px solid var(--line);border-radius:8px;padding:16px;margin:26px 0}
.author-box img{border-radius:50%;flex:none}
.author-box h3{font-size:18px;margin:0 0 4px}
.author-box p{margin:0;font-size:15.5px;color:var(--muted)}
.related{margin-top:34px}
.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.related-grid .thumb{display:block;aspect-ratio:3/2;overflow:hidden;border-radius:6px;background:var(--mist)}
.related-grid img{width:100%;height:100%;object-fit:cover;display:block}
.related-grid h3{font-size:17px;margin:8px 0 0}
.page-content{max-width:860px}
.page-content.entry-content h2{font-size:23px}

/* pagination */
.pagination{margin:28px 0 0}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.pagination .page-numbers{min-width:40px;text-align:center;padding:6px 12px;border:1px solid var(--line);border-radius:6px;font-weight:700}
.pagination .current{background:var(--field);color:#fff;border-color:var(--field)}
.pagination a.page-numbers:hover{background:var(--mist)}

/* ads (clearly labelled, never styled as content) */
.ad-slot{margin:22px 0;text-align:center;min-height:120px;clear:both;overflow:hidden}
.ad-slot .ad-label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px;letter-spacing:.02em}
.ad-slot ins{display:block}

/* forms */
.khabar-form label{display:block;font-weight:700;margin:12px 0 4px}
.khabar-form input,.khabar-form textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid #b9c2b6;border-radius:6px}
.khabar-form textarea{min-height:150px}
.khabar-form .hp{position:absolute;left:-9999px}
.btn{display:inline-block;background:var(--field);color:#fff;border:0;padding:10px 22px;border-radius:6px;font:inherit;font-weight:700;cursor:pointer;margin-top:14px}
.btn:hover{background:var(--field-d);color:#fff}
.notice{padding:10px 14px;border-radius:6px;margin:0 0 16px;font-weight:600}
.notice.ok{background:#e4f3ea;color:#0f5132}.notice.err{background:#fbe9e7;color:var(--alert)}

/* comments */
.comments-area{margin-top:34px}
.comment-list{list-style:none;padding:0}
.comment-body{padding:14px 0;border-bottom:1px solid var(--line)}
.comment-respond input[type=text],.comment-respond input[type=email],.comment-respond input[type=url],.comment-respond textarea{width:100%;font:inherit;padding:10px;border:1px solid #b9c2b6;border-radius:6px}

/* footer */
.site-footer{background:var(--field-d);color:#dbe6de;padding:30px 0 20px;font-size:15px}
.site-footer a{color:#fff}
.site-footer a:hover{color:var(--mustard)}
.footer-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.18)}
.footer-title{font-family:var(--serif);font-weight:800;font-size:24px;color:#fff}
.footer-links{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}
.copy{margin:16px 0 0;font-size:14px}
.disclaimer-line{font-size:13px;color:#b9c9bd;margin-top:6px}

/* cookie note */
.cookie-note{position:fixed;left:12px;right:12px;bottom:12px;z-index:90;max-width:720px;margin:0 auto;background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 6px 24px rgba(0,0,0,.18);border-radius:8px;padding:14px 16px;font-size:14.5px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.cookie-note[hidden]{display:none}
.cookie-note p{margin:0;flex:1 1 280px}
.cookie-note .btn{margin:0;padding:7px 18px}

/* responsive */
@media (max-width:980px){
  .layout{grid-template-columns:1fr}
  .sticky-side{position:static}
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  body{font-size:16.5px}
  .masthead .wrap{flex-direction:column;align-items:flex-start}
  .masthead .search-form{width:100%}
  .search-form input[type=search]{width:100%;flex:1}
  .hero{grid-template-columns:1fr}
  .card{grid-template-columns:120px minmax(0,1fr);gap:12px}
  .card h2{font-size:17.5px}
  .card .excerpt{display:none}
  .entry-content{font-size:17.5px}
  .related-grid{grid-template-columns:1fr}
  .admin-bar .primary-nav{top:46px}
  .topbar .social a:nth-child(n+3){display:none}
}
