/* Masir Resources — کوله‌پشتیِ منابع. سایدبارِ فیلتر (راست، چسبان) + آیکن Lucide. RTL. */

.masir-res-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 20px 80px;
	font-family: inherit;
}

.masir-res-head { text-align: center; margin-bottom: 36px; }
.masir-res-title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	margin: 0 0 10px;
	color: var(--masir-fg, currentColor);
}
.masir-res-sub { font-size: 16px; opacity: .72; margin: 0; line-height: 1.7; }

/* آیکن استروکی پایه */
.masir-ic { width: 18px; height: 18px; flex: 0 0 auto; }

/* چیدمان دوستونه: سایدبار راست، لیست چپ */
.masir-res-layout {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

.masir-res-sidebar {
	flex: 0 0 248px;
	position: sticky;
	top: 88px;
	align-self: flex-start;
}
.masir-res-filters { display: flex; flex-direction: column; gap: 4px; }

.masir-res-fbtn {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	border: 0;
	background: transparent;
	color: inherit;
	border-radius: 12px;
	padding: 10px 13px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .14s ease, color .14s ease;
	font-family: inherit;
	text-align: start;
}
.masir-res-fbtn .masir-ic { opacity: .8; }
.masir-res-fbtn:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.masir-res-fbtn .masir-res-flabel { flex: 1 1 auto; }
.masir-res-fbtn .masir-res-count {
	font-size: 12px;
	font-weight: 700;
	opacity: .55;
	background: color-mix(in srgb, currentColor 9%, transparent);
	border-radius: 999px;
	padding: 1px 8px;
	min-width: 22px;
	text-align: center;
}
.masir-res-fbtn.is-active {
	background: var(--masir-accent, #e8643c);
	color: #fff;
}
.masir-res-fbtn.is-active .masir-ic { opacity: 1; }
.masir-res-fbtn.is-active .masir-res-count { opacity: .95; background: rgba(255,255,255,.22); }

/* لیست ردیف‌ها */
.masir-res-list { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.masir-res-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 14px;
	background: color-mix(in srgb, currentColor 3%, transparent);
	text-decoration: none;
	color: inherit;
	transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.masir-res-row:hover {
	transform: translateX(-3px);
	border-color: color-mix(in srgb, var(--masir-accent, #e8643c) 55%, transparent);
	background: color-mix(in srgb, currentColor 6%, transparent);
}
.masir-res-row-ic { display: inline-flex; flex: 0 0 auto; opacity: .7; }
.masir-res-row-ic .masir-ic { width: 20px; height: 20px; }

.masir-res-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.masir-res-name { font-size: 15.5px; font-weight: 700; line-height: 1.5; color: var(--masir-fg, currentColor); }
.masir-res-row-meta { font-size: 12.5px; opacity: .6; }

.masir-res-row-badges { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.masir-res-type {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 8%, transparent);
	opacity: .85;
	white-space: nowrap;
}
.masir-res-rec { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.masir-res-rec.rec-must    { background: #fee2e2; color: #b91c1c; }
.masir-res-rec.rec-suggest { background: #fef3c7; color: #b45309; }
.masir-res-rec.rec-extra   { background: color-mix(in srgb, currentColor 12%, transparent); opacity: .7; }
html.dark .masir-res-rec.rec-must    { background: color-mix(in srgb, #ef4444 28%, transparent); color: #fca5a5; }
html.dark .masir-res-rec.rec-suggest { background: color-mix(in srgb, #f59e0b 26%, transparent); color: #fcd34d; }
.masir-res-ext { font-size: 13px; opacity: .5; }
.masir-res-empty, .masir-res-noresult { text-align: center; opacity: .6; padding: 40px 0; }

/* ---- single ---- */
.masir-res-single-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 48px 20px 72px;
	font-family: inherit;
}
/* صفحه‌ی «لیست پویا» (جدول‌دار) عریض‌تر تا جدول جا شود. */
.masir-res-single-wrap.is-wide { max-width: 1080px; }
.masir-res-single-title {
	font-size: clamp(24px, 3.4vw, 34px);
	font-weight: 800;
	line-height: 1.5;
	margin: 0 0 18px;
	color: var(--masir-fg, currentColor);
}
.masir-res-single-body { font-size: 16px; line-height: 1.9; }
.masir-res-single-body h2 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; }
.masir-res-single-body h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.masir-res-single-body ul, .masir-res-single-body ol { padding-inline-start: 1.4em; margin: 12px 0; }
.masir-res-single-body li { margin: 6px 0; }
.masir-res-single-body blockquote {
	margin: 20px 0; padding: 12px 18px;
	border-inline-start: 3px solid var(--masir-accent, #e8643c);
	background: color-mix(in srgb, currentColor 4%, transparent);
	border-radius: 8px; opacity: .9;
}
.masir-res-date { font-size: 12.5px; opacity: .6; }
.masir-res-back { margin-top: 36px; }
.masir-res-back a { color: var(--masir-accent, #e8643c); text-decoration: none; font-weight: 600; }
.masir-res-back a:hover { text-decoration: underline; }

.masir-res-single-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 0 0 22px; padding-bottom: 18px;
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.masir-res-single-meta .masir-res-type { display: inline-flex; align-items: center; gap: 6px; }
.masir-res-single-meta .masir-res-type .masir-ic { width: 16px; height: 16px; }
.masir-res-lang, .masir-res-src { font-size: 12.5px; opacity: .6; }
.masir-res-cta-wrap { margin-top: 32px; }
.masir-res-cta {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--masir-accent, #e8643c); color: #fff;
	text-decoration: none; font-weight: 700; font-size: 15px;
	padding: 12px 24px; border-radius: 12px; transition: filter .15s ease;
}
.masir-res-cta:hover { filter: brightness(1.08); }

/* ---- جدولِ «لیست پویا» ---- */
.masir-res-table-wrap {
	overflow-x: auto;
	margin: 24px 0;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 14px;
}
.masir-res-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 520px;
}
.masir-res-table thead th {
	text-align: start;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .01em;
	padding: 12px 14px;
	background: color-mix(in srgb, currentColor 6%, transparent);
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	white-space: nowrap;
}
.masir-res-table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
	vertical-align: top;
	line-height: 1.6;
}
.masir-res-table tbody tr:last-child td { border-bottom: 0; }
.masir-res-table tbody tr:hover { background: color-mix(in srgb, currentColor 4%, transparent); }
.masir-res-table .cell-title { font-weight: 700; color: var(--masir-fg, currentColor); white-space: nowrap; }
.masir-res-table .masir-cell-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 9px;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 10%, transparent);
}
.masir-res-table a { color: var(--masir-accent, #e8643c); text-decoration: none; }
.masir-res-table a:hover { text-decoration: underline; }

/* ---- responsive ---- */
@media (max-width: 860px) {
	.masir-res-layout { flex-direction: column; }
	.masir-res-sidebar {
		position: static; flex: none; width: 100%;
		overflow-x: auto; margin-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}
	.masir-res-filters { flex-direction: row; gap: 8px; padding-bottom: 6px; }
	.masir-res-fbtn {
		width: auto; white-space: nowrap;
		border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
		border-radius: 999px; padding: 8px 13px;
	}
	.masir-res-fbtn .masir-res-flabel { flex: none; }
	.masir-res-row-badges .masir-res-type { display: none; }
}
