/*
Theme Name: TheAzadi
Theme URI: https://example.com/theazadi
Author: TheAzadi
Author URI: https://example.com
Description: A modern, fast, mobile-first Hindi news portal theme. Red/white/black design with Poppins + Hind typography, dark mode, sticky header, State to District taxonomy, social sharing, ad slots, breaking-news ticker, and a WhatsApp floating menu. Almost everything is manageable from Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theazadi
Tags: news, blog, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, rtl-language-support, sticky-post
*/

/* ===== TOKENS ===== */
:root{
  --red:#D32F2F; --red-dark:#B71C1C; --red-soft:#fdecec;
  --ink:#161616; --muted:#6c6c6c;
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f6f6f7; --border:#e7e7e9;
  --shadow:0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.05);
  --ui:'Poppins', system-ui, -apple-system, sans-serif;
  --hi:'Hind', system-ui, sans-serif;
  --r:10px;
}
[data-theme="dark"]{
  --red-soft:#2a1414;
  --ink:#ededed; --muted:#9a9a9c;
  --bg:#0e0e10; --surface:#19191c; --surface-2:#151517; --border:#2a2a2e;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.4);
}

/* ===== BASE ===== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--hi);line-height:1.6;-webkit-font-smoothing:antialiased;transition:background .25s,color .25s}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,h5{margin:0;font-family:var(--hi);line-height:1.3}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0}
.wrap{max-width:1200px;margin:0 auto;padding:0 18px}
.ui{font-family:var(--ui)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--red);color:#fff;padding:10px 16px;z-index:1000;font-family:var(--ui)}
.skip-link:focus{left:8px;top:8px}

/* image placeholder fallback (no featured image) */
.ph{background:linear-gradient(135deg,#cfd2d8,#aeb2bb);position:relative;overflow:hidden}
[data-theme="dark"] .ph{background:linear-gradient(135deg,#2c2c31,#37373d)}

/* ===== TOP BAR ===== */
.topbar{background:var(--ink);color:#fff;font-family:var(--ui);font-size:12.5px}
[data-theme="dark"] .topbar{background:#000;border-bottom:1px solid var(--border)}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;min-height:38px;gap:14px}
.topbar .left,.topbar .right{display:flex;align-items:center;gap:16px;white-space:nowrap}
.topbar .right{overflow-x:auto;scrollbar-width:none}
.topbar .right::-webkit-scrollbar{display:none}
.topbar a{opacity:.85;transition:opacity .15s}
.topbar a:hover{opacity:1}
.tdot{width:4px;height:4px;border-radius:50%;background:#ffffff55}
.login-btn{background:var(--red);color:#fff!important;padding:5px 13px;border-radius:6px;font-weight:600;opacity:1!important}

/* ===== MASTHEAD ===== */
.masthead{background:var(--surface);border-bottom:1px solid var(--border)}
.masthead .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 18px}
.logo{display:flex;align-items:center;gap:12px}
.logo .mark{width:46px;height:46px;border-radius:10px;background:var(--red);display:grid;place-items:center;color:#fff;font-family:var(--hi);font-weight:700;font-size:26px;line-height:1}
.logo .site-name{font-family:var(--hi);font-size:30px;font-weight:700;letter-spacing:-.5px;color:var(--ink)}
.logo .tag{font-family:var(--ui);font-size:11px;color:var(--muted);font-weight:500;letter-spacing:.5px;margin-top:1px}
.custom-logo{max-height:56px;width:auto}
.ad-leaderboard{flex:1;max-width:728px;min-height:90px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ad-placeholder{width:100%;min-height:90px;border:1px dashed var(--border);border-radius:8px;display:grid;place-items:center;background:var(--surface-2);color:var(--muted);font-family:var(--ui);font-size:12px;letter-spacing:1px}

/* ===== NAV ===== */
.nav{position:sticky;top:0;z-index:50;background:var(--surface);border-bottom:2px solid var(--red);box-shadow:var(--shadow)}
.nav .wrap{display:flex;align-items:center;gap:6px;min-height:50px}
.nav .menu{display:flex;align-items:center;gap:2px;font-family:var(--ui);font-size:14px;font-weight:500;overflow-x:auto;scrollbar-width:none;flex:1;list-style:none}
.nav .menu::-webkit-scrollbar{display:none}
.nav .menu li{position:relative}
.nav .menu a{display:block;padding:8px 13px;border-radius:7px;white-space:nowrap;color:var(--ink);transition:.15s}
.nav .menu a:hover,.nav .menu .current-menu-item>a{background:var(--red-soft);color:var(--red)}
.nav .menu .sub-menu{position:absolute;top:100%;left:0;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);min-width:190px;padding:6px;display:none;z-index:60}
.nav .menu li:hover>.sub-menu{display:block}
.nav .menu .sub-menu a{font-size:13.5px}
.nav .tools{display:flex;align-items:center;gap:6px;padding-left:8px}
.icbtn{width:38px;height:38px;border-radius:9px;border:1px solid var(--border);background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--ink);font-size:16px;transition:.15s}
.icbtn:hover{background:var(--surface-2);border-color:var(--red)}
.hamb{display:none}
.nav-brand-m{display:none;font-family:var(--hi);font-weight:700;font-size:20px;color:var(--ink);align-items:center}

/* ===== MOBILE MENU ===== */
.mmenu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;visibility:hidden;transition:.25s;z-index:98}
.mmenu-overlay.open{opacity:1;visibility:visible}
.mmenu{position:fixed;top:0;right:-330px;width:300px;max-width:85vw;height:100%;background:var(--surface);z-index:99;transition:right .28s cubic-bezier(.4,0,.2,1);box-shadow:-8px 0 30px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow-y:auto}
.mmenu.open{right:0}
.mmenu-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--border)}
.mmenu-head .site-name{font-size:22px}
.mmenu-close{width:36px;height:36px;border:0;background:var(--surface-2);border-radius:8px;font-size:15px;color:var(--ink);cursor:pointer}
.mlinks{display:flex;flex-direction:column;list-style:none}
.mlinks a{display:block;font-family:var(--ui);font-size:15px;font-weight:500;padding:13px 20px;border-bottom:1px solid var(--border);color:var(--ink);transition:.15s}
.mlinks a:hover,.mlinks .current-menu-item>a{background:var(--red-soft);color:var(--red)}
.m-foot{margin-top:auto;padding:18px 20px;display:flex;gap:10px}
.m-foot a{flex:1;text-align:center;font-family:var(--ui);font-size:13px;font-weight:600;padding:11px;border-radius:8px}
.m-login{background:var(--red);color:#fff}
.m-epaper{background:var(--surface-2);color:var(--ink);border:1px solid var(--border)}

/* ===== SEARCH PANEL ===== */
.search-back{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;visibility:hidden;transition:.25s;z-index:96}
.search-back.open{opacity:1;visibility:visible}
.search-panel{position:fixed;top:0;left:0;right:0;background:var(--surface);box-shadow:0 10px 34px rgba(0,0,0,.18);z-index:97;transform:translateY(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);padding:22px 0}
.search-panel.open{transform:translateY(0)}
.search-panel .srow{display:flex;align-items:center;gap:12px}
.search-panel .si{flex:1;border:0;border-bottom:2px solid var(--border);background:transparent;font-family:var(--hi);font-size:22px;padding:10px 2px;color:var(--ink);outline:none}
.search-panel .si:focus{border-color:var(--red)}
.search-panel .sgo{background:var(--red);color:#fff;border:0;width:46px;height:46px;border-radius:10px;font-size:18px;cursor:pointer;flex-shrink:0}
.search-panel .sx{background:var(--surface-2);border:1px solid var(--border);color:var(--ink);width:46px;height:46px;border-radius:10px;font-size:15px;cursor:pointer;flex-shrink:0}
.search-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;font-family:var(--ui);font-size:12.5px;align-items:center}
.search-tags span{color:var(--muted)}
.search-tags a{background:var(--surface-2);border:1px solid var(--border);padding:6px 13px;border-radius:20px;color:var(--ink);transition:.15s}
.search-tags a:hover{border-color:var(--red);color:var(--red)}

/* ===== BREAKING TICKER ===== */
.ticker{background:var(--surface);border-bottom:1px solid var(--border)}
.ticker .wrap{display:flex;align-items:center;height:44px;overflow:hidden}
.tk-label{background:var(--red);color:#fff;font-family:var(--ui);font-weight:600;font-size:13px;padding:0 14px;height:44px;display:flex;align-items:center;gap:8px;flex-shrink:0;clip-path:polygon(0 0,100% 0,92% 100%,0 100%)}
.tk-label .blip{width:8px;height:8px;border-radius:50%;background:#fff;animation:blink 1s infinite}
@keyframes blink{50%{opacity:.25}}
.tk-track{flex:1;overflow:hidden;position:relative;height:44px}
.tk-run{display:flex;align-items:center;gap:40px;position:absolute;white-space:nowrap;height:44px;animation:ticker 26s linear infinite}
.tk-run:hover{animation-play-state:paused}
.tk-run a{font-size:15px;font-weight:500;color:var(--ink);display:inline-flex;align-items:center;gap:40px}
.tk-run a::before{content:"●";color:var(--red);font-size:8px}
@keyframes ticker{from{transform:translateX(20px)}to{transform:translateX(-100%)}}

/* ===== SECTION HEADERS ===== */
.section{padding:30px 0}
.section.alt{background:var(--surface-2)}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.sec-title{display:flex;align-items:center;gap:11px}
.sec-title .bar{width:5px;height:26px;background:var(--red);border-radius:3px}
.sec-title h2{font-size:23px;font-weight:700}
.sec-title .en{font-family:var(--ui);font-size:11px;font-weight:600;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase}
.more{font-family:var(--ui);font-size:13px;font-weight:500;color:var(--red);display:flex;align-items:center;gap:5px}

.pill{font-family:var(--ui);font-size:11px;font-weight:600;color:var(--red);background:var(--red-soft);padding:3px 9px;border-radius:5px;letter-spacing:.4px;display:inline-block;text-transform:uppercase}
.pill.loc{color:#fff;background:var(--red)}
.meta{font-family:var(--ui);font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.meta .d{width:3px;height:3px;border-radius:50%;background:var(--muted)}

/* ===== HERO ===== */
.hero{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}
.lead{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);transition:.2s}
.lead:hover{transform:translateY(-3px)}
.lead .img{aspect-ratio:16/9}
.lead .img img{width:100%;height:100%;object-fit:cover}
.lead .body{padding:18px 20px 22px}
.lead h3{font-size:29px;font-weight:700;line-height:1.28;margin:12px 0 10px;letter-spacing:-.3px}
.lead p{color:var(--muted);font-size:15.5px;margin-bottom:14px}
.side-list{display:flex;flex-direction:column;gap:14px}
.side-item{display:grid;grid-template-columns:108px 1fr;gap:13px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;transition:.18s}
.side-item:hover{transform:translateY(-2px);border-color:var(--red)}
.side-item .img{aspect-ratio:1/1}
.side-item .img img{width:100%;height:100%;object-fit:cover}
.side-item .body{padding:11px 12px 11px 0;display:flex;flex-direction:column;gap:7px;justify-content:center}
.side-item h4{font-size:16px;font-weight:600;line-height:1.35}

/* ===== MAIN LAYOUT + CARDS ===== */
.layout{display:grid;grid-template-columns:1fr 320px;gap:30px;align-items:start}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.cards.cols-3{grid-template-columns:repeat(3,1fr)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;transition:.18s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:transparent}
.card .img{aspect-ratio:16/9}
.card .img img{width:100%;height:100%;object-fit:cover}
.card .body{padding:13px 15px 16px;display:flex;flex-direction:column;gap:8px}
.card h4{font-size:18px;font-weight:600;line-height:1.36}
.card:hover h4{color:var(--red)}

/* category row (4 across) */
.row4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.ccard .img{aspect-ratio:16/10;border-radius:var(--r);overflow:hidden;margin-bottom:10px}
.ccard .img img{width:100%;height:100%;object-fit:cover}
.ccard h4{font-size:16px;font-weight:600;line-height:1.4;margin-bottom:6px;transition:.15s}
.ccard:hover h4{color:var(--red)}

/* ===== SIDEBAR / WIDGETS ===== */
.widget{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:16px;margin-bottom:22px}
.widget .widget-title,.widget .wt{font-family:var(--ui);font-size:13px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--ink);display:flex;align-items:center;gap:8px;margin:0 0 14px;padding-bottom:11px;border-bottom:1px solid var(--border)}
.widget .wt .dot{width:7px;height:7px;background:var(--red);border-radius:2px}
.widget ul{list-style:none}
.widget ul li{padding:8px 0;border-bottom:1px solid var(--border);font-family:var(--ui);font-size:14px}
.widget ul li:last-child{border:0}
.trend{display:flex;gap:13px;padding:11px 0;border-bottom:1px solid var(--border)}
.trend:last-child{border:0;padding-bottom:0}
.trend .n{font-family:var(--ui);font-size:24px;font-weight:700;color:var(--red);line-height:1;width:26px;flex-shrink:0;opacity:.85}
.trend h5{font-size:15px;font-weight:600;line-height:1.4}
.trend small{font-family:var(--ui);font-size:11px;color:var(--muted)}
.adbox{display:grid;place-items:center;margin-bottom:22px;overflow:hidden}
.adbox .ad-placeholder{min-height:250px}
.stick{position:sticky;top:62px}

/* ===== STATE / DISTRICT ===== */
.geo{background:var(--surface-2);border-radius:14px;padding:24px}
.chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}
.chip{font-family:var(--ui);font-size:12.5px;color:var(--ink);background:var(--surface);border:1px solid var(--border);padding:5px 12px;border-radius:6px;transition:.15s}
.chip:hover{border-color:var(--red);color:var(--red)}
.geo-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.geo-item{display:flex;flex-direction:column;gap:8px}
.geo-item .img{aspect-ratio:16/9;border-radius:var(--r);overflow:hidden}
.geo-item .img img{width:100%;height:100%;object-fit:cover}
.geo-item h4{font-size:16px;font-weight:600;line-height:1.4}
.geo-item h4 .loc{font-family:var(--ui);font-size:11px;font-weight:600;color:var(--red);margin-right:6px}

/* ===== NEWSLETTER ===== */
.newsletter{background:linear-gradient(120deg,var(--red),var(--red-dark));border-radius:16px;padding:34px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap}
.newsletter h3{font-size:25px;font-weight:700;margin-bottom:6px}
.newsletter p{font-family:var(--ui);font-size:14px;opacity:.92;margin:0}
.newsletter form{display:flex;gap:10px;flex:1;min-width:280px;max-width:480px}
.newsletter input{flex:1;border:0;border-radius:9px;padding:13px 16px;font-family:var(--ui);font-size:14px;background:#fff;color:#161616}
.newsletter button{border:0;background:#161616;color:#fff;font-family:var(--ui);font-weight:600;font-size:14px;padding:0 22px;border-radius:9px;cursor:pointer;white-space:nowrap}

/* ===== SOCIAL ICONS ===== */
.sic{display:flex;align-items:center;justify-content:center;color:#fff;border-radius:50%;transition:.2s;position:relative;line-height:0}
.sic svg{display:block;fill:currentColor;position:relative;z-index:1}
.soc{display:flex;gap:9px}
.soc .sic{width:30px;height:30px;background:#ffffff1a}
.soc .sic svg{width:15px;height:15px}
.soc .sic.fb:hover{background:#1877F2}
.soc .sic.yt:hover{background:#FF0000}
.soc .sic.tw:hover{background:#000}
.soc .sic.ig:hover{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)}
.soc .sic:hover{transform:translateY(-2px)}
.fsoc{display:flex;gap:11px}
.fsoc .sic{width:42px;height:42px}
.fsoc .sic svg{width:20px;height:20px}
.fsoc .sic.fb{background:#1877F2}
.fsoc .sic.yt{background:#FF0000}
.fsoc .sic.tw{background:#0a0a0a;border:1px solid rgba(255,255,255,.22)}
.fsoc .sic.ig{background:linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5)}
.fsoc .sic:hover{transform:translateY(-3px) scale(1.06);box-shadow:0 7px 18px rgba(0,0,0,.35)}
.yt-wave{animation:ytpulse 2s ease-out infinite}
@keyframes ytpulse{0%{box-shadow:0 0 0 0 rgba(255,0,0,.5)}70%{box-shadow:0 0 0 7px rgba(255,0,0,0)}100%{box-shadow:0 0 0 0 rgba(255,0,0,0)}}

/* ===== WHATSAPP FLOATING MENU ===== */
.wa-wrap{position:fixed;right:18px;bottom:18px;z-index:61;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.wa-float{width:58px;height:58px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;border:0;cursor:pointer;transition:transform .2s;position:relative;line-height:0;animation:wapulse 2.4s ease-out infinite}
.wa-float:hover{transform:scale(1.08)}
@keyframes wapulse{0%{box-shadow:0 6px 18px rgba(37,211,102,.4),0 0 0 0 rgba(37,211,102,.45)}70%{box-shadow:0 6px 18px rgba(37,211,102,.4),0 0 0 12px rgba(37,211,102,0)}100%{box-shadow:0 6px 18px rgba(37,211,102,.4),0 0 0 0 rgba(37,211,102,0)}}
.wa-pop{background:var(--surface);border:1px solid var(--border);border-radius:15px;box-shadow:0 14px 38px rgba(0,0,0,.24);width:250px;overflow:hidden;transform-origin:bottom right;transform:scale(.85) translateY(12px);opacity:0;visibility:hidden;transition:.22s cubic-bezier(.4,0,.2,1)}
.wa-pop.open{transform:scale(1) translateY(0);opacity:1;visibility:visible}
.wa-pop-head{background:linear-gradient(135deg,#25D366,#1ebe5b);color:#fff;padding:13px 16px;font-family:var(--hi);font-weight:600;font-size:15px;display:flex;align-items:center;gap:9px}
.wa-pop-head svg{fill:#fff}
.wa-opt{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border);transition:.15s}
.wa-opt:last-child{border-bottom:0}
.wa-opt:hover{background:var(--surface-2)}
.wa-opt .wo-ic{width:40px;height:40px;border-radius:11px;background:rgba(37,211,102,.14);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.wa-opt .wo-ic svg{fill:#25D366;width:20px;height:20px}
.wa-opt .wo-tx .t{font-family:var(--hi);font-weight:600;font-size:14.5px;color:var(--ink);line-height:1.2}
.wa-opt .wo-tx .s{font-family:var(--ui);font-size:11px;color:var(--muted);margin-top:1px}

/* ===== ARTICLE ===== */
.crumb{font-family:var(--ui);font-size:12.5px;color:var(--muted);padding:16px 0 4px;display:flex;gap:7px;flex-wrap:wrap}
.crumb a:hover{color:var(--red)}
.crumb .sep{opacity:.5}
.alayout{display:grid;grid-template-columns:1fr 320px;gap:34px;align-items:start;padding:14px 0 30px}
.art-head{margin-bottom:18px}
.art-tags-top{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.art-title{font-size:34px;font-weight:700;line-height:1.3;letter-spacing:-.4px;margin-bottom:14px}
.art-excerpt{font-size:18px;color:var(--muted);line-height:1.6;margin-bottom:18px}
.art-byline{display:flex;align-items:center;gap:13px;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);flex-wrap:wrap}
.avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,var(--red),var(--red-dark));display:grid;place-items:center;color:#fff;font-family:var(--hi);font-weight:700;font-size:20px;flex-shrink:0;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.byline-info .nm{font-size:16px;font-weight:600}
.byline-info .sub{font-family:var(--ui);font-size:12px;color:var(--muted)}
.byline-meta{margin-left:auto;text-align:right;font-family:var(--ui);font-size:12px;color:var(--muted);line-height:1.7}
.byline-meta .rt{color:var(--red);font-weight:600}

/* share buttons */
.share{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:16px 0}
.share .lbl{font-family:var(--ui);font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-right:2px}
.sbtn{display:inline-flex;align-items:center;gap:8px;font-family:var(--ui);font-size:13px;font-weight:600;color:#fff;padding:9px 15px;border-radius:8px;border:0;cursor:pointer;transition:.16s}
.sbtn:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.18)}
.sbtn svg{width:16px;height:16px;fill:currentColor}
.s-fb{background:#1877F2}
.s-tw{background:#111}
[data-theme="dark"] .s-tw{background:#000;border:1px solid #333}
.s-wa{background:#25D366}
.s-cp{background:var(--surface-2);color:var(--ink);border:1px solid var(--border)}
.s-cp:hover{border-color:var(--red);color:var(--red)}

.featured{margin:6px 0 8px}
.featured .img{border-radius:12px;overflow:hidden}
.featured .img img{width:100%;height:auto}
.featured .cap{font-family:var(--ui);font-size:12px;color:var(--muted);padding:8px 2px 0;font-style:italic}

.art-body{font-size:18px;line-height:1.85;color:var(--ink)}
.art-body p{margin:18px 0}
.art-body a{color:var(--red);text-decoration:underline}
.art-body h2{font-size:24px;font-weight:700;margin:30px 0 6px;letter-spacing:-.3px}
.art-body h3{font-size:20px;font-weight:600;margin:24px 0 6px}
.art-body img{border-radius:10px;margin:18px 0}
.art-body ul,.art-body ol{margin:18px 0 18px 22px}
.art-body li{margin:6px 0}
.art-body blockquote{border-left:4px solid var(--red);background:var(--surface-2);padding:18px 22px;margin:26px 0;border-radius:0 10px 10px 0;font-size:20px;font-weight:500;line-height:1.6}
.ad-incontent{margin:28px 0;display:grid;place-items:center;overflow:hidden}
.ad-incontent .ad-placeholder{min-height:110px}

.tagrow{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0;padding-top:22px;border-top:1px solid var(--border)}
.tagrow a{font-family:var(--ui);font-size:12.5px;color:var(--ink);background:var(--surface-2);border:1px solid var(--border);padding:6px 13px;border-radius:6px;transition:.15s}
.tagrow a:hover{border-color:var(--red);color:var(--red)}
.tagrow a::before{content:"#";color:var(--red);margin-right:2px}

.authorbox{display:flex;gap:16px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:18px;margin:24px 0}
.authorbox .avatar{width:58px;height:58px;font-size:24px}
.authorbox h4{font-size:17px;font-weight:600;margin-bottom:3px}
.authorbox .role{font-family:var(--ui);font-size:12px;color:var(--red);font-weight:600;margin-bottom:7px}
.authorbox p{font-size:14.5px;color:var(--muted);line-height:1.6;margin:0}

.prevnext{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0}
.pn{border:1px solid var(--border);border-radius:10px;padding:14px 16px;transition:.15s}
.pn:hover{border-color:var(--red);background:var(--surface-2)}
.pn .k{font-family:var(--ui);font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.pn.next{text-align:right}
.pn h5{font-size:15px;font-weight:600;line-height:1.4}

.related{margin-top:30px}
.rcards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.rcard .img{aspect-ratio:16/10;border-radius:var(--r);overflow:hidden;margin-bottom:10px}
.rcard .img img{width:100%;height:100%;object-fit:cover}
.rcard h4{font-size:16px;font-weight:600;line-height:1.4;transition:.15s}
.rcard:hover h4{color:var(--red)}

/* OG share preview demo */
.ogdemo{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:14px;margin-bottom:22px}
.ogdemo .t{font-family:var(--ui);font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}
.ogcard{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface-2)}
.ogcard .img{aspect-ratio:1.91/1}
.ogcard .img img{width:100%;height:100%;object-fit:cover}
.ogcard .b{padding:10px 12px}
.ogcard .dom{font-family:var(--ui);font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.ogcard h5{font-size:14px;font-weight:600;line-height:1.35;margin:4px 0 2px}
.ogcard p{font-size:12px;color:var(--muted);line-height:1.4;margin:0}

/* ===== COMMENTS ===== */
.comments{margin-top:34px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:22px}
.comments .comment-list{list-style:none}
.comments .comment-body{padding:14px 0;border-bottom:1px solid var(--border)}
.comments .comment-author{font-family:var(--ui);font-weight:600;font-size:14px}
.comments .comment-meta{font-family:var(--ui);font-size:11px;color:var(--muted)}
.comments .children{list-style:none;margin-left:28px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;border:1px solid var(--border);background:var(--bg);color:var(--ink);border-radius:8px;padding:11px 13px;font-family:var(--ui);font-size:14px;margin-bottom:12px}
.comment-form .submit,.btn{background:var(--red);color:#fff;border:0;font-family:var(--ui);font-weight:600;font-size:14px;padding:11px 22px;border-radius:8px;cursor:pointer}

/* ===== PAGINATION ===== */
.pagination{margin:30px 0;display:flex;justify-content:center}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.pagination .page-numbers{font-family:var(--ui);font-size:14px;font-weight:600;padding:9px 15px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--ink)}
.pagination .page-numbers.current{background:var(--red);color:#fff;border-color:var(--red)}
.pagination .page-numbers:hover{border-color:var(--red);color:var(--red)}
.pagination .page-numbers.current:hover{color:#fff}

/* ===== PAGE / 404 ===== */
.page-hero{padding:34px 0 6px}
.page-hero h1{font-size:30px;font-weight:700}
.notfound{text-align:center;padding:70px 18px}
.notfound .code{font-family:var(--ui);font-size:90px;font-weight:700;color:var(--red);line-height:1}
.notfound h1{font-size:26px;font-weight:700;margin:10px 0}
.notfound p{color:var(--muted)}

footer.site-footer{background:var(--ink);color:#fff;margin-top:20px}
[data-theme="dark"] footer.site-footer{background:#000;border-top:1px solid var(--border)}
.foot-top{padding:44px 0 34px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px}
.fcol h4{font-family:var(--ui);font-size:13px;font-weight:600;letter-spacing:1px;text-transform:uppercase;margin:0 0 16px;color:#fff}
.fcol a{display:block;font-family:var(--ui);font-size:13.5px;color:#ffffffb0;padding:6px 0;transition:.15s}
.fcol a:hover{color:var(--red);padding-left:4px}
.fcol ul{list-style:none}
.fbrand .site-name{color:#fff}
.fbrand p{font-size:14px;color:#ffffffa0;margin:14px 0 16px;line-height:1.7}
.foot-bot{border-top:1px solid #ffffff1f;padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;font-family:var(--ui);font-size:12.5px;color:#ffffff80}
.foot-bot .fl{display:flex;gap:18px;flex-wrap:wrap}

/* toast */
.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--red);color:#fff;font-family:var(--ui);font-size:13px;font-weight:600;padding:11px 22px;border-radius:8px;opacity:0;visibility:hidden;transition:.25s;z-index:200;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.toast.show{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}

/* ===== RESPONSIVE ===== */
@media(max-width:980px){
  .hero{grid-template-columns:1fr}
  .layout,.alayout{grid-template-columns:1fr}
  .stick{position:static}
  .row4{grid-template-columns:repeat(2,1fr)}
  .geo-list,.rcards{grid-template-columns:1fr 1fr}
  .foot-top{grid-template-columns:1fr 1fr}
  .ad-leaderboard{display:none}
}
@media(max-width:760px){
  .hamb{display:grid}
  .nav .menu{display:none}
  .nav-brand-m{display:flex}
}
@media(max-width:600px){
  .cards,.cards.cols-3{grid-template-columns:1fr}
  .row4,.geo-list,.rcards{grid-template-columns:1fr}
  .foot-top{grid-template-columns:1fr}
  .prevnext{grid-template-columns:1fr}
  .art-title{font-size:25px}
  .art-body{font-size:16.5px}
  .lead h3{font-size:23px}
  .logo .site-name{font-size:24px}
  .newsletter{padding:24px}
}

/* homepage layout safety */
.main-col{min-width:0}
.sidebar{min-width:0}

/* standalone search form (search/404 pages) */
.tz-search{display:flex;gap:8px}
.tz-search input{flex:1;border:1px solid var(--border);background:var(--surface);border-radius:9px;padding:12px 15px;font-family:var(--hi);font-size:15px;color:var(--ink);outline:none}
.tz-search input:focus{border-color:var(--red)}
.tz-search button{background:var(--red);color:#fff;border:0;width:48px;border-radius:9px;font-size:17px;cursor:pointer;flex-shrink:0}
