/* فوتر جديد — متناغم مع هوية الثيم (عاجي / حبر / صدأ) */
#colophon.site-footer {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	direction: rtl;
	font-family: var(--ff-b, 'Cairo', sans-serif);
	background: var(--ink2, #2e2520);
	color: #c8bdb1;
	border-top: 2px solid var(--rust, #8b3a2a);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}
#colophon.site-footer *,
#colophon.site-footer *::before,
#colophon.site-footer *::after {
	box-sizing: border-box;
}
#colophon.site-footer a {
	color: #e8dfd0;
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
#colophon.site-footer a:hover {
	color: var(--rust3, #c45a3f);
}
#colophon.site-footer p {
	margin: 0;
}

.ft-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 28px 28px;
}

/* العلامة + المقتطف في صف واحد هادئ */
.ft-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 36px 48px;
	align-items: start;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* شعار الصورة — يمنع انهيار العرض في CSS Grid */
.ft-brand {
	min-width: 0;
}
.ft-brand-mark {
	display: block;
	margin-bottom: 12px;
	line-height: 0;
	width: fit-content;
	max-width: 100%;
}
.ft-brand .custom-logo-link {
	display: inline-block;
	line-height: 0;
	border-radius: 4px;
}
.ft-brand .custom-logo-link:focus-visible {
	outline: 2px solid var(--rust3, #c45a3f);
	outline-offset: 4px;
}
.ft-brand .custom-logo,
.ft-brand .ft-site-icon-img {
	display: block;
	width: auto;
	height: auto;
	max-height: 72px;
	max-width: 320px;
	object-fit: contain;
	object-position: right center;
}
/* أيقونة الموقع (احتياطي): حجم ثابت حتى لا تختفي */
.ft-brand .ft-site-icon-img {
	width: 72px;
	height: 72px;
	max-height: none;
	max-width: none;
	object-fit: contain;
}
.ft-brand .ft-logo {
	display: inline-block;
	font-family: var(--ff-h, 'Amiri', serif);
	font-size: 1.75rem;
	font-weight: 700;
	color: #faf6ef;
	line-height: 1.2;
}
.ft-brand .ft-logo:hover {
	color: #faf6ef;
}
.ft-brand .ft-logo-dot {
	color: var(--rust3, #c45a3f);
}

.ft-brand .ft-desc {
	font-size: 13px;
	line-height: 1.75;
	color: #b8a99a;
	max-width: 28em;
}

.ft-quote {
	margin: 0;
	padding: 0 20px 0 0;
	border-right: 3px solid rgba(139, 58, 42, 0.45);
	border-left: none;
}
.ft-quote p {
	font-family: var(--ff-h, 'Amiri', serif);
	font-size: 0.98rem;
	font-style: italic;
	color: #a69e94;
	line-height: 2;
	margin-bottom: 0.5em;
}
.ft-quote p:last-of-type {
	margin-bottom: 0;
}
.ft-quote cite {
	display: block;
	margin-top: 12px;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--rust3, #c45a3f);
}

/* صف واحد: روابط أفقية + أيقونات */
.ft-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 24px;
	padding: 24px 0 20px;
}

.ft-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ft-nav li {
	margin: 0;
}
.ft-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #c8bdb1;
	border-radius: 6px;
	border: 1px solid transparent;
}
.ft-nav a:hover {
	color: #faf6ef;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.08);
}

.ft-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ft-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #c8bdb1;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.ft-social a:hover {
	color: #fff;
	border-color: transparent;
}
.ft-social svg {
	width: 18px;
	height: 18px;
}
.ft-social .s-fb:hover {
	background: #1877f2;
}
.ft-social .s-tw:hover {
	background: #1a1a1a;
}
.ft-social .s-yt:hover {
	background: #c00;
}
.ft-social .s-ig:hover {
	background: linear-gradient(145deg, #c13584, #e0942d);
}
.ft-social .s-tg:hover {
	background: #08c;
}

/* تذييل نصي بسيط */
.ft-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 12px;
	color: #b8a99a;
}
.ft-bottom a {
	color: #b5a99a;
	font-weight: 600;
}
.ft-bottom a:hover {
	color: var(--rust3, #c45a3f);
}

@media (max-width: 820px) {
	.ft-head {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-bottom: 28px;
	}
	.ft-quote {
		padding-right: 16px;
	}
	.ft-tools {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	.ft-nav ul {
		justify-content: center;
	}
	.ft-social {
		justify-content: center;
	}
	.ft-bottom {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}
}
