/* Professional mosque website design system */

:root {
  --ink: #17211f;
  --muted: #65736f;
  --paper: #fffdf7;
  --cream: #f7f1e6;
  --sand: #eadfc8;
  --line: #e8ddc7;
  --teal: #075e57;
  --teal-2: #0d766d;
  --teal-soft: #e5f4ef;
  --gold: #c9952f;
  --gold-soft: #fff3cf;
  --shadow: 0 22px 70px rgba(23, 33, 31, 0.12);
  --shadow-soft: 0 14px 35px rgba(23, 33, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 149, 47, 0.13), transparent 34rem),
    linear-gradient(180deg, #fffaf0 0%, #fbf8f0 34%, #f7f1e6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(7, 94, 87, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 94, 87, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  background: rgba(255, 253, 247, 0.92) !important;
  border-bottom: 1px solid rgba(232, 221, 199, 0.9);
  box-shadow: 0 12px 35px rgba(23, 33, 31, 0.08);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

header > div {
  min-height: 76px;
}

#header-logo {
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid rgba(201, 149, 47, 0.35);
  background: #fff8e8;
  box-shadow: 0 8px 24px rgba(23, 33, 31, 0.1);
}

#header-site-name {
  display: block;
  max-width: 300px;
  color: var(--teal) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: #43514d;
  font-size: 0.92rem;
  font-weight: 650;
}

header nav a:hover,
header nav a.nav-active {
  color: var(--teal);
  background: rgba(7, 94, 87, 0.08);
}

header nav a.nav-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 44px;
  border: 1px solid rgba(7, 94, 87, 0.18);
  border-radius: 999px;
  color: var(--teal) !important;
  background: #fff8e8;
  font-weight: 800;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.6rem 1rem 1rem;
  background: rgba(255, 253, 247, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.65rem;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  font-weight: 700;
}

.mobile-menu a + a {
  margin-top: 0.25rem;
}

.mobile-menu a:hover,
.mobile-menu a.nav-active {
  color: var(--teal);
  background: var(--teal-soft);
}

.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

section {
  position: relative;
  background: transparent !important;
  margin-bottom: 0;
}

body > section,
body > main > section {
  padding-left: 1rem;
  padding-right: 1rem;
}

body > section.mt-20 {
  margin-top: 76px;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1,
#hero-title,
#about-preview-title {
  color: var(--teal) !important;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

p {
  color: var(--muted);
}

.text-teal-800,
.text-teal-700 {
  color: var(--teal) !important;
}

.text-gray-600,
.text-gray-700,
.text-gray-500 {
  color: var(--muted) !important;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 221, 199, 0.9);
  border-radius: 0.9rem;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal-2));
  opacity: 0.92;
}

.card:hover {
  border-color: rgba(201, 149, 47, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 14px 28px rgba(7, 94, 87, 0.24);
  font-weight: 800;
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #054940, #0a6b62);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  color: #0d766d;
  background: #ffffff;
  border: 1px solid rgba(13, 118, 109, 0.18);
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(13, 118, 109, 0.06);
  transform: translateY(-2px);
}

.link-strong {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal);
  font-weight: 800;
}

.link-strong:hover {
  color: #043d37;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border: 1px solid rgba(201, 149, 47, 0.36);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  color: var(--teal);
  background: rgba(255, 248, 232, 0.88);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-media {
  position: relative;
  min-height: clamp(330px, 40vw, 560px);
  border: 1px solid rgba(232, 221, 199, 0.95);
  border-radius: 1.25rem;
  background: var(--teal);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 28%, rgba(7, 94, 87, 0.52)),
    linear-gradient(135deg, rgba(255, 248, 232, 0.1), transparent 42%);
  pointer-events: none;
}

.hero-media img,
.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  padding: 1rem;
  color: #fff;
  background: rgba(7, 55, 51, 0.78);
  backdrop-filter: blur(12px);
}

.prayer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prayer-tile {
  border: 1px solid rgba(7, 94, 87, 0.11);
  border-radius: 0.9rem;
  padding: 0.72rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
  text-align: left;
}

.prayer-tile .label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.prayer-tile .time {
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 900;
}

.quick-card,
.event-card,
.donate-card,
.about-card {
  min-height: 100%;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--teal);
  background: var(--gold-soft);
  font-weight: 900;
}

.section-panel {
  border: 1px solid rgba(232, 221, 199, 0.95);
  border-radius: 1.25rem;
  background: rgba(255, 253, 247, 0.74);
  box-shadow: var(--shadow-soft);
}

.image-frame {
  overflow: hidden;
  border: 1px solid rgba(232, 221, 199, 0.95);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.contact-line {
  border-bottom: 1px solid rgba(232, 221, 199, 0.85);
  padding: 0.8rem 0;
}

.contact-line span:first-child {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(101, 115, 111, 0.22) !important;
  border-radius: 0.85rem;
  background: #fffef9;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(7, 94, 87, 0.6) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 94, 87, 0.12);
  outline: none;
}

.form-status {
  display: none;
  border: 1px solid rgba(7, 94, 87, 0.18);
  border-radius: 0.85rem;
  padding: 0.8rem 0.95rem;
  color: var(--teal);
  background: var(--teal-soft);
  font-weight: 800;
}

.form-status.is-visible {
  display: block;
}

.table-wrap {
  border: 1px solid rgba(232, 221, 199, 0.95);
  border-radius: 1rem;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

th,
td {
  border-color: rgba(232, 221, 199, 0.9) !important;
  white-space: nowrap;
}

th {
  color: var(--teal) !important;
  background: #f0ece0 !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: rgba(229, 244, 239, 0.35);
}

tbody tr:hover {
  background: rgba(255, 243, 207, 0.55);
}

footer {
  margin-top: 2rem;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(201, 149, 47, 0.28), transparent 25rem),
    linear-gradient(180deg, #075e57 0%, #063d38 100%) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.78) !important;
}

footer a:hover {
  color: #fff !important;
}

footer p,
footer .text-teal-100 {
  color: rgba(255, 255, 255, 0.76) !important;
}

@media (min-width: 640px) {
  .prayer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .prayer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #header-site-name {
    max-width: 210px;
  }

  header > div {
    min-height: 70px;
  }

  .mobile-menu {
    top: 70px;
  }
}

@media (max-width: 767px) {
  body > section.mt-20 {
    margin-top: 70px;
    padding-top: 2.4rem;
  }

  #header-logo {
    width: 42px;
    height: 42px;
  }

  #hero-title {
    font-size: clamp(2.35rem, 12vw, 3.25rem) !important;
  }

  .hero-media {
    min-height: 330px;
    border-radius: 1rem;
  }

  .section-panel,
  .image-frame {
    border-radius: 1rem;
  }

  .card {
    border-radius: 0.8rem;
  }

  footer .grid {
    gap: 1.6rem;
  }
}

@media (max-width: 440px) {
  #header-site-name {
    max-width: 165px;
    font-size: 0.95rem;
  }

  .mobile-menu-button {
    min-width: 42px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .prayer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.welcome-arabic {
  font-size: 1.25rem;
}

.next-prayer-card{
    background: linear-gradient(135deg,#0f766e,#115e59);
    color:white;
    padding:1rem;
    border-radius:18px;
    text-align:center;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
}

#next-prayer-countdown{
    font-size:1.25rem;
    font-weight:500;
    letter-spacing:2px;
}

.coming-soon-events {
    margin-bottom: 5rem;
}

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: staggered delay for children */
.reveal-delay {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.site-footer {
  background:
    radial-gradient(circle at top right, rgba(201, 149, 47, 0.22), transparent 22rem),
    linear-gradient(180deg, #075e57 0%, #063d38 100%);
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.footer-pill-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: #fff;
}

.footer-link {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-hours-label {
  color: #fff;
  font-weight: 700;
}

.footer-hours-time {
  color: rgba(255, 255, 255, 0.78);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.team-card {
  position: relative;
}

.team-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #0f766e;
  aspect-ratio: 3 / 4;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.team-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s ease;
  display: block;
}

.team-card:hover .team-card-media img {
  transform: scale(1.06);
}

.team-card-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 1rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(4, 31, 28, 0) 0%, rgba(4, 31, 28, 0.45) 38%, rgba(4, 31, 28, 0.88) 100%);
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform, clip-path;
  -webkit-mask-image: radial-gradient(circle var(--mask-size, 0px) at var(--mask-x, 50%) var(--mask-y, 50%), #000 99%, transparent 100%);
  mask-image: radial-gradient(circle var(--mask-size, 0px) at var(--mask-x, 50%) var(--mask-y, 50%), #000 99%, transparent 100%);
  transition: opacity 0.35s ease;
}

.team-card.is-active .team-card-mask {
  opacity: 1;
  transform: translateY(0);
}

.team-card-content {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.06);
}

.team-card-content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.team-role {
  margin: 0 0 0.35rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.team-card:hover .team-card-content {
  border-color: rgba(255, 255, 255, 0.32);
}

@media (hover: none) {
  .team-card-mask {
    opacity: 1;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.team-tab {
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 118, 109, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #0d766d;
  font-weight: 700;
  transition: all 0.25s ease;
}

.team-tab:hover {
  background: rgba(13, 118, 109, 0.08);
  transform: translateY(-1px);
}

.team-tab.is-active {
  background: linear-gradient(135deg, #075e57, #0d766d);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(7, 94, 87, 0.18);
}

.team-card.is-hidden {
  display: none;
}

.prayer-grid .is-next-prayer {
  border: 3px solid rgba(201, 149, 47, 0.55);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(237, 253, 250, 0.98));
  box-shadow: 0 14px 30px rgba(7, 94, 87, 0.12);
  transform: translateY(-2px);
}

.prayer-grid .prayer-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.prayer-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.prayer-item.is-next-prayer {
  border: 1px solid rgba(201, 149, 47, 0.55);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(237, 253, 250, 0.98));
  box-shadow: 0 14px 30px rgba(7, 94, 87, 0.12);
  transform: translateY(-2px);
}

/* =========================================================
   SECTION ORNAMENT SYSTEM
   ========================================================= */

.section-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-shell::before,
.section-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

/* Shared subtle glow */
.section-shell .soft-glow {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
  opacity: 0.75;
}

/* =========================================================
   HERO VARIANTS
   ========================================================= */

.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  z-index: -1;
  width: min(36vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 149, 47, 0.26);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 149, 47, 0.22), transparent 64%);
}

.hero-shell::after {
  content: "";
  position: absolute;
  left: -4rem;
  bottom: -5rem;
  z-index: -1;
  width: min(22vw, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(13, 118, 109, 0.16);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(13, 118, 109, 0.12), transparent 68%);
  opacity: 0.85;
}

/* =========================================================
   ORNAMENT PRESET A
   Large top-right + small bottom-left
   ========================================================= */

.shell-ornament-a::before {
  width: min(34vw, 380px);
  aspect-ratio: 1;
  right: -7rem;
  top: -4rem;
  border: 1px solid rgba(201, 149, 47, 0.18);
  background: radial-gradient(circle, rgba(201, 149, 47, 0.18), transparent 70%);
}

.shell-ornament-a::after {
  width: min(18vw, 220px);
  aspect-ratio: 1;
  left: -4rem;
  bottom: -3rem;
  border: 1px solid rgba(13, 118, 109, 0.12);
  background: radial-gradient(circle, rgba(13, 118, 109, 0.10), transparent 72%);
}

/* =========================================================
   ORNAMENT PRESET B
   Left glow + right lower circle
   ========================================================= */

.shell-ornament-b::before {
  width: min(28vw, 320px);
  aspect-ratio: 1;
  left: -5rem;
  top: 2rem;
  border: 1px solid rgba(13, 118, 109, 0.14);
  background: radial-gradient(circle, rgba(13, 118, 109, 0.12), transparent 72%);
}

.shell-ornament-b::after {
  width: min(14vw, 180px);
  aspect-ratio: 1;
  right: 8%;
  bottom: -3rem;
  border: 1px solid rgba(201, 149, 47, 0.14);
  background: radial-gradient(circle, rgba(201, 149, 47, 0.14), transparent 74%);
}

/* =========================================================
   ORNAMENT PRESET C
   Big soft circle behind right side
   ========================================================= */

.shell-ornament-c::before {
  width: min(40vw, 480px);
  aspect-ratio: 1;
  right: 10%;
  top: -5rem;
  border: 1px solid rgba(201, 149, 47, 0.10);
  background: radial-gradient(circle, rgba(201, 149, 47, 0.10), transparent 75%);
  filter: blur(2px);
}

.shell-ornament-c::after {
  width: min(22vw, 260px);
  aspect-ratio: 1;
  left: -4rem;
  bottom: -4rem;
  border: 1px solid rgba(13, 118, 109, 0.10);
  background: radial-gradient(circle, rgba(13, 118, 109, 0.10), transparent 75%);
  opacity: 0.9;
}

/* =========================================================
   ORNAMENT PRESET D
   Faint balanced background
   ========================================================= */

.shell-ornament-d::before {
  width: min(30vw, 340px);
  aspect-ratio: 1;
  left: 6%;
  top: -3rem;
  border: 1px solid rgba(201, 149, 47, 0.12);
  background: radial-gradient(circle, rgba(201, 149, 47, 0.10), transparent 76%);
}

.shell-ornament-d::after {
  width: min(20vw, 240px);
  aspect-ratio: 1;
  right: 4%;
  bottom: -4rem;
  border: 1px solid rgba(13, 118, 109, 0.10);
  background: radial-gradient(circle, rgba(13, 118, 109, 0.08), transparent 78%);
}

/* =========================================================
   OPTIONAL SOFT ACCENT LAYER
   ========================================================= */

.soft-circle-a {
  position: absolute;
  width: min(16vw, 180px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 149, 47, 0.18), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

.soft-circle-b {
  position: absolute;
  width: min(12vw, 140px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(13, 118, 109, 0.14), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */

@media (max-width: 768px) {
  .hero-shell::before {
    width: min(52vw, 300px);
    inset: 0.5rem 0.5rem auto auto;
  }

  .hero-shell::after,
  .shell-ornament-a::after,
  .shell-ornament-b::after,
  .shell-ornament-c::after,
  .shell-ornament-d::after {
    width: min(24vw, 180px);
  }

  .shell-ornament-a::before,
  .shell-ornament-b::before,
  .shell-ornament-c::before,
  .shell-ornament-d::before {
    width: min(48vw, 280px);
  }
}
/* Events page: mobile-first, compact event browser */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.events-page { min-height: 70vh; }

.events-hero {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.events-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.events-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 253, 247, .8);
}

.events-summary strong { color: var(--teal); font-size: 1.25rem; }
.events-summary span { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }

.events-browser {
  padding: .85rem;
  border: 1px solid rgba(232, 221, 199, .95);
  border-radius: 1.25rem;
  background: rgba(255, 253, 247, .78);
  box-shadow: var(--shadow-soft);
}

.events-toolbar { display: grid; gap: .75rem; }

.events-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: .25rem;
  border-radius: .9rem;
  background: var(--teal-soft);
}

.events-tab {
  min-height: 42px;
  border: 0;
  border-radius: .7rem;
  color: var(--teal);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.events-tab.is-active {
  background: #fff;
  box-shadow: 0 5px 16px rgba(7, 94, 87, .12);
}

.events-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 46px;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: #fff;
}

.events-search svg,
.event-card-meta svg,
.event-detail-row svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.events-search svg { color: var(--teal); }
.events-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }

.events-filter-chips {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .8rem 0 .15rem;
  scrollbar-width: none;
}
.events-filter-chips::-webkit-scrollbar { display: none; }

.events-filter {
  flex: 0 0 auto;
  min-height: 34px;
  padding: .35rem .75rem;
  border: 1px solid rgba(7, 94, 87, .14);
  border-radius: 999px;
  color: #4b5d58;
  background: #fff;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}
.events-filter.is-active { color: #fff; border-color: var(--teal); background: var(--teal); }

.events-results-status { margin: .5rem .1rem .65rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
.events-list { display: grid; gap: .65rem; }

.event-compact-card {
  overflow: hidden;
  border: 1px solid rgba(7, 94, 87, .12);
  border-radius: 1rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.event-compact-card:hover { border-color: rgba(7, 94, 87, .28); }
.event-compact-card.is-open { border-color: rgba(7, 94, 87, .28); box-shadow: 0 10px 28px rgba(23, 33, 31, .08); }

.event-card-trigger {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 22px;
  gap: .75rem;
  align-items: center;
  width: 100%;
  padding: .75rem;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.event-date-badge {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: .45rem;
  border-radius: .8rem;
  color: var(--teal);
  background: var(--teal-soft);
  text-align: center;
}
.event-date-badge span { font-size: .62rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.event-date-badge strong { display: -webkit-box; overflow: hidden; font-size: .75rem; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.event-card-main { min-width: 0; }
.event-card-topline { display: flex; margin-bottom: .15rem; }
.event-category { color: var(--gold); font-size: .67rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.event-card-title { display: block; color: var(--teal); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.25; }
.event-card-meta { display: flex; align-items: center; gap: .3rem; margin-top: .35rem; overflow: hidden; color: var(--muted); font-size: .72rem; white-space: nowrap; text-overflow: ellipsis; }
.event-card-meta i { color: var(--line); font-style: normal; }
.event-card-meta svg:nth-of-type(2) { margin-left: .15rem; }

.event-expand-icon { position: relative; width: 20px; height: 20px; border-radius: 999px; background: var(--cream); }
.event-expand-icon::before,
.event-expand-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 1.5px; border-radius: 99px; background: var(--teal); transform: translate(-50%, -50%); transition: transform .2s ease; }
.event-expand-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.event-compact-card.is-open .event-expand-icon::after { transform: translate(-50%, -50%) rotate(0); }

.event-card-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.event-compact-card.is-open .event-card-details { grid-template-rows: 1fr; }
.event-card-details-inner { min-height: 0; overflow: hidden; }
.event-card-details-inner > p { margin: 0; padding: .1rem .9rem .75rem; color: #53635f; font-size: .88rem; line-height: 1.55; }
.event-detail-row { display: flex; flex-wrap: wrap; gap: .45rem .85rem; padding: .7rem .9rem; border-top: 1px solid var(--line); color: var(--muted); background: #fffdf8; font-size: .72rem; font-weight: 650; }
.event-detail-row span { display: inline-flex; align-items: center; gap: .3rem; }

.events-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.events-empty strong, .events-empty span { display: block; }
.events-empty strong { color: var(--teal); }

@media (min-width: 640px) {
  .events-browser { padding: 1rem; }
  .events-toolbar { grid-template-columns: minmax(280px, .75fr) minmax(240px, .55fr); justify-content: space-between; }
  .event-card-trigger { grid-template-columns: 92px minmax(0, 1fr) 24px; padding: .9rem; }
  .event-date-badge { min-height: 72px; }
  .event-card-title { font-size: 1.08rem; }
}

@media (min-width: 768px) {
  .events-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .events-summary { min-width: 270px; }
  .events-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .event-compact-card.is-open { grid-row: span 2; }
}

/* 2026 mobile-first refinement and performance layer */
:root {
  --event-blue: #2f6f9f;
  --event-blue-soft: #eaf4fb;
  --event-violet: #7458a6;
  --event-violet-soft: #f1ecfa;
  --event-coral: #a95645;
  --event-coral-soft: #faece7;
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, [role="button"], a { touch-action: manipulation; }
main { overflow: clip; }

/* Avoid rendering work for sections far below the mobile viewport. */
main > section:not(:first-child),
body > section:not(:first-of-type),
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 620px;
}

/* Modern event search */
.events-search {
  position: relative;
  min-height: 50px;
  padding: 0 .45rem 0 .95rem;
  border: 1px solid rgba(7, 94, 87, .16);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #fffcf6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px rgba(23,33,31,.06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.events-search::after {
  content: "Search";
  flex: 0 0 auto;
  padding: .38rem .75rem;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.events-search:focus-within {
  border-color: rgba(7, 94, 87, .58);
  box-shadow: 0 0 0 4px rgba(7,94,87,.1), 0 12px 30px rgba(23,33,31,.08);
}
.events-search input { min-width: 0; font-size: .94rem; }
.events-search input::placeholder { color: #89938f; opacity: 1; }

/* Colour-coded tabs and filters */
.events-tab:first-child.is-active { color: #075e57; background: #fff; }
.events-tab:last-child.is-active { color: #7458a6; background: #fff; }
.events-filter[data-event-filter="Learning"] { color: #2f6f9f; border-color: rgba(47,111,159,.24); background: var(--event-blue-soft); }
.events-filter[data-event-filter="Gathering"] { color: #8b5c17; border-color: rgba(201,149,47,.3); background: var(--gold-soft); }
.events-filter[data-event-filter="Learning"].is-active { color:#fff; border-color:var(--event-blue); background:var(--event-blue); }
.events-filter[data-event-filter="Gathering"].is-active { color:#fff; border-color:#a87318; background:#a87318; }
.events-filter[data-event-filter="all"].is-active { color:#fff; border-color:var(--teal); background:var(--teal); }

/* Every weekly card is distinguishable at a glance. */
.event-compact-card { position: relative; border-left-width: 4px; }
.event-compact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--event-accent, var(--teal));
}
.event-compact-card.tone-learning { --event-accent: var(--event-blue); --event-soft: var(--event-blue-soft); }
.event-compact-card.tone-gathering-1 { --event-accent: var(--gold); --event-soft: var(--gold-soft); }
.event-compact-card.tone-gathering-2 { --event-accent: var(--event-violet); --event-soft: var(--event-violet-soft); }
.event-compact-card.tone-gathering-3 { --event-accent: var(--event-coral); --event-soft: var(--event-coral-soft); }
.event-compact-card.tone-gathering-4 { --event-accent: var(--teal-2); --event-soft: var(--teal-soft); }
.event-compact-card .event-date-badge { color: var(--event-accent); background: var(--event-soft); }
.event-compact-card .event-category { color: var(--event-accent); }
.event-compact-card .event-expand-icon { background: var(--event-soft); }
.event-compact-card .event-expand-icon::before,
.event-compact-card .event-expand-icon::after { background: var(--event-accent); }
.event-compact-card.is-open { border-color: color-mix(in srgb, var(--event-accent) 42%, white); }

/* Mobile is the baseline. */
@media (max-width: 767px) {
  html { scroll-padding-top: 70px; }
  body { min-width: 0; background-attachment: scroll; }
  body::before { background-size: 32px 32px; opacity: .28; }
  header > div { min-height: 68px; padding-top: .55rem !important; padding-bottom: .55rem !important; }
  #header-logo { width: 42px; height: 42px; }
  #header-site-name { max-width: min(58vw, 220px); font-size: .92rem; }
  .mobile-menu { top: 68px; max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }

  body > section,
  body > main > section { padding-left: .9rem; padding-right: .9rem; }
  body > section.mt-20,
  main.mt-20 { margin-top: 68px !important; }
  main { padding-top: 1.25rem !important; padding-bottom: 2.5rem !important; }
  h1 { font-size: clamp(2rem, 10vw, 3rem) !important; }
  h2 { font-size: clamp(1.55rem, 7vw, 2.2rem) !important; }
  p { overflow-wrap: anywhere; }

  .section-panel, .card, .donate-card, .event-card { border-radius: 1rem; }
  .hero-shell { padding-top: 1.5rem !important; padding-bottom: 2rem !important; }
  .hero-media { min-height: 245px; }
  .hero-badge { max-width: calc(100% - 1rem); }
  .prayer-grid { gap: .55rem; }
  .prayer-tile, .prayer-item { min-width: 0; padding: .75rem .55rem; }

  .events-page { padding-inline: .75rem !important; }
  .events-hero { margin-bottom: .9rem; }
  .events-summary > div { padding: .65rem .75rem; }
  .events-browser { margin-inline: -.15rem; padding: .65rem; border-radius: 1rem; }
  .events-tabs { position: sticky; top: 74px; z-index: 8; box-shadow: 0 8px 20px rgba(23,33,31,.06); }
  .events-search::after { display: none; }
  .events-filter-chips { margin-right: -.65rem; padding-right: .65rem; scroll-snap-type: x proximity; }
  .events-filter { min-height: 40px; scroll-snap-align: start; }
  .event-card-trigger { grid-template-columns: 68px minmax(0,1fr) 22px; gap: .6rem; padding: .68rem .62rem; }
  .event-card-title { font-size: .95rem; }
  .event-card-meta { font-size: .68rem; }
  .event-date-badge { min-height: 64px; padding: .35rem; }
  .event-card-details-inner > p { padding-inline: .75rem; }
  .event-detail-row { padding-inline: .75rem; }

  .site-footer .grid-cols-2 { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  input, textarea, select { font-size: 16px !important; } /* Prevent iOS zoom. */
}

@media (max-width: 380px) {
  #header-site-name { max-width: 52vw; font-size: .82rem; }
  .events-summary span { font-size: .68rem; }
  .event-card-trigger { grid-template-columns: 61px minmax(0,1fr) 20px; gap: .5rem; }
  .event-date-badge { min-height: 60px; }
  .event-card-meta svg:nth-of-type(2), .event-card-meta svg:nth-of-type(2) + * { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 2026 full-site compact interaction revamp */
.interactive-site { --compact-radius: 1.25rem; }
.about-revamp, .gallery-revamp { overflow: visible; }
.about-hero-compact { display:grid; gap:1rem; padding:1rem; border:1px solid var(--line); border-radius:1.5rem; background:rgba(255,253,248,.9); box-shadow:0 20px 60px rgba(27,46,42,.08); }
.about-hero-copy { display:flex; flex-direction:column; justify-content:center; padding:.45rem; }
.about-hero-copy h1 { margin:0 0 .7rem; line-height:1.02; }
.about-lead { max-width:620px; color:var(--muted); font-size:1rem; line-height:1.65; }
.about-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1rem; }
.about-hero-media { position:relative; min-height:230px; overflow:hidden; border-radius:1.15rem; }
.about-hero-media img { width:100%; height:100%; object-fit:cover; }
.about-capacity { position:absolute; right:.75rem; bottom:.75rem; display:flex; align-items:center; gap:.55rem; padding:.65rem .8rem; border:1px solid rgba(255,255,255,.5); border-radius:1rem; color:white; background:rgba(7,94,87,.88); backdrop-filter:blur(10px); }
.about-capacity strong { font-family:Georgia,serif; font-size:1.55rem; line-height:1; }
.about-capacity span { max-width:70px; font-size:.67rem; line-height:1.2; text-transform:uppercase; letter-spacing:.06em; }
.about-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; margin:1rem 0; }
.about-facts div { padding:.85rem; border:1px solid var(--line); border-radius:1rem; background:#fff; }
.about-facts strong,.about-facts span { display:block; }
.about-facts strong { color:var(--teal); font-family:Georgia,serif; font-size:1.35rem; }
.about-facts span { color:var(--muted); font-size:.72rem; }
.about-browser,.gallery-browser { padding:.75rem; border:1px solid var(--line); border-radius:1.4rem; background:rgba(255,253,248,.86); }
.compact-tabs { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:.3rem; padding:.3rem; border-radius:1rem; background:var(--teal-soft); overflow-x:auto; scrollbar-width:none; }
.compact-tabs::-webkit-scrollbar { display:none; }
.compact-tab { min-width:max-content; min-height:44px; padding:.65rem .85rem; border:0; border-radius:.75rem; color:var(--teal); background:transparent; font-weight:800; cursor:pointer; }
.compact-tab.is-active { background:#fff; box-shadow:0 6px 18px rgba(20,42,38,.08); }
.compact-tab-panel { padding-top:.85rem; }
.about-value-grid { display:grid; gap:.65rem; }
.about-value-grid .card { margin:0; padding:1rem; border-left:4px solid var(--gold); }
.about-value-grid .card:nth-child(2){border-left-color:var(--event-blue)}
.about-value-grid .card:nth-child(3){border-left-color:var(--event-violet)}
.about-value-grid h2 { margin-bottom:.35rem!important; font-size:1.05rem!important; }
.about-value-grid p { margin:0; color:var(--muted); font-size:.88rem; line-height:1.55; }
.about-feature-card { display:grid; gap:1rem; margin-top:.75rem; padding:1rem; border-radius:1rem; background:linear-gradient(135deg,#075e57,#0b756b); color:#fff; }
.about-feature-card h2 { margin:.3rem 0 .55rem; color:#fff; font-size:1.45rem!important; }
.about-feature-card p { color:#d9f2ed; }
.about-feature-card img { width:100%; height:180px; object-fit:cover; border-radius:.8rem; }
.timeline-controls { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.2rem .2rem .65rem; color:var(--muted); font-size:.8rem; }
.timeline-controls button { border:0; color:var(--teal); background:transparent; font-weight:800; cursor:pointer; }
.compact-timeline { display:grid; gap:.55rem; }
.timeline-item { overflow:hidden; border:1px solid var(--line); border-radius:1rem; background:#fff; }
.timeline-trigger { display:grid; grid-template-columns:64px minmax(0,1fr) 22px; align-items:center; gap:.7rem; width:100%; padding:.8rem; border:0; text-align:left; background:transparent; cursor:pointer; }
.timeline-year { display:grid; place-items:center; min-height:54px; border-radius:.75rem; color:var(--teal); background:var(--teal-soft); font-weight:900; }
.timeline-trigger strong,.timeline-trigger small { display:block; }
.timeline-trigger strong { color:var(--teal); font-family:Georgia,serif; font-size:.98rem; }
.timeline-trigger small { margin-top:.18rem; color:var(--muted); font-size:.7rem; }
.timeline-trigger i { position:relative; width:20px; height:20px; border-radius:50%; background:var(--cream); }
.timeline-trigger i:before,.timeline-trigger i:after { content:""; position:absolute; top:50%; left:50%; width:9px; height:1.5px; background:var(--teal); transform:translate(-50%,-50%); }
.timeline-trigger i:after { transform:translate(-50%,-50%) rotate(90deg); }
.timeline-item.is-open .timeline-trigger i:after { transform:translate(-50%,-50%); }
.timeline-content { display:grid; grid-template-rows:0fr; transition:grid-template-rows .25s ease; }
.timeline-content>div { min-height:0; overflow:hidden; }
.timeline-item.is-open .timeline-content { grid-template-rows:1fr; }
.timeline-content p { margin:0; padding:0 .9rem .9rem; color:#53635f; font-size:.88rem; line-height:1.6; }
.community-card-grid { display:grid; gap:.65rem; }
.community-action-card { position:relative; display:block; min-height:150px; padding:1rem; overflow:hidden; border:1px solid var(--line); border-radius:1rem; background:#fff; }
.community-action-card>span { position:absolute; right:.7rem; top:.25rem; color:rgba(7,94,87,.08); font-family:Georgia,serif; font-size:3.4rem; font-weight:900; }
.community-action-card strong,.community-action-card p,.community-action-card b { position:relative; display:block; }
.community-action-card strong { color:var(--teal); font-family:Georgia,serif; font-size:1.1rem; }
.community-action-card p { margin:.4rem 0 .8rem; color:var(--muted); font-size:.84rem; }
.community-action-card b { color:var(--gold); font-size:.76rem; }
.gallery-heading { display:grid; gap:.45rem; margin-bottom:1rem; }
.gallery-heading p:last-child { max-width:620px; color:var(--muted); }
.gallery-filters { grid-auto-columns:max-content; justify-content:start; }
.gallery-grid-compact { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; margin-top:.75rem; }
.gallery-tile { position:relative; min-height:155px; padding:0; overflow:hidden; border:0; border-radius:1rem; background:#ddd; cursor:zoom-in; }
.gallery-tile img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.gallery-tile:hover img { transform:scale(1.04); }
.gallery-tile span { position:absolute; inset:auto .55rem .55rem; padding:.45rem .6rem; border-radius:.65rem; color:white; background:rgba(7,50,47,.76); backdrop-filter:blur(8px); font-size:.72rem; font-weight:800; }
.gallery-tile[hidden] { display:none; }
.site-lightbox { width:min(92vw,900px); padding:0; border:0; border-radius:1.1rem; background:#071b19; box-shadow:0 30px 90px rgba(0,0,0,.4); }
.site-lightbox::backdrop { background:rgba(0,0,0,.72); backdrop-filter:blur(5px); }
.site-lightbox img { display:block; width:100%; max-height:82vh; object-fit:contain; }
.site-lightbox button { position:absolute; top:.6rem; right:.6rem; z-index:2; width:42px; height:42px; border:0; border-radius:50%; color:#fff; background:rgba(0,0,0,.55); font-size:1.5rem; }
.mobile-card-rail { scroll-snap-type:x mandatory; }
.section-disclosure { border-radius:1rem; }

@media (max-width:767px){
  .home-feature-section { padding-top:.55rem!important; padding-bottom:.55rem!important; }
  .home-feature-section .section-panel { padding:1rem!important; }
  .home-feature-section .section-panel>div:first-child { max-height:180px; overflow:hidden; border-radius:.8rem; }
  .home-feature-section .section-panel img { height:180px!important; object-fit:cover; }
  .mobile-card-rail { display:flex!important; gap:.75rem!important; overflow-x:auto; margin-right:-.9rem; padding-right:.9rem; padding-bottom:.4rem; scrollbar-width:none; }
  .mobile-card-rail::-webkit-scrollbar{display:none}
  .mobile-card-rail>div { flex:0 0 72%; scroll-snap-align:start; }
  .mobile-card-rail>div img { height:220px!important; }
  #contact-form textarea { min-height:110px; }
  .team-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:.65rem!important; }
  .team-card-content h3 { font-size:.85rem!important; }
  .team-card-content p { font-size:.68rem!important; }
  .team-tabs { position:sticky; top:72px; z-index:8; overflow-x:auto; white-space:nowrap; }
  .about-browser .compact-tabs { position:sticky; top:72px; z-index:9; }
}
@media (min-width:768px){
  .about-hero-compact { grid-template-columns:1.05fr .95fr; padding:1.25rem; }
  .about-hero-media { min-height:360px; }
  .about-facts { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .about-facts div { padding:1rem 1.1rem; }
  .about-value-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .about-feature-card { grid-template-columns:1.1fr .9fr; align-items:center; padding:1.2rem; }
  .community-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery-heading { grid-template-columns:1fr 1fr; align-items:end; }
  .gallery-grid-compact { grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:185px; }
  .gallery-feature { grid-column:span 2; grid-row:span 2; }
}

.mobile-view-tabs { display:none; }
.compact-detail-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0; border:0; color:var(--teal); background:transparent; text-align:left; cursor:pointer; }
.compact-detail-toggle::after { content:"+"; display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:50%; background:var(--teal-soft); font-size:1.15rem; }
.compact-detail-card.is-open .compact-detail-toggle::after { content:"−"; }
.compact-detail-body { display:grid; grid-template-rows:0fr; transition:grid-template-rows .25s ease; }
.compact-detail-body>div { min-height:0; overflow:hidden; }
.compact-detail-card.is-open .compact-detail-body { grid-template-rows:1fr; }
.footer-accordion-button { display:none; }

@media(max-width:767px){
  .mobile-switcher { display:block!important; }
  .mobile-view-tabs { display:grid; grid-template-columns:repeat(2,1fr); gap:.3rem; margin-bottom:.7rem; padding:.3rem; border:1px solid var(--line); border-radius:1rem; background:var(--teal-soft); }
  .mobile-view-tab { min-height:42px; border:0; border-radius:.75rem; color:var(--teal); background:transparent; font-weight:800; }
  .mobile-view-tab.is-active { background:#fff; box-shadow:0 5px 16px rgba(20,42,38,.08); }
  .mobile-view-panel[hidden] { display:none!important; }
  .site-footer>.max-w-6xl>.grid { gap:.75rem!important; }
  .site-footer>.max-w-6xl>.grid>div:not(:first-child) { border-top:1px solid rgba(255,255,255,.16); padding-top:.25rem; }
  .site-footer h4 { display:none; }
  .footer-accordion-button { display:flex; width:100%; align-items:center; justify-content:space-between; padding:.8rem 0; border:0; color:#fff; background:transparent; font-weight:800; }
  .footer-accordion-button::after { content:"+"; font-size:1.2rem; }
  .footer-accordion-item.is-open .footer-accordion-button::after { content:"−"; }
  .footer-accordion-content { display:grid; grid-template-rows:0fr; }
  .footer-accordion-content>div { min-height:0; overflow:hidden; }
  .footer-accordion-item.is-open .footer-accordion-content { grid-template-rows:1fr; }
}

/* =========================================================
   2026 v3: psychological first impression + mobile navigation
   ========================================================= */
.btn-gold {
  background: linear-gradient(135deg, #c9952f, #a87318) !important;
  box-shadow: 0 14px 28px rgba(168, 115, 24, .24) !important;
}

.mobile-bottom-nav { display: none; }
.mobile-bottom-nav svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Home: compact mobile-first landing experience */
.home-main { overflow: visible; }
.home-hero { padding: 0 0 .75rem !important; }
.home-hero-grid {
  display: grid;
  gap: .85rem;
  align-items: stretch;
}
.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-trust-chips {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  margin: .1rem 0 .9rem;
  scrollbar-width: none;
}
.hero-trust-chips::-webkit-scrollbar { display: none; }
.hero-trust-chips span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 38px;
  padding: .45rem .7rem;
  border: 1px solid rgba(7, 94, 87, .14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.86);
  font-size: .76rem;
  font-weight: 760;
}
.hero-trust-chips strong { color: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.home-hero-media { min-height: 220px; }

.home-prayer-widget {
  align-self: stretch;
  padding: .85rem;
  background: rgba(255, 253, 247, .9);
}
.prayer-widget-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}
.prayer-widget-top h2 { margin: .25rem 0 0; }
.prayer-widget-date {
  display: grid;
  justify-items: end;
  gap: .35rem;
  min-width: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-align: right;
}
.prayer-toggle {
  min-height: 34px;
  padding: .35rem .7rem;
  border: 1px solid rgba(7,94,87,.14);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: .72rem;
  font-weight: 850;
}
.prayer-widget-link {
  display: inline-flex;
  margin-top: .75rem;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 850;
}
.home-prayer-widget .next-prayer-card { margin: .5rem 0 .75rem; }

.home-action-hub,
.home-snapshot { padding-top: .8rem !important; padding-bottom: .8rem !important; }
.home-hub-header {
  display: grid;
  gap: .45rem;
  margin-bottom: .85rem;
}
.home-hub-header h2 {
  margin: .35rem 0 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.1;
}
.home-hub-header p:last-child { max-width: 620px; font-size: .9rem; }
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.home-quick-card {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.home-quick-card span {
  position: absolute;
  top: .45rem;
  right: .65rem;
  color: rgba(7,94,87,.08);
  font-family: Georgia, serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}
.home-quick-card strong {
  position: relative;
  display: block;
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.15;
}
.home-quick-card small {
  position: relative;
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.3;
}
.home-quick-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--quick-accent, var(--teal));
}
.home-quick-card.tone-teal { --quick-accent: var(--teal); }
.home-quick-card.tone-blue { --quick-accent: var(--event-blue); }
.home-quick-card.tone-gold { --quick-accent: var(--gold); }
.home-quick-card.tone-violet { --quick-accent: var(--event-violet); }
.home-snapshot-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}
.home-snapshot-copy { display: flex; flex-direction: column; justify-content: center; gap: .7rem; }
.home-snapshot-copy p { margin: 0; }
.snapshot-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.home-snapshot-image img { min-height: 170px; max-height: 260px; object-fit: cover; }

/* About page: emotional hero + real timeline */
.about-hero-psych {
  display: grid;
  gap: 1rem;
  padding: .75rem;
  border: 1px solid rgba(232, 221, 199, .95);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(201,149,47,.18), transparent 22rem),
    rgba(255,253,247,.92);
  box-shadow: 0 24px 70px rgba(23,33,31,.1);
}
.about-hero-image {
  position: relative;
  min-height: 230px;
  border-radius: 1.15rem;
}
.about-hero-image img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.about-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(4, 45, 41, .74));
  pointer-events: none;
}
.about-hero-overlay {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 2;
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 1rem;
  background: rgba(7, 50, 47, .72);
  backdrop-filter: blur(10px);
  color: #fff;
}
.about-hero-overlay span,
.about-hero-overlay strong { display: block; }
.about-hero-overlay span { color: rgba(255,255,255,.78); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.about-hero-overlay strong { margin-top: .25rem; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.15; }
.about-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .9rem;
}
.about-promise-grid div {
  padding: .75rem;
  border: 1px solid rgba(7,94,87,.12);
  border-radius: .9rem;
  background: rgba(255,255,255,.78);
}
.about-promise-grid strong,
.about-promise-grid span { display: block; }
.about-promise-grid strong { color: var(--teal); font-family: Georgia, serif; font-size: 1rem; }
.about-promise-grid span { margin-top: .18rem; color: var(--muted); font-size: .68rem; line-height: 1.25; }
.story-timeline {
  position: relative;
  display: grid;
  gap: .75rem;
  padding-left: 1.1rem;
  margin: 0;
  list-style: none;
}
.story-timeline::before {
  content: "";
  position: absolute;
  left: .32rem;
  top: .55rem;
  bottom: .55rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--teal-2));
}
.story-timeline .timeline-item {
  position: relative;
  overflow: visible;
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(23,33,31,.06);
}
.story-timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: -1.03rem;
  top: 1.25rem;
  width: .8rem;
  height: .8rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,149,47,.22);
}
.story-timeline .timeline-item.is-open::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(7,94,87,.14); }
.story-timeline .timeline-trigger {
  grid-template-columns: 70px minmax(0,1fr) 24px;
  padding: .85rem;
}
.story-timeline .timeline-year {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
}
.story-timeline .timeline-content p { padding: 0 1rem 1rem 5.7rem; }

/* Donation page: redesigned compact donation flow */
.donate-revamp { overflow: visible; }
.donate-hero {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
.donate-hero-copy,
.donate-quick-card,
.donate-browser {
  border: 1px solid rgba(232,221,199,.95);
  border-radius: 1.35rem;
  background: rgba(255,253,247,.92);
  box-shadow: var(--shadow-soft);
}
.donate-hero-copy {
  padding: 1.05rem;
  background:
    radial-gradient(circle at top right, rgba(201,149,47,.16), transparent 18rem),
    rgba(255,253,247,.92);
}
.donate-lead { margin-bottom: .45rem; font-size: 1.02rem; }
.donate-impact-grid {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}
.donate-impact-grid div {
  padding: .72rem .8rem;
  border: 1px solid rgba(7,94,87,.12);
  border-radius: .9rem;
  background: #fff;
}
.donate-impact-grid strong,
.donate-impact-grid span { display: block; }
.donate-impact-grid strong { color: var(--teal); font-family: Georgia, serif; }
.donate-impact-grid span { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.donate-quick-card {
  display: grid;
  gap: .85rem;
  justify-items: center;
  align-content: center;
  padding: 1rem;
  text-align: center;
}
.donate-quick-card strong,
.donate-quick-card span { display: block; }
.donate-quick-card strong { color: var(--teal); font-family: Georgia, serif; font-size: 1.35rem; }
.donate-quick-card span { color: var(--muted); font-size: .82rem; }
.donate-qr-frame {
  width: min(54vw, 250px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: .55rem;
  border: 1px solid rgba(7,94,87,.12);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: inset 0 0 0 6px rgba(229,244,239,.45);
}
.donate-qr-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: .7rem; }
.donate-browser { padding: .75rem; }
.donate-method-grid,
.donate-impact-cards { display: grid; gap: .7rem; }
.donate-method-card,
.donate-impact-cards div {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}
.donate-method-card.is-featured { background: linear-gradient(135deg, #fffdf7, #edf9f5); }
.method-icon {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: .65rem;
  border-radius: .85rem;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}
.donate-method-card h2 { margin: 0 0 .35rem; color: var(--teal); font-family: Georgia, serif; font-size: 1.25rem !important; }
.donate-method-card p { margin: 0 0 .7rem; font-size: .88rem; }
.copy-mini {
  min-height: 38px;
  padding: .45rem .75rem;
  border: 1px solid rgba(7,94,87,.16);
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: .78rem;
  font-weight: 850;
}
.donate-details-list { display: grid; gap: .55rem; }
.donate-copy-row {
  display: grid;
  grid-template-columns: minmax(92px,.7fr) minmax(0,1fr) auto;
  align-items: center;
  gap: .6rem;
  min-height: 58px;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}
.donate-copy-row span { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.donate-copy-row strong { min-width: 0; overflow-wrap: anywhere; color: var(--teal); }
.donate-copy-row button {
  min-height: 34px;
  padding: .35rem .65rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: .72rem;
  font-weight: 850;
}
.donate-note { margin: .75rem .2rem 0; font-size: .82rem; }
.donate-impact-cards div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
}
.donate-impact-cards div:nth-child(2)::before { background: var(--event-blue); }
.donate-impact-cards div:nth-child(3)::before { background: var(--event-violet); }
.donate-impact-cards span { color: rgba(7,94,87,.22); font-weight: 900; }
.donate-impact-cards strong { display:block; margin:.25rem 0; color:var(--teal); font-family:Georgia,serif; }
.donate-impact-cards p { margin: 0; font-size: .84rem; }

@media (max-width: 767px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  header .mobile-menu-button { display: none !important; }
  .mobile-menu { display: none !important; }
  .mobile-bottom-nav {
    position: fixed;
    left: max(.55rem, env(safe-area-inset-left));
    right: max(.55rem, env(safe-area-inset-right));
    bottom: max(.55rem, env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .15rem;
    padding: .32rem;
    border: 1px solid rgba(232,221,199,.92);
    border-radius: 1.25rem;
    background: rgba(255, 253, 247, .96);
    box-shadow: 0 18px 50px rgba(23,33,31,.2);
    backdrop-filter: blur(18px);
  }
  .mobile-bottom-nav a {
    display: flex;
    min-width: 0;
    min-height: 55px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .16rem;
    border-radius: .95rem;
    color: #52615d;
    font-size: .62rem;
    font-weight: 850;
    line-height: 1;
  }
  .mobile-bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bottom-nav a.nav-active {
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    box-shadow: 0 8px 18px rgba(7,94,87,.18);
  }

  .home-main.mt-20 { margin-top: 68px !important; }
  .home-hero-copy { padding-top: .35rem; }
  .home-hero .max-w-6xl { padding-inline: .85rem; }
  .home-hero-media { min-height: 180px; order: 2; }
  .home-prayer-widget { order: 3; position: relative; padding: .72rem; border-radius: 1.05rem; }
  .home-prayer-widget:not(.is-expanded) #today-prayer-times,
  .home-prayer-widget:not(.is-expanded) #prayer-note,
  .home-prayer-widget:not(.is-expanded) .prayer-widget-link { display: none; }
  .home-prayer-widget.is-expanded #today-prayer-times { margin-top: .65rem; }
  .home-prayer-widget .next-prayer-card { padding: .75rem; border-radius: .95rem; }
  #next-prayer-countdown { font-size: 1rem; letter-spacing: 1px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { flex: 1 1 calc(50% - .5rem); padding-inline: .8rem; }
  .hero-actions #about-cta { flex-basis: 100%; }
  .home-action-hub, .home-snapshot { padding-inline: .85rem !important; }
  .home-quick-grid { gap: .55rem; }
  .home-quick-card { min-height: 112px; padding: .72rem; }
  .home-quick-card strong { font-size: .95rem; }
  .home-snapshot-card { padding: .85rem; border-radius: 1.05rem; }
  .home-snapshot-image { max-height: 165px; }
  .home-snapshot-image img { min-height: 165px; max-height: 165px; }

  .about-revamp { padding-inline: .85rem !important; }
  .about-hero-psych { padding: .65rem; border-radius: 1.15rem; }
  .about-hero-image { min-height: 205px; }
  .about-hero-image img { min-height: 205px; }
  .about-hero-copy { padding: .3rem .1rem .15rem; }
  .about-promise-grid { grid-template-columns: 1fr; gap: .45rem; }
  .about-promise-grid div { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: .4rem; align-items: center; padding: .55rem .65rem; }
  .about-promise-grid span { margin: 0; }
  .about-actions .btn-primary,
  .about-actions .btn-secondary { flex: 1 1 100%; }
  .story-timeline .timeline-trigger { grid-template-columns: 62px minmax(0,1fr) 22px; padding: .72rem; gap: .55rem; }
  .story-timeline .timeline-content p { padding: 0 .8rem .85rem 4.9rem; }

  .donate-revamp { padding-inline: .85rem !important; }
  .donate-hero-copy,
  .donate-quick-card,
  .donate-browser { border-radius: 1.05rem; }
  .donate-impact-grid { grid-template-columns: 1fr; }
  .donate-quick-card { grid-template-columns: 76px minmax(0,1fr); align-items: center; justify-items: stretch; text-align: left; }
  .donate-qr-frame { width: 76px; border-radius: .85rem; padding: .25rem; }
  .donate-quick-card .btn-primary { grid-column: 1 / -1; width: 100%; }
  .donate-copy-row { grid-template-columns: minmax(0,1fr) auto; }
  .donate-copy-row span { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .mobile-bottom-nav a { font-size: .55rem; }
  .mobile-bottom-nav svg { width: 1rem; height: 1rem; }
  .home-quick-grid { grid-template-columns: 1fr; }
  .home-quick-card { min-height: 96px; }
}

@media (min-width: 768px) {
  .home-hero-grid { grid-template-columns: minmax(0, .95fr) minmax(320px, .7fr); grid-template-areas: "copy media" "prayer prayer"; }
  .home-hero-copy { grid-area: copy; }
  .home-hero-media { grid-area: media; min-height: 360px; }
  .home-prayer-widget { grid-area: prayer; }
  .home-prayer-widget #today-prayer-times { margin-top: .75rem; }
  .prayer-toggle { display: none; }
  .home-hub-header { grid-template-columns: minmax(0,.8fr) minmax(280px,.7fr); align-items: end; }
  .home-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-snapshot-card { grid-template-columns: 1fr .82fr; padding: 1.2rem; align-items: center; }
  .home-snapshot-image img { min-height: 260px; max-height: 300px; }

  .about-hero-psych { grid-template-columns: .9fr 1fr; padding: 1rem; }
  .about-hero-image { min-height: 390px; }
  .about-hero-image img { min-height: 390px; }
  .about-promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-timeline { padding-left: 1.4rem; }
  .story-timeline::before { left: .4rem; }
  .story-timeline .timeline-item::before { left: -1.22rem; }

  .donate-hero { grid-template-columns: minmax(0, 1fr) 320px; }
  .donate-hero-copy { padding: 1.35rem; }
  .donate-impact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .donate-browser { padding: 1rem; }
  .donate-method-grid,
  .donate-impact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .donate-method-card.is-featured { grid-column: span 2; }
}

/* ===== Premium homepage rebuild ===== */
.home-premium { background:#f7f3ea; }
.home-premium::before { display:none; }
.home-premium header { background:rgba(250,248,242,.9)!important; border-bottom:1px solid rgba(255,255,255,.25); box-shadow:none; backdrop-filter:blur(20px); }
.home-premium header nav a { color:#1f3d39; }
.home-premium header .nav-active { background:rgba(7,94,87,.08); }
.premium-home-main { padding-top:76px; overflow:hidden; }
.premium-hero { position:relative; min-height:760px; color:#fff; isolation:isolate; display:flex; align-items:center; }
.premium-hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-4; filter:saturate(.92) contrast(1.04); }
.premium-hero-shade { position:absolute; inset:0; z-index:-3; background:linear-gradient(90deg,rgba(2,34,31,.96) 0%,rgba(2,40,36,.82) 38%,rgba(2,35,32,.28) 72%,rgba(2,28,26,.4) 100%),linear-gradient(0deg,rgba(2,30,27,.76),transparent 55%); }
.premium-hero-pattern { position:absolute; inset:0; z-index:-2; opacity:.17; background-image:radial-gradient(circle at 20% 20%,rgba(255,255,255,.5) 0 1px,transparent 1.5px); background-size:26px 26px; mask-image:linear-gradient(90deg,#000,transparent 70%); }
.premium-hero-inner { width:100%; display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:4rem; align-items:center; padding-top:4rem; padding-bottom:4rem; }
.premium-hero-copy { max-width:680px; padding:2rem 0; }
.premium-kicker { display:flex; align-items:center; gap:.7rem; text-transform:uppercase; letter-spacing:.18em; font-size:.72rem; font-weight:800; color:#d9c18d; margin:0 0 1rem; }
.premium-kicker span { width:38px; height:1px; background:#d9c18d; }
.premium-arabic { font-family:Georgia,serif; color:#f2dfae; font-size:1.15rem; margin:0 0 1rem; }
.premium-hero h1 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(3.6rem,6.2vw,6.8rem); line-height:.92; letter-spacing:-.055em; max-width:760px; text-wrap:balance; text-shadow:0 5px 35px rgba(0,0,0,.24); }
.premium-hero-subtitle { margin:1.5rem 0 0; max-width:600px; color:rgba(255,255,255,.78); font-size:clamp(1rem,1.4vw,1.25rem); line-height:1.7; }
.premium-hero-actions { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; margin-top:2rem; }
.premium-btn { min-height:52px; padding:.8rem 1.3rem; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-weight:800; }
.premium-btn-light { background:#fff; color:#075e57; box-shadow:0 14px 35px rgba(0,0,0,.18); }
.premium-btn-gold { background:#d4a63f; color:#132e2b; box-shadow:0 14px 35px rgba(212,166,63,.22); }
.premium-btn-dark { background:#075e57; color:#fff; }
.premium-text-link { color:#fff; font-weight:750; padding:.7rem .2rem; }
.premium-text-link span { margin-left:.35rem; transition:transform .2s; display:inline-block; }
.premium-text-link:hover span { transform:translateX(4px); }
.premium-text-link.dark { color:#075e57; }
.premium-trust-row { display:flex; gap:0; margin-top:2.8rem; border-top:1px solid rgba(255,255,255,.18); padding-top:1.2rem; max-width:580px; }
.premium-trust-row div { min-width:0; padding-right:1.4rem; margin-right:1.4rem; border-right:1px solid rgba(255,255,255,.18); }
.premium-trust-row div:last-child { border:0; }
.premium-trust-row strong,.premium-trust-row span { display:block; }
.premium-trust-row strong { font-size:1.05rem; color:#fff; }
.premium-trust-row span { font-size:.72rem; color:rgba(255,255,255,.62); margin-top:.12rem; }
.premium-prayer { border:1px solid rgba(255,255,255,.22); background:rgba(250,248,242,.94); color:#173a36; border-radius:1.75rem; padding:1.25rem; box-shadow:0 28px 70px rgba(0,0,0,.25); backdrop-filter:blur(20px); }
.premium-prayer-head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.premium-prayer-label { text-transform:uppercase; letter-spacing:.15em; color:#9a752b; font-size:.67rem; font-weight:850; }
.premium-prayer h2 { margin:.3rem 0 0; font-family:Georgia,serif; font-size:1.65rem; line-height:1.15; }
.premium-hijri-date { max-width:120px; text-align:right; font-size:.72rem; color:#64736f; font-weight:700; }
.premium-next-prayer { margin-top:1.15rem; padding:1rem; border-radius:1.15rem; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.8rem; background:linear-gradient(135deg,#075e57,#0d766d); color:#fff; }
.premium-next-icon { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.13); font-size:1.25rem; }
.premium-next-prayer span { display:block; font-size:.65rem; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.68); }
.premium-next-prayer strong { display:block; font-size:1.1rem; }
.premium-countdown { text-align:right; }
.premium-countdown strong { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; color:#d9c18d; }
.premium-prayer-strip { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem!important; margin-top:.8rem; }
.premium-prayer-strip .prayer-tile { min-height:auto; border:1px solid #dde7e4; background:#fff; border-radius:.85rem; padding:.65rem .75rem; display:flex; align-items:center; justify-content:space-between; box-shadow:none; }
.premium-prayer-strip .prayer-tile .label { color:#65736f; font-size:.75rem; font-weight:750; }
.premium-prayer-strip .prayer-tile .time { color:#075e57; font-size:1rem; font-weight:850; }
.premium-prayer-strip .prayer-tile.is-next-prayer { border-color:#d4a63f; background:#fff9e9; box-shadow:inset 3px 0 #d4a63f; }
.premium-prayer-footer { display:flex; align-items:center; justify-content:flex-end; gap:1rem; margin-top:.9rem; }
.premium-prayer-footer a,.premium-prayer-toggle { color:#075e57; font-size:.76rem; font-weight:800; }
.premium-prayer-toggle { display:none; border:0; background:none; }
.premium-utility { position:relative; z-index:3; margin-top:-42px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.premium-utility-card { min-width:0; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.8rem; min-height:96px; padding:1rem; border:1px solid #e7dec9; border-radius:1.2rem; background:#fffdf8; box-shadow:0 16px 40px rgba(23,33,31,.09); }
.premium-utility-card:hover { transform:translateY(-4px); box-shadow:0 22px 50px rgba(23,33,31,.13); }
.utility-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:#e7f2ee; color:#075e57; font-size:1.1rem; }
.premium-utility-card strong,.premium-utility-card small { display:block; }
.premium-utility-card strong { color:#173a36; font-family:Georgia,serif; font-size:1.05rem; }
.premium-utility-card small { color:#73807d; font-size:.68rem; line-height:1.25; margin-top:.15rem; }
.premium-utility-card b { color:#b28328; }
.premium-story { padding-top:4rem; padding-bottom:4.5rem; }
.premium-story-card { display:grid; grid-template-columns:1.05fr .95fr; min-height:420px; border-radius:1.75rem; overflow:hidden; background:#fffdf8; border:1px solid #e7dec9; box-shadow:0 22px 60px rgba(23,33,31,.09); }
.premium-story-image { position:relative; min-height:420px; }
.premium-story-image img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.premium-story-image::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(2,40,36,.45),transparent 55%); }
.premium-story-badge { position:absolute; z-index:2; left:1.25rem; bottom:1.25rem; max-width:220px; border:1px solid rgba(255,255,255,.28); background:rgba(4,62,56,.86); color:#fff; padding:.85rem 1rem; border-radius:1rem; backdrop-filter:blur(14px); }
.premium-story-badge strong,.premium-story-badge span { display:block; }
.premium-story-badge strong { color:#e0ba62; text-transform:uppercase; letter-spacing:.15em; font-size:.67rem; }
.premium-story-badge span { margin-top:.25rem; font-family:Georgia,serif; line-height:1.25; }
.premium-story-copy { padding:clamp(1.5rem,4vw,4rem); display:flex; justify-content:center; flex-direction:column; }
.premium-section-kicker { margin:0; color:#aa7c23; text-transform:uppercase; font-size:.68rem; font-weight:850; letter-spacing:.17em; }
.premium-story-copy h2 { margin:.7rem 0 1rem; font-family:Georgia,serif; color:#075e57; font-size:clamp(2rem,4vw,3.4rem); line-height:1; letter-spacing:-.035em; }
.premium-story-copy p:not(.premium-section-kicker) { color:#65736f; line-height:1.75; margin:0; }
.premium-story-actions { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; margin-top:1.6rem; }

@media(max-width:900px){
  .premium-hero { min-height:auto; padding-bottom:2.5rem; }
  .premium-hero-inner { grid-template-columns:1fr; gap:1.4rem; padding-top:3rem; }
  .premium-hero-copy { max-width:720px; padding-bottom:0; }
  .premium-prayer { max-width:100%; }
  .premium-utility { margin-top:-1.2rem; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px){
  .premium-home-main { padding-top:64px; }
  .home-premium header>div { min-height:64px; }
  .home-premium #header-site-name { font-size:.9rem; max-width:190px; line-height:1.15; }
  .home-premium #header-logo { width:38px; height:38px; }
  .premium-hero { min-height:calc(100svh - 64px); align-items:flex-start; padding-bottom:1.8rem; }
  .premium-hero-image { object-position:62% center; }
  .premium-hero-shade { background:linear-gradient(0deg,rgba(2,31,28,.98) 0%,rgba(2,31,28,.85) 52%,rgba(2,31,28,.42) 100%); }
  .premium-hero-inner { padding-top:clamp(3.8rem,13vh,7rem); padding-inline:1rem; gap:1.2rem; }
  .premium-kicker { font-size:.61rem; }
  .premium-arabic { font-size:1rem; }
  .premium-hero h1 { font-size:clamp(3.05rem,14vw,4.4rem); line-height:.94; max-width:360px; }
  .premium-hero-subtitle { font-size:.93rem; line-height:1.55; max-width:340px; margin-top:1rem; }
  .premium-hero-actions { margin-top:1.25rem; gap:.65rem; }
  .premium-btn { min-height:46px; padding:.7rem 1rem; font-size:.82rem; }
  .premium-text-link { font-size:.78rem; }
  .premium-trust-row { margin-top:1.6rem; padding-top:.9rem; }
  .premium-trust-row div { padding-right:.8rem; margin-right:.8rem; }
  .premium-trust-row strong { font-size:.9rem; }
  .premium-trust-row span { font-size:.58rem; }
  .premium-prayer { padding:1rem; border-radius:1.35rem; }
  .premium-prayer h2 { font-size:1.35rem; }
  .premium-hijri-date { font-size:.63rem; }
  .premium-next-prayer { padding:.75rem; grid-template-columns:auto 1fr auto; }
  .premium-next-icon { width:32px; height:32px; }
  .premium-countdown strong { font-size:.9rem; }
  .premium-prayer-strip { display:flex!important; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; margin-inline:-.15rem; padding:.1rem .15rem; }
  .premium-prayer-strip::-webkit-scrollbar { display:none; }
  .premium-prayer-strip .prayer-tile { min-width:105px; scroll-snap-align:start; flex-direction:column; align-items:flex-start; gap:.05rem; }
  .premium-prayer-strip .prayer-tile:nth-child(n+5) { display:none; }
  .premium-prayer.is-expanded .premium-prayer-strip .prayer-tile { display:flex; }
  .premium-prayer-toggle { display:inline-block; }
  .premium-prayer-footer { justify-content:space-between; }
  .premium-prayer-footer a { font-size:.68rem; }
  .premium-utility { grid-template-columns:1fr 1fr; margin-top:-.5rem; padding-inline:1rem; gap:.6rem; }
  .premium-utility-card { min-height:88px; grid-template-columns:auto 1fr; padding:.8rem; }
  .premium-utility-card b { display:none; }
  .utility-icon { width:34px; height:34px; }
  .premium-utility-card strong { font-size:.9rem; }
  .premium-utility-card small { font-size:.6rem; }
  .premium-story { padding:2rem 1rem 2.8rem; }
  .premium-story-card { grid-template-columns:1fr; min-height:0; }
  .premium-story-image { min-height:230px; }
  .premium-story-copy { padding:1.35rem; }
  .premium-story-copy h2 { font-size:2rem; }
  .premium-story-copy p:not(.premium-section-kicker) { font-size:.88rem; line-height:1.6; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
  .site-footer { padding-bottom:74px; }
}

/* ===== Homepage visual correction — July 2026 ===== */
.home-premium .premium-home-main { overflow: visible; }
.home-premium .premium-hero {
  min-height: 700px;
  padding: 3.25rem 0;
  align-items: center;
  border-radius: 0 0 2.25rem 2.25rem;
  overflow: hidden;
}
.home-premium .premium-hero-shade {
  background:
    linear-gradient(90deg, rgba(1,27,25,.97) 0%, rgba(2,42,38,.93) 38%, rgba(2,40,36,.62) 62%, rgba(2,31,29,.38) 100%),
    linear-gradient(0deg, rgba(1,28,26,.80), rgba(1,28,26,.08) 70%);
}
.home-premium .premium-hero-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, .72fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.home-premium .premium-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 1rem 0;
}
.home-premium .premium-arabic {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.6;
  color: #f2d892;
  text-shadow: 0 3px 18px rgba(0,0,0,.28);
}
.home-premium .premium-hero h1,
.home-premium #hero-title {
  color: #fff !important;
  opacity: 1 !important;
  font-size: clamp(3.7rem, 6vw, 6.5rem);
  line-height: .95;
  max-width: 820px;
  letter-spacing: -.052em;
  text-shadow: 0 4px 28px rgba(0,0,0,.48);
}
.home-premium .premium-hero-subtitle {
  color: rgba(255,255,255,.9) !important;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  max-width: 640px;
  line-height: 1.65;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.home-premium .premium-btn,
.home-premium .premium-text-link {
  position: relative;
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease, color .24s ease;
  will-change: transform;
}
.home-premium .premium-btn::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -35%;
  width: 28%;
  height: 300%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transition: left .55s ease;
}
.home-premium .premium-btn:hover { transform: translateY(-3px) scale(1.015); }
.home-premium .premium-btn:hover::after { left: 112%; }
.home-premium .premium-btn:active { transform: translateY(-1px) scale(.985); }
.home-premium .premium-btn-light:hover { box-shadow: 0 20px 42px rgba(0,0,0,.28); }
.home-premium .premium-btn-gold:hover { background: #e1b84f; box-shadow: 0 20px 42px rgba(212,166,63,.32); }
.home-premium .premium-text-link:hover { color: #f0d68e; transform: translateX(3px); }
.home-premium .premium-prayer {
  position: relative;
  z-index: 5;
  align-self: center;
  width: 100%;
  margin: 0;
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,253,247,.975);
  box-shadow: 0 30px 80px rgba(0,0,0,.34);
  transform: none;
}
.home-premium .premium-prayer h2 { color: #153b36; }
.home-premium .premium-prayer-strip .prayer-tile { background: #f8fbfa; }
.home-premium .premium-prayer-footer { padding-top: .1rem; }

.home-premium .premium-utility-wrap {
  padding: 4.25rem 0 4.75rem;
  background: linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
}
.home-premium .premium-utility-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(260px, .65fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.home-premium .premium-utility-intro h2 {
  margin: .45rem 0 0;
  color: #0b5c54;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.home-premium .premium-utility-intro > p {
  margin: 0;
  color: #677773;
  line-height: 1.65;
}
.home-premium .premium-utility {
  margin-top: 0;
  z-index: 1;
  gap: 1rem;
}
.home-premium .premium-utility-card {
  --card-accent: #08766c;
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.3rem;
  overflow: hidden;
  border-color: #e8dfcc;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(27,46,42,.08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.home-premium .premium-utility-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -65% 35%;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  transition: transform .35s ease;
}
.home-premium .premium-utility-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--card-accent);
}
.home-premium .premium-utility-card.tone-blue { --card-accent: #2879aa; }
.home-premium .premium-utility-card.tone-gold { --card-accent: #bd861d; }
.home-premium .premium-utility-card.tone-violet { --card-accent: #7855a5; }
.home-premium .premium-utility-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--card-accent) 38%, #e8dfcc);
  box-shadow: 0 28px 65px rgba(27,46,42,.15);
}
.home-premium .premium-utility-card:hover::before { transform: scale(1.22); }
.home-premium .premium-utility-card > span:not(.utility-icon) { position: relative; z-index: 1; }
.home-premium .utility-icon {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 10%, white);
  border: 1px solid color-mix(in srgb, var(--card-accent) 20%, white);
  transition: transform .28s ease, background .28s ease, color .28s ease;
}
.home-premium .utility-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-premium .premium-utility-card:hover .utility-icon {
  transform: rotate(-5deg) scale(1.08);
  color: #fff;
  background: var(--card-accent);
}
.home-premium .premium-utility-card strong {
  font-size: 1.22rem;
  color: #173b36;
}
.home-premium .premium-utility-card small {
  max-width: 210px;
  margin-top: .38rem;
  font-size: .78rem;
  line-height: 1.45;
}
.home-premium .premium-utility-card b {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  z-index: 1;
  color: var(--card-accent);
  font-size: 1.15rem;
  transition: transform .25s ease;
}
.home-premium .premium-utility-card:hover b { transform: translate(3px,-3px); }

@media (max-width: 900px) {
  .home-premium .premium-hero { padding: 2rem 0 3rem; border-radius: 0 0 1.5rem 1.5rem; }
  .home-premium .premium-hero-inner { grid-template-columns: 1fr; padding-top: 2rem; }
  .home-premium .premium-hero-copy { max-width: 760px; }
  .home-premium .premium-prayer { max-width: 720px; }
  .home-premium .premium-utility-intro { grid-template-columns: 1fr; gap: .75rem; }
}
@media (max-width: 640px) {
  .home-premium .premium-hero { min-height: auto; padding: 1.5rem 0 2rem; }
  .home-premium .premium-hero-inner { padding-top: 1.5rem; gap: 1.5rem; }
  .home-premium .premium-hero h1,
  .home-premium #hero-title { font-size: clamp(2.85rem, 13vw, 4.15rem); max-width: 100%; }
  .home-premium .premium-arabic { font-size: 1.3rem; margin-bottom: .65rem; }
  .home-premium .premium-hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .home-premium .premium-hero-actions .premium-text-link { grid-column: 1 / -1; text-align: center; }
  .home-premium .premium-btn { width: 100%; }
  .home-premium .premium-trust-row { justify-content: space-between; }
  .home-premium .premium-trust-row div { flex: 1; }
  .home-premium .premium-prayer { padding: 1rem; border-radius: 1.2rem; }
  .home-premium .premium-next-prayer { grid-template-columns: auto 1fr; }
  .home-premium .premium-countdown { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; padding-top: .55rem; border-top: 1px solid rgba(255,255,255,.16); }
  .home-premium .premium-utility-wrap { padding: 2.75rem 0 3rem; }
  .home-premium .premium-utility-intro { margin-bottom: 1rem; }
  .home-premium .premium-utility { grid-template-columns: 1fr; gap: .7rem; }
  .home-premium .premium-utility-card {
    min-height: 108px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1rem;
    gap: .85rem;
  }
  .home-premium .premium-utility-card b { position: static; display: block; }
  .home-premium .premium-utility-card small { max-width: none; }
  .home-premium .premium-utility-card::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-premium .premium-btn,
  .home-premium .premium-utility-card,
  .home-premium .utility-icon,
  .home-premium .premium-utility-card b { transition: none !important; }
}

/* ===== July 2026 homepage + navigation correction ===== */
:root {
  --display-font: "Manrope", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header: desktop */
.site-header {
  height: 82px;
  background: rgba(255, 253, 247, .88) !important;
  border-bottom: 1px solid rgba(20, 76, 68, .10);
  box-shadow: 0 10px 30px rgba(23, 33, 31, .06);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.site-header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.25rem;
}
.site-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  justify-self: start;
}
.site-brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(201, 149, 47, .32);
  background: linear-gradient(145deg, #fffdf8, #f6ecd8);
  box-shadow: 0 8px 24px rgba(23, 33, 31, .09);
}
#header-logo {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.site-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .08rem;
}
#header-site-name {
  max-width: none;
  color: #075e57 !important;
  font-family: var(--display-font);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.site-brand-copy small {
  color: #8a6a2b;
  font-family: var(--display-font);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}
.desktop-nav {
  justify-self: center;
  align-items: center;
  gap: .18rem !important;
  padding: .28rem;
  border: 1px solid rgba(7, 94, 87, .08);
  border-radius: 999px;
  background: rgba(234, 241, 236, .68);
}
.site-header .desktop-nav a {
  min-height: 40px;
  padding: .55rem .92rem;
  border-radius: 999px;
  color: #41534f;
  font-family: var(--display-font);
  font-size: .78rem;
  font-weight: 750;
}
.site-header .desktop-nav a::after { display: none; }
.site-header .desktop-nav a:hover {
  color: #075e57;
  background: rgba(255, 255, 255, .78);
}
.site-header .desktop-nav a.nav-active {
  color: #fff;
  background: #075e57;
  box-shadow: 0 7px 18px rgba(7, 94, 87, .18);
}
.site-header-actions {
  min-width: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.header-prayer-button,
.header-donate-button {
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--display-font);
  font-size: .75rem;
  font-weight: 800;
}
.header-prayer-button {
  gap: .45rem;
  padding: .55rem .85rem;
  color: #075e57;
  border: 1px solid rgba(7, 94, 87, .14);
  background: rgba(255, 255, 255, .72);
}
.header-prayer-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-prayer-button:hover { transform: translateY(-2px); background: #fff; }
.header-donate-button {
  padding: .55rem 1rem;
  color: #15362f;
  background: #d9ad4b;
  box-shadow: 0 8px 20px rgba(201, 149, 47, .20);
}
.header-donate-button:hover { transform: translateY(-2px); background: #e3bb61; }
.mobile-menu-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(7, 94, 87, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  box-shadow: none;
}
.menu-icon {
  width: 18px;
  display: grid;
  gap: 4px;
}
.menu-icon i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #075e57;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-menu-button.is-open .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-button.is-open .menu-icon i:nth-child(2) { opacity: 0; }
.mobile-menu-button.is-open .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile/tablet menu sheet */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: block;
  visibility: hidden;
  opacity: 0;
  border: 0;
  background: rgba(2, 25, 23, .46);
  backdrop-filter: blur(4px);
  transition: opacity .24s ease, visibility .24s ease;
}
.mobile-menu-backdrop.is-open { visibility: visible; opacity: 1; }
.mobile-menu {
  position: fixed;
  top: 74px;
  right: .75rem;
  left: auto;
  bottom: auto;
  z-index: 90;
  display: block;
  width: min(430px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 92px);
  padding: .8rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transform-origin: top right;
  border: 1px solid rgba(232, 221, 199, .95);
  border-radius: 22px;
  background: rgba(255, 253, 247, .985);
  box-shadow: 0 28px 80px rgba(9, 31, 28, .25);
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.mobile-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .4rem .4rem .85rem;
}
.mobile-menu-head span,
.mobile-menu-head strong { display: block; }
.mobile-menu-head span {
  color: #a77a26;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mobile-menu-head strong {
  margin-top: .16rem;
  color: #123e38;
  font-family: var(--display-font);
  font-size: 1rem;
  line-height: 1.25;
}
.mobile-menu-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 12px;
  color: #075e57;
  background: #e8f2ee;
  font-size: 1.45rem;
  line-height: 1;
}
.mobile-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.mobile-menu-links a {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .75rem;
  border: 1px solid #e6e7df;
  border-radius: 16px;
  color: #314844;
  background: #fff;
  font-family: var(--display-font);
  font-size: .76rem;
  font-weight: 750;
}
.mobile-menu-links a + a { margin-top: 0; }
.mobile-menu-links a svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #0a6a61;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-menu-links a b { color: #bd861d; font-size: .9rem; }
.mobile-menu-links a:hover,
.mobile-menu-links a.nav-active {
  color: #fff;
  border-color: #075e57;
  background: #075e57;
}
.mobile-menu-links a:hover svg,
.mobile-menu-links a.nav-active svg { stroke: #fff; }
.mobile-menu-links a:hover b,
.mobile-menu-links a.nav-active b { color: #f2cf79; }
body.menu-open { overflow: hidden; }

/* Homepage hero repair */
.home-premium .premium-home-main { padding-top: 82px; overflow-x: clip; }
.home-premium .premium-hero {
  min-height: 680px;
  padding: 3.4rem 0;
  border-radius: 0;
}
.home-premium .premium-hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-top: 0;
  padding-bottom: 0;
}
.home-premium .premium-hero-copy { min-width: 0; max-width: 700px; }
.home-premium .premium-kicker,
.home-premium .premium-section-kicker,
.home-premium .premium-prayer-label { font-family: var(--display-font); }
.home-premium .premium-arabic {
  font-family: "Noto Naskh Arabic", "Geeza Pro", serif;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  line-height: 1.45;
}
.home-premium .premium-hero h1,
.home-premium #hero-title {
  max-width: 720px;
  font-family: var(--display-font);
  font-size: clamp(3.4rem, 5.35vw, 5.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.home-premium .premium-hero-subtitle {
  max-width: 560px;
  font-family: var(--display-font);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.65;
}
.home-premium .premium-btn,
.home-premium .premium-text-link { font-family: var(--display-font); }
.home-premium .premium-trust-row strong,
.home-premium .premium-trust-row span { font-family: var(--display-font); }
.home-premium .premium-prayer {
  min-width: 0;
  border-radius: 26px;
}
.home-premium .premium-prayer h2 {
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -.035em;
}
.home-premium .premium-next-prayer strong,
.home-premium .premium-prayer-strip .prayer-tile .label,
.home-premium .premium-prayer-strip .prayer-tile .time,
.home-premium .premium-prayer-footer a { font-family: var(--display-font); }

/* Site navigator */
.home-premium .premium-utility-wrap { padding: 3.4rem 0 4rem; }
.home-premium .premium-utility-intro { align-items: center; }
.home-premium .premium-utility-intro h2 {
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.05em;
}
.home-premium .premium-utility-intro > p {
  max-width: 430px;
  justify-self: end;
  font-family: var(--display-font);
  font-size: .95rem;
}
.home-premium .premium-utility-card strong {
  font-family: var(--display-font);
  font-weight: 800;
  letter-spacing: -.025em;
}
.home-premium .premium-utility-card small { font-family: var(--display-font); }

/* Bottom mobile navigation */
.mobile-bottom-nav { display: none; }

@media (max-width: 1180px) {
  .site-header-inner { grid-template-columns: minmax(230px, 1fr) auto minmax(210px, 1fr); }
  .site-header .desktop-nav a { padding-inline: .7rem; }
  .header-prayer-button span { display: none; }
  .header-prayer-button { width: 42px; padding: 0; }
}

@media (max-width: 1023px) {
  .site-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header-actions { grid-column: 2; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .site-header {
    height: 68px;
    background: rgba(255, 253, 247, .96) !important;
    box-shadow: 0 8px 24px rgba(23, 33, 31, .08);
  }
  .site-header.header-hidden { transform: none; opacity: 1; pointer-events: auto; }
  .site-header-inner { padding: 0 .85rem; gap: .7rem; }
  .site-brand { gap: .62rem; }
  .site-brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }
  #header-site-name {
    max-width: 190px;
    white-space: normal;
    font-size: .82rem;
    line-height: 1.08;
  }
  .site-brand-copy small { font-size: .52rem; letter-spacing: .1em; }
  .site-header .header-prayer-button,
  .site-header .header-donate-button { display: none !important; }
  .site-header .mobile-menu-button { display: inline-flex !important; }

  .mobile-menu { top: 74px; bottom: calc(82px + env(safe-area-inset-bottom)); max-height: none; }
  .mobile-menu-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mobile-bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: max(.55rem, env(safe-area-inset-bottom));
    z-index: 86;
    width: min(470px, calc(100vw - 1rem));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .1rem;
    padding: .34rem .42rem;
    transform: translateX(-50%);
    border: 1px solid rgba(213, 205, 188, .9);
    border-radius: 22px;
    background: rgba(255, 253, 247, .97);
    box-shadow: 0 18px 50px rgba(10, 36, 32, .20);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    padding: .2rem;
    border: 0;
    border-radius: 15px;
    color: #62716d;
    background: transparent;
    font-family: var(--display-font);
    font-size: .58rem;
    font-weight: 800;
    line-height: 1;
  }
  .mobile-bottom-nav svg {
    width: 22px;
    height: 22px;
    padding: 0;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all .2s ease;
  }
  .mobile-bottom-nav a.nav-active {
    color: #075e57;
    background: transparent;
    box-shadow: none;
  }
  .mobile-bottom-nav a.nav-active svg {
    width: 34px;
    height: 34px;
    margin-top: -8px;
    padding: 7px;
    border-radius: 12px;
    color: #fff;
    background: #075e57;
    box-shadow: 0 8px 18px rgba(7, 94, 87, .24);
  }
  .mobile-bottom-nav span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Mobile hero: rebuilt for width safety and less vertical clutter */
  .home-premium .premium-home-main { padding-top: 68px; overflow-x: hidden; }
  .home-premium .premium-hero {
    min-height: auto;
    padding: 2rem 0 2.2rem;
    overflow: hidden;
  }
  .home-premium .premium-hero-image { object-position: 52% center; }
  .home-premium .premium-hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 34, 31, .88) 0%, rgba(2, 40, 36, .92) 54%, rgba(2, 31, 28, .98) 100%);
  }
  .home-premium .premium-hero-inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    padding: 0 1rem;
  }
  .home-premium .premium-hero-copy {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: .35rem 0 0;
  }
  .home-premium .premium-kicker {
    margin-bottom: .65rem;
    font-size: .57rem;
    letter-spacing: .15em;
  }
  .home-premium .premium-kicker span { width: 26px; }
  .home-premium .premium-arabic {
    margin: 0 0 .55rem;
    font-size: 1.18rem;
    line-height: 1.4;
  }
  .home-premium .premium-hero h1,
  .home-premium #hero-title {
    width: 100%;
    max-width: 350px;
    margin: 0;
    font-size: clamp(2.25rem, 10.7vw, 2.95rem);
    line-height: 1.01;
    letter-spacing: -.055em;
    text-wrap: balance;
    overflow-wrap: normal;
  }
  .home-premium .premium-hero-subtitle {
    width: 100%;
    max-width: 350px;
    margin-top: .9rem;
    font-size: .9rem;
    line-height: 1.55;
  }
  .home-premium .premium-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .6rem;
    margin-top: 1.15rem;
  }
  .home-premium .premium-btn {
    min-width: 0;
    min-height: 48px;
    padding: .7rem .65rem;
    font-size: .82rem;
  }
  .home-premium .premium-hero-actions .premium-text-link {
    grid-column: 1 / -1;
    justify-self: start;
    padding: .4rem 0;
    font-size: .8rem;
    text-align: left;
  }
  .home-premium .premium-trust-row {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin-top: 1rem;
    padding-top: .85rem;
  }
  .home-premium .premium-trust-row div {
    min-width: 0;
    margin: 0;
    padding: .55rem .4rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
  }
  .home-premium .premium-trust-row strong { font-size: .85rem; }
  .home-premium .premium-trust-row span {
    overflow: hidden;
    font-size: .54rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-premium .premium-prayer {
    width: 100%;
    min-width: 0;
    margin: .25rem 0 0;
    padding: .9rem;
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .24);
  }
  .home-premium .premium-prayer-head { gap: .55rem; }
  .home-premium .premium-prayer h2 {
    max-width: 230px;
    margin-top: .2rem;
    font-size: 1.28rem;
    line-height: 1.15;
  }
  .home-premium .premium-hijri-date {
    max-width: 88px;
    font-size: .62rem;
    line-height: 1.25;
  }
  .home-premium .premium-next-prayer {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: .55rem;
    margin-top: .8rem;
    padding: .8rem;
    border-radius: 15px;
  }
  .home-premium .premium-next-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .home-premium .premium-next-prayer strong { font-size: .98rem; }
  .home-premium .premium-countdown {
    grid-column: auto;
    display: block;
    padding: 0;
    border: 0;
    text-align: right;
  }
  .home-premium .premium-countdown strong {
    font-size: .95rem;
    letter-spacing: .03em;
    white-space: nowrap;
  }
  .home-premium .premium-prayer-strip {
    display: flex !important;
    gap: .5rem !important;
    margin: .65rem -.05rem 0;
    padding: 0 .05rem .25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .home-premium .premium-prayer-strip::-webkit-scrollbar { display: none; }
  .home-premium .premium-prayer-strip .prayer-tile {
    min-width: 112px;
    flex: 0 0 112px;
    min-height: 62px;
    display: block;
    padding: .65rem;
    scroll-snap-align: start;
  }
  .home-premium .premium-prayer-strip .prayer-tile .label,
  .home-premium .premium-prayer-strip .prayer-tile .time { display: block; }
  .home-premium .premium-prayer-strip .prayer-tile .time { margin-top: .2rem; }
  .home-premium .premium-prayer-footer {
    justify-content: flex-end;
    margin-top: .55rem;
  }
  .home-premium .premium-prayer-toggle { display: none !important; }

  /* Compact 2x2 site navigator */
  .home-premium .premium-utility-wrap { padding: 2.4rem 0 2.8rem; }
  .home-premium .premium-utility-intro {
    display: block;
    margin-bottom: 1rem;
    padding-inline: 1rem;
  }
  .home-premium .premium-utility-intro h2 {
    max-width: 330px;
    margin-top: .3rem;
    font-size: 1.78rem;
    line-height: 1.08;
  }
  .home-premium .premium-utility-intro > p {
    max-width: 320px;
    margin-top: .55rem;
    font-size: .8rem;
    line-height: 1.5;
  }
  .home-premium .premium-utility {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding-inline: 1rem;
  }
  .home-premium .premium-utility-card {
    min-width: 0;
    min-height: 142px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .72rem;
    padding: .85rem;
    border-radius: 18px;
  }
  .home-premium .utility-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
  .home-premium .utility-icon svg { width: 19px; height: 19px; }
  .home-premium .premium-utility-card strong { font-size: .92rem; line-height: 1.15; }
  .home-premium .premium-utility-card small {
    display: -webkit-box;
    margin-top: .25rem;
    overflow: hidden;
    font-size: .65rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .home-premium .premium-utility-card b {
    top: .85rem;
    right: .85rem;
    font-size: .9rem;
  }
  .home-premium .premium-utility-card::before { display: block; }
}

@media (max-width: 359px) {
  #header-site-name { max-width: 155px; font-size: .75rem; }
  .mobile-menu-links { grid-template-columns: 1fr; }
  .home-premium .premium-hero h1,
  .home-premium #hero-title { font-size: 2.2rem; }
  .home-premium .premium-utility { grid-template-columns: 1fr; }
}

/* Robust display rules independent of utility CSS */
.site-header .desktop-nav { display: flex; }
.site-header .header-prayer-button,
.site-header .header-donate-button { display: inline-flex; }
.site-header .mobile-menu-button { display: none; }
body > section.mt-20,
body > main > section.mt-20 { margin-top: 82px; }

@media (max-width: 1023px) {
  .site-header .desktop-nav { display: none !important; }
  .site-header .mobile-menu-button { display: inline-flex !important; }
}

@media (max-width: 767px) {
  .mobile-menu { display: block !important; }
  body > section.mt-20,
  body > main > section.mt-20 { margin-top: 68px; }
}

/* =========================================================
   V4 — landing-page visual system across the complete site
   ========================================================= */
:root {
  --v4-ink: #123a36;
  --v4-deep: #033f3a;
  --v4-teal: #08766c;
  --v4-teal-bright: #0f8f82;
  --v4-cream: #fbf8f0;
  --v4-paper: #fffdf8;
  --v4-gold: #d6a633;
  --v4-border: rgba(12, 92, 84, .14);
  --v4-shadow: 0 24px 70px rgba(4, 48, 44, .13);
  --v4-shadow-soft: 0 14px 34px rgba(4, 48, 44, .08);
}

html, body.site-v4 { overflow-x: hidden; }
body.site-v4 {
  color: var(--v4-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 166, 51, .10), transparent 26rem),
    linear-gradient(180deg, #fbf8f0 0%, #f8f4eb 100%);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.site-v4 h1,
body.site-v4 h2,
body.site-v4 h3,
body.site-v4 #hero-title,
body.site-v4 #about-preview-title,
body.site-v4 #header-site-name {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: -.035em;
}
body.site-v4 p { color: #61706c; }
body.site-v4 .premium-arabic {
  font-family: "Noto Naskh Arabic", serif !important;
  letter-spacing: 0;
}

/* Header polish */
body.site-v4 .site-header {
  background: rgba(251, 248, 240, .94) !important;
  border-bottom: 1px solid rgba(4, 63, 58, .09);
  backdrop-filter: blur(18px) saturate(130%);
}
body.site-v4 .site-header-inner { padding-inline: 1rem; }
body.site-v4 .site-brand-mark {
  overflow: hidden;
  border-radius: 14px;
}
body.site-v4 #header-site-name {
  max-width: 330px;
  color: var(--v4-deep) !important;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.08;
}
body.site-v4 .site-brand-copy small {
  color: #a36f13;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
}
body.site-v4 .desktop-nav {
  padding: .28rem;
  border: 1px solid rgba(4,63,58,.07);
  border-radius: 999px;
  background: rgba(255,255,255,.54);
}
body.site-v4 .desktop-nav a { min-height: 38px; }
body.site-v4 .header-prayer-button,
body.site-v4 .header-donate-button {
  min-height: 42px;
  border-radius: 999px;
}

/* Homepage: stronger, cleaner mobile hierarchy */
body.home-v4 .premium-hero { min-height: auto; }
body.home-v4 .premium-hero-copy h1 {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: -.065em;
  text-wrap: balance;
}
body.home-v4 .premium-prayer-head h2 {
  margin: .2rem 0 0;
  color: var(--v4-deep) !important;
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  line-height: 1.05;
}
body.home-v4 .premium-prayer-label,
body.home-v4 .premium-section-kicker {
  color: #9d6c16;
  font-weight: 850;
  letter-spacing: .14em;
}
body.home-v4 .premium-prayer {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 26px 80px rgba(0, 31, 28, .26);
}
body.home-v4 .premium-next-prayer {
  background: linear-gradient(135deg, #07786e, #045c55);
}
body.home-v4 .premium-prayer-strip .prayer-tile {
  min-width: 0;
  background: #f7fbf9;
}
body.home-v4 .premium-prayer-footer { align-items: center; }
body.home-v4 .premium-prayer-footer a { font-size: .76rem; }
body.home-v4 .premium-utility-intro h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.055em;
}
body.home-v4 .premium-utility-card strong { font-family: "Manrope", sans-serif !important; font-weight: 800; }
body.home-v4 .premium-utility-card { box-shadow: var(--v4-shadow-soft); }

/* Shared inner page treatment */
body.site-v4:not(.home-v4) main { position: relative; }
body.site-v4:not(.home-v4) main > section:first-child,
body.site-v4:not(.home-v4) main.events-page,
body.site-v4:not(.home-v4) main.about-revamp,
body.site-v4:not(.home-v4) main.donate-revamp,
body.site-v4:not(.home-v4) main.gallery-revamp {
  margin-top: 76px;
}
body.site-v4 .eyebrow,
body.site-v4 .premium-section-kicker {
  font-family: "Manrope", sans-serif;
}
body.site-v4 .card,
body.site-v4 .section-panel,
body.site-v4 .events-browser,
body.site-v4 .about-browser,
body.site-v4 .donate-browser,
body.site-v4 .gallery-browser {
  border-color: var(--v4-border);
  background: rgba(255,253,248,.93);
  box-shadow: var(--v4-shadow-soft);
}
body.site-v4 .card::before { display: none; }
body.site-v4 .btn-primary,
body.site-v4 .btn-secondary {
  min-height: 48px;
  padding-inline: 1.25rem;
  font-size: .88rem;
  letter-spacing: -.01em;
}
body.site-v4 .btn-primary {
  background: linear-gradient(135deg, #08766c, #045c55);
  box-shadow: 0 14px 32px rgba(4, 92, 85, .2);
}
body.site-v4 .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(4,92,85,.25); }
body.site-v4 .btn-secondary { background: rgba(255,255,255,.82); }

/* About: remove conceptual filler and make overview useful */
body.about-v4 .about-hero-psych {
  border: 0;
  background: linear-gradient(135deg, #063f3a, #075e57);
  box-shadow: var(--v4-shadow);
}
body.about-v4 .about-hero-copy { padding: clamp(1rem, 3vw, 2.2rem); }
body.about-v4 .about-hero-copy h1,
body.about-v4 .about-hero-copy p,
body.about-v4 .about-hero-copy .eyebrow { color: #fff !important; }
body.about-v4 .about-hero-copy .eyebrow { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }
body.about-v4 .about-lead { color: rgba(255,255,255,.8) !important; }
body.about-v4 .about-promise-grid div {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
}
body.about-v4 .about-promise-grid strong { color: #fff; }
body.about-v4 .about-promise-grid span { color: rgba(255,255,255,.68); }
body.about-v4 .about-value-grid .icon-pill { display: none; }
body.about-v4 .about-value-grid .about-card { padding: 1.35rem; }
body.about-v4 .about-value-grid h2 { margin-top: 0; font-size: 1.05rem; }
.about-visit-card {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--v4-border);
  border-radius: 1.4rem;
  background:
    linear-gradient(135deg, rgba(7,118,108,.08), rgba(214,166,51,.08)),
    #fffdf8;
}
.about-visit-card h2 { margin: .3rem 0 .45rem; color: var(--v4-deep); font-size: clamp(1.35rem,3vw,2rem); }
.about-visit-card p { margin: 0; max-width: 660px; }
.about-visit-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }

/* Contact page */
.contact-page-v4,
.nikkah-page-v4,
.coming-soon-page {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 2rem 0 4rem;
}
.inner-page-hero {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem,4vw,3.5rem);
  border-radius: 2rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(214,166,51,.25), transparent 19rem),
    linear-gradient(135deg, #033f3a, #08766c);
  box-shadow: var(--v4-shadow);
}
.inner-page-hero h1 {
  margin: .35rem 0 .6rem;
  color: #fff !important;
  font-size: clamp(2.2rem,6vw,4.8rem);
  font-weight: 800;
  line-height: .98;
}
.inner-page-hero p { color: rgba(255,255,255,.76) !important; max-width: 620px; }
.inner-page-hero .premium-section-kicker { color: #f5cf72; }
.contact-quick-actions { display: grid; gap: .65rem; }
.contact-quick-actions a {
  display: grid;
  gap: .12rem;
  min-width: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1rem;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}
.contact-quick-actions a:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.contact-quick-actions span { color: rgba(255,255,255,.64); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-quick-actions strong { overflow-wrap: anywhere; color: #fff; font-size: .88rem; }
.contact-map-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.contact-map-card,
.contact-office-card {
  overflow: hidden;
  border: 1px solid var(--v4-border);
  border-radius: 1.5rem;
  background: #fffdf8;
  box-shadow: var(--v4-shadow-soft);
}
.contact-map-card iframe { display: block; width: 100%; height: 390px; border: 0; }
.contact-map-caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.contact-map-caption span,
.contact-map-caption strong { display: block; }
.contact-map-caption span { color: #8b9692; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-map-caption strong { color: var(--v4-deep); }
.contact-map-caption a { flex: 0 0 auto; color: var(--v4-teal); font-size: .82rem; font-weight: 800; }
.contact-office-card { padding: clamp(1.25rem,3vw,2rem); }
.contact-office-card h2 { margin: .3rem 0 .8rem; color: var(--v4-deep); font-size: 1.7rem; }
.contact-office-card .contact-line { padding: .9rem 0; }
.contact-office-card .contact-line strong { display: block; margin-top: .2rem; overflow-wrap: anywhere; color: #344440; }
.contact-note { margin-top: 1rem; padding: 1rem; border-radius: 1rem; background: #e9f4f0; }
.contact-note strong { color: var(--v4-deep); }
.contact-note p { margin: .3rem 0 0; font-size: .82rem; }

/* Coming soon prayer page */
.coming-soon-page { min-height: calc(100vh - 180px); display: grid; align-items: center; }
.coming-soon-card {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem,5vw,4.5rem);
  border-radius: 2rem;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(214,166,51,.24), transparent 20rem),
    linear-gradient(135deg, #033f3a, #075e57);
  box-shadow: var(--v4-shadow);
}
.coming-soon-copy h1 { margin: .45rem 0 .8rem; color: #fff !important; font-size: clamp(2.3rem,6vw,5rem); line-height: .98; }
.coming-soon-copy > p { max-width: 650px; color: rgba(255,255,255,.75) !important; font-size: 1rem; }
.coming-soon-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.coming-soon-card .btn-secondary { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.1); }
.coming-soon-visual { display: grid; justify-items: center; gap: .5rem; padding: 2rem; border: 1px solid rgba(255,255,255,.16); border-radius: 1.5rem; background: rgba(255,255,255,.08); }
.coming-soon-visual strong { font-size: 1.3rem; }
.coming-soon-visual small { color: rgba(255,255,255,.62); text-align: center; }
.coming-clock { position: relative; width: 112px; height: 112px; border: 7px solid #f3ce70; border-radius: 50%; }
.coming-clock i,
.coming-clock b { position: absolute; left: 50%; bottom: 50%; display: block; width: 4px; border-radius: 99px; background: #fff; transform-origin: bottom center; }
.coming-clock i { height: 31px; transform: translateX(-50%) rotate(35deg); }
.coming-clock b { height: 22px; transform: translateX(-50%) rotate(120deg); }
.coming-clock::after { content:""; position:absolute; left:50%; top:50%; width:10px; height:10px; border-radius:50%; background:#f3ce70; transform:translate(-50%,-50%); }

/* Nikkah page */
.nikkah-hero-v4 { align-items: center; }
.nikkah-hero-v4 img { width: 100%; height: min(380px, 52vw); min-height: 250px; object-fit: cover; border-radius: 1.4rem; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.inner-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
.nikkah-hero-v4 .btn-secondary { border-color: rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.1); }
.booking-essentials-v4 { margin-top: 1rem; padding: clamp(1.3rem,3vw,2rem); border: 1px solid var(--v4-border); border-radius: 1.6rem; background: #fffdf8; box-shadow: var(--v4-shadow-soft); }
.booking-heading h2 { margin: .3rem 0 1rem; color: var(--v4-deep); font-size: clamp(1.7rem,4vw,2.6rem); }
.booking-grid-v4 { display: grid; gap: .75rem; }
.booking-grid-v4 article { padding: 1.1rem; border: 1px solid var(--v4-border); border-radius: 1rem; background: #f8fbf9; }
.booking-grid-v4 span { display: block; color: #b07a17; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.booking-grid-v4 strong { display: block; margin: .35rem 0 .25rem; color: var(--v4-deep); }
.booking-grid-v4 p { margin: 0; font-size: .83rem; }

/* Donate / events / gallery / management / volunteers: unify surfaces */
body.donate-v4 .donate-hero,
body.events-v4 .events-hero,
body.gallery-v4 .gallery-heading,
body.management-v4 main section > .max-w-3xl,
body.volunteers-v4 main section > .max-w-3xl {
  border-radius: 1.5rem;
}
body.events-v4 .events-hero,
body.gallery-v4 .gallery-heading {
  padding: clamp(1.25rem,3vw,2rem);
  color: #fff;
  background: linear-gradient(135deg, #033f3a, #08766c);
  box-shadow: var(--v4-shadow-soft);
}
body.events-v4 .events-hero h1,
body.events-v4 .events-hero p,
body.gallery-v4 .gallery-heading h1,
body.gallery-v4 .gallery-heading p { color: #fff !important; }
body.events-v4 .events-hero .eyebrow,
body.gallery-v4 .gallery-heading .eyebrow { border-color: rgba(255,255,255,.24); color: #f5cf72 !important; background: rgba(255,255,255,.08); }
body.events-v4 .events-summary div { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); }
body.events-v4 .events-summary strong,
body.events-v4 .events-summary span { color: #fff; }
body.management-v4 main section,
body.volunteers-v4 main section { padding-top: 2rem; }
body.management-v4 main section > .max-w-3xl,
body.volunteers-v4 main section > .max-w-3xl {
  max-width: none;
  padding: clamp(1.25rem,3vw,2rem);
  color: #fff;
  background: linear-gradient(135deg, #033f3a, #08766c);
}
body.management-v4 main section > .max-w-3xl h1,
body.management-v4 main section > .max-w-3xl p,
body.volunteers-v4 main section > .max-w-3xl h1,
body.volunteers-v4 main section > .max-w-3xl p { color: #fff !important; }
body.management-v4 main section > .max-w-3xl .eyebrow,
body.volunteers-v4 main section > .max-w-3xl .eyebrow { color: #f5cf72 !important; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
body.volunteers-v4 .section-panel { max-width: none; }
body.volunteers-v4 .mobile-card-rail { margin-bottom: 1rem; }
body.gallery-v4 .gallery-grid-compact { margin-top: .8rem; }

/* Footer: concise and consistent */
body.site-v4 .site-footer { margin-top: 1rem; }
body.site-v4 .site-footer > div { padding-top: 2.4rem; padding-bottom: 6.5rem; }

@media (min-width: 768px) {
  .about-visit-card { grid-template-columns: 1fr auto; align-items: center; }
  .contact-quick-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .contact-map-layout { grid-template-columns: minmax(0,1.55fr) minmax(290px,.65fr); }
  .coming-soon-card { grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); }
  .nikkah-hero-v4 { grid-template-columns: 1fr .9fr; }
  .booking-grid-v4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Mobile homepage rebuild */
@media (max-width: 767px) {
  body.site-v4 { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.site-v4 .site-header-inner { min-height: 82px; padding: .65rem .9rem; }
  body.site-v4 .site-brand { min-width: 0; gap: .7rem; }
  body.site-v4 #header-logo { width: 48px; height: 48px; }
  body.site-v4 #header-site-name { max-width: 220px; font-size: .94rem; line-height: 1.08; }
  body.site-v4 .site-brand-copy small { font-size: .56rem; }
  body.site-v4 .mobile-menu-button { width: 48px; min-width: 48px; height: 48px; border-radius: 15px; background: #fff; }
  body.site-v4 .mobile-menu { top: 82px; }

  body.home-v4 .premium-home-main { padding-top: 82px; }
  body.home-v4 .premium-hero {
    min-height: auto;
    padding: 0 0 1.1rem;
    border-radius: 0 0 1.6rem 1.6rem;
  }
  body.home-v4 .premium-hero-image { object-position: 58% center; }
  body.home-v4 .premium-hero-shade {
    background:
      linear-gradient(180deg, rgba(2,41,38,.82) 0%, rgba(2,52,47,.72) 45%, rgba(2,50,46,.94) 100%),
      linear-gradient(90deg, rgba(2,40,37,.35), transparent);
  }
  body.home-v4 .premium-hero-inner {
    display: block !important;
    width: 100%;
    padding: 1.55rem 1rem .25rem;
  }
  body.home-v4 .premium-hero-copy { width: 100%; padding: 0; }
  body.home-v4 .premium-kicker { margin-bottom: .75rem; font-size: .66rem; }
  body.home-v4 .premium-arabic { margin-bottom: .45rem; font-size: 1.55rem; line-height: 1.2; }
  body.home-v4 .premium-hero-copy h1 {
    max-width: 590px;
    margin: 0;
    font-size: clamp(2.65rem, 12.5vw, 4.35rem) !important;
    line-height: .95;
  }
  body.home-v4 .premium-hero-subtitle {
    max-width: 520px;
    margin-top: 1rem;
    color: rgba(255,255,255,.82) !important;
    font-size: .96rem;
    line-height: 1.55;
  }
  body.home-v4 .premium-hero-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .65rem;
    margin-top: 1.05rem;
  }
  body.home-v4 .premium-btn { min-width: 0; min-height: 52px; padding: .75rem .7rem; font-size: .84rem; }
  body.home-v4 .premium-text-link { grid-column: 1 / -1; justify-content: center; min-height: 38px; color: #fff; font-size: .82rem; }
  body.home-v4 .premium-trust-row {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .45rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
  }
  body.home-v4 .premium-trust-row div { min-width: 0; padding: .75rem .55rem; border: 1px solid rgba(255,255,255,.14); border-radius: .9rem; background: rgba(255,255,255,.07); }
  body.home-v4 .premium-trust-row strong { font-size: .98rem; }
  body.home-v4 .premium-trust-row span { font-size: .59rem; line-height: 1.25; }

  body.home-v4 .premium-prayer {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 1.05rem 0 0 !important;
    padding: 1.05rem !important;
    border-radius: 1.35rem;
    transform: none !important;
  }
  body.home-v4 .premium-prayer-head { align-items: flex-start; gap: .7rem; }
  body.home-v4 .premium-prayer-head h2 { font-size: 1.5rem; line-height: 1.05; }
  body.home-v4 .premium-hijri-date { max-width: 104px; font-size: .68rem; line-height: 1.35; }
  body.home-v4 .premium-next-prayer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .65rem;
    padding: .9rem;
    border-radius: 1rem;
  }
  body.home-v4 .premium-next-icon { width: 42px; height: 42px; }
  body.home-v4 .premium-countdown {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(255,255,255,.22);
    text-align: left;
  }
  body.home-v4 .premium-countdown strong { font-size: 1.12rem !important; }
  body.home-v4 .premium-prayer-strip,
  body.home-v4 .premium-prayer-strip.prayer-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: .55rem !important;
    overflow: visible !important;
    width: 100%;
    padding: 0 !important;
    margin-top: .7rem;
    scroll-snap-type: none !important;
  }
  body.home-v4 .premium-prayer-strip .prayer-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: auto !important;
    min-width: 0 !important;
    min-height: 58px;
    padding: .7rem .75rem;
    border-radius: .85rem;
  }
  body.home-v4 .premium-prayer-strip .prayer-tile:nth-child(7) { grid-column: 1 / -1; }
  body.home-v4 .premium-prayer-strip .label { font-size: .67rem; }
  body.home-v4 .premium-prayer-strip .time { flex: 0 0 auto; font-size: .9rem; }
  body.home-v4 .premium-prayer-strip .is-next-prayer { transform: none; border-width: 2px; }
  body.home-v4 .premium-prayer-toggle { display: none !important; }
  body.home-v4 .premium-prayer-footer { justify-content: flex-end; margin-top: .65rem; }
  body.home-v4 .premium-prayer-footer a { text-align: right; }

  body.home-v4 .premium-utility-wrap { padding-top: 1.4rem; }
  body.home-v4 .premium-utility-intro { display: block; }
  body.home-v4 .premium-utility-intro h2 { margin-top: .25rem; font-size: 2.2rem; }
  body.home-v4 .premium-utility-intro > p { margin-top: .35rem; font-size: .82rem; }
  body.home-v4 .premium-utility {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .65rem;
  }
  body.home-v4 .premium-utility-card {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 150px;
    padding: 1rem;
    border-radius: 1.1rem;
  }
  body.home-v4 .premium-utility-card .utility-icon { grid-column: 1 / -1; width: 42px; height: 42px; }
  body.home-v4 .premium-utility-card > span:nth-child(2) { align-self: end; }
  body.home-v4 .premium-utility-card strong { font-size: .93rem; }
  body.home-v4 .premium-utility-card small { font-size: .64rem; line-height: 1.3; }
  body.home-v4 .premium-utility-card b { align-self: end; }
  body.home-v4 .premium-story { padding-top: 1rem; }

  /* Inner pages mobile */
  body.site-v4:not(.home-v4) main > section:first-child,
  body.site-v4:not(.home-v4) main.events-page,
  body.site-v4:not(.home-v4) main.about-revamp,
  body.site-v4:not(.home-v4) main.donate-revamp,
  body.site-v4:not(.home-v4) main.gallery-revamp { margin-top: 82px; }
  .contact-page-v4,
  .nikkah-page-v4,
  .coming-soon-page { width: min(100% - 1rem, 1160px); padding-top: .7rem; }
  .inner-page-hero,
  .coming-soon-card { padding: 1.25rem; border-radius: 1.35rem; }
  .inner-page-hero h1,
  .coming-soon-copy h1 { font-size: 2.45rem; }
  .contact-quick-actions { grid-template-columns: 1fr; }
  .contact-map-card iframe { height: 330px; }
  .contact-map-caption { align-items: flex-start; flex-direction: column; }
  .coming-soon-visual { padding: 1.4rem; }
  .nikkah-hero-v4 img { height: 230px; }
  .booking-grid-v4 { grid-template-columns: 1fr; }

  body.about-v4 .about-revamp { padding-top: .65rem; }
  body.about-v4 .about-hero-psych { padding: .6rem; border-radius: 1.35rem; }
  body.about-v4 .about-hero-image { min-height: 210px; }
  body.about-v4 .about-hero-copy { padding: .8rem .65rem 1rem; }
  body.about-v4 .about-hero-copy h1 { font-size: 2.15rem !important; }
  body.about-v4 .about-promise-grid { grid-template-columns: 1fr; }
  body.about-v4 .about-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body.about-v4 .about-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.about-v4 .about-browser .compact-tabs { top: 82px; }
  body.about-v4 .about-value-grid { grid-template-columns: 1fr; }

  body.events-v4 .events-page,
  body.donate-v4 .donate-revamp,
  body.gallery-v4 .gallery-revamp { padding-top: .7rem; }
  body.events-v4 .events-hero,
  body.gallery-v4 .gallery-heading { border-radius: 1.3rem; }
  body.events-v4 .events-toolbar { position: static; }
  body.management-v4 main section,
  body.volunteers-v4 main section { padding-top: .7rem; }
  body.management-v4 main section > .max-w-3xl,
  body.volunteers-v4 main section > .max-w-3xl { border-radius: 1.3rem; }
  body.volunteers-v4 .mobile-card-rail { grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  body.volunteers-v4 .mobile-card-rail > div { width: auto; }

  body.site-v4 .mobile-bottom-nav {
    left: .65rem;
    right: .65rem;
    bottom: calc(.55rem + env(safe-area-inset-bottom));
    width: auto;
    min-height: 72px;
    border-radius: 1.25rem;
    box-shadow: 0 18px 55px rgba(3,63,58,.24);
  }
  body.site-v4 .mobile-bottom-nav a,
  body.site-v4 .mobile-bottom-nav button { min-width: 0; padding: .5rem .25rem; }
  body.site-v4 .mobile-bottom-nav span { font-size: .62rem; }
  body.site-v4 .site-footer > div { padding-bottom: 2.5rem; }
}

@media (max-width: 390px) {
  body.site-v4 #header-site-name { max-width: 175px; font-size: .84rem; }
  body.home-v4 .premium-hero-copy h1 { font-size: 2.6rem !important; }
  body.home-v4 .premium-hero-actions { grid-template-columns: 1fr; }
  body.home-v4 .premium-text-link { grid-column: auto; }
  body.home-v4 .premium-utility { grid-template-columns: 1fr; }
  body.home-v4 .premium-utility-card { min-height: 126px; }
}

/* =========================================================
   V5 — custom mobile landing, simplified donate, colour fixes
   ========================================================= */

/* Mobile homepage is a separate composition, not a scaled desktop layout. */
.mobile-home-experience { display: none; }

/* Ensure all light internal-page surfaces use readable ink colours. */
body.site-v4:not(.home-v4) main {
  color: var(--v4-ink) !important;
}
body.site-v4:not(.home-v4) main :where(h1,h2,h3,h4,h5,h6,strong) {
  color: var(--v4-deep);
}
body.site-v4:not(.home-v4) main :where(p,li,small,span) {
  text-shadow: none;
}
body.site-v4:not(.home-v4) main p { color: #5e6f6a; }

/* Inner page heroes now use a light, functional treatment. */
body.about-v4 .about-hero-psych,
.inner-page-hero,
.coming-soon-card,
body.events-v4 .events-hero,
body.gallery-v4 .gallery-heading,
body.management-v4 main section > .max-w-3xl,
body.volunteers-v4 main section > .max-w-3xl {
  color: var(--v4-ink) !important;
  border: 1px solid var(--v4-border);
  background:
    radial-gradient(circle at 92% 4%, rgba(214,166,51,.14), transparent 18rem),
    linear-gradient(145deg, #fffdf8, #f5faf7) !important;
  box-shadow: var(--v4-shadow-soft);
}
body.about-v4 .about-hero-copy h1,
body.about-v4 .about-hero-copy p,
body.about-v4 .about-hero-copy .eyebrow,
.inner-page-hero h1,
.inner-page-hero p,
.coming-soon-copy h1,
.coming-soon-copy > p,
body.events-v4 .events-hero h1,
body.events-v4 .events-hero p,
body.gallery-v4 .gallery-heading h1,
body.gallery-v4 .gallery-heading p,
body.management-v4 main section > .max-w-3xl h1,
body.management-v4 main section > .max-w-3xl p,
body.volunteers-v4 main section > .max-w-3xl h1,
body.volunteers-v4 main section > .max-w-3xl p {
  color: var(--v4-deep) !important;
}
body.about-v4 .about-hero-copy .eyebrow,
.inner-page-hero .premium-section-kicker,
body.events-v4 .events-hero .eyebrow,
body.gallery-v4 .gallery-heading .eyebrow,
body.management-v4 main section > .max-w-3xl .eyebrow,
body.volunteers-v4 main section > .max-w-3xl .eyebrow {
  color: #a47119 !important;
  border-color: rgba(164,113,25,.2) !important;
  background: rgba(214,166,51,.09) !important;
}
body.about-v4 .about-lead { color: #65746f !important; }
body.about-v4 .about-promise-grid div {
  border-color: var(--v4-border);
  background: rgba(255,255,255,.72);
}
body.about-v4 .about-promise-grid strong { color: var(--v4-deep); }
body.about-v4 .about-promise-grid span { color: #71807b; }
body.about-v4 .management-staff-button {
  border-color: rgba(7,118,108,.25);
  color: var(--v4-deep);
  background: #edf7f3;
}
body.events-v4 .events-summary div {
  border-color: var(--v4-border);
  background: rgba(255,255,255,.72);
}
body.events-v4 .events-summary strong { color: var(--v4-deep); }
body.events-v4 .events-summary span { color: #697a75; }
.contact-quick-actions a {
  border-color: var(--v4-border);
  background: #f3f8f5;
  backdrop-filter: none;
}
.contact-quick-actions a:hover { background: #e8f3ef; }
.contact-quick-actions span { color: #a47119; }
.contact-quick-actions strong { color: var(--v4-deep); }
.coming-soon-card .btn-secondary,
.nikkah-hero-v4 .btn-secondary {
  border-color: rgba(7,118,108,.22);
  color: var(--v4-deep);
  background: #fff;
}
.coming-soon-visual {
  border-color: var(--v4-border);
  color: var(--v4-deep);
  background: #edf7f3;
}

/* Simplified donation page */
.donate-simple-page { position: relative; }
.donate-simple-shell {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
.donate-simple-copy,
.donate-download-panel {
  border: 1px solid var(--v4-border);
  border-radius: 1.65rem;
  background: rgba(255,253,248,.96);
  box-shadow: var(--v4-shadow-soft);
}
.donate-simple-copy { padding: clamp(1.35rem,4vw,3rem); }
.donate-simple-copy .eyebrow { margin-bottom: .9rem; }
.donate-simple-copy h1 {
  margin: 0;
  color: var(--v4-deep) !important;
  font-size: clamp(2.6rem,6vw,5rem);
  line-height: .95;
}
.donate-simple-lead {
  margin: 1rem 0 .3rem;
  color: #314d48 !important;
  font-size: clamp(1.05rem,2vw,1.3rem);
  font-weight: 750;
}
.donate-simple-copy > p:not(.eyebrow):not(.donate-simple-lead):not(.donate-simple-note) {
  max-width: 650px;
  margin-top: .25rem;
}
.donate-bank-card {
  margin-top: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--v4-border);
  border-radius: 1.2rem;
  background: #f5faf7;
}
.donate-bank-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--v4-border);
  background: #eaf5f1;
}
.donate-bank-heading span {
  color: var(--v4-deep);
  font-size: .88rem;
  font-weight: 850;
}
.donate-bank-heading strong {
  color: #7b6a3a;
  font-size: .7rem;
  text-align: right;
}
.donate-simple-row {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(12,92,84,.1);
}
.donate-simple-row:last-child { border-bottom: 0; }
.donate-simple-row > span { color: #75837f; font-size: .73rem; font-weight: 750; }
.donate-simple-row > strong { overflow-wrap: anywhere; font-size: .92rem; }
.donate-simple-row button {
  min-height: 34px;
  padding: .35rem .7rem;
  border: 1px solid rgba(7,118,108,.2);
  border-radius: 999px;
  color: var(--v4-teal);
  background: #fff;
  font-size: .68rem;
  font-weight: 850;
}
.donate-simple-note { margin: 1rem 0 .7rem; font-size: .78rem; }
.donate-contact-link { display: inline-flex; width: fit-content; }
.donate-download-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem,3vw,2rem);
  text-align: center;
}
.donate-download-panel h2 { margin: .25rem 0 1rem; font-size: clamp(1.45rem,3vw,2rem); }
.donate-qr-download {
  position: relative;
  display: block;
  width: min(100%, 330px);
  padding: .7rem;
  border: 1px solid rgba(7,118,108,.18);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 18px 45px rgba(4,48,44,.1);
  transition: transform .22s ease, box-shadow .22s ease;
}
.donate-qr-download:hover { transform: translateY(-4px); box-shadow: 0 26px 55px rgba(4,48,44,.16); }
.donate-qr-download:active { transform: scale(.985); }
.donate-qr-download img { display: block; width: 100%; border-radius: .8rem; }
.donate-qr-download span {
  display: block;
  padding: .7rem .4rem .2rem;
  color: var(--v4-teal);
  font-size: .75rem;
  font-weight: 850;
}
.donate-download-button { margin-top: 1rem; }
.donate-download-panel > small { margin-top: .65rem; color: #74827e; font-size: .7rem; }

@media (min-width: 768px) {
  .donate-simple-shell { grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); }
}

/* Fully custom mobile-only home */
@media (max-width: 767px) {
  body.home-v4 .desktop-home-experience { display: none !important; }
  body.home-v4 .mobile-home-experience {
    display: block;
    padding: 82px .65rem calc(1rem + env(safe-area-inset-bottom));
  }
  body.home-v4 .premium-home-main { padding-top: 0 !important; }
  body.home-v4 .site-footer { display: none; }

  .mobile-home-hero {
    position: relative;
    min-height: 445px;
    overflow: hidden;
    border-radius: 0 0 1.6rem 1.6rem;
    background: #053f3a;
    box-shadow: 0 24px 60px rgba(3,63,58,.2);
    isolation: isolate;
  }
  .mobile-home-hero-image,
  .mobile-home-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .mobile-home-hero-image { z-index: -3; object-fit: cover; object-position: 55% center; }
  .mobile-home-hero-shade {
    z-index: -2;
    background:
      linear-gradient(180deg, rgba(2,38,35,.20) 0%, rgba(2,48,44,.52) 43%, rgba(2,40,37,.95) 100%),
      linear-gradient(90deg, rgba(2,39,36,.56), transparent 70%);
  }
  .mobile-home-hero-content {
    min-height: 445px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.35rem 1.05rem 1.1rem;
  }
  .mobile-home-arabic {
    margin: 0 0 .15rem;
    color: #f2d482 !important;
    font-family: "Noto Naskh Arabic", serif;
    font-size: 1.45rem;
    font-weight: 650;
    line-height: 1.35;
  }
  .mobile-home-kicker {
    margin: 0 0 .5rem;
    color: rgba(255,255,255,.66) !important;
    font-size: .59rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .mobile-home-hero h1 {
    max-width: 340px;
    margin: 0;
    color: #fff !important;
    font-family: "Manrope", sans-serif !important;
    font-size: clamp(2.35rem,11vw,3.25rem);
    font-weight: 800;
    line-height: .96;
    letter-spacing: -.065em;
    text-wrap: balance;
  }
  .mobile-home-hero-content > p#mobile-hero-subtitle {
    max-width: 335px;
    margin: .8rem 0 0;
    color: rgba(255,255,255,.82) !important;
    font-size: .85rem;
    line-height: 1.5;
  }
  .mobile-home-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin-top: 1rem;
  }
  .mobile-primary-action {
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem;
    border-radius: .95rem;
    font-size: .78rem;
    font-weight: 850;
    transition: transform .18s ease;
  }
  .mobile-primary-action:active { transform: scale(.97); }
  .mobile-primary-action.is-light { color: var(--v4-deep); background: #fff; }
  .mobile-primary-action.is-gold { color: #17352f; background: #dfb13f; }
  .mobile-home-facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .45rem;
    margin-top: .75rem;
  }
  .mobile-home-facts span {
    min-width: 0;
    padding: .58rem .55rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: .8rem;
    background: rgba(255,255,255,.07);
  }
  .mobile-home-facts strong,
  .mobile-home-facts small { display: block; }
  .mobile-home-facts strong { color: #fff; font-size: .82rem; }
  .mobile-home-facts small { margin-top: .1rem; color: rgba(255,255,255,.61); font-size: .53rem; }

  .mobile-prayer-widget {
    position: relative;
    z-index: 3;
    margin: .7rem 0 0;
    padding: 1rem;
    border: 1px solid var(--v4-border);
    border-radius: 1.35rem;
    background: #fffdf8;
    box-shadow: 0 18px 45px rgba(3,63,58,.12);
  }
  .mobile-prayer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .7rem;
  }
  .mobile-prayer-header span {
    color: #a47119;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .mobile-prayer-header h2 { margin: .12rem 0 0; font-size: 1.45rem; line-height: 1; }
  .mobile-prayer-header > strong {
    max-width: 105px;
    color: #6e7b77;
    font-size: .62rem;
    line-height: 1.3;
    text-align: right;
  }
  .mobile-next-prayer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .8rem;
    align-items: center;
    margin-top: .8rem;
    padding: .8rem .9rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg,#08766c,#04564f);
  }
  .mobile-next-prayer div:last-child { text-align: right; }
  .mobile-next-prayer span,
  .mobile-next-prayer strong { display: block; color: inherit; }
  .mobile-next-prayer span { color: rgba(255,255,255,.64); font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-next-prayer strong { margin-top: .15rem; font-size: .98rem; }
  .mobile-next-prayer div:last-child strong { color: #f4cf70; font-variant-numeric: tabular-nums; }
  .mobile-prayer-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .45rem;
    margin-top: .6rem;
  }
  .mobile-prayer-grid .prayer-tile {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    padding: .55rem .65rem;
    border: 1px solid #dce8e4;
    border-radius: .8rem;
    background: #f7fbf9;
  }
  .mobile-prayer-grid .prayer-tile:nth-child(7) { grid-column: 1 / -1; }
  .mobile-prayer-grid .label { min-width: 0; color: #697874; font-size: .61rem; font-weight: 750; }
  .mobile-prayer-grid .time { flex: 0 0 auto; color: var(--v4-deep); font-size: .78rem; font-weight: 850; }
  .mobile-prayer-grid .is-next-prayer { border: 2px solid var(--v4-gold); background: #fff9e9; }
  .mobile-prayer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .65rem;
    color: var(--v4-teal);
    font-size: .65rem;
    font-weight: 800;
  }

  .mobile-home-shortcuts { padding: 1.15rem .05rem .65rem; }
  .mobile-section-heading span {
    color: #a47119;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .mobile-section-heading h2 { margin: .15rem 0 .75rem; font-size: 1.65rem; line-height: 1; }
  .mobile-shortcut-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .mobile-shortcut-grid a {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: .85rem;
    border: 1px solid var(--v4-border);
    border-radius: 1rem;
    background: #fffdf8;
    box-shadow: 0 10px 28px rgba(4,48,44,.07);
  }
  .mobile-shortcut-icon {
    margin-bottom: auto;
    color: #a47119;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .08em;
  }
  .mobile-shortcut-grid strong { color: var(--v4-deep); font-size: .88rem; }
  .mobile-shortcut-grid small { margin-top: .15rem; color: #72807c; font-size: .59rem; line-height: 1.3; }
  .mobile-about-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .15rem .6rem;
    align-items: center;
    margin-top: .55rem;
    padding: .85rem 1rem;
    border-radius: 1rem;
    color: #fff;
    background: var(--v4-deep);
  }
  .mobile-about-link span,
  .mobile-about-link b { display: block; }
  .mobile-about-link span { font-size: .8rem; font-weight: 850; }
  .mobile-about-link b { grid-column: 1; color: rgba(255,255,255,.64); font-size: .59rem; font-weight: 600; }
  .mobile-about-link i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; color: #f1cf76; }

  /* Donate mobile */
  .donate-simple-page { padding-inline: .65rem !important; padding-top: .7rem !important; }
  .donate-simple-shell { grid-template-columns: 1fr; }
  .donate-download-panel { order: -1; padding: 1rem; border-radius: 1.25rem; }
  .donate-qr-download { width: min(78vw, 285px); }
  .donate-simple-copy { padding: 1.15rem; border-radius: 1.25rem; }
  .donate-simple-copy h1 { font-size: 2.7rem; }
  .donate-bank-heading { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .donate-bank-heading strong { text-align: left; }
  .donate-simple-row { grid-template-columns: minmax(0,1fr) auto; gap: .35rem .6rem; }
  .donate-simple-row > span { grid-column: 1 / -1; }
  .donate-contact-link,
  .donate-download-button { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .mobile-home-hero { min-height: 425px; }
  .mobile-home-hero-content { min-height: 425px; padding-inline: .9rem; }
  .mobile-home-hero h1 { font-size: 2.2rem; }
  .mobile-home-primary-actions { grid-template-columns: 1fr; }
  .mobile-home-facts small { display: none; }
  .mobile-prayer-widget { padding: .85rem; }
  .mobile-prayer-grid .prayer-tile { padding-inline: .55rem; }
}

/* =========================================================
   V6 — mobile header/nav repair and functional shortcuts
   ========================================================= */

/* About page: replace generic promise boxes with direct community actions. */
.community-simple-intro {
  max-width: 680px;
  margin-bottom: 1rem;
}
.community-simple-intro h2 {
  margin: .2rem 0 .35rem;
  color: var(--teal);
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.community-simple-intro p:last-child {
  margin: 0;
  color: var(--muted);
}
.community-simple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.community-simple-card {
  min-width: 0;
  min-height: 150px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: .75rem 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(7, 94, 87, .14);
  border-radius: 1.15rem;
  background: #fffdf8;
  box-shadow: 0 13px 34px rgba(4, 48, 44, .07);
}
.community-simple-card:hover {
  border-color: rgba(7, 94, 87, .28);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(4, 48, 44, .12);
}
.community-simple-icon {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--teal);
  background: var(--teal-soft);
}
.community-simple-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.community-simple-copy strong,
.community-simple-copy small {
  display: block;
}
.community-simple-copy strong {
  color: var(--teal);
  font-family: var(--display-font);
  font-size: 1.08rem;
  font-weight: 800;
}
.community-simple-copy small {
  margin-top: .28rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.community-simple-card b {
  grid-column: 2;
  color: #9a6b16;
  font-size: .75rem;
  font-weight: 850;
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.site-v4 {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  /* Header is a strict two-column mobile component. */
  body.site-v4 .site-header {
    width: 100vw !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    overflow: visible;
    background: rgba(255, 253, 247, .98) !important;
    border-bottom: 1px solid rgba(7, 94, 87, .11);
    box-shadow: 0 8px 24px rgba(23, 33, 31, .08);
  }
  body.site-v4 .site-header-inner {
    width: 100% !important;
    max-width: none !important;
    min-height: 72px !important;
    height: 72px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: .65rem !important;
    padding: 0 .75rem !important;
  }
  body.site-v4 .site-brand {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: .62rem;
    overflow: hidden;
  }
  body.site-v4 .site-brand-mark {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    padding: 3px;
    border-radius: 12px;
  }
  body.site-v4 .site-brand-copy {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  body.site-v4 #header-site-name {
    width: 100%;
    max-width: none !important;
    overflow: hidden;
    color: #075e57 !important;
    font-family: var(--display-font) !important;
    font-size: clamp(.78rem, 3.8vw, .95rem) !important;
    font-weight: 800;
    line-height: 1.05 !important;
    letter-spacing: -.035em;
    white-space: normal !important;
    text-overflow: clip;
  }
  body.site-v4 .site-brand-copy small {
    margin-top: .15rem;
    overflow: hidden;
    color: #9a6b16;
    font-size: .49rem !important;
    letter-spacing: .11em;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  body.site-v4 .site-header-actions {
    width: 44px;
    min-width: 44px;
    justify-self: end;
  }
  body.site-v4 .mobile-menu-button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(4, 48, 44, .08);
  }
  body.site-v4 .mobile-menu {
    top: 78px !important;
    right: .65rem !important;
    left: .65rem !important;
    width: auto !important;
    max-height: calc(100dvh - 174px) !important;
    bottom: auto !important;
  }

  /* Bottom navigation no longer inherits the old centred transform. */
  body.site-v4 .mobile-bottom-nav {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 68px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px !important;
    padding: 5px !important;
    overflow: hidden;
    transform: none !important;
    border-radius: 20px !important;
    background: rgba(255, 253, 247, .985) !important;
    box-shadow: 0 14px 42px rgba(3, 52, 47, .20) !important;
  }
  body.site-v4 .mobile-bottom-nav a,
  body.site-v4 .mobile-bottom-nav button {
    width: 100%;
    min-width: 0 !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: .35rem .12rem !important;
    border-radius: 15px !important;
    gap: .18rem !important;
    color: #65736f;
    font-size: .55rem !important;
    line-height: 1 !important;
  }
  body.site-v4 .mobile-bottom-nav svg,
  body.site-v4 .mobile-bottom-nav a.nav-active svg {
    width: 21px !important;
    height: 21px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: currentColor !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.site-v4 .mobile-bottom-nav a.nav-active {
    color: #fff !important;
    background: #075e57 !important;
    box-shadow: 0 7px 16px rgba(7, 94, 87, .20) !important;
  }
  body.site-v4 .mobile-bottom-nav a.nav-active svg {
    stroke: #fff !important;
  }
  body.site-v4 .mobile-bottom-nav span {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* The custom mobile homepage starts immediately below the repaired header. */
  body.home-v4 .mobile-home-experience {
    width: 100%;
    max-width: 100%;
    padding: 72px .55rem calc(108px + env(safe-area-inset-bottom)) !important;
    overflow: hidden;
  }
  body.home-v4 .mobile-home-hero {
    width: 100%;
    min-height: 420px;
    border-radius: 0 0 1.35rem 1.35rem;
  }
  body.home-v4 .mobile-home-hero-content {
    min-height: 420px;
    padding: 1.15rem .95rem 1rem;
  }

  /* Mobile quick access: actual pictograms rather than numbered placeholders. */
  .mobile-home-shortcuts {
    padding: 1.1rem 0 .65rem !important;
  }
  .mobile-shortcut-grid {
    gap: .55rem !important;
  }
  .mobile-shortcut-grid .mobile-shortcut-card {
    position: relative;
    min-width: 0;
    min-height: 118px;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr !important;
    align-items: start !important;
    justify-content: initial !important;
    gap: .62rem .65rem !important;
    padding: .78rem !important;
    overflow: hidden;
    border-radius: 1rem !important;
  }
  .mobile-shortcut-grid .mobile-shortcut-card::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -32px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: currentColor;
    opacity: .055;
    pointer-events: none;
  }
  .mobile-shortcut-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin: 0 !important;
    border-radius: 14px;
    color: #075e57 !important;
    background: #e7f4f0;
  }
  .mobile-shortcut-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-shortcut-copy {
    min-width: 0;
    align-self: center;
  }
  .mobile-shortcut-copy strong,
  .mobile-shortcut-copy small {
    display: block;
  }
  .mobile-shortcut-copy strong {
    color: var(--v4-deep);
    font-size: .86rem;
    font-weight: 850;
  }
  .mobile-shortcut-copy small {
    margin-top: .16rem;
    color: #71807b;
    font-size: .56rem;
    line-height: 1.35;
  }
  .mobile-shortcut-arrow {
    position: absolute;
    right: .72rem;
    bottom: .62rem;
    color: currentColor;
    font-size: .8rem;
    font-weight: 900;
  }
  .mobile-shortcut-card.tone-calendar { color: #0c766d; }
  .mobile-shortcut-card.tone-pin { color: #447db0; }
  .mobile-shortcut-card.tone-heart { color: #b77e16; }
  .mobile-shortcut-card.tone-users { color: #7959a7; }
  .mobile-shortcut-card.tone-calendar .mobile-shortcut-icon { color: #0c766d !important; background: #e4f4ef; }
  .mobile-shortcut-card.tone-pin .mobile-shortcut-icon { color: #447db0 !important; background: #e9f2fa; }
  .mobile-shortcut-card.tone-heart .mobile-shortcut-icon { color: #b77e16 !important; background: #fff4dc; }
  .mobile-shortcut-card.tone-users .mobile-shortcut-icon { color: #7959a7 !important; background: #f2ebfa; }

  /* About page is leaner: no generic Pray / Learn / Belong strip. */
  body.about-v4 .about-hero-copy {
    padding-bottom: .2rem;
  }
  body.about-v4 .about-actions {
    margin-top: 1rem;
  }
  .community-simple-grid {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .community-simple-card {
    min-height: 126px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: .9rem;
  }
  .community-simple-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

@media (max-width: 390px) {
  body.site-v4 .site-header-inner {
    padding-inline: .55rem !important;
    gap: .45rem !important;
  }
  body.site-v4 .site-brand {
    gap: .5rem;
  }
  body.site-v4 .site-brand-mark {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }
  body.site-v4 #header-site-name {
    font-size: .75rem !important;
  }
  body.site-v4 .site-brand-copy small {
    font-size: .44rem !important;
  }
  body.site-v4 .mobile-bottom-nav {
    left: 6px !important;
    right: 6px !important;
    padding: 4px !important;
  }
  body.site-v4 .mobile-bottom-nav a,
  body.site-v4 .mobile-bottom-nav button {
    min-height: 54px !important;
    font-size: .5rem !important;
  }
  .mobile-shortcut-grid .mobile-shortcut-card {
    min-height: 112px;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: .5rem;
    padding: .68rem !important;
  }
  .mobile-shortcut-icon {
    width: 38px;
    height: 38px;
  }
  .mobile-shortcut-copy strong {
    font-size: .8rem;
  }
  .mobile-shortcut-copy small {
    font-size: .52rem;
  }
}

/* =========================================================
   V7 — alignment, contrast and mobile usability corrections
   ========================================================= */

/* Keep labels compact instead of stretching into coloured bars. */
.inner-page-hero .premium-section-kicker,
.booking-heading .premium-section-kicker,
.contact-office-card .premium-section-kicker,
body.events-v4 .events-hero .eyebrow,
body.management-v4 main section > .max-w-3xl .eyebrow {
  width: fit-content !important;
  max-width: 100%;
  display: inline-flex !important;
  align-items: center;
  min-height: 30px;
  margin: 0 0 .8rem !important;
  padding: .35rem .7rem !important;
  border: 1px solid rgba(164,113,25,.22) !important;
  border-radius: 999px !important;
  color: #946815 !important;
  background: rgba(214,166,51,.11) !important;
  font-family: var(--display-font) !important;
  font-size: .65rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase;
  box-shadow: none !important;
}

/* About hero overlay: never render dark green text over dark green. */
body.about-v4 .about-hero-overlay {
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 1rem;
  color: #fff !important;
  background: rgba(3,52,47,.91) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.about-v4 .about-hero-overlay span {
  color: rgba(255,255,255,.78) !important;
}
body.about-v4 .about-hero-overlay strong {
  color: #fff !important;
  font-family: var(--display-font) !important;
  font-size: clamp(1rem,2.2vw,1.35rem) !important;
  font-weight: 800;
  letter-spacing: -.025em;
}
body.about-v4 .about-hero-copy,
body.about-v4 .about-hero-copy h1,
body.about-v4 .about-hero-copy p {
  color: var(--v4-deep) !important;
}
body.about-v4 .about-actions {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
  gap: .65rem;
}
body.about-v4 .about-actions a {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .75rem .9rem !important;
  text-align: center;
  white-space: nowrap;
  line-height: 1.15;
}

/* Contact and Nikkah heroes: readable, clean and properly aligned. */
.inner-page-hero {
  overflow: hidden;
}
.inner-page-hero > div,
.inner-page-hero > img,
.contact-quick-actions {
  min-width: 0;
}
.inner-page-hero h1 {
  margin: 0 0 .7rem !important;
  color: var(--v4-deep) !important;
  font-family: var(--display-font) !important;
  font-weight: 850 !important;
  letter-spacing: -.055em !important;
}
.inner-page-hero > div > p:not(.premium-section-kicker) {
  color: #62736e !important;
}
.inner-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .65rem;
  margin-top: 1.15rem;
}
.inner-hero-actions a {
  min-height: 48px;
  margin: 0 !important;
  white-space: nowrap;
}
.contact-quick-actions {
  align-self: stretch;
}
.contact-quick-actions a {
  min-width: 0;
  overflow: hidden;
}
.contact-quick-actions strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Management cards: names and roles are permanently legible on touch screens. */
body.management-v4 .team-grid {
  gap: .9rem;
}
body.management-v4 .team-card-media {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(7,94,87,.15);
  border-radius: 1.2rem;
  background: #eef3f1;
  box-shadow: 0 12px 30px rgba(4,48,44,.10);
}
body.management-v4 .team-card-media img {
  object-position: center top;
}
body.management-v4 .team-card-mask {
  inset: auto 0 0;
  min-height: 40%;
  display: flex !important;
  align-items: flex-end;
  padding: .65rem !important;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  background: linear-gradient(180deg,rgba(2,36,33,0),rgba(2,36,33,.70) 22%,rgba(2,36,33,.97) 100%) !important;
}
body.management-v4 .team-card-content {
  width: 100%;
  min-width: 0;
  padding: .65rem .7rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: .85rem;
  color: #fff !important;
  background: rgba(3,52,47,.74);
  opacity: 1 !important;
  transform: none !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.management-v4 .team-card-content .team-role {
  margin: 0 0 .3rem;
  color: #f0ca70 !important;
  font-size: .62rem !important;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .09em;
}
body.management-v4 .team-card-content h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff !important;
  font-family: var(--display-font) !important;
  font-size: clamp(.78rem,1.35vw,.95rem) !important;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.018em;
}

/* Donation controls: QR itself downloads; copy uses a familiar icon. */
.donate-download-button { display: none !important; }
.copy-icon-button,
.donate-simple-row .copy-icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(7,118,108,.20) !important;
  border-radius: 12px !important;
  color: var(--v4-teal) !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(4,48,44,.06);
}
.copy-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-icon-button:hover { transform: translateY(-2px); border-color: rgba(7,118,108,.46) !important; }
.copy-icon-button.is-copied {
  color: #fff !important;
  border-color: var(--v4-teal) !important;
  background: var(--v4-teal) !important;
}
.donate-qr-download {
  cursor: download;
}
.donate-qr-download span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.donate-qr-download span::before {
  content: "↓";
  font-size: .9rem;
}

/* Footer: square logo and a simpler mobile hierarchy. */
.site-footer #footer-logo,
.site-footer .footer-brand-logo {
  width: 48px !important;
  height: 48px !important;
  padding: 5px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: #fffdf8 !important;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
}
.site-footer #footer-site-name {
  color: #fff !important;
  font-family: var(--display-font) !important;
  font-weight: 800;
}
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer a {
  text-shadow: none;
}

/* Events: cleaner navigator, equal cards and less visual noise. */
body.events-v4 .events-page {
  max-width: 1180px;
}
body.events-v4 .events-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 1.2rem;
  margin-bottom: 1rem;
  padding: clamp(1.25rem,3vw,2rem) !important;
  border: 0 !important;
  border-radius: 1.6rem;
  color: #fff !important;
  background:
    radial-gradient(circle at 92% 5%,rgba(225,181,81,.28),transparent 16rem),
    linear-gradient(135deg,#063f3a,#087269) !important;
  box-shadow: 0 22px 55px rgba(3,52,47,.18);
}
body.events-v4 .events-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}
body.events-v4 .events-hero > * { position: relative; z-index: 1; }
body.events-v4 .events-hero .eyebrow {
  color: #f5d687 !important;
  border-color: rgba(245,214,135,.26) !important;
  background: rgba(255,255,255,.08) !important;
}
body.events-v4 .events-hero h1 {
  margin: 0 0 .35rem !important;
  color: #fff !important;
  font-family: var(--display-font) !important;
  font-size: clamp(2rem,5vw,3.8rem) !important;
  font-weight: 850;
  letter-spacing: -.055em;
}
body.events-v4 .events-hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.76) !important;
}
body.events-v4 .events-summary {
  min-width: 245px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .55rem;
}
body.events-v4 .events-summary > div {
  min-width: 0;
  padding: .85rem .9rem;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 1rem;
  background: rgba(255,255,255,.10) !important;
  backdrop-filter: blur(10px);
}
body.events-v4 .events-summary strong { color: #fff !important; font-size: 1.35rem; }
body.events-v4 .events-summary span { color: rgba(255,255,255,.68) !important; }
body.events-v4 .events-browser {
  padding: 1rem;
  border: 1px solid rgba(7,94,87,.12);
  border-radius: 1.55rem;
  background: rgba(255,253,248,.90);
  box-shadow: 0 18px 48px rgba(4,48,44,.08);
}
body.events-v4 .events-toolbar {
  display: grid;
  grid-template-columns: minmax(250px,.65fr) minmax(280px,1fr);
  align-items: center;
  gap: .8rem;
}
body.events-v4 .events-tabs {
  min-height: 52px;
  padding: 5px;
  border: 1px solid rgba(7,94,87,.12);
  border-radius: 16px;
  background: #e9f4f0;
}
body.events-v4 .events-tab {
  min-height: 40px;
  border-radius: 12px;
  font-family: var(--display-font);
  font-weight: 800;
}
body.events-v4 .events-tab.is-active {
  color: var(--v4-deep) !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(4,48,44,.08);
}
body.events-v4 .events-search {
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 16px;
  background: #fff;
}
body.events-v4 .events-search::after { display: none !important; }
body.events-v4 .events-search input { font-family: var(--display-font); }
body.events-v4 .events-filter-chips {
  gap: .5rem;
  margin-top: .85rem;
}
body.events-v4 .events-filter {
  min-height: 38px;
  padding: .45rem .78rem;
  border-radius: 999px;
  font-family: var(--display-font);
  font-size: .73rem;
  font-weight: 800;
}
body.events-v4 .events-results-status {
  margin: .7rem .15rem .8rem;
}
body.events-v4 .events-list {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .75rem;
}
body.events-v4 .event-compact-card {
  overflow: hidden;
  border: 1px solid rgba(7,94,87,.13) !important;
  border-left: 1px solid rgba(7,94,87,.13) !important;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(4,48,44,.06);
}
body.events-v4 .event-compact-card::before {
  inset: 0 0 auto 0;
  width: auto;
  height: 4px;
}
body.events-v4 .event-card-trigger {
  min-height: 138px;
  grid-template-columns: 105px minmax(0,1fr) 32px;
  gap: .9rem;
  padding: 1rem;
}
body.events-v4 .event-date-badge {
  width: 105px;
  min-height: 92px;
  padding: .7rem .55rem;
  border-radius: 1rem;
  text-align: center;
}
body.events-v4 .event-card-title {
  color: var(--v4-deep) !important;
  font-family: var(--display-font) !important;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.025em;
}
body.events-v4 .event-card-meta {
  margin-top: .45rem;
  color: #70807b;
  font-size: .72rem;
}
body.events-v4 .event-card-details-inner {
  border-top: 1px solid rgba(7,94,87,.10);
  background: #f7fbf9;
}
body.events-v4 .event-card-details-inner p {
  color: #536762;
}

@media (max-width: 767px) {
  /* Mobile header: balanced brand and action with no clipping. */
  body.site-v4 .site-header {
    height: 68px !important;
    min-height: 68px !important;
    background: rgba(255,253,248,.985) !important;
  }
  body.site-v4 .site-header-inner {
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .7rem !important;
    padding: 0 .8rem !important;
  }
  body.site-v4 .site-brand {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    gap: .58rem;
  }
  body.site-v4 .site-brand-mark {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 11px !important;
  }
  body.site-v4 .site-brand-copy {
    flex: 1 1 auto;
    min-width: 0;
  }
  body.site-v4 #header-site-name {
    display: -webkit-box !important;
    width: auto !important;
    max-width: 240px !important;
    overflow: hidden !important;
    color: #064f49 !important;
    font-size: clamp(.78rem,3.7vw,.96rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body.site-v4 .site-brand-copy small {
    margin-top: .12rem;
    color: #976b16;
    font-size: .48rem !important;
    letter-spacing: .11em;
  }
  body.site-v4 .site-header-actions {
    flex: 0 0 42px;
    width: 42px !important;
    min-width: 42px !important;
  }
  body.site-v4 .mobile-menu-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 12px !important;
  }
  body.site-v4 .mobile-menu { top: 74px !important; }

  /* Equal-width bottom navigation; active state no longer distorts alignment. */
  body.site-v4 .mobile-bottom-nav {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(7px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    min-height: 64px !important;
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    gap: 2px !important;
    padding: 5px !important;
    overflow: visible !important;
    border: 1px solid rgba(7,94,87,.13) !important;
    border-radius: 21px !important;
    background: rgba(255,253,248,.98) !important;
    box-shadow: 0 14px 38px rgba(2,37,34,.20) !important;
  }
  body.site-v4 .mobile-bottom-nav a,
  body.site-v4 .mobile-bottom-nav button {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-rows: 23px auto !important;
    place-items: center !important;
    align-content: center !important;
    gap: .16rem !important;
    padding: .3rem .05rem !important;
    border-radius: 15px !important;
    color: #667672 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: .52rem !important;
    font-weight: 800 !important;
  }
  body.site-v4 .mobile-bottom-nav a.nav-active {
    color: #075e57 !important;
    background: #e4f2ed !important;
    box-shadow: inset 0 0 0 1px rgba(7,94,87,.08) !important;
  }
  body.site-v4 .mobile-bottom-nav svg,
  body.site-v4 .mobile-bottom-nav a.nav-active svg {
    width: 21px !important;
    height: 21px !important;
    stroke: currentColor !important;
  }
  body.site-v4 .mobile-bottom-nav span {
    line-height: 1.05;
  }

  body.about-v4 .about-actions {
    grid-template-columns: 1fr !important;
  }
  body.about-v4 .about-actions a {
    min-height: 46px;
    white-space: normal;
  }
  body.about-v4 .about-hero-overlay {
    left: .65rem;
    right: .65rem;
    bottom: .65rem;
    padding: .8rem .85rem;
  }

  .inner-page-hero {
    padding: 1.1rem !important;
    border-radius: 1.25rem !important;
  }
  .inner-page-hero h1 {
    font-size: clamp(2rem,11vw,3.1rem) !important;
    line-height: .98 !important;
  }
  .inner-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .inner-hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .contact-quick-actions {
    grid-template-columns: 1fr !important;
  }
  .contact-quick-actions strong { white-space: normal; }

  body.management-v4 main section {
    padding-inline: .7rem !important;
  }
  body.management-v4 .team-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: .65rem;
  }
  body.management-v4 .team-card-mask { padding: .45rem !important; }
  body.management-v4 .team-card-content { padding: .52rem .55rem; border-radius: .72rem; }
  body.management-v4 .team-card-content .team-role { font-size: .52rem !important; }
  body.management-v4 .team-card-content h3 { font-size: clamp(.64rem,3vw,.78rem) !important; }

  /* Mobile footer acts as a compact information panel above the bottom nav. */
  .site-footer {
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    background: linear-gradient(160deg,#075e57,#043c37 72%) !important;
  }
  .site-footer > .max-w-6xl {
    padding: 1.6rem 1rem 1rem !important;
  }
  .site-footer > .max-w-6xl > .grid:first-child {
    gap: .35rem !important;
  }
  .site-footer > .max-w-6xl > .grid:first-child > div:first-child {
    margin-bottom: .5rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 1rem;
    background: rgba(255,255,255,.06);
  }
  .site-footer .my-10 {
    margin: 1rem 0 !important;
  }
  .site-footer .footer-accordion-item {
    border-top: 1px solid rgba(255,255,255,.14) !important;
  }
  .site-footer .footer-accordion-button {
    min-height: 48px;
    padding: .65rem 0 !important;
    font-size: .8rem;
  }
  .site-footer .footer-accordion-content ul {
    padding-bottom: .75rem;
  }
  .site-footer .footer-pill {
    width: 100%;
    justify-content: space-between;
    border-radius: .75rem;
    padding: .55rem .7rem;
  }
  .site-footer #footer-links {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .45rem .8rem;
    padding-bottom: .75rem;
  }

  .donate-simple-row {
    grid-template-columns: minmax(0,1fr) 40px !important;
  }

  body.events-v4 .events-page {
    padding: .7rem .65rem calc(5rem + env(safe-area-inset-bottom)) !important;
  }
  body.events-v4 .events-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 1.15rem !important;
    border-radius: 1.25rem;
  }
  body.events-v4 .events-summary {
    width: 100%;
    min-width: 0;
  }
  body.events-v4 .events-browser {
    padding: .7rem;
    border-radius: 1.2rem;
  }
  body.events-v4 .events-toolbar {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  body.events-v4 .events-tabs {
    position: static !important;
    top: auto !important;
  }
  body.events-v4 .events-search {
    min-height: 48px;
  }
  body.events-v4 .events-filter-chips {
    margin-top: .65rem;
  }
  body.events-v4 .events-list {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
  body.events-v4 .event-card-trigger {
    min-height: 112px;
    grid-template-columns: 82px minmax(0,1fr) 28px;
    gap: .65rem;
    padding: .78rem;
  }
  body.events-v4 .event-date-badge {
    width: 82px;
    min-height: 78px;
    padding: .55rem .4rem;
  }
  body.events-v4 .event-card-title {
    font-size: .88rem;
  }
  body.events-v4 .event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .35rem;
    font-size: .64rem;
  }
  body.events-v4 .event-card-meta i { display: none; }
}

@media (max-width: 370px) {
  body.site-v4 #header-site-name { max-width: 190px !important; font-size: .73rem !important; }
  body.management-v4 .team-card-content h3 { font-size: .6rem !important; }
  body.events-v4 .event-card-trigger { grid-template-columns: 72px minmax(0,1fr) 26px; }
  body.events-v4 .event-date-badge { width: 72px; }
}

/* Eight prayer tiles now form a complete grid, including calculated Midnight. */
body.home-v4 .premium-prayer-strip .prayer-tile:nth-child(7),
.mobile-prayer-grid .prayer-tile:nth-child(7) {
  grid-column: auto !important;
}

@media (max-width: 767px) {
  /* Management cards use a dedicated information band on mobile. */
  body.management-v4 .team-card-media {
    aspect-ratio: auto !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
  }
  body.management-v4 .team-card-media > img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 5;
    flex: 0 0 auto;
    object-fit: cover;
  }
  body.management-v4 .team-card-mask {
    position: static !important;
    min-height: 92px;
    flex: 1 1 auto;
    padding: .5rem !important;
    background: #063f3a !important;
  }
  body.management-v4 .team-card-content {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.06);
  }
}
