/*
Theme Name: فرم نو
Theme URI: https://www.formeno.ir
Author: فرم نو
Author URI: https://www.formeno.ir
Description: قالب راست‌به‌چپ، سریع و سئو‌پسند برای سایت ورزش و تجهیزات ورزشی فرم نو؛ با حالت روشن و تاریک، فونت وزیرمتن و ارقام فارسی.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: formeno
Tags: rtl-language-support, blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   ۱. متغیرها
   ========================================================================== */
:root {
	--bg: #F6F8F1;
	--surface: #FFFFFF;
	--surface-2: #EEF3E2;
	--text: #16210F;
	--muted: #56604F;
	--brand: #4C7A12;
	--brand-ink: #FFFFFF;
	--brand-hover: #3C6209;
	--lime: #B8D82B;
	--lime-ink: #16210F;
	--line: #DDE5CF;
	--shadow: 0 6px 20px rgba(22, 33, 15, .08);
	--focus: #1B6FD1;
	--ff: "Vazirmatn FD", Tahoma, "Segoe UI", system-ui, sans-serif;
	--ff-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--radius: 14px;
	--radius-sm: 10px;
	--wrap: 1200px;
	--gutter: 20px;
	--dots: radial-gradient(circle at 1px 1px, rgba(76, 122, 18, .14) 1px, transparent 1.4px);
	color-scheme: light;
}

html[data-theme="dark"] {
	--bg: #0E140B;
	--surface: #162012;
	--surface-2: #1D2A17;
	--text: #EEF3E4;
	--muted: #A9B59C;
	--brand: #A9D43C;
	--brand-ink: #0E140B;
	--brand-hover: #C4E65C;
	--lime: #B8D82B;
	--lime-ink: #0E140B;
	--line: #2B3B23;
	--shadow: 0 6px 20px rgba(0, 0, 0, .35);
	--focus: #7DB8FF;
	--dots: radial-gradient(circle at 1px 1px, rgba(169, 212, 60, .12) 1px, transparent 1.4px);
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--ff);
	font-size: 16px;
	line-height: 1.9;
	font-weight: 400;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, canvas, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.5; font-weight: 800; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.screen-reader-text {
	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;
}
.screen-reader-text:focus {
	position: fixed !important;
	inset-block-start: 8px; inset-inline-start: 8px;
	width: auto; height: auto; margin: 0; padding: 12px 18px;
	clip: auto; clip-path: none; overflow: visible;
	background: var(--surface); color: var(--text);
	z-index: 100000; border-radius: 8px; box-shadow: var(--shadow);
}
.skip-link:focus { z-index: 100001; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.icon { flex: none; }

/* ==========================================================================
   ۳. سربرگ
   ========================================================================== */
.topbar { background: var(--surface-2); border-block-end: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar__date { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__desc { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__links { display: flex; align-items: center; gap: 10px; }
.topbar a { color: var(--muted); display: inline-flex; }
.topbar a:hover { color: var(--brand); }

.social-list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-list a { display: inline-flex; align-items: center; justify-content: center; }
.social-list--footer a {
	width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 255, 255, .08); color: inherit;
}
.social-list--footer a:hover { background: var(--lime); color: var(--lime-ink); }

.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand__link { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand__link:hover { color: var(--text); }
.brand__mark { width: 64px; height: auto; }
.brand__name { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.brand .custom-logo { max-height: 64px; width: auto; }
.banner { max-width: 728px; }
.banner__img { border-radius: var(--radius-sm); }

/* ---- نوار منو ---- */
.navbar {
	position: sticky; inset-block-start: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-block: 1px solid var(--line);
}
body.admin-bar .navbar { inset-block-start: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar { inset-block-start: 46px; } }

.navbar__in { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.navbar__menu { flex: 1; }
.menu { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu li { position: relative; margin: 0; display: flex; align-items: center; }
.menu a {
	display: block; padding: 14px 14px; color: var(--text);
	text-decoration: none; font-weight: 500; border-radius: 8px;
}
.menu a:hover, .menu .current-menu-item > a, .menu .current-menu-ancestor > a { color: var(--brand); }
.menu .current-menu-item > a { font-weight: 800; }
.menu > li > a { position: relative; }
.menu > .current-menu-item > a::after, .menu > .current-menu-ancestor > a::after {
	content: ""; position: absolute; inset-inline: 14px; inset-block-end: 6px;
	height: 3px; border-radius: 3px; background: var(--lime);
}

.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; padding: 0; margin-inline-start: -8px;
	background: none; border: 0; border-radius: 6px; color: var(--muted);
}
.menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; min-width: 200px;
	position: absolute; inset-block-start: 100%; inset-inline-start: 0;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow); display: none; z-index: 5;
}
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu, .menu li.is-open > .sub-menu { display: block; }
.menu .sub-menu li { display: block; }
.menu .sub-menu a { padding: 9px 12px; }
.menu .sub-menu a:hover { background: var(--surface-2); }

.navbar__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; }
.navbar__burger .ico-close { display: none; }
.navbar.is-open .navbar__burger .ico-open { display: none; }
.navbar.is-open .navbar__burger .ico-close { display: inline; }

.navbar__tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.tool-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: none; border: 1px solid var(--line); }
.tool-btn:hover { background: var(--surface-2); color: var(--brand); }

/* ---- دکمهٔ تم: کلید لغزان ---- */
.theme-switch { padding: 0; background: none; border: 0; }
.theme-switch__track {
	position: relative; display: flex; align-items: center; justify-content: space-between;
	width: 66px; height: 34px; padding-inline: 9px; border-radius: 999px;
	background: var(--surface-2); border: 1px solid var(--line);
	color: var(--muted); transition: background .25s, border-color .25s;
}
.theme-switch__knob {
	position: absolute; inset-block-start: 3px; inset-inline-start: 3px;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--lime); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	transition: inset-inline-start .25s cubic-bezier(.3, .7, .3, 1);
}
html[data-theme="dark"] .theme-switch__knob { inset-inline-start: calc(100% - 29px); }
.theme-switch__sun, .theme-switch__moon { position: relative; z-index: 1; }
.theme-switch:hover .theme-switch__track { border-color: var(--brand); }

.search-panel { border-block-start: 1px solid var(--line); background: var(--surface); padding-block: 14px; }
.search-panel[hidden] { display: none; }

.searchform { display: flex; gap: 8px; max-width: 640px; }
.searchform__input {
	flex: 1; min-width: 0; height: 46px; padding-inline: 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.searchform__input:focus { border-color: var(--brand); outline-offset: 0; }
.searchform__btn {
	width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%;
	background: var(--brand); color: var(--brand-ink);
	display: inline-flex; align-items: center; justify-content: center;
}
.searchform__btn:hover { background: var(--brand-hover); }

@media (max-width: 899px) {
	.topbar__desc { display: none; }
	.topbar__in { justify-content: space-between; }
	.navbar__burger { display: inline-flex; }
	.navbar__in { flex-wrap: wrap; }
	.navbar__menu { display: none; order: 3; flex-basis: 100%; padding-block-end: 10px; }
	.navbar.is-open .navbar__menu { display: block; }
	.menu { flex-direction: column; }
	.menu li { flex-wrap: wrap; }
	.menu li > a { flex: 1; }
	.menu > .current-menu-item > a::after, .menu > .current-menu-ancestor > a::after { display: none; }
	.menu .sub-menu { position: static; box-shadow: none; border: 0; border-inline-start: 2px solid var(--line); border-radius: 0; flex-basis: 100%; padding: 0 12px 0 0; margin-inline-start: 12px; }
	.brandbar .banner { display: none; }
	.brand__name { font-size: 24px; }
}

/* ==========================================================================
   ۴. چیدمان و عنوان بخش‌ها
   ========================================================================== */
.site-content { min-height: 50vh; padding-block-end: 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-block: 28px 8px; }
.layout__main { min-width: 0; }
@media (max-width: 899px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.block { margin-block: 36px; }
.layout__main > .block:first-child { margin-block-start: 0; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block__title {
	position: relative; display: inline-block; font-size: 22px; margin-block-end: 20px; padding-block-end: 12px;
}
.block__title::after {
	content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0;
	width: 84px; height: 10px; background: url("assets/img/arc.svg") no-repeat center / contain;
}
.block__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; }
.block__more .icon { transition: transform .2s; }
.block__more:hover .icon { transform: translateX(-4px); }

/* ==========================================================================
   ۵. معرفی صفحهٔ اصلی
   ========================================================================== */
.intro { background: var(--surface-2) var(--dots); background-size: auto, 14px 14px; border-block-end: 1px solid var(--line); overflow: hidden; }
.intro__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; align-items: center; padding-block: 28px; }
.intro__kicker { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 13px; font-weight: 700; }
.intro__lead { font-size: 22px; line-height: 1.8; font-weight: 800; margin: 0 0 16px; max-width: 30ch; }
.intro__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 14px; }
.intro__stat { margin: 0; color: var(--muted); font-size: 14px; }
.intro__stat b { color: var(--brand); font-size: 18px; }
.intro__art { position: relative; height: 250px; max-width: 520px; width: 100%; justify-self: end; }
.intro__img { position: absolute; object-fit: cover; border-radius: 12px; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.intro__img--a { inset-block-start: 0; inset-inline-end: 0; width: 56%; height: 250px; }
.intro__img--b { inset-block-start: 0; inset-inline-start: 0; width: 41%; height: 118px; }
.intro__img--c { inset-block-end: 0; inset-inline-start: 6%; width: 46%; height: 120px; }
@media (max-width: 899px) {
	.intro__in { grid-template-columns: minmax(0, 1fr); padding-block: 22px; }
	.intro__art { display: none; }
	.intro__lead { font-size: 19px; }
}

/* ==========================================================================
   ۶. دکمه‌ها و چیپ
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 8px 22px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: var(--brand-ink); }

.chip {
	display: inline-block; padding: 1px 12px; border-radius: 999px;
	background: var(--lime); color: var(--lime-ink); font-size: 12.5px; font-weight: 700;
	text-decoration: none; line-height: 1.9;
}
.chip:hover { background: var(--brand); color: var(--brand-ink); }

/* ==========================================================================
   ۷. کارت‌ها
   ========================================================================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.card-media { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media__img { transform: scale(1.03); }
.card-media__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--brand); opacity: .5; }
.card-body { padding: 14px 16px 16px; }
.card-title { font-size: 17px; line-height: 1.7; margin: 8px 0 6px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.9; margin: 0 0 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13px; color: var(--muted); }
.card-meta__item { display: inline-flex; align-items: center; gap: 5px; }

.card-stack { display: grid; gap: 16px; }
.card--list { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.card--list .card-media { aspect-ratio: auto; min-height: 100%; }
.card--list .card-media__img { position: absolute; inset: 0; }
@media (max-width: 599px) {
	.card--list { grid-template-columns: minmax(0, 1fr); }
	.card--list .card-media { aspect-ratio: 16 / 10; }
}

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1099px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .card-grid, .card-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.card--grid .card-title { font-size: 15.5px; }

/* ---- ویژه ---- */
.featured__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); gap: 16px; }
.card--feature { position: relative; border: 0; }
.card--feature .card-media { aspect-ratio: auto; position: absolute; inset: 0; }
.card--feature .card-media__img { position: absolute; inset: 0; }
.card--feature .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 14, 5, .88), rgba(8, 14, 5, .1) 70%); }
.card--feature .card-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; height: 100%; color: #fff; pointer-events: none; }
.card--feature .card-body a { pointer-events: auto; }
.card--feature .card-title { font-size: 16px; margin-block-start: 6px; }
.card--feature .card-title a, .card--feature .card-meta { color: #fff; }
.card--feature .card-title a:hover { color: var(--lime); }
.card--feature-big { grid-column: 1 / span 2; grid-row: 1 / span 3; }
.card--feature-big .card-body { min-height: 380px; padding: 22px; }
.card--feature-big .card-title { font-size: 24px; }
@media (max-width: 899px) {
	.featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
	.card--feature-big { grid-column: 1 / -1; grid-row: auto; }
	.card--feature-big .card-body { min-height: 280px; }
}
@media (max-width: 519px) { .featured__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- نوار دعوت ---- */
.cta-band { background: var(--brand); color: var(--brand-ink); margin-block: 40px; }
.cta-band__in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 24px; }
.cta-band__img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); }
.cta-band__title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.cta-band__desc { margin: 0 0 14px; opacity: .92; }
.cta-band .btn--primary { background: var(--lime); color: var(--lime-ink); }
.cta-band .btn--primary:hover { background: #fff; color: var(--lime-ink); }
@media (max-width: 699px) { .cta-band__in { grid-template-columns: minmax(0, 1fr); } .cta-band__img { height: 160px; } }

/* ==========================================================================
   ۸. صفحه‌بندی، نان‌ریزه، عنوان آرشیو
   ========================================================================== */
.pagination { margin-block: 28px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding-inline: 12px;
	border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }

.breadcrumb { font-size: 13.5px; color: var(--muted); margin-block-end: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumb__item + .breadcrumb__item::before { content: "‹"; margin-inline: 8px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .breadcrumb_last, .breadcrumb [aria-current] { color: var(--text); }

.archive-head { margin-block-end: 24px; padding: 20px 22px; background: var(--surface) var(--dots); background-size: auto, 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.archive-head__title { font-size: 26px; margin: 0; }
.archive-head__desc { color: var(--muted); margin: 8px 0 0; }
.archive-head__desc p:last-child { margin-block-end: 0; }
.empty-note { padding: 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

.archive-month { margin-block-end: 24px; }
.archive-month__title { font-size: 18px; color: var(--brand); border-block-end: 1px solid var(--line); padding-block-end: 6px; }
.archive-month__list { margin: 0; padding-inline-start: 1.2em; }
.archive-month__list li { margin-block: 4px; }

/* ==========================================================================
   ۹. سایدبار
   ========================================================================== */
.sidebar { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-block-start: 3px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; margin-block-end: 18px; }
.panel__title, .widget-title { font-size: 17px; margin: 0 0 12px; padding-block-end: 8px; border-block-end: 1px solid var(--line); }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { margin: 0; padding-block: 7px; border-block-end: 1px dashed var(--line); }
.panel li:last-child { border-block-end: 0; }
.panel a { text-decoration: none; color: var(--text); }
.panel a:hover { color: var(--brand); }
.panel .children, .panel .sub-menu { padding-inline-start: 14px; }
.widget-more { margin: 10px 0 0; font-size: 14px; }
.widget-more a { color: var(--brand); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

.mini-list__item { display: flex; align-items: center; gap: 12px; }
.mini-list__thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.mini-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-list__title { font-size: 14.5px; line-height: 1.7; font-weight: 500; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a { font-size: 13px !important; padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.tagcloud a:hover { border-color: var(--brand); }

.panel .searchform { max-width: none; }
.panel select { max-width: 100%; width: 100%; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel table { width: 100%; font-size: 14px; border-collapse: collapse; }
.panel caption { font-weight: 700; padding-block-end: 6px; }
.panel td, .panel th { text-align: center; padding: 4px; }
.panel .wp-block-latest-posts, .panel .wp-block-categories, .panel .wp-block-archives { list-style: none; padding: 0; }

/* ---- دوستان فرم نو (خوراک؛ ظاهر افزونه خنثی می‌شود) ---- */
.friends-feed ul, .friends-feed .feedzy-rss ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.friends-feed li, .friends-feed .rss_item {
	position: relative; display: block !important; margin: 0 !important; padding: 8px 34px 8px 0 !important;
	border: 0 !important; border-block-end: 1px dashed var(--line) !important; background: none !important; box-shadow: none !important;
}
.friends-feed li:last-child { border-block-end: 0 !important; }
.friends-feed .rss_image, .friends-feed .rss_description, .friends-feed .rss_content small, .friends-feed .rss_content time,
.friends-feed .rss_content .meta, .friends-feed .feedzy-rss .rss_content > small, .friends-feed .rss_content p,
.friends-feed .rss_content br, .friends-feed .feedzy-rss-image, .friends-feed img { display: none !important; }
.friends-feed .rss_content { display: block !important; padding: 0 !important; margin: 0 !important; width: auto !important; float: none !important; }
.friends-feed .title, .friends-feed .rss_content .title, .friends-feed .rss_content > .title { display: block; font-size: 14.5px !important; font-weight: 500; line-height: 1.7; }
.friends-feed a { font-size: 14.5px !important; line-height: 1.7 !important; color: var(--text) !important; font-weight: 500; }
.friends-feed a:hover { color: var(--brand) !important; }
.friends-feed li::before {
	content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 10px;
	width: 24px; height: 24px; background: var(--brand);
	-webkit-mask: var(--ic, url("assets/img/icons/dumbbell.svg")) no-repeat center / contain;
	mask: var(--ic, url("assets/img/icons/dumbbell.svg")) no-repeat center / contain;
}
.friends-feed li:nth-child(6n+1) { --ic: url("assets/img/icons/dumbbell.svg"); }
.friends-feed li:nth-child(6n+2) { --ic: url("assets/img/icons/trophy.svg"); }
.friends-feed li:nth-child(6n+3) { --ic: url("assets/img/icons/timer.svg"); }
.friends-feed li:nth-child(6n+4) { --ic: url("assets/img/icons/flame.svg"); }
.friends-feed li:nth-child(6n+5) { --ic: url("assets/img/icons/medal.svg"); }
.friends-feed li:nth-child(6n+6) { --ic: url("assets/img/icons/activity.svg"); }

/* ==========================================================================
   ۱۰. نوشته و برگه
   ========================================================================== */
.story { margin-block-end: 24px; }
.story__head { margin-block-end: 18px; }
.story__title { font-size: 30px; line-height: 1.6; margin: 10px 0 12px; }
.story__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--muted); font-size: 14px; }
.story__meta a { color: var(--muted); text-decoration: none; }
.story__meta a:hover { color: var(--brand); }
.story__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.story__avatar { border-radius: 50%; }
.story__figure { margin: 0 0 22px; }
.story__img { width: 100%; border-radius: var(--radius); display: block; aspect-ratio: 16 / 10; object-fit: cover; }

.entry { font-size: 17px; line-height: 2; max-width: 720px; }
.entry > *:first-child { margin-block-start: 0; }
.entry h2, .entry h3, .entry h4 { margin-block: 1.6em .6em; scroll-margin-block-start: 90px; }
.entry h2 { font-size: 24px; padding-inline-start: 14px; border-inline-start: 4px solid var(--lime); }
.entry h3 { font-size: 20px; }
.entry h4 { font-size: 18px; }
.entry a { text-decoration: underline; }
.entry img, .entry video, .entry iframe { border-radius: 12px; }
.entry img { height: auto; }
.entry figure { margin: 1.4em 0; max-width: 100%; }
.entry figcaption, .entry .wp-caption-text { margin-block-start: 8px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.8; }
.entry .wp-caption { max-width: 100%; }
.entry .alignleft { float: left; margin: 0 1.2em 1em 0; }
.entry .alignright { float: right; margin: 0 0 1em 1.2em; }
.entry .aligncenter { display: block; margin-inline: auto; }
.entry .alignwide, .entry .alignfull { max-width: 100%; }
.entry::after { content: ""; display: block; clear: both; }
.entry blockquote {
	margin: 1.6em 0; padding: 14px 22px; background: var(--surface-2);
	border-inline-start: 4px solid var(--brand); border-radius: 0 12px 12px 0; color: var(--text);
}
[dir="rtl"] .entry blockquote { border-radius: 12px 0 0 12px; }
.entry blockquote p:last-child { margin-block-end: 0; }
.entry cite { font-size: 14px; color: var(--muted); font-style: normal; }
.entry ul, .entry ol { padding-inline-start: 1.6em; }
.entry li { margin-block: .3em; }
.entry table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
.entry th, .entry td { padding: 10px 14px; border: 1px solid var(--line); text-align: start; }
.entry th { background: var(--surface-2); font-weight: 700; }
.entry code { font-family: var(--ff-mono); direction: ltr; unicode-bidi: embed; font-size: .9em; padding: .1em .45em; background: var(--surface-2); border-radius: 6px; }
.entry pre { direction: ltr; text-align: left; overflow-x: auto; padding: 16px; background: #14200D; color: #E8F3D2; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.entry pre code { padding: 0; background: none; color: inherit; }
.entry hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.entry .wp-block-image img, .entry .wp-block-embed iframe { max-width: 100%; }
.entry .wp-block-button__link { border-radius: 999px; }
.page-links { margin-block: 16px; display: flex; gap: 8px; align-items: center; }

.story__tags { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.story__tags-label { color: var(--muted); }
.story__tags a { padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); text-decoration: none; color: var(--text); }
.story__tags a:hover { border-color: var(--brand); color: var(--brand); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-block: 24px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.share__label { font-weight: 700; }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 14px; }
.share__btn:hover { border-color: var(--brand); color: var(--brand); }
.share__status { font-size: 13.5px; color: var(--brand); }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: var(--surface) var(--dots); background-size: auto, 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.author-box__avatar { border-radius: 50%; flex: none; }
.author-box__name { font-weight: 800; margin: 0 0 4px; }
.author-box__name a { color: var(--text); text-decoration: none; }
.author-box__bio { margin: 0; color: var(--muted); font-size: 14.5px; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 24px; }
.post-nav__link { display: block; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.post-nav__link:hover { border-color: var(--brand); }
.post-nav__link--next { grid-column: 1; }
.post-nav__link--prev { grid-column: 2; }
.post-nav__label { display: block; font-size: 13px; color: var(--muted); }
.post-nav__title { display: block; font-weight: 700; line-height: 1.7; }
@media (max-width: 599px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav__link--next, .post-nav__link--prev { grid-column: auto; } }

/* ==========================================================================
   ۱۱. دیدگاه‌ها
   ========================================================================== */
.comments { margin-block-start: 36px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-inline-start: 24px; padding-inline-start: 16px; border-inline-start: 2px solid var(--line); }
.cmt { margin-block-end: 16px; }
.cmt__body { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cmt__head { display: flex; align-items: center; gap: 12px; margin-block-end: 8px; }
.cmt__avatar { border-radius: 50%; }
.cmt__author { display: block; }
.cmt__date { font-size: 13px; color: var(--muted); text-decoration: none; }
.cmt__text { font-size: 15.5px; line-height: 1.9; }
.cmt__text p:last-child { margin-block-end: 0; }
.cmt__wait { font-size: 14px; color: var(--muted); }
.cmt__actions { display: flex; gap: 14px; margin-block-start: 8px; font-size: 14px; }
.cmt__actions a { color: var(--brand); }
.comment-respond { margin-block-start: 24px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-reply-title { font-size: 20px; }
.comment-form p { margin-block-end: 14px; }
.comment-form label { display: block; font-size: 14px; margin-block-end: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); outline-offset: 0; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form .submit { border: 0; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   ۱۲. پایین سایت
   ========================================================================== */
.site-footer { background: #121C0D; color: #DCE6CB; margin-block-start: 40px; }
html[data-theme="dark"] .site-footer { background: #0A1007; border-block-start: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 36px 28px; }
.footer-col__title { font-size: 18px; color: #fff; margin-block-end: 12px; }
.footer-col__text { color: #C3D0AF; max-width: 52ch; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding-block: 6px; border-block-end: 1px dashed rgba(255, 255, 255, .12); }
.footer-list li:last-child { border-block-end: 0; }
.site-footer a { color: #DCE6CB; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-bar { border-block-start: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 16px; }
.footer-bar__copy { margin: 0; color: #B6C4A2; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 699px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.to-top {
	position: fixed; inset-block-end: 20px; inset-inline-start: 20px; z-index: 40;
	width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow);
	display: inline-flex; align-items: center; justify-content: center;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--brand-hover); }

/* ==========================================================================
   ۱۳. دسترس‌پذیری، حرکت، چاپ
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .navbar, .sidebar, .site-footer, .share, .post-nav, .related, .comments, .to-top, .banner, .intro, .cta-band { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.layout { display: block; }
	.entry { max-width: none; }
	a { color: #000; text-decoration: underline; }
	.entry a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ==========================================================================
   ۱۴. اصلاحات تکمیلی (ابزارک‌های بلوکی، چیپ در کارت ویژه)
   ========================================================================== */
.card--feature .chip { align-self: flex-start; }
.panel .wp-block-heading, .panel h2.wp-block-heading { font-size: 17px; margin: 0 0 12px; padding-block-end: 8px; border-block-end: 1px solid var(--line); }
.panel .wp-block-group, .panel .wp-block-search, .panel .wp-block-latest-posts, .panel .wp-block-latest-comments { margin: 0; padding: 0; }
.panel .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.panel .wp-block-search__label { display: none; }
.panel .wp-block-search__input { flex: 1; min-width: 0; height: 42px; padding-inline: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.panel .wp-block-search__button { height: 42px; padding-inline: 16px; margin: 0; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.panel .wp-block-latest-comments { padding: 0; }
.panel .wp-block-latest-comments__comment { margin: 0; padding-block: 7px; border-block-end: 1px dashed var(--line); font-size: 14.5px; }
.panel .wp-block-latest-comments__comment-excerpt p { margin: 0; color: var(--muted); }
.layout--article { grid-template-columns: minmax(0, 760px) 320px; justify-content: space-between; }
@media (max-width: 899px) { .layout--article { grid-template-columns: minmax(0, 1fr); } }
