/*
Theme Name: News Performance Theme
Theme URI: https://www.zhopiin.ir/
Author: Custom
Description: Lightweight, widget-driven WordPress news theme designed for high traffic.
Version: 2.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: news-performance
*/

/* Local Persian font: bundled with the theme for zero external font requests. */
@font-face{font-family:"Vazir";src:url("assets/fonts/Vazir-Regular.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Vazir";src:url("assets/fonts/Vazir-Medium.woff2") format("woff2");font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:"Vazir";src:url("assets/fonts/Vazir-Bold.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap}

:root{--container:1200px;--gap:24px;--border:#e5e7eb;--text:#111827;--muted:#6b7280}
*{box-sizing:border-box}
html{line-height:1.5}
body{margin:0;color:var(--text);background:#fff;font-family:Vazir,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.npt-container{width:min(100% - 32px,var(--container));margin-inline:auto}
.npt-site-header{border-bottom:1px solid var(--border)}
.npt-top,.npt-header,.npt-nav,.npt-footer{padding:12px 0}
.npt-header-row,.npt-nav-row{display:flex;align-items:center;gap:20px}
.npt-main{padding:24px 0}
.npt-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:var(--gap)}
.npt-card{border:1px solid var(--border);padding:16px;margin-bottom:16px}
.npt-title{margin:0 0 10px}
.npt-meta{color:var(--muted);font-size:.9rem}
.npt-widget{margin-bottom:20px}
.npt-footer{margin-top:40px;border-top:1px solid var(--border)}
@media(max-width:800px){.npt-layout{grid-template-columns:1fr}.npt-sidebar{order:2}.npt-container{width:min(100% - 20px,var(--container))}}

/* Article enhancements: lightweight, no JS dependency. */
.npt-article-header{margin-bottom:18px}.npt-subheadline{margin:12px 0 14px;padding:12px 16px;border-inline-start:4px solid var(--text);background:#f5f6f7;font-size:1.05rem;line-height:1.9;font-weight:500}.npt-inarticle-popular{margin:28px 0;padding:16px 18px;border-block:1px solid var(--border);background:#fafafa}.npt-inarticle-heading{font-size:1.05rem;font-weight:700;margin-bottom:10px}.npt-inarticle-popular ol{margin:0;padding-inline-start:24px}.npt-inarticle-popular li{padding:7px 0;border-bottom:1px solid var(--border)}.npt-inarticle-popular li:last-child{border-bottom:0}.npt-more-read,.npt-related{margin-top:28px}.npt-more-read h2,.npt-related h2{font-size:1.15rem;margin:0 0 12px;padding-inline-start:10px;border-inline-start:3px solid var(--text)}.npt-more-read ul{list-style:none;margin:0;padding:0}.npt-more-read li{padding:10px 0;border-bottom:1px solid var(--border)}.npt-more-read li::before{content:'›';margin-inline-end:8px;font-weight:700}.npt-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.npt-related-card{min-width:0}.npt-related-image{display:block;aspect-ratio:3/2;overflow:hidden;background:#eee}.npt-related-image img{width:100%;height:100%;object-fit:cover;display:block}.npt-related-card h3{font-size:.98rem;line-height:1.7;margin:8px 0 0}@media(max-width:700px){.npt-related-grid{grid-template-columns:1fr 1fr}.npt-subheadline{font-size:1rem}}@media(max-width:460px){.npt-related-grid{grid-template-columns:1fr}}


/* Performance: keep the first above-the-fold section fully renderable for LCP; defer later sections. */
.npt-home-section-first{content-visibility:visible;contain:none}
.npt-featured-main-card .npt-card-image img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:16/9}

/* Lightweight news layouts */
.widget-title{font-size:1.25rem;margin:0 0 14px;padding-inline-start:10px;border-inline-start:4px solid currentColor}.npt-post-card{min-width:0}.npt-card-image{display:block;overflow:hidden;background:#eee;aspect-ratio:3/2}.npt-card-image img{width:100%;height:100%;object-fit:cover;display:block}.npt-card-body h3{font-size:1rem;line-height:1.75;margin:8px 0 4px}.npt-horizontal-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:6px}.npt-horizontal-item{flex:0 0 calc(25% - 12px);scroll-snap-align:start}.npt-news-six{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.npt-sidebar-news .npt-post-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.npt-sidebar-news .npt-post-card:first-child{padding-top:0}.npt-sidebar-news .npt-card-image{aspect-ratio:4/3}.npt-sidebar-news .npt-card-body h3{margin:0;font-size:.94rem}.npt-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.npt-analysis{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:18px}.npt-analysis-side{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:0 0 12px;border-bottom:1px solid var(--border)}.npt-analysis-main .npt-card-body h3{font-size:1.3rem}.npt-video-wrap{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;align-items:center}.npt-video-track{display:flex;gap:14px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none}.npt-video-track::-webkit-scrollbar{display:none}.npt-video-card{flex:0 0 calc(33.333% - 10px);scroll-snap-align:start}.npt-video-card a{display:block;position:relative}.npt-video-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.npt-play{position:absolute;inset:0;margin:auto;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.72);color:#fff}.npt-video-card h3{font-size:.95rem;line-height:1.7;margin:8px 0}.npt-video-prev,.npt-video-next{border:1px solid var(--border);background:#fff;color:var(--text);width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:1.3rem}.npt-video-next{transform:scaleX(-1)}
@media(max-width:900px){.npt-horizontal-item{flex-basis:calc(50% - 8px)}.npt-analysis{grid-template-columns:1fr}.npt-video-card{flex-basis:calc(50% - 7px)}}
@media(max-width:650px){.npt-news-six,.npt-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.npt-horizontal-item{flex-basis:78%}.npt-video-card{flex-basis:82%}.npt-analysis-main .npt-card-body h3{font-size:1.1rem}}
@media(max-width:420px){.npt-news-six,.npt-editor-grid{grid-template-columns:1fr}}

/* Theme appearance: dark mode is CSS-only and therefore cheap. */
html[data-npt-theme="dark"]{--border:#30343b;--text:#f3f4f6;--muted:#a7adb7;background:#111315}html[data-npt-theme="dark"] body{background:#111315;color:var(--text)}html[data-npt-theme="dark"] .npt-site-header,html[data-npt-theme="dark"] .npt-footer{background:#111315}html[data-npt-theme="dark"] .npt-card,html[data-npt-theme="dark"] .npt-inarticle-popular{background:#171a1e;border-color:var(--border)}html[data-npt-theme="dark"] .npt-subheadline{background:#1a1d21}html[data-npt-theme="dark"] .npt-video-prev,html[data-npt-theme="dark"] .npt-video-next{background:#171a1e;color:var(--text);border-color:var(--border)}
.npt-social-links{display:flex;flex-wrap:wrap;gap:8px}.npt-social{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 11px;border:1px solid var(--border);border-radius:3px;font-size:.88rem;transition:background .15s ease}.npt-social:hover{background:rgba(127,127,127,.12)}
.npt-theme-toggle{margin-inline-start:auto;border:1px solid var(--border);background:transparent;color:inherit;width:34px;height:34px;border-radius:50%;cursor:pointer}.npt-theme-toggle:hover{background:rgba(127,127,127,.12)}

/* Archive, navigation and footer: lightweight production pass. */
.npt-skip-link{position:absolute;inset-inline-start:8px;top:-60px;z-index:9999;padding:8px 12px;background:#111;color:#fff}.npt-skip-link:focus{top:8px}.npt-brand{font-size:1.45rem;line-height:1.2}.npt-nav{overflow-x:auto;border-block:1px solid var(--border)}.npt-nav-row{min-width:max-content}.npt-nav-row ul{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0}.npt-nav-row li{margin:0}.npt-nav-row a{display:block;padding:11px 14px;font-weight:600;white-space:nowrap}.npt-nav-row a:hover,.npt-nav-row .current-menu-item>a{background:rgba(127,127,127,.09)}.npt-archive-header{padding:0 0 18px;margin-bottom:20px;border-bottom:2px solid var(--text)}.npt-archive-description{color:var(--muted);line-height:1.9;margin-top:8px}.npt-archive-list{display:grid;gap:0}.npt-archive-card{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;padding:20px 0;border-bottom:1px solid var(--border)}.npt-archive-image{display:block;aspect-ratio:3/2;overflow:hidden;background:#eee}.npt-archive-image img{width:100%;height:100%;object-fit:cover;display:block}.npt-archive-body h2{font-size:1.2rem;line-height:1.7;margin:5px 0}.npt-archive-body p{color:var(--muted);line-height:1.9;margin:6px 0}.npt-empty{padding:30px 0}.npt-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.npt-footer-col{min-width:0}.npt-footer-bar{display:flex;justify-content:space-between;gap:16px;padding:16px 0;margin-top:18px;border-top:1px solid var(--border);color:var(--muted);font-size:.85rem}.npt-footer .widget{margin-bottom:18px}.npt-footer .widget-title{font-size:1.05rem}@media(max-width:800px){.npt-footer-grid{grid-template-columns:1fr 1fr}.npt-archive-card{grid-template-columns:180px minmax(0,1fr);gap:14px}}@media(max-width:560px){.npt-archive-card{grid-template-columns:110px minmax(0,1fr);gap:12px;padding:15px 0}.npt-archive-body h2{font-size:1rem;margin:3px 0}.npt-archive-body p{display:none}.npt-footer-grid{grid-template-columns:1fr}.npt-footer-bar{font-size:.8rem}.npt-nav-row a{padding:10px 11px;font-size:.92rem}}
html[data-npt-theme="dark"] .npt-skip-link{background:#fff;color:#111}

.npt-popular-list{margin:0;padding-inline-start:24px}.npt-popular-list li{padding:8px 0;border-bottom:1px solid var(--border);line-height:1.8}.npt-popular-list li:last-child{border-bottom:0}

/* Performance: avoid accidental horizontal overflow while preserving touch scrolling in dedicated rails. */
html{overflow-x:hidden}
.npt-horizontal-track,.npt-video-track{overscroll-behavior-inline:contain}
.npt-featured-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:18px}.npt-featured-main{grid-row:span 4}.npt-featured-main .npt-card-image{aspect-ratio:16/9}.npt-featured-main .npt-card-body h3{font-size:1.35rem;line-height:1.65}.npt-featured-side{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}.npt-featured-side .npt-card-body h3{margin:0;font-size:.95rem}.npt-home-section:not(.npt-home-section-first){content-visibility:auto;contain-intrinsic-size:420px}@media(max-width:700px){.npt-featured-layout{grid-template-columns:1fr}.npt-featured-main{grid-row:auto}.npt-featured-main .npt-card-body h3{font-size:1.15rem}}

/* Production visual layer: lightweight BBC-inspired Persian news layout. */
:root{--container:1200px;--gap:24px;--border:#d9dde3;--text:#111;--muted:#606770;--surface:#fff;--soft:#f3f4f6;--accent:#b40000}
html{scroll-behavior:smooth}
body{background:var(--surface);color:var(--text);font-family:Vazir,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.npt-skip-link{position:absolute;inset-inline-start:-9999px;top:8px;padding:8px 12px;background:#111;color:#fff;z-index:9999}.npt-skip-link:focus{inset-inline-start:8px}
.npt-site-header{border-bottom:3px solid var(--text);background:var(--surface)}
.npt-brandbar{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0}
.npt-brand-link{display:flex;align-items:center;gap:12px}.npt-brand-mark{display:grid;place-items:center;width:42px;height:42px;background:var(--text);color:#fff;font-size:1.35rem;font-weight:800}.npt-brand-text{display:flex;flex-direction:column;gap:1px}.npt-brand-text strong{font-size:1.45rem;line-height:1.2}.npt-brand-text small{color:var(--muted);font-size:.78rem}
.npt-header-actions{display:flex;align-items:center;gap:10px}.npt-theme-toggle{border:1px solid var(--border);background:var(--surface);color:var(--text);width:38px;height:38px;cursor:pointer;border-radius:2px;font-size:1.05rem}.npt-theme-toggle:hover{background:var(--soft)}
.npt-nav{border-top:1px solid var(--border)}.npt-nav-row{overflow-x:auto;scrollbar-width:none}.npt-nav-row::-webkit-scrollbar{display:none}.npt-menu{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0;white-space:nowrap}.npt-menu>li>a{display:block;padding:13px 16px;font-weight:600;border-inline-start:1px solid transparent}.npt-menu>li>a:hover,.npt-menu>li.current-menu-item>a{background:var(--soft);border-inline-start-color:var(--border)}
.npt-main{padding:28px 0}.npt-home-section{margin-bottom:30px}.npt-home-section .widget-title,.npt-widget .widget-title{font-size:1.25rem;line-height:1.5;margin:0 0 15px;padding-inline-start:11px;border-inline-start:4px solid var(--accent);font-weight:800}.npt-layout{align-items:start}.npt-sidebar{min-width:0}
.npt-footer{margin-top:48px;padding:30px 0 0;border-top:4px solid var(--text);background:var(--soft)}.npt-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}.npt-footer .npt-widget{margin-bottom:22px}.npt-footer-bottom{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--border);margin-top:20px;padding:16px 0;color:var(--muted);font-size:.85rem}
/* Dark mode is opt-in and reuses the same DOM; no extra stylesheet or framework. */
html[data-npt-theme="dark"]{--border:#30343b;--text:#f2f3f5;--muted:#aeb4bc;--surface:#111315;--soft:#1b1e22;--accent:#e33}html[data-npt-theme="dark"] .npt-subheadline,html[data-npt-theme="dark"] .npt-inarticle-popular{background:var(--soft)}html[data-npt-theme="dark"] .npt-side-news-image,html[data-npt-theme="dark"] .npt-related-image{background:#20242a}
@media(max-width:800px){.npt-brandbar{min-height:68px;padding:12px 0}.npt-brand-text strong{font-size:1.2rem}.npt-brand-text small{display:none}.npt-brand-mark{width:36px;height:36px}.npt-footer-grid{grid-template-columns:1fr}.npt-footer-bottom{flex-direction:column}.npt-menu>li>a{padding:11px 13px;font-size:.9rem}}

/* Final homepage visual tuning */
.npt-home-section{margin-bottom:34px}
.npt-home-section>.widget-title{display:flex;align-items:center;gap:10px;font-size:1.18rem;margin-bottom:14px;padding-inline-start:10px;border-inline-start:4px solid var(--accent);border-bottom:1px solid var(--border);padding-bottom:9px}
.npt-home-section>.widget-title:after{content:'';display:block;height:2px;flex:1;background:var(--border);opacity:.55}
.npt-featured-layout{gap:22px;align-items:start}
.npt-featured-main{border-bottom:2px solid var(--text);padding-bottom:14px}
.npt-featured-main .npt-card-image{aspect-ratio:16/9}
.npt-featured-main .npt-card-body h3{font-size:1.65rem;line-height:1.55;margin:10px 0 5px;font-weight:800}
.npt-featured-main .npt-meta{font-size:.82rem}
.npt-featured-side{grid-template-columns:132px minmax(0,1fr);gap:14px;padding:0 0 14px;margin-bottom:14px}
.npt-featured-side .npt-card-image{aspect-ratio:16/10}
.npt-featured-side .npt-card-body h3{font-size:1rem;line-height:1.7;font-weight:700}
.npt-featured-side:last-child{margin-bottom:0}
.npt-horizontal-track{gap:0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:0}
.npt-horizontal-item{padding:14px;border-inline-start:1px solid var(--border);background:var(--surface)}
.npt-horizontal-item:first-child{border-inline-start:0}
.npt-horizontal-item .npt-card-body h3{font-size:.96rem;line-height:1.7;font-weight:700;margin:8px 0 3px}
.npt-news-six{gap:0;border-top:1px solid var(--border);border-inline-start:1px solid var(--border)}
.npt-news-six .npt-post-card{padding:14px;border-inline-end:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface)}
.npt-news-six .npt-card-body h3{font-size:.98rem;font-weight:700}
.npt-editor-grid{gap:0;border-top:1px solid var(--border);border-inline-start:1px solid var(--border)}
.npt-editor-grid .npt-post-card{padding:14px;border-inline-end:1px solid var(--border);border-bottom:1px solid var(--border)}
.npt-analysis{gap:24px}
.npt-analysis-main{border-bottom:2px solid var(--text);padding-bottom:14px}
.npt-analysis-main .npt-card-body h3{font-size:1.4rem;font-weight:800}
.npt-analysis-side{grid-template-columns:105px minmax(0,1fr);padding:12px 0}
.npt-analysis-side:first-of-type{padding-top:0}
.npt-analysis-side .npt-card-image{aspect-ratio:4/3}
.npt-analysis-side .npt-card-body h3{font-size:.94rem;line-height:1.7;font-weight:700;margin:0}
.npt-sidebar .npt-widget{border-top:2px solid var(--text);padding-top:12px}
.npt-sidebar .widget-title{font-size:1.08rem}
.npt-sidebar-news .npt-post-card{padding:12px 0}
.npt-sidebar-news .npt-card-image{aspect-ratio:4/3}
.npt-sidebar-news .npt-card-body h3{font-size:.92rem;line-height:1.65}
.npt-video-wrap{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:14px 0}
.npt-video-card h3{font-weight:700}
.npt-popular-list{counter-reset:npt-pop}
.npt-popular-list li{list-style:none;position:relative;padding-inline-start:34px}
.npt-popular-list li:before{counter-increment:npt-pop;content:counter(npt-pop);position:absolute;inset-inline-start:0;top:7px;width:24px;height:24px;border:1px solid var(--border);display:grid;place-items:center;font-size:.78rem;font-weight:800}
.npt-social-links{gap:6px}
.npt-social{border-radius:0;min-width:38px;height:38px;padding:6px 10px}
@media(max-width:900px){.npt-featured-main .npt-card-body h3{font-size:1.35rem}.npt-featured-side{grid-template-columns:110px minmax(0,1fr)}.npt-horizontal-item{flex-basis:50%}}
@media(max-width:650px){.npt-home-section{margin-bottom:26px}.npt-featured-main .npt-card-body h3{font-size:1.15rem}.npt-featured-side{grid-template-columns:96px minmax(0,1fr);padding-bottom:11px;margin-bottom:11px}.npt-featured-side .npt-card-body h3{font-size:.9rem}.npt-horizontal-item{flex-basis:78%;padding:12px}.npt-news-six,.npt-editor-grid{border-inline-start:0}.npt-news-six .npt-post-card,.npt-editor-grid .npt-post-card{padding:11px}.npt-analysis-side{grid-template-columns:90px minmax(0,1fr)}}


/* Homepage final structural pass: keep the news column dominant and the sidebar quiet. */
.npt-home-layout{grid-template-columns:minmax(0,1fr) 300px;gap:28px}
.npt-home-layout.npt-home-no-sidebar{grid-template-columns:1fr}
.npt-home-layout.npt-home-no-sidebar .npt-home-content{width:100%;max-width:none}
.npt-home-content{min-width:0}
.npt-sidebar{position:relative}
.npt-sidebar>.npt-widget:first-child{margin-top:0}
.npt-sidebar .npt-widget{background:var(--surface)}
.npt-sidebar .npt-widget + .npt-widget{margin-top:28px}
.npt-home-section.npt-home-section-featured{margin-bottom:38px}
.npt-home-section.npt-home-section-featured .widget-title{font-size:1.3rem}
.npt-home-section.npt-home-section-popular .npt-popular-list{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding-block:4px}
.npt-home-section.npt-home-section-social .npt-social-links{padding-top:2px}
@media(min-width:901px){.npt-home-layout .npt-sidebar{position:sticky;top:16px;align-self:start}}
@media(max-width:900px){.npt-home-layout{grid-template-columns:1fr}.npt-home-layout .npt-sidebar{position:static}.npt-sidebar{display:block}.npt-home-section.npt-home-section-featured{margin-bottom:30px}}


/* Four-item horizontal text-only news widget */
.npt-horizontal-four-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--border);}
.npt-horizontal-four-item{min-width:0;padding:10px 18px 8px;border-inline-start:1px solid var(--border);}
.npt-horizontal-four-item:first-child{border-inline-start:0;}
.npt-horizontal-four-item h3{margin:0 0 8px;font-size:.98rem;line-height:1.8;font-weight:800;}
.npt-horizontal-four-item h3 a{color:var(--text);text-decoration:none;}
.npt-horizontal-four-item h3 a:hover{text-decoration:underline;}
.npt-horizontal-four-item .npt-meta{display:block;color:var(--muted);font-size:.78rem;line-height:1.7;}
@media(max-width:800px){.npt-horizontal-four-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.npt-horizontal-four-item:nth-child(3){border-inline-start:0;border-top:1px solid var(--border);}.npt-horizontal-four-item:nth-child(4){border-top:1px solid var(--border);}}
@media(max-width:500px){.npt-horizontal-four-grid{grid-template-columns:1fr;}.npt-horizontal-four-item,.npt-horizontal-four-item:nth-child(3),.npt-horizontal-four-item:nth-child(4){border-inline-start:0;border-top:1px solid var(--border);padding:12px 14px;}.npt-horizontal-four-item:first-child{border-top:0;}}

/* Final requested news UI */
.npt-logo{max-height:58px;width:auto;object-fit:contain}.npt-header-date{color:var(--muted);font-size:.85rem;white-space:nowrap}.npt-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:16px;padding:10px 14px;background:var(--soft);border:1px solid var(--border);font-size:.84rem}.npt-breadcrumb span{color:var(--muted)}
.npt-article-meta-top{display:flex;align-items:center;justify-content:flex-start;gap:15px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding:10px 0;color:var(--muted);font-size:.82rem}.npt-print-button{border:0;background:transparent;color:var(--text);cursor:pointer;font:inherit;padding:0}.npt-print-button:hover{color:var(--accent)}
.npt-featured-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:22px;align-items:stretch}.npt-featured-main{min-width:0;border:0;padding:0}.npt-featured-main-card .npt-card-image{aspect-ratio:16/9}.npt-featured-main-card .npt-card-body h3{font-size:1.65rem;line-height:1.55;font-weight:800;margin:10px 0 6px}.npt-featured-minor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;align-content:start}.npt-featured-side{display:block;min-width:0;border:0;padding:0;margin:0}.npt-featured-side .npt-card-image{aspect-ratio:4/2.5}.npt-featured-side .npt-card-body h3{font-size:.96rem;line-height:1.7;font-weight:800;margin:7px 0 4px}.npt-featured-side .npt-meta{font-size:.75rem}
@media(max-width:800px){.npt-featured-layout{grid-template-columns:1fr}.npt-featured-minor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.npt-featured-main-card .npt-card-body h3{font-size:1.3rem}}@media(max-width:500px){.npt-featured-minor-grid{grid-template-columns:1fr}.npt-header-date{display:none}}
@media print{.npt-site-header,.npt-footer,.npt-sidebar,.npt-breadcrumb,.npt-print-button,.npt-widget-area{display:none!important}.npt-main{padding:0}.npt-container{width:100%}.npt-article-meta-top{border-bottom:1px solid #000;color:#000}.npt-title{font-size:24pt}.entry-content{font-size:12pt;line-height:2}}

/* Header / footer final lightweight presentation */
.npt-brand-strip{background:var(--accent);color:#fff;border-bottom:1px solid rgba(0,0,0,.12)}
.npt-brand-strip-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.npt-brand-link{display:flex;align-items:center;min-height:58px;color:#fff}
.npt-logo{max-height:58px;width:auto;display:block;object-fit:contain;filter:none}
.npt-brand-text-only{font-size:1.65rem;font-weight:900;letter-spacing:-.03em}
.npt-brand-strip-meta{display:flex;align-items:center;gap:16px;font-size:.82rem;white-space:nowrap}
.npt-brand-strip-meta .npt-theme-toggle{border:1px solid rgba(255,255,255,.45);background:transparent;color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;font:inherit}
.npt-site-header .npt-nav{border:0;border-bottom:1px solid var(--border);background:var(--surface)}
.npt-site-header .npt-nav-row{min-height:48px}
.npt-site-header .npt-menu>li>a{padding:12px 15px;font-size:.9rem;font-weight:600;border-inline-start:1px solid var(--border);border-bottom:2px solid transparent}
.npt-site-header .npt-menu>li:first-child>a{border-inline-start:0}
.npt-site-header .npt-menu>li>a:hover,.npt-site-header .npt-menu>li.current-menu-item>a{background:var(--soft);border-bottom-color:var(--accent)}
.npt-footer{margin-top:46px;padding:0;background:#35373a;color:#f3f4f6;border-top:0}
.npt-footer-links{border-top:1px solid rgba(255,255,255,.28);border-bottom:1px solid rgba(255,255,255,.28);padding:0}
.npt-footer-links .npt-widget{margin:0;padding:0}
.npt-footer-links .widget-title{display:none}
.npt-footer-links .menu,.npt-footer-links ul{display:flex;flex-wrap:wrap;gap:0;margin:0;padding:0;list-style:none}
.npt-footer-links li{margin:0}
.npt-footer-links li a{display:block;padding:13px 15px;color:#f3f4f6;font-size:.83rem;border-inline-start:1px solid rgba(255,255,255,.14)}
.npt-footer-links li:first-child a{border-inline-start:0}
.npt-footer-links li a:hover{text-decoration:underline}
.npt-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding:24px 0 18px}
.npt-footer .widget-title{color:#fff;border-inline-start-color:var(--accent);font-size:1rem}
.npt-footer a{color:#eee}
.npt-footer .npt-widget,.npt-footer .widget{margin-bottom:12px}
.npt-footer-brand-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid rgba(255,255,255,.22);color:#d6d7d9;font-size:.8rem}
.npt-footer-site-name{font-weight:800;color:#fff}
.npt-footer-copy{color:#c4c6c9}
.npt-footer-bottom{padding:12px 0;color:#aaa;border-top:1px solid rgba(255,255,255,.14)}
html[data-npt-theme="dark"] .npt-footer{background:#202224}
@media(max-width:700px){.npt-brand-strip-inner{min-height:66px}.npt-brand-text-only{font-size:1.25rem}.npt-brand-strip-meta>span{display:none}.npt-site-header .npt-menu>li>a{padding:11px 12px;font-size:.84rem}.npt-footer-grid{grid-template-columns:1fr;padding:20px 0 8px}.npt-footer-brand-row{flex-direction:column;align-items:flex-start;gap:7px}.npt-footer-links li a{padding:11px 10px;font-size:.78rem}}


/* Final requested small-widget image size: 217x123. */
.npt-card-image{aspect-ratio:217/123;overflow:hidden;display:block;background:#eee}
.npt-card-image img{width:100%;height:100%;object-fit:cover;display:block}
.npt-featured-main-card .npt-card-image{aspect-ratio:16/9}
.npt-featured-side .npt-card-image{aspect-ratio:217/123}
.npt-analysis-side .npt-card-image{aspect-ratio:217/123}
.npt-sidebar-news .npt-card-image{aspect-ratio:217/123}
.npt-video-card img{aspect-ratio:217/123;object-fit:cover;width:100%;height:auto}

/* Popular-news layout matching the supplied reference: 10 items, two columns, Persian red numerals. */
.npt-home-section-popular .npt-popular-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:44px;row-gap:0;counter-reset:npt-pop;list-style:none;margin:0;padding:0;border-top:0;border-bottom:0}
.npt-home-section-popular .npt-popular-list li{position:relative;min-width:0;padding:12px 42px 12px 0;border-bottom:0;line-height:1.9;list-style:none}
.npt-home-section-popular .npt-popular-list li:before{counter-increment:npt-pop;content:counter(npt-pop);position:absolute;inset-inline-start:auto;inset-inline-end:0;top:8px;width:auto;height:auto;border:0;display:block;color:#c40000;font-size:1.75rem;line-height:1;font-weight:400;font-family:inherit}
.npt-home-section-popular .npt-popular-list a{display:block;color:var(--text);text-decoration:none;font-size:1rem;font-weight:800}
.npt-home-section-popular .npt-popular-list a:hover{text-decoration:underline}
@media(max-width:700px){.npt-home-section-popular .npt-popular-list{grid-template-columns:1fr}.npt-home-section-popular .npt-popular-list li{padding-inline-end:40px}}

.npt-home-section-popular .npt-popular-list li:before{content:attr(data-rank);}

/* Popular news: fixed two-column newspaper layout. */
.npt-home-section-popular .npt-popular-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:44px;direction:rtl}
.npt-home-section-popular .npt-popular-column{margin:0;padding:0;list-style:none}
.npt-home-section-popular .npt-popular-column li{position:relative;min-width:0;padding:12px 42px 12px 0;border-bottom:0;line-height:1.9;list-style:none}
.npt-home-section-popular .npt-popular-column li:before{content:attr(data-rank);position:absolute;inset-inline-end:0;inset-inline-start:auto;top:8px;width:auto;height:auto;border:0;display:block;color:#c40000;font-size:1.75rem;line-height:1;font-weight:400;font-family:inherit}
.npt-home-section-popular .npt-popular-column a{display:block;color:var(--text);text-decoration:none;font-size:1rem;font-weight:800}
@media(max-width:700px){.npt-home-section-popular .npt-popular-columns{grid-template-columns:1fr}.npt-home-section-popular .npt-popular-column li{padding-inline-end:40px}}

/* Final popular-news layout: newspaper-style 10-item, two-column ranking. */
.npt-home-section-popular .npt-popular-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-flow:column;
  grid-template-rows:repeat(5,auto);
  column-gap:56px;
  direction:rtl;
  margin:0;
  padding:0;
  list-style:none;
}
.npt-home-section-popular .npt-popular-columns li{
  position:relative;
  min-width:0;
  min-height:58px;
  padding:8px 48px 8px 0;
  list-style:none;
}
.npt-home-section-popular .npt-popular-columns li:before{
  content:attr(data-rank);
  position:absolute;
  inset-inline-end:0;
  inset-inline-start:auto;
  top:5px;
  color:#c40000;
  font-size:2rem;
  line-height:1;
  font-weight:400;
  font-family:inherit;
}
.npt-home-section-popular .npt-popular-columns a{
  display:block;
  color:var(--text);
  text-decoration:none;
  font-size:1rem;
  line-height:1.9;
  font-weight:800;
}
.npt-home-section-popular .npt-popular-columns li:nth-child(3) a,
.npt-home-section-popular .npt-popular-columns li:nth-child(6) a,
.npt-home-section-popular .npt-popular-columns li:nth-child(9) a{color:var(--muted)}
@media(max-width:700px){
  .npt-home-section-popular .npt-popular-columns{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row;column-gap:0}
}

/* New reference widgets - all small widget media use the same 217x123 ratio. */
.npt-small-widget-image,.npt-more-read-card .npt-small-widget-image,.npt-special-blog-item .npt-small-widget-image{display:block;width:217px;min-width:217px;height:123px;overflow:hidden;background:#eee}
.npt-small-widget-image img{width:100%;height:100%;object-fit:cover;display:block}
.npt-inarticle-popular-widget{display:grid;gap:10px}
.npt-inarticle-popular-item{display:flex;direction:rtl;gap:12px;align-items:center;border-bottom:1px solid var(--border);padding:8px 0}
.npt-inarticle-popular-item:last-child{border-bottom:0}
.npt-inarticle-popular-copy{min-width:0;flex:1}.npt-inarticle-popular-copy h3{font-size:.9rem;line-height:1.75;margin:0 0 3px;font-weight:800}.npt-inarticle-popular-copy a{text-decoration:none;color:var(--text)}
.npt-more-read-widget{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.npt-more-read-card{min-width:0}.npt-more-read-card .npt-small-widget-image{width:100%;min-width:0}.npt-more-read-card h3{font-size:.9rem;line-height:1.7;margin:7px 0 3px}.npt-more-read-card a{text-decoration:none;color:var(--text)}
.npt-subheadline-widget{position:relative;border-radius:10px;overflow:hidden;background:#222}.npt-subheadline-image{display:block;width:100%;aspect-ratio:217/123}.npt-subheadline-image img{width:100%;height:100%;object-fit:cover;display:block}.npt-subheadline-overlay{position:absolute;inset:auto 0 0;padding:22px 14px 12px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff}.npt-subheadline-overlay h3{font-size:1rem;line-height:1.7;margin:0 0 3px}.npt-subheadline-overlay a{color:#fff;text-decoration:none}.npt-subheadline-overlay .npt-meta{color:#eee}
.npt-special-blog-widget{display:grid;gap:12px}.npt-special-blog-item{display:flex;direction:rtl;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}.npt-special-blog-item:last-child{border-bottom:0}.npt-special-blog-item>div{min-width:0;flex:1}.npt-special-blog-item h3{font-size:.95rem;line-height:1.7;margin:0 0 4px}.npt-special-blog-item h3 a{color:var(--text);text-decoration:none}.npt-special-blog-item p{font-size:.8rem;line-height:1.8;color:var(--muted);margin:0 0 4px}
.npt-small-slider{position:relative}.npt-small-slide{display:none;position:relative;border-radius:10px;overflow:hidden}.npt-small-slide.is-active{display:block}.npt-small-slider-image{display:block;aspect-ratio:217/123}.npt-small-slider-image img{width:100%;height:100%;object-fit:cover;display:block}.npt-small-slider-caption{position:absolute;inset:auto 0 0;padding:28px 14px 12px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff}.npt-small-slider-caption h3{margin:0 0 2px;font-size:1rem;line-height:1.7}.npt-small-slider-caption a{color:#fff;text-decoration:none}.npt-small-slider-caption .npt-meta{color:#eee}.npt-small-slider-dots{position:absolute;top:8px;inset-inline-start:8px;display:flex;gap:4px;z-index:2}.npt-small-slider-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.65);font-size:0}.npt-small-slider-dots span.is-active{background:#fff}
.npt-top-horizontal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.npt-top-horizontal-item{display:flex;direction:rtl;align-items:center;gap:10px;min-width:0;border-top:1px solid var(--border);padding-top:8px}.npt-top-horizontal-image{display:block;width:72px;min-width:72px;height:41px;overflow:hidden}.npt-top-horizontal-image img{width:100%;height:100%;object-fit:cover;display:block}.npt-top-horizontal-item h3{font-size:.82rem;line-height:1.7;margin:0}.npt-top-horizontal-item h3 a{color:var(--text);text-decoration:none}
@media(max-width:900px){.npt-more-read-widget{grid-template-columns:repeat(2,minmax(0,1fr))}.npt-top-horizontal{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.npt-small-widget-image{width:140px;min-width:140px;height:79px}.npt-more-read-widget{grid-template-columns:1fr 1fr;gap:12px}.npt-more-read-card .npt-small-widget-image{width:100%;min-width:0;height:auto;aspect-ratio:217/123}.npt-special-blog-item .npt-small-widget-image{width:140px;min-width:140px;height:79px}.npt-top-horizontal{grid-template-columns:1fr}.npt-top-horizontal-item{padding:9px 0}.npt-inarticle-popular-item .npt-small-widget-image{width:140px;min-width:140px;height:79px}}
@media(max-width:400px){.npt-more-read-widget{grid-template-columns:1fr}.npt-more-read-card .npt-small-widget-image{aspect-ratio:217/123}}

/* In-article popular: reference screenshot layout. Keep image source size at 217x123,
   but display the thumbnail smaller inside each row. This widget is injected inside article content. */
.npt-inarticle-popular-box{
  margin:32px 0;
  padding:0;
  background:#f8f8f8;
  border:0;
}
.npt-inarticle-popular-title{
  margin:0 0 10px;
  padding:0 4px 8px;
  font-size:1.15rem;
  line-height:1.6;
  font-weight:800;
  text-align:right;
  border-bottom:0;
}
.npt-inarticle-popular-widget{
  display:grid;
  gap:7px;
}
.npt-inarticle-popular-item{
  display:flex;
  flex-direction:row;
  direction:rtl;
  align-items:center;
  min-height:70px;
  gap:12px;
  padding:7px 10px;
  background:#fff;
  border:0;
  border-bottom:1px solid #eee;
}
.npt-inarticle-popular-image{
  order:0;
  flex:0 0 108px;
  width:108px;
  height:61px;
  overflow:hidden;
  display:block;
  background:#eee;
}
.npt-inarticle-popular-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.npt-inarticle-popular-copy{
  min-width:0;
  flex:1;
}
.npt-inarticle-popular-copy h3{
  margin:0;
  font-size:.9rem;
  line-height:1.8;
  font-weight:800;
}
.npt-inarticle-popular-copy h3 a{
  color:var(--text);
  text-decoration:none;
}
.npt-inarticle-popular-copy h3 a:hover{text-decoration:underline}
@media(max-width:700px){
  .npt-inarticle-popular-box{margin:26px 0}
  .npt-inarticle-popular-item{min-height:66px;padding:6px 8px}
  .npt-inarticle-popular-image{flex-basis:100px;width:100px;height:57px}
  .npt-inarticle-popular-copy h3{font-size:.86rem}
}
@media(max-width:420px){
  .npt-inarticle-popular-image{flex-basis:92px;width:92px;height:52px}
  .npt-inarticle-popular-item{gap:9px}
  .npt-inarticle-popular-copy h3{font-size:.82rem;line-height:1.7}
}

/* Final top-horizontal reference layout: 3 equal cards, fixed small-media size 217x123.
   Desktop: cards side-by-side; mobile: cards stack vertically while preserving image/text row. */
.npt-top-horizontal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--border);background:var(--surface);overflow:hidden}
.npt-top-horizontal-item{display:grid;grid-template-columns:217px minmax(0,1fr);direction:rtl;align-items:center;gap:14px;min-width:0;padding:14px 16px;border-inline-start:1px solid var(--border);background:var(--surface)}
.npt-top-horizontal-item:first-child{border-inline-start:0}
.npt-top-horizontal-image{display:block;width:217px;min-width:217px;height:123px;overflow:hidden;background:#eee}
.npt-top-horizontal-image img{display:block;width:100%;height:100%;object-fit:cover}
.npt-top-horizontal-item h3{min-width:0;margin:0;font-size:1rem;line-height:1.9;font-weight:800}
.npt-top-horizontal-item h3 a{color:var(--text);text-decoration:none}
.npt-top-horizontal-item h3 a:hover{text-decoration:underline}
@media(max-width:1100px){.npt-top-horizontal-item{grid-template-columns:160px minmax(0,1fr);gap:12px;padding:12px}.npt-top-horizontal-image{width:160px;min-width:160px;height:91px}.npt-top-horizontal-item h3{font-size:.92rem}}
@media(max-width:800px){.npt-top-horizontal{grid-template-columns:1fr 1fr}.npt-top-horizontal-item:nth-child(odd){border-inline-start:0}.npt-top-horizontal-item:nth-child(n+3){border-top:1px solid var(--border)}}
@media(max-width:600px){.npt-top-horizontal{grid-template-columns:1fr}.npt-top-horizontal-item,.npt-top-horizontal-item:nth-child(n+3){grid-template-columns:140px minmax(0,1fr);border-inline-start:0;border-top:1px solid var(--border);padding:12px}.npt-top-horizontal-item:first-child{border-top:0}.npt-top-horizontal-image{width:140px;min-width:140px;height:79px}.npt-top-horizontal-item h3{font-size:.9rem;line-height:1.8}}


/* Final mobile/tablet pass: real responsive layout (requires viewport meta in header). */
@media (max-width: 800px){
  :root{--gap:16px}
  .npt-container{width:calc(100% - 24px);max-width:none}
  .npt-main{padding:16px 0}
  .npt-layout,.npt-home-layout{display:block;grid-template-columns:none}
  .npt-home-content{width:100%;min-width:0}
  .npt-sidebar{width:100%;margin-top:20px}
  .npt-brand-strip-inner{min-height:62px;padding:10px 0;gap:10px}
  .npt-brand{font-size:1.2rem;min-width:0}
  .npt-brand-link{display:block;max-width:70vw}
  .npt-logo{max-height:48px;width:auto}
  .npt-brand-strip-meta{font-size:.72rem;gap:8px}
  .npt-brand-strip-meta>span{display:none}
  .npt-theme-toggle{flex:0 0 32px}
  .npt-nav{margin-inline:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .npt-nav-row{gap:0}
  .npt-nav-row ul{min-width:max-content;flex-wrap:nowrap}
  .npt-nav-row a{padding:10px 11px;font-size:.86rem}
  .npt-featured-layout{display:block}
  .npt-featured-main{width:100%;margin-bottom:18px}
  .npt-featured-main-card .npt-card-image{aspect-ratio:16/9}
  .npt-featured-main-card .npt-card-body h3{font-size:1.15rem;line-height:1.7}
  .npt-featured-minor-grid{grid-template-columns:1fr 1fr;gap:12px}
  .npt-featured-side .npt-card-body h3{font-size:.88rem;line-height:1.7}
  .npt-analysis{display:block}
  .npt-analysis-main{margin-bottom:16px}
  .npt-analysis-side{grid-template-columns:120px minmax(0,1fr);gap:10px}
  .npt-news-six,.npt-editor-grid{grid-template-columns:1fr 1fr}
  .npt-horizontal-four-grid{grid-template-columns:1fr 1fr}
  .npt-horizontal-four-item{padding:9px 10px}
  .npt-horizontal-four-item h3{font-size:.9rem;line-height:1.7}
  .npt-footer-grid{grid-template-columns:1fr 1fr}
  .npt-footer-brand-row{flex-direction:column;align-items:flex-start}
  .npt-footer-links .menu,.npt-footer-links ul{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .npt-footer-links li{flex:0 0 auto}
  .npt-footer-links li a{padding:11px 12px;font-size:.78rem}
}

@media (max-width:600px){
  .npt-container{width:calc(100% - 16px)}
  .npt-top,.npt-header,.npt-nav,.npt-footer{padding-top:8px;padding-bottom:8px}
  .npt-header-row{flex-wrap:wrap}
  .npt-header-ad,.npt-nav-before,.npt-nav-after{max-width:100%;overflow:hidden}
  .npt-featured-minor-grid{grid-template-columns:1fr 1fr}
  .npt-featured-side .npt-card-image{aspect-ratio:217/123}
  .npt-card-body h3{font-size:.92rem;line-height:1.75}
  .npt-news-six,.npt-editor-grid{grid-template-columns:1fr}
  .npt-horizontal-four-grid{grid-template-columns:1fr}
  .npt-horizontal-four-item{border-inline-start:0;border-top:1px solid var(--border)}
  .npt-horizontal-four-item:first-child{border-top:0}
  .npt-footer-grid{grid-template-columns:1fr}
  .npt-footer-bottom{flex-direction:column;gap:6px}
  .npt-archive-card{grid-template-columns:110px minmax(0,1fr);gap:10px}
  .npt-archive-image{aspect-ratio:217/123}
  .npt-archive-body h2{font-size:.96rem;line-height:1.7}
  .npt-archive-body p{display:none}
  .npt-popular-list,.npt-home-section-popular .npt-popular-columns{grid-template-columns:1fr!important}
  .npt-home-section-popular .npt-popular-columns{grid-auto-flow:row;grid-template-rows:none}
  .npt-home-section-popular .npt-popular-columns li{min-height:0;padding:8px 40px 8px 0}
  .npt-home-section-popular .npt-popular-columns li:before{font-size:1.65rem}
  .npt-home-section-popular .npt-popular-columns a{font-size:.9rem;line-height:1.8}
  .npt-small-widget-image,.npt-special-blog-item .npt-small-widget-image{width:120px;min-width:120px;height:68px}
  .npt-inarticle-popular-image{flex-basis:100px;width:100px;height:57px}
  .npt-more-read-widget{grid-template-columns:1fr 1fr}
  .npt-top-horizontal{grid-template-columns:1fr}
  .npt-top-horizontal-item,.npt-top-horizontal-item:nth-child(n+3){grid-template-columns:120px minmax(0,1fr);padding:10px}
  .npt-top-horizontal-image{width:120px;min-width:120px;height:68px}
  .npt-top-horizontal-item h3{font-size:.86rem;line-height:1.75}
  .npt-video-wrap{grid-template-columns:30px minmax(0,1fr) 30px}
  .npt-video-card{flex-basis:100%}
}

@media (max-width:380px){
  .npt-container{width:calc(100% - 12px)}
  .npt-featured-minor-grid{grid-template-columns:1fr}
  .npt-brand{font-size:1.05rem}
  .npt-nav-row a{padding-inline:9px;font-size:.82rem}
  .npt-top-horizontal-item,.npt-top-horizontal-item:nth-child(n+3){grid-template-columns:100px minmax(0,1fr);gap:9px}
  .npt-top-horizontal-image{width:100px;min-width:100px;height:57px}
  .npt-top-horizontal-item h3{font-size:.82rem}
  .npt-more-read-widget{grid-template-columns:1fr}
  .npt-inarticle-popular-image{flex-basis:92px;width:92px;height:52px}
}

/* MTB final visual pass: header/footer and admin-safe responsive polish. */
.npt-brand-strip{background:#fff;border-top:3px solid var(--accent);box-shadow:0 1px 0 rgba(0,0,0,.04)}
.npt-brand-strip-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.npt-brand-link{display:inline-flex;align-items:center}.npt-logo{max-height:62px;width:auto}.npt-brand-text-only{font-size:1.65rem;font-weight:900;color:var(--accent)}
.npt-brand-strip-meta{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.84rem}
.npt-nav{background:#fff}.npt-nav-row{justify-content:flex-start}.npt-nav-row a{border-bottom:2px solid transparent}.npt-nav-row .current-menu-item>a{color:var(--accent);border-bottom-color:var(--accent);background:transparent}
.npt-footer{background:#2f3135;color:#fff;border-top:0;margin-top:42px;padding:28px 0}.npt-footer a{color:#fff}.npt-footer .widget-title{color:#fff;border-inline-start-color:var(--accent)}.npt-footer .npt-meta{color:#c7c9cc}.npt-footer-links{padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.22)}.npt-footer-brand-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:20px;color:#e8e8e8}.npt-footer-site-name{font-weight:800}.npt-footer-copy{color:#c7c9cc;font-size:.85rem}
.npt-article-meta-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;color:var(--muted);font-size:.82rem;padding:8px 0;border-bottom:1px solid var(--border);margin-bottom:18px}.npt-article-meta-top span{display:inline-flex;align-items:center;gap:5px}.npt-print-button{border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer;padding:2px 4px}.npt-print-button:hover{text-decoration:underline}.npt-title{font-size:clamp(1.55rem,3vw,2.45rem);line-height:1.55;font-weight:900;color:var(--text)}
.npt-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 16px;padding:9px 12px;background:#fff;border:1px solid var(--border);border-radius:4px;color:var(--muted);font-size:.84rem}.npt-breadcrumb a:hover{text-decoration:underline}.npt-breadcrumb span{color:var(--accent)}
.npt-archive-header .npt-title{font-size:1.65rem}.npt-pagination{margin-top:20px}
.npt-admin .npt-tabs{margin-top:18px}.npt-admin .npt-tab-panel{display:none;margin-top:16px}.npt-admin .npt-admin-card{background:#fff;border:1px solid #dcdcde;padding:22px;margin-top:16px}.npt-admin .npt-admin-card h2{margin-top:0}.npt-admin .npt-section-tabs{margin-top:16px}.npt-admin .npt-section-panel{display:none;margin-top:16px}.npt-admin .npt-admin-inner-card{background:#f8f9fa;border:1px solid #dcdcde;padding:18px}.npt-admin .npt-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.npt-admin .npt-admin-grid p{margin:0}.npt-admin .npt-admin-grid select,.npt-admin .npt-admin-grid input[type=text]{width:100%;max-width:100%}.npt-admin .npt-media-preview{display:block;margin-top:8px}.npt-widget-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.npt-widget-catalog>div{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e2e4e7;background:#fafafa}.npt-widget-catalog code{direction:ltr;font-size:11px;color:#666}.npt-reset-panel{margin-top:14px;padding:12px;background:#fff4f4;border:1px solid #f0c4c4}
@media(max-width:900px){.npt-admin .npt-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.npt-widget-catalog{grid-template-columns:1fr}}
@media(max-width:600px){.npt-brand-strip-inner{min-height:58px}.npt-logo{max-height:46px}.npt-brand-text-only{font-size:1.25rem}.npt-article-meta-top{gap:7px 10px;font-size:.75rem}.npt-title{font-size:1.45rem}.npt-admin .npt-admin-grid{grid-template-columns:1fr}.npt-admin .nav-tab{font-size:12px;padding:7px 8px}.npt-admin .npt-tabs,.npt-admin .npt-section-tabs{display:flex;overflow-x:auto;white-space:nowrap}.npt-footer{padding:22px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* In-article popular: centered newspaper-style block, matching the supplied reference. */
.npt-inarticle-popular-box{width:min(100%,720px);margin:34px auto;padding:14px 16px;background:#fff;border:1px solid var(--border)}
.npt-inarticle-popular-box .npt-inarticle-popular-title{font-size:1.25rem;border-bottom:2px solid var(--accent);padding-bottom:8px;margin-bottom:10px;text-align:right}
.npt-inarticle-popular-box .npt-inarticle-popular-item{min-height:74px;padding:8px 0;background:transparent}
.npt-inarticle-popular-box .npt-inarticle-popular-image{flex-basis:108px;width:108px;height:61px}
.npt-inarticle-popular-box .npt-inarticle-popular-copy h3{font-size:.92rem;line-height:1.85}
html[data-npt-theme="dark"] .npt-inarticle-popular-box{background:#171a1e}
@media(max-width:600px){.npt-inarticle-popular-box{width:100%;padding:12px;margin:26px auto}.npt-inarticle-popular-box .npt-inarticle-popular-image{flex-basis:100px;width:100px;height:57px}}


/* MTB final polish: mobile navigation, article/sidebar flow, accessibility and stable media. */
.npt-mobile-menu-toggle{display:none;border:1px solid var(--border);background:#fff;color:var(--text);padding:9px 13px;border-radius:4px;font:inherit;font-weight:700;cursor:pointer;margin:8px 0}
.npt-mobile-menu-toggle:focus-visible,.npt-theme-toggle:focus-visible,.npt-print-button:focus-visible,a:focus-visible{outline:3px solid rgba(180,0,0,.35);outline-offset:2px}
.npt-nav-row{overflow-x:auto;scrollbar-width:thin}
.npt-nav-row ul{min-width:max-content}
.npt-home-no-sidebar .npt-home-content{width:100%;min-width:0}
.npt-home-no-sidebar .npt-layout{grid-template-columns:minmax(0,1fr)}
.npt-404{text-align:center;padding:80px 16px}.npt-404-code{font-size:clamp(4rem,12vw,8rem);font-weight:900;line-height:1;color:var(--accent);margin-bottom:10px}.npt-404 h1{font-size:1.8rem;margin:0 0 10px}.npt-404 p{color:var(--muted);margin:0 0 24px}.npt-404-home{display:inline-block;padding:10px 18px;background:var(--accent);color:#fff;border-radius:4px;font-weight:700}.npt-404-home:hover{color:#fff;opacity:.92}
.npt-footer .npt-widget{margin-bottom:14px}.npt-footer .widget-title{font-size:1rem}.npt-footer a{transition:none}
.npt-small-widget-image img,.npt-top-horizontal-image img,.npt-inarticle-popular-image img,.npt-related-image img{aspect-ratio:217/123;object-fit:cover}
.npt-small-widget-image img{width:100%;height:100%}
@media(max-width:700px){
 .npt-mobile-menu-toggle{display:block;width:100%;text-align:right}
 .npt-nav{display:none;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
 .npt-nav.is-open{display:block}
 .npt-nav-row{display:block;overflow:visible}
 .npt-nav-row ul{display:flex;flex-direction:column;align-items:stretch;width:100%}
 .npt-nav-row li{border-bottom:1px solid var(--border)}
 .npt-nav-row li:last-child{border-bottom:0}
 .npt-nav-row a{padding:10px 12px}
 .npt-brand-strip-inner{gap:10px}
 .npt-brand-strip-meta{font-size:.75rem}
 .npt-header-date{display:none}
 .npt-home-layout{display:block}
 .npt-home-content{width:100%}
 .npt-sidebar{margin-top:24px}
}
@media print{
 .npt-site-header,.npt-footer,.npt-sidebar,.npt-breadcrumb,.npt-print-button,.npt-widget-area,.npt-mobile-menu-toggle{display:none!important}
 .npt-main,.npt-container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 .npt-article-meta-top{border:0}
}

/* final widget refinements */
.npt-featured-excerpt{font-size:.95rem;line-height:1.9;color:#555;margin-top:8px}
.npt-top-horizontal-image img{max-height:110px;object-fit:cover}
.npt-popular-columns li{position:relative;padding-right:34px;direction:rtl}
.npt-popular-columns li:before{content:attr(data-rank);position:absolute;right:0;top:0;color:#d00;font-weight:800}
.npt-comments{direction:rtl}
.npt-comments h2{border-bottom:1px solid #ddd;padding-bottom:10px}
.npt-comment-rules{margin-top:20px}

/* Final fixes: interactive small slider dots, unified home popular, comments */
.npt-small-slider-dots{display:flex;align-items:center;gap:6px;position:absolute;top:10px;inset-inline-start:10px;z-index:5}
.npt-small-slider-dots button{appearance:none;border:0;width:11px;height:11px;padding:0;border-radius:50%;background:rgba(255,255,255,.72);cursor:pointer;font-size:0;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.npt-small-slider-dots button:hover,.npt-small-slider-dots button:focus-visible{background:#fff;outline:2px solid var(--accent);outline-offset:2px}
.npt-small-slider-dots button.is-active{background:var(--accent);transform:scale(1.15)}
.npt-home-popular-item{direction:rtl;text-align:right}
.npt-home-popular-item:before{right:0;left:auto}
.npt-comments{background:var(--surface);border:1px solid var(--border);padding:18px;margin-top:28px}
.npt-comments-heading{display:flex;align-items:center;gap:8px;border-bottom:2px solid var(--accent);padding-bottom:10px;margin-bottom:18px}
.npt-comments-heading h2{border:0!important;padding:0!important;margin:0;font-size:1.2rem}
.npt-comments-icon{font-size:1.15rem}
.npt-comments .comment-form p{margin:0 0 14px}
.npt-comments .comment-form label{display:block;font-weight:700;margin-bottom:6px}
.npt-comments .comment-form input[type=text],.npt-comments .comment-form input[type=email],.npt-comments .comment-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--border);background:transparent;color:var(--text);border-radius:4px;padding:11px 12px;font:inherit}
.npt-comments .comment-form textarea{min-height:150px;resize:vertical}
.npt-comments .comment-form input:focus,.npt-comments .comment-form textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.npt-comment-submit{background:var(--accent)!important;color:#fff!important;border:0!important;border-radius:4px;padding:10px 26px;cursor:pointer;font:inherit;font-weight:700}
.npt-comment-submit:hover,.npt-comment-submit:focus-visible{opacity:.9}
.npt-comment-rules{border-top:1px solid var(--border);padding-top:12px;margin-top:18px}
.npt-comment-rules summary{cursor:pointer;font-weight:700}
.npt-comment-rules p{color:var(--muted);line-height:1.9;margin:10px 0 0}
@media(max-width:600px){.npt-comments{padding:14px}.npt-comments-heading h2{font-size:1.05rem}}

/* Final: move ranking numbers to the right only for the homepage-style popular block.
   The in-article popular block is intentionally untouched. */
.npt-home-section-popular .npt-popular-columns > li,
.npt-home-section-popular .npt-popular-column > li {
  position:relative;
  direction:rtl;
  text-align:right;
  padding-right:42px !important;
  padding-left:0 !important;
}
.npt-home-section-popular .npt-popular-columns > li::before,
.npt-home-section-popular .npt-popular-column > li::before {
  content:attr(data-rank) !important;
  position:absolute !important;
  right:0 !important;
  left:auto !important;
  inset-inline-end:0 !important;
  inset-inline-start:auto !important;
  top:8px !important;
  margin:0 !important;
  width:auto !important;
  height:auto !important;
  border:0 !important;
  display:block !important;
  color:#c40000 !important;
  font-size:1.75rem !important;
  line-height:1 !important;
  font-weight:400 !important;
  text-align:right !important;
}
@media(max-width:700px){
  .npt-home-section-popular .npt-popular-columns > li,
  .npt-home-section-popular .npt-popular-column > li {padding-right:40px !important;padding-left:0 !important}
  .npt-home-section-popular .npt-popular-columns > li::before,
  .npt-home-section-popular .npt-popular-column > li::before {right:0 !important;left:auto !important;font-size:1.65rem !important}
}


/* Definitive popular ranking layout: explicit rank element on the RIGHT of each title.
   Applies only to the homepage-style popular block; the in-article popular block is untouched. */
.npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item {
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  gap:14px !important;
  direction:rtl !important;
  text-align:right !important;
  padding:10px 0 !important;
  min-width:0;
}
.npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item .npt-popular-rank {
  flex:0 0 28px !important;
  width:28px !important;
  min-width:28px !important;
  display:block !important;
  color:#c40000 !important;
  font-size:1.75rem !important;
  line-height:1.15 !important;
  font-weight:400 !important;
  text-align:right !important;
  order:0 !important;
}
.npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item > a {
  flex:1 1 auto !important;
  min-width:0 !important;
  display:block !important;
  text-align:right !important;
  order:1 !important;
}
.npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item::before {
  content:none !important;
  display:none !important;
}
@media(max-width:700px){
  .npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item {padding:8px 0 !important;gap:10px !important}
  .npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item .npt-popular-rank {font-size:1.65rem !important;flex-basis:26px !important;width:26px !important;min-width:26px !important}
}

/* Typography restoration for homepage-style popular ranking.
   Keep the previous MTB font/weight/size; only the rank position changes. */
.npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item .npt-popular-rank {
  font-family: inherit !important;
  font-size: 1.75rem !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #c40000 !important;
}
.npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item > a {
  font-family: inherit !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
  font-weight: 800 !important;
  color: var(--text) !important;
}
@media(max-width:700px){
  .npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item .npt-popular-rank {
    font-size: 1.65rem !important;
  }
  .npt-home-section-popular .npt-popular-columns > li.npt-home-popular-item > a {
    font-size: .9rem !important;
    line-height: 1.8 !important;
  }
}

/* Definitive internal-page mobile layout: single, archive, category, tag, author, search and static pages. */
html,body{max-width:100%;overflow-x:clip}
.npt-main,.npt-container,.npt-layout,.npt-layout>article,.npt-layout>.npt-sidebar{min-width:0}
.entry-content{max-width:100%;font-size:1.02rem;line-height:2.05;overflow-wrap:anywhere;word-break:normal}
.entry-content img,.entry-content video,.entry-content iframe,.entry-content embed,.entry-content object{max-width:100%;height:auto}
.entry-content iframe,.entry-content video{display:block;width:100%}
.entry-content pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;word-break:break-word}
.entry-content table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;-webkit-overflow-scrolling:touch}
.entry-content blockquote{margin-inline:0;padding:10px 14px;border-inline-start:4px solid var(--accent);background:var(--soft);overflow-wrap:anywhere}
.npt-featured{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.npt-article-header,.npt-article-header>*{max-width:100%}
.npt-archive-list,.npt-archive-card,.npt-archive-body,.npt-archive-image{min-width:0}
.npt-pagination{overflow-x:auto;max-width:100%}
.npt-pagination .page-numbers{display:inline-block;margin:2px 3px}
.npt-comments,.npt-comments form,.npt-comments .comment-form{max-width:100%;min-width:0}

@media (max-width: 700px){
  .npt-main{padding:14px 0 24px}
  .npt-container{width:calc(100% - 20px);max-width:none}
  .npt-layout{display:block!important}
  .npt-layout>article{width:100%;max-width:100%}
  .npt-sidebar{width:100%;max-width:100%;margin-top:24px}

  /* Header/navigation */
  .npt-brand-strip-inner{min-height:58px;padding:8px 0}
  .npt-brand{min-width:0;max-width:72%}
  .npt-brand-link{max-width:100%;overflow:hidden}
  .npt-logo{max-width:100%;max-height:44px}
  .npt-brand-text-only{font-size:1.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .npt-mobile-menu-toggle{display:block;width:100%;margin:8px 0;padding:9px 12px}
  .npt-nav{display:none;width:100%;overflow:hidden}
  .npt-nav.is-open{display:block}
  .npt-nav-row{display:block;width:100%;overflow:visible}
  .npt-nav-row ul{display:flex!important;flex-direction:column!important;width:100%;min-width:0!important}
  .npt-nav-row li{width:100%;border-bottom:1px solid var(--border)}
  .npt-nav-row li:last-child{border-bottom:0}
  .npt-nav-row a{display:block;width:100%;padding:10px 12px;font-size:.9rem;white-space:normal}

  /* Article */
  .npt-breadcrumb{font-size:.76rem;line-height:1.8;padding:7px 9px;margin-bottom:12px}
  .npt-article-meta-top{justify-content:flex-start;gap:6px 9px;font-size:.72rem;line-height:1.8;padding:7px 0;margin-bottom:12px}
  .npt-print-button{font-size:.75rem}
  .npt-title,.npt-article-header .npt-title{font-size:clamp(1.35rem,6vw,1.8rem);line-height:1.65;margin-bottom:10px}
  .npt-subheadline{font-size:.9rem;line-height:1.9;padding:9px 11px;margin:9px 0 12px}
  .npt-featured{aspect-ratio:16/9}
  .entry-content{font-size:.96rem;line-height:2}
  .entry-content h2{font-size:1.25rem;line-height:1.7}
  .entry-content h3{font-size:1.1rem;line-height:1.75}
  .entry-content ul,.entry-content ol{padding-inline-start:1.35rem}
  .entry-content figure{margin-inline:0;max-width:100%}
  .entry-content figcaption{font-size:.78rem;line-height:1.7}

  /* Keep the existing in-article popular widget intact, only make its outer box fluid. */
  .npt-inarticle-popular-box{width:100%;max-width:100%;margin:24px auto;padding:10px}
  .npt-inarticle-popular-box .npt-inarticle-popular-item{max-width:100%;min-width:0}
  .npt-more-read,.npt-related{margin-top:22px}
  .npt-related-grid{grid-template-columns:1fr 1fr;gap:10px}
  .npt-related-card h3{font-size:.86rem;line-height:1.75}

  /* Archive/category/tag/author/search */
  .npt-archive-header{padding-bottom:12px;margin-bottom:14px}
  .npt-archive-header .npt-title{font-size:1.3rem;line-height:1.7}
  .npt-archive-description{font-size:.86rem;line-height:1.9}
  .npt-archive-card{grid-template-columns:120px minmax(0,1fr)!important;gap:11px;padding:13px 0}
  .npt-archive-image{width:120px;aspect-ratio:217/123}
  .npt-archive-body h2{font-size:.9rem;line-height:1.75;margin:2px 0}
  .npt-archive-body .npt-meta{font-size:.7rem}
  .npt-archive-body p{display:none}
  .npt-pagination{font-size:.82rem;white-space:nowrap}

  /* Static pages */
  .npt-main> .npt-container>article{width:100%;min-width:0}

  /* Sidebar becomes a normal full-width section below the content. */
  .npt-sidebar{order:initial;position:static!important}
  .npt-sidebar .npt-widget{width:100%;max-width:100%;overflow:hidden}
  .npt-sidebar .npt-card-body h3{font-size:.86rem;line-height:1.75}
}

@media (max-width: 480px){
  .npt-container{width:calc(100% - 14px)}
  .npt-main{padding-top:10px}
  .npt-brand{max-width:68%}
  .npt-theme-toggle{width:30px;height:30px;flex-basis:30px}
  .npt-breadcrumb{gap:4px;font-size:.7rem}
  .npt-article-meta-top{font-size:.68rem;gap:5px 7px}
  .npt-title,.npt-article-header .npt-title{font-size:1.28rem;line-height:1.7}
  .entry-content{font-size:.92rem;line-height:2}
  .npt-related-grid{grid-template-columns:1fr}
  .npt-archive-card{grid-template-columns:100px minmax(0,1fr)!important;gap:9px}
  .npt-archive-image{width:100px}
  .npt-archive-body h2{font-size:.84rem;line-height:1.75}
  .npt-archive-body .npt-meta{font-size:.66rem}
  .npt-comments{padding:11px;margin-top:22px}
  .npt-comments-heading{margin-bottom:12px;padding-bottom:8px}
  .npt-comments-heading h2{font-size:1rem}
  .npt-comments .comment-form input[type=text],.npt-comments .comment-form input[type=email],.npt-comments .comment-form textarea{font-size:.88rem;padding:9px 10px}
  .npt-comments .comment-form textarea{min-height:125px}
}

@media (max-width: 360px){
  .npt-archive-card{grid-template-columns:88px minmax(0,1fr)!important}
  .npt-archive-image{width:88px}
  .npt-archive-body h2{font-size:.8rem}
  .npt-brand-text-only{font-size:1.05rem}
}


/* Internal sidebars: right-side placement for RTL pages, with optional sticky behavior. */
.npt-internal-layout{grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start;direction:ltr}
.npt-internal-layout>article,.npt-internal-layout>.npt-internal-sidebar{direction:rtl}
.npt-internal-layout.npt-internal-no-sidebar{grid-template-columns:1fr}
.npt-internal-sidebar{min-width:0}
.npt-internal-sidebar .npt-widget{background:var(--surface)}
.npt-internal-sidebar .npt-widget + .npt-widget{margin-top:28px}
@media(min-width:901px){
  .npt-internal-sidebar.npt-sidebar-sticky{position:sticky;top:24px;align-self:start}
}
@media(max-width:900px){
  .npt-internal-layout{grid-template-columns:1fr}
  .npt-internal-sidebar{position:static!important;order:2;width:100%}
}


/* MTB dual internal sidebars: RTL layout, independent toggles, widget-ready, responsive. */
.npt-internal-layout{display:grid;grid-template-columns:300px minmax(0,1fr) 300px;grid-template-areas:"right content left";gap:28px;align-items:start;direction:ltr}
.npt-internal-layout > .npt-internal-content{grid-area:content;min-width:0;direction:rtl}
.npt-internal-layout > .npt-internal-right-sidebar{grid-area:right;min-width:0;direction:rtl}
.npt-internal-layout > .npt-internal-left-sidebar{grid-area:left;min-width:0;direction:rtl}
.npt-internal-layout .npt-sidebar-sticky{position:sticky;top:16px;align-self:start}
.npt-internal-layout .npt-sidebar .npt-widget{background:var(--surface)}
.npt-internal-layout .npt-sidebar .npt-widget + .npt-widget{margin-top:28px}
.npt-internal-layout.npt-internal-no-sidebar{grid-template-columns:minmax(0,1fr);grid-template-areas:"content"}
@media(max-width:1100px){
  .npt-internal-layout{grid-template-columns:250px minmax(0,1fr) 250px;gap:20px}
}
@media(max-width:900px){
  .npt-internal-layout{grid-template-columns:1fr;grid-template-areas:"content" "right" "left";gap:22px;direction:ltr}
  .npt-internal-layout .npt-sidebar-sticky{position:static}
  .npt-internal-layout > .npt-internal-content{direction:rtl}
  .npt-internal-layout > .npt-sidebar{direction:rtl}
}
@media(max-width:600px){
  .npt-internal-layout{gap:18px}
  .npt-internal-layout .npt-sidebar .npt-widget + .npt-widget{margin-top:20px}
}

/* Final internal dual-sidebar behavior: RTL-correct columns, independent sticky sidebars, and mobile toggles. */
.npt-internal-layout{
  display:grid;
  grid-template-columns:minmax(0,280px) minmax(0,1fr) minmax(0,220px);
  grid-template-areas:"right content left";
  gap:28px;
  align-items:start;
  direction:rtl;
}
.npt-internal-layout > .npt-internal-content{grid-area:content;min-width:0;direction:rtl;}
.npt-internal-layout > .npt-internal-right-sidebar{grid-area:right;min-width:0;direction:rtl;}
.npt-internal-layout > .npt-internal-left-sidebar{grid-area:left;min-width:0;direction:rtl;}
.npt-internal-layout .npt-sidebar-sticky{
  position:-webkit-sticky !important;
  position:sticky !important;
  top:24px !important;
  align-self:start !important;
  height:max-content;
  max-height:none;
  overflow:visible;
  z-index:10;
}
.npt-internal-layout .npt-sidebar .npt-widget{background:var(--surface);}
.npt-internal-layout .npt-sidebar .npt-widget + .npt-widget{margin-top:28px;}

/* Only right sidebar enabled: content expands into the left column. */
.npt-internal-layout.npt-internal-has-right.npt-internal-no-left{
  grid-template-columns:minmax(0,280px) minmax(0,1fr);
  grid-template-areas:"right content";
}
/* Only left sidebar enabled: content expands into the right column. */
.npt-internal-layout.npt-internal-no-right.npt-internal-has-left{
  grid-template-columns:minmax(0,1fr) minmax(0,220px);
  grid-template-areas:"content left";
}
/* Both disabled: content fills the entire container. */
.npt-internal-layout.npt-internal-no-sidebar{
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"content";
}

@media (max-width:1100px) and (min-width:901px){
  .npt-internal-layout{grid-template-columns:minmax(0,240px) minmax(0,1fr) minmax(0,190px);gap:20px;}
  .npt-internal-layout.npt-internal-has-right.npt-internal-no-left{grid-template-columns:minmax(0,240px) minmax(0,1fr);}
  .npt-internal-layout.npt-internal-no-right.npt-internal-has-left{grid-template-columns:minmax(0,1fr) minmax(0,190px);}
}

/* Mobile/tablet: content first, then enabled sidebars. Sticky is intentionally disabled. */
@media (max-width:900px){
  .npt-internal-layout,
  .npt-internal-layout.npt-internal-has-right.npt-internal-no-left,
  .npt-internal-layout.npt-internal-no-right.npt-internal-has-left,
  .npt-internal-layout.npt-internal-no-sidebar{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"content" "right" "left";
    gap:22px;
    direction:rtl;
  }
  .npt-internal-layout > .npt-internal-content{direction:rtl;}
  .npt-internal-layout > .npt-sidebar{direction:rtl;width:100%;max-width:none;display:block;visibility:visible;}
  .npt-internal-layout .npt-sidebar-sticky{
    position:static;
    max-height:none;
    overflow:visible;
  }
  .npt-internal-layout > .npt-internal-right-sidebar.npt-mobile-sidebar-hidden,
  .npt-internal-layout > .npt-internal-left-sidebar.npt-mobile-sidebar-hidden{display:none!important;}
  .npt-internal-layout .npt-sidebar .npt-widget + .npt-widget{margin-top:20px;}
}

@media (max-width:600px){
  .npt-internal-layout{gap:18px;}
}


/* Article bottom utilities — desktop and mobile-safe layout. */
.npt-article-bottom-tools{display:block;margin:28px 0 24px;padding:14px 0 0;border-top:1px solid var(--border);font-size:.82rem;color:var(--muted);box-sizing:border-box;max-width:100%;min-width:0;overflow:hidden}
.npt-article-tools-top{display:flex;align-items:center;justify-content:space-between;gap:18px;direction:rtl;min-height:28px;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.npt-article-shortlink{display:flex;align-items:center;justify-content:flex-start;min-width:0;flex:1 1 auto;overflow:hidden}
.npt-copy-shortlink{display:flex;align-items:center;justify-content:flex-start;gap:6px;width:100%;max-width:360px;min-width:0;height:28px;box-sizing:border-box;border:0;background:transparent;color:var(--text);padding:2px 0;cursor:pointer;font:inherit;font-size:.78rem;line-height:1.2;direction:rtl;text-align:right;border-radius:3px;appearance:none;-webkit-appearance:none;overflow:hidden}
.npt-copy-shortlink:hover{color:var(--accent)}
.npt-copy-shortlink.is-copied{color:#159447}
.npt-shortlink-label{font-weight:800;flex:0 0 auto;white-space:nowrap}
.npt-shortlink-value{direction:ltr;color:var(--text);font-size:.74rem;line-height:1.2;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.npt-copy-shortlink svg{width:15px;height:15px;fill:currentColor;flex:0 0 15px;display:block}
.npt-article-share{display:flex;align-items:center;justify-content:flex-start;gap:6px;direction:ltr;flex:0 0 auto;margin-inline-start:0;min-width:0}
.npt-article-share a{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;color:var(--text);text-decoration:none;opacity:.9;flex:0 0 18px;line-height:1}
.npt-article-share a:hover{color:var(--accent);opacity:1}
.npt-article-share svg{width:13px;height:13px;fill:currentColor;display:block}
.npt-article-tags{display:block;width:100%;max-width:100%;min-width:0;margin-top:10px;padding-top:9px;border-top:1px solid color-mix(in srgb,var(--border) 70%,transparent);text-align:right;line-height:1.9;word-break:normal;overflow-wrap:anywhere;box-sizing:border-box}
.npt-article-tags strong{color:var(--text);font-weight:800;margin-inline-end:6px}
.npt-article-tags a{color:var(--text);text-decoration:none;border-bottom:1px solid var(--accent);padding-bottom:2px;margin-inline-end:5px;display:inline-block}
.npt-article-tags a:hover{text-decoration:underline}

@media (max-width:700px){
  .npt-article-bottom-tools{margin:20px 0 18px;padding:10px 0 0;width:100%;max-width:100%;min-width:0;overflow:hidden}
  .npt-article-tools-top{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;width:100%;max-width:100%;min-width:0;overflow:hidden}
  .npt-article-shortlink{flex:1 1 auto;min-width:0;width:auto;max-width:none;overflow:hidden}
  .npt-copy-shortlink{width:100%;max-width:none;min-width:0;height:24px;gap:4px;padding:1px 0;font-size:.70rem;line-height:1.1;overflow:hidden}
  .npt-shortlink-label{font-size:.70rem;line-height:1.1;flex:0 0 auto;white-space:nowrap}
  .npt-shortlink-value{font-size:.62rem;line-height:1.1;flex:1 1 auto;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .npt-copy-shortlink svg{width:12px;height:12px;flex:0 0 12px}
  .npt-article-share{width:auto;max-width:none;flex:0 0 auto;gap:5px;margin:0;padding:0;direction:ltr;overflow:visible}
  .npt-article-share a{width:16px;height:16px;flex:0 0 16px;padding:0;margin:0}
  .npt-article-share svg{width:10px;height:10px;flex:0 0 10px}
  .npt-article-tags{width:100%;max-width:100%;min-width:0;margin-top:9px;padding-top:8px;line-height:1.8;text-align:right;overflow-wrap:anywhere}
  .npt-article-tags strong{margin-inline-end:4px;font-size:.74rem}
  .npt-article-tags a{margin-inline-end:4px;font-size:.74rem}
}
@media (max-width:380px){
  .npt-article-tools-top{gap:6px}
  .npt-shortlink-label{font-size:.65rem}
  .npt-shortlink-value{font-size:.57rem}
  .npt-copy-shortlink{font-size:.65rem;gap:3px}
  .npt-copy-shortlink svg{width:10px;height:10px;flex-basis:10px}
  .npt-article-share{gap:4px}
  .npt-article-share a{width:14px;height:14px;flex-basis:14px}
  .npt-article-share svg{width:9px;height:9px;flex-basis:9px}
}

/* Cleaner BBC-style primary navigation: horizontal RTL, no boxed vertical separators. */
.npt-site-header .npt-nav{border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface)}
.npt-site-header .npt-nav-row{min-height:50px;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
.npt-site-header .npt-nav-row::-webkit-scrollbar{display:none}
.npt-site-header .npt-menu{display:flex;align-items:stretch;gap:0;min-width:max-content;margin:0;padding:0}
.npt-site-header .npt-menu>li>a{position:relative;padding:14px 17px;font-size:.9rem;font-weight:700;border:0;background:transparent;color:var(--text);transition:background .15s ease,color .15s ease}
.npt-site-header .npt-menu>li>a:after{content:"";position:absolute;right:14px;left:14px;bottom:0;height:3px;background:transparent}
.npt-site-header .npt-menu>li>a:hover{background:var(--soft);color:var(--text)}
.npt-site-header .npt-menu>li.current-menu-item>a,.npt-site-header .npt-menu>li.current-menu-ancestor>a,.npt-site-header .npt-menu>li.current_page_item>a{background:var(--soft);color:var(--text)}
.npt-site-header .npt-menu>li.current-menu-item>a:after,.npt-site-header .npt-menu>li.current-menu-ancestor>a:after,.npt-site-header .npt-menu>li.current_page_item>a:after{background:var(--accent)}
@media(max-width:700px){.npt-site-header .npt-menu>li>a{padding:12px 13px;font-size:.86rem}}

/* =========================================================
   MTB PROFESSIONAL NEWS HEADER / FOOTER
   Added on top of the approved mobile-professional baseline.
   No frontend queries or existing widget logic changed.
   ========================================================= */
.mtb-news-header{background:var(--surface);border-bottom:1px solid var(--border);color:var(--text)}
.mtb-header-utility{background:var(--soft);border-bottom:1px solid var(--border);font-size:.76rem;color:var(--muted)}
.mtb-header-utility-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.mtb-utility-links,.mtb-utility-actions{display:flex;align-items:center;gap:12px}
.mtb-utility-links span+span{padding-inline-start:12px;border-inline-start:1px solid var(--border)}
.mtb-utility-actions button{font:inherit}
.mtb-search-toggle{border:0;background:none;color:var(--muted);cursor:pointer;padding:4px 0}
.mtb-theme-toggle{border:1px solid var(--border)!important;background:var(--surface)!important;color:var(--text)!important;width:28px;height:28px;border-radius:50%;cursor:pointer;padding:0!important}
.mtb-header-main{background:var(--surface)}
.mtb-header-main-inner{min-height:94px;display:grid;grid-template-columns:minmax(190px,1fr) minmax(160px,1.2fr) minmax(240px,1fr);align-items:center;gap:24px}
.mtb-header-brand{min-width:0}
.mtb-brand-link{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}
.mtb-logo{max-height:58px;width:auto;display:block}
.mtb-brand-name{font-size:1.7rem;font-weight:900;line-height:1.1}
.mtb-brand-tagline{font-size:.72rem;color:var(--muted);border-inline-start:1px solid var(--border);padding-inline-start:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mtb-header-center{min-width:0;text-align:center}
.mtb-header-center .npt-widget{margin:0}
.mtb-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.mtb-header-search{display:flex;align-items:center;width:min(300px,100%);height:40px;border:1px solid var(--border);background:var(--soft);border-radius:6px;overflow:hidden}
.mtb-header-search input{min-width:0;flex:1;border:0;background:transparent;color:var(--text);padding:0 12px;font:inherit;outline:0}
.mtb-header-search button{width:42px;height:100%;border:0;border-inline-start:1px solid var(--border);background:transparent;color:var(--text);font-size:1.2rem;cursor:pointer}
.mtb-header-search.is-open{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 14%,transparent)}
.mtb-mobile-menu-toggle{display:none;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:6px;padding:9px 12px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.mtb-header-ad-wrap{padding-top:8px;padding-bottom:8px}
.mtb-header-ad-wrap:empty{display:none}
.mtb-nav-shell{border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface)}
.mtb-primary-nav{overflow:hidden}
.mtb-primary-nav-inner{min-height:48px;display:flex;align-items:center;overflow-x:auto;scrollbar-width:none}
.mtb-primary-nav-inner::-webkit-scrollbar{display:none}
.mtb-primary-nav .npt-menu{display:flex;align-items:stretch;min-width:max-content;list-style:none;margin:0;padding:0;gap:0}
.mtb-primary-nav .npt-menu>li>a{position:relative;display:flex;align-items:center;min-height:48px;padding:0 16px;color:var(--text);text-decoration:none;font-size:.88rem;font-weight:700;border-inline-start:1px solid transparent;transition:none}
.mtb-primary-nav .npt-menu>li>a:hover{background:var(--soft)}
.mtb-primary-nav .npt-menu>li.current-menu-item>a,.mtb-primary-nav .npt-menu>li.current-menu-ancestor>a{color:var(--accent);background:transparent}
.mtb-primary-nav .npt-menu>li.current-menu-item>a:after,.mtb-primary-nav .npt-menu>li.current-menu-ancestor>a:after{content:"";position:absolute;inset-inline:12px;bottom:0;height:3px;background:var(--accent);border-radius:3px 3px 0 0}

.mtb-news-footer{margin-top:48px;background:#202326;color:#e8eaed;border-top:3px solid var(--accent);padding:0}
.mtb-news-footer a{color:#f5f6f7;text-decoration:none}
.mtb-footer-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1.3fr);gap:34px;padding:34px 0 26px;border-bottom:1px solid rgba(255,255,255,.12)}
.mtb-footer-brand a{display:inline-flex;align-items:center;min-height:42px}
.mtb-footer-brand strong{font-size:1.45rem;color:#fff}
.mtb-footer-logo{max-height:48px;width:auto;display:block}
.mtb-footer-brand p{margin:12px 0 0;max-width:520px;color:#aeb4bb;line-height:2;font-size:.84rem}
.mtb-footer-intro-widget{min-width:0}
.mtb-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;padding:28px 0 18px}
.mtb-footer-col{min-width:0}
.mtb-news-footer .widget-title{color:#fff;font-size:.98rem;margin:0 0 14px;padding-inline-start:10px;border-inline-start:3px solid var(--accent)}
.mtb-news-footer .npt-widget{margin:0 0 18px}
.mtb-news-footer ul{margin:0;padding:0;list-style:none}
.mtb-news-footer li+li{margin-top:8px}
.mtb-news-footer li a{color:#c9ced4;font-size:.82rem}
.mtb-news-footer li a:hover{color:#fff}
.mtb-footer-social{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;padding:16px 0;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12)}
.mtb-footer-social:empty{display:none}
.mtb-footer-social a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 11px;border:1px solid rgba(255,255,255,.16);border-radius:5px;color:#c9ced4;font-size:.74rem}
.mtb-footer-social a:hover{border-color:var(--accent);color:#fff}
.mtb-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;color:#9ea5ad;font-size:.75rem}
.mtb-footer-copy{line-height:1.9}
.mtb-footer-bottom-widget{min-width:0}
.mtb-footer-bottom-widget .npt-widget{margin:0}
.mtb-news-footer .npt-footer-bottom{display:none}

@media(max-width:900px){
  .mtb-header-main-inner{grid-template-columns:minmax(0,1fr) auto;min-height:74px;gap:12px}
  .mtb-header-center{display:none}
  .mtb-brand-tagline{display:none}
  .mtb-logo{max-height:48px}
  .mtb-brand-name{font-size:1.35rem}
  .mtb-header-tools{gap:7px}
  .mtb-header-search{display:none}
  .mtb-search-toggle{display:none}
  .mtb-mobile-menu-toggle{display:inline-flex;align-items:center;gap:7px}
  .mtb-primary-nav{display:none}
  .mtb-primary-nav.is-open{display:block}
  .mtb-primary-nav .npt-menu{display:flex;flex-direction:column;width:100%;min-width:0}
  .mtb-primary-nav .npt-menu>li{border-bottom:1px solid var(--border)}
  .mtb-primary-nav .npt-menu>li>a{min-height:44px;padding:0 14px}
  .mtb-primary-nav .npt-menu>li.current-menu-item>a:after,.mtb-primary-nav .npt-menu>li.current-menu-ancestor>a:after{inset-inline:0;inset-block:9px auto 9px;width:3px;height:auto;border-radius:3px}
  .mtb-footer-intro{grid-template-columns:1fr;gap:18px;padding:24px 0 20px}
  .mtb-footer-grid{grid-template-columns:1fr 1fr;gap:20px;padding:22px 0 10px}
  .mtb-footer-bottom{align-items:flex-start;flex-direction:column;gap:8px}
}
@media(max-width:600px){
  .mtb-header-utility-inner{min-height:30px;font-size:.68rem}
  .mtb-utility-links span:nth-child(n+2){display:none}
  .mtb-header-main-inner{min-height:66px;padding-top:8px;padding-bottom:8px}
  .mtb-logo{max-height:42px}
  .mtb-brand-name{font-size:1.15rem}
  .mtb-mobile-menu-toggle{padding:8px 10px;font-size:.8rem}
  .mtb-header-ad-wrap{padding-top:4px;padding-bottom:4px}
  .mtb-footer-grid{grid-template-columns:1fr}
  .mtb-footer-social{gap:6px}
  .mtb-footer-social a{min-height:28px;padding:0 9px;font-size:.7rem}
  .mtb-news-footer{margin-top:32px}
}

/* =========================================================
   MTB MODERN NEWS UI — visual layer only
   Keeps existing settings, widgets, queries and cache logic intact.
   ========================================================= */
:root{
  --mtb-radius:14px;
  --mtb-radius-sm:10px;
  --mtb-shadow:0 8px 30px rgba(15,23,42,.06);
  --mtb-shadow-hover:0 14px 36px rgba(15,23,42,.10);
  --mtb-content:760px;
}

html{scroll-behavior:smooth}
body{background:var(--surface);color:var(--text);font-size:16px;line-height:1.9;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
::selection{background:var(--accent);color:#fff}
button,input,textarea,select{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Main page rhythm */
.npt-main{padding:34px 0 48px}
.npt-container{width:min(calc(100% - 40px),1260px)}
.npt-home-layout{grid-template-columns:minmax(0,1fr) 300px;gap:30px}
.npt-layout{align-items:start}
.npt-home-content,.npt-internal-content{min-width:0}

/* Modern section headers */
.npt-home-section,.npt-widget{margin-bottom:34px}
.npt-home-section>.widget-title,.npt-widget>.widget-title,
.npt-home-section .widget-title{
  display:flex;align-items:center;gap:10px;
  min-height:38px;margin:0 0 18px;padding:0 14px 9px 0;
  border:0;border-bottom:1px solid var(--border);
  position:relative;font-size:1.12rem;line-height:1.5;font-weight:900;color:var(--text)
}
.npt-home-section>.widget-title:before,.npt-widget>.widget-title:before{
  content:"";width:4px;height:24px;border-radius:3px;background:var(--accent);flex:0 0 4px
}
.npt-home-section>.widget-title:after,.npt-widget>.widget-title:after{
  content:"";position:absolute;right:0;bottom:-1px;width:54px;height:2px;background:var(--accent);border-radius:2px
}

/* Featured / primary news cards */
.npt-featured-main-card,.npt-featured-grid,.npt-analysis-main,.npt-analysis-side,.npt-post-card,
.npt-news-six .npt-post-card,.npt-editor-grid .npt-post-card,.npt-horizontal-item{
  border-radius:var(--mtb-radius);overflow:hidden
}
.npt-featured-main-card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--mtb-shadow)}
.npt-featured-main-card:hover{box-shadow:var(--mtb-shadow-hover)}
.npt-featured-main-card .npt-card-body{padding:20px}
.npt-featured-main-card .npt-card-body h3{font-size:clamp(1.35rem,2.1vw,2rem);line-height:1.65;margin:0 0 8px;font-weight:900}
.npt-featured-main-card .npt-meta{font-size:.78rem}
.npt-card-image,.npt-side-news-image,.npt-related-image,.npt-archive-image{background:var(--soft);overflow:hidden}
.npt-card-image img,.npt-side-news-image img,.npt-related-image img,.npt-archive-image img{transition:transform .28s ease}
.npt-post-card:hover .npt-card-image img,.npt-related-card:hover img,.npt-archive-card:hover .npt-archive-image img{transform:scale(1.025)}

/* Horizontal modules */
.npt-horizontal-track{gap:14px;scrollbar-width:none}
.npt-horizontal-track::-webkit-scrollbar{display:none}
.npt-horizontal-item{padding:0;border:1px solid var(--border);background:var(--surface);box-shadow:0 4px 18px rgba(15,23,42,.035)}
.npt-horizontal-item .npt-card-body{padding:12px 14px 15px}
.npt-horizontal-item .npt-card-body h3{margin:0;font-size:.94rem;line-height:1.75;font-weight:800}
.npt-horizontal-item .npt-meta{padding-top:5px;font-size:.73rem}

/* Six-news / editor grids */
.npt-news-six,.npt-editor-grid{gap:14px}
.npt-news-six .npt-post-card,.npt-editor-grid .npt-post-card{border:1px solid var(--border);background:var(--surface);box-shadow:0 4px 18px rgba(15,23,42,.035)}
.npt-news-six .npt-card-body,.npt-editor-grid .npt-card-body{padding:12px 14px 15px}
.npt-news-six .npt-card-body h3,.npt-editor-grid .npt-card-body h3{font-size:.93rem;line-height:1.75;font-weight:800}

/* Analysis */
.npt-analysis{gap:16px}
.npt-analysis-main{border:1px solid var(--border);background:var(--surface);box-shadow:var(--mtb-shadow)}
.npt-analysis-main .npt-card-body{padding:18px}
.npt-analysis-main .npt-card-body h3{font-weight:900;line-height:1.65}
.npt-analysis-side{padding:12px 0;border-bottom:1px solid var(--border)}
.npt-analysis-side:first-child{padding-top:0}
.npt-analysis-side .npt-card-body h3{font-size:.9rem;line-height:1.7;margin:0}

/* Video module */
.npt-video-card{border-radius:var(--mtb-radius-sm);overflow:hidden;background:var(--surface);border:1px solid var(--border)}
.npt-video-card h3{padding:0 12px 12px;margin:8px 0 0;font-weight:800}
.npt-play{box-shadow:0 4px 16px rgba(0,0,0,.25)}
.npt-video-prev,.npt-video-next{box-shadow:none;border-radius:10px}

/* Popular module */
.npt-home-section-popular{background:var(--surface);border:1px solid var(--border);border-radius:var(--mtb-radius);padding:20px;box-shadow:var(--mtb-shadow)}
.npt-home-section-popular>.widget-title{margin-left:-20px;margin-right:-20px;padding-right:20px;padding-left:20px}
.npt-home-section-popular .npt-popular-columns{gap:0}
.npt-home-section-popular .npt-home-popular-item{min-height:62px;border-bottom:1px solid var(--border);padding:10px 0!important}
.npt-home-section-popular .npt-home-popular-item:last-child{border-bottom:0}
.npt-home-section-popular .npt-popular-rank{font-weight:900;color:var(--accent)}
.npt-home-section-popular .npt-home-popular-item>a{font-weight:750;line-height:1.8}

/* Sidebar: premium but cheap */
.npt-sidebar .npt-widget{border:1px solid var(--border);border-radius:var(--mtb-radius);padding:16px;background:var(--surface);box-shadow:0 4px 18px rgba(15,23,42,.035)}
.npt-sidebar .npt-widget .widget-title{margin-bottom:14px}
.npt-sidebar .npt-widget + .npt-widget{margin-top:18px}
.npt-sidebar .npt-post-card{border-radius:0;border:0;border-bottom:1px solid var(--border);box-shadow:none;padding:10px 0}
.npt-sidebar .npt-post-card:last-child{border-bottom:0}
.npt-internal-sidebar .npt-widget{box-shadow:0 5px 22px rgba(15,23,42,.045)}

/* Article page */
.npt-breadcrumb{border:0;border-radius:10px;background:var(--soft);padding:9px 13px;margin-bottom:22px;font-size:.78rem}
.npt-article-header{padding:0 0 18px;margin-bottom:22px;border-bottom:1px solid var(--border)}
.npt-article-meta-top{border:0;padding:0 0 12px;font-size:.76rem;gap:12px}
.npt-article-meta-top>span{display:inline-flex;align-items:center;gap:5px}
.npt-article-header .npt-title{font-size:clamp(1.65rem,3.4vw,2.65rem);line-height:1.55;letter-spacing:-.02em;font-weight:950;margin:0;color:var(--text)}
.npt-subheadline{margin:14px 0 0;border:0;border-inline-start:4px solid var(--accent);border-radius:0 8px 8px 0;background:var(--soft);padding:12px 15px;font-size:.98rem;line-height:2;font-weight:600}
.npt-internal-content>img.npt-featured,.npt-internal-content>.npt-featured{display:block;width:100%;max-width:100%;border-radius:var(--mtb-radius);overflow:hidden}
.npt-internal-content .entry-content{max-width:var(--mtb-content);margin-inline:auto;font-size:1.06rem;line-height:2.25;color:var(--text)}
.npt-internal-content .entry-content>p:first-child{margin-top:0}
.npt-internal-content .entry-content p{margin:0 0 1.35em}
.npt-internal-content .entry-content h2{font-size:1.55rem;line-height:1.7;margin:2em 0 .75em;font-weight:900}
.npt-internal-content .entry-content h3{font-size:1.25rem;line-height:1.7;margin:1.7em 0 .7em;font-weight:900}
.npt-internal-content .entry-content a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.npt-internal-content .entry-content strong{font-weight:900}
.npt-internal-content .entry-content blockquote{border-inline-start:4px solid var(--accent);background:var(--soft);border-radius:0 10px 10px 0;padding:15px 18px;margin:1.5em 0;font-size:1.02em;font-weight:600}
.npt-internal-content .entry-content figure{margin:1.6em 0}
.npt-internal-content .entry-content figcaption{text-align:center;color:var(--muted);font-size:.78rem;margin-top:7px}
.npt-internal-content .entry-content img{border-radius:10px}
.npt-internal-content .entry-content hr{border:0;border-top:1px solid var(--border);margin:2em 0}
.npt-internal-content .entry-content ul,.npt-internal-content .entry-content ol{padding-inline-start:1.5rem}
.npt-print-button{border:1px solid var(--border);padding:5px 9px;border-radius:7px;background:var(--surface)}
.npt-print-button:hover{background:var(--soft)}

/* Article utility and related content */
.npt-article-bottom-tools{border-top:1px solid var(--border);padding-top:16px}
.npt-more-read,.npt-related{margin-top:34px}
.npt-more-read h2,.npt-related h2{font-size:1.1rem;border-inline-start:4px solid var(--accent);background:var(--soft);border-radius:0 8px 8px 0;padding:8px 12px}
.npt-more-read li{padding:11px 0}
.npt-related-grid{gap:14px}
.npt-related-card{border:1px solid var(--border);border-radius:var(--mtb-radius);overflow:hidden;background:var(--surface)}
.npt-related-card h3{padding:0 12px 14px;margin:8px 0 0;font-weight:800}

/* Comments */
.npt-comments{margin-top:34px;padding:20px;border:1px solid var(--border);border-radius:var(--mtb-radius);background:var(--surface);box-shadow:0 5px 20px rgba(15,23,42,.04)}
.npt-comments-heading{border:0;border-bottom:1px solid var(--border);padding:0 0 13px;margin-bottom:18px}
.npt-comments-heading:after{content:"";width:54px;height:2px;background:var(--accent);position:absolute}
.npt-comments .comment-form input[type=text],.npt-comments .comment-form input[type=email],.npt-comments .comment-form textarea{border:1px solid var(--border);border-radius:9px;background:var(--soft);transition:border-color .15s ease,box-shadow .15s ease}
.npt-comments .comment-form input:focus,.npt-comments .comment-form textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
.npt-comment-submit{border:0!important;border-radius:9px!important;background:var(--accent)!important;color:#fff!important;padding:10px 22px!important;font-weight:800;cursor:pointer}
.npt-comment-rules{margin-top:14px;background:var(--soft);border-radius:9px;padding:10px 13px;font-size:.82rem}

/* Archive / search / tag / author pages */
.npt-archive-header{border:0;border-bottom:1px solid var(--border);padding:0 0 16px;margin-bottom:22px}
.npt-archive-header .npt-title{font-size:clamp(1.35rem,2.5vw,1.8rem);font-weight:950;margin:0}
.npt-archive-description{max-width:760px;color:var(--muted);font-size:.9rem}
.npt-archive-card{grid-template-columns:250px minmax(0,1fr);gap:22px;padding:20px 0;border-bottom:1px solid var(--border)}
.npt-archive-image{border-radius:var(--mtb-radius)}
.npt-archive-body{padding:3px 0}
.npt-archive-body h2{font-size:1.22rem;line-height:1.7;font-weight:900;margin:6px 0}
.npt-archive-body h2 a:hover{color:var(--accent)}
.npt-archive-body p{max-width:760px;font-size:.88rem;line-height:1.95}
.npt-archive-body .npt-meta{font-size:.74rem}
.npt-pagination,.posts-navigation,.pagination{margin-top:24px}
.npt-pagination .page-numbers,.nav-links .page-numbers{border:1px solid var(--border);border-radius:8px;padding:7px 11px;background:var(--surface)}
.npt-pagination .current,.nav-links .current{background:var(--accent);border-color:var(--accent);color:#fff}

/* 404 */
.npt-404{max-width:760px;margin:0 auto;padding:110px 20px;text-align:center}
.npt-404-code{font-size:clamp(5rem,15vw,9rem);font-weight:950;line-height:1;color:var(--accent);letter-spacing:-.06em}
.npt-404 h1{font-size:1.8rem;font-weight:900}
.npt-404-home{border-radius:9px;background:var(--accent);padding:11px 20px;box-shadow:0 7px 20px color-mix(in srgb,var(--accent) 20%,transparent)}

/* Footer refinement */
.mtb-news-footer{margin-top:70px;border-top:3px solid var(--accent);background:#17191c}
.mtb-footer-intro{padding:38px 0 28px}
.mtb-footer-grid{padding:30px 0 20px}
.mtb-news-footer .widget-title{font-weight:900}
.mtb-footer-social a{border-radius:8px;transition:none}
.mtb-footer-bottom{padding:18px 0;color:#9da4ad}

/* Mobile: preserve existing sidebar/mobile toggles and only refine presentation */
@media(max-width:900px){
  .npt-main{padding:24px 0 36px}
  .npt-container{width:min(calc(100% - 28px),1260px)}
  .npt-home-layout{grid-template-columns:1fr;gap:22px}
  .npt-home-section,.npt-widget{margin-bottom:26px}
  .npt-internal-content .entry-content{font-size:1rem;line-height:2.12}
  .npt-archive-card{grid-template-columns:190px minmax(0,1fr);gap:16px}
}
@media(max-width:700px){
  body{font-size:15px}
  .npt-container{width:calc(100% - 22px)}
  .npt-main{padding:20px 0 30px}
  .npt-home-section>.widget-title,.npt-widget>.widget-title{font-size:1rem;margin-bottom:13px;min-height:34px}
  .npt-featured-main-card .npt-card-body{padding:15px}
  .npt-featured-main-card .npt-card-body h3{font-size:1.25rem}
  .npt-internal-content .entry-content{font-size:.98rem;line-height:2.05}
  .npt-internal-content .entry-content h2{font-size:1.3rem}
  .npt-internal-content .entry-content h3{font-size:1.12rem}
  .npt-article-header .npt-title{font-size:clamp(1.35rem,6vw,1.75rem);line-height:1.7}
  .npt-article-meta-top{font-size:.69rem;gap:8px}
  .npt-subheadline{font-size:.88rem;padding:10px 12px}
  .npt-archive-card{grid-template-columns:120px minmax(0,1fr);gap:12px;padding:15px 0}
  .npt-archive-body h2{font-size:.98rem;line-height:1.7}
  .npt-archive-body p{display:none}
  .npt-archive-body .npt-meta{font-size:.66rem}
  .npt-sidebar .npt-widget{padding:13px}
  .npt-home-section-popular{padding:14px}
  .npt-home-section-popular>.widget-title{margin-left:-14px;margin-right:-14px;padding-right:14px;padding-left:14px}
  .npt-comments{padding:14px;margin-top:26px}
  .npt-404{padding:80px 15px}
  .mtb-news-footer{margin-top:40px}
}
@media(max-width:380px){
  .npt-container{width:calc(100% - 16px)}
  .npt-archive-card{grid-template-columns:96px minmax(0,1fr);gap:10px}
  .npt-archive-body h2{font-size:.9rem}
  .npt-article-header .npt-title{font-size:1.25rem}
}

/* Respect reduced motion without changing functionality. */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.npt-card-image img,.npt-side-news-image img,.npt-related-image img,.npt-archive-image img{transition:none}}


/* =========================================================
   MTB FINAL NAV + IN-ARTICLE POPULAR POLISH
   ========================================================= */

/* Desktop navigation: clean dropdowns */
@media (min-width:901px){
  .mtb-primary-nav-inner{overflow:visible}
  .mtb-primary-nav .npt-menu{position:relative}
  .mtb-primary-nav .npt-menu>li{position:relative}
  .mtb-primary-nav .npt-menu>li.menu-item-has-children>a{
    padding-inline-end:30px;
  }
  .mtb-primary-nav .npt-menu>li.menu-item-has-children>a:before{
    content:"";
    position:absolute;
    inset-inline-end:13px;
    top:50%;
    width:6px;height:6px;
    border-inline-end:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;
    transform:translateY(-70%) rotate(45deg);
    opacity:.65;
  }
  .mtb-primary-nav .npt-menu .sub-menu{
    position:absolute;
    top:100%;
    inset-inline-start:0;
    z-index:1000;
    min-width:210px;
    margin:0;
    padding:7px;
    list-style:none;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    box-shadow:0 14px 36px rgba(15,23,42,.12);
    opacity:0;
    visibility:hidden;
    transform:translateY(6px);
    transition:opacity .12s ease,transform .12s ease,visibility .12s;
  }
  .mtb-primary-nav .npt-menu>li:hover>.sub-menu,
  .mtb-primary-nav .npt-menu>li:focus-within>.sub-menu{
    opacity:1;visibility:visible;transform:translateY(0);
  }
  .mtb-primary-nav .npt-menu .sub-menu li{position:relative}
  .mtb-primary-nav .npt-menu .sub-menu a{
    display:flex;align-items:center;
    min-height:40px;
    padding:7px 11px;
    color:var(--text);
    text-decoration:none;
    border-radius:7px;
    font-size:.82rem;font-weight:700;
    line-height:1.6;
  }
  .mtb-primary-nav .npt-menu .sub-menu a:hover,
  .mtb-primary-nav .npt-menu .sub-menu .current-menu-item>a{
    background:var(--soft);color:var(--accent);
  }
  .mtb-primary-nav .npt-menu .sub-menu .sub-menu{
    top:-7px;
    inset-inline-start:100%;
    margin-inline-start:4px;
  }
}

/* Mobile navigation: card-like hierarchy */
@media (max-width:900px){
  .mtb-primary-nav .npt-menu>li>a{
    min-height:48px;
    padding:0 15px;
    font-size:.86rem;
  }
  .mtb-primary-nav .npt-menu>li.menu-item-has-children>a{
    padding-inline-end:38px;
  }
  .mtb-primary-nav .npt-menu>li.menu-item-has-children>a:before{
    content:"";
    position:absolute;
    inset-inline-end:17px;
    top:20px;
    width:7px;height:7px;
    border-inline-end:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;
    transform:rotate(45deg);
    opacity:.65;
  }
  .mtb-primary-nav .npt-menu .sub-menu{
    display:block;
    position:static;
    margin:0 10px 9px;
    padding:4px;
    list-style:none;
    background:var(--soft);
    border:1px solid var(--border);
    border-radius:9px;
  }
  .mtb-primary-nav .npt-menu .sub-menu a{
    display:flex;align-items:center;
    min-height:40px;
    padding:7px 11px;
    color:var(--text);
    text-decoration:none;
    border-radius:6px;
    font-size:.79rem;
    line-height:1.55;
  }
  .mtb-primary-nav .npt-menu .sub-menu li+li{
    border-top:1px solid color-mix(in srgb,var(--border) 70%,transparent);
  }
  .mtb-primary-nav .npt-menu .sub-menu .sub-menu{
    margin:4px 0 4px 10px;
  }
}

/* In-article popular: compact, not a large widget */
.single .npt-inarticle-popular-widget,
.npt-inarticle-popular-widget{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  max-width:680px;
  margin:18px auto;
  padding:10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  box-shadow:none;
}
.npt-inarticle-popular-item{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:9px;
  align-items:center;
  min-width:0;
  padding:7px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
}
.npt-inarticle-popular-item .npt-small-widget-image,
.npt-inarticle-popular-item .npt-small-widget-image img{
  width:64px;height:40px;display:block;object-fit:cover;border-radius:5px;
}
.npt-inarticle-popular-copy h3{
  margin:0;
  font-size:.78rem;
  line-height:1.65;
  font-weight:800;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.npt-inarticle-popular-copy .npt-meta{font-size:.64rem;opacity:.65}
.npt-inarticle-popular-widget>.widget-title{
  grid-column:1/-1;
  margin:0 0 2px;
  font-size:.92rem;
}
@media(max-width:700px){
  .single .npt-inarticle-popular-widget,
  .npt-inarticle-popular-widget{
    grid-template-columns:1fr;
    max-width:none;
    margin:14px 0;
    padding:8px;
    gap:7px;
  }
  .npt-inarticle-popular-item{
    grid-template-columns:58px minmax(0,1fr);
    padding:6px;
  }
  .npt-inarticle-popular-item .npt-small-widget-image,
  .npt-inarticle-popular-item .npt-small-widget-image img{
    width:58px;height:38px;
  }
  .npt-inarticle-popular-copy h3{font-size:.76rem}
}


/* MTB FINAL OVERRIDES: internal article colors + original compact in-article popular */
.single .entry-title,
.single-post .entry-title,
.npt-single-article .entry-title,
.npt-single-main .entry-title {
  color: var(--npt-single-title-color, var(--text)) !important;
}
.single .entry-content,
.single-post .entry-content,
.npt-single-article .entry-content,
.npt-single-main .entry-content {
  color: var(--npt-single-text-color, var(--text)) !important;
  background-color: var(--npt-single-text-bg, transparent) !important;
}

/* Keep the in-article popular block close to its original compact appearance. */
.npt-inarticle-popular-box {
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  margin: 24px auto !important;
  padding: 10px 12px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.npt-inarticle-popular-title {
  margin: 0 0 8px !important;
  padding: 0 4px 7px !important;
  font-size: .98rem !important;
  line-height: 1.6 !important;
  font-weight: 800 !important;
  border-bottom: 1px solid var(--border) !important;
}
.npt-inarticle-popular-widget {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.npt-inarticle-popular-item {
  display: flex !important;
  direction: rtl !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 58px !important;
  padding: 6px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
.npt-inarticle-popular-item:last-child { border-bottom: 0 !important; }
.npt-inarticle-popular-image {
  flex: 0 0 76px !important;
  width: 76px !important;
  height: 43px !important;
  overflow: hidden !important;
  display: block !important;
  background: #eee !important;
  border-radius: 3px !important;
  order: 0 !important;
}
.npt-inarticle-popular-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.npt-inarticle-popular-copy { min-width: 0 !important; flex: 1 !important; }
.npt-inarticle-popular-copy h3 {
  margin: 0 !important;
  font-size: .82rem !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.npt-inarticle-popular-copy h3 a { color: var(--text) !important; text-decoration: none !important; }
@media (max-width: 700px) {
  .npt-inarticle-popular-box { width: 100% !important; max-width: none !important; margin: 20px 0 !important; padding: 9px 10px !important; }
  .npt-inarticle-popular-item { min-height: 52px !important; gap: 8px !important; padding: 5px 0 !important; }
  .npt-inarticle-popular-image { flex-basis: 68px !important; width: 68px !important; height: 39px !important; }
  .npt-inarticle-popular-copy h3 { font-size: .78rem !important; line-height: 1.6 !important; }
}
@media (max-width: 420px) {
  .npt-inarticle-popular-box { margin: 18px 0 !important; padding: 8px !important; }
  .npt-inarticle-popular-image { flex-basis: 62px !important; width: 62px !important; height: 35px !important; }
  .npt-inarticle-popular-copy h3 { font-size: .74rem !important; }
}

/* MTB FINAL: article color controls - deterministic selector */
.single .npt-title,.single-post .npt-title{color:var(--npt-single-title-color)!important}
.single .entry-content,.single-post .entry-content{color:var(--npt-single-text-color)!important;background-color:var(--npt-single-text-bg)!important}


/* =========================================================
   MTB FINAL: navigation dropdown + original in-article popular
   ========================================================= */

/* Never clip desktop dropdowns. */
.mtb-nav-shell,
.mtb-primary-nav,
.mtb-primary-nav-inner {
  overflow: visible !important;
}

@media (min-width: 901px) {
  .mtb-primary-nav .npt-menu > li {
    position: relative;
  }

  .mtb-primary-nav .npt-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .mtb-primary-nav .npt-menu > li.menu-item-has-children > a {
    padding-inline-end: 34px;
  }

  .mtb-primary-nav .npt-menu > li.menu-item-has-children > a::before {
    content: "";
    position: absolute;
    inset-inline-end: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-inline-end: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    opacity: .7;
  }

  .mtb-primary-nav .npt-menu .sub-menu {
    position: absolute !important;
    top: calc(100% + 1px) !important;
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    z-index: 99999 !important;
    display: block !important;
    width: 230px;
    min-width: 230px;
    margin: 0 !important;
    padding: 7px !important;
    list-style: none;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #ddd);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
  }

  .mtb-primary-nav .npt-menu > li:hover > .sub-menu,
  .mtb-primary-nav .npt-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mtb-primary-nav .npt-menu .sub-menu li {
    position: relative;
    display: block;
    width: 100%;
  }

  .mtb-primary-nav .npt-menu .sub-menu a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px !important;
    color: var(--text, #222);
    background: transparent;
    border: 0 !important;
    border-radius: 6px;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.65;
    white-space: normal;
    text-decoration: none;
  }

  .mtb-primary-nav .npt-menu .sub-menu a:hover,
  .mtb-primary-nav .npt-menu .sub-menu .current-menu-item > a,
  .mtb-primary-nav .npt-menu .sub-menu .current-menu-ancestor > a {
    color: var(--accent, #c00);
    background: var(--soft, #f5f5f5);
  }

  .mtb-primary-nav .npt-menu .sub-menu .sub-menu {
    top: -7px !important;
    inset-inline-start: calc(100% + 5px) !important;
    inset-inline-end: auto !important;
  }

  .mtb-primary-nav .npt-menu .sub-menu li.menu-item-has-children > a {
    padding-inline-end: 30px !important;
  }

  .mtb-primary-nav .npt-menu .sub-menu li.menu-item-has-children > a::before {
    content: "";
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-inline-end: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
    opacity: .65;
  }
}

/* Mobile: clear hierarchy; every submenu sits directly below its parent. */
@media (max-width: 900px) {
  .mtb-primary-nav {
    overflow: visible !important;
  }

  .mtb-primary-nav .npt-menu {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mtb-primary-nav .npt-menu > li {
    width: 100%;
    border-bottom: 1px solid var(--border, #ddd);
  }

  .mtb-primary-nav .npt-menu > li > a {
    min-height: 48px;
    padding: 0 15px !important;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .mtb-primary-nav .npt-menu .sub-menu {
    position: static !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 10px 10px !important;
    padding: 5px !important;
    background: var(--soft, #f5f5f5);
    border: 1px solid var(--border, #ddd);
    border-radius: 8px;
    list-style: none;
  }

  .mtb-primary-nav .npt-menu .sub-menu a {
    min-height: 42px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 11px !important;
    border-radius: 6px;
    color: var(--text, #222);
    font-size: .82rem;
    line-height: 1.6;
    white-space: normal;
  }

  .mtb-primary-nav .npt-menu .sub-menu li + li {
    border-top: 1px solid var(--border, #ddd);
  }

  .mtb-primary-nav .npt-menu .sub-menu .sub-menu {
    margin: 5px 0 5px 10px !important;
    background: var(--surface, #fff);
  }
}

/* Restore the compact original in-article popular layout from the reference:
   one vertical list, small thumbnail on the right, text on the left. */
.npt-inarticle-popular-box {
  width: min(100%, 720px) !important;
  margin: 28px auto !important;
  padding: 12px 14px !important;
  background: #fff !important;
  border: 1px solid var(--border, #ddd) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-title {
  margin: 0 0 8px !important;
  padding: 0 4px 8px !important;
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  font-weight: 800 !important;
  text-align: right !important;
  border-bottom: 2px solid var(--accent, #c00) !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-widget {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-item {
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 66px !important;
  padding: 8px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-item:last-child {
  border-bottom: 0 !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-image {
  order: 0 !important;
  flex: 0 0 108px !important;
  width: 108px !important;
  min-width: 108px !important;
  height: 61px !important;
  overflow: hidden !important;
  display: block !important;
  background: #eee !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-copy {
  min-width: 0 !important;
  flex: 1 !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-copy h3 {
  margin: 0 !important;
  font-size: .9rem !important;
  line-height: 1.8 !important;
  font-weight: 800 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.npt-inarticle-popular-box .npt-inarticle-popular-copy h3 a {
  color: var(--text, #222) !important;
  text-decoration: none !important;
}

@media (max-width: 600px) {
  .npt-inarticle-popular-box {
    width: 100% !important;
    margin: 24px 0 !important;
    padding: 10px !important;
  }

  .npt-inarticle-popular-box .npt-inarticle-popular-item {
    min-height: 60px !important;
    gap: 9px !important;
    padding: 7px 0 !important;
  }

  .npt-inarticle-popular-box .npt-inarticle-popular-image {
    flex-basis: 92px !important;
    width: 92px !important;
    min-width: 92px !important;
    height: 52px !important;
  }

  .npt-inarticle-popular-box .npt-inarticle-popular-copy h3 {
    font-size: .82rem !important;
    line-height: 1.7 !important;
  }
}

/* =========================================================
   MTB Exclusive Widgets
   1) آخرین عناوین / اخبار داغ
   2) سبک زندگی
   Lightweight, RTL, no external assets.
   ========================================================= */

.npt-latest-hot-widget,
.npt-lifestyle-widget {
  direction: rtl;
  width: 100%;
  box-sizing: border-box;
  background: var(--surface,#fff);
  border: 1px solid var(--border,#ddd);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text,#222);
}

.npt-lht-tabs {
  display: flex;
  align-items: stretch;
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
}

.npt-lht-tab {
  appearance: none;
  flex: 1 1 50%;
  min-width: 0;
  border: 0;
  border-left: 1px solid #ddd;
  background: transparent;
  color: #333;
  font: inherit;
  font-weight: 800;
  font-size: .86rem;
  line-height: 1.5;
  padding: 8px 7px;
  cursor: pointer;
  text-align: center;
  transition: background .12s ease,color .12s ease;
}

.npt-lht-tab:last-child { border-left: 0; }

.npt-lht-tab.is-active {
  color: #222;
  background: #fff;
  box-shadow: inset 0 3px 0 #c40000;
}

.npt-lht-tab:hover { background: #fff; }

.npt-lht-tab-icon {
  color: #c40000;
  margin-inline-start: 5px;
  font-size: .9rem;
}

.npt-lht-panel {
  max-height: 430px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.npt-lht-panel[hidden] { display:none !important; }

.npt-lht-list { padding: 3px 10px; }

.npt-lht-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 34px;
  padding: 5px 2px;
  border-bottom: 1px solid #ececec;
  box-sizing: border-box;
}

.npt-lht-item:last-child { border-bottom: 0; }

.npt-lht-item a {
  flex: 1;
  min-width: 0;
  color: #25384b;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none;
}

.npt-lht-item a:hover { color:#c40000; }

.npt-lht-icon {
  flex: 0 0 13px;
  width: 13px;
  margin-top: 5px;
  color: #e07800;
  font-size: .78rem;
  line-height: 1;
  text-align: center;
}

/* Lifestyle */
.npt-lifestyle-widget { padding-bottom: 7px; }

.npt-lifestyle-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px 7px;
  border-bottom: 1px solid #e4e4e4;
}

.npt-lifestyle-head h2 {
  margin:0;
  padding:0 0 5px;
  border-bottom:2px solid #183a59;
  font-size: .95rem;
  line-height:1.5;
  font-weight:900;
}

.npt-lifestyle-mark {
  display:inline-block;
  margin-inline-end:5px;
  color:#173a59;
  font-size:.88rem;
}

.npt-lifestyle-more {
  color:#666;
  font-size:.72rem;
  text-decoration:none;
  white-space:nowrap;
}

.npt-lifestyle-more:hover { color:#c40000; }

.npt-lifestyle-featured {
  display:grid;
  grid-template-columns: 1fr 128px;
  gap:12px;
  align-items:start;
  padding:10px;
  border-bottom:1px solid #e4e4e4;
}

.npt-lifestyle-featured-image {
  grid-column:2;
  display:block;
  width:128px;
  height:82px;
  overflow:hidden;
  order:2;
}

.npt-lifestyle-featured-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.npt-lifestyle-featured-copy {
  grid-column:1;
  min-width:0;
  text-align:right;
}

.npt-lifestyle-featured-copy h3 {
  margin:0 0 6px;
  font-size:.86rem;
  line-height:1.75;
  font-weight:900;
}

.npt-lifestyle-featured-copy h3 a {
  color:#163a58;
  text-decoration:none;
}

.npt-lifestyle-featured-copy p {
  margin:0;
  color:#444;
  font-size:.75rem;
  line-height:1.9;
}

.npt-lifestyle-list { padding:0 10px; }

.npt-lifestyle-item {
  display:flex;
  align-items:flex-start;
  gap:7px;
  padding:5px 0;
  min-height:30px;
  border-bottom:1px solid #e8e8e8;
}

.npt-lifestyle-item:last-child { border-bottom:0; }

.npt-lifestyle-item a {
  flex:1;
  min-width:0;
  color:#24394d;
  font-size:.78rem;
  line-height:1.8;
  font-weight:700;
  text-decoration:none;
}

.npt-lifestyle-item a:hover { color:#c40000; }

.npt-lifestyle-arrow {
  color:#e07800;
  flex:0 0 10px;
  font-size:.7rem;
  margin-top:5px;
}

@media (max-width:700px) {
  .npt-lht-panel { max-height: 360px; }
  .npt-lht-item a { font-size:.79rem; }
  .npt-lht-item { min-height:32px; padding:4px 1px; }

  .npt-lifestyle-featured {
    grid-template-columns: 1fr 112px;
    gap:9px;
  }
  .npt-lifestyle-featured-image {
    width:112px;
    height:72px;
  }
  .npt-lifestyle-featured-copy h3 { font-size:.82rem; }
  .npt-lifestyle-featured-copy p { font-size:.72rem; }
  .npt-lifestyle-item a { font-size:.75rem; }
}

/* MTB v2: both exclusive-widget tabs remain visible; only their content switches. */
.npt-lht-tabs .npt-lht-tab{display:block!important}
.npt-lht-tabs{min-height:40px}
.npt-lht-panel{content-visibility:auto;contain:content}
.npt-lht-empty{padding:14px 10px;color:#777;font-size:.8rem}

/* MTB v4: Latest Titles + Hot News are always visible side-by-side. */
.npt-lht-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  direction:rtl;
  width:100%;
  align-items:stretch;
}
.npt-lht-column{
  min-width:0;
  box-sizing:border-box;
  background:var(--surface,#fff);
}
.npt-lht-column + .npt-lht-column{
  border-right:1px solid var(--border,#ddd);
}
.npt-lht-heading{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  min-height:38px;
  padding:6px 10px;
  box-sizing:border-box;
  border-bottom:2px solid #c40000;
  color:var(--text,#222);
  background:#fff;
  font-size:.86rem;
  line-height:1.5;
}
.npt-lht-heading-icon{
  flex:0 0 auto;
  color:#c40000;
  font-size:.82rem;
}
.npt-lht-column .npt-lht-list{
  max-height:430px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#888 transparent;
}
.npt-lht-column .npt-lht-item{
  margin:0;
}

@media (max-width:700px){
  .npt-lht-columns{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .npt-lht-heading{
    min-height:34px;
    padding:5px 6px;
    font-size:.72rem;
  }
  .npt-lht-heading-icon{font-size:.68rem}
  .npt-lht-column .npt-lht-list{max-height:360px}
  .npt-lht-column .npt-lht-list{padding:2px 5px}
  .npt-lht-column .npt-lht-item{gap:3px;padding:4px 1px;min-height:30px}
  .npt-lht-column .npt-lht-item a{font-size:.68rem;line-height:1.65}
  .npt-lht-column .npt-lht-icon{flex-basis:9px;width:9px;font-size:.58rem;margin-top:4px}
}


/* News article kicker/source/summary */
.npt-article-kicker{display:block;margin:0 0 8px;color:var(--accent);font-size:.98rem;line-height:1.8;font-weight:800}
.npt-article-kicker:empty{display:none}
.npt-subheadline{margin:14px 0 18px;padding:12px 16px;border-inline-start:4px solid var(--accent);background:rgba(127,127,127,.055);color:var(--muted);font-size:1rem;line-height:2;font-weight:500}
.npt-subheadline p{margin:0}
.npt-article-source{display:flex;align-items:center;gap:5px;width:100%;margin:24px 0 0;padding:12px 14px;border-top:1px solid var(--border);color:var(--muted);font-size:.9rem;line-height:1.8}
.npt-article-source a{color:inherit;text-decoration:none;font-weight:700}
.npt-article-source a:hover{text-decoration:underline}
@media(max-width:700px){.npt-article-kicker{font-size:.88rem;line-height:1.9;margin-bottom:6px}.npt-subheadline{font-size:.9rem;padding:10px 12px;line-height:2}.npt-article-source{margin-top:20px;padding:10px 12px}}
