/* The QR giving page: one photo, one line, one form. Phone first. */
body.madina-quick-give {
	margin: 0;
	background: #072f2a;
	background-image:
		radial-gradient(120% 60% at 50% 0%, rgba(0, 143, 126, 0.35) 0%, rgba(7, 47, 42, 0) 60%),
		linear-gradient(180deg, #0B4A43 0%, #072f2a 100%);
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}

.qg { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.qg-sheet { flex: 1 0 auto; }

.qg-photo { position: relative; height: clamp(150px, 26vh, 230px); overflow: hidden; }
.qg-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.qg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 47, 42, 0.28) 0%, rgba(7, 47, 42, 0) 38%, rgba(7, 47, 42, 0.55) 100%); pointer-events: none; }
.qg-logo { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); left: 16px; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.qg-logo img { height: 26px; width: auto; display: block; }
.qg-logo span { font-weight: 800; color: var(--deep); letter-spacing: -0.02em; }

.qg-sheet { position: relative; z-index: 3; margin-top: -26px; background: #fff; border-radius: 26px 26px 0 0; padding: 24px 18px calc(28px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18); }
.qg-title { margin: 0; font-family: var(--sans); font-weight: 800; font-size: clamp(25px, 7vw, 34px); line-height: 1.08; letter-spacing: -0.025em; color: var(--deep); }
.qg-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--teal-text); font-size: 1.14em; }
.qg-line { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--body); }

.qg-progress { margin: 16px 0 18px; }
.qg-reserve { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--body); }
.qg-progress p { display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px; font-size: 14px; color: var(--body); }
.qg-progress strong { font-size: 19px; font-weight: 800; color: var(--deep); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.qg-progress b { margin-left: auto; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.qg-bar { height: 8px; border-radius: 999px; background: #E6EEEC; overflow: hidden; }
.qg-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #F0BF00, var(--gold)); }

/* The form, tightened for one screen per step */
.qg .mc-match { margin: 0 0 12px; }
.qg .mc-donate { gap: 12px; }
.qg .mc-donate--quick .mc-amounts { gap: 8px; }
.qg .mc-donate--quick .mc-amount { padding: 13px 6px; font-size: 17px; border-radius: 14px; }
.qg .mc-donate--quick .mc-custom > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.qg .mc-donate--quick .mc-check { font-size: 13.5px; }
.qg .mc-next, .qg .mc-submit { width: 100%; justify-content: center; min-height: 56px; font-size: 17px; border-radius: 16px; }
.qg .mc-fine { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }

.qg-other { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.qg-other summary { cursor: pointer; font-weight: 700; color: var(--deep); font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qg-other summary::-webkit-details-marker { display: none; }
.qg-other summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--teal-text); }
.qg-other[open] summary::after { content: "–"; }
.qg-other ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--body); }
.qg-other strong { color: var(--deep); margin-right: 4px; }
.qg-copy { font: inherit; color: var(--teal-text); background: var(--mist); border: 0; border-radius: 8px; padding: 2px 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.qg-explore { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-weight: 700; color: var(--teal-text); text-decoration: none; font-size: 15px; }
.qg-explore:hover { text-decoration: underline; text-underline-offset: 4px; }
.qg-legal { margin: 18px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }

/* Larger screens: the photo stays on the left, the sheet becomes a card on the right */
@media (min-width: 960px) {
	.qg { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 0; }
	.qg-sheet { flex: none; }
	.qg-photo { position: sticky; top: 0; height: 100vh; height: 100dvh; }
	.qg-photo > img { object-position: 50% 55%; }
	.qg-photo::after { background: linear-gradient(90deg, rgba(7, 47, 42, 0) 55%, rgba(7, 47, 42, 0.65) 100%), linear-gradient(180deg, rgba(7, 47, 42, 0.3) 0%, rgba(7, 47, 42, 0) 30%); }
	.qg-logo { top: 28px; left: 32px; padding: 10px 18px; }
	.qg-logo img { height: 32px; }
	.qg-sheet { margin: 0; border-radius: 0; padding: 56px 48px 48px; min-height: 100vh; box-sizing: border-box; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.22); }
	.qg-title { font-size: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
	.qg .mc-step:not([hidden]) { animation: qg-in 0.32s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes qg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* A live match, as one slim strip: the news first, the partners in one swipeable row */
.qg .mc-match--compact { padding: 12px 14px; border-radius: 16px; gap: 8px; margin-bottom: 14px; }
.qg .mc-match--compact .mc-match__lead { font-size: 14px; line-height: 1.4; margin: 0; }
.qg .mc-match--compact .mc-bar { display: none; }
.qg .mc-match--compact .mc-match__by { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.qg .mc-match--compact .mc-match__by > span { font-size: 14px; white-space: nowrap; flex: none; }
.qg .mc-match--compact .mc-partners { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0; min-width: 0; flex: 1 1 auto; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.qg .mc-match--compact .mc-partners::-webkit-scrollbar { display: none; }
.qg .mc-match--compact .mc-partner { flex: none; height: 32px; min-width: 0; padding: 4px 10px; border-radius: 10px; font-size: 11.5px; }
.qg .mc-match--compact .mc-partner img { max-height: 18px; max-width: 96px; }
.qg .mc-match--compact .mc-partner * { font-size: inherit !important; }
.qg .mc-match--compact .mc-match__ends { font-size: 12.5px; margin: 0; }
.qg .mc-donate--quick .mc-step[data-step="2"] .mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qg .mc-match--compact .mc-match__by > span { display: none; }
@media (max-width: 959px) {
	.qg-photo { height: clamp(128px, 19vh, 190px); }
	.qg-sheet { padding-top: 20px; }
	.qg-progress { margin: 12px 0 14px; }
}
