/*
Theme Name: TechMag Fa
Theme URI: https://example.com/techmag
Author: Custom Build
Author URI: https://example.com
Description: قالب سبک، سریع و موبایل‌فرندلی برای مجله‌های خبری حوزه تکنولوژی. دارای پنل مدیریت اختصاصی، بهینه‌سازی کامل سئو و ساختار Article Schema برای اخبار.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: techmag
Tags: news, magazine, technology, rtl, custom-menu, translation-ready
*/

/* ===================== Reset ===================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:hidden;-webkit-text-size-adjust:100%}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{font:inherit;cursor:pointer;border:none;background:none}
input,textarea,select{font:inherit}

/* ===================== Variables ===================== */
:root{
	--color-bg:#ffffff;
	--color-surface:#f6f7f9;
	--color-border:#e6e8ec;
	--color-text:#191b1f;
	--color-text-light:#6b7280;
	--color-primary:#0f62fe;
	--color-primary-dark:#0043ce;
	--color-accent:#ff3d57;
	--radius:10px;
	--maxw:1240px;
	--font:-apple-system,BlinkMacSystemFont,"Segoe UI","Vazirmatn","Tahoma",sans-serif;
}

body{
	font-family:var(--font);
	background:var(--color-bg);
	color:var(--color-text);
	direction:rtl;
	line-height:1.8;
	font-size:16px;
	overflow-x:clip;
	max-width:100%;
}

.container{max-width:var(--maxw);margin:0 auto;padding:0 16px}

/* ===================== Skip link ===================== */
.skip-link{position:absolute;top:-999px;right:0;background:var(--color-primary);color:#fff;padding:10px 16px;z-index:9999}
.skip-link:focus{top:0}

/* ===================== Topbar / Breaking ===================== */
.tm-breaking{background:var(--color-accent);color:#fff;overflow:hidden}
.tm-breaking .container{display:flex;align-items:center;gap:12px;height:40px}
.tm-breaking-label{flex:0 0 auto;font-weight:700;font-size:13px;padding:2px 10px;background:rgba(0,0,0,.15);border-radius:6px}
.tm-breaking-track{flex:1 1 auto;overflow:hidden;white-space:nowrap;position:relative;height:20px}
.tm-breaking-track ul{display:inline-flex;gap:40px;position:absolute;top:0;animation:tm-marquee 22s linear infinite}
.tm-breaking-track:hover ul{animation-play-state:paused}
.tm-breaking-track a{font-size:13px}
@keyframes tm-marquee{from{transform:translateX(100%)}to{transform:translateX(-100%)}}

/* ===================== Header ===================== */
.tm-header{border-bottom:1px solid var(--color-border);position:relative;background:#fff;z-index:500}
.tm-header.is-sticky{position:sticky;top:0}
.tm-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;height:76px}
.tm-logo{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800}
.tm-logo img{max-height:44px;width:auto}
.tm-logo span{color:var(--color-primary)}

.tm-nav{display:flex;align-items:center;gap:4px}
.tm-nav ul{display:flex;align-items:center;gap:4px}
.tm-nav a{padding:10px 14px;border-radius:8px;font-weight:600;font-size:15px;display:block}
.tm-nav a:hover{background:var(--color-surface);color:var(--color-primary)}
.tm-nav .current-menu-item>a{color:var(--color-primary)}

.tm-header-actions{display:flex;align-items:center;gap:8px}
.tm-icon-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:var(--color-text)}
.tm-icon-btn:hover{background:var(--color-surface)}
.tm-icon-btn svg{width:20px;height:20px}

.tm-menu-toggle{display:none;flex-direction:column;gap:5px;width:40px;height:40px;align-items:center;justify-content:center;border-radius:8px}
.tm-menu-toggle span{display:block;width:22px;height:2px;background:var(--color-text);border-radius:2px}
.tm-menu-toggle:hover{background:var(--color-surface)}

.tm-search-panel{position:fixed;inset:0;background:rgba(15,17,20,.5);display:none;align-items:flex-start;justify-content:center;z-index:900}
.tm-search-panel.is-open{display:flex}
.tm-search-box{background:#fff;margin-top:80px;padding:20px;border-radius:var(--radius);width:min(560px,92%);display:flex;gap:10px}
.tm-search-box input{flex:1;border:1px solid var(--color-border);border-radius:8px;padding:12px 14px;font-size:15px}
.tm-search-box button{background:var(--color-primary);color:#fff;border-radius:8px;padding:0 18px}

/* ===================== Buttons ===================== */
.tm-btn{display:inline-flex;align-items:center;gap:6px;background:var(--color-primary);color:#fff;padding:10px 18px;border-radius:8px;font-weight:600;font-size:14px}
.tm-btn:hover{background:var(--color-primary-dark)}

/* ===================== Category badge ===================== */
.tm-badge{display:inline-flex;align-items:center;font-size:12px;font-weight:700;color:var(--color-primary);background:rgba(15,98,254,.08);padding:4px 10px;border-radius:6px}

/* ===================== Home grid ===================== */
.tm-section{padding-top:36px;padding-bottom:36px}
.tm-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.tm-section-head h2{font-size:20px;font-weight:800;border-right:4px solid var(--color-accent);padding-right:10px}
.tm-section-head a{font-size:13px;color:var(--color-text-light);font-weight:600}

/* ===================== Hero: bento grid (Digiato-style) =====================
   Desktop: 3 columns, big card in the middle + two stacked cards on each side.
   Tablet/mobile: a horizontal swipe carousel (CSS scroll-snap, no JS). */
.tm-section-slider{padding-top:24px;padding-bottom:12px}
.tm-section-latest{padding-top:24px}

.tm-bento{display:grid;grid-template-columns:1fr 1.25fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:16px;height:500px}
.tm-bento.is-simple{grid-template-columns:repeat(var(--n,1),minmax(0,1fr));grid-template-rows:minmax(0,1fr);height:340px}

/* RTL grid: column 1 is the right-hand one */
.tm-bento:not(.is-simple) .tm-bento-item:nth-child(1){grid-column:2;grid-row:1/3}
.tm-bento:not(.is-simple) .tm-bento-item:nth-child(2){grid-column:1;grid-row:1}
.tm-bento:not(.is-simple) .tm-bento-item:nth-child(3){grid-column:1;grid-row:2}
.tm-bento:not(.is-simple) .tm-bento-item:nth-child(4){grid-column:3;grid-row:1}
.tm-bento:not(.is-simple) .tm-bento-item:nth-child(5){grid-column:3;grid-row:2}

/* The card is a flex container so the body can sit at the bottom WITHOUT being
   positioned; that way the title link's ::after stretches over the whole card. */
.tm-bento-item{position:relative;display:flex;align-items:flex-end;min-width:0;overflow:hidden;border-radius:18px;background:#0f1114;isolation:isolate}
.tm-bento-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .5s ease}
.tm-bento-item:hover img{transform:scale(1.05)}
.tm-bento-item::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.55) 0%,rgba(0,0,0,0) 55%);pointer-events:none}
.tm-bento-body{z-index:2;width:100%;padding:16px 16px 14px}

/* Per-line highlighted title: each wrapped line gets its own dark band */
.tm-bento-title{font-size:16px;font-weight:800;line-height:2.15}
.tm-bento-item:nth-child(1) .tm-bento-title{font-size:20px}
.tm-bento-title a{color:#fff;background:rgba(8,10,16,.74);padding:3px 10px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.tm-bento-title a::after{content:"";position:absolute;inset:0;z-index:1}
.tm-bento-item:hover .tm-bento-title a{background:rgba(255,61,87,.9)}
.tm-bento-meta{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:3px 10px;border-radius:5px;font-size:11.5px;font-weight:700;color:#fff;background:rgba(8,10,16,.74)}
.tm-bento-meta i{width:1px;height:11px;background:rgba(255,255,255,.55)}

.tm-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.tm-card{background:#fff;border:1px solid var(--color-border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.tm-card:hover{box-shadow:0 10px 24px rgba(15,17,20,.08);transform:translateY(-2px)}
.tm-card-thumb{aspect-ratio:16/10;overflow:hidden;position:relative}
.tm-card-thumb img{width:100%;height:100%;object-fit:cover}
.tm-card-body{padding:14px}
.tm-card-body .tm-badge{margin-bottom:8px}
.tm-card h3{font-size:15.5px;font-weight:700;line-height:1.7;margin-bottom:8px}
.tm-card-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--color-text-light)}
.tm-card-meta span{display:flex;align-items:center;gap:4px}
.tm-card-meta svg{width:14px;height:14px}

/* ===================== Layout with sidebar ===================== */
.tm-layout{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:start}
.tm-content-list{display:flex;flex-direction:column;gap:18px}
.tm-row-card{display:flex;gap:20px;padding:20px 0;border-bottom:1px solid var(--color-border)}
.tm-row-card:first-child{padding-top:0}
.tm-row-thumb{position:relative;flex:0 0 260px;width:260px;aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:var(--color-surface);align-self:flex-start}
.tm-row-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.tm-row-card:hover .tm-row-thumb img{transform:scale(1.05)}
.tm-row-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.tm-row-top{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--color-text-light);margin-bottom:6px}
.tm-row-cat{font-weight:800;color:var(--color-accent)}
.tm-row-cat:hover{text-decoration:underline}
.tm-row-sep{width:4px;height:4px;border-radius:50%;background:#c3c7cf}
.tm-row-card h3{font-size:19px;font-weight:800;line-height:1.75;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tm-row-card h3 a:hover{color:var(--color-primary)}
.tm-row-card p{color:var(--color-text-light);font-size:14px;line-height:1.95;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tm-row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:auto;padding-top:10px;font-size:12.5px;color:var(--color-text-light)}
.tm-row-meta span{display:flex;align-items:center;gap:5px}
.tm-row-meta svg{width:14px;height:14px}
.tm-row-author{font-weight:700;color:var(--color-text)}
.tm-row-author img{width:24px;height:24px;border-radius:50%;object-fit:cover}

.tm-sidebar{position:sticky;top:96px}

.tm-widget{background:var(--color-surface);border-radius:var(--radius);padding:18px;margin-bottom:20px}
.tm-widget h3{font-size:15px;font-weight:800;margin-bottom:14px;border-right:3px solid var(--color-accent);padding-right:8px}
.tm-widget ul{display:flex;flex-direction:column;gap:12px}
.tm-widget .tm-mini-card{display:flex;gap:10px;align-items:flex-start}
.tm-widget .tm-mini-num{flex:0 0 26px;height:26px;border-radius:6px;background:var(--color-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.tm-widget .tm-mini-card h4{font-size:13.5px;font-weight:600;line-height:1.6}

.tm-ad-slot{background:var(--color-surface);border:1px dashed var(--color-border);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;min-height:100px;margin-bottom:20px;overflow:hidden;font-size:12px;color:var(--color-text-light)}

/* ===================== Pagination ===================== */
.tm-pagination{display:flex;justify-content:center;gap:8px;margin-top:30px}
.tm-pagination a,.tm-pagination span{min-width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--color-border);font-size:14px;font-weight:600}
.tm-pagination .current{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}
.tm-pagination a:hover{border-color:var(--color-primary);color:var(--color-primary)}

/* ===================== Single post ===================== */
/* Post header: text on the right, big rounded image on the left */
.tm-post-head{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:1fr 1fr;grid-template-areas:"title media" "rest media";column-gap:32px;padding:16px 0 28px}
.tm-post-title{grid-area:title;align-self:end}
.tm-post-rest{grid-area:rest;align-self:start}
.tm-post-media{grid-area:media;border-radius:20px;overflow:hidden;background:var(--color-surface);aspect-ratio:16/10;align-self:center}
.tm-post-media img{width:100%;height:100%;object-fit:cover}
.tm-post-head.no-media{grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:"title" "rest"}
.tm-post-head.no-media .tm-post-title{align-self:auto}

.tm-post-cat{display:inline-block;font-size:13px;font-weight:800;color:var(--color-accent);margin-bottom:6px}
.tm-post-cat:hover{text-decoration:underline}
.tm-post-title h1{font-size:clamp(22px,2.6vw,34px);font-weight:800;line-height:1.7;margin-bottom:12px}
.tm-post-lead{font-size:15.5px;line-height:2.1;color:#4a505c;margin-bottom:18px}

.tm-post-author{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.tm-post-author img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.tm-post-author strong{display:block;font-size:14px;font-weight:800;line-height:1.6}
.tm-post-author small{display:block;font-size:12.5px;color:var(--color-text-light);line-height:1.6}

.tm-post-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tm-tool{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#5b6270;transition:background .2s,color .2s}
.tm-tool:hover{background:var(--color-surface);color:var(--color-accent)}
.tm-tool svg{width:19px;height:19px}

.tm-post-main{min-width:0}
.tm-single-content{font-size:17px;line-height:2.2;color:#2a2f3a}
.tm-single-content p{margin-bottom:22px}
.tm-single-content h2,.tm-single-content h3{font-weight:800;line-height:1.7;margin:32px 0 14px}
.tm-single-content h2{font-size:22px;border-right:4px solid var(--color-accent);padding-right:12px}
.tm-single-content h3{font-size:19px}
.tm-single-content img{border-radius:14px;margin:18px auto}
.tm-single-content figure{margin:20px 0}
.tm-single-content figcaption{font-size:13px;color:var(--color-text-light);text-align:center;margin-top:6px}
.tm-single-content blockquote{position:relative;border:0;background:none;padding:6px 66px 6px 0;margin:26px 0;font-weight:700;font-size:18px;line-height:2.1}
.tm-single-content blockquote::before{content:"";position:absolute;right:0;top:4px;width:46px;height:38px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 38'%3E%3Cpath fill='%23242a38' d='M0 38V20C0 8 6 2 18 0v8C11 10 9 14 9 19h9v19H0Zm26 0V20C26 8 32 2 44 0v8c-7 2-9 6-9 11h9v19H26Z'/%3E%3C/svg%3E") no-repeat center/contain}
.tm-single-content blockquote p{margin-bottom:0}
.tm-single-content ul,.tm-single-content ol{margin:10px 30px 22px}
.tm-single-content ul li{list-style:disc}
.tm-single-content ol li{list-style:decimal}
.tm-single-content a{color:var(--color-primary);text-decoration:underline}

.tm-ad-wrap{margin:24px 0}
.tm-ad-label{display:block;text-align:center;font-size:11.5px;color:#9aa0ab;margin-bottom:4px}
.tm-ad-wrap .tm-ad-slot{margin-bottom:0}

/* Floating action pill (comments / share / copy link) */
.tm-float-bar{position:fixed;bottom:18px;left:50%;z-index:450;display:flex;align-items:center;gap:2px;padding:6px 10px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--color-border);border-radius:40px;box-shadow:0 10px 30px rgba(15,17,20,.14);opacity:0;pointer-events:none;transform:translate(-50%,16px);transition:opacity .25s,transform .25s}
.tm-float-bar.is-visible{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.tm-float-bar .tm-tool{width:42px;height:42px;position:relative}
.tm-float-count{position:absolute;top:2px;left:0;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--color-accent);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center}

.tm-toast{position:fixed;bottom:84px;left:50%;transform:translate(-50%,10px);background:#191b1f;color:#fff;font-size:13px;padding:9px 18px;border-radius:24px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:600}
.tm-toast.is-visible{opacity:1;transform:translate(-50%,0)}

.tm-tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.tm-tags a{font-size:12.5px;background:var(--color-surface);padding:6px 12px;border-radius:20px;color:var(--color-text-light)}
.tm-tags a:hover{color:var(--color-primary)}

.tm-author-box{display:flex;gap:14px;background:var(--color-surface);border-radius:var(--radius);padding:18px;margin:26px 0}
.tm-author-box img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.tm-author-box h4{font-size:15px;font-weight:800;margin-bottom:4px}
.tm-author-box p{font-size:13px;color:var(--color-text-light)}

.tm-related{margin-top:40px}

/* ===================== Comments ===================== */
.tm-comments{margin-top:40px}
.tm-comments h3{font-size:18px;font-weight:800;margin-bottom:18px}
.comment-list{display:flex;flex-direction:column;gap:16px}
.comment-list .comment-body{background:var(--color-surface);border-radius:var(--radius);padding:16px}
.comment-respond input,.comment-respond textarea{width:100%;border:1px solid var(--color-border);border-radius:8px;padding:12px;margin-bottom:12px}
.comment-respond textarea{min-height:120px}

/* ===================== Footer ===================== */
.tm-footer{background:#14161a;color:#c7cad1;margin-top:50px}
.tm-footer-top{padding:44px 0;display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:30px}
.tm-footer h4{color:#fff;font-size:15px;font-weight:800;margin-bottom:16px}
.tm-footer p{font-size:13.5px;line-height:1.9;color:#9297a3}
.tm-footer ul{display:flex;flex-direction:column;gap:10px}
.tm-footer a{font-size:13.5px;color:#c7cad1}
.tm-footer a:hover{color:#fff}
.tm-social{display:flex;gap:10px;margin-top:14px}
.tm-social a{width:36px;height:36px;border-radius:50%;background:#1f2229;display:flex;align-items:center;justify-content:center}
.tm-social a:hover{background:var(--color-primary)}
.tm-social svg{width:16px;height:16px}
.tm-footer-bottom{border-top:1px solid #23262d;padding:18px 0;display:flex;align-items:center;justify-content:space-between;font-size:12.5px;color:#8b8f99}

.tm-back-top{position:fixed;bottom:24px;left:24px;width:44px;height:44px;border-radius:50%;background:var(--color-primary);color:#fff;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;transform:translateY(10px);z-index:400}
.tm-back-top.is-visible{opacity:1;pointer-events:auto;transform:translateY(0)}
.tm-back-top svg{width:18px;height:18px}

/* ===================== 404 / Empty ===================== */
.tm-empty{text-align:center;padding:80px 0}
.tm-empty h1{font-size:60px;font-weight:800;color:var(--color-primary)}
.tm-empty p{color:var(--color-text-light);margin:14px 0 22px}

/* ===================== Breadcrumb ===================== */
.tm-breadcrumb{font-size:13px;color:var(--color-text-light);padding:14px 0}
.tm-breadcrumb a{color:var(--color-text-light)}
.tm-breadcrumb a:hover{color:var(--color-primary)}
.tm-breadcrumb span.sep{margin:0 6px}

/* ===================== Full width page template ===================== */
.tm-fullwidth .tm-single-content{max-width:100%}

/* ===================== Responsive ===================== */
@media (max-width:1024px){
	.tm-grid{grid-template-columns:repeat(3,1fr)}
	.tm-layout{grid-template-columns:1fr 280px}
	.tm-bento{height:440px}
	.tm-bento-item:nth-child(1) .tm-bento-title{font-size:18px}
	.tm-post-head{column-gap:22px}
	.tm-row-thumb{flex-basis:210px;width:210px}
	.tm-footer-top{grid-template-columns:1.2fr 1fr 1fr}
}
@media (max-width:860px){
	.tm-nav{display:none}
	.tm-menu-toggle{display:flex}
	.tm-layout{grid-template-columns:1fr}
	.tm-sidebar{position:static}
	/* hero: swipe carousel */
	.tm-bento,.tm-bento.is-simple{display:flex;height:auto;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 16px;margin:0 -16px;padding:0 16px 4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
	.tm-bento::-webkit-scrollbar{display:none}
	.tm-bento-item,.tm-bento:not(.is-simple) .tm-bento-item:nth-child(n){flex:0 0 46%;aspect-ratio:4/3;scroll-snap-align:start;grid-column:auto;grid-row:auto}
	.tm-bento-item:nth-child(1) .tm-bento-title{font-size:16px}
	/* post header: title, image, then details */
	.tm-post-head,.tm-post-head.no-media{grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:"title" "media" "rest";row-gap:16px;padding:6px 0 20px}
	.tm-post-title{align-self:auto}
	.tm-post-media{border-radius:16px}
	.tm-grid{grid-template-columns:repeat(2,1fr)}
	.tm-footer-top{grid-template-columns:1fr 1fr}

	.tm-nav.is-open{display:block;position:fixed;inset:0 0 0 auto;width:280px;background:#fff;height:100vh;top:0;right:0;z-index:1000;padding:70px 20px 20px;box-shadow:-10px 0 30px rgba(0,0,0,.15)}
	.tm-nav.is-open ul{flex-direction:column;align-items:stretch;gap:2px}
	.tm-nav.is-open a{padding:14px}
	.tm-nav-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:999}
	.tm-nav-overlay.is-open{display:block}
	.tm-nav-close{display:flex;position:absolute;top:16px;left:16px}
}
@media (max-width:560px){
	.tm-grid{grid-template-columns:1fr}
	.tm-footer-top{grid-template-columns:1fr}
	.tm-row-card{gap:12px;padding:16px 0}
	.tm-row-thumb{flex-basis:118px;width:118px;aspect-ratio:1/1}
	.tm-row-card h3{font-size:15px;line-height:1.75}
	.tm-row-card p{display:none}
	.tm-row-meta{gap:10px;padding-top:6px}
	.tm-row-meta .tm-row-author img{display:none}
	.tm-bento-item,.tm-bento:not(.is-simple) .tm-bento-item:nth-child(n){flex-basis:84%}
	.tm-bento-title{font-size:15px;line-height:2.1}
	.tm-bento-body{padding:12px 12px 12px}
	.tm-bento,.tm-bento.is-simple{scroll-padding:0 14px;margin:0 -14px;padding:0 14px 4px}
	.tm-single-content{font-size:16.5px;line-height:2.1}
	.tm-single-content blockquote{padding-right:54px;font-size:16.5px}
	.tm-single-content blockquote::before{width:36px;height:30px}
	.tm-float-bar{bottom:14px}
	.container{padding:0 14px}
}

@media (prefers-reduced-motion:reduce){
	.tm-bento-item img,.tm-float-bar,.tm-toast{transition:none}
	.tm-bento-item:hover img{transform:none}
}


/* ===================== Header ads: یک ستون عمودی، هر جایگاه 728x90 ===================== */
.tm-header-ads{background:var(--color-bg);border-bottom:1px solid var(--color-border);padding:8px 0;position:relative;z-index:490}
.tm-header-ads-grid{display:flex;flex-direction:column;align-items:center;gap:8px}
.tm-header-ad-item,.tm-header-ad{
	width:728px;max-width:100%;height:90px;
	aspect-ratio:728/90;
	display:flex;align-items:center;justify-content:center;
	overflow:hidden;border-radius:8px;min-width:0;flex:0 0 auto;
}
.tm-header-ad-item>*,.tm-header-ad>*{max-width:100%}
.tm-header-ad-item a,.tm-header-ad a{display:block;width:100%;height:100%}
.tm-header-ad-item img,.tm-header-ad-item video,.tm-header-ad img,.tm-header-ad video{
	display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;object-fit:contain;
}
.tm-header-ad-item iframe,.tm-header-ad iframe{display:block;width:100%;height:100%;max-width:100%;border:0}
/* روی صفحه‌های کوچک‌تر از 728 پیکسل، جایگاه با همان نسبت 728:90 کوچک می‌شود */
@media (max-width:760px){
	.tm-header-ad-item,.tm-header-ad{height:auto}
}
/* ثابت ماندن تبلیغات زیر منو (دسکتاپ، فقط اگر در تنظیمات فعال شود). ارتفاع منو ۷۶ پیکسل + ۱ پیکسل خط پایین */
@media (min-width:861px){
	.tm-header-ads.is-sticky{position:sticky;top:77px}
	body.admin-bar .tm-header.is-sticky{top:32px}
	body.admin-bar .tm-header-ads.is-sticky{top:109px}
}
@media (max-width:860px){
	.tm-header-ads{position:static}
}
:root[data-theme="dark"] .tm-header-ads{background:var(--color-bg);border-color:var(--color-border)}
