/**
 * The listing hubs: a sidebar of search and filters, and a main column of
 * sections over the full index.
 *
 * Colours are the site's own (the same tokens fatwa-index.css and
 * fatwa-slider.css were cut from). Every rule is scoped under .ash: the theme
 * styles buttons, inputs and headings by element, and a lone class loses to
 * those. Anything switched with the hidden attribute gets its own
 * [hidden] rule, because a display of its own would outrank the browser's.
 */
.ash {
	--ink: #14231c;
	--ink-2: #3c5147;
	--faint: #6d7f76;
	--green: #2e6e51;
	--green-deep: #1a4232;
	--gold: #7d5f27;
	--gold-light: #dcbc7e;
	--cream: #f2ede1;
	--paper: #fbf9f4;
	--line: #ded6c4;
	--line-soft: #ece6da;
	--shadow: 0 4px 16px rgba( 20, 35, 28, 0.08 );
	--lift: 0 12px 28px rgba( 20, 35, 28, 0.12 );

	/* The slider's own sheet reads these from .as-hero; it now lives here. */
	--fx-gold-dark: #dcbc7e;

	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 24px;
	align-items: start;
	font-family: Tajawal, sans-serif;
	direction: rtl;
	text-align: right;
	color: var(--ink);
}

.ash *,
.ash *::before,
.ash *::after {
	box-sizing: border-box;
}

.ash [hidden] {
	display: none !important;
}

/* A default size, so no glyph can ever render at the SVG's own size. */
.ash .ash-i,
.ash .as-g {
	flex: none;
	width: 16px;
	height: 16px;
}

.ash a {
	text-decoration: none;
}

.ash p {
	margin: 0;
}

.ash button {
	font-family: Tajawal, sans-serif;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.3;
	box-shadow: none;
}

@media ( min-width: 1025px ) {
	.ash {
		grid-template-columns: 290px minmax( 0, 1fr );
		gap: 32px;
	}
}

/* ================================================================ sidebar */

.ash .ash-side {
	min-width: 0;
}

.ash .ash-side-in {
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 20px 18px;
	box-shadow: var(--shadow);
}

.ash .ash-side-top {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line-soft);
	font: 700 17px/1.3 Tajawal, sans-serif;
	color: var(--ink);
}

.ash .ash-side-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink-2);
	cursor: pointer;
}

.ash .ash-side-x:hover {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.ash .ash-box + .ash-box {
	border-top: 1px solid var(--line-soft);
	padding-top: 18px;
}

.ash .ash-box-title,
.ash .as-fx-chips-label,
.ash .as-fx-scope-label {
	display: block;
	margin: 0 2px 10px;
	font: 700 11.5px/1 Tajawal, sans-serif;
	letter-spacing: 1.2px;
	color: var(--gold);
}

/* ---------------------------------------------------- research: the search */

.ash .ash-field {
	position: relative;
	display: block;
}

.ash .ash-field > .ash-field-i {
	position: absolute;
	inset-inline-start: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	color: var(--faint);
	pointer-events: none;
}

.ash .ash-field .ash-input {
	width: 100%;
	font: 400 15px/1.5 Tajawal, sans-serif;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 11px 42px;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ash .ash-field .ash-input::placeholder {
	color: var(--faint);
	opacity: 1;
}

.ash .ash-field .ash-input:focus {
	background: #fff;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba( 46, 110, 81, 0.15 );
}

.ash .ash-field .ash-input::-webkit-search-cancel-button,
.ash .ash-field .ash-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.ash .ash-clear {
	position: absolute;
	inset-inline-end: 9px;
	top: 50%;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cream);
	color: var(--ink-2);
	cursor: pointer;
}

.ash .ash-clear .ash-i {
	width: 13px;
	height: 13px;
}

.ash .ash-clear:hover {
	background: var(--green);
	color: #fff;
}

/* ------------------------------------------------- research: the options */

.ash .ash-opts {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ash .ash-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ink-2);
	font: 500 14px/1.4 Tajawal, sans-serif;
	text-align: right;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ash .ash-opt .ash-i {
	width: 17px;
	height: 17px;
	color: var(--gold);
}

.ash .ash-opt span {
	flex: 1 1 auto;
	min-width: 0;
}

.ash .ash-opt b {
	flex: none;
	font: 700 11.5px/1 Tajawal, sans-serif;
	color: var(--faint);
	background: var(--paper);
	border-radius: 999px;
	padding: 4px 8px;
}

.ash .ash-opt:hover {
	background: var(--paper);
	color: var(--green-deep);
}

.ash .ash-opt[aria-pressed="true"] {
	background: var(--green);
	color: #fff;
}

.ash .ash-opt[aria-pressed="true"] .ash-i {
	color: var(--gold-light);
}

.ash .ash-opt[aria-pressed="true"] b {
	color: var(--green-deep);
	background: rgba( 255, 255, 255, 0.9 );
}

.ash .ash-seg {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ash .ash-seg button {
	font: 500 13px/1 Tajawal, sans-serif;
	color: var(--ink-2);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 13px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ash .ash-seg button:hover {
	border-color: var(--green);
	color: var(--green-deep);
	background: #fff;
}

.ash .ash-seg button[aria-pressed="true"] {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

/* -------------------------------------------- fatwas: the moved controls */

.ash .as-fx-tools {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	gap: 18px;
}

.ash .as-fx-seek {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.ash .as-fx-field .as-fx-input {
	font-size: 15px;
	padding-top: 11px;
	padding-bottom: 11px;
}

.ash .as-fx-scope {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.ash .as-fx-scope-box {
	flex: 1 1 auto;
}

.ash .as-fx-scope-box .as-fx-scope-select {
	width: 100%;
	max-width: none;
}

.ash .as-fx-chips {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 1px;
	padding-top: 18px;
	border-top: 1px solid var(--line-soft);
}

.ash .as-fx-chips[hidden] {
	display: none !important;
}

.ash .as-fx-chip {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	font: 500 14px/1.45 Tajawal, sans-serif;
	color: var(--ink-2);
	text-align: right;
}

.ash .as-fx-chip:hover {
	background: var(--paper);
	color: var(--green-deep);
}

.ash .as-fx-chip[aria-pressed="true"] {
	background: var(--green);
	color: #fff;
}

.ash .as-fx-chip-n {
	margin-inline-start: auto;
	font: 700 11.5px/1 Tajawal, sans-serif;
	opacity: 0.7;
}

.ash .as-fx-chip[data-depth="1"],
.ash .as-fx-chip[data-depth="2"] {
	padding-inline-start: 22px;
	font-size: 13px;
}

.ash .as-fx-chip[hidden] {
	display: none !important;
}

.ash .ash-askbox {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	border-radius: 12px;
	background: var(--cream);
}

.ash .ash-askbox-t {
	font: 700 15px/1.4 Tajawal, sans-serif;
	color: var(--ink);
}

.ash .ash-askbox-d {
	font: 400 13.5px/1.7 Tajawal, sans-serif;
	color: var(--ink-2);
}

/* ================================================================ buttons */

.ash .ash-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	font: 700 14px/1 Tajawal, sans-serif;
	color: #fff;
	background: linear-gradient( 135deg, #35815f, var(--green-deep) );
	border-radius: 999px;
	padding: 12px 20px;
	box-shadow: 0 6px 16px rgba( 26, 66, 50, 0.22 );
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ash .ash-btn:hover,
.ash .ash-btn:focus-visible {
	color: #fff;
	transform: translateY( -1px );
	box-shadow: 0 10px 22px rgba( 26, 66, 50, 0.3 );
}

.ash .ash-btn .ash-i {
	width: 16px;
	height: 16px;
}

.ash .ash-open {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	margin: 0 0 22px;
	padding: 13px 18px;
	font: 700 15px/1 Tajawal, sans-serif;
	color: var(--green-deep);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow);
	cursor: pointer;
}

.ash .ash-open .ash-i {
	width: 18px;
	height: 18px;
	color: var(--gold);
}

.ash .ash-open:hover {
	border-color: var(--green);
	background: #fff;
	color: var(--green-deep);
}

.ash .ash-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: none;
	font: 700 13px/1 Tajawal, sans-serif;
	color: var(--green);
	cursor: pointer;
}

.ash .ash-more:hover {
	color: var(--green-deep);
	background: none;
}

.ash .ash-more .ash-i {
	width: 14px;
	height: 14px;
	transition: transform 0.15s ease;
}

.ash .ash-more:hover .ash-i {
	transform: translateX( -3px );
}

/* =================================================================== main */

.ash .ash-main {
	min-width: 0;
	container-type: inline-size;
	container-name: ashmain;
}

.ash .ash-home {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-bottom: 44px;
}

.ash .ash-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 0 0 16px;
}

.ash .ash-sec-head .ash-sec-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font: 700 21px/1.3 Tajawal, sans-serif;
	color: var(--ink);
	letter-spacing: 0;
}

.ash .ash-sec-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--cream);
	color: var(--gold);
}

.ash .ash-sec-icon .ash-i {
	width: 18px;
	height: 18px;
}

.ash .ash-panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.ash .ash-lead,
.ash .ash-duo {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 20px;
	align-items: stretch;
}

.ash .ash-duo > .ash-sec {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ash .ash-duo > .ash-sec > .ash-panel {
	flex: 1 1 auto;
}

@container ashmain ( min-width: 700px ) {
	.ash .ash-lead {
		grid-template-columns: minmax( 0, 1.5fr ) minmax( 0, 1fr );
	}

	.ash .ash-duo {
		grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr );
	}
}

/* --------------------------------------------------------- featured card */

.ash .ash-feature {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 280px;
	padding: clamp( 22px, 3.4vw, 34px );
	border-radius: 18px;
	color: #fff;
	background:
		repeating-linear-gradient( 45deg, rgba( 255, 255, 255, 0.045 ) 0 1px, transparent 1px 14px ),
		repeating-linear-gradient( -45deg, rgba( 255, 255, 255, 0.045 ) 0 1px, transparent 1px 14px ),
		linear-gradient( 135deg, #2c6b50 0%, var(--green-deep) 62%, #143528 100% );
	box-shadow: 0 12px 30px rgba( 20, 35, 28, 0.2 );
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ash .ash-feature:hover,
.ash .ash-feature:focus-visible {
	color: #fff;
	transform: translateY( -2px );
	box-shadow: 0 18px 40px rgba( 20, 35, 28, 0.26 );
}

.ash .ash-feature-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.ash .ash-feature-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 700 11.5px/1 Tajawal, sans-serif;
	letter-spacing: 1.2px;
	color: var(--gold-light);
}

.ash .ash-feature-tag .ash-i {
	width: 15px;
	height: 15px;
}

.ash .ash-feature-bab {
	font: 700 10.5px/1 Tajawal, sans-serif;
	color: var(--gold-light);
	border: 1px solid rgba( 220, 188, 126, 0.45 );
	border-radius: 999px;
	padding: 5px 11px;
}

.ash .ash-feature-title {
	font: 700 clamp( 21px, 2.6vw, 28px ) / 1.45 Tajawal, sans-serif;
	color: #fff;
}

.ash .ash-feature-dek {
	font: 400 16px/1.6 Tajawal, sans-serif;
	color: var(--gold-light);
}

.ash .ash-feature-text {
	font: 400 15px/1.9 Tajawal, sans-serif;
	color: rgba( 255, 255, 255, 0.82 );
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ash .ash-feature-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: auto;
	padding-top: 8px;
}

.ash .ash-feature-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 500 13px/1 Tajawal, sans-serif;
	color: rgba( 255, 255, 255, 0.72 );
}

.ash .ash-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 700 14px/1 Tajawal, sans-serif;
	color: var(--gold-light);
}

.ash .ash-cta .ash-i {
	transition: transform 0.18s ease;
}

.ash .ash-feature:hover .ash-cta .ash-i {
	transform: translateX( -4px );
}

/* The fatwa slider, moved here from the page head. */
.ash .ash-feature-wrap .as-sl {
	margin-top: 0;
}

.ash .ash-feature-wrap .as-sl-eyebrow {
	font-size: 11.5px;
}

/* ---------------------------------------------------------------- the day */

.ash .ash-day {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border-radius: 18px;
	background: linear-gradient( 180deg, #fff 0%, var(--paper) 100% );
	border: 1px solid var(--line);
	border-top: 4px solid var(--gold-light);
	box-shadow: var(--shadow);
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.ash-day:hover,
a.ash-day:focus-visible {
	color: inherit;
	border-color: var(--green);
	border-top-color: var(--gold-light);
	box-shadow: var(--lift);
}

.ash .ash-day-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 10px;
}

.ash .ash-day-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font: 700 13px/1 Tajawal, sans-serif;
	color: var(--gold);
}

.ash .ash-day-tag .ash-i {
	width: 18px;
	height: 18px;
}

.ash .ash-day-date {
	font: 500 12px/1 Tajawal, sans-serif;
	color: var(--faint);
}

.ash .ash-day-title {
	font: 700 19px/1.55 Tajawal, sans-serif;
	color: var(--ink);
}

.ash a.ash-day-title:hover,
.ash a.ash-day:hover .ash-day-title {
	color: var(--green);
}

.ash .ash-day-text {
	font: 400 14.5px/1.85 Tajawal, sans-serif;
	color: var(--ink-2);
}

.ash a.ash-day .ash-day-text {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ash .ash-day-meta {
	margin-top: auto;
	font: 500 12.5px/1.5 Tajawal, sans-serif;
	color: var(--faint);
}

.ash .ash-day-qa {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-inline-start: 12px;
	border-inline-start: 3px solid var(--line);
}

.ash .ash-day-qa.is-answer {
	border-inline-start-color: var(--green);
}

.ash .ash-day-label {
	font: 700 11.5px/1.2 Tajawal, sans-serif;
	letter-spacing: 1px;
	color: var(--gold);
}

.ash .ash-day.is-fatwa .ash-btn {
	margin-top: auto;
}

/* ------------------------------------------------------------------ cards */

.ash .ash-cards {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 16px;
}

@container ashmain ( min-width: 520px ) {
	.ash .ash-cards {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

.ash .ash-card {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
	color: inherit;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ash .ash-card:hover,
.ash .ash-card:focus-visible {
	color: inherit;
	border-color: var(--green);
	box-shadow: var(--lift);
	transform: translateY( -2px );
}

.ash .ash-card-kicker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font: 700 11.5px/1.3 Tajawal, sans-serif;
	color: var(--gold);
}

.ash .ash-no {
	font: 700 11px/1 Tajawal, sans-serif;
	color: var(--green-deep);
	background: var(--cream);
	border-radius: 999px;
	padding: 4px 9px;
}

.ash .ash-no::before {
	content: "#";
	margin-inline-end: 1px;
	opacity: 0.6;
}

.ash .ash-card-title {
	font: 700 17px/1.55 Tajawal, sans-serif;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.ash .ash-card:hover .ash-card-title {
	color: var(--green);
}

.ash .ash-card-text {
	font: 400 14px/1.8 Tajawal, sans-serif;
	color: var(--ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ash .ash-card-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 4px;
	font: 500 12.5px/1 Tajawal, sans-serif;
	color: var(--faint);
}

.ash .ash-card-meta.is-cta {
	font-weight: 700;
	color: var(--green);
}

.ash .ash-card-meta .ash-i {
	width: 14px;
	height: 14px;
	transition: transform 0.15s ease;
}

.ash .ash-card:hover .ash-card-meta.is-cta .ash-i {
	transform: translateX( -3px );
}

/* ------------------------------------------------------------- the ranking */

.ash .ash-rank {
	list-style: none;
	margin: 0;
	padding: 4px 0;
}

.ash .ash-rank li {
	margin: 0;
}

.ash .ash-rank li + li {
	border-top: 1px solid var(--line-soft);
}

.ash .ash-rank a {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 13px 18px;
	color: inherit;
	transition: background 0.15s ease;
}

.ash .ash-rank a:hover {
	background: var(--paper);
	color: inherit;
}

.ash .ash-rank-n {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font: 700 14px/1 Tajawal, sans-serif;
	color: var(--green-deep);
	background: var(--cream);
}

.ash .ash-rank li:nth-child( -n + 3 ) .ash-rank-n {
	color: #fff;
	background: var(--green);
}

.ash .ash-rank-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ash .ash-rank-title {
	font: 700 15.5px/1.55 Tajawal, sans-serif;
	color: var(--ink);
	transition: color 0.15s ease;
}

.ash .ash-rank a:hover .ash-rank-title {
	color: var(--green);
}

.ash .ash-rank-meta {
	font: 400 12.5px/1.6 Tajawal, sans-serif;
	color: var(--faint);
}

/* -------------------------------------------------------------- mini list */

.ash .ash-mini {
	list-style: none;
	margin: 0;
	padding: 4px 18px;
}

.ash .ash-mini li {
	margin: 0;
}

.ash .ash-mini li + li {
	border-top: 1px solid var(--line-soft);
}

.ash .ash-mini a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 13px 0;
	color: inherit;
}

.ash .ash-mini-title {
	font: 700 15px/1.55 Tajawal, sans-serif;
	color: var(--ink);
	transition: color 0.15s ease;
}

.ash .ash-mini a:hover .ash-mini-title {
	color: var(--green);
}

.ash .ash-mini-text {
	font: 400 13.5px/1.75 Tajawal, sans-serif;
	color: var(--ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ash .ash-mini-meta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font: 500 12.5px/1.4 Tajawal, sans-serif;
	color: var(--faint);
}

.ash .ash-mini-meta .ash-i {
	width: 13px;
	height: 13px;
	color: var(--gold);
}

/* ------------------------------------------------------------------- tabs */

.ash .ash-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 3px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
}

.ash .ash-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: 600 13px/1 Tajawal, sans-serif;
	color: var(--ink-2);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ash .ash-tab .ash-i {
	width: 15px;
	height: 15px;
}

.ash .ash-tab b {
	font: 700 11px/1 Tajawal, sans-serif;
	opacity: 0.7;
}

.ash .ash-tab:hover {
	color: var(--green-deep);
	background: #fff;
}

.ash .ash-tab[aria-selected="true"] {
	background: var(--green);
	color: #fff;
}

/* --------------------------------------------------------------- nawazil */

.ash .ash-naw {
	padding: 16px 18px 6px;
}

.ash .ash-naw .ash-mini {
	padding: 0;
}

.ash .ash-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line-soft);
}

.ash .ash-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font: 500 13px/1.2 Tajawal, sans-serif;
	color: var(--ink-2);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 7px 13px;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.ash .ash-chip b {
	font-size: 11px;
	opacity: 0.65;
}

.ash .ash-chip:hover {
	border-color: var(--green);
	color: var(--green-deep);
}

/* ------------------------------------------------------- research topics */

.ash .ash-topics {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 12px;
}

@container ashmain ( min-width: 520px ) {
	.ash .ash-topics {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@container ashmain ( min-width: 760px ) {
	.ash .ash-topics {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

.ash .ash-topic {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ash .ash-topic:hover,
.ash .ash-topic:focus-visible {
	color: inherit;
	border-color: var(--green);
	box-shadow: var(--lift);
	transform: translateY( -2px );
}

.ash .ash-topic-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--cream);
	color: var(--green);
	transition: background 0.2s ease, color 0.2s ease;
}

.ash .ash-topic-icon .ash-i {
	width: 22px;
	height: 22px;
}

.ash .ash-topic:hover .ash-topic-icon {
	background: var(--green);
	color: var(--gold-light);
}

.ash .ash-topic-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ash .ash-topic-name {
	font: 700 16px/1.45 Tajawal, sans-serif;
	color: var(--ink);
}

.ash .ash-topic-desc {
	font: 400 13.5px/1.75 Tajawal, sans-serif;
	color: var(--ink-2);
}

.ash .ash-topic-n {
	margin-top: auto;
	font: 700 12px/1 Tajawal, sans-serif;
	color: var(--gold);
}

/* ------------------------------------------------------ fatwa bab groups */

.ash .ash-groups {
	display: grid;
	gap: 16px;
}

.ash .ash-group {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.ash .ash-group-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.ash .ash-group-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--green);
	color: var(--gold-light);
}

.ash .ash-group-icon .ash-i {
	width: 20px;
	height: 20px;
}

.ash .ash-group-name {
	font: 700 17px/1.3 Tajawal, sans-serif;
	color: var(--ink);
}

.ash .ash-group-n {
	margin-inline-start: auto;
	font: 700 12px/1 Tajawal, sans-serif;
	color: var(--gold);
	background: var(--cream);
	border-radius: 999px;
	padding: 6px 11px;
}

.ash .ash-babs {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 190px, 1fr ) );
	gap: 8px;
}

.ash .ash-bab {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 11px 13px;
	border-radius: 10px;
	background: var(--paper);
	border: 1px solid var(--line-soft);
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ash .ash-bab:hover,
.ash .ash-bab:focus-visible {
	color: inherit;
	background: #fff;
	border-color: var(--green);
}

.ash .ash-bab-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.ash .ash-bab-name {
	font: 700 14px/1.5 Tajawal, sans-serif;
	color: var(--ink);
}

.ash .ash-bab:hover .ash-bab-name {
	color: var(--green);
}

.ash .ash-bab-n {
	flex: none;
	font: 700 11.5px/1 Tajawal, sans-serif;
	color: var(--gold);
}

.ash .ash-bab-subs {
	font: 400 12px/1.6 Tajawal, sans-serif;
	color: var(--faint);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

.ash .ash-index {
	scroll-margin-top: 90px;
}

.ash .ash-bab-desc {
	margin: -4px 0 14px;
	font: 400 14.5px/1.8 Tajawal, sans-serif;
	color: var(--ink-2);
}

.ash .ash-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 12px 18px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
}

.ash .ash-count {
	font: 400 13.5px/1.6 Tajawal, sans-serif;
	color: var(--faint);
}

.ash .ash-count b {
	font-weight: 700;
	color: var(--ink-2);
}

.ash .ash-active {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ash .ash-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px 6px 12px;
	border: 1px solid var(--green);
	border-radius: 999px;
	background: #fff;
	font: 600 12.5px/1 Tajawal, sans-serif;
	color: var(--green-deep);
	cursor: pointer;
}

.ash .ash-pill .ash-i {
	width: 13px;
	height: 13px;
	opacity: 0.7;
}

.ash .ash-pill:hover {
	background: var(--green);
	color: #fff;
}

.ash .ash-reset {
	margin-inline-start: auto;
	padding: 0;
	border: 0;
	background: none;
	font: 600 12.5px/1 Tajawal, sans-serif;
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ash .ash-reset:hover {
	background: none;
	color: var(--green-deep);
}

.ash .ash-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0 0 14px 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.ash .ash-row {
	margin: 0;
	border-bottom: 1px solid var(--line-soft);
}

.ash .ash-row.is-last {
	border-bottom: 0;
}

.ash .ash-row > a {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 17px 20px;
	color: inherit;
	transition: background 0.15s ease;
}

.ash .ash-row > a:hover,
.ash .ash-row > a:focus-visible {
	background: var(--paper);
	color: inherit;
}

.ash .ash-row-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ash .ash-row-title {
	font: 700 17px/1.55 Tajawal, sans-serif;
	color: var(--ink);
	transition: color 0.15s ease;
}

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

.ash .ash-row-dek {
	font: 400 15px/1.6 Tajawal, sans-serif;
	color: var(--gold);
}

.ash .ash-row-ex {
	font: 400 14px/1.8 Tajawal, sans-serif;
	color: var(--ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ash .ash-row-side {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	padding-top: 4px;
}

.ash .ash-tag {
	font: 700 11px/1 Tajawal, sans-serif;
	color: var(--gold);
	background: var(--cream);
	border-radius: 999px;
	padding: 5px 10px;
	white-space: nowrap;
}

.ash .ash-row-time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font: 500 12px/1 Tajawal, sans-serif;
	color: var(--faint);
	white-space: nowrap;
}

.ash .ash-row-time .ash-i {
	width: 13px;
	height: 13px;
}

@container ashmain ( max-width: 560px ) {
	.ash .ash-row > a {
		flex-direction: column;
		gap: 8px;
		padding: 15px 16px;
	}

	.ash .ash-row-side {
		flex-direction: row;
		align-items: center;
		padding-top: 0;
	}

	.ash .ash-row-title {
		font-size: 16px;
	}
}

.ash .ash-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 48px 20px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0 0 14px 14px;
	font: 400 16px/1.7 Tajawal, sans-serif;
	color: var(--ink);
}

.ash .ash-empty .ash-i {
	width: 30px;
	height: 30px;
	color: var(--line);
}

.ash .ash-empty-reset {
	font: 500 13px/1 Tajawal, sans-serif;
	color: var(--green-deep);
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
}

.ash .ash-empty-reset:hover {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.ash .ash-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 18px;
}

.ash .ash-page {
	min-width: 36px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font: 500 13px/1 Tajawal, sans-serif;
	color: var(--ink-2);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ash .ash-page:hover:not( [disabled] ):not( [aria-current="page"] ) {
	border-color: var(--green);
	background: #fff;
	color: var(--green-deep);
}

.ash .ash-page[aria-current="page"] {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
	font-weight: 700;
	cursor: default;
}

.ash .ash-page[disabled] {
	opacity: 0.4;
	cursor: default;
}

.ash .ash-gap {
	color: var(--faint);
	padding: 0 2px;
}

@keyframes ash-in {
	from {
		opacity: 0;
		transform: translateY( 6px );
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.ash .ash-list.is-turning .ash-row {
	animation: ash-in 0.3s ease both;
	animation-delay: calc( var( --i, 0 ) * 22ms );
}

/* The fatwa panel keeps its own look; it only loses the gap above it. */
.ash .as-fx-panel {
	margin-top: 0;
	border-radius: 14px;
}

/* ================================================================== books */

.ash .ash-books {
	margin-top: 48px;
}

.ash .ash-books-note {
	margin: -6px 0 16px;
	font: 400 14px/1.7 Tajawal, sans-serif;
	color: var(--faint);
}

.ash .ash-books-grid {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 18px 14px;
}

@container ashmain ( min-width: 620px ) {
	.ash .ash-books-grid {
		grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
	}
}

.ash .ash-book {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: inherit;
}

.ash .ash-book-cover {
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 8px;
	overflow: hidden;
	background: var(--cream);
	box-shadow: 0 6px 16px rgba( 20, 35, 28, 0.16 );
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ash .ash-book:hover .ash-book-cover {
	transform: translateY( -3px );
	box-shadow: 0 12px 24px rgba( 20, 35, 28, 0.22 );
}

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

.ash .ash-book:hover .ash-book-title {
	color: var(--green);
}

.ash .ash-book-st {
	align-self: flex-start;
	font: 700 10.5px/1 Tajawal, sans-serif;
	border-radius: 999px;
	padding: 4px 9px;
	color: var(--green-deep);
	background: #e3efe8;
}

.ash .ash-book-st.is-ready {
	color: var(--gold);
	background: var(--cream);
}

.ash .ash-book-st.is-work {
	color: var(--faint);
	background: var(--line-soft);
}

/* ============================================== drawer, below desktop */

@media ( max-width: 1024px ) {
	.ash .ash-open {
		display: inline-flex;
	}

	.ash .ash-side {
		position: fixed;
		top: 0;
		bottom: 0;
		right: 0;
		z-index: 100001;
		width: min( 88vw, 380px );
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--paper);
		box-shadow: -12px 0 40px rgba( 20, 35, 28, 0.2 );
		transform: translateX( 105% );
		visibility: hidden;
		transition: transform 0.3s ease, visibility 0s linear 0.3s;
	}

	.ash.is-open .ash-side {
		transform: none;
		visibility: visible;
		transition: transform 0.3s ease;
	}

	.ash .ash-side-in {
		min-height: 100%;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 18px 18px 32px;
	}

	.ash .ash-side-top {
		display: flex;
	}

	.ash .ash-scrim {
		position: fixed;
		inset: 0;
		z-index: 100000;
		background: rgba( 20, 35, 28, 0.45 );
	}
}

@media ( min-width: 1025px ) {
	.ash .ash-side {
		position: sticky;
		top: 24px;
		max-height: calc( 100vh - 48px );
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: var(--line) transparent;
	}

	.ash .ash-scrim {
		display: none !important;
	}
}

html.ash-lock,
html.ash-lock body {
	overflow: hidden;
}

@media ( max-width: 600px ) {
	.ash .ash-home {
		gap: 32px;
	}

	.ash .ash-sec-head .ash-sec-title {
		font-size: 19px;
	}

	.ash .ash-feature {
		min-height: 0;
	}

	.ash .ash-babs {
		grid-template-columns: minmax( 0, 1fr );
	}

	.ash .ash-tabs {
		width: 100%;
	}

	.ash .ash-tab {
		flex: 1 1 auto;
		justify-content: center;
	}
}

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

@media print {
	.ash .ash-side,
	.ash .ash-open,
	.ash .ash-home,
	.ash .ash-pager,
	.ash .ash-books {
		display: none !important;
	}
}
