/**
 * Articles: the reading page and the research index.
 *
 * The palette is the site's own (fatwa-single.css): deep green, gold on cream,
 * warm paper. Body text is Tajawal like the rest of the site; Amiri is kept
 * for what is quoted — Qur'an, verse — so a reader can tell the Sheikh's prose
 * from the texts he cites at a glance.
 *
 * Every rule that styles a form control is scoped through a parent: Astra
 * styles inputs and buttons by element-plus-attribute, which outranks a bare
 * class. And anything toggled with [hidden] carries its own display:none.
 */

.asa,
.asa-head,
.asa-index {
	--a-ink: #14231c;
	--a-ink-2: #3c5147;
	--a-faint: #6d7f76;
	--a-green: #2e6e51;
	--a-green-deep: #1a4232;
	--a-gold: #7d5f27;
	--a-gold-soft: #a98545;
	--a-cream: #f2ede1;
	--a-paper: #fbf9f4;
	--a-line: #ded6c4;
	--a-line-soft: #ece6da;
	--a-serif: Tajawal, sans-serif;
	--a-quran: Amiri, "Traditional Arabic", serif; /* the Qur'an keeps its own face */

	direction: rtl;
	text-align: right;
	font-family: Tajawal, sans-serif;
}

.asa .as-g,
.asa-head .as-g,
.asa-index .as-g {
	flex: none;
	width: 16px;
	height: 16px;
}

[hidden].asa-toast,
[hidden].asa-ix-desc,
[hidden].asa-ix-empty,
[hidden].asa-ix-pager,
.asa-ix-row[hidden] {
	display: none !important;
}

/* ================================================================ head */

.asa-dek {
	margin: 10px 0 0;
	max-width: 46em;
	font: 400 18px/1.8 var(--a-serif);
	color: var(--a-ink-2);
}

.asa-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin-top: 18px;
}

.asa-head .asa-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 8px 14px;
	font: 400 13px/1 Tajawal, sans-serif;
	color: var(--a-ink-2);
	background: var(--a-paper);
	border: 1px solid var(--a-line-soft);
	border-radius: 999px;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: none;
}

.asa-head .asa-chip .as-g {
	width: 15px;
	height: 15px;
	color: var(--a-faint);
}

.asa-head a.asa-chip.is-bab {
	font-weight: 700;
	color: var(--a-gold);
	background: var(--a-cream);
	border-color: rgba(169, 133, 69, .3);
}

.asa-head a.asa-chip.is-bab .as-g {
	color: var(--a-gold);
}

.asa-head a.asa-chip.is-bab:hover {
	color: var(--a-green-deep);
	border-color: var(--a-gold-soft);
}

.asa-head button.asa-chip.is-action {
	cursor: pointer;
	color: var(--a-green);
	background: #fff;
	border-color: var(--a-line);
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.asa-head button.asa-chip.is-action:hover,
.asa-head button.asa-chip.is-action:focus-visible {
	color: #fff;
	background: var(--a-green);
	border-color: var(--a-green);
}

.asa-head button.asa-chip.is-action:hover .as-g,
.asa-head button.asa-chip.is-action:focus-visible .as-g {
	color: #fff;
}

/* ============================================================= layout */

.asa {
	width: 100%;
}

.asa-progress {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 9999;
	height: 3px;
	background: transparent;
	pointer-events: none;
}

.asa-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--a-gold-soft), var(--a-green));
	transition: width .1s linear;
}

.asa-grid {
	display: block;
}

@media (min-width: 1025px) {
	.asa-grid.has-toc {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 270px;
		gap: 48px;
		align-items: start;
	}

	/* the contents box sits to the left of the text, in reading order after it */
	.asa-grid.has-toc .asa-toc {
		order: 2;
		position: sticky;
		top: 96px;
		max-height: calc(100vh - 120px);
		overflow: auto;
	}

	.asa-grid.has-toc .asa-body {
		order: 1;
	}
}

/* ================================================================ toc */

.asa-toc-box {
	margin: 0 0 28px;
	padding: 16px 18px 14px;
	background: var(--a-paper);
	border: 1px solid var(--a-line-soft);
	border-radius: 14px;
}

.asa-toc-box > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	list-style: none;
	font: 700 13px/1 Tajawal, sans-serif;
	letter-spacing: .6px;
	color: var(--a-gold);
}

.asa-toc-box > summary::-webkit-details-marker {
	display: none;
}

.asa-toc-box > summary::after {
	content: "";
	flex: none;
	margin-inline-start: auto;
	width: 7px;
	height: 7px;
	border-style: solid;
	border-color: currentColor;
	border-width: 0 1.8px 1.8px 0;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .18s ease;
}

.asa-toc-box[open] > summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.asa-toc ol {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: asa-toc;
}

.asa-toc li {
	margin: 0;
	padding: 0;
}

.asa-toc a {
	display: block;
	padding: 7px 10px 7px 4px;
	border-inline-start: 2px solid var(--a-line-soft);
	font: 400 14px/1.55 Tajawal, sans-serif;
	color: var(--a-ink-2);
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.asa-toc li.is-h3 a {
	padding-inline-start: 22px;
	font-size: 13px;
	color: var(--a-faint);
}

.asa-toc li.is-h2 a {
	padding-inline-start: 12px;
	font-weight: 700;
}

.asa-toc a:hover,
.asa-toc a:focus-visible {
	color: var(--a-green-deep);
	background: rgba(46, 110, 81, .05);
	text-decoration: none;
}

.asa-toc a.is-on {
	color: var(--a-green);
	border-inline-start-color: var(--a-green);
	background: rgba(46, 110, 81, .07);
}

/* ======================================================== the article */

.asa-body.as-rich {
	max-width: 46rem;
	font: 400 18.5px/2.05 Tajawal, sans-serif;
	color: var(--a-ink);
	text-align: justify;
	text-justify: inter-word;
	word-spacing: .02em;
	hyphens: none;
	overflow-wrap: anywhere;
}

.asa-grid:not(.has-toc) .asa-body.as-rich {
	margin-inline: auto;
}

.asa-body.as-rich p {
	margin: 0 0 1.05em;
}

.asa-body.as-rich h2,
.asa-body.as-rich h3 {
	text-align: right;
	scroll-margin-top: 100px;
	color: var(--a-green-deep);
	font-family: Tajawal, sans-serif;
	letter-spacing: 0;
}

.asa-body.as-rich h2 {
	position: relative;
	margin: 2.1em 0 .8em;
	padding-bottom: .45em;
	font-size: 1.32em;
	font-weight: 800;
	line-height: 1.55;
	border-bottom: 1px solid var(--a-line-soft);
}

.asa-body.as-rich h2::after {
	content: "";
	position: absolute;
	bottom: -1px;
	inset-inline-start: 0;
	width: 56px;
	height: 2px;
	background: var(--a-gold-soft);
}

.asa-body.as-rich h3 {
	margin: 1.7em 0 .6em;
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.6;
	color: var(--a-green);
}

.asa-body.as-rich > :first-child {
	margin-top: 0;
}

/* a label at the head of a paragraph: «المولد لغة:» */
.asa-body.as-rich .as-lead {
	font-weight: 700;
	color: var(--a-green-deep);
}

/* the Qur'an, in its own face and colour */
.asa-body.as-rich .as-ayah {
	font-family: var(--a-quran);
	font-size: 1.12em;
	line-height: 1.9;
	color: #1f5f45;
}

.asa-body.as-rich .as-aref {
	font-size: .78em;
	color: var(--a-faint);
	white-space: nowrap;
}

.asa-body.as-rich blockquote.as-quote {
	margin: 1.5em 0;
	padding: 1em 1.3em;
	background: var(--a-paper);
	border: 1px solid var(--a-line-soft);
	border-inline-start: 3px solid var(--a-gold-soft);
	border-radius: 0 10px 10px 0;
	opacity: 1;
	font-size: .97em;
	color: var(--a-ink-2);
}

.asa-body.as-rich .as-center {
	text-align: center;
	font-family: var(--a-serif);
	font-size: 1.08em;
}

.asa-body.as-rich ol.as-list,
.asa-body.as-rich ul.as-list {
	margin: 0 0 1.2em;
	padding-inline-start: 1.7em;
}

.asa-body.as-rich ol.as-list {
	list-style: arabic-indic;
}

.asa-body.as-rich ol.as-list > li::marker {
	color: var(--a-gold);
	font-weight: 700;
}

.asa-body.as-rich ul.as-list > li::marker {
	color: var(--a-gold-soft);
}

.asa-body.as-rich li {
	margin: 0 0 .5em;
	padding-inline-start: .2em;
}

/* --------------------------------------------------------------- verse */

.asa-body.as-rich .as-poem {
	margin: 1.6em auto;
	padding: 1.1em 1.4em;
	max-width: 40rem;
	background: linear-gradient(180deg, var(--a-paper), #fff);
	border: 1px solid var(--a-line-soft);
	border-radius: 14px;
	font-family: var(--a-serif);
	font-size: 1.06em;
	line-height: 2;
	color: var(--a-ink);
	text-align: center;
}

.asa-body.as-rich .as-bayt {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 2.4em;
	padding: .15em 0;
}

.asa-body.as-rich .as-bayt > span:first-child {
	text-align: right;
}

.asa-body.as-rich .as-bayt > span:last-child {
	text-align: left;
}

.asa-body.as-rich .as-bayt.as-bayt-one {
	grid-template-columns: 1fr;
}

.asa-body.as-rich .as-bayt.as-bayt-one > span {
	text-align: center;
}

.asa-body.as-rich .as-stanza {
	padding: .7em 0;
}

.asa-body.as-rich .as-stanza + .as-stanza {
	border-top: 1px dashed var(--a-line);
}

.asa-body.as-rich .as-stanza-new span {
	display: block;
}

.asa-body.as-rich .as-bayt-orig {
	margin-top: .35em;
	color: var(--a-green-deep);
	font-weight: 700;
}

@media (max-width: 640px) {
	.asa-body.as-rich .as-bayt {
		grid-template-columns: 1fr;
		gap: 0;
		padding: .35em 0;
	}

	.asa-body.as-rich .as-bayt > span,
	.asa-body.as-rich .as-bayt > span:first-child,
	.asa-body.as-rich .as-bayt > span:last-child {
		text-align: center;
	}

	.asa-body.as-rich .as-bayt > span:last-child {
		padding-inline-start: 1.5em;
	}
}

/* --------------------------------------------------------------- tables */

.asa-body.as-rich .as-table-wrap {
	margin: 1.5em 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--a-line);
	border-radius: 12px;
}

.asa-body.as-rich .as-table {
	width: 100%;
	min-width: 34em;
	margin: 0;
	border-collapse: collapse;
	font-size: .86em;
	line-height: 1.6;
	text-align: center;
}

.asa-body.as-rich .as-table th,
.asa-body.as-rich .as-table td {
	padding: .65em .8em;
	border: 0;
	border-bottom: 1px solid var(--a-line-soft);
	text-align: center;
}

.asa-body.as-rich .as-table th {
	color: #fff;
	background: var(--a-green-deep);
	font-weight: 700;
}

.asa-body.as-rich .as-table tbody tr:nth-child(even) td {
	background: var(--a-paper);
}

.asa-body.as-rich .as-table td:first-child {
	font-weight: 700;
	text-align: right;
}

/* ============================================================= share */

.asa-share {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin-top: 40px;
	padding: 16px 20px;
	background: var(--a-paper);
	border: 1px solid var(--a-line-soft);
	border-radius: 14px;
}

.asa-share-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font: 700 13px/1 Tajawal, sans-serif;
	letter-spacing: .6px;
	color: var(--a-gold);
}

.asa-share-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-inline-start: auto;
}

.asa-share .asa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	color: var(--a-ink-2);
	background: #fff;
	border: 1px solid var(--a-line);
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease;
}

.asa-share .asa-btn .as-g {
	width: 18px;
	height: 18px;
}

.asa-share .asa-btn:hover,
.asa-share .asa-btn:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}

.asa-share .asa-btn.is-whatsapp:hover { background: #25d366; border-color: #25d366; }
.asa-share .asa-btn.is-telegram:hover { background: #2aabee; border-color: #2aabee; }
.asa-share .asa-btn.is-facebook:hover { background: #1877f2; border-color: #1877f2; }
.asa-share .asa-btn.is-x:hover { background: #14171a; border-color: #14171a; }
.asa-share .asa-btn.is-copy:hover,
.asa-share .asa-btn.is-copy.is-done { color: #fff; background: var(--a-green); border-color: var(--a-green); }
.asa-share .asa-btn.is-print:hover { background: var(--a-green-deep); border-color: var(--a-green-deep); }

.asa-toast {
	position: absolute;
	inset-inline-end: 20px;
	bottom: calc(100% + 8px);
	margin: 0;
	padding: 9px 14px;
	font: 700 12px/1 Tajawal, sans-serif;
	color: #fff;
	background: var(--a-green-deep);
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(20, 35, 28, .22);
}

/* ============================================================== nav */

.asa-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin-top: 28px;
}

.asa-nav-gap {
	display: block;
}

.asa-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 16px;
	color: inherit;
	background: #fff;
	border: 1px solid var(--a-line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.asa-nav-item:hover,
.asa-nav-item:focus-visible {
	text-decoration: none;
	border-color: var(--a-green);
	background: var(--a-paper);
	transform: translateY(-2px);
}

.asa-nav-item.is-next {
	flex-direction: row-reverse;
	text-align: left;
}

.asa-nav-item .as-g {
	width: 20px;
	height: 20px;
	color: var(--a-gold-soft);
}

.asa-nav-text {
	flex: 1 1 auto;
	min-width: 0;
}

.asa-nav-label {
	display: block;
	margin-bottom: 6px;
	font: 700 11px/1 Tajawal, sans-serif;
	letter-spacing: .8px;
	color: var(--a-gold);
}

.asa-nav-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font: 700 15px/1.55 Tajawal, sans-serif;
	color: var(--a-ink);
}

/* ========================================================= related */

.asa-related {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--a-line-soft);
}

.asa-related-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 16px;
}

.asa-related-head h2 {
	margin: 0;
	font: 800 22px/1.4 Tajawal, sans-serif;
	color: var(--a-ink);
}

.asa-related-head a {
	font: 700 14px/1 Tajawal, sans-serif;
	color: var(--a-green);
	text-decoration: none;
}

.asa-related-head a:hover {
	color: var(--a-green-deep);
	text-decoration: underline;
}

.asa-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 14px;
}

.asa-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	color: inherit;
	background: #fff;
	border: 1px solid var(--a-line);
	border-top: 3px solid var(--a-gold-soft);
	border-radius: 14px;
	text-decoration: none;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.asa-card:hover,
.asa-card:focus-visible {
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(20, 35, 28, .08);
	border-color: var(--a-green);
}

.asa-card-title {
	font: 700 16px/1.55 Tajawal, sans-serif;
	color: var(--a-ink);
}

.asa-card-text {
	flex: 1 1 auto;
	font: 400 14px/1.75 Tajawal, sans-serif;
	color: var(--a-ink-2);
}

.asa-card-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 400 12.5px/1 Tajawal, sans-serif;
	color: var(--a-faint);
}

.asa-card-meta .as-g {
	width: 14px;
	height: 14px;
}

/* ============================================================== index */

.asa-index {
	width: 100%;
}

.asa-ix-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 16px 18px;
	background: var(--a-paper);
	border: 1px solid var(--a-line-soft);
	border-radius: 16px 16px 0 0;
	border-bottom: 0;
}

.asa-ix-tools .asa-ix-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 320px;
	margin: 0;
}

.asa-ix-tools .asa-ix-search .as-g {
	position: absolute;
	inset-inline-start: 16px;
	width: 18px;
	height: 18px;
	color: var(--a-faint);
	pointer-events: none;
}

.asa-ix-tools .asa-ix-search .asa-ix-input {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 48px 0 16px;
	font: 400 15.5px/1 Tajawal, sans-serif;
	color: var(--a-ink);
	background: #fff;
	border: 1px solid var(--a-line);
	border-radius: 999px;
	box-shadow: none;
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.asa-ix-tools .asa-ix-search .asa-ix-input:focus {
	border-color: var(--a-green);
	box-shadow: 0 0 0 4px rgba(46, 110, 81, .1);
}

.asa-ix-count {
	margin: 0;
	font: 700 14px/1 Tajawal, sans-serif;
	color: var(--a-gold);
	white-space: nowrap;
}

.asa-ix-babs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 18px 18px;
	background: var(--a-paper);
	border: 1px solid var(--a-line-soft);
	border-top: 0;
	border-radius: 0 0 16px 16px;
}

.asa-ix-babs .asa-ix-bab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 14px;
	font: 700 13.5px/1 Tajawal, sans-serif;
	color: var(--a-ink-2);
	background: #fff;
	border: 1px solid var(--a-line);
	border-radius: 999px;
	cursor: pointer;
	box-shadow: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.asa-ix-babs .asa-ix-bab span {
	padding: 3px 7px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--a-gold);
	background: var(--a-cream);
	border-radius: 999px;
}

.asa-ix-babs .asa-ix-bab:hover,
.asa-ix-babs .asa-ix-bab:focus-visible {
	color: var(--a-green-deep);
	background: #fff;
	border-color: var(--a-green);
}

.asa-ix-babs .asa-ix-bab.is-on {
	color: #fff;
	background: var(--a-green-deep);
	border-color: var(--a-green-deep);
}

.asa-ix-babs .asa-ix-bab.is-on span {
	color: var(--a-green-deep);
	background: #fff;
}

.asa-ix-desc {
	margin: 18px 4px 0;
	font: 400 15px/1.7 var(--a-serif);
	color: var(--a-ink-2);
}

.asa-ix-list {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: asa-ix var(--asa-from, 0);
}

.asa-ix-row {
	margin: 0;
	padding: 0;
	counter-increment: asa-ix;
}

.asa-ix-row > a {
	position: relative;
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	gap: 6px 18px;
	align-items: start;
	padding: 20px 18px;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--a-line-soft);
	transition: background .15s ease;
}

.asa-ix-row > a::before {
	content: counter(asa-ix, arabic-indic);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font: 700 14px/1 Tajawal, sans-serif;
	color: var(--a-gold);
	background: var(--a-cream);
	border-radius: 12px;
}

.asa-ix-row > a:hover,
.asa-ix-row > a:focus-visible {
	text-decoration: none;
	background: var(--a-paper);
}

.asa-ix-row > a:hover .asa-ix-title {
	color: var(--a-green);
}

.asa-ix-main {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.asa-ix-title {
	font: 700 17.5px/1.55 Tajawal, sans-serif;
	color: var(--a-ink);
	transition: color .15s ease;
}

.asa-ix-dek {
	font: 400 15px/1.6 var(--a-serif);
	color: var(--a-gold);
}

.asa-ix-ex {
	font: 400 14.5px/1.75 Tajawal, sans-serif;
	color: var(--a-ink-2);
}

.asa-ix-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	padding-top: 3px;
}

.asa-ix-babname {
	padding: 6px 11px;
	font: 700 12px/1.2 Tajawal, sans-serif;
	color: var(--a-green);
	background: rgba(46, 110, 81, .07);
	border-radius: 999px;
	white-space: nowrap;
}

.asa-ix-time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font: 400 12.5px/1 Tajawal, sans-serif;
	color: var(--a-faint);
	white-space: nowrap;
}

.asa-ix-time .as-g {
	width: 13px;
	height: 13px;
}

.asa-ix-empty {
	padding: 40px 16px;
	text-align: center;
	font: 400 16px/1.6 Tajawal, sans-serif;
	color: var(--a-ink-2);
}

.asa-ix-empty p {
	margin: 0 0 14px;
}

.asa-index .asa-ix-empty .asa-ix-reset,
.asa-index .asa-ix-pager button {
	margin: 0;
	padding: 10px 18px;
	font: 700 14px/1 Tajawal, sans-serif;
	color: var(--a-green-deep);
	background: #fff;
	border: 1px solid var(--a-line);
	border-radius: 999px;
	cursor: pointer;
	box-shadow: none;
}

.asa-ix-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 26px;
}

.asa-index .asa-ix-pager button {
	min-width: 42px;
	padding: 10px 14px;
}

.asa-index .asa-ix-pager button:hover:not([disabled]) {
	border-color: var(--a-green);
}

.asa-index .asa-ix-pager button.is-on {
	color: #fff;
	background: var(--a-green-deep);
	border-color: var(--a-green-deep);
}

.asa-index .asa-ix-pager button[disabled] {
	opacity: .4;
	cursor: default;
}

.asa-ix-pager .asa-ix-dots {
	align-self: center;
	padding: 0 4px;
	color: var(--a-faint);
}

@media (max-width: 700px) {
	.asa-ix-row > a {
		grid-template-columns: 38px minmax(0, 1fr);
		padding: 16px 6px;
		gap: 6px 12px;
	}

	.asa-ix-row > a::before {
		width: 34px;
		height: 34px;
		font-size: 13px;
	}

	.asa-ix-side {
		grid-column: 2;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.asa-ix-title {
		font-size: 16.5px;
	}

	.asa-ix-ex {
		font-size: 14px;
	}

	.asa-ix-babs {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 14px;
	}

	.asa-ix-babs::-webkit-scrollbar {
		display: none;
	}

	.asa-ix-babs .asa-ix-bab {
		flex: none;
	}
}

/* ============================================================= small */

@media (max-width: 1024px) {
	.asa-toc-box {
		margin-bottom: 24px;
	}
}

@media (max-width: 640px) {
	.asa-body.as-rich {
		font-size: 17px;
		line-height: 1.95;
		text-align: right;
	}

	.asa-dek {
		font-size: 17px;
	}

	.asa-head .asa-chip.is-words {
		display: none;
	}

	.asa-share {
		padding: 14px;
	}

	.asa-share-btns {
		width: 100%;
		margin-inline-start: 0;
		justify-content: center;
	}

	.asa-share-label {
		width: 100%;
		justify-content: center;
	}

	.asa-nav-gap {
		display: none;
	}

	.asa-toast {
		inset-inline-end: 50%;
		transform: translateX(50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.asa *,
	.asa-index * {
		transition: none !important;
		animation: none !important;
	}
}

/* ============================================================= paper */

@media print {
	.asa-progress,
	.asa-toc,
	.asa-share,
	.asa-nav,
	.asa-related,
	.asa-head .asa-chip.is-action,
	.as-back-link,
	.ast-above-header-wrap,
	.ast-main-header-wrap,
	.ast-below-header-wrap,
	.site-header,
	.site-footer,
	#ast-scroll-top,
	.elementor-location-header,
	.elementor-location-footer {
		display: none !important;
	}

	.asa-grid.has-toc {
		display: block !important;
	}

	.asa-body.as-rich {
		max-width: none;
		font-size: 12.5pt;
		line-height: 1.85;
		color: #000;
	}

	.asa-body.as-rich h2,
	.asa-body.as-rich h3 {
		color: #000;
		break-after: avoid;
	}

	.asa-body.as-rich .as-ayah {
		color: #000;
	}

	.asa-body.as-rich .as-poem,
	.asa-body.as-rich blockquote.as-quote,
	.asa-body.as-rich .as-table-wrap {
		break-inside: avoid;
		background: none;
	}

	.asa-head .asa-chip {
		padding: 0;
		border: 0;
		background: none;
		color: #000;
	}

	.asa-head .asa-chip .as-g {
		display: none;
	}
}
