/*
Theme Name: تور مسافرتی (ftour)
Theme URI: https://www.ftour.ir
Author: Hessam
Description: پوستهٔ اختصاصی، راست‌به‌چپ، ریسپانسیو و بهینه برای سئو برای وب‌سایت «تور مسافرتی». نشانهٔ بصری: «رد پرواز» سه‌رنگ لوگو و کارت‌های بلیتی.
Version: 1.0.0
Requires at least: 6.0
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: ftour
Tags: rtl-language-support, blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   ۱) متغیرها (حالت روشن / تیره)
   ========================================================================== */
:root {
	--ft-sky: #00cbff;
	--ft-sky-ink: #0878a0;
	--ft-green: #66a638;
	--ft-green-ink: #4a7f26;
	--ft-rose: #ef4f6b;

	--ft-bg: #f6fbfd;
	--ft-surface: #ffffff;
	--ft-surface-2: #eef7fb;
	--ft-text: #12232e;
	--ft-muted: #587080;
	--ft-line: #d9e8ef;
	--ft-link: var(--ft-sky-ink);
	--ft-on-grad: #052633;

	--ft-grad: linear-gradient(135deg, #00cbff 0%, #66a638 100%);
	--ft-shadow: 0 1px 2px rgba(10, 60, 90, .06), 0 10px 28px -14px rgba(10, 110, 150, .28);
	--ft-radius: 14px;
	--ft-radius-sm: 8px;

	--ft-font: 'IRANSans', 'Vazirmatn', Tahoma, 'Segoe UI', Arial, sans-serif;
	--ft-container: 1240px;
	--ft-aside: 320px;
	--ft-trail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 12'%3E%3Cpath d='M2 9C28 9 60 7 94 2' fill='none' stroke='%2300cbff' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M2 10.2C30 11 62 9 94 4.6' fill='none' stroke='%2366a638' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M2 11.4C32 12 64 11 94 7.2' fill='none' stroke='%23ef4f6b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");

	--ft-footer-bg: #0f2a37;
	--ft-footer-text: #c7dde7;
	color-scheme: light;
}

html[data-theme="dark"] {
	--ft-sky-ink: #33d6ff;
	--ft-green-ink: #7cc24a;
	--ft-bg: #0d1a22;
	--ft-surface: #13232d;
	--ft-surface-2: #182c38;
	--ft-text: #e6f1f6;
	--ft-muted: #9ab0bc;
	--ft-line: #24404f;
	--ft-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
	--ft-footer-bg: #091820;
	--ft-footer-text: #b4cad5;
	color-scheme: dark;
}

/* ==========================================================================
   ۲) پایه
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ft-font);
	font-size: 1rem;
	line-height: 1.9;
	color: var(--ft-text);
	background: var(--ft-bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img, video, canvas { max-width: 100%; height: auto; }
iframe, embed, object { max-width: 100%; }
svg { max-width: 100%; }
figure { margin: 0; }

a { color: var(--ft-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4, h5, h6 { line-height: 1.55; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
	outline: 3px solid var(--ft-sky);
	outline-offset: 2px;
	border-radius: 4px;
}

.ft-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ft-skip {
	position: absolute;
	inset-inline-start: 12px;
	top: -60px;
	z-index: 1000;
	padding: 10px 18px;
	background: var(--ft-grad);
	color: var(--ft-on-grad);
	font-weight: 700;
	border-radius: 0 0 var(--ft-radius-sm) var(--ft-radius-sm);
	text-decoration: none;
	transition: top .15s;
}
.ft-skip:focus { top: 0; }

.ft-container {
	width: 100%;
	max-width: var(--ft-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.ft-site { min-height: 100vh; display: flex; flex-direction: column; }
@supports (overflow: clip) { .ft-site { overflow-x: clip; } }
.ft-main { flex: 1 0 auto; padding-block: 8px 48px; }

.ft-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ft-icon--sm { width: 15px; height: 15px; }

/* ==========================================================================
   ۳) نوار بالا و هدر
   ========================================================================== */
.ft-topbar {
	background: var(--ft-surface);
	border-bottom: 1px solid var(--ft-line);
	font-size: .8125rem;
	color: var(--ft-muted);
}
.ft-topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.ft-topbar__date { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ft-topbar__date .ft-icon { width: 16px; height: 16px; }
.ft-topbar__desc { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-topbar__links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.ft-topbar__link {
	display: inline-grid; place-items: center;
	width: 30px; height: 30px; border-radius: 50%;
	color: var(--ft-muted);
}
.ft-topbar__link:hover { color: var(--ft-link); background: var(--ft-surface-2); }
.ft-topbar__link .ft-icon { width: 17px; height: 17px; }

.ft-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--ft-surface) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--ft-line);
}
.admin-bar .ft-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ft-header { top: 46px; } }
.ft-header::after {
	content: "";
	position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
	background: linear-gradient(90deg, var(--ft-sky), var(--ft-green) 55%, var(--ft-rose));
	opacity: .85;
}
.ft-header__bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }

.ft-brand {
	display: inline-flex; align-items: center; gap: 12px;
	text-decoration: none; color: var(--ft-text); flex: none;
}
.ft-brand__logo { width: 46px; height: 46px; object-fit: contain; }
.ft-brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.ft-brand__name { font-size: 1.2rem; font-weight: 700; }
.ft-brand__tag { font-size: .72rem; color: var(--ft-muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ft-nav { flex: 1; min-width: 0; }
.ft-menu, .ft-menu ul { list-style: none; margin: 0; padding: 0; }
.ft-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.ft-menu > li { position: relative; display: flex; align-items: center; }
.ft-menu a {
	display: block; padding: 8px 14px; border-radius: 999px;
	color: var(--ft-text); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.ft-menu a:hover { background: var(--ft-surface-2); color: var(--ft-link); }
.ft-menu .current-menu-item > a,
.ft-menu .current_page_item > a,
.ft-menu .current-menu-ancestor > a,
.ft-menu .current-menu-parent > a {
	background: var(--ft-surface-2); color: var(--ft-link); font-weight: 700;
}
.ft-submenu-toggle {
	display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-start: -8px;
	border: 0; background: transparent; color: var(--ft-muted); border-radius: 50%; cursor: pointer;
}
.ft-submenu-toggle:hover { background: var(--ft-surface-2); }
.ft-menu .sub-menu {
	position: absolute; inset-inline-start: 0; top: 100%; z-index: 20;
	min-width: 210px; padding: 8px;
	background: var(--ft-surface); border: 1px solid var(--ft-line);
	border-radius: var(--ft-radius); box-shadow: var(--ft-shadow);
	display: none;
}
.ft-menu li:hover > .sub-menu,
.ft-menu li:focus-within > .sub-menu,
.ft-menu li.is-open > .sub-menu { display: block; }
.ft-menu .sub-menu a { border-radius: var(--ft-radius-sm); }

.ft-header__actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.ft-iconbtn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; padding: 0;
	border: 1px solid transparent; border-radius: 50%;
	background: transparent; color: var(--ft-text); cursor: pointer;
}
.ft-iconbtn:hover { background: var(--ft-surface-2); }
.ft-nav-toggle { display: none; }
.ft-icon-close, .ft-icon-sun { display: none; }
.ft-header.is-open .ft-icon-open { display: none; }
.ft-header.is-open .ft-icon-close { display: inline-grid; }
html[data-theme="dark"] .ft-icon-moon { display: none; }
html[data-theme="dark"] .ft-icon-sun { display: inline-grid; }

.ft-searchpanel { border-top: 1px solid var(--ft-line); background: var(--ft-surface); padding-block: 14px; }

.ft-search { display: flex; align-items: stretch; gap: 0; width: 100%; max-width: 640px; margin-inline: auto; }
.ft-search__input {
	flex: 1; min-width: 0; padding: 11px 18px;
	border: 1px solid var(--ft-line); border-inline-end: 0;
	border-start-start-radius: 999px; border-end-start-radius: 999px;
	border-start-end-radius: 0; border-end-end-radius: 0;
	background: var(--ft-bg); color: var(--ft-text);
}
.ft-search__input::placeholder { color: var(--ft-muted); opacity: 1; }
.ft-search__btn {
	display: inline-grid; place-items: center; width: 52px; border: 0; cursor: pointer;
	background: var(--ft-grad); color: var(--ft-on-grad);
	border-start-end-radius: 999px; border-end-end-radius: 999px;
}
.ft-search__btn:hover { filter: brightness(1.06); }

@media (max-width: 899px) {
	.ft-nav-toggle { display: inline-grid; order: -1; margin-inline-start: -8px; }
	.ft-header__bar { min-height: 60px; gap: 8px; }
	.ft-brand__logo { width: 40px; height: 40px; }
	.ft-brand__tag { display: none; }
	.ft-nav {
		display: none; position: absolute; inset-inline: 0; top: 100%;
		background: var(--ft-surface); border-bottom: 1px solid var(--ft-line);
		padding: 10px 20px 18px; max-height: calc(100vh - 100px); overflow-y: auto; box-shadow: var(--ft-shadow);
	}
	.ft-header.is-open .ft-nav { display: block; }
	.ft-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ft-menu > li { flex-wrap: wrap; }
	.ft-menu > li > a { flex: 1; border-radius: var(--ft-radius-sm); padding: 12px 10px; }
	.ft-menu .sub-menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 12px 6px; background: transparent; }
	.ft-menu li:hover > .sub-menu, .ft-menu li:focus-within > .sub-menu { display: none; }
	.ft-menu li.is-open > .sub-menu { display: block; }
	.ft-submenu-toggle { margin: 0; width: 40px; height: 40px; }
	.ft-topbar__desc { display: none; }
	.ft-topbar__links { margin-inline-start: auto; }
}

/* ==========================================================================
   ۴) چیدمان
   ========================================================================== */
.ft-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--ft-aside);
	gap: 32px;
	align-items: start;
	padding-top: 24px;
}
.ft-layout__main, .ft-layout__aside { min-width: 0; align-self: start; }

@media (max-width: 899px) {
	.ft-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ft-layout__main, .ft-layout__aside { position: static !important; }
}

/* ==========================================================================
   ۵) عنوان بخش‌ها: «رد پرواز» سه‌رنگ
   ========================================================================== */
.ft-section { margin-top: 44px; }
.ft-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ft-section__title {
	position: relative; margin: 0; padding-bottom: 16px;
	font-size: 1.3rem; line-height: 1.4;
}
.ft-section__title::after {
	content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
	width: 104px; height: 13px;
	background: var(--ft-trail) no-repeat center / contain;
	transform: scaleX(-1);
}
.ft-section__more {
	font-size: .875rem; font-weight: 700; text-decoration: none;
	padding: 6px 14px; border-radius: 999px; background: var(--ft-surface); box-shadow: var(--ft-shadow);
}

.ft-pagehead { margin-bottom: 24px; }
.ft-pagehead__title { position: relative; font-size: clamp(1.4rem, 3vw, 1.9rem); padding-bottom: 18px; margin-bottom: 8px; }
.ft-pagehead__title::after {
	content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 120px; height: 14px;
	background: var(--ft-trail) no-repeat center / contain; transform: scaleX(-1);
}
.ft-pagehead__desc { color: var(--ft-muted); }
.ft-empty { padding: 32px; text-align: center; background: var(--ft-surface); border-radius: var(--ft-radius); color: var(--ft-muted); }

/* ==========================================================================
   ۶) ویژه‌های صفحهٔ اصلی
   ========================================================================== */
.ft-hero {
	display: grid; gap: 16px; margin-top: 24px;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
}
.ft-hero__item {
	position: relative; min-height: 210px; overflow: hidden;
	border-radius: var(--ft-radius); background: var(--ft-surface-2); box-shadow: var(--ft-shadow);
	isolation: isolate;
}
.ft-hero__item--lead { grid-row: 1 / span 2; min-height: 440px; }
.ft-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.ft-hero__item:hover .ft-hero__img { transform: scale(1.03); }
.ft-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 22, 34, .88) 0%, rgba(4, 22, 34, .35) 48%, rgba(4, 22, 34, 0) 75%); }
.ft-hero__text { position: absolute; inset-inline: 0; bottom: 0; padding: 20px 22px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ft-hero__title { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.ft-hero__item--lead .ft-hero__title { font-size: clamp(1.25rem, 2.6vw, 1.75rem); }
.ft-hero__title a { color: #fff; text-decoration: none; }
.ft-hero__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ft-hero__text .ft-chip { position: relative; z-index: 2; }
.ft-hero .ft-card__ph { position: absolute; inset: 0; z-index: -2; }

@media (max-width: 899px) {
	.ft-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
	.ft-hero__item--lead { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
	.ft-hero__item { min-height: 220px; }
}
@media (max-width: 560px) {
	.ft-hero { grid-template-columns: minmax(0, 1fr); }
	.ft-hero__item--lead { min-height: 300px; }
}

/* ==========================================================================
   ۷) کارت بلیتی
   ========================================================================== */
.ft-grid { display: grid; gap: 22px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ft-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ft-rows { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1099px) {
	.ft-grid, .ft-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	.ft-grid, .ft-grid--3, .ft-rows { grid-template-columns: minmax(0, 1fr); }
}

.ft-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--ft-surface); border-radius: var(--ft-radius); box-shadow: var(--ft-shadow);
}
.ft-card__media {
	display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden;
	border-radius: var(--ft-radius) var(--ft-radius) 0 0; background: var(--ft-surface-2);
}
.ft-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ft-card:hover .ft-card__media img { transform: scale(1.04); }
.ft-card__ph {
	position: absolute; inset: 0; display: grid; place-items: center; color: var(--ft-sky-ink);
	background: linear-gradient(135deg, var(--ft-surface-2), color-mix(in srgb, var(--ft-sky) 18%, var(--ft-surface-2)));
}
.ft-card__ph .ft-icon { width: 44px; height: 44px; opacity: .6; }

/* لبهٔ «بلیت»: خط‌چین + دو شکاف نیم‌دایره */
.ft-card__body {
	position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px;
	padding: 16px 16px 14px; border-top: 2px dashed var(--ft-line);
}
.ft-card__body::before, .ft-card__body::after {
	content: ""; position: absolute; top: -11px; width: 20px; height: 20px;
	border-radius: 50%; background: var(--ft-bg);
}
.ft-card__body::before { inset-inline-start: -10px; }
.ft-card__body::after { inset-inline-end: -10px; }

.ft-card__title { margin: 0; font-size: 1rem; line-height: 1.7; }
.ft-card__title a { color: var(--ft-text); text-decoration: none; }
.ft-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--ft-radius); }
.ft-card__title a:hover { color: var(--ft-link); }
.ft-card__excerpt {
	margin: 0; font-size: .875rem; line-height: 1.85; color: var(--ft-muted);
	display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ft-card .ft-meta { margin-top: auto; padding-top: 4px; }

.ft-chip {
	position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
	display: inline-block; padding: 3px 12px; border-radius: 999px;
	background: var(--ft-grad); color: var(--ft-on-grad);
	font-size: .75rem; font-weight: 700; line-height: 1.8; text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.ft-chip:hover { filter: brightness(1.07); }
.ft-chip--static { position: static; }

.ft-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .8125rem; color: var(--ft-muted); }
.ft-meta__item { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.ft-meta--light { color: rgba(255, 255, 255, .85); }

/* کارت افقی (فشرده) */
.ft-card--row { flex-direction: row; align-items: stretch; }
.ft-card--row .ft-card__media {
	flex: none; width: 118px; aspect-ratio: auto; min-height: 92px;
	border-radius: 0;
	border-start-start-radius: var(--ft-radius); border-end-start-radius: var(--ft-radius);
	border-inline-end: 2px dashed var(--ft-line);
}
.ft-card--row .ft-card__body { border-top: 0; padding: 12px 14px; justify-content: center; gap: 6px; min-width: 0; }
.ft-card--row .ft-card__body::before, .ft-card--row .ft-card__body::after { display: none; }
.ft-card--row .ft-card__title { font-size: .9375rem; }

/* صفحه‌بندی */
.ft-pagination { margin-top: 32px; display: flex; justify-content: center; }
.ft-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 0 3px;
	border-radius: 999px; background: var(--ft-surface); color: var(--ft-text);
	text-decoration: none; font-weight: 700; box-shadow: var(--ft-shadow);
}
.ft-pagination a.page-numbers:hover { color: var(--ft-link); }
.ft-pagination .page-numbers.current { background: var(--ft-grad); color: var(--ft-on-grad); }
.ft-pagination .page-numbers.dots { background: transparent; box-shadow: none; }
.ft-pagination { flex-wrap: wrap; gap: 6px 0; }

/* ==========================================================================
   ۸) مسیر راهنما
   ========================================================================== */
.ft-breadcrumb { margin-bottom: 14px; font-size: .8125rem; color: var(--ft-muted); }
.ft-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.ft-breadcrumb li { display: inline-flex; align-items: center; }
.ft-breadcrumb li + li::before { content: "‹"; margin-inline: 8px; color: var(--ft-line); font-size: 1.1em; }
.ft-breadcrumb a { color: var(--ft-muted); text-decoration: none; }
.ft-breadcrumb a:hover { color: var(--ft-link); text-decoration: underline; }
.ft-breadcrumb .breadcrumb_last, .ft-breadcrumb [aria-current] { color: var(--ft-text); }
/* خروجی Yoast (span تو در تو) */
.ft-breadcrumb > span { display: block; }
.ft-breadcrumb > span > span { display: inline; }

/* ==========================================================================
   ۹) نوشتهٔ تکی و برگه
   ========================================================================== */
.ft-article {
	background: var(--ft-surface); border-radius: var(--ft-radius); box-shadow: var(--ft-shadow);
	padding: clamp(18px, 3.2vw, 38px);
}
.ft-article__head { margin-bottom: 20px; }
.ft-article__title { margin: 12px 0 14px; font-size: clamp(1.45rem, 3.3vw, 2.1rem); line-height: 1.6; }
.ft-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .875rem; color: var(--ft-muted); }
.ft-meta__author a { color: var(--ft-text); font-weight: 700; text-decoration: none; }
.ft-avatar { border-radius: 50%; width: 36px; height: 36px; object-fit: cover; flex: none; }
.ft-avatar--lg { width: 72px; height: 72px; }
.ft-article__figure { margin: 0 0 26px; border-radius: var(--ft-radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--ft-surface-2); }
.ft-article__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ft-prose { font-size: 1.0625rem; line-height: 2.05; overflow-wrap: anywhere; min-width: 0; }
.ft-prose > *:first-child { margin-top: 0; }
.ft-prose h2, .ft-prose h3, .ft-prose h4, .ft-prose h5, .ft-prose h6 { margin: 1.8em 0 .6em; }
.ft-prose h2 { font-size: 1.5rem; padding-inline-start: 14px; border-inline-start: 4px solid var(--ft-sky); }
.ft-prose h3 { font-size: 1.3rem; }
.ft-prose h4 { font-size: 1.15rem; }
.ft-prose h5, .ft-prose h6 { font-size: 1rem; }
.ft-prose a { font-weight: 500; }
.ft-prose img { border-radius: var(--ft-radius-sm); }
.ft-prose figure, .ft-prose .wp-caption { max-width: 100%; margin: 1.5em 0; }
.ft-prose figcaption, .ft-prose .wp-caption-text { margin-top: 8px; font-size: .8125rem; color: var(--ft-muted); text-align: center; }
.ft-prose blockquote {
	margin: 1.6em 0; padding: 14px 22px; border-radius: var(--ft-radius-sm);
	background: var(--ft-surface-2); border-inline-start: 5px solid var(--ft-green); color: var(--ft-text);
}
.ft-prose blockquote > :last-child { margin-bottom: 0; }
.ft-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: .9375rem; }
.ft-prose th, .ft-prose td { padding: 10px 14px; border: 1px solid var(--ft-line); text-align: start; }
.ft-prose thead th { background: var(--ft-surface-2); }
.ft-prose pre, .ft-prose code, .ft-prose kbd, .ft-prose samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: plaintext; }
.ft-prose code { padding: 2px 6px; border-radius: 6px; background: var(--ft-surface-2); font-size: .9em; }
.ft-prose pre { max-width: 100%; overflow-x: auto; padding: 16px; border-radius: var(--ft-radius-sm); background: #0f2a37; color: #e6f1f6; line-height: 1.7; text-align: left; }
.ft-prose pre code { padding: 0; background: transparent; color: inherit; }
.ft-prose hr { border: 0; height: 2px; margin: 2em 0; background: var(--ft-trail) no-repeat center / 120px 14px; }
.ft-prose iframe, .ft-prose video { max-width: 100%; }
.ft-prose .wp-block-embed__wrapper, .ft-prose .wp-has-aspect-ratio { max-width: 100%; }
.ft-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.ft-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.ft-prose .aligncenter { display: block; margin-inline: auto; }
.ft-prose::after { content: ""; display: block; clear: both; }
@media (max-width: 599px) {
	.ft-prose { font-size: 1rem; }
	.ft-prose .alignleft, .ft-prose .alignright { float: none; display: block; margin-inline: auto; }
}
.ft-pagelinks { margin-top: 1.5em; display: flex; flex-wrap: wrap; gap: 6px; }

/* افزونهٔ Read Meter */
.ft-prose .bsf-rt-reading-time, .entry-content .bsf-rt-reading-time {
	display: inline-flex !important; align-items: center; gap: .35em;
	width: auto !important; min-width: 0 !important; margin: 0 0 20px !important;
	padding: 6px 14px !important; border-radius: 999px;
	background: var(--ft-surface-2) !important; color: var(--ft-muted) !important;
	font-size: .8125rem !important; line-height: 1.7;
}
#bsf_rt_progress_bar_container {
	position: fixed !important; inset-inline: 0; bottom: 0; top: auto !important;
	height: 4px !important; background: transparent !important; z-index: 90;
}
#bsf_rt_progress_bar_container .progress-bar, #bsf_rt_progress_bar {
	height: 4px !important;
	background: linear-gradient(90deg, #00cbff, #66a638 60%, #ef4f6b) !important;
	border-start-end-radius: 4px; border-end-end-radius: 4px;
}

/* برچسب‌ها / اشتراک / نویسنده */
.ft-tags { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-tags a {
	display: inline-block; padding: 3px 14px; border-radius: 999px; font-size: .8125rem;
	background: var(--ft-surface-2); color: var(--ft-text); text-decoration: none; border: 1px solid var(--ft-line);
}
.ft-tags a::before { content: "#"; color: var(--ft-sky-ink); margin-inline-end: 2px; }
.ft-tags a:hover { border-color: var(--ft-sky); color: var(--ft-link); }

.ft-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 2px dashed var(--ft-line); }
.ft-share__label { font-size: .875rem; color: var(--ft-muted); margin-inline-end: 6px; }
.ft-share__status { font-size: .8125rem; color: var(--ft-green-ink); }
.ft-roundlink {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border-radius: 50%; border: 1px solid var(--ft-line); background: var(--ft-surface);
	color: var(--ft-text); cursor: pointer; text-decoration: none;
}
.ft-roundlink:hover { background: var(--ft-grad); color: var(--ft-on-grad); border-color: transparent; }

.ft-authorbox { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 18px; border-radius: var(--ft-radius); background: var(--ft-surface-2); }
.ft-authorbox__name { margin: 0 0 4px; font-weight: 700; }
.ft-authorbox__name a { color: var(--ft-text); text-decoration: none; }
.ft-authorbox__bio { margin: 0; font-size: .9375rem; color: var(--ft-muted); }

.ft-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.ft-postnav__item {
	display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; text-decoration: none;
	background: var(--ft-surface); border-radius: var(--ft-radius); box-shadow: var(--ft-shadow); color: var(--ft-text);
}
.ft-postnav__item--next { grid-column: 2; text-align: end; }
.ft-postnav__item--prev { grid-column: 1; }
.ft-postnav__label { font-size: .75rem; color: var(--ft-muted); }
.ft-postnav__title { font-weight: 700; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-postnav__item:hover .ft-postnav__title { color: var(--ft-link); }
@media (max-width: 599px) {
	.ft-postnav { grid-template-columns: minmax(0, 1fr); }
	.ft-postnav__item--next, .ft-postnav__item--prev { grid-column: auto; text-align: start; }
}

/* دیدگاه‌ها */
.ft-comments { margin-top: 32px; padding: clamp(18px, 3vw, 30px); border-radius: var(--ft-radius); background: var(--ft-surface); box-shadow: var(--ft-shadow); }
.ft-comments__title { font-size: 1.2rem; margin-bottom: 18px; }
.ft-comments__list, .ft-comments__list .children { list-style: none; margin: 0; padding: 0; }
.ft-comments__list .children { margin-inline-start: clamp(14px, 4vw, 40px); }
.ft-comment { margin-bottom: 14px; }
.ft-comment__body { padding: 14px 16px; border-radius: var(--ft-radius-sm); background: var(--ft-surface-2); }
.ft-comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ft-comment__who { display: flex; flex-direction: column; line-height: 1.5; }
.ft-comment__author { font-weight: 700; }
.ft-comment__date { font-size: .75rem; color: var(--ft-muted); text-decoration: none; }
.ft-comment__text { overflow-wrap: anywhere; }
.ft-comment__text p:last-child { margin-bottom: 0; }
.ft-comment__wait { font-size: .8125rem; color: var(--ft-rose); }
.ft-comment__reply a { font-size: .8125rem; font-weight: 700; text-decoration: none; }
.ft-comments .comment-form label { display: block; margin-bottom: 4px; font-size: .875rem; font-weight: 700; }
.ft-comments .comment-form input[type="text"],
.ft-comments .comment-form input[type="email"],
.ft-comments .comment-form textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--ft-line); border-radius: var(--ft-radius-sm);
	background: var(--ft-bg); color: var(--ft-text);
}
.ft-comments .comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.ft-comments .comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.ft-comments .required { color: var(--ft-rose); }
.ft-comments .comment-notes { font-size: .8125rem; color: var(--ft-muted); }
.ft-comments .comment-form-author, .ft-comments .comment-form-email { max-width: 420px; }

/* دکمه‌ها */
.ft-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 26px; border: 0; border-radius: 999px; cursor: pointer;
	font-weight: 700; text-decoration: none; line-height: 1.6;
}
.ft-btn--primary { background: var(--ft-grad); color: var(--ft-on-grad); }
.ft-btn--primary:hover { filter: brightness(1.07); color: var(--ft-on-grad); }

/* ==========================================================================
   ۱۰) سایدبار و ابزارک‌ها
   ========================================================================== */
:root {
	--ft-ico-plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 3 10l7 3 3 7z'/%3E%3C/svg%3E");
	--ft-ico-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	--ft-ico-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='3'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
	--ft-ico-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E");
	--ft-ico-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
	--ft-ico-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E");
	--ft-ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-11a7 7 0 0 0-14 0c0 5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	--ft-ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E");
	--ft-ico-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.2'/%3E%3C/svg%3E");
}

/* --- کارت ابزارک --- */
.ft-widget {
	position: relative; margin-bottom: 22px; padding: 22px 20px 22px;
	background: var(--ft-surface); border: 1px solid color-mix(in srgb, var(--ft-line) 65%, transparent);
	border-radius: 16px; box-shadow: var(--ft-shadow);
	overflow: hidden; overflow-wrap: anywhere; min-width: 0;
}
.ft-widget::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, var(--ft-sky), var(--ft-green) 60%, var(--ft-rose));
}
.ft-widget > *:last-child { margin-bottom: 0; }

/* عنوان ابزارک: آیکن گرادیانی + رد پرواز */
.ft-widget__title,
.ft-widget.widget_block h1, .ft-widget.widget_block h2, .ft-widget.widget_block h3, .ft-widget.widget_block h4 {
	position: relative; display: flex; align-items: center; gap: 10px;
	margin: 0 0 18px; padding-bottom: 14px; font-size: 1.05rem; line-height: 1.6; font-weight: 700;
}
.ft-widget__title::before,
.ft-widget.widget_block h1::before, .ft-widget.widget_block h2::before, .ft-widget.widget_block h3::before, .ft-widget.widget_block h4::before {
	content: ""; flex: none; width: 26px; height: 26px; background: var(--ft-grad);
	-webkit-mask: var(--ft-wico, var(--ft-ico-plane)) center / contain no-repeat;
	mask: var(--ft-wico, var(--ft-ico-plane)) center / contain no-repeat;
}
.ft-widget__title::after,
.ft-widget.widget_block h1::after, .ft-widget.widget_block h2::after, .ft-widget.widget_block h3::after, .ft-widget.widget_block h4::after {
	content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 92px; height: 12px;
	background: var(--ft-trail) no-repeat center / contain; transform: scaleX(-1);
}
.widget_search, .widget_block:has(.wp-block-search) { --ft-wico: var(--ft-ico-search); }
.widget_recent_entries, .widget_block:has(.wp-block-latest-posts) { --ft-wico: var(--ft-ico-news); }
.widget_categories, .widget_block:has(.wp-block-categories) { --ft-wico: var(--ft-ico-grid); }
.widget_archive, .widget_block:has(.wp-block-archives) { --ft-wico: var(--ft-ico-cal); }
.widget_recent_comments, .widget_block:has(.wp-block-latest-comments) { --ft-wico: var(--ft-ico-chat); }
.widget_tag_cloud { --ft-wico: var(--ft-ico-tag); }
.widget_text, .widget_custom_html, .widget_block { --ft-wico: var(--ft-ico-pin); }
[class*="feedzy"], .widget_better_rss_widget { --ft-wico: var(--ft-ico-globe); }

/* ابزارکِ «فقط یک تیتر» (بلاک عنوان): به‌صورت برچسب بخش، بدون کارت جدا */
.ft-widget.widget_block:has(> :is(h1, h2, h3, h4):only-child) {
	background: transparent; border: 0; box-shadow: none; padding: 0 4px; margin-bottom: 8px; overflow: visible;
}
.ft-widget.widget_block:has(> :is(h1, h2, h3, h4):only-child)::before { display: none; }
.ft-widget.widget_block:has(> :is(h1, h2, h3, h4):only-child) > :is(h1, h2, h3, h4) { margin-bottom: 4px; }

/* لیست‌ها */
.ft-widget ul { list-style: none; margin: 0; padding: 0; }
.ft-widget li { padding: 10px 0; border-bottom: 1px dashed var(--ft-line); font-size: .9375rem; line-height: 1.8; }
.ft-widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.ft-widget li:first-child { padding-top: 0; }
.ft-widget li ul { margin-top: 6px; padding-inline-start: 14px; }
.ft-widget a { text-decoration: none; }
.ft-widget a:hover { text-decoration: underline; }
.ft-widget p { font-size: .9375rem; line-height: 2; color: var(--ft-text); }
.ft-widget strong { color: var(--ft-text); }

/* نوشته‌های تازه با تصویر کوچک (ابزارک پوسته و بلاک «آخرین نوشته‌ها») */
.ft-widget .ft-postlist, .ft-widget .wp-block-latest-posts { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ft-widget .ft-postlist__item { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; }
.ft-postlist__thumb {
	position: relative; flex: none; width: 82px; aspect-ratio: 4 / 3; overflow: hidden;
	border-radius: 10px; background: var(--ft-surface-2);
}
.ft-postlist__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-postlist__thumb .ft-card__ph .ft-icon { width: 26px; height: 26px; }
.ft-postlist__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ft-widget a.ft-postlist__title {
	color: var(--ft-text); font-weight: 700; font-size: .9rem; line-height: 1.75;
	display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ft-widget a.ft-postlist__title:hover { color: var(--ft-link); text-decoration: none; }
.ft-postlist time { font-size: .75rem; color: var(--ft-muted); }
.ft-widget .wp-block-latest-posts li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 0; border: 0; }
.ft-widget .wp-block-latest-posts li:has(.wp-block-latest-posts__featured-image) { grid-template-columns: 82px minmax(0, 1fr); }
.ft-widget .wp-block-latest-posts__featured-image { grid-row: 1 / span 2; margin: 0; float: none; }
.ft-widget .wp-block-latest-posts__featured-image img { width: 82px; height: 62px; object-fit: cover; border-radius: 10px; display: block; }
.ft-widget .wp-block-latest-posts__post-title { color: var(--ft-text); font-weight: 700; font-size: .9rem; line-height: 1.75; }
.ft-widget .wp-block-latest-posts__post-date { font-size: .75rem; color: var(--ft-muted); }

/* دسته‌ها به‌صورت چیپ */
.ft-widget.widget_categories ul, .ft-widget .wp-block-categories-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-widget.widget_categories li, .ft-widget .wp-block-categories-list li {
	padding: 4px 14px; border: 1px solid var(--ft-line); border-radius: 999px; background: var(--ft-surface-2);
	font-size: .8125rem; color: var(--ft-muted);
}
.ft-widget.widget_categories li:last-child, .ft-widget.widget_categories li:first-child { padding: 4px 14px; }
.ft-widget.widget_categories li a, .ft-widget .wp-block-categories-list a { color: var(--ft-text); font-weight: 500; }
.ft-widget.widget_categories li:hover { border-color: var(--ft-sky); }

/* بایگانی، دیدگاه‌های تازه */
.ft-widget.widget_archive li, .ft-widget .wp-block-archives li { display: flex; justify-content: space-between; gap: 8px; }
.ft-widget .post-date, .ft-widget .comment-author-link { color: var(--ft-muted); font-size: .8125rem; }

/* برچسب‌ها */
.ft-widget .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-widget .tagcloud a {
	font-size: .8125rem !important; padding: 2px 12px; border-radius: 999px;
	background: var(--ft-surface-2); border: 1px solid var(--ft-line); color: var(--ft-text);
}
.ft-widget .tagcloud a:hover { border-color: var(--ft-sky); color: var(--ft-link); text-decoration: none; }

/* جستجو (کلاسیک و بلاک) */
.ft-widget .ft-search { max-width: none; }
.ft-widget .wp-block-search__label { display: block; margin-bottom: 8px; font-weight: 700; }
.ft-widget .wp-block-search__inside-wrapper { display: flex; gap: 0; border: 0; padding: 0; }
.ft-widget .wp-block-search__input {
	flex: 1; min-width: 0; padding: 11px 18px; border: 1px solid var(--ft-line); border-inline-end: 0;
	border-start-start-radius: 999px; border-end-start-radius: 999px; border-start-end-radius: 0; border-end-end-radius: 0;
	background: var(--ft-bg); color: var(--ft-text);
}
.ft-widget .wp-block-search__button {
	margin: 0; padding: 0 20px; border: 0; cursor: pointer; font-weight: 700;
	background: var(--ft-grad); color: var(--ft-on-grad);
	border-start-end-radius: 999px; border-end-end-radius: 999px; border-start-start-radius: 0; border-end-start-radius: 0;
}
.ft-widget select { width: 100%; padding: 10px 12px; border: 1px solid var(--ft-line); border-radius: var(--ft-radius-sm); background: var(--ft-bg); color: var(--ft-text); }
.ft-widget table { width: 100%; border-collapse: collapse; text-align: center; font-size: .875rem; }
.ft-widget caption { margin-bottom: 8px; font-weight: 700; }
.ft-widget th, .ft-widget td { padding: 6px 2px; }

.ft-widget__more {
	display: inline-block; margin-top: 16px; padding: 5px 16px; border-radius: 999px;
	font-size: .8125rem; font-weight: 700; color: var(--ft-link); background: var(--ft-surface-2); text-decoration: none;
}
.ft-widget__more:hover { background: var(--ft-grad); color: var(--ft-on-grad); text-decoration: none; }

/* پیوندهای دوستان (Feedzy / Better RSS): چیپ‌های کوچک با آیکن؛ تصویر، متن و عنوان فید پنهان */
.ft-widget .feedzy-rss .rss_header,
.ft-widget .feedzy-rss > h1, .ft-widget .feedzy-rss > h2, .ft-widget .feedzy-rss > h3,
.ft-widget .feedzy-rss > .widget-title, .ft-widget .feedzy-rss > .widgettitle,
.ft-widget .feedzy-rss .rss_image, .ft-widget .feedzy-rss .rss_content_wrap, .ft-widget .feedzy-rss .rss_content,
.ft-widget .feedzy-rss small, .ft-widget .feedzy-rss [class*="meta"], .ft-widget .feedzy-rss time,
.ft-widget .rss-date, .ft-widget .rssSummary, .ft-widget cite { display: none !important; }

.ft-widget .feedzy-rss ul, .ft-widget .widget_better_rss_widget ul, .ft-widget.widget_better_rss_widget ul {
	display: flex !important; flex-wrap: wrap; gap: 8px !important; list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.ft-widget .feedzy-rss .rss_item, .ft-widget .feedzy-rss li,
.ft-widget.widget_better_rss_widget li {
	position: static; display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important;
	padding: 5px 14px 5px 12px !important; border: 1px solid var(--ft-line) !important; border-radius: 999px;
	background: var(--ft-surface-2) !important; transition: border-color .15s;
}
.ft-widget .feedzy-rss .rss_item::before, .ft-widget.widget_better_rss_widget li::before {
	content: ""; position: static; flex: none; width: 15px; height: 15px; background-color: var(--ft-sky-ink);
	-webkit-mask: var(--ft-ico-globe) center / contain no-repeat; mask: var(--ft-ico-globe) center / contain no-repeat;
}
.ft-widget .feedzy-rss .rss_item:hover, .ft-widget.widget_better_rss_widget li:hover { border-color: var(--ft-sky) !important; }
.ft-widget .feedzy-rss .title, .ft-widget .feedzy-rss .title a, .ft-widget a.rsswidget {
	display: inline !important; font-size: .875rem !important; font-weight: 500; color: var(--ft-text); line-height: 1.8;
}
.ft-widget .feedzy-rss .title a:hover, .ft-widget a.rsswidget:hover { color: var(--ft-link); text-decoration: none; }

/* ==========================================================================
   ۱۱) فوتر
   ========================================================================== */
.ft-footer { position: relative; margin-top: 24px; background: var(--ft-footer-bg); color: var(--ft-footer-text); }
.ft-footer::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, var(--ft-sky), var(--ft-green) 55%, var(--ft-rose));
}
.ft-footer a { color: #e6f6fc; text-decoration: none; }
.ft-footer a:hover { color: var(--ft-sky); text-decoration: underline; }
.ft-footer__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 48px 36px; }
.ft-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ft-footer__title { margin: 0; font-size: 1.1rem; color: #fff; }
.ft-footer__brand .ft-footer__title { margin: 0; }
.ft-footer__cols > section > .ft-footer__title { margin-bottom: 16px; }
.ft-footer__text { max-width: 52ch; line-height: 2; }
.ft-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ft-footer .ft-roundlink { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #e6f6fc; }
.ft-footer .ft-roundlink:hover { background: var(--ft-grad); color: var(--ft-on-grad); text-decoration: none; }
.ft-footer__list { list-style: none; margin: 0; padding: 0; }
.ft-footer__list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.ft-footer__list li:last-child { border-bottom: 0; }
.ft-footer__list time { font-size: .75rem; color: #8fb0bf; }
.ft-footer__bar { background: rgba(0, 0, 0, .22); }
.ft-footer__barin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; font-size: .8125rem; }
.ft-footer__copy { margin: 0; }
.ft-footmenu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 799px) {
	.ft-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 26px; }
}

.ft-totop {
	position: fixed; inset-inline-end: 18px; bottom: 22px; z-index: 80;
	display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
	border: 0; border-radius: 50%; cursor: pointer;
	background: var(--ft-grad); color: var(--ft-on-grad); box-shadow: var(--ft-shadow);
	opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.ft-totop.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   ۱۲) صفحهٔ ۴۰۴ و آرشیو کامل
   ========================================================================== */
.ft-notfound { padding-top: 32px; }
.ft-notfound__box {
	max-width: 640px; margin: 0 auto; padding: 36px 24px; text-align: center;
	background: var(--ft-surface); border-radius: var(--ft-radius); box-shadow: var(--ft-shadow);
}
.ft-notfound__plane { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--ft-surface-2); color: var(--ft-sky-ink); }
.ft-notfound__plane .ft-icon { width: 34px; height: 34px; }
.ft-notfound__title { font-size: 1.6rem; }
.ft-notfound__text { color: var(--ft-muted); }
.ft-notfound .ft-search { margin-block: 18px; }

.ft-linklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 20px; }
.ft-linklist li { padding: 6px 0; border-bottom: 1px dashed var(--ft-line); font-size: .9375rem; }

/* ==========================================================================
   ۱۳) حرکت کم، چاپ
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ft-card:hover .ft-card__media img, .ft-hero__item:hover .ft-hero__img { transform: none; }
}

@media print {
	.ft-topbar, .ft-header, .ft-sidebar, .ft-footer, .ft-share, .ft-related, .ft-postnav, .ft-comments, .ft-totop, .ft-skip, #bsf_rt_progress_bar_container { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.ft-layout { display: block; }
	.ft-article { box-shadow: none; padding: 0; }
	.ft-prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; word-break: break-all; }
	.ft-prose a[href^="#"]::after, .ft-prose a[href^="javascript"]::after { content: ""; }
	img { max-width: 100% !important; page-break-inside: avoid; }
}
