/* Quranic Finance - the fund at a glance (F9).

   Loaded on the showcase page only, after qh-public.css (P2). The brand's two
   colours carry it: dark green for what the fund does, gold for what comes
   back. Every shape here sits beside its exact figure (D3). */

.qh-impact {
	--imp-green: var(--qh-green-600);
	--imp-green-2: var(--qh-green-500);
	--imp-gold: var(--qh-gold-500);
	--imp-mint: var(--qh-green-200);
	--imp-teal: var(--qh-green-400);
	--imp-amber: var(--qh-saffron-500);
	--imp-red: var(--qh-terracotta-500);
	--imp-ink: var(--qh-ink-900);
	--imp-muted: var(--qh-sand-600);
	--imp-line: var(--qh-sand-200);
	--imp-card: var(--qh-ivory);
	max-width: 68rem;
}

/* The colours a part of a chart is drawn in. */
.qh-impact .qh-imp-c1 { fill: var(--imp-green); stroke: var(--imp-green); background: var(--imp-green); }
.qh-impact .qh-imp-c2 { fill: var(--imp-gold); stroke: var(--imp-gold); background: var(--imp-gold); }
.qh-impact .qh-imp-c3 { fill: var(--imp-mint); stroke: var(--imp-mint); background: var(--imp-mint); }
.qh-impact .qh-imp-c4 { fill: var(--imp-teal); stroke: var(--imp-teal); background: var(--imp-teal); }
/* A neutral grey, for a part that is not a kind of anything - the people
   whose age nobody wrote down. */
.qh-impact .qh-imp-c0 { fill: var(--qh-sand-400); stroke: var(--qh-sand-400); background: var(--qh-sand-400); }
/* D1: amber is something that wants attention, red is what has cost the fund money. */
.qh-impact .qh-imp-c5 { fill: var(--imp-amber); stroke: var(--imp-amber); background: var(--imp-amber); }
.qh-impact .qh-imp-c6 { fill: var(--imp-red); stroke: var(--imp-red); background: var(--imp-red); }

/* Steps of one scale, smallest to largest - the donors page's gifts by size.
   One colour deepening, not eight kinds, because the groups are an order and
   not a set of different things; the largest in the fund's gold. */
.qh-impact .qh-imp-s1 { background: var(--qh-green-100); }
.qh-impact .qh-imp-s2 { background: var(--qh-green-200); }
.qh-impact .qh-imp-s3 { background: var(--qh-green-200); }
.qh-impact .qh-imp-s4 { background: var(--qh-green-300); }
.qh-impact .qh-imp-s5 { background: var(--qh-green-400); }
.qh-impact .qh-imp-s6 { background: var(--qh-green-500); }
.qh-impact .qh-imp-s7 { background: var(--qh-green-600); }
.qh-impact .qh-imp-s8 { background: var(--imp-gold); }

/* A group nobody is in yet, kept in the key so the whole scale can be read. */
.qh-imp-key--list li.is-nil {
	color: var(--imp-muted);
}

.qh-imp-key--list li.is-nil .qh-imp-dot {
	opacity: 0.45;
}

.qh-imp-key--list li.is-nil b {
	font-weight: 400;
}

/* ---- The headline figures, in their groups (AN2) ------------------------- */
.qh-imp-groups {
	display: grid;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
}

.qh-imp-group {
	padding: 1rem 1rem 0.25rem;
	border: 1px solid var(--qh-sand-200);
	border-radius: 16px;
	background: var(--qh-sand-50);
}

.qh-imp-group--gold {
	background: var(--qh-sand-50);
	border-color: var(--qh-gold-100);
}

.qh-imp-group-h {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 0.875rem;
	font-size: 1.25rem;
	font-weight: var(--qh-heading-weight);
	line-height: 1.3;
	color: var(--qh-green-600);
}

.qh-imp-group--gold .qh-imp-group-h {
	color: var(--qh-gold-700);
}

.qh-imp-group-h::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--qh-sand-200);
}

.qh-imp-stats {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 0.75rem;
	margin: 0 0 0.75rem;
}

/* The way to the fund in depth. */
.qh-imp-more {
	margin: 0 0 2rem;
	text-align: center;
}

.qh-report .qh-imp-more-link,
.qh-imp-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.875rem 1.5rem;
	border-radius: 999px;
	background: var(--qh-green-600);
	color: var(--qh-on-brand);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba( 15, 77, 58, 0.18 );
}

.qh-report .qh-imp-more-link:hover,
.qh-imp-more-link:hover {
	background: var(--qh-green-700);
	color: var(--qh-on-brand);
}

.qh-imp-more-link .qh-fs-go {
	color: var(--qh-accent-on-brand);
}

@media ( min-width: 46rem ) {
	.qh-imp-stats {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

.qh-imp-stat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.1rem 1.1rem;
	border: 1px solid var(--imp-line);
	border-radius: 18px;
	background: var(--imp-card);
	box-shadow: 0 6px 18px rgba( 15, 77, 58, 0.06 );
}

/* A figure that opens the report it came from. The tile is the target, so the
   whole of it is the link: a reader on a phone should not have to find a word
   inside it. */
.qh-imp-stat--go {
	text-decoration: none;
	color: inherit;
	position: relative;
}

.qh-imp-stat--go:hover,
.qh-imp-stat--go:focus-visible {
	border-color: var(--qh-green-600);
}

.qh-imp-stat--go .qh-fs-go {
	position: absolute;
	top: 0.6rem;
	inset-inline-end: 0.7rem;
	color: var(--qh-green-600);
	font-weight: 700;
}

.qh-imp-stat-icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.35rem;
	border-radius: 12px;
	background: var(--qh-green-50);
	color: var(--imp-green);
	font-size: 1.25rem;
}

.qh-imp-stat--good .qh-imp-stat-icon { background: var(--qh-green-50); color: var(--qh-green-500); }
.qh-imp-stat--gold .qh-imp-stat-icon { background: var(--qh-gold-50); color: var(--qh-gold-700); }
.qh-imp-stat--warn .qh-imp-stat-icon { background: var(--qh-terracotta-50); color: var(--qh-terracotta-500); }
.qh-imp-stat--warn .qh-imp-stat-value { color: var(--qh-terracotta-500); }

.qh-imp-stat-value {
	font-size: clamp( 1.2rem, 3.6vw, 1.6rem );
	font-weight: 700;
	line-height: 1.15;
	color: var(--imp-ink);
	font-variant-numeric: lining-nums tabular-nums;
	overflow-wrap: anywhere;
}

.qh-imp-stat-label {
	font-size: 0.875rem;
	color: var(--imp-muted);
}

/* ---- Sections and cards ------------------------------------------------ */
.qh-imp-section {
	margin: 0 0 2rem;
}

.qh-impact .qh-imp-h {
	margin: 0 0 0.35rem;
	font: 600 1.35rem/1.25 var(--qh-font);
	color: var(--imp-green);
}

.qh-imp-sub {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: var(--imp-muted);
}

.qh-imp-card {
	padding: 1.25rem;
	border: 1px solid var(--imp-line);
	border-radius: 18px;
	background: var(--imp-card);
	box-shadow: 0 6px 18px rgba( 15, 77, 58, 0.05 );
}

.qh-imp-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 0.75rem;
}

@media ( min-width: 46rem ) {
	.qh-imp-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

.qh-imp-note {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	color: var(--qh-sand-700);
}

.qh-imp-note .qh-ui-icon {
	color: var(--imp-gold);
}

/* A note that carries a whole section rather than one card. */
.qh-imp-note--wide {
	align-items: flex-start;
	margin-top: 1.25rem;
	padding: 0.9rem 1.1rem;
	border-radius: 14px;
	border: 1px solid var(--imp-line);
	background: var(--qh-green-50);
	line-height: 1.55;
}

.qh-imp-note--wide .qh-ui-icon {
	flex: none;
	margin-top: 0.15rem;
}

/* ---- The map of Bangladesh --------------------------------------------- */
/* District areas shaded by how much has been lent in each (I4). The shapes
   are geoBoundaries ADM2, CC BY 3.0 IGO; the credit that licence asks for is
   inside the drawing, in its <desc> (CM2d). */
/* The map above, the list below it, at every width. Side by side left one
   column short and the other with a stretch of nothing under it. */
.qh-imp-map-wrap {
	display: block;
}

.qh-imp-map-side {
	margin: 0 auto 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--imp-line);
	text-align: center;
}

.qh-imp-scale {
	justify-content: center;
	text-align: center;
}

.qh-impact .qh-imp-map {
	display: block;
	width: 100%;
	max-width: 360px;
	height: auto;
	margin: 0 auto;
}

.qh-imp-district {
	stroke: var(--qh-ivory);
	stroke-width: 1.2;
	stroke-linejoin: round;
	transition: fill 0.15s ease;
}

/* Five steps of the brand green, and a grey for a district not lent in.
   Each carries both properties because the same class colours a shape on
   the map (fill) and a swatch in the legend under it (background). */
.qh-imp-d0 { fill: var(--qh-sand-200); background: var(--qh-sand-200); }
.qh-imp-d1 { fill: var(--qh-green-100); background: var(--qh-green-100); }
.qh-imp-d2 { fill: var(--qh-green-200); background: var(--qh-green-200); }
.qh-imp-d3 { fill: var(--qh-green-300); background: var(--qh-green-300); }
.qh-imp-d4 { fill: var(--qh-green-400); background: var(--qh-green-400); }
.qh-imp-d5 { fill: var(--qh-green-600); background: var(--qh-green-600); }

.qh-imp-district:hover {
	fill: var(--imp-gold);
}

.qh-imp-map-name {
	fill: var(--qh-ink-900);
	font-size: 15px;
	font-weight: 700;
	paint-order: stroke;
	stroke: var(--qh-ivory);
	stroke-width: 3.5px;
	stroke-linejoin: round;
	pointer-events: none;
}

/* What the shading means. */
.qh-imp-scale {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	color: var(--imp-muted);
}

.qh-imp-scale li {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.qh-imp-scale-end {
	white-space: nowrap;
}

.qh-imp-scale-none {
	flex-basis: 100%;
	margin-top: 0.15rem;
}

.qh-imp-swatch {
	display: block;
	width: 1.25rem;
	height: 0.7rem;
	border-radius: 2px;
	border: 1px solid rgba( 15, 77, 58, 0.15 );
}

.qh-imp-districts {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.qh-imp-districts th,
.qh-imp-districts td {
	padding: 0.45rem 0.6rem;
	border-bottom: 1px solid var(--imp-line);
	text-align: left;
}

.qh-imp-districts thead th {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--imp-muted);
}

.qh-imp-districts tbody th {
	font-weight: 600;
	color: var(--imp-ink);
}

.qh-imp-districts td {
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--qh-sand-700);
}

.qh-imp-districts .qh-col-money {
	text-align: right;
}
/* ---- Charts -------------------------------------------------------------- */
.qh-imp-area,
.qh-imp-cols {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.qh-imp-grid-line {
	stroke: var(--qh-green-50);
	stroke-width: 1;
}

.qh-imp-axis {
	fill: var(--qh-sand-500);
	font-size: 12px;
}

.qh-imp-line {
	fill: none;
	stroke-width: 3;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.qh-imp-line--c1 { stroke: var(--imp-green); }
.qh-imp-line--c2 { stroke: var(--imp-gold); }

.qh-imp-key {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	color: var(--qh-sand-700);
}

.qh-imp-key b {
	color: var(--imp-ink);
	font-variant-numeric: lining-nums tabular-nums;
}

.qh-imp-dot {
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	margin-right: 0.4rem;
	border-radius: 50%;
	vertical-align: -0.05em;
}

/* A key as a list: colour, name, amount, share. */
.qh-imp-key--list {
	display: grid;
	gap: 0.55rem;
}

.qh-imp-key--list li {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 0.5rem;
}

.qh-imp-key--list em {
	min-width: 2.75rem;
	font-style: normal;
	font-size: 0.8125rem;
	text-align: right;
	color: var(--imp-muted);
}

/* The ring. */
.qh-imp-donut-wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: center;
}

/* Beside the ring only where the card is wide enough for the key to read
   in one line; in a half-width card the key sits under it. */
@media ( min-width: 30rem ) and ( max-width: 45.99rem ) {
	.qh-imp-donut-wrap {
		grid-template-columns: 12.5rem 1fr;
	}
}

.qh-imp-donut-box {
	position: relative;
	width: 12.5rem;
	max-width: 100%;
	margin: 0 auto;
}

.qh-imp-donut {
	display: block;
	width: 100%;
	height: auto;
}

.qh-imp-donut-track {
	fill: none;
	stroke: var(--qh-green-50);
	stroke-width: 5;
}

.qh-imp-seg {
	fill: none !important;
	stroke-width: 5;
}

.qh-imp-donut-mid {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	text-align: center;
	/* Inside the hole: the ring's inner edge is 64% of its width across,
	   so the words are kept to the middle 56% and never cross it. */
	padding: 0 22%;
}

.qh-imp-donut-mid strong {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	white-space: nowrap;
	color: var(--imp-ink);
	font-variant-numeric: lining-nums tabular-nums;
}

.qh-imp-donut-mid span {
	font-size: 0.6875rem;
	line-height: 1.25;
	color: var(--imp-muted);
}

/* A count split into parts. */
.qh-imp-split-title {
	margin: 0 0 0.6rem;
	font-weight: 600;
	color: var(--imp-ink);
}

.qh-imp-split {
	display: flex;
	height: 0.9rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--qh-green-50);
}

.qh-imp-split span {
	display: block;
	height: 100%;
}

.qh-imp-split span + span {
	border-left: 2px solid var(--qh-ivory);
}

/* Repaid on schedule: the ring and its sentence. */
.qh-imp-rate {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.qh-imp-rate .qh-ring {
	flex: none;
	width: 7rem;
	height: 7rem;
}

.qh-imp-rate p {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	color: var(--qh-sand-700);
}

.qh-imp-rate strong {
	font-size: 1.15rem;
	color: var(--imp-ink);
}

/* Centres as bars. */
.qh-imp-hbars {
	display: grid;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qh-imp-hbars li {
	display: grid;
	gap: 0.35rem;
}

.qh-imp-hbar-label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	color: var(--imp-ink);
}

.qh-imp-hbar-label .qh-ui-icon {
	color: var(--imp-green);
}

.qh-imp-hbar {
	display: block;
	height: 0.75rem;
	border-radius: 999px;
	background: var(--qh-green-50);
	overflow: hidden;
}

.qh-imp-hbar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--imp-green);
}

.qh-imp-hbar-fig {
	font-size: 0.875rem;
	color: var(--imp-muted);
}

.qh-imp-hbar-fig b {
	color: var(--imp-ink);
	font-variant-numeric: lining-nums tabular-nums;
}

.qh-imp-table {
	margin-top: 0.75rem;
}

/* ---- Trust, and taking part ---------------------------------------------- */
.qh-imp-trust {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin: 0 0 1.5rem;
	padding: 1.5rem;
	border-radius: 20px;
	background: var(--imp-green);
	color: var(--qh-green-50);
}

.qh-impact .qh-imp-trust .qh-imp-h {
	color: var(--qh-on-brand);
}

.qh-imp-trust p {
	margin: 0.35rem 0 0;
	line-height: 1.6;
}

.qh-imp-trust-icon {
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--qh-gold-400);
}

/* ---- Explore the fund: every page and form, grouped (25 September 2026) --
   The fund at a glance is the front page; every public page opens from
   here, a tile each, and the forms first and in gold. */

.qh-explore-group {
	margin: 0 0 1.25rem;
}

.qh-impact .qh-explore-title {
	margin: 0 0 0.6rem;
	font-size: 1.125rem;
	font-weight: var(--qh-heading-weight);
	color: var(--qh-gold-700);
}

.qh-explore-tiles {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( min( 100%, 13.5rem ), 1fr ) );
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qh-explore-tiles > li {
	margin: 0;
	min-width: 0;
}

.qh-impact a.qh-explore-tile {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
	min-height: 3.75rem;
	padding: 0.7rem 0.9rem;
	box-sizing: border-box;
	border: 1px solid var( --imp-line );
	border-radius: 14px;
	background: var(--qh-ivory);
	color: var( --imp-ink );
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.qh-impact a.qh-explore-tile:hover,
.qh-impact a.qh-explore-tile:focus-visible {
	border-color: var( --imp-green );
	box-shadow: 0 6px 18px rgba( 15, 77, 58, 0.12 );
	transform: translateY( -2px );
}

.qh-explore-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--qh-green-50);
	color: var( --imp-green );
}

.qh-explore-icon .qh-ui-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.qh-explore-label {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.qh-explore-tile .qh-fs-go {
	color: var( --imp-muted );
	font-size: 1.25rem;
}

/* Taking part comes first, in the fund's gold. */
.qh-impact .qh-explore-group--gold a.qh-explore-tile {
	border-color: var(--qh-gold-200);
	background: var(--qh-gold-50);
}

.qh-explore-group--gold .qh-explore-icon {
	background: var(--qh-gold-400);
	color: var(--qh-on-brand);
}

.qh-impact .qh-explore-group--quiet a.qh-explore-tile {
	min-height: 3rem;
	font-weight: 500;
	color: var( --imp-muted );
}

/* How Qard Hasan works: first under Explore the fund, and in place of the
   ৳1,000 example on the fund in depth (WK111). One shape for both. */
.qh-impact a.qh-explore-guide,
.qh-impact a.qh-an-guide {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding: 1.125rem 1.25rem;
	border-radius: var(--qh-r-card);
	background: var(--qh-green-600);
	color: var(--qh-on-brand);
	text-decoration: none;
	box-shadow: var(--qh-shadow-md);
	transition: background 0.15s ease, transform 0.15s ease;
}

.qh-impact a.qh-explore-guide:hover,
.qh-impact a.qh-explore-guide:focus-visible,
.qh-impact a.qh-an-guide:hover,
.qh-impact a.qh-an-guide:focus-visible {
	background: var(--qh-green-700);
	color: var(--qh-on-brand);
	transform: translateY( -2px );
}

.qh-explore-guide-icon,
.qh-an-guide-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--qh-gold-400);
	color: var(--qh-on-brand);
}

.qh-explore-guide-icon .qh-ui-icon,
.qh-an-guide-icon .qh-ui-icon {
	width: 1.5rem;
	height: 1.5rem;
}

.qh-explore-guide-text,
.qh-an-guide-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	line-height: 1.45;
}

.qh-explore-guide-text b,
.qh-an-guide-text b {
	font-size: 1.125rem;
}

.qh-explore-guide-text span,
.qh-an-guide-text span {
	color: var(--qh-green-50);
	font-size: 0.9375rem;
}

.qh-explore-guide .qh-fs-go,
.qh-an-guide .qh-fs-go {
	color: var(--qh-accent-on-brand);
	font-size: 1.5rem;
}

@media ( prefers-reduced-motion: reduce ) {
	.qh-impact a.qh-explore-guide,
	.qh-impact a.qh-an-guide { transition: none; }
	.qh-impact a.qh-explore-guide:hover,
	.qh-impact a.qh-an-guide:hover { transform: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	.qh-impact a.qh-explore-tile { transition: none; }
	.qh-impact a.qh-explore-tile:hover { transform: none; }
}

@media print {
	.qh-impact {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.qh-explore {
		display: none;
	}

	.qh-imp-section,
	.qh-imp-card,
	.qh-imp-stat,
	.qh-imp-map-wrap {
		break-inside: avoid;
	}
}

/* People whose district nobody has recorded: a row in the table, and no mark
   on the map, because the map would have to invent a place for them. */
.qh-imp-placeless th,
.qh-imp-placeless td {
	color: var(--imp-muted);
	font-style: italic;
}

/* What a panel's parts add up to, under its heading. */
.qh-imp-split-under {
	margin: -0.35rem 0 0.75rem;
	font-size: 0.875rem;
	color: var(--imp-muted);
	font-variant-numeric: lining-nums tabular-nums;
}

/* ---- Where it came from: a statement, not a chart ---------------------- */
/* Every line from the ledger, ending on what the fund holds, with the page's
   own check that they add up printed under it (I9). */
.qh-imp-recon {
	margin: 0;
	padding: 0;
	list-style: none;
}

.qh-imp-recon-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.4rem 0;
	font-size: 0.9375rem;
	color: var(--qh-sand-700);
}

.qh-imp-recon-line > span {
	min-width: 0;
}

.qh-imp-recon-line em {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.8125rem;
	font-style: normal;
	line-height: 1.45;
	color: var(--imp-muted);
}

.qh-imp-recon-line b {
	flex: none;
	font-variant-numeric: lining-nums tabular-nums;
	white-space: nowrap;
}

.qh-imp-recon-sub,
.qh-imp-recon-total {
	border-top: 1px solid var(--imp-line);
	font-weight: 700;
	color: var(--imp-ink);
}

.qh-imp-recon-total {
	margin-top: 0.25rem;
	border-top: 2px solid var(--imp-green);
	font-size: 1rem;
}

/* What the one figure above is made of. */
.qh-imp-recon-parts ul {
	margin: 0 0 0.35rem;
	padding: 0 0 0 1rem;
	list-style: none;
	border-left: 2px solid var(--imp-line);
}

.qh-imp-recon-parts .qh-imp-recon-line {
	padding: 0.2rem 0;
	font-size: 0.875rem;
	color: var(--imp-muted);
}

.qh-imp-recon-ok,
.qh-imp-recon-bad {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin: 0.85rem 0 0;
	padding: 0.6rem 0.75rem;
	border-radius: 10px;
	font-size: 0.875rem;
	line-height: 1.5;
}

.qh-imp-recon-ok {
	background: var(--qh-green-50);
	color: var(--qh-green-500);
}

.qh-imp-recon-ok .qh-ui-icon {
	color: var(--qh-green-500);
}

.qh-imp-recon-bad {
	background: var(--qh-terracotta-50);
	color: var(--qh-terracotta-500);
	font-weight: 600;
}

.qh-imp-recon-bad .qh-ui-icon {
	color: var(--qh-terracotta-500);
}

/* ---- A long list: search, ten rows, a count and a pager ---------------- */
/* The same control on Coverage and on By centre, so the two read alike
   (I12, I13). Plain markup and a GET form: no script, and it prints. */
.qh-imp-search {
	display: block;
	margin: 0 0 0.75rem;
}

.qh-imp-search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.qh-imp-search-row {
	display: flex;
	align-items: stretch;
	gap: 0.4rem;
}

/* The showcase page had a box of its own shape; it is the same box as
   every other search box now (I35a). */
.qh-impact .qh-imp-search input[type="search"].qh-search-input {
	flex: 0 1 22rem;
	width: 22rem;
	min-width: 11rem;
	max-width: 100%;
	min-height: 2.25rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--imp-line);
	border-radius: 8px;
	background: var(--qh-ivory);
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--imp-ink);
	box-sizing: border-box;
}

.qh-impact .qh-imp-search input[type="search"]:focus {
	outline: 2px solid var(--imp-green);
	outline-offset: 1px;
}

.qh-impact .qh-imp-search button {
	flex: none;
	padding: 0.45rem 0.9rem;
	border: 0;
	border-radius: 8px;
	background: var(--imp-green);
	color: var(--qh-on-brand);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.qh-imp-search-clear {
	flex: none;
	display: flex;
	align-items: center;
	padding: 0 0.5rem;
	font-size: 0.875rem;
	color: var(--imp-muted);
}

.qh-imp-showing {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: var(--imp-muted);
	font-variant-numeric: lining-nums tabular-nums;
}

.qh-imp-showing--none {
	padding: 1rem 0;
	font-size: 0.9375rem;
	color: var(--qh-sand-700);
}

/* ---- Pages, inside a card ---------------------------------------------- */
/* Across a whole page of borrowers the pager spreads Previous and Next to the
   far edges, which inside a card leaves the numbers adrift in the middle of
   it. Here it is one tight group against the right of the list, under a rule
   - the way a table is paged (I10). */
.qh-impact .qh-pager {
	justify-content: flex-end;
	gap: 0.15rem;
	margin: 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--imp-line);
	font-size: 0.875rem;
}

.qh-impact .qh-pager-pages {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0 0.25rem;
}

.qh-impact .qh-pager-step,
.qh-impact .qh-pager-n {
	min-width: 2rem;
	min-height: 2rem;
	padding: 0 0.45rem;
	border-radius: 6px;
}

.qh-impact .qh-pager-n,
.qh-impact .qh-pager-step {
	border: 1px solid var(--imp-line);
}

.qh-impact .qh-pager-step.is-off {
	border-color: transparent;
}

.qh-impact .qh-pager-n:hover,
.qh-impact .qh-pager-step:hover {
	background: var(--qh-green-50);
}

.qh-impact .qh-pager-n.is-current {
	background: var(--imp-green);
	border-color: var(--imp-green);
}

.qh-impact .qh-pager-gap {
	border: 0;
	padding: 0 0.15rem;
}

@media ( max-width: 30rem ) {
	.qh-impact .qh-pager-step span {
		display: none;
	}
}

/* A centre's code beside its name: two mosques in one district can be called
   the same thing. */
.qh-imp-hbar-label em {
	font-style: normal;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--imp-muted);
}

/* A long list and everything that controls it: the search box, the count, the
   rows and the pager, in one block so the pager always sits under the list. */
.qh-imp-list {
	min-width: 0;
}

.qh-imp-list .qh-pager[hidden] {
	display: none;
}

/* Previous, the numbers and Next are buttons here rather than links, because
   nothing reloads. They must still look like the ones the server draws. */
.qh-impact .qh-pager button {
	border: 1px solid var(--imp-line);
	background: transparent;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.qh-impact .qh-pager button.is-current {
	background: var(--imp-green);
	border-color: var(--imp-green);
	color: var(--qh-on-brand);
}

/* A theme that styles every button beats the browser's own rule for hidden,
   so the no-script Search button stayed on screen after the script hid it. */
.qh-impact [hidden] {
	display: none !important;
}

.qh-imp-scale-none {
	justify-content: center;
}

/* The donors page's analysis sits in this sheet's cards. */
.qh-donor-picture {
	margin-top: 0.5rem;
}

/* ======================================================= the fund in depth */
/* AN1. The same cards and charts as the glance, a summary in words, and two
   lists of people: paying on time, and overdue with the most first. */

.qh-an-title {
	margin: 0.25rem 0 0.25rem;
	font-size: clamp( 1.5rem, 4vw, 2rem );
	color: var(--qh-green-600);
}

.qh-report .qh-an-back a {
	font-size: 0.875rem;
	color: var(--qh-sand-600);
	text-decoration: none;
}

.qh-an-summary {
	display: flex;
	gap: 0.875rem;
	align-items: flex-start;
	margin: 1rem 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 14px;
	background: var(--qh-green-50);
	border: 1px solid var(--qh-green-50);
}

.qh-an-summary svg {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.15rem;
	color: var(--qh-green-600);
}

.qh-an-summary p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
}

.qh-an-card-h {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
}

.qh-an-list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( min( 19rem, 100% ), 1fr ) );
	gap: 0.75rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.qh-an-person {
	margin: 0;
	list-style: none;
}

.qh-report .qh-an-person-link,
.qh-an-person-link {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr ) auto;
	align-items: center;
	gap: 0.875rem;
	height: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid var(--qh-sand-200);
	border-radius: var(--qh-r-tile);
	background: var(--qh-ivory);
	color: var(--qh-ink-900);
	text-decoration: none;
	box-sizing: border-box;
	box-shadow: var(--qh-shadow-xs);
}

.qh-report a.qh-an-person-link:hover {
	border-color: var(--qh-green-600);
	color: var(--qh-ink-900);
}

/* The tone is carried by the ring round the face and the figure's colour -
   the design system draws no coloured edge on a card (DS3). */

.qh-an-face {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--qh-green-50);
	box-shadow: 0 0 0 2px var(--qh-ivory), 0 0 0 4px var(--qh-green-100);
}

.qh-an-person--good .qh-an-face {
	box-shadow: 0 0 0 2px var(--qh-ivory), 0 0 0 4px var(--qh-green-500);
}

.qh-an-person--late .qh-an-face {
	box-shadow: 0 0 0 2px var(--qh-ivory), 0 0 0 4px var(--qh-terracotta-200);
	background: var(--qh-terracotta-50);
}

.qh-an-face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qh-an-initials {
	font-weight: 700;
	color: var(--qh-green-600);
}

.qh-an-person--late .qh-an-initials {
	color: var(--qh-terracotta-500);
}

.qh-an-who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.qh-an-name {
	font-weight: 700;
	color: var(--qh-green-600);
	overflow-wrap: anywhere;
}

.qh-an-meta,
.qh-an-line {
	font-size: 0.8125rem;
	color: var(--qh-sand-600);
}

.qh-an-figure {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	font-variant-numeric: lining-nums tabular-nums;
}

.qh-an-figure b {
	font-size: 1.0625rem;
	color: var(--qh-green-500);
	white-space: nowrap;
}

.qh-an-person--late .qh-an-figure b {
	color: var(--qh-terracotta-500);
}

.qh-an-figure small {
	font-size: 0.75rem;
	color: var(--qh-sand-600);
}

.qh-report .qh-an-more a {
	font-weight: 600;
	color: var(--qh-green-600);
	text-decoration: none;
}

@media ( max-width: 30rem ) {
	.qh-report .qh-an-person-link,
	.qh-an-person-link {
		grid-template-columns: auto minmax( 0, 1fr );
	}

	.qh-an-figure {
		grid-column: 2;
		align-items: flex-start;
		text-align: left;
		flex-direction: row;
		gap: 0.375rem;
		align-items: baseline;
	}
}

.qh-analysis .qh-imp-groups {
	margin-top: 0.5rem;
}

.qh-an-people .qh-imp-sub {
	margin-bottom: 1rem;
}

/* ==== DS2 - the design system's shapes (26 September 2026) ===============
   See the same heading in qh-public.css. The groups are a sunken grey panel
   holding white cards; headline figures bold in the one family; the "open to
   inspection" panel is the page's one solid green surface. */

.qh-impact {
	--imp-card: var(--qh-ivory);
	--imp-line: var(--qh-sand-200);
	--imp-ink: var(--qh-ink-900);
	--imp-muted: var(--qh-sand-600);
}

.qh-imp-group,
.qh-imp-group--gold {
	padding: 1.25rem 1.25rem 0.5rem;
	border: 1px solid var(--qh-sand-200);
	border-radius: var(--qh-r-card);
	background: var(--qh-sand-50);
}

/* A group's heading reads as a heading, not a label (the client, 16 October
   2026: "Donations - these heading too small"). No capitals or spacing: they
   do nothing for Bangla and shrink it (WK157). */
.qh-report .qh-imp-group-h,
.qh-imp-group-h,
.qh-imp-group--gold .qh-imp-group-h {
	font-size: 1.25rem;
	font-weight: var(--qh-heading-weight);
	letter-spacing: normal;
	text-transform: none;
	color: var(--qh-gold-700);
	border-bottom: 0;
}

.qh-imp-stat {
	border-color: var(--qh-sand-200);
	border-radius: var(--qh-r-tile);
	background: var(--qh-ivory);
	box-shadow: var(--qh-shadow-sm);
	transition: box-shadow 120ms var(--qh-ease), border-color 120ms var(--qh-ease), transform 120ms var(--qh-ease);
}

.qh-imp-stat--go:hover,
.qh-imp-stat--go:focus-visible {
	border-color: var(--qh-green-200);
	box-shadow: var(--qh-shadow-md);
}

.qh-imp-stat--go:active {
	transform: translateY( 1px );
}

.qh-imp-stat-value {
	font-size: clamp( 1.1875rem, 4.6vw, 1.75rem );
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.qh-imp-stat-label {
	color: var(--qh-sand-600);
}

.qh-impact .qh-imp-h {
	font-family: var(--qh-font);
	font-size: 1.75rem;
	font-weight: var(--qh-heading-weight);
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--qh-green-600);
}

.qh-imp-card {
	padding: 1.5rem;
	border-color: var(--qh-sand-200);
	border-radius: var(--qh-r-card);
	background: var(--qh-ivory);
	box-shadow: var(--qh-shadow-sm);
}

.qh-imp-trust {
	padding: 1.75rem;
	border-radius: var(--qh-r-card);
	background: var(--qh-green-600);
	color: var(--qh-green-50);
	box-shadow: var(--qh-shadow-md);
}

.qh-impact .qh-imp-trust .qh-imp-h {
	font-size: 1.5rem;
	color: var(--qh-on-brand);
}

.qh-report .qh-imp-more-link,
.qh-imp-more-link {
	border-radius: var(--qh-r-control);
	box-shadow: var(--qh-shadow-md);
}

.qh-impact .qh-explore-title {
	font-size: 1.125rem;
	font-weight: var(--qh-heading-weight);
	letter-spacing: normal;
	text-transform: none;
	color: var(--qh-gold-700);
}

@media ( max-width: 30rem ) {
	.qh-imp-group,
	.qh-imp-group--gold {
		padding: 1rem 0.75rem 0.25rem;
		border-radius: 20px;
	}

	.qh-imp-card {
		padding: 1rem;
		border-radius: 20px;
	}
}

@media print {
	.qh-imp-trust {
		background: none;
		color: inherit;
		border: 1px solid var(--qh-sand-300);
	}

	.qh-impact .qh-imp-trust .qh-imp-h {
		color: var(--qh-green-600);
	}
}

/* ---- More of the picture (AN4) ------------------------------------------- */

.qh-an-gap {
	height: 1.25rem;
}

.qh-an-risk {
	margin-top: 1rem;
}

.qh-an-risk-list {
	display: grid;
	gap: 0.75rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.qh-an-risk-row {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto auto;
	align-items: center;
	gap: 0.25rem 0.75rem;
	font-size: 0.9375rem;
}

.qh-an-risk-label {
	grid-column: 1 / -1;
	color: var(--qh-sand-700);
}

.qh-an-risk-bar {
	display: block;
	height: 0.625rem;
	border-radius: 999px;
	background: var(--qh-sand-100);
	overflow: hidden;
}

.qh-an-risk-bar i {
	display: block;
	height: 100%;
	border-radius: 999px;
}

.qh-an-risk-row b {
	font-variant-numeric: lining-nums tabular-nums;
	white-space: nowrap;
}

.qh-an-risk-row em {
	min-width: 3.5rem;
	font-style: normal;
	text-align: right;
	color: var(--qh-sand-600);
	font-variant-numeric: lining-nums tabular-nums;
}

@media print {
	.qh-an-tabs,
	.qh-an-guide {
		display: none;
	}
}

/* ---- Where our donors are: the world and Bangladesh (6 October 2026) ---- */
/* Side by side from 46rem (.qh-imp-grid), one above the other on a phone.
   Both maps the same height, on a faint sea, so the wide world and the tall
   country sit level; the zoom script fills the frame as it comes closer. */
.qh-donor-maps .qh-map-frame .qh-donor-map {
	display: block;
	width: 100%;
	max-width: none;
	height: clamp( 15rem, 38vw, 22rem );
	margin: 0;
	border-radius: 12px;
	background: var(--qh-sand-50);
}

.qh-donor-maps .qh-map-frame.is-full .qh-donor-map {
	flex: 1 1 auto;
	height: auto;
	border-radius: 0;
}

.qh-donor-map .qh-imp-district {
	stroke-width: 0.8px;
	vector-effect: non-scaling-stroke;
}

.qh-donor-map-dot {
	fill: var(--qh-gold-500);
	stroke: var(--qh-ivory);
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
}

.qh-donor-map-list {
	max-height: 15rem;
	margin-top: 0.75rem;
	overflow: auto;
}
