.uep-library .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.uep-library,
.uep-book {
	--uep-ink: #1c1917;
	--uep-muted: #57534e;
	--uep-teal: #0e7c66;
	--uep-paper: #f4f1ea;
	--uep-line: #e4ddd0;
	color: var(--uep-ink);
	width: 100%;
	max-width: 1080px;
	margin: 0 auto 2rem;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.uep-library-kicker,
.uep-book-back {
	margin: 0 0 0.25rem;
	color: var(--uep-teal);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.uep-library-title {
	margin: 0 0 1rem;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.25;
}

.uep-library-search {
	display: block;
	margin-bottom: 1rem;
}

.uep-filter-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 0.5rem;
	align-items: start;
	width: 100%;
}

.uep-filter-search {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 5.6rem;
}

.uep-library-search select {
	width: 100%;
	min-width: 0;
	border: 1px solid var(--uep-line);
	background: #fff;
	color: var(--uep-ink);
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
	font: inherit;
}

.uep-library-search button,
.uep-filter-all,
.uep-library-pager a {
	border: 1px solid var(--uep-line);
	background: #fff;
	color: var(--uep-ink);
	border-radius: 999px;
	padding: 0.55rem 0.9rem;
	text-decoration: none;
	font: inherit;
	text-align: center;
	box-sizing: border-box;
}

.uep-library-search button,
.uep-filter-all {
	width: 100%;
	margin: 0;
}

.uep-library-search button {
	background: var(--uep-teal);
	border-color: var(--uep-teal);
	color: #fff;
	cursor: pointer;
}

.uep-library-cats,
.uep-library-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.2rem;
}

.uep-filter-all.is-current,
.uep-library-cats a.is-current {
	background: var(--uep-ink);
	border-color: var(--uep-ink);
	color: #fff;
}

article.post-dir-ltr .entry-content ul.uep-library-grid,
article.post-dir-ltr .kalam-prose ul.uep-library-grid,
html[dir="rtl"] article.post-dir-ltr .kalam-prose ul.uep-library-grid,
.uep-library ul.uep-library-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 1rem 0.85rem;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100%;
	box-sizing: border-box;
}

article.post-dir-ltr .entry-content li.uep-book-card,
article.post-dir-ltr .kalam-prose li.uep-book-card,
.uep-library li.uep-book-card {
	margin: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

@media (max-width: 760px) {
	article.post-dir-ltr .kalam-prose ul.uep-library-grid,
	.uep-library ul.uep-library-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

.uep-book-card {
	position: relative;
}

.uep-library button.uep-share {
	position: absolute;
	z-index: 3;
	top: 0.45rem;
	inset-inline-start: 0.45rem;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #0e7c66;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.42rem 0.7rem;
	width: auto;
	display: inline-block;
}

.uep-book-link {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	color: inherit;
	text-decoration: none;
}

.uep-cover {
	display: block;
	aspect-ratio: 2 / 3;
	background: var(--uep-paper);
	border: 1px solid var(--uep-line);
	border-radius: 8px;
	overflow: hidden;
}

.uep-cover-img,
.uep-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.uep-cover-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(160deg, transparent 40%, rgba(14, 124, 102, 0.18) 40% 46%, transparent 46%),
		var(--uep-paper);
}

.uep-book-name {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
}

.uep-book-author,
.uep-book-place,
.uep-book-meta,
.uep-library-empty {
	color: var(--uep-muted);
	margin: 0;
}

.uep-book-layout {
	display: grid;
	grid-template-columns: minmax(140px, 220px) 1fr;
	gap: 1.25rem;
	align-items: start;
}

.uep-book-body > :first-child {
	margin-top: 0;
}

.uep-chapters {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--uep-line);
}

.uep-chapters h2 {
	margin: 0 0 0.6rem;
	font-size: 1.25rem;
}

.uep-chapters ol {
	margin: 0;
	padding-inline-start: 1.2rem;
}

.uep-chapters li {
	margin: 0.35rem 0;
}

@media (max-width: 640px) {
	.uep-book-layout {
		grid-template-columns: 1fr;
	}

	.uep-book .uep-cover {
		max-width: 180px;
	}
}

.uep-reader {
	--uep-ink: #1c1917;
	--uep-muted: #57534e;
	--uep-teal: #0e7c66;
	--uep-paper: #f7f1e6;
	--uep-line: #e4ddd0;
	color: var(--uep-ink);
	margin: 0 auto 2rem;
	max-width: 46rem;
}

.uep-type {
	display: flex;
	gap: 0.35rem;
}

.uep-save {
	background: var(--uep-teal);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 0.4rem 0.8rem;
	text-decoration: none;
}

.uep-saved-note {
	color: var(--uep-teal);
	font-weight: 700;
	padding: 0.4rem 0.15rem;
}

.uep-remove {
	background: #fff;
	border: 1px solid var(--uep-line);
	border-radius: 999px;
	color: var(--uep-ink);
	font: inherit;
	font-weight: 700;
	padding: 0.4rem 0.8rem;
	text-decoration: none;
}

.uep-mark-list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.uep-mark-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.45rem 0;
}

.uep-mark-list li a:first-child {
	color: var(--uep-ink);
	font-weight: 700;
	text-decoration: none;
}

.uep-type button,
.uep-display-panel button,
.uep-marks button {
	background: #fff;
	border: 1px solid var(--uep-line);
	border-radius: 999px;
	color: var(--uep-ink);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-width: 2.6rem;
	padding: 0.35rem 0.6rem;
}

.uep-display-panel button.is-on {
	background: var(--uep-teal);
	color: #fff;
}

.uep-reader.is-sm .uep-leaf {
	font-size: 1rem;
}

.uep-reader.is-lg .uep-leaf {
	font-size: 1.45rem;
}

.uep-reader.is-xl .uep-leaf {
	font-size: 1.7rem;
}

.uep-reader.lead-tight .uep-leaf {
	line-height: 1.85;
}

.uep-reader.lead-wide .uep-leaf {
	line-height: 2.7;
}

.uep-reader.font-naskh .uep-sheet {
	font-family: "Noto Naskh Arabic", "Noto Nastaliq Urdu", serif;
}

.uep-reader.font-nastaliq .uep-sheet {
	font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
}

.uep-reader.font-amiri .uep-sheet {
	font-family: "Amiri", "Noto Naskh Arabic", serif;
}

.uep-ar {
	font-family: "Amiri", "Noto Naskh Arabic", serif;
	font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

.uep-reader.font-naskh .uep-ar {
	font-family: "Noto Naskh Arabic", "Amiri", serif;
}

.uep-reader.theme-white .uep-sheet {
	background: #fff;
	color: #1c1917;
}

.uep-reader.theme-dark .uep-sheet {
	background: #1c1917;
	color: #f6f1e7;
	border-color: #3f3a34;
}

.uep-reader.theme-dark .uep-sheet::after {
	border-color: transparent transparent #2a2622 transparent;
}

.uep-toc summary,
.uep-display summary,
.uep-marks summary {
	background: #fff;
	border: 1px solid var(--uep-line);
	border-radius: 999px;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	padding: 0.35rem 0.75rem;
}

.uep-reader-bar,
.uep-turn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.uep-reader-library,
.uep-turn a,
.uep-start {
	color: var(--uep-teal);
	font-weight: 700;
	text-decoration: none;
}

.uep-toc,
.uep-display,
.uep-marks {
	position: relative;
}

.uep-toc summary::-webkit-details-marker {
	display: none;
}

.uep-toc ol,
.uep-display-panel,
.uep-marks-panel {
	position: absolute;
	z-index: 5;
	inset-inline-start: 0;
	min-width: 16rem;
	max-width: min(24rem, 80vw);
	max-height: 60vh;
	overflow: auto;
	margin: 0.4rem 0 0;
	padding: 0.6rem 1.1rem 0.7rem;
	background: #fff;
	border: 1px solid var(--uep-line);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(40, 30, 10, 0.12);
}

.uep-marks-panel ol {
	margin: 0.55rem 0 0;
	padding: 0 0 0 1.1rem;
}

.uep-marks-empty {
	color: var(--uep-muted);
	margin: 0.55rem 0 0;
}

.uep-marks-panel {
	direction: ltr;
	text-align: left;
}

.uep-marks-panel ol:empty {
	display: none;
}

.uep-mark-state {
	margin: 0 0 0.35rem;
	color: var(--uep-teal);
	font-weight: 700;
}

.uep-place {
	direction: ltr;
	text-align: center;
	font-size: 0.95rem;
	color: var(--uep-muted);
	margin: 0 0 1.1rem;
}

.uep-place-saved {
	display: inline-block;
	margin-left: 0.55rem;
	color: var(--uep-teal);
	font-weight: 700;
}

.uep-place-saved[hidden] {
	display: none;
}

.uep-marks-panel .uep-mark.is-quiet,
.uep-marks-panel button.is-quiet {
	background: transparent;
	color: var(--uep-muted);
	border: 1px solid var(--uep-line);
}

.uep-display-panel p {
	margin: 0.45rem 0 0.3rem;
	font-size: 0.85rem;
	color: var(--uep-muted);
}

.uep-display-panel button {
	margin: 0 0.3rem 0.35rem 0;
}

.uep-marks-panel .uep-mark,
.uep-marks-panel button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.4rem;
	padding: 0.35rem 0.9rem;
	background: var(--uep-teal);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 760px) {
	.uep-reader-bar {
		align-items: flex-start;
	}

	.uep-toc[open],
	.uep-display[open],
	.uep-marks[open] {
		flex: 1 0 100%;
	}

	.uep-toc ol,
	.uep-display-panel,
	.uep-marks-panel {
		position: static;
		left: auto;
		right: auto;
		top: auto;
		inset: auto;
		width: 100%;
		min-width: 0;
		max-width: none;
		max-height: 52vh;
		box-sizing: border-box;
	}

	.uep-reader-bar > .uep-save,
	.uep-reader-bar > .uep-remove,
	.uep-reader-bar > .uep-saved-note {
		flex: 1 0 100%;
		text-align: center;
		box-sizing: border-box;
	}

	.uep-marks-panel .uep-save,
	.uep-marks-panel .uep-remove {
		display: inline-flex;
		justify-content: center;
		margin: 0 0.35rem 0.55rem 0;
	}
}

.uep-toc summary::-webkit-details-marker,
.uep-display summary::-webkit-details-marker,
.uep-marks summary::-webkit-details-marker {
	display: none;
}

.uep-toc a {
	color: inherit;
	text-decoration: none;
}

.uep-toc li {
	margin: 0.35rem 0;
	line-height: 1.6;
	display: block;
	counter-increment: uep-toc;
}

.uep-toc ol {
	list-style: none;
	counter-reset: uep-toc;
	padding-inline-start: 0.75rem;
	margin: 0;
	inset-inline-start: auto;
	inset-inline-end: 0;
}

.uep-toc ol ol {
	margin-top: 0.2rem;
	padding-inline-start: 2.4rem;
}

.uep-toc li::before {
	content: counter(uep-toc) ".";
	display: inline-block;
	min-width: 2.2rem;
	margin-inline-end: 0.45rem;
	text-align: end;
	font-variant-numeric: tabular-nums;
}

.uep-toc li.uep-toc-section {
	counter-increment: none;
	font-weight: 700;
	margin-top: 0.85rem;
}

.uep-toc li.uep-toc-section::before {
	content: "";
	min-width: 0;
	margin: 0;
}

.uep-place-chapter {
	display: block;
	font-weight: 700;
}

.uep-sheet {
	background: var(--uep-paper);
	border: 1px solid var(--uep-line);
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(60, 40, 20, 0.08);
	min-height: 68vh;
	margin: 0.8rem 0;
	padding: 2.2rem 1.6rem 2.4rem;
	position: relative;
}

.uep-sheet::after {
	content: "";
	position: absolute;
	inset-inline-end: 0;
	bottom: 0;
	border-width: 0 0 28px 28px;
	border-style: solid;
	border-color: transparent transparent #efe6d6 transparent;
	z-index: 4;
}

.uep-watermark {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	border-radius: inherit;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='210'%3E%3Ctext x='8' y='128' transform='rotate(-32 170 105)' fill='%235c564e' fill-opacity='0.18' font-family='Arial,sans-serif' font-size='15' font-weight='600'%3Ewww.urdupoint.in%3C/text%3E%3C/svg%3E");
	background-repeat: repeat;
}

.uep-reader.theme-dark .uep-watermark {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='210'%3E%3Ctext x='8' y='128' transform='rotate(-32 170 105)' fill='%23f6f1e7' fill-opacity='0.16' font-family='Arial,sans-serif' font-size='15' font-weight='600'%3Ewww.urdupoint.in%3C/text%3E%3C/svg%3E");
}

.uep-leaf h1,
.uep-leaf h2,
.uep-leaf h3 {
	font-size: 1.35em;
	line-height: 1.6;
	margin: 0 0 0.8rem;
}

.uep-leaf {
	font-size: 1.2rem;
	line-height: 2.2;
}

.uep-leaf p,
.uep-leaf li {
	font-size: inherit;
	line-height: inherit;
	margin: 0 0 0.85rem;
	text-align: justify;
	text-align-last: start;
	text-justify: inter-word;
}

.uep-cover-title {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	line-height: 1.45;
	margin: 0 0 0.8rem;
}

.uep-cover-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
	padding-top: 1rem;
}

.uep-cover-lg {
	width: min(220px, 60%);
	margin-bottom: 0.6rem;
}

.uep-cover-kicker,
.uep-cover-by,
.uep-cover-count,
.uep-turn-num {
	color: var(--uep-muted);
	margin: 0;
}

.uep-start {
	display: inline-block;
	margin-top: 0.8rem;
	background: var(--uep-teal);
	color: #fff;
	border-radius: 999px;
	padding: 0.7rem 1.1rem;
}

.uep-turn {
	font-size: 1rem;
}

.uep-locked {
	color: var(--uep-muted);
}

@media (max-width: 640px) {
	.uep-sheet {
		padding: 1.4rem 1rem 1.8rem;
		min-height: 62vh;
	}
}


.uep-pay {
	direction: ltr;
	text-align: start;
}

.uep-pay h2 {
	margin-top: 0;
}

.uep-pay-plans {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0.8rem 0;
	padding: 0;
	list-style: none;
}

.uep-pay-plans label,
.uep-pay-plans li {
	margin: 0;
	padding: 0;
}

.uep-pay-note {
	background: #fff7e8;
	border: 1px solid var(--uep-line);
	border-radius: 10px;
	padding: 0.6rem 0.75rem;
}

.uep-pay-go,
.uep-pay button,
.uep-account button {
	display: inline-block;
	background: var(--uep-teal);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 0.65rem 1rem;
	text-decoration: none;
}

.uep-account {
	direction: ltr;
	max-width: 26rem;
	margin: 1.5rem auto 2rem;
}

.uep-account h1 {
	margin-top: 0;
}

.uep-account-foot {
	margin-top: 1.25rem;
}

.uep-pay h3 {
	margin: 1.1rem 0 0.3rem;
	font-size: 1rem;
}

.uep-pay input[type="text"],
.uep-pay input[type="email"],
.uep-pay input[type="password"],
.uep-account input[type="text"],
.uep-account input[type="email"],
.uep-account input[type="password"] {
	width: min(100%, 18rem);
	border: 1px solid var(--uep-line);
	border-radius: 10px;
	padding: 0.65rem 0.75rem;
	font: inherit;
}

#uep-pay-qr {
	margin: 0.6rem 0 1rem;
	width: 220px;
}

#uep-pay-qr img,
#uep-pay-qr canvas {
	display: block;
	width: 220px;
	height: 220px;
}
