/* ============================================================
 * om-single.css
 * استخراج‌شده از single.php (بلاک‌های om-base-css و om-singular-css)
 * دیگر هیچ مقدار PHP داخل این فایل تزریق نمی‌شود.
 * جهت راست‌به‌چپ/چپ‌به‌راست با کلاس‌های .om-dir-rtl / .om-dir-ltr
 * روی <main> (و روی .om-hero-wrap در حالت المنتور) تعیین می‌شود
 * و بقیه‌ی عناصر با CSS logical properties از آن ارث می‌برند.
 * ============================================================ */

:root{
	--om-h-h:calc(var(--topBarH,0px) + var(--omhH,90px) + 4px);
	--om-br:#004851;
	--om-ac:#92842c;
	--om-cd:#fff;
	--om-tx:#0f172a;
	--om-mu:#64748b;
	--om-bd:rgba(15,23,42,.08);
	--om-rd:14px;
	--om-mx:1280px;
	--om-gutter:16px;
	--om-bg:#f7f8f9
}
@media(min-width:768px){:root{--om-gutter:24px}}
@media(min-width:1200px){:root{--om-gutter:32px}}

/* جهت‌دهی راست‌به‌چپ/چپ‌به‌راست: فقط همین‌جا و روی خود عنصر ریشه تنظیم می‌شود */
.om-dir-rtl{direction:rtl}
.om-dir-ltr{direction:ltr}

/* ---------- Hero (breadcrumb / title) ---------- */
main.om-site-main.om-has-offset{padding-top:var(--om-h-h) !important}

.om-hero-wrap{padding-top:var(--om-h-h);width:100%;max-width:var(--om-mx);margin:0 auto;padding-left:var(--om-gutter);padding-right:var(--om-gutter);box-sizing:border-box}

.om-hero{width:100%;max-width:100%;margin:6px 0 10px;padding:7px 14px;background:#fff;border:1px solid var(--om-bd);border-radius:10px;text-align:start;box-sizing:border-box;display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:36px}
.om-hero .om-hero-title{margin:0;font-size:clamp(14px,1.3vw,17px);line-height:1.4;color:var(--om-br);font-weight:700;letter-spacing:-.1px;word-break:break-word;overflow-wrap:anywhere;flex:0 1 auto;min-width:0;display:inline-flex;align-items:center;gap:8px}
.om-hero .om-hero-title:before{content:"";display:inline-block;width:6px;height:6px;background:var(--om-ac);border-radius:50%;flex-shrink:0;box-shadow:0 0 0 3px rgba(146,132,44,.15)}
.om-hero .om-divider{display:inline-block;width:1px;height:14px;background:var(--om-bd);flex-shrink:0}
.om-hero .om-bc{flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden;font-size:11.5px;line-height:1.5;color:var(--om-mu);white-space:nowrap;text-overflow:ellipsis}
.om-hero .om-bc .rank-math-breadcrumb,.om-hero .om-bc .rank-math-breadcrumb p{margin:0;padding:0;background:none !important;border:none !important;font-size:11.5px;line-height:1.5;color:var(--om-mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline}
.om-hero .om-bc a{color:var(--om-mu);text-decoration:none;font-weight:500;transition:color .15s ease}
.om-hero .om-bc a:hover{color:var(--om-ac)}
.om-hero .om-bc .separator{margin:0 4px;opacity:.5;color:var(--om-mu);unicode-bidi:embed;direction:ltr;font-size:10px}
.om-hero .om-bc .last{color:var(--om-tx);font-weight:600}

.om-hero-featured{width:100%;max-width:100%;margin:0 0 14px;padding:0;box-sizing:border-box}
.om-hero-featured figure{margin:0;border-radius:12px;overflow:hidden;border:1px solid var(--om-bd);background:#fff;max-height:none !important;display:flex;align-items:center;justify-content:center}
.om-hero-featured figure img{width:100%;max-width:100%;height:auto !important;max-height:none !important;display:block;object-fit:contain !important;border-radius:12px}

@media(max-width:768px){
	.om-hero{padding:6px 12px;margin:5px 0 8px;gap:8px;min-height:32px;border-radius:8px}
	.om-hero .om-hero-title{font-size:clamp(13px,3.8vw,15px);gap:6px}
	.om-hero .om-hero-title:before{width:5px;height:5px;box-shadow:0 0 0 2px rgba(146,132,44,.15)}
	.om-hero .om-bc{font-size:10.5px;width:100%;flex-basis:100%}
	.om-hero .om-bc .rank-math-breadcrumb,.om-hero .om-bc .rank-math-breadcrumb p{font-size:10.5px}
	.om-hero .om-divider{display:none}
	.om-hero-featured{margin-bottom:10px}
	.om-hero-featured figure,.om-hero-featured figure img{border-radius:10px}
}
@media(max-width:480px){.om-hero{padding:5px 10px}}

/* ---------- Singular layout (non-Elementor) ---------- */
main.om-site-main{background:var(--om-bg);padding-bottom:var(--om-gutter)}
main.om-site-main.om-has-offset{padding-top:var(--om-h-h) !important}
main.om-site-main > .om-hero{max-width:var(--om-mx) !important;width:calc(100% - (var(--om-gutter) * 2)) !important;margin-left:auto !important;margin-right:auto !important;box-sizing:border-box}

.om-site-main .om-shell{max-width:var(--om-mx) !important;width:100% !important;margin:0 auto !important;padding:0 var(--om-gutter) var(--om-gutter) !important;box-sizing:border-box}
.om-site-main .om-shell,.om-site-main .om-layout,.om-site-main .om-main,.om-site-main .om-page-content,.om-site-main .om-aside,.om-site-main .om-aside__box{max-width:100%;min-width:0}

.om-site-main .om-layout{display:grid;gap:16px;align-items:start;grid-template-columns:44px minmax(0,1fr) minmax(260px,320px)}
.om-site-main .om-layout.om-layout--no-sidebar{grid-template-columns:44px minmax(0,1fr)}
.om-site-main .om-share-col{order:1;position:sticky;top:calc(var(--om-h-h,0px) + 14px);align-self:start;height:fit-content;z-index:2}
.om-site-main .om-main{order:2}
.om-site-main .om-aside{order:3;position:sticky;top:calc(var(--om-h-h,0px) + 14px);width:100%;max-width:100%;z-index:1}

.om-site-main .om-article-featured{background:#fff;border:1px solid var(--om-bd);border-radius:var(--om-rd);padding:10px;margin:0 0 12px;box-sizing:border-box;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.om-site-main .om-article-featured figure{margin:0;width:100%;border-radius:calc(var(--om-rd) - 4px);overflow:hidden;background:linear-gradient(135deg,#f8fafc,#eef1f2);border:1px solid rgba(15,23,42,.06);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}
.om-site-main .om-article-featured img{width:100%;max-width:100%;height:auto !important;max-height:none !important;object-fit:contain !important;display:block;border:none !important;border-radius:calc(var(--om-rd) - 4px);background:#fff}
.om-site-main .om-article-featured figcaption{margin:8px 4px 0;font-size:12px;line-height:1.7;color:var(--om-mu);text-align:center}

.om-site-main .om-meta-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:7px 12px;margin:0 0 12px;background:#fff;border:1px solid var(--om-bd);border-radius:8px;font-size:11.5px;color:var(--om-mu);text-align:start}
.om-site-main .om-meta-bar .om-mi{display:inline-flex;align-items:center;gap:4px}
.om-site-main .om-meta-bar .om-mi svg{width:12px;height:12px;fill:var(--om-ac);opacity:.85;flex-shrink:0}
.om-site-main .om-meta-bar a{color:var(--om-br);font-weight:600;text-decoration:none}
.om-site-main .om-meta-bar a:hover{color:var(--om-ac)}
.om-site-main .om-meta-bar .om-mi-cat a{color:var(--om-ac)}
.om-site-main .om-meta-bar .om-mi-cat a:hover{color:var(--om-br)}

.om-site-main .om-bc-only{display:flex;align-items:center;padding:7px 12px;margin:0 0 10px;background:#fff;border:1px solid var(--om-bd);border-radius:8px;font-size:11.5px;overflow:hidden}
.om-site-main .om-bc-only .rank-math-breadcrumb,.om-site-main .om-bc-only .rank-math-breadcrumb p{margin:0;font-size:11.5px;color:var(--om-mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-site-main .om-bc-only a{color:var(--om-mu);text-decoration:none;font-weight:500}
.om-site-main .om-bc-only a:hover{color:var(--om-ac)}
.om-site-main .om-bc-only .separator{margin:0 4px;opacity:.5;font-size:10px}
.om-site-main .om-bc-only .last{color:var(--om-tx);font-weight:600}

.om-site-main .om-page-content{background:#fff;border:1px solid var(--om-bd);border-radius:var(--om-rd);padding:clamp(14px,1.8vw,22px);margin:0 0 18px;color:var(--om-tx);text-align:start;overflow:visible;position:relative;word-break:break-word;overflow-wrap:anywhere}
.om-site-main .om-page-content > p,.om-site-main .om-page-content > li,.om-site-main .om-page-content > blockquote,.om-site-main .om-page-content > h1,.om-site-main .om-page-content > h2,.om-site-main .om-page-content > h3,.om-site-main .om-page-content > h4,.om-site-main .om-page-content > h5,.om-site-main .om-page-content > h6{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.om-site-main .om-page-content :where(p,li){font-size:15.5px;line-height:1.9;color:var(--om-tx);text-align:start}
.om-site-main .om-page-content :where(h2,h3,h4){color:var(--om-br);font-weight:800;line-height:1.4;margin:22px 0 10px;text-align:start}
.om-site-main .om-page-content :where(h2){font-size:clamp(18px,1.6vw,22px)}
.om-site-main .om-page-content :where(h3){font-size:clamp(16px,1.4vw,19px)}
.om-site-main .om-page-content :where(h4){font-size:clamp(15px,1.2vw,17px)}
.om-site-main .om-page-content a{color:var(--om-br);text-decoration:none;font-weight:700;border-bottom:1px dashed rgba(0,72,81,.3)}
.om-site-main .om-page-content a:hover{color:var(--om-ac);border-bottom-color:rgba(146,132,44,.5)}
.om-site-main .om-page-content img{max-width:100%;height:auto;border-radius:10px;border:1px solid var(--om-bd)}
.om-site-main .om-page-content table:not(.woocommerce-checkout-review-order-table):not(.shop_table){display:block;width:100%;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.om-site-main .om-page-content iframe,.om-site-main .om-page-content .gform_wrapper,.om-site-main .om-page-content .gform_wrapper *,.om-site-main .om-page-content .woocommerce,.om-site-main .om-page-content .woocommerce *{max-width:none;overflow-wrap:normal;word-break:normal}
.om-site-main .om-page-content .gform_wrapper input,.om-site-main .om-page-content .gform_wrapper select,.om-site-main .om-page-content .gform_wrapper textarea{max-width:100%;box-sizing:border-box;overflow-wrap:normal;word-break:normal}
.om-site-main .om-page-content .gform_wrapper a{border-bottom:none;font-weight:inherit}

.om-site-main .om-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px;padding-top:12px;border-top:1px dashed var(--om-bd)}
.om-site-main .om-tags .om-tag-label{font-size:12.5px;font-weight:700;color:var(--om-br);align-self:center;margin-inline-end:4px}
.om-site-main .om-tags a{display:inline-flex;align-items:center;padding:4px 10px;background:rgba(0,72,81,.05);color:var(--om-br);border:1px solid var(--om-bd);border-radius:999px;font-size:12px;font-weight:600;text-decoration:none !important;border-bottom:1px solid var(--om-bd) !important;transition:all .2s ease}
.om-site-main .om-tags a:hover{background:var(--om-br);color:#fff;border-color:var(--om-br)}

.om-site-main .om-share-box{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 5px;background:#fff;border:1px solid var(--om-bd);border-radius:12px;box-shadow:0 8px 20px rgba(15,23,42,.035)}
.om-site-main .om-share-box a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--om-bd);background:#fff;text-decoration:none !important;border-bottom:1px solid var(--om-bd) !important;transition:all .2s ease;cursor:pointer;position:relative}
.om-site-main .om-share-box a:hover{transform:translateY(-2px);border-color:var(--om-ac);box-shadow:0 3px 10px rgba(146,132,44,.15)}
.om-site-main .om-share-box a:focus-visible{outline:2px solid rgba(146,132,44,.45);outline-offset:2px}
.om-site-main .om-share-box a svg,.om-site-main .om-share-box a img{width:16px;height:16px;display:block}
.om-site-main .om-share-box .om-copy-ok{position:absolute;background:var(--om-br);color:#fff;font-size:10.5px;padding:3px 8px;border-radius:6px;inset-inline-start:44px;top:50%;transform:translateY(-50%);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease;font-weight:700;z-index:9999}
.om-site-main .om-share-box .om-copy-ok.show{opacity:1}

.om-site-main .om-aside__box{background:#fff;border:1px solid var(--om-bd);border-radius:var(--om-rd);padding:14px;width:100%;max-width:100%;overflow:hidden;text-align:start;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.om-site-main .om-aside__box,.om-site-main .om-aside__box *{font-family:inherit !important}

.om-site-main .omW{padding:12px 10px;border:1px solid var(--om-bd);border-radius:12px;background:rgba(0,72,81,.03);max-width:100%;overflow:hidden;text-align:start}
.om-site-main .omW+.omW{margin-top:10px}
.om-site-main .omW__t{margin:0 0 8px;font-size:14px;font-weight:800;color:var(--om-br);line-height:1.4;padding-inline-start:10px;border-inline-start:3px solid var(--om-ac)}
.om-site-main .omW :where(a){color:var(--om-br);text-decoration:none;font-weight:700}
.om-site-main .omW :where(a:hover){color:var(--om-ac)}
.om-site-main .omW :where(ul){margin:0;padding-inline-start:18px}
.om-site-main .omW :where(li){margin:6px 0;line-height:1.7;font-size:13.5px}

.om-site-main .om-related{background:#fff;border:1px solid var(--om-bd);border-radius:var(--om-rd);padding:clamp(14px,1.8vw,22px);margin:0 0 18px;text-align:start}
.om-site-main .om-related-head{display:flex;align-items:center;gap:8px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px dashed var(--om-bd)}
.om-site-main .om-related-head svg{width:18px;height:18px;fill:var(--om-ac);flex-shrink:0}
.om-site-main .om-related-head h3{margin:0;font-size:15px;font-weight:800;color:var(--om-br)}
.om-site-main .om-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.om-site-main .om-related-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--om-bd);border-radius:10px;overflow:hidden;transition:all .2s ease;text-decoration:none !important;border-bottom:1px solid var(--om-bd) !important}
.om-site-main .om-related-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(2,6,23,.08);border-color:rgba(146,132,44,.3)}
.om-site-main .om-related-thumb{aspect-ratio:16/10;background:#eef1f2;overflow:hidden}
.om-site-main .om-related-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.om-site-main .om-related-card:hover .om-related-thumb img{transform:scale(1.04)}
.om-site-main .om-related-body{padding:10px}
.om-site-main .om-related-title{font-size:13px;font-weight:700;line-height:1.6;color:var(--om-tx);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 4px}
.om-site-main .om-related-card:hover .om-related-title{color:var(--om-br)}
.om-site-main .om-related-date{font-size:11px;color:var(--om-mu)}

@media(max-width:1100px){
	.om-site-main .om-layout{grid-template-columns:40px minmax(0,1fr) minmax(240px,280px);gap:12px}
	.om-site-main .om-layout.om-layout--no-sidebar{grid-template-columns:40px minmax(0,1fr)}
	.om-site-main .om-share-box a{width:30px;height:30px}
	.om-site-main .om-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
	.om-site-main .om-layout,.om-site-main .om-layout.om-layout--no-sidebar{grid-template-columns:1fr !important;gap:12px !important}
	.om-site-main .om-share-col{position:static !important;top:auto !important;order:30}
	.om-site-main .om-share-box{flex-direction:row;justify-content:center;padding:8px;flex-wrap:wrap}
	.om-site-main .om-share-box .om-copy-ok{left:50%;right:auto;transform:translateX(-50%) translateY(-140%);top:0}
	.om-site-main .om-aside{position:static !important;top:auto !important;order:40}
	.om-site-main .om-aside__box{width:100% !important;max-width:100% !important;overflow:hidden !important}
	.om-site-main .om-main{order:10}
	.om-site-main .om-article-featured{padding:8px;border-radius:12px;margin-bottom:10px}
}
@media(max-width:600px){
	main.om-site-main > .om-hero{width:calc(100% - 24px) !important}
	.om-site-main .om-shell{padding-left:12px !important;padding-right:12px !important}
	.om-site-main .om-meta-bar{gap:5px 10px;font-size:11px;padding:6px 10px}
	.om-site-main .om-related-grid{grid-template-columns:1fr}
	.om-site-main .om-page-content :where(p,li){font-size:14.5px;line-height:1.85}
	.om-site-main .om-share-box a{width:30px;height:30px}
	.om-site-main .om-share-box a svg,.om-site-main .om-share-box a img{width:14px;height:14px}
	.om-site-main .om-page-content{padding:14px}
}
