/* ==========================================================================
   Bekhta — inner page styles (v1.6.0)
   Loaded on every page EXCEPT the front page, so the approved homepage is
   never touched by these rules. Everything here is scoped to inner-page
   component classes; shared primitives only get neutral, white-surface
   refinements that already match the theme's own tokens.
   ========================================================================== */

/* ---------- Shared inner container ---------- */
.bekhta-inner {
	width: 100%;
	max-width: var(--bekhta-max-wide, 1240px);
	margin-inline: auto;
	padding-inline: clamp(14px, 3vw, 34px);
}

/* ---------- Page header (name centred, hairline rule through the row) ---- */
.bekhta-page-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 10px 0 26px;
	min-height: 34px;
}
.bekhta-page-head::before,
.bekhta-page-head::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--bekhta-border, #E6E0D3);
}
.bekhta-page-head h1,
.bekhta-page-head .bekhta-page-title {
	margin: 0;
	order: 0;
	text-align: center;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--bekhta-accent, #2F5D50);
	white-space: nowrap;
}
.bekhta-page-head p { display: none; }
.bekhta-page-sub {
	margin: -14px auto 26px;
	text-align: center;
	font-size: .84rem;
	color: var(--bekhta-text-secondary, #666);
	max-width: 62ch;
}

/* ---------- Category chip row ---------- */
.bekhta-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0 0 28px;
}
.bekhta-chips a {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--bekhta-border, #E6E0D3);
	border-radius: 999px;
	background: #fff;
	font-size: .74rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bekhta-text, #1F2421);
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bekhta-chips a:hover,
.bekhta-chips a.is-active {
	background: var(--bekhta-accent, #2F5D50);
	border-color: var(--bekhta-accent, #2F5D50);
	color: #fff;
}

/* ---------- Category block heading (row label + rule) ---------- */
.bekhta-cat-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 30px 0 16px;
}
.bekhta-cat-head h2 {
	margin: 0;
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bekhta-accent, #2F5D50);
	white-space: nowrap;
}
.bekhta-cat-head::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--bekhta-border, #E6E0D3);
}
.bekhta-cat-head a.bekhta-cat-link {
	order: 3;
	font-size: .74rem;
	white-space: nowrap;
	color: var(--bekhta-accent, #2F5D50);
	text-decoration: none;
}

/* ---------- Poetry cards: horizontal, 3 per row ---------- */
.bekhta-pgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}
.bekhta-pcard {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 22px 20px 16px;
	border: 1px solid var(--bekhta-border, #E6E0D3);
	border-radius: var(--bekhta-radius, 10px);
	background: #fff;
	text-align: center;
	min-height: 190px;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.bekhta-pcard:hover {
	border-color: var(--bekhta-accent, #2F5D50);
	box-shadow: 0 2px 10px rgba(31, 36, 33, .07);
}
.bekhta-pcard .bekhta-pcard-form {
	font-size: .66rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bekhta-gold, #B08A3E);
}
.bekhta-pcard .bekhta-pcard-name {
	margin: 0;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.4;
}
.bekhta-pcard .bekhta-pcard-name a { color: inherit; text-decoration: none; }
.bekhta-pcard .bekhta-verse-text {
	margin: 2px 0 0;
	font-size: clamp(1.02rem, 1.25vw, 1.16rem);
	line-height: 2.45;
}
.bekhta-pcard .bekhta-pcard-poet {
	margin: 0;
	font-size: .78rem;
	color: var(--bekhta-text-secondary, #666);
}
.bekhta-pcard .bekhta-pcard-poet a { color: inherit; text-decoration: none; }
.bekhta-pcard .bekhta-pcard-foot {
	margin-top: auto;
	padding-top: 8px;
	font-size: .72rem;
}
.bekhta-pcard .bekhta-pcard-foot a {
	color: var(--bekhta-accent, #2F5D50);
	text-decoration: none;
}

/* ---------- Ghazal / literary cards (horizontal) ---------- */
.bekhta-ggrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.bekhta-gcard {
	display: flex;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--bekhta-border, #E6E0D3);
	border-radius: var(--bekhta-radius, 10px);
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.bekhta-gcard:hover { border-color: var(--bekhta-accent, #2F5D50); box-shadow: 0 2px 10px rgba(31,36,33,.07); }
.bekhta-gcard-thumb {
	flex: 0 0 92px;
	width: 92px;
	height: 118px;
	border-radius: 6px;
	overflow: hidden;
	background: #F4F4F1;
}
.bekhta-gcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-gcard-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 auto; }
.bekhta-gcard-body .bekhta-gcard-form {
	font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--bekhta-gold, #B08A3E);
}
.bekhta-gcard-body h2 {
	margin: 0; font-size: .98rem; line-height: 1.35;
}
.bekhta-gcard-body h2 a { color: inherit; text-decoration: none; }
.bekhta-gcard .bekhta-verse-text { margin: 0; font-size: .99rem; line-height: 2.2; }
.bekhta-gcard-meta {
	margin: auto 0 0; font-size: .75rem; color: var(--bekhta-text-secondary, #666);
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.bekhta-gcard-meta a { color: inherit; text-decoration: none; }

/* ---------- Poet profile ---------- */
.bekhta-poet-profile {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	padding: 4px 0 22px;
	border-bottom: 1px solid var(--bekhta-border, #E6E0D3);
}
.bekhta-poet-profile-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: #F4F4F1;
}
.bekhta-poet-profile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-poet-profile-img .bekhta-poet-avatar {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	font-size: 2.4rem; color: var(--bekhta-accent, #2F5D50); background: #F4F4F1;
}
.bekhta-poet-profile h1 {
	margin: 0 0 6px;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	line-height: 1.25;
}
.bekhta-poet-facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 4px 14px;
	margin: 12px 0 0;
	font-size: .84rem;
}
.bekhta-poet-facts dt {
	color: var(--bekhta-text-secondary, #666);
	font-size: .72rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding-top: 2px;
}
.bekhta-poet-facts dd { margin: 0; color: var(--bekhta-text, #1F2421); }
.bekhta-poet-bio { margin: 14px 0 0; max-width: 68ch; font-size: .92rem; line-height: 1.75; }
.bekhta-poet-bio p:first-child { margin-top: 0; }

/* ---------- Tabs (poet profile + filters) ---------- */
.bekhta-tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	margin: 18px 0 6px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--bekhta-border, #E6E0D3);
	-webkit-overflow-scrolling: touch;
}
.bekhta-tabs::-webkit-scrollbar { display: none; }
.bekhta-tabs a,
.bekhta-tabs span.bekhta-tab-empty {
	flex: 0 0 auto;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: .74rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--bekhta-text-secondary, #666);
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
}
.bekhta-tabs a:hover { color: var(--bekhta-accent, #2F5D50); border-color: var(--bekhta-border, #E6E0D3); }
.bekhta-tabs a.is-active {
	background: var(--bekhta-accent, #2F5D50);
	border-color: var(--bekhta-accent, #2F5D50);
	color: #fff;
}
.bekhta-tabs .bekhta-tab-count { opacity: .65; margin-inline-start: 5px; font-size: .68rem; }

/* ---------- Detail pages ---------- */
.bekhta-detail {
	max-width: 780px;
	margin-inline: auto;
}
.bekhta-detail-cat {
	display: inline-block;
	margin-bottom: 10px;
	font-size: .68rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bekhta-gold, #B08A3E);
	text-decoration: none;
}
.bekhta-detail h1 {
	margin: 0 0 8px;
	font-size: clamp(1.35rem, 2.3vw, 1.75rem);
	line-height: 1.3;
}
.bekhta-detail-by {
	margin: 0 0 22px;
	font-size: .86rem;
	color: var(--bekhta-text-secondary, #666);
}
.bekhta-detail-by a { color: var(--bekhta-accent, #2F5D50); text-decoration: none; }
.bekhta-detail-sher .bekhta-verse-text {
	margin: 0 auto 26px;
	font-size: clamp(1.32rem, 2.4vw, 1.72rem);
	line-height: 2.6;
	text-align: center;
}
.bekhta-detail-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 0 6px;
	border-top: 1px solid var(--bekhta-border, #E6E0D3);
}
.bekhta-detail-actions .bekhta-actions { justify-content: center; gap: 10px; }
.bekhta-detail-actions .bekhta-action-btn {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 15px; border-radius: 999px;
	border: 1px solid var(--bekhta-border, #E6E0D3);
	background: #fff; font-size: .76rem; color: var(--bekhta-text, #1F2421);
}
.bekhta-detail-actions .bekhta-action-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bekhta-detail-actions .bekhta-action-btn:hover { border-color: var(--bekhta-accent, #2F5D50); color: var(--bekhta-accent, #2F5D50); }
.bekhta-detail-actions .bekhta-action-btn.is-bookmarked { background: var(--bekhta-accent, #2F5D50); border-color: var(--bekhta-accent, #2F5D50); color: #fff; }
.bekhta-detail-actions .bekhta-action-btn.is-bookmarked svg { fill: currentColor; }

/* long-form literary content (>100 words): readable essay/story layout */
.bekhta-longform {
	max-width: 720px;
	margin-inline: auto;
}
.bekhta-longform .bekhta-verse-text {
	text-align: right;
	font-size: 1.18rem;
	line-height: 2.7;
	margin: 0 0 26px;
}
.bekhta-longform .bekhta-prose-body {
	font-size: 1rem;
	line-height: 1.95;
	color: var(--bekhta-text, #1F2421);
}
.bekhta-longform .bekhta-prose-body p { margin: 0 0 1.05em; }
.bekhta-longform .bekhta-prose-body p:first-child { margin-top: 0; }

/* ---------- Books ---------- */
.bekhta-book-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 22px 18px;
}
.bekhta-book-card { display: block; text-decoration: none; color: inherit; }
.bekhta-book-card .bekhta-book-card-cover {
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 6px;
	overflow: hidden;
	background: #F4F4F1;
	margin-bottom: 10px;
}
.bekhta-book-card .bekhta-book-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-book-card .bekhta-book-9x16 { width: 100%; aspect-ratio: 9/16; height: auto; }
.bekhta-book-card h2 {
	margin: 0 0 3px; font-size: .84rem; font-weight: 600; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bekhta-book-card .bekhta-book-card-cat {
	margin: 0; font-size: .7rem; color: var(--bekhta-text-secondary, #666);
	letter-spacing: .04em;
}
.bekhta-book-card:hover h2 { color: var(--bekhta-accent, #2F5D50); }

.bekhta-book-detail {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}
.bekhta-book-detail-cover {
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 8px;
	overflow: hidden;
	background: #F4F4F1;
}
.bekhta-book-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-book-detail h1 { margin: 0 0 16px; font-size: clamp(1.3rem, 2.1vw, 1.65rem); }
.bekhta-book-meta {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 0;
	margin: 0 0 20px;
	font-size: .86rem;
	border-top: 1px solid var(--bekhta-border, #E6E0D3);
}
.bekhta-book-meta dt,
.bekhta-book-meta dd {
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid var(--bekhta-border, #E6E0D3);
}
.bekhta-book-meta dt {
	font-size: .72rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--bekhta-text-secondary, #666);
}
.bekhta-book-meta dd { color: var(--bekhta-text, #1F2421); }

/* ---------- Video category rows ---------- */
.bekhta-vrow { margin: 0 0 30px; }
.bekhta-vrow-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 168px;
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.bekhta-vrow-grid > * { scroll-snap-align: start; }
.bekhta-vrow-grid .bekhta-video-card { width: 168px; }

/* ---------- Prose grid (1:1) ---------- */
.bekhta-prose-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 190px;
	gap: 18px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.bekhta-prose-grid > * { scroll-snap-align: start; }
.bekhta-prose-card2 { display: block; text-decoration: none; color: inherit; min-width: 0; }
.bekhta-prose-card2 .bekhta-prose-sq {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #F4F4F1;
	margin-bottom: 10px;
}
.bekhta-prose-card2 .bekhta-prose-sq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-prose-card2 .bekhta-prose-fallback {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	font-size: 1.9rem; color: var(--bekhta-accent, #2F5D50); background: #F4F4F1;
}
.bekhta-prose-card2 h2 {
	margin: 0; font-size: .84rem; font-weight: 600; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bekhta-prose-card2:hover h2 { color: var(--bekhta-accent, #2F5D50); }

/* ---------- Blog grid ---------- */
.bekhta-bloggrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 26px 20px;
}
.bekhta-blogcard { display: block; text-decoration: none; color: inherit; }
.bekhta-blogcard .bekhta-blogcard-img {
	width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
	background: #F4F4F1; margin-bottom: 10px;
}
.bekhta-blogcard .bekhta-blogcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-blogcard h2 {
	margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bekhta-blogcard:hover h2 { color: var(--bekhta-accent, #2F5D50); }

/* single post / prose article */
.bekhta-article { max-width: 740px; margin-inline: auto; }
.bekhta-article-img {
	width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
	background: #F4F4F1; margin-bottom: 20px;
}
.bekhta-article-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-article h1 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.3; }
.bekhta-article-meta2 { margin: 0 0 22px; font-size: .78rem; color: var(--bekhta-text-secondary, #666); }
.bekhta-article-body { font-size: 1rem; line-height: 1.95; }
.bekhta-article-body p { margin: 0 0 1.05em; }
.bekhta-article-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- Bookmarks page ---------- */
.bekhta-bm-toolbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap; margin: 0 0 22px;
	font-size: .8rem; color: var(--bekhta-text-secondary, #666);
}
.bekhta-bm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}
.bekhta-bm-item {
	position: relative;
	display: flex; flex-direction: column;
	border: 1px solid var(--bekhta-border, #E6E0D3);
	border-radius: 10px; overflow: hidden; background: #fff;
}
.bekhta-bm-thumb { width: 100%; aspect-ratio: 16 / 9; background: #F4F4F1; overflow: hidden; }
.bekhta-bm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-bm-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.bekhta-bm-body h2 { margin: 0; font-size: .88rem; line-height: 1.4; }
.bekhta-bm-body h2 a { color: inherit; text-decoration: none; }
.bekhta-bm-type { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bekhta-gold, #B08A3E); }
.bekhta-bm-remove {
	align-self: flex-start; margin-top: auto;
	border: 1px solid var(--bekhta-border, #E6E0D3); background: #fff;
	border-radius: 999px; padding: 4px 10px; font-size: .7rem; cursor: pointer;
	color: var(--bekhta-text-secondary, #666);
}
.bekhta-bm-remove:hover { border-color: var(--bekhta-error, #A3423C); color: var(--bekhta-error, #A3423C); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.bekhta-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bekhta-ggrid { grid-template-columns: 1fr; }
	.bekhta-poet-profile { grid-template-columns: 168px minmax(0, 1fr); gap: 20px; }
	.bekhta-book-detail { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 767px) {
	.bekhta-pgrid { grid-template-columns: 1fr; gap: 14px; }
	.bekhta-pcard { min-height: 0; padding: 18px 16px 14px; }
	.bekhta-poet-profile { grid-template-columns: 1fr; gap: 14px; }
	.bekhta-poet-profile-img { max-width: 150px; }
	.bekhta-poet-facts { grid-template-columns: 1fr; gap: 2px; }
	.bekhta-poet-facts dt { margin-top: 6px; }
	.bekhta-book-detail { grid-template-columns: 1fr; }
	.bekhta-book-detail-cover { max-width: 180px; }
	.bekhta-book-meta { grid-template-columns: 120px minmax(0, 1fr); }
	.bekhta-book-grid { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 18px 14px; }
	.bekhta-gcard-thumb { flex-basis: 74px; width: 74px; height: 96px; }
	.bekhta-prose-grid { grid-auto-columns: 150px; gap: 14px; }
	.bekhta-vrow-grid { grid-auto-columns: 148px; }
	.bekhta-vrow-grid .bekhta-video-card { width: 148px; }
	.bekhta-bloggrid { grid-template-columns: 1fr; gap: 20px; }
	.bekhta-detail-sher .bekhta-verse-text { font-size: 1.22rem; line-height: 2.4; }
	.bekhta-longform .bekhta-verse-text { font-size: 1.06rem; line-height: 2.5; }
	.bekhta-page-head { gap: 10px; min-height: 30px; }
	.bekhta-page-head h1 { font-size: .95rem; letter-spacing: .08em; }
	.bekhta-cat-head h2 { font-size: .76rem; }
}
@media (max-width: 400px) {
	.bekhta-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bekhta-prose-grid { grid-auto-columns: 132px; }
}


/* ===== 1.7 — related rows (homepage card language), listing cards ===== */
.bekhta-related .bekhta-carousel-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 2px 2px 12px;
}
.bekhta-related .bekhta-related-item {
	flex: 0 0 auto;
	width: 320px;
	max-width: 84vw;
	scroll-snap-align: start;
	display: flex;
}
.bekhta-related .bekhta-related-item > * { width: 100%; height: 100%; }
@media (max-width: 600px) { .bekhta-related .bekhta-related-item { width: 268px; } }

/* Poetry card — name, sher, poet, centred */
.bekhta-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .bekhta-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bekhta-pgrid { grid-template-columns: 1fr; } }

.bekhta-pcard {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bekhta-border, #E6E0D3);
	border-radius: 12px;
	background: #FFFFFF;
	padding: 18px 16px;
	text-align: center;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bekhta-pcard:hover { border-color: var(--bekhta-accent, #2F5D50); box-shadow: 0 2px 10px rgba(31,36,33,.06); }
.bekhta-pcard-main { text-decoration: none; color: inherit; display: block; }
.bekhta-pcard-form {
	display: inline-block;
	font-size: 10.5px;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--bekhta-accent, #2F5D50);
	margin-bottom: 6px;
}
.bekhta-pcard-name { font-size: 15px; line-height: 1.45; margin: 0 0 8px; font-weight: 600; }
.bekhta-pcard .bekhta-verse-text { margin: 0 auto; }
.bekhta-pcard-poet { margin: 12px 0 0; font-size: 12px; color: #6B6B6B; }
.bekhta-pcard-poet a { color: inherit; text-decoration: none; }
.bekhta-pcard-poet a:hover { color: var(--bekhta-accent, #2F5D50); text-decoration: underline; }

/* Ghazal listing card — one link, centred stack */
.bekhta-ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 8px; }
@media (max-width: 700px) { .bekhta-ggrid { grid-template-columns: 1fr; } }
.bekhta-gcard {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 176px;
	padding: 20px 18px;
	border: 1px solid var(--bekhta-border, #E6E0D3);
	border-radius: 12px;
	background: #FFFFFF;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bekhta-gcard:hover { border-color: var(--bekhta-accent, #2F5D50); box-shadow: 0 2px 10px rgba(31,36,33,.06); }
.bekhta-gcard-form { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--bekhta-accent, #2F5D50); margin-bottom: 6px; }
.bekhta-gcard-title { font-size: 16px; line-height: 1.4; margin: 0 0 10px; font-weight: 600; }
.bekhta-gcard .bekhta-verse-text { margin: 0 auto; }
.bekhta-gcard-poet { margin-top: 12px; font-size: 12px; color: #6B6B6B; }
.bekhta-gcard-excerpt { margin: 0; font-size: 13px; color: #55574F; }

/* Poet page */
.bekhta-poet-page { padding-top: 4px; }
.bekhta-poet-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 13px; }
.bekhta-poet-facts dt { color: #6B6B6B; }
.bekhta-poet-facts dd { margin: 0; }
.bekhta-poet-bio { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: #3A3D38; max-width: 68ch; }
.bekhta-tabs .bekhta-tab-count {
	display: inline-block;
	margin-inline-start: 6px;
	font-size: 10px;
	opacity: .7;
}
.bekhta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.bekhta-chips a {
	font-size: 12px;
	padding: 5px 11px;
	border: 1px solid var(--bekhta-border, #E6E0D3);
	border-radius: 999px;
	text-decoration: none;
	color: var(--bekhta-accent, #2F5D50);
	background: #FFFFFF;
}
.bekhta-chips a:hover { border-color: var(--bekhta-accent, #2F5D50); }

/* ==========================================================================
   v1.8.0 — INNER-PAGE DESIGN SYSTEM
   One premium layer for every page except the approved front page. This file is
   enqueued only when ! is_front_page(), so nothing here can reach the homepage.
   All existing class names are preserved; this layer only refines them.
   ========================================================================== */

/* ---------- 0. Inner-page tokens (scoped; homepage tokens untouched) ------ */
body:not(.home) {
	--bk-line: #E7E2D6;
	--bk-line-strong: #D8D1C1;
	--bk-ink: #26302C;
	--bk-ink-soft: #6B6F68;
	--bk-accent: #2F5D50;
	--bk-accent-hover: #234A3F;
	--bk-accent-tint: #EDF3F0;
	--bk-gold: #B08A3E;
	--bk-gold-tint: #F7F1E2;
	--bk-surface: #FFFFFF;
	--bk-radius-card: 12px;
	--bk-radius-pill: 999px;
	--bk-shadow-rest: 0 1px 2px rgba(28, 36, 32, .04);
	--bk-shadow-hover: 0 4px 14px rgba(28, 36, 32, .07);
	--bk-ease: 160ms cubic-bezier(.4, 0, .2, 1);
	--bk-head-h: 26px;
	background: #FFFFFF;
}

/* ---------- 1. Container & vertical rhythm -------------------------------- */
.bekhta-main > .bekhta-container { padding-inline: clamp(16px, 3.2vw, 40px); }
.bekhta-main { background: #FFFFFF; }
.bekhta-section { margin: 0 0 34px; }
.bekhta-section:last-child { margin-bottom: 8px; }
.bekhta-inner { max-width: var(--bekhta-max-wide, 1240px); padding-inline: clamp(16px, 3vw, 32px); }

/* ---------- 2. Page heading: hairline through the whole row --------------- */
.bekhta-page-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin: 6px 0 24px;
	gap: 0;
}
.bekhta-page-head::before,
.bekhta-page-head::after { display: none; }
.bekhta-page-head {
	border-block-start: 0;
}
.bekhta-page-head::before {
	content: "";
	display: block;
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1px;
	background: var(--bk-line, #E7E2D6);
}
.bekhta-page-head h1,
.bekhta-page-head .bekhta-page-title {
	position: relative;
	z-index: 1;
	background: #FFFFFF;
	padding-inline: 16px;
	margin: 0;
	font-size: clamp(1rem, 1.35vw, 1.15rem);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bk-accent, #2F5D50);
	line-height: 1.4;
	white-space: nowrap;
	text-align: center;
}
.bekhta-page-head h1::after { display: none; }
.bekhta-page-head .bekhta-more-link {
	position: absolute;
	z-index: 1;
	inset-inline-end: 0;
	top: 50%;
	transform: translateY(-50%);
	background: #FFFFFF;
	padding-inline-start: 12px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--bk-accent, #2F5D50);
	text-decoration: none;
	white-space: nowrap;
}
.bekhta-page-head .bekhta-more-link:hover { color: var(--bk-accent-hover, #234A3F); }
.bekhta-page-sub { margin: -12px auto 24px; font-size: .82rem; }

/* Non-Latin scripts never get uppercased or letter-spaced. */
html[lang="ur"] .bekhta-page-head h1,
html[lang="ar"] .bekhta-page-head h1,
html[lang="hi"] .bekhta-page-head h1,
.bekhta-page-head h1.bekhta-lang-ur,
.bekhta-page-head h1.bekhta-lang-ar,
.bekhta-page-head h1.bekhta-lang-hi { text-transform: none; letter-spacing: 0; }

/* ---------- 3. Section / category heading row ----------------------------- */
.bekhta-cat-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--bk-head-h, 26px);
	margin: 24px 0 14px;
	padding: 0;
	border: 0;
}
.bekhta-cat-head::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1px;
	background: var(--bk-line, #E7E2D6);
}
.bekhta-cat-head::after { display: none; }
.bekhta-cat-head h2 {
	position: relative;
	z-index: 1;
	background: #FFFFFF;
	padding-inline: 14px;
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--bk-accent, #2F5D50);
	line-height: 1.4;
}
html[lang="ur"] .bekhta-cat-head h2,
html[lang="ar"] .bekhta-cat-head h2,
html[lang="hi"] .bekhta-cat-head h2 { text-transform: none; letter-spacing: 0; }
.bekhta-cat-head a.bekhta-cat-link {
	position: absolute;
	z-index: 1;
	inset-inline-end: 0;
	top: 50%;
	transform: translateY(-50%);
	background: #FFFFFF;
	padding-inline-start: 12px;
	font-size: .76rem;
	font-weight: 600;
	color: var(--bk-accent, #2F5D50);
	text-decoration: none;
}
.bekhta-cat-head a.bekhta-cat-link:hover { color: var(--bk-accent-hover, #234A3F); text-decoration: underline; }

/* ---------- 4. Chips / tabs ---------------------------------------------- */
.bekhta-chips { gap: 7px; margin: 0 0 20px; }
.bekhta-chips a {
	height: 28px;
	display: inline-flex;
	align-items: center;
	padding: 0 12px;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--bk-ink-soft, #6B6F68);
	background: var(--bk-surface, #FFFFFF);
	border: 1px solid var(--bk-line, #E7E2D6);
	border-radius: var(--bk-radius-pill, 999px);
	text-decoration: none;
	transition: color var(--bk-ease), border-color var(--bk-ease), background var(--bk-ease);
}
.bekhta-chips a:hover { color: var(--bk-accent, #2F5D50); border-color: var(--bk-accent, #2F5D50); text-decoration: none; }
.bekhta-chips a.is-active { color: #FFFFFF; background: var(--bk-accent, #2F5D50); border-color: var(--bk-accent, #2F5D50); }

.bekhta-tabs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 2px;
	padding: 0 0 10px;
	margin: 0 0 22px;
	border-bottom: 1px solid var(--bk-line, #E7E2D6);
	scrollbar-width: none;
}
.bekhta-tabs::-webkit-scrollbar { display: none; }
.bekhta-tabs a {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 34px;
	padding: 0 13px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--bk-ink-soft, #6B6F68);
	text-decoration: none;
	border: 0;
	border-radius: 0;
	white-space: nowrap;
	transition: color var(--bk-ease);
}
.bekhta-tabs a::after {
	content: "";
	position: absolute;
	inset-inline: 10px;
	bottom: -11px;
	height: 2px;
	background: transparent;
	transition: background var(--bk-ease);
}
.bekhta-tabs a:hover { color: var(--bk-accent, #2F5D50); border: 0; text-decoration: none; }
.bekhta-tabs a.is-active { color: var(--bk-accent, #2F5D50); background: transparent; border: 0; }
.bekhta-tabs a.is-active::after { background: var(--bk-accent, #2F5D50); }
.bekhta-tabs a:focus-visible { outline: 2px solid var(--bk-accent, #2F5D50); outline-offset: 2px; }
.bekhta-tabs .bekhta-tab-count {
	font-size: .66rem;
	font-weight: 600;
	opacity: .8;
	color: inherit;
	background: var(--bk-gold-tint, #F7F1E2);
	border-radius: 999px;
	padding: 1px 6px;
	line-height: 1.5;
}
html[lang="ur"] .bekhta-tabs a,
html[lang="ar"] .bekhta-tabs a { text-transform: none; letter-spacing: 0; }

/* ---------- 5. Card primitives ------------------------------------------- */
.bekhta-pcard,
.bekhta-gcard,
.bekhta-book-card,
.bekhta-prose-card2,
.bekhta-blogcard,
.bekhta-bm-item {
	background: var(--bk-surface, #FFFFFF);
	border: 1px solid var(--bk-line, #E7E2D6);
	border-radius: var(--bk-radius-card, 12px);
	box-shadow: var(--bk-shadow-rest);
	transition: border-color var(--bk-ease), box-shadow var(--bk-ease), transform var(--bk-ease);
}
.bekhta-pcard:hover,
.bekhta-gcard:hover,
.bekhta-book-card:hover,
.bekhta-prose-card2:hover,
.bekhta-blogcard:hover,
.bekhta-bm-item:hover {
	border-color: var(--bk-accent, #2F5D50);
	box-shadow: var(--bk-shadow-hover);
	transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
	.bekhta-pcard, .bekhta-gcard, .bekhta-book-card, .bekhta-prose-card2, .bekhta-blogcard, .bekhta-bm-item { transition: none; }
	.bekhta-pcard:hover, .bekhta-gcard:hover, .bekhta-book-card:hover,
	.bekhta-prose-card2:hover, .bekhta-blogcard:hover, .bekhta-bm-item:hover { transform: none; }
}

/* Card titles — one scale everywhere */
.bekhta-pcard .bekhta-pcard-name,
.bekhta-gcard .bekhta-gcard-title,
.bekhta-book-card h2,
.bekhta-prose-card2 h2,
.bekhta-blogcard h2,
.bekhta-bm-body h2 {
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--bk-ink, #26302C);
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
}

/* ---------- 6. Poetry cards (3 per row, verse readable) ------------------ */
.bekhta-pgrid, .bekhta-ggrid, .bekhta-book-grid, .bekhta-prose-grid, .bekhta-bloggrid {
	align-items: stretch;
	justify-items: stretch;
}
.bekhta-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bekhta-pcard { padding: 16px 16px 14px; text-align: center; min-height: 168px; }
.bekhta-pcard-form,
.bekhta-gcard-form {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bk-gold, #B08A3E);
}
.bekhta-pcard .bekhta-pcard-name { margin: 6px 0 10px; }
.bekhta-pcard .bekhta-verse-text { margin: 0 auto; font-size: .95rem; line-height: 2.15; }
.bekhta-pcard .bekhta-pcard-poet { margin: 12px 0 0; font-size: .74rem; color: var(--bk-ink-soft, #6B6F68); }
.bekhta-pcard .bekhta-pcard-poet a { color: inherit; }
.bekhta-pcard .bekhta-pcard-poet a:hover { color: var(--bk-accent, #2F5D50); }
.bekhta-pcard-main { display: block; text-decoration: none; color: inherit; }

/* ---------- 7. Ghazal / literary cards ----------------------------------- */
.bekhta-ggrid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.bekhta-gcard { padding: 20px 18px; min-height: 190px; justify-content: center; gap: 0; }
.bekhta-gcard .bekhta-gcard-title { margin: 6px 0 10px; font-size: 1rem; }
.bekhta-gcard .bekhta-verse-text { font-size: .95rem; line-height: 2.2; margin: 0 auto; }
.bekhta-gcard-poet { margin-top: 12px; font-size: .74rem; color: var(--bk-ink-soft, #6B6F68); }
.bekhta-gcard-excerpt { font-size: .84rem; line-height: 1.7; color: var(--bk-ink-soft, #6B6F68); }

/* ---------- 8. Book cards (9:16 covers) ---------------------------------- */
.bekhta-book-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.bekhta-book-card { padding: 10px 10px 12px; text-align: center; }
.bekhta-book-card .bekhta-book-card-cover {
	aspect-ratio: 9 / 16;
	background: var(--bk-gold-tint, #F7F1E2);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 10px;
}
.bekhta-book-card h2 { font-size: .84rem; line-height: 1.4; }
.bekhta-book-card .bekhta-book-card-cat {
	margin: 4px 0 0;
	font-size: .68rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bk-ink-soft, #6B6F68);
}

/* ---------- 9. Prose cards (1:1) ----------------------------------------- */
.bekhta-prose-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
.bekhta-prose-card2 { padding: 10px 10px 12px; }
.bekhta-prose-card2 .bekhta-prose-sq { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; margin-bottom: 10px; background: var(--bk-accent-tint, #EDF3F0); }
.bekhta-prose-card2 h2 { font-size: .84rem; line-height: 1.45; }
.bekhta-prose-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--bk-accent, #2F5D50);
}

/* ---------- 10. Blog cards (16:9 image) ---------------------------------- */
.bekhta-bloggrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bekhta-blogcard { padding: 10px 10px 14px; }
.bekhta-blogcard .bekhta-blogcard-img { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 10px; background: var(--bk-accent-tint, #EDF3F0); }
.bekhta-blogcard h2 { font-size: .95rem; line-height: 1.45; padding-inline: 4px; }

/* ---------- 11. Video rows ---------------------------------------------- */
.bekhta-vrow-grid { gap: 14px; }
.bekhta-vrow-grid .bekhta-video-card { width: 172px; }

/* ---------- 12. Carousel: one arrow system ------------------------------ */
.bekhta-carousel { position: relative; padding: 0 40px; }
.bekhta-carousel .bekhta-carousel-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 2px 0 14px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.bekhta-carousel .bekhta-carousel-track::-webkit-scrollbar { height: 4px; }
.bekhta-carousel .bekhta-carousel-track::-webkit-scrollbar-thumb { background: var(--bk-line-strong, #D8D1C1); border-radius: 4px; }
.bekhta-carousel .bekhta-carousel-track::-webkit-scrollbar-thumb:hover { background: var(--bk-accent, #2F5D50); }
.bekhta-carousel-item { flex: 0 0 auto; scroll-snap-align: start; min-width: 0; }
.bekhta-carousel-item > * { height: 100%; }

.bekhta-carousel .bekhta-carousel-btn {
	position: absolute;
	top: calc(50% - 7px);
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 1px solid var(--bk-line-strong, #D8D1C1);
	color: var(--bk-ink, #26302C);
	box-shadow: none;
	font-size: 1rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 6;
	cursor: pointer;
	transition: color var(--bk-ease), border-color var(--bk-ease), background var(--bk-ease), opacity var(--bk-ease);
}
.bekhta-carousel .bekhta-carousel-btn:hover { color: var(--bk-accent, #2F5D50); border-color: var(--bk-accent, #2F5D50); background: var(--bk-accent-tint, #EDF3F0); }
.bekhta-carousel .bekhta-carousel-btn:active { transform: translateY(-50%) scale(.94); }
.bekhta-carousel .bekhta-carousel-btn:focus-visible { outline: 2px solid var(--bk-accent, #2F5D50); outline-offset: 2px; }
.bekhta-carousel .bekhta-carousel-btn[disabled],
.bekhta-carousel .bekhta-carousel-btn[aria-disabled="true"] { opacity: 0; pointer-events: none; }
.bekhta-carousel .bekhta-carousel-btn[hidden] { display: none; }
.bekhta-carousel .bekhta-carousel-btn.prev { inset-inline-start: 0; inset-inline-end: auto; left: 0; right: auto; }
.bekhta-carousel .bekhta-carousel-btn.next { inset-inline-end: 0; inset-inline-start: auto; right: 0; left: auto; }
[dir="rtl"] .bekhta-carousel .bekhta-carousel-btn.prev { left: auto; right: 0; }
[dir="rtl"] .bekhta-carousel .bekhta-carousel-btn.next { right: auto; left: 0; }
/* Arrows stay reachable on touch screens instead of being switched off. */
@media (max-width: 767px) {
	.bekhta-carousel { padding: 0 28px; }
	.bekhta-carousel .bekhta-carousel-btn { display: inline-flex; width: 26px; height: 26px; font-size: .82rem; }
}

/* Related rows reuse the same geometry */
.bekhta-related { margin: 30px 0 0; }
.bekhta-related .bekhta-carousel-track { gap: 16px; }
.bekhta-related .bekhta-related-item { width: 300px; max-width: 84vw; display: flex; }
.bekhta-related .bekhta-related-item > * { width: 100%; }
.bekhta-related .bekhta-pcard-item,
.bekhta-related .bekhta-related-item .bekhta-pcard { text-align: center; }
@media (max-width: 640px) { .bekhta-related .bekhta-related-item { width: 264px; } }

/* ---------- 13. Buttons -------------------------------------------------- */
.bekhta-btn,
.bekhta-action-btn,
.bekhta-bm-toolbar button,
.bekhta-poetry-toolbar button {
	height: 32px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: .76rem;
	font-weight: 600;
	line-height: 1;
	border-radius: var(--bk-radius-pill, 999px);
	border: 1px solid var(--bk-line-strong, #D8D1C1);
	background: #FFFFFF;
	color: var(--bk-ink, #26302C);
	cursor: pointer;
	text-decoration: none;
	transition: color var(--bk-ease), border-color var(--bk-ease), background var(--bk-ease);
}
.bekhta-action-btn:hover,
.bekhta-bm-toolbar button:hover,
.bekhta-poetry-toolbar button:hover {
	color: var(--bk-accent, #2F5D50);
	border-color: var(--bk-accent, #2F5D50);
	background: var(--bk-accent-tint, #EDF3F0);
}
.bekhta-action-btn:focus-visible,
.bekhta-bm-toolbar button:focus-visible { outline: 2px solid var(--bk-accent, #2F5D50); outline-offset: 2px; }
.bekhta-action-btn[disabled] { opacity: .5; cursor: not-allowed; }
.bekhta-detail-actions { margin: 20px 0 6px; }
.bekhta-detail-actions .bekhta-actions,
.bekhta-actions-labelled { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bekhta-detail-actions .bekhta-action-btn.is-bookmarked {
	background: var(--bk-accent, #2F5D50);
	border-color: var(--bk-accent, #2F5D50);
	color: #FFFFFF;
}
/* Bookmark state must not rely on colour alone. */
.bekhta-detail-actions .bekhta-action-btn.is-bookmarked::after { content: "✓"; font-size: .7rem; }

/* Share menu */
.bekhta-share-wrap { position: relative; display: inline-flex; }
.bekhta-share-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	inset-inline-start: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	min-width: 148px;
	padding: 6px;
	background: #FFFFFF;
	border: 1px solid var(--bk-line, #E7E2D6);
	border-radius: 10px;
	box-shadow: var(--bk-shadow-hover);
}
.bekhta-share-menu[hidden] { display: none; }
.bekhta-share-menu a {
	padding: 7px 10px;
	font-size: .78rem;
	color: var(--bk-ink, #26302C);
	text-decoration: none;
	border-radius: 6px;
}
.bekhta-share-menu a:hover { background: var(--bk-accent-tint, #EDF3F0); color: var(--bk-accent, #2F5D50); text-decoration: none; }

/* Pagination */
.bekhta-pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0 10px; }
.bekhta-pagination a,
.bekhta-pagination span {
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .78rem;
	font-weight: 600;
	border: 1px solid var(--bk-line, #E7E2D6);
	border-radius: 8px;
	color: var(--bk-ink, #26302C);
	background: #FFFFFF;
	text-decoration: none;
}
.bekhta-pagination .current,
.bekhta-pagination span.current { background: var(--bk-accent, #2F5D50); border-color: var(--bk-accent, #2F5D50); color: #FFFFFF; }
.bekhta-pagination a:hover { border-color: var(--bk-accent, #2F5D50); color: var(--bk-accent, #2F5D50); text-decoration: none; }

/* Empty state */
.bekhta-empty {
	margin: 22px 0;
	padding: 30px 20px;
	text-align: center;
	font-size: .88rem;
	color: var(--bk-ink-soft, #6B6F68);
	background: #FFFFFF;
	border: 1px dashed var(--bk-line-strong, #D8D1C1);
	border-radius: var(--bk-radius-card, 12px);
}

/* ---------- 14. Detail pages -------------------------------------------- */
.bekhta-detail { max-width: 760px; margin: 0 auto; padding: 4px 0 8px; }
.bekhta-detail-cat {
	display: block;
	text-align: center;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bk-gold, #B08A3E);
	margin: 0 0 8px;
	text-decoration: none;
}
.bekhta-detail-lang { display: block; text-align: center; font-size: .68rem; color: var(--bk-ink-soft); margin: 0 0 4px; }
.bekhta-detail h1 {
	margin: 0 0 10px;
	text-align: center;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.4;
	color: var(--bk-ink, #26302C);
	letter-spacing: 0;
	text-transform: none;
	overflow-wrap: anywhere;
}
.bekhta-detail-by { margin: 0 0 18px; text-align: center; font-size: .8rem; color: var(--bk-ink-soft, #6B6F68); }
.bekhta-detail-by a { color: var(--bk-accent, #2F5D50); font-weight: 600; }
.bekhta-detail-sher { text-align: center; margin: 22px 0 8px; }
.bekhta-detail-sher .bekhta-verse-text { font-size: 1.15rem; line-height: 2.35; margin: 0 auto; }
.bekhta-longform { max-width: 660px; margin: 14px auto 0; }
.bekhta-longform .bekhta-verse-text { font-size: 1.05rem; line-height: 2.3; text-align: center; margin: 0 0 18px; }
.bekhta-prose-body { font-size: .95rem; line-height: 1.85; color: var(--bk-ink, #26302C); }
.bekhta-stanza-break { height: 14px; }

/* Book detail */
.bekhta-book-detail { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; margin: 10px 0 20px; }
.bekhta-book-detail-cover { aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: 1px solid var(--bk-line, #E7E2D6); background: var(--bk-gold-tint, #F7F1E2); }
.bekhta-book-detail h1 { font-size: clamp(1.2rem, 2.1vw, 1.6rem); margin: 0 0 14px; text-align: start; }
.bekhta-book-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0 0 18px; font-size: .82rem; }
.bekhta-book-meta dt { color: var(--bk-ink-soft, #6B6F68); }
.bekhta-book-meta dd { margin: 0; color: var(--bk-ink, #26302C); }
@media (max-width: 760px) {
	.bekhta-book-detail { grid-template-columns: 1fr; gap: 18px; }
	.bekhta-book-detail-cover { max-width: 190px; margin: 0 auto; }
}

/* Article / blog detail */
.bekhta-article { max-width: 740px; margin: 0 auto; }
.bekhta-article h1 { text-align: start; font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin: 14px 0 8px; }
.bekhta-article-img { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--bk-line, #E7E2D6); }
.bekhta-article-meta2 { margin: 0 0 20px; font-size: .76rem; color: var(--bk-ink-soft, #6B6F68); text-align: start; }
.bekhta-article-body { font-size: .95rem; line-height: 1.9; }

/* ---------- 15. Poet profile -------------------------------------------- */
.bekhta-poet-profile {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	padding: 18px;
	margin: 10px 0 24px;
	background: #FFFFFF;
	border: 1px solid var(--bk-line, #E7E2D6);
	border-radius: var(--bk-radius-card, 12px);
}
.bekhta-poet-profile-img { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--bk-accent-tint, #EDF3F0); }
.bekhta-poet-profile-img img { width: 100%; height: 100%; object-fit: cover; }
.bekhta-poet-profile-img .bekhta-poet-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--bk-accent, #2F5D50);
}
.bekhta-poet-profile h1 { margin: 0 0 10px; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; text-align: start; }
.bekhta-poet-facts { font-size: .82rem; gap: 5px 16px; }
.bekhta-poet-bio { font-size: .9rem; line-height: 1.8; color: var(--bk-ink, #26302C); max-width: 66ch; }
@media (max-width: 760px) {
	.bekhta-poet-profile { grid-template-columns: 1fr; gap: 16px; padding: 14px; text-align: center; }
	.bekhta-poet-profile-img { max-width: 170px; margin: 0 auto; }
	.bekhta-poet-profile h1 { text-align: center; }
	.bekhta-poet-facts { justify-content: center; }
}

/* ---------- 16. Bookmarks page ------------------------------------------ */
.bekhta-bm-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bekhta-bm-item { padding: 0; overflow: hidden; }
.bekhta-bm-thumb { aspect-ratio: 16 / 9; background: var(--bk-accent-tint, #EDF3F0); }
.bekhta-bm-body h2 { font-size: .88rem; }

/* ---------- 17. Contact page -------------------------------------------- */
.bekhta-contact-layout { gap: 28px; }
.bekhta-contact-info-title, .bekhta-contact-form-title { font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--bk-accent, #2F5D50); }
.bekhta-contact-form input[type="text"],
.bekhta-contact-form input[type="email"],
.bekhta-contact-form textarea {
	width: 100%;
	padding: 9px 12px;
	font-size: .88rem;
	font-family: inherit;
	color: var(--bk-ink, #26302C);
	background: #FFFFFF;
	border: 1px solid var(--bk-line-strong, #D8D1C1);
	border-radius: 8px;
}
.bekhta-contact-form input:focus, .bekhta-contact-form textarea:focus { outline: 2px solid var(--bk-accent, #2F5D50); outline-offset: 1px; border-color: var(--bk-accent, #2F5D50); }

/* ---------- 18. Responsive --------------------------------------------- */
@media (max-width: 1023px) {
	.bekhta-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bekhta-main > .bekhta-container { padding-inline: clamp(14px, 3.5vw, 26px); }
	.bekhta-poet-profile { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.bekhta-pgrid { grid-template-columns: 1fr; }
	.bekhta-ggrid { grid-template-columns: 1fr; }
	.bekhta-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bekhta-prose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bekhta-bloggrid { grid-template-columns: 1fr; }
	.bekhta-cat-head h2 { font-size: .95rem; }
	.bekhta-cat-head a.bekhta-cat-link,
	.bekhta-page-head .bekhta-more-link { font-size: .72rem; }
	.bekhta-page-head h1 { font-size: .95rem; letter-spacing: .08em; }
	.bekhta-detail-sher .bekhta-verse-text { font-size: 1.05rem; }
}
@media (max-width: 420px) {
	.bekhta-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.bekhta-pcard { min-height: 0; padding: 14px 12px; }
	.bekhta-cat-head a.bekhta-cat-link { position: static; transform: none; display: block; margin: 6px auto 0; padding: 0; text-align: center; }
	.bekhta-page-head { flex-direction: column; }
	.bekhta-page-head .bekhta-more-link { position: static; transform: none; margin-top: 4px; padding: 0; }
}

/* ==========================================================================
   v1.9 — Parts G/H/I/J/K/L: title boxes, related grids, 16:9 video cards
   ========================================================================== */

/* Title in its own compact green-bordered box, separate from the sher. */
.bekhta-title-box {
	display: inline-block;
	margin: 2px auto 10px;
	padding: 3px 12px;
	border: 1px solid rgba(47, 93, 80, .35);
	border-inline-start: 3px solid var(--bk-accent, #2F5D50);
	border-radius: 6px;
	background: var(--bk-accent-tint, #EDF3F0);
	color: var(--bk-ink, #26302C);
	max-width: 100%;
	overflow-wrap: break-word;
}
.bekhta-title-box a { color: inherit; text-decoration: none; }
.bekhta-gcard .bekhta-title-box { align-self: center; }
.bekhta-lang-ur .bekhta-title-box,
.bekhta-lang-ar .bekhta-title-box { border-inline-start: 0; border-inline-end: 3px solid var(--bk-accent, #2F5D50); }

/* Poetry / literary detail: clear title line under the category. */
.bekhta-detail-name { margin: 0 0 10px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

/* Related content: responsive multi-row grid, never one horizontal row. */
.bekhta-related-grid-wrap { margin: 34px 0 10px; }
.bekhta-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
	align-items: stretch;
}
.bekhta-related-cell { display: flex; min-width: 0; }
.bekhta-related-cell > * { width: 100%; }
@media (max-width: 1023px) { .bekhta-related-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 600px) { .bekhta-related-grid { grid-template-columns: 1fr; } }

/* Recent videos: horizontal 16:9 cards, image edge-to-edge, title only. */
.bekhta-vgrid-169 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin: 0 0 8px;
}
.bekhta-video-card-h { padding: 0; overflow: hidden; }
.bekhta-video-169 { display: block; width: 100%; aspect-ratio: 16 / 9; background: #F4F4F1; overflow: hidden; }
.bekhta-video-169 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bekhta-video-169-fallback {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; font-size: 1.4rem; color: var(--bk-accent, #2F5D50);
	background: linear-gradient(160deg, #EDF3F0, #FFFFFF);
}
.bekhta-video-card-h .bekhta-card-title { margin: 0; padding: 10px 12px; }

/* Videos page vertical cards (other categories): image reaches the card
   border, title only — matches the approved homepage treatment. Scoped to
   .bekhta-vrow-grid, so the homepage is untouched. */
.bekhta-vrow-grid .bekhta-video-card { padding: 0; overflow: hidden; }
.bekhta-vrow-grid .bekhta-video-9x16 { border: 0; border-radius: 0; }
.bekhta-vrow-grid .bekhta-card-title { padding: 8px 10px; margin: 0; }

/* ==========================================================================
   v2.0 — Parts A/C/D/E/F/G/H/I: 41:18 slider, 4/6-per-row grids, image
   badges, fixed video-title height, per-type bookmark cards
   ========================================================================== */

/* Related grids: 4 per wide desktop row (poetry / literary / blog),
   6 per wide desktop row (compact prose cards). Never on mobile. */
.bekhta-related-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (min-width: 1200px) {
	.bekhta-related-grid.bekhta-rg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bekhta-related-grid.bekhta-rg-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1199px) and (min-width: 768px) {
	.bekhta-related-grid.bekhta-rg-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bekhta-related-grid.bekhta-rg-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.bekhta-related-grid.bekhta-rg-4,
	.bekhta-related-grid.bekhta-rg-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.bekhta-related-grid.bekhta-rg-4,
	.bekhta-related-grid.bekhta-rg-6 { grid-template-columns: 1fr; }
}

/* Poetry and Ghazal LISTINGS: four cards per wide desktop row. */
@media (min-width: 1200px) {
	.bekhta-pgrid, .bekhta-ggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.bekhta-ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Small green category badge over related-prose images (Part G.2). */
.bekhta-prose-sq { position: relative; }
.bekhta-img-badge {
	position: absolute;
	z-index: 2;
	top: 8px;
	inset-inline-start: 8px;
	max-width: calc(100% - 16px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: var(--bk-accent, #2F5D50);
	color: #fff;
	font-size: .62rem;
	letter-spacing: .05em;
	padding: 3px 8px;
	border-radius: 999px;
	pointer-events: none;
}

/* Video cards: fixed dimensions — the title area never changes card size.
   Long titles clamp to two lines inside a fixed-height area (Part F.1). */
.bekhta-video-card .bekhta-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 2.7em;
	line-height: 1.35;
	overflow-wrap: break-word;
}
.bekhta-video-card-h .bekhta-card-title { height: 2.7em; }

/* Playing Next sidebar: scrolls when many videos are listed (Part F.6). */
@media (min-width: 1024px) {
	.bekhta-video-related { max-height: 72vh; overflow-y: auto; padding-inline-end: 4px; }
}

/* Bookmarks page: per-type card layouts keep their native proportions. */
.bekhta-bm-grid .bekhta-pcard,
.bekhta-bm-grid .bekhta-gcard,
.bekhta-bm-grid .bekhta-book-card,
.bekhta-bm-grid .bekhta-prose-card2,
.bekhta-bm-grid .bekhta-blogcard,
.bekhta-bm-grid .bekhta-video-card { position: relative; }
.bekhta-bm-item .bekhta-bm-remove { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; }
.bekhta-bm-item { position: relative; }

/* Bookmarks page — per-type native cards (Part I.3): the card fills the
   cell, a transparent overlay link keeps the whole card clickable, and the
   Remove pill floats above without being swallowed by the card. */
.bekhta-bm-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bekhta-bm-item.bekhta-bm-typecard { overflow: visible; }
.bekhta-bm-typecard .bekhta-pcard,
.bekhta-bm-typecard .bekhta-gcard,
.bekhta-bm-typecard .bekhta-book-card,
.bekhta-bm-typecard .bekhta-prose-card2,
.bekhta-bm-typecard .bekhta-blogcard,
.bekhta-bm-typecard .bekhta-video-card { margin: 0; height: 100%; }
.bekhta-bm-typecard-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bekhta-bm-typecard .bekhta-bm-remove { z-index: 2; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.bekhta-bm-typecard .bekhta-title-box a,
.bekhta-bm-typecard h2 a { position: relative; z-index: 2; }

/* ==========================================================================
   v1.0 — FINAL LAYER (wins over earlier layers)
   1) Redesigned detail action bar: Copy · Share · Bookmark sit inside ONE
      attached green pill-group directly under the content — a new design,
      no detached hairline, works on sher, prose and literary details.
   ========================================================================== */
.bekhta-detail-actions {
	display: flex;
	justify-content: center;
	padding: 10px 0 6px;
	border-top: 0;
	margin-top: -2px;
}
.bekhta-detail-actions .bekhta-actions,
.bekhta-detail-actions .bekhta-actions-labelled {
	display: inline-flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0;
	background: var(--bk-accent-tint, #EDF3F0);
	border: 1px solid rgba(47, 93, 80, .30);
	border-radius: 999px;
	padding: 4px;
}
.bekhta-detail-actions .bekhta-actions > * + * { border-inline-start: 1px solid rgba(47, 93, 80, .18); }
.bekhta-detail-actions .bekhta-action-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 18px; border-radius: 999px;
	border: 0; background: transparent;
	font-size: .78rem; font-weight: 600;
	color: var(--bk-accent, #2F5D50);
	transition: background .15s ease, color .15s ease;
}
.bekhta-detail-actions .bekhta-action-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bekhta-detail-actions .bekhta-action-btn:hover { background: #FFFFFF; color: var(--bk-accent, #2F5D50); }
.bekhta-detail-actions .bekhta-action-btn.is-bookmarked { background: var(--bk-accent, #2F5D50); color: #FFFFFF; }
.bekhta-detail-actions .bekhta-action-btn.is-bookmarked svg { fill: currentColor; }
.bekhta-detail-actions .bekhta-share-menu { top: calc(100% + 8px); }
@media (max-width: 480px) {
	.bekhta-detail-actions .bekhta-action-btn { padding: 8px 13px; font-size: .74rem; }
}

/* 2) Books: the cover reaches the card frame edge — no inner padding and
   no white area on the All-Books page, related book cards, or the
   detail-page cover. */
.bekhta-book-card .bekhta-book-card-cover,
.bekhta-book-card .bekhta-book-9x16,
.bekhta-book-detail-cover,
.bekhta-bm-grid .bekhta-book-card-cover {
	border: 0;
	padding: 0;
	margin: 0;
	background: #F4F4F1;
	border-radius: 6px;
	overflow: hidden;
}
.bekhta-book-card .bekhta-book-9x16 img,
.bekhta-book-detail-cover img {
	display: block; width: 100%; height: 100%;
	object-fit: cover; margin: 0;
}

/* 3) Recent Videos: exactly ONE horizontal row (scrolls sideways), fixed
   card width so titles can never change the row shape. */
.bekhta-vgrid-169 {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 300px;
	gap: 16px;
	margin: 0 0 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
}
.bekhta-vgrid-169 > * { scroll-snap-align: start; }
@media (max-width: 767px) {
	.bekhta-vgrid-169 { grid-auto-columns: 240px; gap: 12px; }
}
