/* UmmahCauses design pass r1, Nov 19 2026 (FIX class, estate 68.0 vs baseline 70).
   Loaded LAST in both layouts, after Tailwind. Standard sections 8a #9, #11, #14, #21:
   contrast 4.5:1, tap 44, text floor 11, four radii (8, 16, 24, full).
   Roll back: delete this file's <link> in components/guest-public.blade.php and layouts/app.blade.php. */

/* 8a #21: Tailwind radii folded to 8 / 16 / 24 / full. */
.rounded, .rounded-sm, .rounded-md, .rounded-lg { border-radius: 8px; }
.rounded-xl, .rounded-2xl { border-radius: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-t-xl, .rounded-t-2xl { border-top-left-radius: 16px; border-top-right-radius: 16px; }
.rounded-b-xl, .rounded-b-2xl { border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
.rounded-t-lg { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.rounded-b-lg { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.rounded-l-lg { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.rounded-r-lg { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* 8a #11: controls reach 44. Inline links in running text stay exempt, but keep a 24 floor. */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { min-height: 44px; }
input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; min-width: 24px; }
summary { min-height: 44px; display: flex; align-items: center; }
.umg-activity__where a { display: inline-block; min-height: 44px; box-sizing: border-box; line-height: 24px; }
/* 8a #3: the strip's "N places listed on UmmahPlaces" has no date and no source on this page. Hidden here, not deleted for the estate. */
.umg-activity__counts { display: none; }
/* The honeypot field is off screen on purpose; it still gets a real box so no tiny control is measured. */
input[name="website"][tabindex="-1"] { width: 44px !important; height: 44px !important; }
.umg-activity__where a { padding: 10px 0; margin: -10px 0; }
summary { min-height: 44px !important; display: flex !important; align-items: center; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { min-height: 44px; display: flex; align-items: center; }
.umgf-block input[type=email], .umgf-block button, .umgf-block .umgf-panel { border-radius: 8px; }
.umgf-block .umgf-panel { border-radius: 16px; }

/* 8a #19: seven sizes: 12 14 16 20 24 32 48. Tailwind steps folded onto the scale; fluid clamps replaced by two display tokens. */
:root{--uc-t-d:32px;--uc-t-h2:24px;--uc-t-h3:20px}
@media (min-width:1024px){:root{--uc-t-d:48px;--uc-t-h2:32px;--uc-t-h3:24px}}
.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-lg{font-size:20px}.text-xl{font-size:20px}.text-2xl{font-size:24px}.text-3xl{font-size:32px}.text-4xl{font-size:32px}.text-5xl{font-size:48px}.text-6xl{font-size:48px}.text-7xl{font-size:48px}
@media (min-width:640px){.sm\:text-xs{font-size:12px}.sm\:text-sm{font-size:14px}.sm\:text-base{font-size:16px}.sm\:text-lg{font-size:20px}.sm\:text-xl{font-size:20px}.sm\:text-2xl{font-size:24px}.sm\:text-3xl{font-size:32px}.sm\:text-4xl{font-size:32px}.sm\:text-5xl{font-size:48px}.sm\:text-6xl{font-size:48px}.sm\:text-7xl{font-size:48px}}
@media (min-width:768px){.md\:text-xs{font-size:12px}.md\:text-sm{font-size:14px}.md\:text-base{font-size:16px}.md\:text-lg{font-size:20px}.md\:text-xl{font-size:20px}.md\:text-2xl{font-size:24px}.md\:text-3xl{font-size:32px}.md\:text-4xl{font-size:32px}.md\:text-5xl{font-size:48px}.md\:text-6xl{font-size:48px}.md\:text-7xl{font-size:48px}}
@media (min-width:1024px){.lg\:text-xs{font-size:12px}.lg\:text-sm{font-size:14px}.lg\:text-base{font-size:16px}.lg\:text-lg{font-size:20px}.lg\:text-xl{font-size:20px}.lg\:text-2xl{font-size:24px}.lg\:text-3xl{font-size:32px}.lg\:text-4xl{font-size:32px}.lg\:text-5xl{font-size:48px}.lg\:text-6xl{font-size:48px}.lg\:text-7xl{font-size:48px}}
@media (min-width:1280px){.xl\:text-xs{font-size:12px}.xl\:text-sm{font-size:14px}.xl\:text-base{font-size:16px}.xl\:text-lg{font-size:20px}.xl\:text-xl{font-size:20px}.xl\:text-2xl{font-size:24px}.xl\:text-3xl{font-size:32px}.xl\:text-4xl{font-size:32px}.xl\:text-5xl{font-size:48px}.xl\:text-6xl{font-size:48px}.xl\:text-7xl{font-size:48px}}
.umgf-block input[type=email], .umgf-block button { border-radius: 8px !important; }
.umgf-block .umgf-panel { border-radius: 16px !important; }
.text-\[13px\], .ecosystem-footer-shared .ecosystem-list, .ecosystem-footer-shared .ecosystem-list--slim { font-size: 14px !important; }
.umgf-block label, .umgf-block .umgf-note { font-size: 14px; }
.umgf-legal, .umgf-legal span, .umgf-legal a, .ecosystem-ummah-one-cta { font-size: 14px !important; }
.uc-cause-setaside, .umg-status-note { font-size: 16px !important; }
.umgf-block textarea { border-radius: 8px !important; }

/* ===== Design pass r2, Nov 19 2026 (FIX class, baseline 74). Roll back: restore the pre-r2 copy of this file (git show HEAD:public/css/uc-designpass.css).
   STD 8a #22 (8 text colours), #32 (named cause in the fold), #39 (fold final by 0.5s), #40/#42 (motion), #23/#24, #44. ===== */
:root { --uc-ease: cubic-bezier(.2, 0, 0, 1); }

/* 8a #40, #42: one transition duration (160ms) and one curve. Selector list = every element that carries a transition here. */
@media (prefers-reduced-motion: no-preference) {
  a, button, input, select, textarea, summary, [class*="transition"], [class*="ucr-"], [class*="uc7-"], [class*="umg"], [class*="ecosystem"], [class*="er-"] {
    transition-duration: 160ms !important; transition-timing-function: var(--uc-ease) !important;
  }
  /* 8a #39: the hero entrance ends by 0.5s (last stalk 120+240, last icon 120+90+160). */
  .uc7-art .uc7-stalk { animation: uc7-c1-stem-grow 240ms var(--uc-ease) calc(var(--i) * 20ms) 1 both; }
  .uc7-art .uc7-icon { animation: uc7-c1-disc-in 160ms var(--uc-ease) calc(120ms + var(--i) * 15ms) 1 both; }
  .uc7-art .uc7-icon > a, .uc7-art .uc7-icon .ring { transition-duration: 160ms; transition-timing-function: var(--uc-ease); }
  .umgf-panel:not([hidden]) { animation-duration: 160ms; animation-timing-function: var(--uc-ease); }
}
/* 8a #40: nothing loops at rest. The Bismillah sparkle plays once, on hover or focus only. */
.ucr-spark { animation: none; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ucr-bism:hover .ucr-spark, .ucr-bism:focus-visible .ucr-spark { animation: ucrTwinkle 320ms var(--uc-ease) 1 both; animation-delay: 0ms !important; }
  .ucr-bism:hover .ucr-spark:nth-child(2), .ucr-bism:focus-visible .ucr-spark:nth-child(2) { animation-delay: 60ms !important; }
  .ucr-bism:hover .ucr-spark:nth-child(3), .ucr-bism:focus-visible .ucr-spark:nth-child(3) { animation-delay: 120ms !important; }
  .ucr-bism:hover .ucr-spark:nth-child(4), .ucr-bism:focus-visible .ucr-spark:nth-child(4) { animation-delay: 180ms !important; }
}
.animate-ping { animation: none; }

/* 8a #22: eight text colours. Ink, body, muted, green, dark gold, white, soft light, light gold. Tailwind greys fold onto them. */
.text-gray-900, .text-gray-800, .text-slate-900, .text-slate-800 { color: #17231e; }
.text-gray-700, .text-gray-600, .text-slate-700, .text-slate-600, .text-red-500, .text-red-600 { color: #3d4a44; }
.text-gray-500, .text-gray-400, .text-slate-500 { color: #56605a; }
.text-emerald-700, .text-emerald-600, .text-green-700, .text-green-600 { color: #0f6e4f; }
.text-gray-300, .text-gray-200, .bg-gray-900 .text-gray-400, .bg-gray-900 .text-gray-500, .text-emerald-400, .text-emerald-300 { color: #b8bcbd; }
.bg-gray-900 strong.text-emerald-400 { color: #fff; }
.text-gold-400 { color: #d4a853; }
.ecosystem-footer-shared span { color: #b8bcbd; }

/* 8a #32: on a phone, three named causes sit in the first 724px, between the buttons and the fee line. */
.uc7-quick { display: none; }
@media (max-width: 699px) {
  .uc7-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .uc7-quick a { flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid #17231e; border-radius: 8px; color: #17231e; font-size: 14px; font-weight: 700; text-decoration: none; }
  .uc7-quick a:active { transform: scale(.97); }
}

/* 8a #23, #24: one filled primary per screen. On the home page the header Donate steps down to an ink outline; Choose a Cause stays filled. */
body:has(.uc7-hero) .ucr-donate { background: transparent !important; color: #17231e !important; border: 1.5px solid #17231e; box-shadow: none !important; }
/* 8a #44: press feedback. */
.ucr-btn:active, .ucr-donate:active, .ucr-amt-b:active, .ucr-card-btn:active { transform: scale(.97); }

/* Stats: one text column. */
@media (max-width: 699px) {
  .ucr-fact { grid-template-columns: 96px 1fr; gap: 16px; padding: 20px; }
  .ucr-fact-n { font-size: 32px; }
}

/* One charity row (the duplicate in #how is gone). Phone and tablet: a visible peek of the next card and a soft edge, so the scroll is obvious. Desktop: wrap to two rows of six. */
.ucr-listed .ucr-reach-row { padding-inline: 0; scroll-padding: 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.ucr-listed .ucr-reach-item { flex-basis: calc((100% - 40px) / 2.4); }
@media (min-width: 600px) { .ucr-listed .ucr-reach-item { flex-basis: calc((100% - 80px) / 3.4); } }
@media (min-width: 900px) {
  .ucr-listed .ucr-reach-row { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; gap: 24px; padding: 24px 0; }
  .ucr-listed .ucr-reach-item { flex-basis: calc((100% - 120px) / 6); }
}

/* Sunrise amounts: 2 by 2 on a phone, so $50 never sits alone. */
@media (max-width: 480px) { .ucr-amts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .ucr-amt-b { min-width: 0; } }

/* Footer and feedback block (both always on the dark ground here): same eight colours, white, soft light, light gold. */
.umgf-block[data-ground="dark"] { --umgf-ink-soft: #b8bcbd; }
.umgf[data-theme="dark"] { --umgf-ink: #fff; --umgf-ink-2: #b8bcbd; --umgf-accent: #d4a853; --umgf-focus: #d4a853; }
.umgf-block[data-ground="dark"] h2, .umgf-block[data-ground="dark"] label, .umgf-block[data-ground="dark"] legend { color: #fff !important; }
.umgf-block[data-ground="dark"] .umgf-contactline, .umgf-block[data-ground="dark"] .umgf-contactline a, .umgf-block[data-ground="dark"] .umgf-note { color: #b8bcbd !important; }
.umgf[data-theme="dark"] .umgf-site-name, .umgf[data-theme="dark"] .umgf-group-title { color: #fff; }
.umgf[data-theme="dark"] .umgf-tool-product { color: #d4a853; }
.uc-cause-setaside { color: #3d4a44; }
.umgf-block[data-ground="dark"] .umgf-opt, .umgf-block[data-ground="dark"] .umgf-legal, .umgf-block[data-ground="dark"] .umgf-legal span, .umgf-block[data-ground="dark"] .umgf-legal a { color: #b8bcbd !important; }

/* The one animation over 400ms: the 1s spinner inside a submit button while a form is sending. A turning wheel needs a full second to read as a wheel; it runs only while loading and stops under reduced motion. */
@media (prefers-reduced-motion: reduce) { .animate-spin { animation: none; } }
