@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Gentium+Plus:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Naskh+Arabic:wght@400;600;700&family=Scheherazade+New:wght@400;700&display=swap');

@font-face {
	font-family: Kitab;
	src: url(/fonts/kitab-base.woff2);
}

@font-face {
	font-family: KitabBold;
	src: url(/fonts/kitab-base-b.woff2);
}

@font-face {
	font-family: Arabic;
	src: url('/fonts/kd-hafs.woff2') format('woff2');
}

@font-face {
	font-family: ArabicBold;
	src: url('/fonts/kd-hafs.woff2') format('woff2');
}

:root {
	--c-ghostwhite: #f8f8f8;
	--c-accent: #2c9be5;
	--c-speech: #1b7b00;
	--c-note: #004a9f;
	--c-gray-mid: #a0a0a0;
	--c-gray-dark: #808080;
	--c-gray-very-dark: #606060;
	--f-size-ar: 1.3rem;
	--f-size-ar-note: 1.15rem;
	--f-size-ar-sup: 0.8rem;
}

html,
body {
	font-size: 13.5pt !important;
	font-family: "Gentium Plus", Serif;
}

body :lang(ar) {
	font-family: Kitab, Serif;
	font-size: var(--f-size-ar);
	direction: rtl;
}

.quran-hafs:lang(ar),
.quran-hafs :lang(ar),
.quran-search-item [lang="ar"],
.quran-search-item [lang="ar"] .hadith-body-content {
	font-family: Arabic, Serif;
}

.quran-hafs:lang(ar) b,
.quran-hafs:lang(ar) strong,
.quran-hafs :lang(ar) b,
.quran-hafs :lang(ar) strong,
.quran-search-item [lang="ar"] b,
.quran-search-item [lang="ar"] strong {
	font-family: ArabicBold, Serif;
}

a._click {
	cursor: pointer;
}

@media (max-width: 768px) {

	html,
	body {
		font-size: 12.5pt !important;
	}

	.banner img {
		width: 50%;
	}
}

.modal :lang(ar) {
	font-size: var(--f-size-ar) * 0.90;
}

.modal-title {
	line-height: 1.6rem;
}

:lang(ar) b,
:lang(ar) strong {
	font-family: KitabBold, Serif;
}

sup {
	color: var(--c-gray-mid);
}

:lang(ar) sup {
	font-size: var(--f-size-ar-sup);
}

.banner img {
	width: 30%;
}

@media (max-width: var(--bs-breakpoint-sm)) {
	.banner img {
		width: 50%;
	}
}

main {
	margin-top: 5rem;
}

main.chapter {
	margin-top: 7rem;
}

@media (max-width: var(--bs-breakpoint-sm)) {
	main {
		margin-top: 3.5rem;
	}

	main.chapter {
		margin-top: 5.5rem;
	}
}

.navbar {
	top: 0;
	display: block;
	background-color: white;
	position: fixed;
	z-index: 1000;
}

.site-navbar {
	--site-header-height: 4.25rem;
	--site-header-shrink-height: 2.125rem;
}

.site-navbar .logo,
.site-navbar .title,
.site-navbar .title :lang(ar),
.site-navbar .subtitle,
.site-navbar .subtitle :lang(ar),
.site-navbar #icon-menu,
.site-navbar .nav-link,
.site-navbar > .site-navbar-main,
.site-navbar .site-header-brand {
	transition: all .25s ease;
}

#icon-menu {
	font-size: 1.5rem;
}

.site-navbar > .site-navbar-main {
	border-bottom: 1px solid var(--bs-border-color);
	flex-wrap: nowrap;
	align-items: center;
}

.site-navbar > .site-navbar-main {
	height: var(--site-header-height);
	overflow: visible;
}

.site-header-brand {
	align-items: center;
	gap: 0.85rem;
	height: 100%;
	min-width: 0;
}

.site-header-brand>div {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
}

.site-navbar menu,
.site-navbar menu>.nav,
.site-navbar menu>ul,
.site-navbar .top-nav-mobile-actions {
	align-items: center;
	height: 100%;
	margin-bottom: 0;
}

.site-navbar .logo {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
}

.site-navbar .subtitle {
	max-height: 2rem;
	opacity: 1;
}

.site-header-brand .title a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-header-brand .subtitle {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-navbar.shrink > .site-navbar-main {
	height: var(--site-header-shrink-height);
}

.site-navbar.shrink .site-header-brand {
	gap: 0.5rem;
}

.site-navbar.shrink .logo {
	width: 28px;
	height: 28px;
}

.site-navbar.shrink .title,
.site-navbar.shrink .title :lang(ar) {
	font-size: 0.85rem !important;
	line-height: 1.1;
}

.site-navbar.shrink .subtitle,
.site-navbar.shrink .subtitle :lang(ar) {
	font-size: 0.72rem !important;
	line-height: 1;
}

.site-navbar.shrink .subtitle {
	max-height: 0;
	opacity: 0;
}

@media (max-width: 768px) {
	.site-navbar {
		--site-header-height: 3.75rem;
		--site-header-shrink-height: 1.9rem;
	}

	.site-header-brand {
		flex: 1 1 auto;
	}

	.site-header-brand .title {
		font-size: 1.15rem !important;
		line-height: 1.15;
	}

	.site-header-brand .subtitle {
		font-size: 0.95rem !important;
		line-height: 1.2;
	}

	.site-header-brand .subtitle :lang(ar) {
		display: inline;
	}

	.top-nav-mobile-actions {
		flex-wrap: nowrap;
	}
}

.site-navbar.shrink #icon-menu {
	font-size: 1rem !important;
}

.site-navbar.shrink .nav-link {
	padding-top: 0;
	padding-bottom: 0;
}

nav .nav-link {
	font-size: 0.90rem;
	color: var(--bs-heading-color);
	padding: 5px 15px 0 0;
}

.top-nav-icon-link {
	font-size: 1rem;
}

.top-nav-mobile-actions .top-nav-icon-link {
	padding-right: 0.5rem;
}

.offcanvas-col1 .nav-link {
	font-size: 1rem;
	padding-left: 0.75rem;
}

.offcanvas-col2 .nav-link {
	padding-left: 0.75rem;
	text-indent: -0.75rem;
}

.h-menu-wrap {
	position: relative;
}

.h-menu-hint {
	margin-bottom: 0.35rem;
	font-size: 0.72rem;
	color: var(--c-gray-mid);
}

.h-menu-scroller {
	position: relative;
}

.h-menu-scroller::before,
.h-menu-scroller::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1.5rem;
	pointer-events: none;
	z-index: 1;
}

.h-menu-scroller::before {
	left: 0;
	background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}

.h-menu-scroller::after {
	right: 0;
	background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
}

.h-menu {
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	font-size: 0.9rem;
	padding-inline: 0.4rem;
}

.h-menu::-webkit-scrollbar {
	display: none;
}

.h-menu a,
.h-menu button {
	font-size: 0.75rem;
	border-color: var(--c-accent);
	text-wrap: nowrap;
	color: var(--c-gray-dark);
}

@media (min-width: 768px) {
	.h-menu-hint {
		display: none;
	}
}

.text-muted {
	color: var(--c-gray-mid) !important;
}

.icon {
	color: var(--c-accent);
	text-indent: 0;
}

.text-accent {
	color: var(--c-accent) !important;
}

.modal-header {
	align-items: baseline;
}

.modal-footer {
	display: block;
}

.hadith-share-dialog {
	max-width: min(44rem, calc(100vw - 1.5rem));
}

.hadith-share-modal {
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f7f9fb;
}

.hadith-share-toolbar {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: #ffffff;
	border-bottom-color: rgba(44, 155, 229, 0.18);
}

.hadith-share-toolbar .modal-title {
	flex: 1 1 auto;
	min-width: 8rem;
	max-width: 14rem;
	color: #111111;
	font-size: 1.2rem !important;
	line-height: 1.16;
}

.hadith-share-actions {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	flex-wrap: wrap;
	min-width: 0;
	max-width: none;
}

.hadith-share-tool-group,
.hadith-share-control-group {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.hadith-share-control-group {
	padding: 0.35rem 0.45rem;
	border: 1px solid rgba(44, 155, 229, 0.18);
	border-radius: 8px;
	background: rgba(248, 248, 248, 0.86);
}

.hadith-share-actions .btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	font-size: 1rem;
	border-color: rgba(44, 155, 229, 0.4);
	color: #111111;
	background: rgba(255, 255, 255, 0.86);
}

.hadith-share-actions .btn:hover,
.hadith-share-actions .btn:focus,
.hadith-share-actions .btn.active {
	border-color: var(--c-accent);
	background: var(--c-accent);
	color: white;
}

.hadith-share-size-controls {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.hadith-share-size-controls label {
	display: grid;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	color: #111111;
	font-size: 0.7rem;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}

.hadith-share-size-controls .form-range {
	width: 3.2rem;
	height: 0.95rem;
	padding: 0;
	accent-color: var(--c-accent);
}

.hadith-share-size-controls .form-range::-webkit-slider-runnable-track {
	height: 0.25rem;
	border-radius: 999px;
	background: rgba(44, 155, 229, 0.3);
}

.hadith-share-size-controls .form-range::-webkit-slider-thumb {
	width: 0.85rem;
	height: 0.85rem;
	margin-top: -0.3rem;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(44, 155, 229, 0.38);
}

.hadith-share-size-controls .form-range::-moz-range-track {
	height: 0.25rem;
	border-radius: 999px;
	background: rgba(44, 155, 229, 0.3);
}

.hadith-share-size-controls .form-range::-moz-range-thumb {
	width: 0.85rem;
	height: 0.85rem;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(44, 155, 229, 0.38);
}

.hadith-share-arabic-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	min-height: 2rem;
	color: #111111;
	white-space: nowrap;
}

.hadith-share-arabic-toggle .form-check-input {
	margin: 0;
	border-color: rgba(44, 155, 229, 0.4);
}

.hadith-share-arabic-toggle .form-check-input:checked {
	background-color: var(--c-speech);
	border-color: var(--c-speech);
}

.hadith-share-body {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background:
		linear-gradient(135deg, rgba(44, 155, 229, 0.92), rgba(248, 248, 248, 0.95) 42%, rgba(27, 123, 0, 0.18) 68%, rgba(95, 72, 45, 0.62)),
		repeating-linear-gradient(45deg, rgba(17, 17, 17, 0.04) 0 1px, transparent 1px 12px);
}

.hadith-share-card {
	--share-scale: 1;
	--share-english-tune: 1;
	--share-arabic-tune: 1;
	width: min(100%, 540px);
	aspect-ratio: 4 / 5;
	margin: 0 auto;
	padding: max(10px, calc(18px * var(--share-scale)));
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.98)),
		repeating-linear-gradient(90deg, rgba(44, 155, 229, 0.045) 0 1px, transparent 1px 14px);
	box-shadow: 0 1.6rem 3.5rem rgba(17, 17, 17, 0.28);
	color: #111111;
	overflow: hidden;
}

.hadith-share-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: max(8px, calc(28px * var(--share-scale)));
	border: 1px solid rgba(95, 72, 45, 0.28);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.82);
	overflow: hidden;
}

.hadith-share-title {
	margin: 0 0 calc(16px * var(--share-scale));
	font-size: calc(25px * var(--share-scale) * var(--share-english-tune));
	line-height: 1.18;
	color: #111111;
	overflow-wrap: anywhere;
}

.hadith-share-section+.hadith-share-section {
	margin-top: calc(15px * var(--share-scale));
	padding-top: calc(15px * var(--share-scale));
	border-top: 1px solid rgba(44, 155, 229, 0.22);
}

.hadith-share-section {
	flex: 0 0 auto;
	min-height: 0;
}

.hadith-share-ref {
	margin-bottom: calc(7px * var(--share-scale));
	color: var(--c-gray-dark);
	font-size: calc(14px * var(--share-scale) * var(--share-english-tune));
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.hadith-share-text {
	text-indent: 0;
	font-size: calc(18px * var(--share-scale) * var(--share-english-tune));
	line-height: 1.34;
	overflow-wrap: anywhere;
}

.hadith-share-english-only .hadith-share-title {
	font-size: calc(30px * var(--share-scale) * var(--share-english-tune));
	line-height: 1.16;
}

.hadith-share-english-only .hadith-share-ref {
	font-size: calc(15px * var(--share-scale) * var(--share-english-tune));
}

.hadith-share-english-only .hadith-share-text {
	font-size: calc(24px * var(--share-scale) * var(--share-english-tune));
	line-height: 1.42;
}

.hadith-share-text p:last-child {
	margin-bottom: 0;
}

.quran-share-text p,
.quran-ayah-hero-body p {
	margin-bottom: 0.45rem;
}

.quran-share-text p:last-child,
.quran-ayah-hero-body p:last-child {
	margin-bottom: 0;
}

.hadith-share-section:lang(ar) .hadith-share-ref {
	font-family: Kitab, Serif;
	font-size: calc(16px * var(--share-scale) * var(--share-arabic-tune));
	text-align: right;
}

.hadith-share-text:lang(ar) {
	font-family: Kitab, Serif;
	font-size: calc(25px * var(--share-scale) * var(--share-arabic-tune));
	line-height: 1.52;
	text-align: right;
}

.quran-share-card .hadith-share-text:lang(ar),
.quran-share-card .quran-share-text:lang(ar),
.quran-share-card .quran-share-text:lang(ar) span {
	font-family: Arabic, Serif;
}

.quran-share-arabic-only .hadith-share-title {
	font-size: calc(30px * var(--share-scale) * var(--share-english-tune));
}

.quran-share-arabic-only .hadith-share-section:lang(ar) .hadith-share-ref {
	font-size: calc(17px * var(--share-scale) * var(--share-arabic-tune));
}

.quran-share-arabic-only .hadith-share-text:lang(ar) {
	font-size: calc(31px * var(--share-scale) * var(--share-arabic-tune));
	line-height: 1.6;
}

.hadith-share-footer {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	align-items: stretch;
	gap: 8px;
	margin-top: auto;
	padding-top: calc(15px * var(--share-scale));
	border-top: 1px solid rgba(95, 72, 45, 0.22);
	font-size: calc(14px * var(--share-scale) * var(--share-english-tune));
	line-height: 1.25;
}

.hadith-share-footer>div:first-child {
	min-width: 0;
}

.hadith-share-english-only .hadith-share-footer {
	font-size: calc(15px * var(--share-scale) * var(--share-english-tune));
}

.hadith-share-dense .hadith-share-card-inner {
	padding: max(8px, calc(24px * var(--share-scale)));
}

.hadith-share-dense .hadith-share-section+.hadith-share-section {
	margin-top: calc(12px * var(--share-scale));
	padding-top: calc(12px * var(--share-scale));
}

.hadith-share-site {
	color: var(--c-accent);
	font-weight: 700;
	letter-spacing: 0;
}

.hadith-share-card [contenteditable="true"] {
	outline: 2px solid rgba(44, 155, 229, 0.34);
	outline-offset: 3px;
	border-radius: 4px;
}

.hadith-share-card.is-exporting [contenteditable="true"] {
	outline: 0;
}

.hadith-share-card .markdown-editing {
	white-space: pre-wrap;
}

@media (max-width: 575.98px) {
	.hadith-share-root {
		inset: 0;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		padding: 0 !important;
	}

	.modal-dialog.hadith-share-dialog {
		width: 100vw;
		max-width: none;
		height: 100vh;
		height: 100dvh;
		min-height: 100vh;
		min-height: 100dvh;
		margin: 0;
	}

	.hadith-share-dialog.modal-dialog-scrollable .hadith-share-modal,
	.hadith-share-modal {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		min-height: 100vh;
		min-height: 100dvh;
		max-height: none;
		border-radius: 0;
	}

	.hadith-share-toolbar {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 0.5rem;
		flex: 0 0 auto;
		padding: max(0.65rem, env(safe-area-inset-top)) 0.75rem 0.65rem;
	}

	.hadith-share-actions {
		display: grid;
		grid-template-columns: 2rem 1fr 4.45rem;
		grid-template-areas:
			"edit controls export";
		align-items: center;
		width: 100%;
		max-width: none;
		gap: 0.45rem;
		justify-content: stretch;
	}

	.hadith-share-tool-group:first-child {
		grid-area: edit;
	}

	.hadith-share-tool-group:last-child {
		grid-area: export;
		justify-self: end;
	}

	.hadith-share-control-group {
		grid-area: controls;
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.35rem;
		justify-items: center;
		min-width: 0;
		padding: 0.4rem 0.45rem;
	}

	.hadith-share-arabic-toggle {
		justify-self: center;
		min-height: 1.35rem;
		font-size: 0.86rem;
	}

	.hadith-share-size-controls {
		width: 100%;
		justify-content: center;
		gap: 0.5rem;
	}

	.hadith-share-actions .btn {
		width: 2rem;
		height: 2rem;
		font-size: 1rem;
	}

	.hadith-share-dialog.modal-dialog-scrollable .hadith-share-body,
	.hadith-share-body {
		flex: 1 1 auto;
		display: flex;
		min-height: 0;
		height: 100%;
		padding: 0.75rem 0.6rem max(0.75rem, env(safe-area-inset-bottom));
		overflow: auto;
	}

	.hadith-share-card {
		width: min(100%, 540px, calc((100vh - 9.25rem) * 0.8));
		width: min(100%, 540px, calc((100dvh - 9.25rem) * 0.8));
		max-height: 100%;
		min-width: 0;
		box-shadow: 0 1rem 2rem rgba(17, 17, 17, 0.24);
	}

	@supports (height: min(100%, 1px)) {
		.hadith-share-card {
			width: min(100%, 540px);
			height: auto;
			max-height: 100%;
			max-width: 100%;
		}
	}

	.hadith-share-footer {
		flex-shrink: 0;
		gap: 0.45rem;
		padding-top: calc(10px * var(--share-scale));
		font-size: calc(12px * var(--share-scale) * var(--share-english-tune));
		line-height: 1.12;
	}

	.hadith-share-site {
		margin-top: 0;
	}
}

.hanging-indent {
	text-indent: -2rem;
	margin-left: 2rem;
}

.dropdown-menu,
.form-check {
	font-size: 0.90rem;
}

.dropdown-menu {
	max-height: 11rem;
	overflow-y: scroll;
}

.site-navbar .dropdown-menu {
	z-index: 1002;
}

.search-click-toggle {
	position: relative;
}

.search-click-toggle form {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	width: min(20rem, 40vw);
	display: none;
	z-index: 1001;
}

.search-click-toggle .form-control {
	width: 100%;
	box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}

@media (max-width: var(--bs-breakpoint-sm)) {
	.search-click-toggle form {
		width: min(16rem, 70vw);
	}
}

.search-click-toggle.is-open form {
	display: block;
}

.search-click-toggle input {
	display: block;
}

.search-click-toggle i {
	display: inherit;
}

.search .form-check {
	margin-left: 0.5rem;
}

.form-check:hover {
	background-color: var(--bs-border-color);
}

.caution {
	font-size: 0.75rem;
	color: var(--c-gray-mid);
	margin-top: 5px;
}

#search-bar {
	font-size: 1.5em;
	border-color: var(--c-accent);
	border-right: 0 none transparent;
}

#search-bar+.btn-outline-secondary {
	border-color: var(--c-accent);
	border-left: 0 none transparent;
	color: var(--c-accent);
}

#search-bar+.btn-outline-secondary:hover,
#search-bar+.btn-outline-secondary:focus,
#search-bar+.btn-outline-secondary:active,
#search-bar+.btn.show {
	border-color: var(--c-accent);
	background-color: var(--c-accent);
	color: white;
}

.card-title a {
	color: var(--c-accent);
	text-decoration: none;
}

.card-title a:hover {
	text-decoration: underline;
}

.card-thumb {
	background-color: var(--c-ghostwhite);
}

.blog-post figure {
	display: flex;
	flex-direction: column;
	overflow-y: hidden;
	align-self: center;
	align-items: center;
	max-height: 30rem;
}

.blog-post figure img {
	width: 100%;
	height: auto;
}

.blog-post article,
.blog-post .body {
	min-width: 0;
}

.blog-post .body {
	overflow-wrap: anywhere;
}

.blog-post .body a {
	overflow-wrap: anywhere;
}

.blog-post p>img {
	max-width: 100%;
	height: auto;
}

.blog-post .body img,
.blog-post .body video,
.blog-post .body iframe,
.blog-post .body svg,
.blog-post .body canvas {
	max-width: 100%;
	height: auto;
}

.blog-post .body iframe,
.blog-post .body table,
.blog-post .body pre {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.blog-post s {
	direction: rtl;
	font-family: Arabic, Serif;
	text-decoration: none !important;
	font-size: 1.5rem;
}

.blog-post s b,
.blog-post s strong {
	color: blue;
	font-family: ArabicBold, Serif;
}

.blog-post h1:has(s),
.blog-post h2:has(s),
.blog-post h3:has(s),
.blog-post h4:has(s),
.blog-post h5:has(s),
.blog-post h6:has(s),
.blog-post p:has(s),
.blog-post ol>li:has(s),
.blog-post ul>li:has(s) {
	direction: rtl;
	text-align: right;
}

.blog-post .footnote-item {
	direction: ltr;
	text-align: left;
}

.blog-post .footnotes li+p {
	direction: ltr;
	text-align: left;
}

.blog-post h1 {
	font-size: 1.75rem;
}

.blog-post h1 s,
.blog-post :lang(ar) h1 {
	font-family: ArabicBold, Serif;
	font-size: 2.1rem;
}

.blog-post h2 {
	font-size: 1.5rem;
}

.blog-post h2 s,
.blog-post :lang(ar) h2 {
	font-family: ArabicBold, Serif;
	font-size: 1.9rem;
}

.blog-post h3 {
	font-size: 1.4rem;
}

.blog-post h3 s,
.blog-post :lang(ar) h3 {
	font-family: ArabicBold, Serif;
	font-size: 1.8rem;
}

.blog-post h4 {
	font-size: 1.3rem;
}

.blog-post h4 s,
.blog-post :lang(ar) h4 {
	font-family: ArabicBold, Serif;
	font-size: 1.7rem;
}

.blog-post h5 {
	font-size: 1.2rem;
}

.blog-post h5 s,
.blog-post :lang(ar) h5 {
	font-family: ArabicBold, Serif;
	font-size: 1.56rem;
}

.blog-post h6 {
	font-size: 1.10rem;
}

.blog-post h6 s,
.blog-post :lang(ar) h6 {
	font-family: ArabicBold, Serif;
	font-size: 1.43rem;
}

s em strong,
del em strong {
	font-style: normal;
	font-weight: normal;
	color: inherit !important;
	font-family: "Noto Nastaliq Urdu";
	font-size: 75%;
}

.blog-post .body p {
	/* text-indent: 2rem; */
}

.blog-post blockquote {
	padding-left: 2rem;
	border-left: 1px solid var(--bs-border-color);
	color: var(--c-gray-very-dark);
}

.blog-post blockquote blockquote {
	border-left: 0;
	padding-left: 0;
	font-size: 75%;
}

.blog-post blockquote.callout,
.blog-post blockquote:has(p.callout) {
	padding: 15px;
	color: var(--bs-body-color);
	background-color: #e2f5ff;
}

.blog-post blockquote.callout::first-line,
.blog-post blockquote:has(p.callout)::first-line {
	font-weight: bold;
}

.blog-post .footnotes,
.blog-post .footnotes p {
	font-size: .85rem;
	color: var(--c-gray-very-dark);
	text-indent: unset;
}

.blog-post .footnotes s {
	font-size: 1.25rem;
}

@media (max-width: 576px) {
	.blog-post blockquote {
		padding-left: 1rem;
	}
}

.chapter-toc {
	border-bottom: 1px solid var(--bs-border-color);
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: 0.85rem;
	background-color: var(--c-ghostwhite);
	flex-wrap: wrap;
}

.chapter-toc a {
	color: var(--c-accent);
}

.chapter-toc .collapse {
	max-height: 50vh !important;
	overflow-y: scroll;
}

.chapter-toc tr,
.chapter-toc td {
	background-color: var(--c-ghostwhite) !important;
}

.pagination,
.pagination a,
.pagination div,
.pagination div span,
.top a {
	font-size: 0.85rem;
	color: var(--c-accent);
}

.pagination,
.pagination div:lang(ar) a,
.pagination div:lang(ar),
.pagination div:lang(ar) span {
	font-size: 1rem;
}

.top a {
	text-decoration: none;
}

.major .title,
.major .title a {
	color: black;
	text-decoration: none;
}

.major .title a:hover {
	text-decoration: underline;
}

.heading {
	border-top: 1px solid var(--bs-border-color);
	color: var(--c-accent);
}

.heading h3 {
	font-weight: bolder;
}

.heading h3 a {
	text-decoration: none;
	color: var(--c-accent);
}

.heading h3 a:hover {
	text-decoration: underline;
}

.heading,
.heading-intro {
	background-color: var(--c-ghostwhite) !important;
}

.h {
	margin-top: 0.75rem;
	margin-bottom: 2rem;
}

.h:lang(ar) {
	margin-top: 0.5rem;
}

.h p,
.intro p,
.heading-intro p {
	margin-bottom: 0.25rem;
}

.h i {
	background-color: yellow;
	font-style: inherit;
}

.h:lang(en),
.intro:lang(en),
.heading-intro:lang(en) {
	font-size: 0.9rem;
}

.h .grade {
	font-weight: bold;
	font-style: normal;
	color: var(--c-accent);
}

.h .chain {
	color: var(--c-gray-mid) !important;
	text-indent: 2em;
}

.h .body,
.intro,
.heading-intro {
	text-indent: 2em;
}

.body.passage {
	text-indent: unset;
	text-align: justify;
}

.quran-passage-flow {
	display: block;
	margin: 0;
	text-indent: 0;
}

.quran-passage-section .h {
	margin-bottom: 0;
	margin-top: 0;
}

.quran-passage-section+.quran-passage-section {
	margin-top: .5lh;
}

.body.passage .ayah a {
	color: inherit;
	text-decoration: none;
}

.body.passage .quran-ayah-body {
	display: inline;
}

.body.passage .quran-ayah-body p {
	display: inline;
	margin-bottom: 0;
}

.body.passage .quran-ayah-body p+p {
	margin-top: 0.45rem;
}

.body.passage .quran-ayah-body p+p::before {
	content: "";
	display: block;
}

.body.passage:lang(ar),
.body.passage:lang(ar) .ayah,
.body.passage:lang(ar) .ayah a,
.body.passage:lang(ar) .quran-ayah-body,
.body.passage:lang(ar) .ayah sup {
	font-family: Arabic, Serif;
}

.body.passage:lang(ar) .ayah-selected,
.body.passage:lang(ar) .ayah-selected a,
.body.passage:lang(ar) .ayah-selected sup {
	font-family: ArabicBold, Serif;
}

.quran-range-admin,
.quran-section-admin,
.quran-subsection-admin {
	border: 1px solid var(--bs-border-color);
	border-radius: .375rem;
	padding: .75rem;
}

.quran-range-admin input,
.quran-section-admin .quran-section-start,
.quran-section-admin .quran-section-end,
.quran-subsection-admin .quran-subsection-start,
.quran-subsection-admin .quran-subsection-end {
	width: 5.5rem;
}

.quran-section-title-wrap,
.quran-subsection-title-wrap {
	min-width: 14rem;
}

.quran-range-admin.is-invalid,
.quran-section-admin.is-invalid,
.quran-subsection-admin.is-invalid {
	border-color: var(--bs-danger);
}

.quran-range-preview {
	border-top: 1px solid var(--bs-border-color);
	max-height: 12rem;
	overflow: auto;
	padding-top: .5rem;
}

.quran-range-preview-ar {
	direction: rtl;
	font-size: 1.25rem;
	line-height: 2;
}

.quran-range-preview-en {
	color: var(--bs-secondary-color);
	font-size: .925rem;
	line-height: 1.6;
}

.body.passage .ayah.quran-range-live-selected a,
.body.passage .ayah.quran-range-live-selected .quran-ayah-body {
	background: rgba(var(--bs-primary-rgb), .08);
	border-radius: .25rem;
	color: var(--accent);
}

.quran-ayah-select-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
}

.quran-ayah-select-btn {
	font-size: .75rem;
	line-height: 1.1;
	padding: .15rem .35rem;
}

.quran-ayah-select-btn .bi {
	font-size: .85em;
}

.quran-ayah-selecting .body.passage .ayah {
	cursor: pointer;
}

.body.passage .ayah.ayah-multi-selected a,
.body.passage .ayah.ayah-multi-selected .quran-ayah-body {
	background: rgba(var(--bs-primary-rgb), .12);
	border-radius: .25rem;
	color: var(--accent);
}

.quran-subheading {
	color: var(--bs-secondary-color);
	display: block;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 .25rem;
	text-align: start;
	text-indent: 0;
}

.quran-subheading:lang(ar) {
	direction: rtl;
	font-family: ArabicBold, Serif;
	font-size: 1.2rem;
}

.quran-subheading-controls {
	display: inline-flex;
	gap: .25rem;
	margin-inline-start: .5rem;
	vertical-align: middle;
}

.quran-subheading-controls input {
	width: 4.75rem;
}

.quran-footnotes {
	margin-top: 1rem;
}

.quran-footnote-pair+.quran-footnote-pair {
	margin-top: 0.75rem;
}

.quran-footnotes .footnote,
.quran-footnotes .footnote p {
	text-indent: 0;
}

.quran-footnotes [lang="ar"] sup {
	font-size: 0.65em;
}

.quran-footnote-selected {
	font-weight: bold;
}

.quran-footnotes [lang="ar"] .quran-footnote-selected {
	font-family: KitabBold, Serif;
}

.quran-tafsir-tabs {
	margin-bottom: 0;
}

.quran-tafsir-tab-lang {
	color: var(--bs-secondary-color);
	font-size: .75em;
}

.quran-tafsir-tabs .active .quran-tafsir-tab-lang {
	color: inherit;
}

.quran-tafsir-content {
	border: 1px solid var(--bs-border-color);
	border-top: 0;
	padding: 1rem;
}

.quran-tafsir-source {
	border-bottom: 1px solid var(--bs-border-color);
	font-size: .8rem;
	line-height: 1.2;
	margin-bottom: .75rem;
	padding-bottom: .5rem;
}

.quran-tafsir-source strong,
.quran-tafsir-source span {
	display: block;
}

.quran-tafsir-source [lang="en"] strong {
	font-size: 1.2em;
}

.quran-tafsir-source [lang="en"] span {
	font-size: 1.08em;
}

.quran-tafsir-source span {
	color: var(--c-gray-mid);
	font-size: .9em;
	line-height: 1.2;
}

.quran-tafsir-text {
	font-family: Kitab, Serif;
	font-size: .8rem;
	line-height: 1.55;
	text-align: justify;
	color: #8e784b;
}

.quran-tafsir-jalalayn {
	color: #8e784b;
	font-size: .9rem;
}

.quran-tafsir-jalalayn-pair [lang="ar"] {
	color: inherit;
	font-family: Kitab, Serif;
	line-height: 1.75;
	text-align: justify;
}

.quran-tafsir-text p:last-child {
	margin-bottom: 0;
}

.quran-tafsir-entry+.quran-tafsir-entry {
	border-top: 1px solid var(--bs-border-color);
	margin-top: 1rem;
	padding-top: 1rem;
}

.quran-tafsir-entry summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-inline-end: 1.25rem;
}

.quran-tafsir-entry summary::-webkit-details-marker {
	display: none;
}

.quran-tafsir-entry summary::after {
	color: var(--c-gray-mid);
	content: "\f285";
	font-family: "bootstrap-icons";
	font-size: .75rem;
	inset-inline-end: 0;
	position: absolute;
	top: .5rem;
	transition: transform .15s ease-in-out;
}

.quran-tafsir-entry[open] summary::after {
	transform: rotate(90deg);
}

.quran-tafsir-entry:not([open]) .quran-tafsir-ayah,
.quran-tafsir-entry:not([open]) .quran-tafsir-ayah-range {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.quran-tafsir-entry:not([open]) .quran-tafsir-ayah-inline:lang(ar) {
	display: inline;
}

.quran-tafsir-entry-body {
	margin-top: .5rem;
}

.quran-tafsir-ayah:lang(ar) {
	color: #000;
	font-family: ArabicBold, Serif;
	font-size: 1.45rem;
	font-weight: bold;
	line-height: 2;
	margin: .25rem 0 .5rem;
}

.quran-tafsir-ayah:lang(ar) sup {
	color: #000;
	font-size: .65em;
	font-weight: bold;
}

.quran-tafsir-ayah-range {
	line-height: 2;
}

.quran-tafsir-ayah-inline:lang(ar) {
	display: inline;
	margin: 0;
}

.quran-tafsir-ayah-inline:lang(ar)+.quran-tafsir-ayah-inline:lang(ar) {
	margin-inline-start: .5rem;
}

.quran-ayah-hero {
	margin: 1.5rem 0 1rem;
	padding: 1rem 0;
	border-top: 1px solid var(--c-ghostwhite);
	border-bottom: 1px solid var(--c-ghostwhite);
}

.quran-ayah-hero section+section {
	margin-top: 1rem;
}

.quran-ayah-hero-ref {
	margin-bottom: 0.35rem;
	color: var(--c-gray-very-dark);
	font-weight: bold;
}

.quran-ayah-hero-body {
	margin-bottom: 0;
	font-size: 1.15rem;
	line-height: 1.8;
}

.quran-ayah-hero [lang="ar"] .quran-ayah-hero-body,
.quran-ayah-hero [lang="ar"] .quran-ayah-hero-body p {
	font-family: ArabicBold, Serif;
	font-size: 1.85rem;
	line-height: 2.2;
}

.quran-ayah-hero-ayah {
	display: inline;
}

.quran-ayah-hero-link {
	color: inherit;
	text-decoration: none;
}

.quran-ayah-hero-link:hover {
	color: inherit;
	text-decoration: none;
}

.quran-ayah-hero-text {
	display: inline;
}

.quran-ayah-hero-text p {
	display: inline;
	margin-bottom: 0;
}

.quran-ayah-hero-text p+p {
	margin-top: 0.45rem;
}

.quran-ayah-hero-text p+p::before {
	content: "";
	display: block;
}

.quran-ayah-hero [lang="ar"] .quran-ayah-hero-text {
	font-family: ArabicBold, Serif;
	font-size: inherit;
}

.quran-ayah-hero [lang="ar"] .quran-ayah-hero-body sup {
	font-size: 0.65em;
}

.quran-ayah-hero [lang="ar"] .quran-ayah-end-marker {
	font-size: inherit;
}

.body .ayah-selected {
	font-weight: bold;
	color: var(--c-note);
}

.body .ayah-selected:lang(ar),
:lang(ar) .body .ayah-selected {
	font-family: KitabBold, Serif;
}

.body .ayah:hover,
.body .ayah-hover-pair {
	color: #2379b1;
	background-color: cornsilk;
}

.heading-intro em,
.h .body em,
.h .footnote em,
.h .note em {
	font-style: normal;
	color: var(--c-speech);
}

.h .footnote {
	color: var(--c-gray-mid);
	text-indent: 2em;
}

.h .note,
.h .note p {
	color: var(--c-note);
	text-indent: 2em;
	font-size: 95%;
}

.h .note:lang(ar),
.h .note:lang(ar) p {
	color: var(--c-note);
	text-indent: 2em;
	font-size: var(--f-size-ar-note);
}

.highlight {
	background-color: yellow;
}

.h .title,
.h .title a,
.h .tags,
.h .tags a {
	color: var(--c-accent);
	text-decoration: none;
}

.tags ._e {
	border: 0;
}

.markdown-editing {
	white-space: pre-wrap;
}

.h .title a:hover,
.h .tags a:hover {
	text-decoration: underline;
}

.comment-feed {
	--comment-accent-soft: rgba(44, 155, 229, 0.10);
	--comment-accent-border: rgba(44, 155, 229, 0.16);
	--comment-note-soft: rgba(0, 74, 159, 0.08);
	--comment-speech-soft: rgba(27, 123, 0, 0.10);
	--comment-bubble-bg: #f2f3f5;
	--comment-meta: #6b7280;
	--comment-ui-gray: #e7ebf1;
	font-family: var(--bs-font-sans-serif);
	font-size: 0.94rem;
}

.comment-feed-shell {
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.comment-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 0.2rem 0.7rem;
	margin-bottom: 0.65rem;
	border-bottom: 1px solid rgba(44, 155, 229, 0.12);
	color: var(--comment-meta);
}

.comment-summary-left,
.comment-summary-item,
.comment-summary-right {
	display: flex;
	align-items: center;
}

.comment-summary-left {
	gap: 1rem;
	flex-wrap: wrap;
}

.comment-summary-item {
	gap: 0.4rem;
	font-size: 0.84rem;
	font-weight: 600;
}

.comment-summary-item i {
	font-size: 1rem;
}

.comment-summary-right {
	gap: 0.2rem;
}

.comment-summary-reaction {
	width: 1.45rem;
	height: 1.45rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: white;
	font-size: 0.72rem;
	box-shadow: 0 0 0 2px white;
}

.comment-summary-reaction-like {
	background: var(--c-accent);
}

.comment-summary-reaction-heart {
	background: #ff6b81;
}

.comment-composer-body,
.comment-row {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

.comment-avatar {
	width: 2.3rem;
	height: 2.3rem;
	flex: 0 0 2.3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #dbe9f5;
	color: var(--c-note);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: inset 0 0 0 1px rgba(44, 155, 229, 0.08);
	overflow: hidden;
}

.comment-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comment-avatar-composer {
	color: var(--c-accent);
	font-size: 1rem;
}

.comment-composer-panel {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.55rem 0.8rem 0.65rem;
	border: 0;
	border-radius: 1.2rem;
	background: var(--comment-bubble-bg);
}

.comment-auth-hint {
	margin-bottom: 0.4rem;
	font-size: 0.78rem;
}

.comment-current-user {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	flex-wrap: wrap;
	margin-bottom: 0.45rem;
}

.comment-current-user-meta {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
	font-size: 0.8rem;
}

.comment-provider-chip,
.comment-provider {
	display: inline-flex;
	align-items: center;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--comment-meta);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.comment-input {
	min-height: 2.85rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 0.92rem;
	line-height: 1.35;
	resize: vertical;
}

.comment-input::placeholder {
	color: var(--comment-meta);
	opacity: 1;
}

.comment-input:focus {
	background: transparent;
	box-shadow: none;
}

.comment-form-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	flex-wrap: wrap;
}

.comment-form-status {
	color: var(--c-note) !important;
	font-weight: 700;
	flex: 1 1 100%;
	font-size: 0.75rem;
}

.comment-form-buttons {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	flex-wrap: wrap;
	margin-left: auto;
}

.comment-form-tools {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--comment-meta);
	font-size: 0.95rem;
}

.comment-form-tool {
	width: 1.55rem;
	height: 1.55rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

.comment-submit-btn {
	width: 1.9rem;
	height: 1.9rem;
	padding: 0;
	border-radius: 999px;
	border: 0;
	background: rgba(44, 155, 229, 0.18);
	color: var(--c-accent);
	font-size: 0.82rem;
}

.comment-submit-btn:hover,
.comment-submit-btn:focus {
	background: var(--c-accent);
	color: white;
}

.comment-submit-btn:disabled {
	background: rgba(128, 128, 128, 0.16);
	color: rgba(96, 96, 96, 0.75);
}

.comment-form-link,
.comment-form-link:hover,
.comment-form-link:focus {
	color: var(--comment-meta);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.72rem;
}

.comment-thread {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.comment-thread-item {
	margin-inline-start: clamp(0rem, calc(var(--comment-depth) * 1.35rem), 3rem);
}

.comment-thread-reply {
	padding-top: 0.05rem;
}

.comment-entry {
	flex: 1 1 auto;
	min-width: 0;
}

.comment-bubble-wrap {
	position: relative;
	display: inline-block;
	max-width: min(100%, 38rem);
}

.comment-bubble {
	display: inline-block;
	padding: 0.55rem 0.8rem 0.65rem;
	border: 0;
	border-radius: 1.2rem;
	background: var(--comment-bubble-bg);
}

.comment-meta {
	margin-bottom: 0.08rem;
}

.comment-author-wrap {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.comment-author {
	font-weight: 700;
	color: var(--bs-heading-color);
	font-size: 0.82rem;
}

.comment-provider {
	display: none;
}

.comment-timestamp {
	color: var(--comment-meta);
	font-size: 0.74rem;
	font-weight: 600;
}

.comment-text {
	font-size: 0.88rem;
	line-height: 1.35;
}

.comment-text>*:last-child {
	margin-bottom: 0;
}

.comment-deleted {
	margin-bottom: 0;
	color: var(--c-gray-dark);
	font-size: 0.78rem;
	font-style: italic;
}

.comment-actions {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	flex-wrap: wrap;
	padding: 0.14rem 0.7rem 0;
	color: var(--comment-meta);
}

.comment-action {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-accent);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: color 0.18s ease;
}

.comment-action:hover,
.comment-action:focus {
	color: var(--c-note);
}

.comment-action.is-active {
	color: var(--c-note);
}

.comment-action-negative:hover,
.comment-action-negative:focus,
.comment-action-negative.is-active {
	color: var(--c-note);
}

.comment-action-muted:hover,
.comment-action-muted:focus {
	color: var(--c-gray-very-dark);
}

.comment-action-delete,
.comment-action-delete:hover,
.comment-action-delete:focus {
	color: #dc3545;
}

.comment-time {
	display: inline-flex;
	align-items: center;
	padding-right: 0.5rem;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--comment-meta);
}

.comment-reactions-badge {
	position: absolute;
	right: 0.2rem;
	bottom: -0.36rem;
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.1rem 0.28rem;
	border-radius: 999px;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: var(--comment-meta);
	font-size: 0.64rem;
	font-weight: 700;
}

.comment-reaction-icon {
	width: 0.85rem;
	height: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: white;
	font-size: 0.48rem;
}

.comment-reaction-like {
	background: var(--c-accent);
}

.comment-reaction-disagree {
	background: var(--c-speech);
}

.comment-reaction-count {
	padding-left: 0.1rem;
}

.comment-empty-state,
.comment-error-state {
	padding: 0.8rem 0;
	background: transparent;
	text-align: left;
	color: var(--comment-meta);
	font-size: 0.8rem;
}

.comment-error-state {
	color: var(--c-gray-very-dark);
}

@media (max-width: 768px) {
	.comment-summary {
		gap: 0.75rem;
		padding-right: 0;
	}

	.comment-thread-item {
		margin-inline-start: clamp(0rem, calc(var(--comment-depth) * 0.8rem), 1.65rem);
	}

	.comment-composer-body,
	.comment-row {
		gap: 0.55rem;
	}

	.comment-avatar {
		width: 2rem;
		height: 2rem;
		flex-basis: 2rem;
	}

	.comment-form-toolbar {
		gap: 0.6rem;
	}

	.comment-form-buttons {
		margin-left: 0;
	}

	.comment-form-status {
		order: -1;
	}

	.comment-bubble-wrap {
		max-width: 100%;
	}

	.comment-action {
		width: 1.3rem;
		height: 1.3rem;
		font-size: 0.86rem;
	}
}

.partial {
	height: 4rem;
	overflow: hidden;
}

.partial:hover {
	height: auto;
	overflow: visible;
}

/* .partial {
	display: block;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

.partial:hover {
	height: fit-content;
	overflow: visible;
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	-webkit-box-orient: unset;
} 

.l2 {
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.l3 {
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.l4 {
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.l5 {
	-webkit-line-clamp: 5;
	line-clamp: 5;
}
*/

.toc a,
.toc2 a {
	text-decoration: none;
}

.toc a:hover,
.toc2 a:hover {
	text-decoration: underline;
}

.toc th,
.toc2 th {
	text-align: left;
}

.toc :lang(ar),
.toc2 :lang(ar) {
	text-align: right;
}

.toc tr.chapter,
.toc2 tr.chapter {
	background-color: ghostwhite;
	font-weight: bold;
}

.toc tr.title,
.toc2 tr.title {
	font-size: small;
}

.toc tr.title :lang(ar),
.toc2 tr.title :lang(ar) {
	font-size: 1rem;
}

.toc tr.title td {
	padding-left: 1.5rem;
	padding-right: 0;
}

.toc tr.title td:nth-child(4) {
	padding-left: 0;
	padding-right: 1.5rem;
}

.toc tr.chapter td:nth-child(2) {
	white-space: nowrap;
}

.toc-expand-btn {
	color: var(--bs-body-color);
	width: 1rem;
	min-width: 1rem;
	vertical-align: text-bottom;
}

.toc-expand-btn:hover,
.toc-expand-btn:focus {
	color: var(--bs-link-color);
}

.toc-expand-spacer {
	display: inline-block;
	width: 1rem;
	min-width: 1rem;
}

.toc-section-number {
	white-space: nowrap;
}

.toggle {
	color: green;
	text-decoration: none;
}

.chapter h2:lang(ar),
.chapter h2:lang(ar) a {
	font-size: 1.75rem !important;
	font-weight: bold;
}

.chapter h3:lang(ar),
.chapter h3:lang(ar) a {
	font-size: 1.5rem !important;
	font-weight: bold;
}

/*
.similar-list {
	opacity: 0.6;
}
*/

.bi-reception-4,
.bi-reception-3,
.bi-reception-2 {
	color: green;
}

.bi-reception-1,
.bi-reception-0 {
	color: red;
}

.bi-patch-check-fill {
	color: #2c9be5;
}

.cmd-tr,
.cmd-tr a {
	color: #a0a0a0;
	line-height: 1.5rem;
}

.cmd-btn,
a.cmd-btn {
	color: #a0a0a0 !important;
	margin-left: 5px;
}

a.cmd-btn:hover {
	color: red !important;
}

.twitter-hashtag-button {
	margin-top: 1em;
}

.ui-autocomplete {
	max-height: 70vh;
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 1100;
}

* html .ui-autocomplete {
	height: 100px;
}

.search-autocomplete-menu {
	background: white;
	border: 1px solid var(--bs-border-color);
	border-radius: 0.35rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.14);
	font-size: 0.92rem;
	padding: 0.35rem;
}

.search-autocomplete-menu .ui-menu-item-wrapper {
	border-radius: 0.25rem;
	padding: 0;
}

.search-autocomplete-menu .ui-state-active {
	background: transparent;
	border: 0;
	color: inherit;
	margin: 0;
}

.search-autocomplete-menu .ui-menu-item:has(.ui-state-active) {
	background: rgba(44, 155, 229, 0.1);
}

.search-autocomplete-menu .ui-menu-item:not(:last-child) {
	padding-bottom: 0.35rem;
	position: relative;
}

.search-autocomplete-menu .ui-menu-item + .ui-menu-item {
	padding-top: 0.35rem;
}

.search-autocomplete-menu .ui-menu-item:not(:last-child)::after {
	background: var(--bs-border-color);
	bottom: 0;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	right: 0;
}

.search-autocomplete-item {
	cursor: pointer;
	line-height: 1.32;
	padding: 0.55rem 0.65rem;
}

.search-autocomplete-match {
	color: var(--bs-body-color);
	font-family: "Gentium Plus", Serif;
	font-size: 0.98rem;
	font-weight: normal;
}

.search-autocomplete-match mark {
	background: rgba(255, 214, 102, 0.5);
	border-radius: 0.12rem;
	color: inherit;
	padding: 0 0.08em;
}

.search-autocomplete-source {
	color: var(--c-gray-dark);
	font-family: "Gentium Plus", Serif;
	font-size: 0.64rem;
	line-height: 1.15;
	margin-top: 0.25rem;
}

.search-autocomplete-menu .search-autocomplete-meta {
	color: var(--c-gray-mid);
	direction: ltr;
	display: block;
	font-family: "Gentium Plus", Serif;
	font-size: 0.72rem;
	line-height: 1.2;
	margin-top: 0.18rem;
	overflow: hidden;
	text-align: left;
}

.search-autocomplete-menu .search-autocomplete-meta-en {
	direction: ltr;
	display: block;
	font-family: "Gentium Plus", Serif;
	font-size: 0.76rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-autocomplete-menu .search-autocomplete-meta-ar {
	direction: rtl;
	display: block;
	font-family: Kitab, Serif;
	font-size: 0.86rem;
	margin-top: 0.08rem;
	overflow: hidden;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-autocomplete-ar {
	font-family: Kitab, Serif;
	text-align: right;
}

.search-autocomplete-ar .search-autocomplete-match {
	font-family: Kitab, Serif;
	font-size: 1.2rem;
	font-weight: normal;
	line-height: 1.7;
}

.search-autocomplete-quran.search-autocomplete-ar,
.search-autocomplete-quran.search-autocomplete-ar .search-autocomplete-match,
.search-autocomplete-quran .search-autocomplete-meta-ar {
	font-family: Arabic, Serif;
}

.search-autocomplete-ar .search-autocomplete-source {
	direction: rtl;
	font-family: "Gentium Plus", Serif;
	font-size: 0.64rem;
	line-height: 1.2;
}

.search-autocomplete-ar .search-autocomplete-meta {
	direction: ltr;
	font-family: "Gentium Plus", Serif;
	font-size: 0.72rem;
	text-align: left;
}

.rag-tool {
	margin-top: 6rem;
}

.chat-messages {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.chat-message {
	border: 1px solid var(--bs-border-color);
	border-radius: 8px;
	line-height: 1.45;
	padding: 0.75rem 0.9rem;
}

.chat-message-user {
	background: #f3f8fc;
	justify-self: end;
	max-width: min(38rem, 92%);
}

.chat-message-assistant {
	background: #fafafa;
	justify-self: start;
	max-width: min(42rem, 96%);
}

.chat-message p:last-child {
	margin-bottom: 0;
}

.rag-search {
	border-bottom: 1px solid var(--bs-border-color);
	padding-bottom: 1rem;
}

.rag-status {
	color: var(--c-gray-very-dark);
	font-size: 0.95rem;
	margin-top: 1rem;
	min-height: 1.5rem;
}

.rag-section-heading h2 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0;
}

.rag-layout {
	margin-top: 1.25rem;
}

.rag-section-heading {
	align-items: baseline;
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.rag-section-heading span {
	color: var(--c-gray-dark);
	font-size: 0.9rem;
}

.rag-results,
#rag-similar-results {
	display: grid;
	gap: 1rem;
}

.rag-empty {
	color: var(--c-gray-dark);
	font-size: 0.95rem;
	padding: 0.5rem 0;
}

.rag-result-actions {
	border-bottom: 1px solid var(--bs-border-color);
	padding-bottom: 1rem;
}

.rag-similar-panel {
	width: min(46rem, 100vw) !important;
}

.rag-similar-panel .offcanvas-title {
	font-size: 1.2rem;
	font-weight: 700;
}

.rag-panel-count,
.rag-match-type {
	color: var(--c-gray-dark);
	font-size: 0.9rem;
}

.rag-similar-panel article {
	border-bottom: 1px solid var(--bs-border-color);
	padding-bottom: 1rem;
}

.rag-similar-panel .modal {
	display: none !important;
}

@media (max-width: 576px) {
	.rag-tool {
		margin-top: 4.5rem;
	}

}

/*
@media only screen and (max-width: 420px) {

	nav.navbar, aside.tags, a.icon, footer, #bmc-wbtn {
		display: none !important;
	}

	main {
		margin-top: auto !important;
	}

}
