/* ============================================================
   Bekhta — shared component layer (v1.8.0)
   Sticky header, header bookmark control, footer social row and the
   per-language typography helpers. Loaded on every page; every rule
   here targets a component added after the approved homepage was
   signed off. No homepage section, card, carousel or spacing rule
   is present in this file.
   ============================================================ */
/* ---------- 1. Sticky header ---------- */
.bekhta-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #FFFFFF;
	/* Header underline/shadow line uses the existing green theme colour. */
	border-bottom: 2px solid var(--bekhta-accent, #2F5D50);
	transition: box-shadow .18s ease;
}
.bekhta-header.is-stuck { box-shadow: 0 2px 12px rgba(47, 93, 80, .22); }
body.admin-bar .bekhta-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .bekhta-header { top: 46px; }
}
/* Sticky needs a scroll context that is not clipped by an ancestor. */
.bekhta-main { overflow: visible; }

/* Mobile navigation must never be clipped by the sticky header. */
.bekhta-mobile-nav.is-open {
	max-height: calc(100vh - 72px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* ---------- 2. Header bookmark icon ---------- */
.bekhta-bookmark-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-inline-end: 2px;
	border-radius: 50%;
	color: var(--bekhta-accent, #2F5D50);
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.bekhta-bookmark-link:hover,
.bekhta-bookmark-link:focus-visible {
	background: var(--bekhta-highlight, #F4F0E2);
	color: var(--bekhta-accent, #2F5D50);
}
.bekhta-bookmark-link svg { width: 17px; height: 17px; display: block; }
@media (max-width: 480px) {
	.bekhta-bookmark-link { width: 28px; height: 28px; }
	.bekhta-bookmark-link svg { width: 16px; height: 16px; }
}

/* ---------- 3. Footer: Write to Us above Follow Us, icons in one row ------ */
.bekhta-footer .bekhta-footer-grid { align-items: start; }
.bekhta-footer .bekhta-footer-write { margin-top: 18px; }
.bekhta-footer .bekhta-footer-write + ul { margin-bottom: 4px; }
.bekhta-footer .bekhta-social-list,
.bekhta-footer ul.bekhta-social-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.bekhta-footer .bekhta-social-list li { margin: 0; padding: 0; }
.bekhta-footer .bekhta-social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	transition: transform .15s ease, opacity .15s ease;
}
.bekhta-footer .bekhta-social-list a:hover { transform: translateY(-1px); opacity: .9; }
.bekhta-footer .bekhta-social-list svg { width: 15px; height: 15px; fill: #fff; }
@media (max-width: 767px) {
	.bekhta-footer .bekhta-social-list { gap: 6px; }
	.bekhta-footer .bekhta-social-list a { width: 28px; height: 28px; }
}

/* Footer brand block: editable tagline keeps a readable measure. */
.bekhta-footer .bekhta-footer-about { max-width: 34ch; }

/* ---------- 4. Per-language typography (titles, descriptions, verses) ----- */
/* Urdu — same Nastaliq family and generous line height used by verses. */
.bekhta-lang-ur,
.bekhta-lang-ur .bekhta-pcard-name,
.bekhta-lang-ur .bekhta-gcard-title,
.bekhta-lang-ur h1,
.bekhta-lang-ur .bekhta-detail-by {
	font-family: var(--bekhta-font-urdu, "Noto Nastaliq Urdu", serif);
	line-height: 2.1;
	direction: rtl;
}
.bekhta-lang-ur.bekhta-pcard,
.bekhta-lang-ur.bekhta-gcard { text-align: center; }
.bekhta-lang-ur .bekhta-verse-text { line-height: 2.45; }
/* Arabic — Naskh, slightly tighter than Nastaliq. */
.bekhta-lang-ar,
.bekhta-lang-ar .bekhta-pcard-name,
.bekhta-lang-ar .bekhta-gcard-title,
.bekhta-lang-ar h1 {
	font-family: var(--bekhta-font-arabic, "Noto Naskh Arabic", serif);
	line-height: 1.9;
	direction: rtl;
}
/* Hindi — Devanagari, LTR. */
.bekhta-lang-hi,
.bekhta-lang-hi .bekhta-pcard-name,
.bekhta-lang-hi .bekhta-gcard-title,
.bekhta-lang-hi h1 {
	font-family: var(--bekhta-font-hindi, "Noto Sans Devanagari", sans-serif);
	line-height: 1.75;
	direction: ltr;
}
/* English and Roman Urdu — Latin stack, LTR. */
.bekhta-lang-en,
.bekhta-lang-roman,
.bekhta-lang-en .bekhta-pcard-name,
.bekhta-lang-roman .bekhta-pcard-name,
.bekhta-lang-en .bekhta-gcard-title,
.bekhta-lang-roman .bekhta-gcard-title {
	font-family: var(--bekhta-font-latin, "Inter", system-ui, sans-serif);
	line-height: 1.65;
	direction: ltr;
}
.bekhta-lang-roman .bekhta-verse-text {
	font-family: var(--bekhta-font-latin, "Inter", system-ui, sans-serif);
	font-style: italic;
}

/* Long-form prose inside a literary work keeps normal paragraph rhythm. */
.bekhta-lang-ur .bekhta-prose-body { font-family: var(--bekhta-font-urdu, serif); line-height: 2.35; text-align: right; direction: rtl; }
.bekhta-lang-ar .bekhta-prose-body { font-family: var(--bekhta-font-arabic, serif); line-height: 2.1; text-align: right; direction: rtl; }
