/*
Theme Name: سفر لایو (SafarLive)
Theme URI: https://safarlive.com
Author: Tarabar Publishing Institute
Description: قالب خبری و تحلیلی فارسی برای ماهنامه سفر؛ راست‌چین، سریع و سئو‌محور، با کتابخانه دیجیتال نشریات (نسخه PDF و تعاملی)، تاریخ شمسی، داده‌های ساختاریافته NewsArticle و فونت محلی وزیرمتن.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safarlive
Tags: news, blog, rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- فونت‌ها (محلی، بدون وابستگی به سرویس خارجی) ---------- */
@font-face {
	font-family: "Vazirmatn";
	src: url("assets/fonts/vazirmatn-var.woff2") format("woff2-variations"), url("assets/fonts/vazirmatn-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- رنگ‌ها و اندازه‌ها ---------- */
:root {
	--lapis: #14264A;
	--lapis-deep: #0C1A35;
	--lapis-line: #253D6E;
	--firoozeh: #0A7B76;
	--firoozeh-soft: #E2F0EE;
	--saffron: #E2A63B;
	--anar: #B0263F;
	--paper: #FFFFFF;
	--mist: #EEF3F2;
	--ink: #1B2435;
	--muted: #5A6578;
	--line: #D7E0DE;

	--font-ui: "Vazirmatn", Tahoma, sans-serif;
	--font-head: "Vazirmatn", Tahoma, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 3vw, 24px);
	--gap: clamp(20px, 2.6vw, 32px);
	--radius: 4px;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 1rem;
	line-height: 1.9;
	direction: rtl;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--firoozeh); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.6; margin: 0; color: var(--ink); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.sl-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--saffron); color: var(--lapis-deep); padding: 8px 16px; font-weight: 700; }
.sl-skip:focus { top: 12px; }

.sl-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sl-main { min-height: 50vh; }

/* ---------- نوار گره‌چینی: نشانه بصری برند ---------- */
.sl-girih {
	height: 12px;
	background-color: var(--lapis);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cg fill='none' stroke='%230A7B76' stroke-width='1.2'%3E%3Cpath d='M12 1.2 14 4l3.5.5-2.5 2.5L15.5 10.5 12 9l-3.5 1.5.5-3.5L6.5 4.5 10 4z'/%3E%3C/g%3E%3Cpath d='M0 6h4M20 6h4' stroke='%23E2A63B' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: center;
}

/* ---------- نوار بالایی ---------- */
.sl-topbar { background: var(--lapis-deep); color: #C9D4E8; font-size: .8rem; }
.sl-topbar-in { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.sl-today { white-space: nowrap; }
.sl-topbar-menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.sl-topbar-menu a:hover { color: #fff; }
.sl-social { display: flex; gap: 6px; align-items: center; }
.sl-social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.sl-social-top { margin-inline-start: auto; }
.sl-social-top a:hover { background: var(--lapis-line); color: #fff; }

/* ---------- سربرگ ---------- */
.sl-masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; }
.sl-masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.sl-brand { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.sl-logotype { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); line-height: 1.1; color: var(--lapis); letter-spacing: 0; }
.sl-logotype:hover { color: var(--lapis); }
.custom-logo { max-height: 72px; width: auto; }
.sl-tagline { color: var(--muted); font-size: .9rem; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.sl-since { display: block; color: var(--firoozeh); font-weight: 600; font-size: .8rem; }

.sl-masthead-tools { display: flex; align-items: center; gap: 10px; }
.sl-newsstand { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 6px; }
.sl-newsstand:hover { border-color: var(--firoozeh); color: inherit; }
.sl-newsstand-cover { width: 40px; flex: none; }
.sl-newsstand-cover img, .sl-newsstand-cover .sl-cover-empty { aspect-ratio: 210 / 297; width: 100%; object-fit: cover; box-shadow: 0 2px 6px rgba(12, 26, 53, .25); }
.sl-newsstand-text { display: flex; flex-direction: column; line-height: 1.5; font-size: .85rem; }
.sl-newsstand-text small { color: var(--firoozeh); font-weight: 700; font-size: .75rem; }
.sl-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--lapis); border-radius: 50%; }
.sl-icon-btn:hover { background: var(--mist); }
.sl-menu-toggle { display: none; }

.sl-search-panel { border-top: 1px solid var(--line); background: var(--mist); padding-block: 16px; }
.sl-searchform { display: flex; max-width: 640px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); overflow: hidden; }
.sl-searchform input { flex: 1; border: 0; padding: 12px 16px; background: none; min-width: 0; }
.sl-searchform input:focus { outline: none; }
.sl-searchform:focus-within { outline: 3px solid var(--saffron); outline-offset: 1px; }
.sl-searchform button { display: flex; align-items: center; gap: 6px; border: 0; background: var(--lapis); color: #fff; padding-inline: 18px; font-weight: 600; }

/* ---------- تبلیغات ---------- */
.sl-ad { position: relative; text-align: center; }
.sl-ad-label { position: absolute; top: 2px; inset-inline-start: 2px; z-index: 1; background: rgba(255, 255, 255, .85); color: var(--muted); font-size: .65rem; padding: 0 6px; border-radius: 2px; line-height: 1.6; }
.sl-ad img { display: block; margin-inline: auto; height: auto; }
.sl-ad-header { flex: 1 1 auto; max-width: 728px; min-width: 0; }
.sl-ad-header img { width: 100%; max-height: 90px; object-fit: contain; }
.sl-ad-area { padding-block: 24px 0; }
.sl-ad-area .widget { margin: 0; }
.sl-ad-area img { max-width: 100%; }

/* ---------- منوی اصلی ---------- */
.sl-nav { background: var(--lapis); color: #fff; position: sticky; top: 0; z-index: 40; }
.admin-bar .sl-nav { top: 32px; }
.sl-nav-in { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.sl-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.sl-menu > li { position: relative; }
.sl-menu a { display: block; padding: 12px 14px; font-weight: 600; font-size: .95rem; line-height: 1.6; border-bottom: 3px solid transparent; }
.sl-menu > li > a:hover, .sl-menu > .current-menu-item > a, .sl-menu > .current-menu-ancestor > a, .sl-menu > .current-category-ancestor > a { color: #fff; border-bottom-color: var(--saffron); }
.sl-menu .sub-menu { position: absolute; inset-inline-start: 0; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: 8px 0; background: var(--lapis-deep); box-shadow: 0 12px 24px rgba(12, 26, 53, .3); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.sl-menu li:hover > .sub-menu, .sl-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sl-menu .sub-menu a { border: 0; font-weight: 500; padding: 8px 18px; }
.sl-menu .sub-menu a:hover { color: var(--saffron); }
.sl-nav-library { display: flex; align-items: center; gap: 8px; color: var(--saffron); font-weight: 700; font-size: .92rem; white-space: nowrap; padding-inline: 4px; }
.sl-nav-library:hover { color: #fff; }

/* ---------- نوار تازه‌ها ---------- */
.sl-ticker { background: var(--mist); border-bottom: 1px solid var(--line); font-size: .9rem; }
.sl-ticker-in { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.sl-ticker-label { flex: none; background: var(--anar); color: #fff; font-weight: 700; font-size: .8rem; padding: 2px 12px; border-radius: 3px; }
.sl-ticker-track { flex: 1; overflow: hidden; display: flex; mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 48px), transparent); }
.sl-ticker-track ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0 0 0 40px; flex: none; }
.sl-ticker-track li { white-space: nowrap; }
.sl-ticker-track time { color: var(--anar); font-weight: 700; margin-inline-end: 8px; font-size: .82rem; }
.sl-ticker-track.is-moving ul { animation: sl-ticker 60s linear infinite; }
.sl-ticker-track.is-moving:hover ul, .sl-ticker-track.is-moving:focus-within ul { animation-play-state: paused; }
@keyframes sl-ticker { from { transform: translateX(0); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sl-ticker-track { overflow-x: auto; } }

/* ---------- برچسب‌ها و اطلاعات ---------- */
.sl-cat { display: inline-block; color: var(--firoozeh); font-weight: 700; font-size: .8rem; line-height: 1.6; }
.sl-cat:hover { color: var(--lapis); }
.sl-kicker { color: var(--muted); font-size: .88rem; font-weight: 500; line-height: 1.7; }
.sl-card-time, .sl-meta { color: var(--muted); font-size: .8rem; }
.sl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.sl-meta a { color: var(--ink); font-weight: 600; }
.sl-sep { width: 1px; height: 12px; background: var(--line); }

/* ---------- کارت‌ها ---------- */
.sl-card { position: relative; }
.sl-card-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.sl-card-media img, .sl-thumb-empty { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.sl-thumb-empty { display: block; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 24 12'%3E%3Cpath d='M12 1.2 14 4l3.5.5-2.5 2.5L15.5 10.5 12 9l-3.5 1.5.5-3.5L6.5 4.5 10 4z' fill='none' stroke='%23C3D2CF' stroke-width='1'/%3E%3C/svg%3E") center no-repeat; }
.sl-card:hover .sl-card-media img { transform: scale(1.03); }
.sl-card-title { font-size: 1.08rem; font-weight: 700; line-height: 1.75; }
.sl-card-title a:hover { color: var(--firoozeh); }
.sl-card-body { display: flex; flex-direction: column; gap: 4px; }
.sl-card-excerpt { color: #3A4458; font-size: .95rem; line-height: 1.95; }

.sl-card-lead .sl-card-body, .sl-card-stack .sl-card-body { padding-top: 12px; }

.sl-card-lead .sl-card-title { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem); font-weight: 900; line-height: 1.55; }
.sl-card-lead .sl-card-body { padding-top: 16px; gap: 8px; }

.sl-card-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
.sl-card-row .sl-card-media img, .sl-card-row .sl-thumb-empty { aspect-ratio: 3 / 2; }
.sl-card-row .sl-card-title { font-family: var(--font-ui); font-weight: 600; font-size: .95rem; line-height: 1.75; }
.sl-card-row .sl-card-body { gap: 2px; }

.sl-card-list { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 24px; align-items: start; padding-block: 24px; border-bottom: 1px solid var(--line); }
.sl-card-list:first-child { padding-top: 0; }
.sl-card-list .sl-card-title { font-size: 1.3rem; }

.sl-card-text .sl-card-title { font-family: var(--font-ui); font-size: .95rem; font-weight: 600; }

/* ---------- صفحه اصلی ---------- */
.sl-lead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); padding-block: 28px 8px; }
.sl-lead-side { display: flex; flex-direction: column; }
.sl-lead-side .sl-card-row { padding-block: 16px; border-bottom: 1px solid var(--line); }
.sl-lead-side .sl-card-row:first-child { padding-top: 0; }
.sl-lead-side .sl-card-row:last-child { border-bottom: 0; }

.sl-section { padding-block: 36px 8px; }
.sl-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--lapis); }
.sl-section-head h2 { font-size: 1.55rem; line-height: 1.4; }
.sl-more { color: var(--firoozeh); font-size: .85rem; font-weight: 600; }
.sl-more:hover { color: var(--lapis); text-decoration: underline; text-underline-offset: 4px; }

.sl-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: calc(var(--gap) * 1.5); }
.sl-grid-a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 var(--gap); }
.sl-grid-a > .sl-card-stack { grid-row: span 4; }
.sl-grid-a > .sl-card-row { padding-block: 12px; border-bottom: 1px solid var(--line); }
.sl-grid-a > .sl-card-row:nth-child(2) { padding-top: 0; }
.sl-grid-a > .sl-card-row:last-child { border-bottom: 0; }
.sl-grid-b { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.sl-grid-b .sl-card-title { font-size: 1.05rem; }

.sl-home-aside { padding-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.sl-aside-title, .widget-title { font-size: 1.25rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--lapis); }
.sl-mostread ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.sl-mostread li { counter-increment: rank; display: grid; grid-template-columns: 40px 1fr; align-items: start; padding-block: 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; line-height: 1.75; }
.sl-mostread li:last-child { border-bottom: 0; }
.sl-mostread li::before { content: counter(rank, persian); font-family: var(--font-head); font-size: 1.8rem; line-height: 1; color: var(--firoozeh); font-weight: 700; }

.sl-channel { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--firoozeh-soft); border-radius: 6px; color: var(--ink); font-size: .88rem; line-height: 1.8; }
.sl-channel svg { flex: none; color: var(--firoozeh); }
.sl-channel strong { display: block; font-size: .98rem; color: var(--lapis); }
.sl-channel:hover { color: var(--ink); background: #D4E9E6; }

/* ---------- یادداشت و تحلیل ---------- */
.sl-analysis-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.sl-opinion { padding: 4px 20px 8px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.sl-opinion:first-child { border-inline-start: 0; padding-inline-start: 0; }
.sl-opinion-author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; color: var(--firoozeh); }
.sl-opinion-author img { width: 44px; height: 44px; border-radius: 50%; }
.sl-opinion-title { font-size: 1.15rem; line-height: 1.7; }
.sl-opinion time { color: var(--muted); font-size: .8rem; }

/* ---------- قفسه کتابخانه ---------- */
.sl-shelf { background: var(--lapis); color: #fff; margin-block: 40px 8px; padding-block: 48px 56px; }
.sl-shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sl-shelf-head h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.4; }
.sl-shelf-head p { color: #B9C6DD; margin-top: 4px; }
.sl-shelf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sl-library-store { margin-top: 18px; }
.sl-store-frame-wrap { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); }
.sl-store-frame { display: block; width: 100%; height: 760px; border: 0; }
@media (max-width: 640px) { .sl-store-frame { height: 620px; } }
.sl-shelf-row { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--lapis-line) transparent; }
.sl-shelf-row .sl-issue { flex: 0 0 168px; scroll-snap-align: start; }

.sl-issue-link { display: flex; flex-direction: column; gap: 6px; color: inherit; }
.sl-issue-cover { position: relative; display: block; margin-bottom: 22px; }
.sl-issue-cover img, .sl-cover-empty { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 14px 22px -10px rgba(0, 0, 0, .55); transition: transform .25s ease; transform-origin: bottom center; }
.sl-issue-cover::after { content: ""; position: absolute; inset-inline: -14px; bottom: -16px; height: 10px; background: linear-gradient(to bottom, #2B467C 0 2px, var(--lapis-deep) 2px); border-radius: 0 0 2px 2px; }
.sl-issue-link:hover .sl-issue-cover img { transform: translateY(-6px); }
.sl-issue-link:hover { color: var(--saffron); }
.sl-issue-name { font-weight: 700; font-size: .9rem; line-height: 1.6; }
.sl-issue-date { font-size: .8rem; color: #B9C6DD; }
.sl-cover-empty { display: grid; place-items: center; padding: 16px; text-align: center; background: var(--lapis-line); color: #fff; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.6; }

/* ---------- دکمه‌ها ---------- */
.sl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; background: var(--lapis); color: #fff; white-space: nowrap; }
.sl-btn:hover { color: #fff; background: var(--firoozeh); }
.sl-btn-saffron { background: var(--saffron); color: var(--lapis-deep); }
.sl-btn-saffron:hover { background: #F0BA55; color: var(--lapis-deep); }
.sl-btn-light { background: #fff; color: var(--lapis); }
.sl-btn-light:hover { background: var(--mist); color: var(--lapis); }
.sl-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.sl-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* ---------- مسیر صفحه ---------- */
.sl-breadcrumb { font-size: .82rem; color: var(--muted); padding-top: 20px; }
.sl-breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.sl-breadcrumb li:not(:last-child)::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline: 10px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); vertical-align: middle; opacity: .6; }
.sl-breadcrumb a:hover { color: var(--firoozeh); }

/* ---------- صفحه مطلب ---------- */
.sl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: calc(var(--gap) * 1.6); padding-block: 20px 40px; }
.sl-article { min-width: 0; max-width: 760px; }
.sl-article-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.sl-article-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); line-height: 1.5; }
.sl-article-lead { font-size: 1.1rem; line-height: 2; font-weight: 500; color: #2F3A50; padding-inline-start: 16px; border-inline-start: 3px solid var(--saffron); margin-block: 4px 6px; }
.sl-article-figure { margin: 0 0 28px; }
.sl-article-figure img { width: 100%; border-radius: var(--radius); }
.sl-article-figure figcaption { font-size: .82rem; color: var(--muted); padding-top: 8px; }

.sl-prose { font-size: 1.07rem; line-height: 2.05; }
.sl-prose > * + * { margin-top: 1.15em; }
.sl-prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.sl-prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.sl-prose a { color: var(--firoozeh); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.sl-prose a:hover { color: var(--lapis); }
.sl-prose ul, .sl-prose ol { padding-inline-start: 1.4em; }
.sl-prose li + li { margin-top: .4em; }
.sl-prose blockquote, .sl-prose .wp-block-quote { margin-inline: 0; padding: 4px 24px 4px 0; border-inline-start: 3px solid var(--firoozeh); font-size: 1.15rem; font-weight: 600; line-height: 1.95; color: var(--lapis); }
.sl-prose blockquote cite { display: block; font-family: var(--font-ui); font-size: .85rem; color: var(--muted); font-style: normal; margin-top: 8px; }
.sl-prose figure { margin-inline: 0; }
.sl-prose figure img, .sl-prose > p img { border-radius: var(--radius); }
.sl-prose figcaption, .sl-prose .wp-element-caption { font-size: .82rem; color: var(--muted); padding-top: 6px; text-align: start; }
.sl-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sl-prose th, .sl-prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.sl-prose th { background: var(--mist); font-weight: 700; }
.sl-prose hr { border: 0; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M12 1.2 14 4l3.5.5-2.5 2.5L15.5 10.5 12 9l-3.5 1.5.5-3.5L6.5 4.5 10 4z' fill='none' stroke='%230A7B76' stroke-width='1.2'/%3E%3C/svg%3E") center no-repeat; margin-block: 2em; }
.sl-prose .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); }
.sl-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.sl-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.sl-prose .aligncenter { margin-inline: auto; }
.sl-prose iframe { width: 100%; border: 0; }

.sl-article-foot { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.sl-source { color: var(--muted); font-size: .9rem; }
.sl-in-issue { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--lapis); color: #DCE4F2; border-radius: 6px; font-size: .92rem; line-height: 1.9; }
.sl-in-issue strong { color: var(--saffron); }
.sl-in-issue:hover { color: #fff; background: var(--lapis-deep); }
.sl-in-issue-cover { width: 56px; flex: none; }
.sl-in-issue-cover img, .sl-in-issue-cover .sl-cover-empty { aspect-ratio: 210 / 297; object-fit: cover; box-shadow: 0 6px 12px rgba(0, 0, 0, .35); font-size: .6rem; padding: 4px; }
.sl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sl-tags a { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.sl-tags a:hover { border-color: var(--firoozeh); color: var(--firoozeh); }

.sl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 16px; border-block: 1px solid var(--line); }
.sl-share-label { font-weight: 700; font-size: .9rem; margin-inline-end: 6px; }
.sl-share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding-inline: 10px; border-radius: 999px; border: 0; background: var(--mist); color: var(--lapis); font-size: .82rem; font-weight: 600; }
.sl-share-btn:hover { background: var(--lapis); color: #fff; }

.sl-author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--mist); border-radius: 6px; }
.sl-author-box img { border-radius: 50%; flex: none; }
.sl-author-name { font-weight: 700; color: var(--lapis); }
.sl-author-box p { font-size: .9rem; color: #3A4458; }

/* ---------- ستون کناری ---------- */
.sl-sidebar-sticky { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 32px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget iframe { width: 100%; max-width: 100%; border: 0; }
.widget img { max-width: 100%; height: auto; }
.widget ul li { padding-block: 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sl-widget-issue a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; font-weight: 700; }
.sl-widget-issue img, .sl-widget-issue .sl-cover-empty { aspect-ratio: 210 / 297; object-fit: cover; box-shadow: 0 10px 18px -8px rgba(12, 26, 53, .5); font-size: .75rem; }

/* ابزارک‌های بلوکی پیش‌فرض وردپرس */
.widget .wp-block-heading { font-size: 1.2rem; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--lapis); }
.wp-block-search__label { display: none; }
.wp-block-search__inside-wrapper { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.wp-block-search__input { flex: 1; border: 0; padding: 10px 14px; min-width: 0; }
.wp-block-search__button { border: 0; margin: 0; background: var(--lapis); color: #fff; padding-inline: 16px; font-weight: 600; }

/* ---------- مطالب مرتبط ---------- */
.sl-related { padding-bottom: 48px; }

/* ---------- آرشیوها ---------- */
.sl-archive-head { padding-block: 12px 4px; border-bottom: 2px solid var(--lapis); margin-bottom: 8px; }
.sl-archive-title { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.sl-archive-desc { color: var(--muted); max-width: 70ch; padding-bottom: 12px; }
.sl-archive-author { display: flex; gap: 20px; align-items: center; padding-bottom: 12px; }
.sl-archive-author img { border-radius: 50%; }
.sl-search-inline { padding-block: 8px 16px; }
.sl-list { min-width: 0; }

.sl-pagination { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 32px; }
.sl-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.sl-pagination .current { background: var(--lapis); border-color: var(--lapis); color: #fff; }
.sl-pagination a:hover { border-color: var(--firoozeh); }

.sl-none, .sl-empty { padding-block: 48px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sl-admin-hint { padding: 12px 16px; background: #FFF6E2; border-inline-start: 3px solid var(--saffron); font-size: .9rem; }

.sl-search-issue { padding-block: 24px; border-bottom: 1px solid var(--line); }
.sl-search-issue .sl-issue { max-width: 160px; }
.sl-search-issue .sl-issue-date { color: var(--muted); }

/* ---------- کتابخانه نشریات ---------- */
.sl-library-hero { background: var(--lapis); color: #fff; padding-bottom: 32px; border-top: 1px solid var(--lapis-line); }
.sl-library-hero .sl-breadcrumb, .sl-library-hero .sl-breadcrumb a { color: #B9C6DD; }
.sl-library-title { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-top: 16px; }
.sl-library-desc { color: #C9D4E8; max-width: 60ch; margin-top: 4px; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sl-chips a { padding: 6px 16px; border: 1px solid var(--lapis-line); border-radius: 999px; font-size: .88rem; font-weight: 600; color: #DCE4F2; }
.sl-chips a:hover { border-color: var(--saffron); color: #fff; }
.sl-chips a[aria-current] { background: var(--saffron); border-color: var(--saffron); color: var(--lapis-deep); }
.sl-chips-years { margin-top: 10px; }
.sl-chips-years a { padding: 3px 12px; font-size: .82rem; }

.sl-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 48px 32px; padding-block: 48px 16px; }
.sl-library-grid .sl-issue-date, .sl-section .sl-issue-date { color: var(--muted); }
.sl-library-grid .sl-issue-cover::after { background: linear-gradient(to bottom, #C8D3D1 0 2px, #DCE4E2 2px); }
.sl-library-grid .sl-issue-cover img { box-shadow: 0 14px 22px -12px rgba(12, 26, 53, .5); }
.sl-library-grid .sl-issue-link:hover { color: var(--firoozeh); }

/* ---------- صفحه هر شماره ---------- */
.sl-issue-hero { background: var(--lapis); color: #fff; padding-bottom: 48px; border-top: 1px solid var(--lapis-line); }
.sl-issue-hero .sl-breadcrumb, .sl-issue-hero .sl-breadcrumb a { color: #B9C6DD; }
.sl-issue-hero-in { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: 24px; }
.sl-issue-hero-cover { margin: 0; }
.sl-issue-hero-cover img, .sl-issue-hero-cover .sl-cover-empty { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 2px; box-shadow: -18px 24px 40px -16px rgba(0, 0, 0, .65); }
.sl-issue-hero-text { display: flex; flex-direction: column; gap: 12px; }
.sl-issue-pub { color: var(--saffron); font-weight: 700; }
.sl-issue-pub:hover { color: #fff; }
.sl-issue-title { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.45; }
.sl-issue-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0; }
.sl-issue-facts > div { padding-inline: 20px; border-inline-start: 1px solid var(--lapis-line); }
.sl-issue-facts > div:first-child { padding-inline-start: 0; border: 0; }
.sl-issue-facts dt { font-size: .78rem; color: #B9C6DD; }
.sl-issue-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.sl-issue-summary { color: #DCE4F2; max-width: 62ch; line-height: 2; }
.sl-issue-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.sl-reader { padding-block: 32px 8px; }
.sl-reader[hidden] { display: none; }
.sl-reader-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; background: var(--lapis-deep); color: #fff; border-radius: 6px 6px 0 0; font-size: .9rem; }
.sl-reader-bar a { color: var(--saffron); }
.sl-reader-frame { display: block; width: 100%; height: min(88vh, 1000px); border: 1px solid var(--line); border-top: 0; background: var(--mist); }
.sl-reader-note { font-size: .82rem; color: var(--muted); padding-top: 8px; }
.sl-issue-body { padding-block: 32px; display: flex; flex-direction: column; gap: 24px; }
.sl-toc { max-width: 760px; }
.sl-toc h2 { font-size: 1.55rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--lapis); }
.sl-shelf-compact { margin-top: 16px; }

/* ---------- دیدگاه‌ها ---------- */
.sl-comments { margin-top: 48px; }
.sl-comments-title, .comment-reply-title { font-size: 1.35rem; margin-bottom: 16px; }
.sl-comment-list, .sl-comment-list .children { list-style: none; margin: 0; padding: 0; }
.sl-comment-list .children { padding-inline-start: 32px; }
.sl-comment-list .comment-body { padding-block: 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .78rem; color: var(--muted); }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.comment-form .submit { background: var(--lapis); color: #fff; border: 0; padding: 10px 24px; border-radius: 6px; font-weight: 700; }
.comment-form .submit:hover { background: var(--firoozeh); }
.comment-notes { font-size: .85rem; color: var(--muted); }

/* ---------- برگه و ۴۰۴ ---------- */
.sl-page { max-width: 820px; padding-block: 16px 48px; }
.sl-page .sl-article-title { margin-bottom: 24px; }
.sl-404 { padding-block: 64px 80px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.sl-404-code { font-family: var(--font-head); font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1; color: var(--firoozeh); }
.sl-404 h1 { font-size: 2rem; }
.sl-404 .sl-searchform { width: 100%; }

/* ---------- پاورقی ---------- */
.sl-footer { background: var(--lapis-deep); color: #B9C6DD; margin-top: 48px; font-size: .9rem; }
.sl-girih-footer { background-color: var(--lapis-deep); }
.sl-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--gap); padding-block: 48px 32px; }
.sl-logotype-footer { color: #fff; font-size: 2.4rem; }
.sl-logotype-footer:hover { color: #fff; }
.sl-footer-brand p { margin-block: 8px 16px; max-width: 46ch; line-height: 2; }
.sl-footer .widget-title { color: #fff; border-bottom-color: var(--lapis-line); font-size: 1.1rem; }
.sl-footer-list, .sl-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.widget iframe { width: 100%; max-width: 100%; border: 0; }
.widget img { max-width: 100%; height: auto; }
.sl-footer-list li, .sl-footer .widget ul li { padding-block: 5px; border: 0; }
.sl-footer a:hover { color: var(--saffron); }
.sl-social-footer a { background: var(--lapis); color: #fff; width: 38px; height: 38px; }
.sl-social-footer a:hover { background: var(--firoozeh); color: #fff; }
.sl-footer-bottom { border-top: 1px solid var(--lapis); }
.sl-footer-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; font-size: .8rem; }
.sl-footer-menu { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- کلاس‌های استاندارد وردپرس ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .82rem; color: var(--muted); }
.sticky, .bypostauthor { position: relative; }
.alignnone { margin: 0; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-embed { margin-inline: 0; }
.sl-page-links { padding-top: 16px; font-weight: 600; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1100px) {
	.sl-home-grid { grid-template-columns: minmax(0, 1fr) 280px; }
	.sl-grid-b, .sl-analysis-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sl-opinion:nth-child(3) { border: 0; padding-inline-start: 0; }
	.sl-opinion { padding-block: 12px; }
}

.sl-masthead-in:has(.sl-ad-header) .sl-tagline { display: none; }
.sl-newsstand-text { white-space: nowrap; }
@media (max-width: 1240px) {
	.sl-ad-header ~ .sl-masthead-tools .sl-newsstand-text { display: none; }
	.sl-ad-header ~ .sl-masthead-tools .sl-newsstand { border: 0; padding: 0; }
}

@media (max-width: 960px) {
	.sl-masthead-in { flex-wrap: wrap; }
	.sl-ad-header { order: 3; flex-basis: 100%; max-width: none; }
	.sl-topbar-menu { display: none; }
	.sl-tagline { display: none; }
	.sl-newsstand { border: 0; padding: 0; }
	.sl-newsstand-text { display: none; }
	.sl-menu-toggle { display: inline-grid; }
	.sl-nav { position: static; }
	.sl-nav-in { flex-direction: column; padding-block: 0; }
	.sl-nav:not(.is-open) .sl-nav-in { display: none; }
	.sl-nav.is-open .sl-nav-in { padding-block: 8px 16px; }
	.sl-menu { flex-direction: column; }
	.sl-menu a { padding: 10px 4px; border-bottom: 1px solid var(--lapis-line); }
	.sl-menu > li > a:hover { border-bottom-color: var(--lapis-line); color: var(--saffron); }
	.sl-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0 16px 0 0; }
	.sl-nav-library { padding-block: 12px; }

	.sl-lead, .sl-home-grid, .sl-layout { grid-template-columns: minmax(0, 1fr); }
	.sl-home-aside { padding-top: 0; }
	.sl-sidebar-sticky { position: static; }
	.sl-article { max-width: none; }
	.sl-footer-grid { grid-template-columns: 1fr 1fr; }
	.sl-footer-brand { grid-column: 1 / -1; }
	.sl-issue-hero-in { grid-template-columns: minmax(0, 1fr); }
	.sl-issue-hero-cover { max-width: 240px; }
}

@media (max-width: 640px) {
	.sl-masthead-in { padding-block: 12px; }
	.sl-social-top { display: none; }
	.sl-grid-a { grid-template-columns: minmax(0, 1fr); }
	.sl-grid-a > .sl-card-stack { grid-row: auto; margin-bottom: 16px; }
	.sl-grid-a > .sl-card-row:nth-child(2) { padding-top: 12px; }
	.sl-grid-b { grid-template-columns: minmax(0, 1fr); }
	.sl-analysis-row { grid-template-columns: minmax(0, 1fr); }
	.sl-opinion { border: 0; padding-inline: 0; border-bottom: 1px solid var(--line); }
	.sl-card-list { grid-template-columns: 112px 1fr; gap: 14px; padding-block: 16px; }
	.sl-card-list .sl-card-media img, .sl-card-list .sl-thumb-empty { aspect-ratio: 3 / 2; }
	.sl-card-list .sl-card-title { font-family: var(--font-ui); font-weight: 600; font-size: 1rem; line-height: 1.75; }
	.sl-card-list .sl-card-excerpt { display: none; }
	.sl-shelf-head { flex-direction: column; align-items: flex-start; }
	.sl-shelf-row .sl-issue { flex-basis: 136px; }
	.sl-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
	.sl-footer-grid { grid-template-columns: 1fr; }
	.sl-prose .alignleft, .sl-prose .alignright { float: none; margin: 0; max-width: 100%; }
	.sl-share-btn.sl-copy span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.sl-topbar, .sl-nav, .sl-ticker, .sl-sidebar, .sl-share, .sl-comments, .sl-related, .sl-footer, .sl-girih, .sl-masthead-tools { display: none !important; }
	.sl-layout { display: block; }
	body { font-size: 12pt; }
}
