/*
 * The Muslim.Blue shop (muslim-blue-core Shop\Front, PHASE-SHOP2-DESIGN). Loaded after the family's stylesheet and the
 * network's (network.css), and built only from their tokens (--mbn-*, --mc-*), so light and dark follow them. Phone
 * first: one column at 390 pixels with the 16 pixel gutter; cards go two across from 40rem and three from 64rem.
 * Targets are 44 pixels (48 for a primary button and a field), nothing a person reads is under 14 pixels.
 */

/* ---- The drawing (Shop\Art): flat family colors, no words ---- */
.mbsh-art {
	display: block;
	inline-size: 100%;
	block-size: 100%;
}
.mbsh-art__bg { fill: var(--mc-tint, #e2eeff); }
.mbsh-art__dot { fill: var(--mc-blue-300, #a3c6fc); opacity: 0.55; }
.mbsh-art__d { fill: var(--mc-blue-400, #729de0); opacity: 0.5; }
.mbsh-art__a { fill: var(--mc-accent, #1b4f9c); }
.mbsh-art__b { fill: var(--mc-blue-800, #002760); }
.mbsh-art__shade { fill: var(--mc-blue-900, #001742); opacity: 0.16; }
.mbsh-art__line { fill: var(--mc-blue-100, #e2eeff); opacity: 0.9; }
.mbsh-art__page { fill: var(--mc-paper, #fbfaf7); }
.mbsh-art__tag { fill: var(--mc-blue-200, #c9defe); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .mbsh-art__dot { fill: var(--mc-blue-700, #0a3a7f); opacity: 0.8; }
	:root:not([data-theme="light"]) .mbsh-art__d { fill: var(--mc-blue-600, #1b4f9c); opacity: 0.7; }
	:root:not([data-theme="light"]) .mbsh-art__a { fill: var(--mc-blue-500, #4576c0); }
	:root:not([data-theme="light"]) .mbsh-art__b { fill: var(--mc-blue-300, #a3c6fc); }
	:root:not([data-theme="light"]) .mbsh-art__line { fill: var(--mc-blue-900, #001742); }
	:root:not([data-theme="light"]) .mbsh-art__page { fill: var(--mc-blue-100, #e2eeff); }
}
:root[data-theme="dark"] .mbsh-art__dot { fill: var(--mc-blue-700, #0a3a7f); opacity: 0.8; }
:root[data-theme="dark"] .mbsh-art__d { fill: var(--mc-blue-600, #1b4f9c); opacity: 0.7; }
:root[data-theme="dark"] .mbsh-art__a { fill: var(--mc-blue-500, #4576c0); }
:root[data-theme="dark"] .mbsh-art__b { fill: var(--mc-blue-300, #a3c6fc); }
:root[data-theme="dark"] .mbsh-art__line { fill: var(--mc-blue-900, #001742); }
:root[data-theme="dark"] .mbsh-art__page { fill: var(--mc-blue-100, #e2eeff); }

.mbsh-photo {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}
/* Each picture box keeps its own shape (aspect-ratio) and the drawing or photo fills it, centered and cropped. */
.mbsh-card__art,
.mbsh-figure,
.mbsh-line__art {
	position: relative;
}
.mbsh-card__art > .mbsh-art,
.mbsh-card__art > .mbsh-photo,
.mbsh-figure > .mbsh-art,
.mbsh-figure > .mbsh-photo,
.mbsh-line__art > .mbsh-art,
.mbsh-line__art > .mbsh-photo {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
}

/* ---- The grid of products ---- */
.mbsh-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 40rem) {
	.mbsh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
	.mbsh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
.mbsh-card {
	margin: 0;
}
.mbsh-card > article {
	position: relative;
	display: flex;
	flex-direction: column;
	block-size: 100%;
	overflow: hidden;
	background: var(--mbn-surface);
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius);
	box-shadow: var(--mbn-shadow);
}
.mbsh-card__art {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--mbn-accent-soft);
}
@media (min-width: 40rem) {
	.mbsh-card__art { aspect-ratio: 4 / 3; }
}
.mbsh-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem var(--mbn-gutter) 1.1rem;
}
.mbsh-card__name {
	margin: 0;
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	line-height: 1.25;
}
.mbsh-card__name a {
	color: var(--mbn-ink);
	text-decoration: none;
}
/* The whole card is the link's target (the name stays the one link a screen reader hears). */
.mbsh-card__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.mbsh-card__name a:hover,
.mbsh-card__name a:focus-visible {
	text-decoration: underline;
}
.mbsh-card > article:focus-within {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
}
.mbsh-card__name a:focus-visible {
	outline: none;
}
.mbsh-card__in {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}
.mbsh-card__in li + li {
	margin-block-start: 0.15rem;
}
.mbsh-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.6rem;
	margin: auto 0 0;
	padding-block-start: 0.4rem;
}
.mbsh-card__ship {
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}
.mbsh-price {
	font-family: var(--mbn-display);
	font-size: 1.375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.mbsh-price--big {
	font-size: 2rem;
}
.mbsh-tag {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border: 1px solid var(--mbn-line);
	border-radius: 999px;
	background: var(--mbn-surface-2);
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-xs);
	font-weight: 700;
	letter-spacing: 0.01em;
}
.mbsh-tag--out {
	border-color: var(--mbn-warn);
	background: var(--mbn-warn-soft);
	color: var(--mbn-ink);
}

/* ---- One product: the picture first on a phone, beside the words from 60rem ---- */
.mbsh-figure {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius);
	background: var(--mbn-accent-soft);
}
@media (max-width: 59.99rem) {
	.mbn .mbsh-hero.mbn-hero--split .mbn-hero__in {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}
	.mbn .mbsh-hero .mbn-hero__aside {
		order: -1;
	}
}
.mbsh-buybox {
	margin-block-start: 1rem;
}
.mbsh-buybox > p {
	margin: 0 0 0.75rem;
}
.mbsh-buy__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.75rem;
}
.mbsh-buy {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
}
.mbsh-buy p {
	margin: 0;
}
.mbsh-in li + li {
	margin-block-start: 0.25rem;
}

/* ---- Fields the network's form styles do not cover ---- */
.mbsh-field {
	margin: 0 0 1rem;
}
.mbsh-field label,
.mbsh-form legend {
	display: block;
	margin-block-end: 0.35rem;
	font-weight: 600;
}
.mbsh-form fieldset {
	margin: 0 0 0.5rem;
	padding: 0;
	border: 0;
}
.mbsh-form legend {
	margin-block-end: 0.75rem;
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
}
.mbn-form select,
.mbsh-field select,
.mbsh-field input[type="number"],
.mbsh-field input[type="text"],
.mbsh-field input[type="email"] {
	inline-size: 100%;
	max-inline-size: 30rem;
	min-block-size: var(--mbn-field-h);
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--mbn-field);
	border-radius: 10px;
	background: var(--mbn-surface);
	color: var(--mbn-ink);
	font: inherit;
}
.mbsh-field--qty input[type="number"] {
	inline-size: 6.5rem;
}
.mbsh-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 1rem;
}
@media (min-width: 30rem) {
	.mbsh-pair { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.mbn-form input:focus-visible,
.mbn-form select:focus-visible,
.mbsh-field input:focus-visible,
.mbsh-field select:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 1px;
}
.mbsh-field input[aria-invalid="true"],
.mbsh-field select[aria-invalid="true"] {
	border-color: var(--mbn-bad);
	border-width: 2px;
}
.mbsh-err {
	display: block;
	margin-block-start: 0.3rem;
	color: var(--mbn-bad);
	font-weight: 600;
	font-size: var(--mbn-text-sm);
}
.mbsh-opt {
	color: var(--mbn-ink-soft);
	font-weight: 400;
}
.mbsh-small {
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}
.mbsh-field .mbsh-small {
	display: block;
	margin-block-start: 0.3rem;
}
.mbsh-consent {
	max-inline-size: 40rem;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}

/* ---- Notes ---- */
.mbsh-note {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--mbn-line);
	border-inline-start-width: 4px;
	border-radius: 10px;
	background: var(--mbn-surface);
}
.mbsh-note p {
	margin: 0;
}
.mbsh-note ul {
	margin: 0.4rem 0 0;
}
.mbsh-note--good {
	border-inline-start-color: var(--mbn-accent);
}
.mbsh-note--info {
	border-inline-start-color: var(--mbn-field);
}
.mbsh-note--bad {
	border-color: var(--mbn-bad);
	background: var(--mbn-bad-soft);
}

/* ---- The cart ---- */
.mbsh-cartlink {
	margin: 1rem 0 0;
}
.mbsh-cart {
	max-inline-size: 48rem;
}
.mbsh-lines {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	border-block-start: 1px solid var(--mbn-line);
}
.mbsh-line {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
	grid-template-areas:
		"art what total"
		"art qty remove";
	align-items: center;
	gap: 0.5rem 0.9rem;
	padding: 0.9rem 0;
	border-block-end: 1px solid var(--mbn-line);
}
.mbsh-line > p {
	margin: 0;
}
.mbsh-line__art {
	grid-area: art;
	align-self: start;
	inline-size: 4.5rem;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--mbn-accent-soft);
}
.mbsh-line__art .mbsh-art,
.mbsh-line__art .mbsh-photo {
	block-size: 100%;
}
.mbsh-line__what {
	grid-area: what;
	min-inline-size: 0;
}
.mbsh-line__name {
	display: block;
	color: var(--mbn-ink);
	font-weight: 700;
}
.mbsh-line__each {
	display: block;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}
.mbsh-line__qty {
	grid-area: qty;
}
.mbsh-line__qty label {
	margin-block-end: 0.2rem;
	font-size: var(--mbn-text-sm);
}
.mbsh-line__qty input[type="number"] {
	inline-size: 6rem;
}
.mbsh-line__total {
	grid-area: total;
	font-weight: 700;
	text-align: end;
	white-space: nowrap;
}
.mbsh-line__remove {
	grid-area: remove;
	text-align: end;
}
.mbsh-link {
	min-block-size: var(--mbn-target);
	padding: 0.5rem 0.25rem;
	border: 0;
	background: none;
	color: var(--mbn-accent);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.mbsh-link:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
}

.mbn-form fieldset.mbsh-addon {
	margin: 0 0 1.25rem;
	padding: 1rem var(--mbn-gutter);
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius);
	background: var(--mbn-surface);
}
/* The legend floats inside the box, so it reads as the box's title on every engine. */
.mbsh-addon legend {
	float: left;
	inline-size: 100%;
	margin: 0 0 0.5rem;
	padding: 0;
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	font-weight: 600;
}
.mbsh-addon legend + *,
.mbsh-addon__choice {
	clear: both;
}
.mbsh-addon__choice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}
.mbsh-addon__choice input[type="checkbox"] {
	flex: none;
	inline-size: 1.5rem;
	block-size: 1.5rem;
	margin: 0.6rem 0 0;
	accent-color: var(--mbn-accent);
}
.mbsh-addon__choice label {
	display: block;
	padding-block: 0.55rem;
	font-weight: 700;
	cursor: pointer;
}
.mbsh-addon__words {
	margin: 0.25rem 0 0 2.25rem;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}

.mbsh-totals {
	margin: 0 0 0.75rem;
	padding: 0;
	max-inline-size: 26rem;
}
.mbsh-totals > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
	border-block-end: 1px solid var(--mbn-line);
}
.mbsh-totals dt,
.mbsh-totals dd {
	margin: 0;
}
.mbsh-totals dd {
	text-align: end;
	white-space: nowrap;
}
.mbsh-totals__all {
	font-weight: 700;
	font-size: var(--mbn-text-lg);
}
.mbsh-totals--order {
	max-inline-size: 32rem;
	margin-block-end: 1.25rem;
}
.mbsh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0 0.5rem;
}
.mbsh-actions .mbn-button {
	flex: 0 1 auto;
	min-inline-size: 10rem;
}

/* ---- Free copies and the opening list ---- */
.mbsh-free h2,
.mbsh-notify h2 {
	margin-block-start: 0;
}
.mbsh-notify {
	max-inline-size: 40rem;
	margin-block-start: 1.5rem;
}
.mbsh-request {
	max-inline-size: 36rem;
}
.mbsh-fine {
	margin-block-start: 2rem;
}

/* ---- The Quran program (Shop\Quran\Front, PHASE-QURAN-DESIGN): the ways, the gift form, the code ---- */
.mbq-through {
	margin: 0.25rem 0 0;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}
.mbq-ways fieldset,
.mbq-gift fieldset {
	display: grid;
	gap: 0.75rem;
}
.mbq-way {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	min-block-size: 48px;
	padding: 0.85rem 1rem;
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius, 12px);
	background: var(--mbn-surface);
	cursor: pointer;
}
.mbq-way:has(input:checked) {
	border-color: var(--mbn-accent);
	box-shadow: inset 0 0 0 1px var(--mbn-accent);
}
.mbq-way--quiet {
	border-style: dashed;
}
.mbq-way input[type="radio"] {
	flex: none;
	inline-size: 1.25rem;
	block-size: 1.25rem;
	margin: 0.15rem 0 0;
	accent-color: var(--mbn-accent);
}
.mbq-way input:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
}
.mbq-way__text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-inline-size: 0;
}
.mbq-way__text span {
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}
.mbq-check {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.6rem;
	align-items: start;
	margin: 0.5rem 0 1rem;
}
.mbq-check input[type="checkbox"] {
	inline-size: 1.25rem;
	block-size: 1.25rem;
	margin: 0.15rem 0 0;
	accent-color: var(--mbn-accent);
}
.mbq-check .mbsh-small {
	grid-column: 2;
}
.mbq-qr08 {
	max-inline-size: 40rem;
	padding: 0.75rem 1rem;
	border-inline-start: 3px solid var(--mbn-accent);
	background: var(--mbn-accent-soft);
	color: var(--mbn-ink);
	font-size: var(--mbn-text-sm);
}
.mbq-count {
	margin: 0.5rem 0 0;
	font-size: var(--mbn-text-lg);
}
.mbq-count strong {
	font-family: var(--mbn-display);
}
.mbq-code {
	display: inline-block;
	margin: 0.25rem 0 0.75rem;
	padding: 0.5rem 1rem;
	border: 2px dashed var(--mbn-accent);
	border-radius: 10px;
	font-family: var(--mbn-display);
	font-size: 1.6rem;
	letter-spacing: 0.06em;
}
.mbq-business {
	margin: 0 0 1rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius, 12px);
}
.mbq-business summary {
	min-block-size: 44px;
	display: flex;
	align-items: center;
	cursor: pointer;
	font-weight: 600;
}
.mbsh-field input[type="tel"] {
	inline-size: 100%;
	max-inline-size: 30rem;
	min-block-size: var(--mbn-field-h);
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--mbn-field);
	border-radius: 10px;
	background: var(--mbn-surface);
	color: var(--mbn-ink);
	font: inherit;
}
.mbsh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ---- Phase Quran 2 (PHASE-QURAN2-DESIGN section 4): the pages he sees first. Calm, warm, one product. ---- */

/* The pocket Quran above the heading (review round 1): inline, 96 px on a phone and 120 px from 48rem, 16 px above the
   H1, never at the foot of the page. Dressed in Blue's own tokens, so it follows light and dark with the page. */
.mbq-hero-art {
	--mbq-ink: var(--mbn-ink);
	--mbq-paper: var(--mbn-surface);
	--mbq-accent: var(--mbn-accent);
	--mbq-cover: var(--mc-blue-800, #0b2550);
	--mbq-gilt: #d6bd7c;
	/* The niche in the page's soft blue, so it reads on the paper. */
	--mbq-paper: var(--mbn-accent-soft);
	inline-size: 96px;
	margin: 0 0 16px;
}
@media (min-width: 48rem) {
	.mbq-hero-art {
		inline-size: 120px;
	}
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .mbq-hero-art {
		--mbq-cover: #2c5aa6;
		--mbq-edge: rgba(255, 255, 255, 0.3);
	}
}
:root[data-theme="dark"] .mbq-hero-art {
	--mbq-cover: #2c5aa6;
	--mbq-edge: rgba(255, 255, 255, 0.3);
}

/* The ZIP code and its button on one line when they fit. */
.mbq-zip {
	max-inline-size: 36rem;
	margin-block-end: 1.25rem;
}
.mbq-zip__row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.625rem;
}
.mbq-zip__row input[type="text"] {
	flex: 1 1 8rem;
	max-inline-size: 11rem;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}
.mbq-zip__row .mbn-button {
	flex: 1 1 auto;
	max-inline-size: 16rem;
}
.mbq-zip__field .mbsh-small {
	margin-block-start: 0.45rem;
}

/* The three ways: cards that say which one is chosen by their border and a soft ground. */
.mbq-ways {
	max-inline-size: 40rem;
}
.mbq-ways legend,
.mbq-gift legend {
	margin-block-end: 0.85rem;
}
.mbq-way {
	gap: 0.85rem;
	padding: 1rem 1.1rem;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mbq-way:hover {
	border-color: var(--mbn-field);
}
.mbq-way:has(input:checked) {
	background: var(--mbn-accent-soft);
}
.mbq-way input[type="radio"] {
	margin-block-start: 0.2rem;
}
.mbq-way__text strong {
	font-size: var(--mbn-text-md);
	line-height: 1.35;
}
.mbq-way--mailed .mbq-way__text strong {
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	font-weight: 600;
	font-variant-numeric: lining-nums;
}
.mbq-way__text span,
.mbq-ship {
	line-height: 1.5;
}
/* The ship promise: one quiet line, muted and small, never bold. */
.mbq-ship {
	display: block;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
	font-weight: 400;
}
.mbq-way__text .mbq-ship {
	margin-block-start: 0.1rem;
}
.mbq-price .mbq-ship {
	margin-block-start: 0.2rem;
}
.mbq-way--quiet {
	background: transparent;
}
.mbq-next {
	margin-block-start: 1.25rem;
}
.mbq-next .mbn-button,
.mbq-pay__go .mbn-button {
	inline-size: 100%;
}
@media (min-width: 30rem) {
	.mbq-next .mbn-button,
	.mbq-pay__go .mbn-button {
		inline-size: auto;
		min-inline-size: 12rem;
	}
}

/* Questions: plain answers, one tap each. */
.mbq-faq {
	max-inline-size: 40rem;
	margin-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.mbq-faq h2 {
	margin: 0 0 0.5rem;
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
}
.mbq-faq__item {
	border-block-start: 1px solid var(--mbn-line);
}
.mbq-faq__item:last-child {
	border-block-end: 1px solid var(--mbn-line);
}
.mbq-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-block-size: 52px;
	padding-block: 0.6rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.mbq-faq__item summary::-webkit-details-marker {
	display: none;
}
.mbq-faq__item summary::after {
	content: "";
	flex: none;
	inline-size: 0.6rem;
	block-size: 0.6rem;
	margin-inline-end: 0.3rem;
	border-inline-end: 2px solid var(--mbn-ink-soft);
	border-block-end: 2px solid var(--mbn-ink-soft);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.15s ease;
}
.mbq-faq__item[open] summary::after {
	transform: rotate(225deg) translate(-2px, -2px);
}
.mbq-faq__item summary:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
}
.mbq-faq__item p {
	margin: 0 0 1rem;
	max-inline-size: 36rem;
	color: var(--mbn-ink-soft);
}

/* Gift a Quran: the copies two across from 40rem, the card lines in the card's own serif, and one panel that holds
   QR08 and the button together. */
.mbq-gift {
	max-inline-size: 44rem;
}
.mbq-gift fieldset {
	margin-block-end: 1.5rem;
}
@media (min-width: 40rem) {
	.mbq-gift .mbq-picks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.mbq-gift .mbq-picks legend {
		grid-column: 1 / -1;
	}
}
.mbq-cardline {
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	font-weight: 500;
}
.mbq-count {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	color: var(--mbn-ink-soft);
}
.mbq-count strong {
	color: var(--mbn-ink);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: lining-nums;
}
.mbq-pay {
	display: grid;
	gap: 0.85rem;
	margin-block-start: 0.5rem;
	padding: 1.1rem var(--mbn-gutter) 1.25rem;
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius, 12px);
	background: var(--mbn-surface);
}
.mbq-pay > p {
	margin: 0;
}
.mbq-pay .mbq-qr08 {
	max-inline-size: 36rem;
}
/* On the Quran pages every sentence is read at body size (the floor's 17 and 18 px): QR08 above all. */
.mbq-qr08,
.mbq-gift p.mbsh-small,
.mbsh-request p.mbsh-small,
.mbsh-request .mbsh-consent {
	font-size: var(--mbn-text-md);
}
.mbq-qr08 {
	max-inline-size: 36rem;
	line-height: 1.55;
}
/* A checkbox's words are its 44 px target. */
.mbq-check label {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	cursor: pointer;
}
.mbq-check input[type="checkbox"] {
	margin-block-start: 0.7rem;
}
.mbq-business summary:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
}

/* Done and thank-you pages. */
.mbq-done {
	max-inline-size: 40rem;
}
.mbq-done > p {
	font-size: var(--mbn-text-md);
}
.mbq-after {
	margin-block-start: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.mbq-way,
	.mbq-faq__item summary::after {
		transition: none;
	}
}

/* ---- A partner's monthly statement (Shop\Quran\Statements::render_html, classes qst-): a clean, printable page ---- */
.qst {
	max-inline-size: 44rem;
	padding: clamp(1.1rem, 0.8rem + 1.5vw, 2rem);
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius, 12px);
	background: var(--mbn-surface);
	color: var(--mbn-ink);
}
.qst-head {
	display: grid;
	gap: 0.2rem;
	padding-block-end: 1rem;
	border-block-end: 1px solid var(--mbn-line);
}
.qst-head > * {
	margin: 0;
}
.qst-from {
	color: var(--mbn-accent);
	font-size: var(--mbn-text-md);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.qst-title {
	font-family: var(--mbn-display);
	font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
	line-height: 1.25;
}
.qst-month {
	color: var(--mbn-ink-soft);
}
.qst-head .qst-example {
	justify-self: start;
	margin-block-start: 0.35rem;
	padding: 0.1rem 0.7rem;
	border: 1px dashed var(--mbn-field);
	border-radius: 999px;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-md);
}
.qst-due {
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	border-inline-start: 4px solid var(--mbn-accent);
	border-radius: 8px;
	background: var(--mbn-accent-soft);
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	line-height: 1.35;
}
.qst--partner-pays .qst-due {
	border-inline-start-color: var(--mbn-warn, #8a5a12);
	background: var(--mbn-warn-soft, #f6ecd9);
}
.qst-summary {
	display: grid;
	margin: 0;
}
.qst-pair {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-block-end: 1px solid var(--mbn-line);
}
.qst-pair dt,
.qst-pair dd {
	margin: 0;
}
.qst-pair dd {
	font-variant-numeric: lining-nums;
	font-weight: 600;
	text-align: end;
	white-space: nowrap;
}
.qst-pair:last-child {
	border-block-end: 0;
}
.qst-settled {
	margin: 0.85rem 0 0;
	padding-inline-start: 1.2rem;
	color: var(--mbn-ink-soft);
}
.qst-h3 {
	margin: 1.5rem 0 0.5rem;
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-md);
}
.qst-lines {
	max-inline-size: 100%;
	overflow-x: auto;
}
.qst-table {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: var(--mbn-text-sm);
}
.qst-caption {
	padding: 0 0 0.5rem;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-xs);
	text-align: start;
	caption-side: top;
}
.qst-table th,
.qst-table td {
	padding: 0.5rem 0.4rem;
	border-block-end: 1px solid var(--mbn-line);
	text-align: start;
	vertical-align: top;
}
.qst-table td:first-child {
	white-space: nowrap;
}
.qst-table thead th {
	color: var(--mbn-ink-soft);
	font-weight: 600;
}
.qst-num {
	text-align: end !important;
	font-variant-numeric: lining-nums;
	white-space: nowrap;
}
.qst-foot {
	margin-block-start: 1.25rem;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--mbn-line);
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-md);
}
.qst-foot p {
	margin: 0;
}
@media print {
	.qst {
		max-inline-size: none;
		border: 0;
		padding: 0;
	}
	.qst-due {
		background: none;
	}
}
/* The statement page around it (Statements::respond). */
.qst-note {
	max-inline-size: 44rem;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--mbn-line);
	border-inline-start: 4px solid var(--mbn-accent);
	border-radius: 10px;
	background: var(--mbn-surface);
}
.qst-pay {
	display: grid;
	gap: 0.6rem;
	max-inline-size: 44rem;
	margin: 1.25rem 0 0;
	padding: 1rem var(--mbn-gutter) 1.15rem;
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius, 12px);
	background: var(--mbn-surface);
}
.qst-pay form,
.qst-pay p {
	margin: 0;
}
.qst-pay-button {
	inline-size: 100%;
}
@media (min-width: 30rem) {
	.qst-pay-button {
		inline-size: auto;
	}
}
.qst-says {
	color: var(--mbn-ink-soft);
}

/* The network's form labels are blocks; a way's label is a row: its radio beside its words. */
.mbn-form label.mbq-way {
	display: flex;
	margin: 0;
	font-weight: 400;
}
.mbn-form .mbq-check label {
	display: inline-flex;
	margin: 0;
}
/* The Quran pages' opening stays short, so the first choice is on the first screen. */
.mbn .mbq-hero.mbn-hero--paper {
	padding-block-end: clamp(1rem, 0.75rem + 1vw, 1.75rem);
}


/* ---- Phase Quran 2, review round 1: one centered column, one rhythm, three equal choices ---- */
/* Every Quran page (Front::page) is one 720 px column, crumbs, opening and body alike, centered on any width. */
main:has(.mbq-hero) .mbn-wrap {
	max-width: calc(720px + 2 * var(--mbn-gutter));
}
.mbq-col {
	max-inline-size: 720px;
}
/* ~32 px from the opening to the first field; 12 to 16 px from the H1 to its words. */
.mbn .mbq-hero.mbn-hero--paper {
	padding-block: 12px 12px;
}
main:has(.mbq-hero) .mbn-body {
	padding-block-start: 6px;
}
.mbq-hero .mbn-lead {
	margin-block-start: 14px;
}
.mbq-hero .mbn-lead + .mbq-through,
.mbq-hero .mbn-lead + .mbq-count {
	margin-block-start: 8px;
}
.mbq-recap {
	color: var(--mbn-ink-soft);
}
/* The three ways read as equals: the same serif title; their order and the chosen border carry the weight. */
.mbq-way__text strong,
.mbq-way--mailed .mbq-way__text strong {
	font-family: var(--mbn-display);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
}
.mbq-way--quiet {
	border-style: solid;
	border-color: var(--mbn-line);
	background: var(--mbn-surface);
}
.mbq-way--quiet:has(input:checked) {
	border-color: var(--mbn-accent);
	background: var(--mbn-accent-soft);
}
/* Gift a Quran: 1, 3 and 10 copies in one row; monthly and business full width below. */
.mbq-gift .mbq-picks {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
}
.mbq-gift .mbq-picks legend,
.mbq-gift .mbq-picks .mbq-way--wide,
.mbq-gift .mbq-picks .mbq-business,
.mbq-gift .mbq-picks .mbsh-err {
	grid-column: 1 / -1;
}
.mbn-form label.mbq-way--copies {
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.85rem 0.85rem 0.9rem;
}
.mbq-way--copies .mbq-way__text strong {
	font-size: 1.0625rem;
}
@media (min-width: 30rem) {
	.mbq-way--copies .mbq-way__text strong {
		font-size: 1.1875rem;
	}
}
/* The business fields show only while the business gift is chosen (no script). */
.mbq-business {
	display: none;
	margin: 0;
	padding: 1rem var(--mbn-gutter) 0.25rem;
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius, 12px);
	background: var(--mbn-surface);
}
.mbq-gift:has(#mbq-g-business:checked) .mbq-business {
	display: block;
}
.mbq-business__note {
	margin: 0 0 0.75rem;
	color: var(--mbn-ink-soft);
}
/* The gift's last step, flat: the leftover line, QR08 in its callout, the button. */
.mbq-pay {
	padding: 0;
	border: 0;
	background: transparent;
}
/* Mailed step 2: the price line in the serif. */
.mbq-price strong {
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	font-weight: 600;
}
/* Done pages: the pickup code large and calm; one real next step. */
.mbq-code {
	display: inline-block;
	margin: 0.25rem 0 1rem;
	padding: 0.4rem 1.1rem;
	border: 1.5px solid var(--mbn-accent);
	border-radius: 10px;
	font-family: var(--mbn-display);
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums lining-nums;
}
.mbq-act {
	margin: 1.25rem 0 0;
}
.mbq-act + .mbq-qr08 {
	margin-block-start: 0.75rem;
}
.mbq-quietlink {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	color: var(--mbn-accent);
	font-weight: 600;
}
.mbq-summary:focus {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
}
/* Submit buttons full width on a phone. */
.mbsh-request .mbn-button[type="submit"],
.mbq-gift .mbn-button[type="submit"],
.mbq-col form .mbn-button[type="submit"]:not(.mbn-button--quiet) {
	inline-size: 100%;
}
@media (min-width: 30rem) {
	.mbsh-request .mbn-button[type="submit"],
	.mbq-gift .mbn-button[type="submit"],
	.mbq-col form .mbn-button[type="submit"]:not(.mbn-button--quiet) {
		inline-size: auto;
		min-inline-size: 12rem;
	}
}

/* ---- Statements at a phone's width (review round 1): each line a stacked row ---- */
.qst-table th,
.qst-table td {
	word-break: normal;
	overflow-wrap: normal;
}
.qst-owes-you,
.qst-you-owe {
	white-space: nowrap;
}
@media (max-width: 37.49rem) {
	.qst-table thead {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
	.qst-table,
	.qst-table tbody,
	.qst-table tr,
	.qst-table td {
		display: block;
	}
	.qst-table tr.qst-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "date date" "what what" "copies amount";
		column-gap: 1rem;
		padding: 0.6rem 0;
		border-block-end: 1px solid var(--mbn-line);
	}
	.qst-table td {
		padding: 0;
		border: 0;
	}
	.qst-table td.qst-date {
		grid-area: date;
		color: var(--mbn-ink-soft);
		font-size: var(--mbn-text-xs);
	}
	.qst-table td.qst-what {
		grid-area: what;
	}
	.qst-table td.qst-copies {
		grid-area: copies;
		text-align: start !important;
		color: var(--mbn-ink-soft);
	}
	.qst-table td.qst-copies:not(:empty)::after {
		content: " copies";
	}
	.qst-table td.qst-owes-you,
	.qst-table td.qst-you-owe {
		grid-area: amount;
		font-weight: 600;
	}
	.qst-table td.qst-owes-you:empty,
	.qst-table td.qst-you-owe:empty {
		display: none;
	}
	.qst-table td.qst-owes-you:not(:empty)::before {
		content: "Muslim.Blue owes you ";
		color: var(--mbn-ink-soft);
		font-weight: 400;
	}
	.qst-table td.qst-you-owe:not(:empty)::before {
		content: "You owe ";
		color: var(--mbn-ink-soft);
		font-weight: 400;
	}
	.qst-pair {
		flex-wrap: wrap;
	}
}
.qst-headline {
	margin: 1rem 0;
}
.qst-headline .qst-due {
	margin: 0;
}
.qst-dueline {
	margin: 0.5rem 0 0;
}
.qst-paylink {
	font-weight: 600;
}


/* ---- Phase Quran 2, review round 2 ---- */
/* Question titles on the column's edge (no browser legend inset). */
.mbq-col legend {
	margin-inline: 0;
	padding-inline: 0;
}
/* Titles break in balanced lines ("near you" stays together). */
.mbq-way__text strong {
	text-wrap: balance;
}
/* Drawn radios and checkboxes in the palette, light and dark: a ring in the text's color, filled when chosen. */
.mbq-col .mbq-way input[type="radio"],
.mbq-col .mbq-check input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	inline-size: 20px;
	block-size: 20px;
	margin: 2px 0 0;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: var(--mbn-ink);
	cursor: pointer;
}
.mbq-col .mbq-check input[type="checkbox"] {
	border-radius: 5px;
	margin-block-start: 0.75rem;
}
.mbq-col .mbq-way input[type="radio"]:checked {
	border-color: var(--mbn-accent);
	background: radial-gradient(circle, var(--mbn-accent) 0 42%, transparent 46%);
}
.mbq-col .mbq-check input[type="checkbox"]:checked {
	border-color: var(--mbn-accent);
	background: var(--mbn-accent);
	box-shadow: inset 0 0 0 3px var(--mbn-surface);
}
.mbq-col .mbq-way input[type="radio"]:focus-visible,
.mbq-col .mbq-check input[type="checkbox"]:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
}
/* The copies tiles stack their radio only on a phone; from 30rem it sits beside the words as in the wide rows. */
@media (min-width: 30rem) {
	.mbn-form label.mbq-way--copies {
		flex-direction: row;
		gap: 0.75rem;
		padding: 1rem 1.1rem;
	}
}
/* Payment not switched on: the real button, switched off, the reason beside it. */
.mbq-pay__go--off {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}
.mbq-pay__go--off .mbn-button[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}
.mbq-pay__off {
	color: var(--mbn-ink-soft);
}
.mbq-nb {
	white-space: nowrap;
}
.mbq-way__text span,
.mbq-done > p,
.mbn-lead {
	text-wrap: pretty;
}


/* ---- Phase Quran Kits (PHASE-QURAN-KITS-DESIGN): the order on the mailed step, and "Or make it a kit" ---- */
/* The form's keyboard default (Enter in a count updates the total): out of sight and out of the tab order. */
.mbq-order-form .mbq-enter {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}
/* The network holds list items and paragraphs to a reading measure; the order's rows and the kit cards are layout. */
.mbn-main .mbq-line,
.mbn-main .mbq-kit,
.mbn-main .mbq-order__acts,
.mbn-main .mbq-kits__lead + .mbq-kitlist {
	max-inline-size: none;
}
/* Your order: a quiet document on the paper, lines over hairlines, the total in the serif. */
.mbq-order {
	margin: 0 0 1.5rem;
	padding: 1.1rem var(--mbn-gutter) 0.6rem;
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius, 12px);
	background: var(--mbn-surface);
}
.mbq-order__h,
.mbq-kits__h {
	margin: 0 0 0.5rem;
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	font-weight: 600;
	line-height: 1.3;
}
.mbq-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}
.mbq-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "what what" "qty sum";
	align-items: end;
	gap: 0.5rem 1rem;
	padding: 0.85rem 0;
	border-block-end: 1px solid var(--mbn-line);
}
.mbq-line__what {
	grid-area: what;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
}
.mbq-line__name {
	font-family: var(--mbn-display);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
	text-wrap: balance;
}
.mbq-line__each {
	color: var(--mbn-ink-soft);
}
.mbq-line__qty {
	grid-area: qty;
	margin: 0;
}
.mbq-line__qty input[type="number"] {
	inline-size: 6.5rem;
}
.mbq-line__qty .mbsh-small {
	display: block;
	margin-block-start: 0.35rem;
}
.mbq-line__sum {
	grid-area: sum;
	align-self: start;
	padding-block-start: 2.35rem;
	font-weight: 600;
	font-variant-numeric: lining-nums;
	text-align: end;
	white-space: nowrap;
}
@media (min-width: 40rem) {
	.mbq-line {
		grid-template-columns: minmax(0, 1fr) 10.5rem 6.5rem;
		grid-template-areas: "what qty sum";
		align-items: start;
	}
}
.mbq-totals {
	margin: 0.6rem 0 0;
}
.mbq-totals > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.2rem 0;
}
.mbq-totals dt {
	color: var(--mbn-ink-soft);
	font-weight: 400;
}
.mbq-totals dd {
	margin: 0;
	font-variant-numeric: lining-nums;
}
.mbq-totals .mbq-totals__all dt,
.mbq-totals .mbq-totals__all dd {
	color: var(--mbn-ink);
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	font-weight: 600;
}
.mbq-order__note {
	margin: 0.25rem 0 0;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}
.mbq-order .mbq-order__ship {
	margin: 0.35rem 0 0;
}
.mbq-order__acts {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 1.5rem;
	margin: 0.15rem 0 0;
}
/* A button that reads as a link: the ways back (Remove, Just the Quran) and Update the total. */
.mbq-textbtn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mbn-accent);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	cursor: pointer;
}
.mbq-textbtn:hover {
	text-decoration-thickness: 2px;
}
.mbq-textbtn:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
	border-radius: 4px;
}
.mbq-giftbox {
	color: var(--mbn-ink-soft);
}
/* After a choice: one quiet line in the order card saying what the order is now, with the way back. */
.mbq-order {
	scroll-margin-block-start: 1.25rem;
}
.mbq-said {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 1.25rem;
	margin: 0 0 0.35rem;
	padding: 0.35rem 0.85rem;
	border-radius: 10px;
	background: var(--mbn-accent-soft);
}
.mbn-main .mbq-said__p {
	max-inline-size: none;
	margin: 0;
	padding-block: 0.55rem;
	font-weight: 600;
}
.mbq-line__incl {
	color: var(--mbn-ink);
	font-weight: 600;
	font-size: var(--mbn-text-sm);
}
/* Or make it a kit: in the middle, right after the order (his call), on its own soft band so it reads as a real
   choice. No badge, no count, no timer. Payment, after it, stays the one filled button on the page. */
.mbq-kits {
	margin: 0 0 1.75rem;
	padding: 1.25rem var(--mbn-gutter) var(--mbn-gutter);
	border: 1px solid color-mix(in srgb, var(--mbn-accent) 32%, var(--mbn-line));
	border-radius: var(--mbn-radius, 12px);
	background: color-mix(in srgb, var(--mbn-accent) 9%, var(--mbn-surface));
}
.mbq-kits .mbq-kits__h {
	font-size: 1.5rem;
	line-height: 1.25;
}
.mbq-kits__lead {
	max-inline-size: 36rem;
	margin: 0 0 1.1rem;
	color: var(--mbn-ink-soft);
	text-wrap: pretty;
}
.mbq-kits__hint {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: -0.35rem 0 0.75rem;
	color: var(--mbn-ink-soft);
	font-size: var(--mbn-text-sm);
}
.mbq-kits__hint::after {
	content: "\2192";
	color: var(--mbn-accent);
	font-weight: 700;
}
/* A phone: the kits in one sideways row that snaps card by card, each about 82% wide so the next one peeks in. The row
   is a labeled region that takes focus (arrow keys scroll it); it scrolls only sideways, so the page never gets stuck. */
.mbq-kitrow {
	margin-inline: calc(-1 * var(--mbn-gutter));
	padding: 2px var(--mbn-gutter) 0.85rem;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--mbn-gutter);
	scrollbar-width: thin;
}
.mbq-kitrow:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: -3px;
	border-radius: var(--mbn-radius, 12px);
}
.mbq-kitlist {
	display: grid;
	grid-auto-flow: column;
	/* 82% of the row as seen (the list plus its side padding), so the next card peeks in. */
	grid-auto-columns: calc(82% + 1.64 * var(--mbn-gutter));
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mbq-kit {
	scroll-snap-align: start;
	min-inline-size: 0;
}
/* Every card the same shape at every width: its picture on top, then the name, the price, what is inside, and the
   actions along the bottom (cards in a row share one height, so the buttons line up). */
.mbq-kit__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "art" "name" "price" "in" "acts";
	grid-template-rows: auto auto auto auto 1fr;
	align-items: start;
	gap: 0.3rem;
	block-size: 100%;
	padding: 0.9rem;
	border: 1px solid var(--mbn-line);
	border-radius: var(--mbn-radius, 12px);
	background: var(--mbn-surface);
}
.mbq-kit--in .mbq-kit__card {
	border-color: var(--mbn-accent);
	background: var(--mbn-accent-soft);
}
.mbq-kit__body {
	display: contents;
}
.mbq-kit__art {
	grid-area: art;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	margin-block-end: 0.45rem;
	border-radius: 8px;
	background: var(--mbn-accent-soft);
}
.mbq-kit__art > .mbsh-art,
.mbq-kit__art > img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}
.mbq-kit__name {
	grid-area: name;
	margin: 0;
	font-family: var(--mbn-display);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
	text-wrap: balance;
}
.mbn-main .mbq-kit__price {
	grid-area: price;
	max-inline-size: none;
	margin: 0;
}
.mbq-kit__amt {
	font-family: var(--mbn-display);
	font-size: var(--mbn-text-lg);
	font-weight: 600;
	font-variant-numeric: lining-nums;
}
.mbq-kit__post {
	color: var(--mbn-ink-soft);
	white-space: nowrap;
}
/* What is inside: a disclosure that needs no script, its list marked with the drawing's small diamond. */
.mbq-kit__in {
	grid-area: in;
	margin: 0.35rem 0 0;
	border-block-start: 1px solid var(--mbn-line);
}
.mbq-kit__in summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-block-size: 44px;
	color: var(--mbn-accent);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.mbq-kit__in summary::-webkit-details-marker {
	display: none;
}
.mbq-kit__in summary::after {
	content: "";
	inline-size: 0.5rem;
	block-size: 0.5rem;
	margin-inline-end: 0.3rem;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s ease;
}
.mbq-kit__in[open] summary::after {
	transform: rotate(225deg) translateY(-2px);
}
.mbq-kit__in summary:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
	border-radius: 4px;
}
.mbn-main .mbq-kit__with {
	max-inline-size: none;
	margin: 0 0 0.2rem;
	color: var(--mbn-ink-soft);
}
.mbq-kit__in ul {
	display: grid;
	gap: 0.15rem;
	margin: 0 0 0.6rem;
	padding: 0;
	list-style: none;
}
.mbq-kit__in li {
	position: relative;
	padding-inline-start: 1.15rem;
}
.mbq-kit__in li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0.2rem;
	inset-block-start: 0.6em;
	inline-size: 0.38rem;
	block-size: 0.38rem;
	border-radius: 1px;
	background: #c9a45c;
	transform: rotate(45deg);
}
/* The card's actions: Switch, the primary, a tinted accent button one step quieter than payment's filled one; Add to my
   order, quiet under it. Both full width of the card, the same on every card, light and dark. */
.mbq-kit__acts {
	grid-area: acts;
	display: grid;
	align-content: end;
	gap: 0.15rem;
	margin-block-start: 0.6rem;
}
.mbq-kit__acts .mbn-button.mbq-kit__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	min-block-size: 48px;
	padding: 0.65rem 1rem;
	border: 2px solid var(--mbn-accent);
	background: color-mix(in srgb, var(--mbn-accent) 17%, var(--mbn-surface));
	color: var(--mbn-accent);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-wrap: balance;
	box-shadow: 0 1px 0 color-mix(in srgb, var(--mbn-accent) 18%, transparent);
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.mbq-kit__acts .mbn-button.mbq-kit__go:hover {
	background: color-mix(in srgb, var(--mbn-accent) 26%, var(--mbn-surface));
	box-shadow: 0 2px 6px color-mix(in srgb, var(--mbn-accent) 22%, transparent);
}
.mbq-kit__acts .mbn-button.mbq-kit__go:focus-visible {
	outline: 3px solid var(--mbn-focus);
	outline-offset: 2px;
}
.mbq-kit__acts .mbq-kit__add {
	justify-self: center;
	justify-content: center;
	min-block-size: 44px;
	padding-inline: 0.5rem;
}
.mbn-main .mbq-kit__inorder {
	max-inline-size: none;
	margin: 0;
	color: var(--mbn-ink);
	font-weight: 600;
}
/* From 40rem: the three side by side in one row, no swiping. The band widens with the screen (up to 1040 px, never
   past 24 px from its edges) while the rest of the step keeps its 720 px column. */
@media (min-width: 40rem) {
	.mbq-kits {
		--mbq-band: max(100%, min(1040px, calc(100vw - 48px)));
		inline-size: var(--mbq-band);
		margin-inline: calc((100% - var(--mbq-band)) / 2);
		padding: 1.25rem 1rem 1rem;
	}
	.mbq-kits__hint {
		display: none;
	}
	.mbq-kitrow {
		margin: 0;
		padding: 0;
		overflow: visible;
	}
	.mbq-kitlist {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.75rem;
	}
	.mbq-kit__name {
		font-size: 1.0625rem;
	}
	.mbq-kit__acts .mbn-button.mbq-kit__go {
		padding-inline: 0.6rem;
		font-size: var(--mbn-text-sm);
	}
}
@media (min-width: 60rem) {
	.mbq-kits {
		padding: 1.5rem;
	}
	.mbq-kitlist {
		gap: 1rem;
	}
	.mbq-kit__card {
		padding: 1.1rem;
	}
	.mbq-kit__name {
		font-size: 1.1875rem;
	}
	.mbq-kit__acts .mbn-button.mbq-kit__go {
		padding-inline: 1rem;
		font-size: inherit;
	}
}
/* Each kit's own picture, in the pocket Quran's drawing language and Blue's tokens (light and dark). */
.mbq-kitart {
	--mbq-ink: var(--mbn-ink);
	--mbq-paper: var(--mbn-accent-soft);
	--mbq-accent: var(--mbn-accent);
	--mbq-cover: var(--mc-blue-800, #0b2550);
	--mbq-gilt: #d6bd7c;
	inline-size: 100%;
	block-size: 100%;
	background: var(--mbn-accent-soft);
	font-size: 1rem;
}
.mbq-kitart__svg {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 3;
}
.mbq-kitart__cloth { fill: var(--_cover); }
.mbq-kitart__cloth-2 { fill: color-mix(in srgb, var(--_cover) 72%, var(--_paper)); }
.mbq-kitart__fall { fill: color-mix(in srgb, var(--_cover) 58%, var(--_paper)); }
.mbq-kitart__fringe,
.mbq-kitart__cord { stroke: var(--_gilt); stroke-width: 1; stroke-linecap: round; }
.mbq-kitart__bead { fill: var(--_gilt); stroke: color-mix(in srgb, var(--_gilt) 60%, #6b5a36); stroke-width: 0.5; }
.mbq-kitart__bowl { fill: var(--_cover); }
.mbq-kitart__date { fill: #7a4a2a; }
.mbq-kitart__shine { stroke: #b07a52; stroke-width: 0.9; stroke-linecap: round; opacity: 0.8; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .mbq-kitart {
		--mbq-cover: #2c5aa6;
	}
	:root:not([data-theme="light"]) .mbq-kitart__date { fill: #a0673f; }
}
:root[data-theme="dark"] .mbq-kitart {
	--mbq-cover: #2c5aa6;
}
:root[data-theme="dark"] .mbq-kitart__date { fill: #a0673f; }
main .mbq-col .mbq-back {
	margin-block-start: 1.75rem;
}
@media (min-width: 48rem) {
	main .mbq-col .mbq-back {
		margin-block-start: 2.5rem;
	}
}
/* The plain envelope's note lines up with its label (the checkbox column, then the words). */
.mbq-col .mbq-check .mbsh-small {
	grid-column: 2;
	justify-self: start;
	margin: 0;
	padding: 0;
	text-align: start;
}

/* The postage on its own line under the price at every width (cards are narrow in a row): no comma left hanging. */
.mbq-kit__sep {
	display: none;
}
.mbq-kit__post {
	display: block;
}
.mbq-kit__post::first-letter {
	text-transform: uppercase;
}

/* Owner changes 2 (the "looks amazing" pass): every part of every Quran step on the same 720 px column edges, so the
   ways, the questions, the order and the done words line up at 768 and 1024 as they do everywhere else. */
.mbq-col .mbq-ways,
.mbq-col .mbq-faq,
.mbq-col .mbq-done {
	max-inline-size: none;
}
.mbq-nbw {
	white-space: nowrap;
}

/* ---- Quran polish pass (review of the live page) ---- */
/* The pay button is a real size on wide screens; the way back is a quiet link, and so is Change ZIP code. */
@media (min-width: 30rem) {
	/* As specific as the form-wide submit rule above (12rem), so this one wins. */
	.mbq-pay__go .mbn-button,
	.mbq-col form .mbq-pay__go .mbn-button[type="submit"]:not(.mbn-button--quiet) {
		min-inline-size: 16.25rem;
	}
}
.mbq-back .mbq-quietlink {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}
.mbq-zip__row .mbq-zip__change {
	flex: 0 0 auto;
	padding-inline: 0.25rem;
}
/* The plain envelope: the whole row (box, words and note) is one 44 px tap target. */
.mbq-check {
	position: relative;
	min-block-size: 44px;
}
.mbq-check label::after {
	content: "";
	position: absolute;
	inset: 0;
}
/* A phone's kit row: a trailing fade says there is more, a bigger hint says to swipe. It is decoration only and lets
   every tap through to the buttons. The scroller is .mbq-kitrow (scroll snap is set on it, and on each .mbq-kit). */
.mbq-kits__hint {
	font-size: 1rem;
}
.mbq-kits {
	position: relative;
}
.mbq-kits::after {
	content: "";
	position: absolute;
	inset-block: 0.5px;
	inset-inline-end: 0.5px;
	inline-size: 1.5rem;
	border-start-end-radius: var(--mbn-radius, 12px);
	border-end-end-radius: var(--mbn-radius, 12px);
	background: linear-gradient(to right, transparent, color-mix(in srgb, var(--mbn-accent) 9%, var(--mbn-surface)));
	pointer-events: none;
}
[dir="rtl"] .mbq-kits::after {
	background: linear-gradient(to left, transparent, color-mix(in srgb, var(--mbn-accent) 9%, var(--mbn-surface)));
}
@media (min-width: 40rem) {
	.mbq-kits::after {
		display: none;
	}
}
/* A tablet's three narrow cards: a tighter gap and button so "Switch my Quran to this kit" keeps to one line. */
@media (min-width: 40.0625rem) and (max-width: 56.25rem) {
	.mbq-kitlist {
		gap: 12px;
	}
	.mbq-kit__acts .mbn-button.mbq-kit__go {
		font-size: 0.9rem;
		padding-inline: 8px;
	}
}
/* Gift a Quran on a small phone: the 1, 3 and 10 tiles stack so the prices never wrap. */
@media (max-width: 26.24rem) {
	.mbq-gift .mbq-picks {
		grid-template-columns: minmax(0, 1fr);
	}
	.mbn-form label.mbq-way--copies {
		flex-direction: row;
		gap: 0.75rem;
		padding: 0.85rem 1rem;
	}
}
