/* =========================================================================
   MARIFAT CENTER — North Texas
   Design system + components
   Brand: Marifat Green #319936 · Flag Red #CE3030 · Ink Charcoal #1E211E · Paper White #FBFAF8
   Fonts: Cormorant Garamond (headings) · Poppins (UI) · Inter (body) · Amiri (Arabic/script accents)
   ========================================================================= */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&family=Amiri+Quran&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Brand */
  --green:        #319936;
  --green-600:    #2b8630;
  --green-700:    #237029;
  --green-050:    #eef6ef;
  --green-100:    #dcecdd;
  --red:          #ce3030;
  --red-600:      #b52a2a;
  --charcoal:     #1e211e;
  --charcoal-800: #2a2e2a;
  --charcoal-700: #3a403a;
  --paper:        #fbfaf8;

  /* Neutrals derived for UI */
  --ink:          #1e211e;
  --ink-soft:     #4b524b;
  --ink-muted:    #737a73;
  --line:         #e7e4dd;
  --line-soft:    #f0ede6;
  --surface:      #ffffff;
  --surface-2:    #f5f3ee;

  /* Semantic */
  --bg:           var(--paper);
  --fg:           var(--charcoal);
  --primary:      var(--green);
  --accent:       var(--red);

  /* Type scale */
  --font-heading: 'Cormorant Garamond', 'Amiri', Georgia, serif;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', 'Amiri', system-ui, sans-serif;
  --font-script:  'Amiri', 'Cormorant Garamond', Georgia, serif;
  --font-arabic:  'Amiri', serif;
  --font-quran:   'Amiri Quran', 'Amiri', serif;

  /* Night palette (black / deep red) */
  --night:        #100c0c;
  --night-2:      #171111;
  --blood:        #7a1a1a;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  3.75rem;

  /* Spacing */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-8: 3rem;    --sp-10: 4rem;
  --sp-12: 6rem;   --sp-16: 8rem;

  /* Radii + shadow */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 30px;  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(30,33,30,.06), 0 2px 6px rgba(30,33,30,.05);
  --shadow-md: 0 6px 18px rgba(30,33,30,.08), 0 2px 6px rgba(30,33,30,.05);
  --shadow-lg: 0 20px 48px rgba(30,33,30,.14), 0 6px 16px rgba(30,33,30,.08);
  --shadow-green: 0 14px 30px rgba(49,153,54,.28);

  --container: 1200px;
  --container-narrow: 820px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.08; color: var(--charcoal); font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2.75rem, 6.5vw, 4.75rem); font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: clamp(2.15rem, 4.6vw, 3.15rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); font-weight: 600; }
h4 { font-size: 1.3rem; font-weight: 600; }
p  { color: var(--ink-soft); }
strong { color: var(--charcoal); font-weight: 600; }
/* Small UI headings (card titles, widget headings) stay compact + a touch tighter */
.card h3, .mcard__body h3, .info-item h4, .tier h3 { letter-spacing: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow--red { color: var(--red); }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px; background: currentColor; border-radius: 2px;
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

/* Arabic / bismillah accent line */
.script-line {
  font-family: var(--font-script);
  color: var(--green);
  font-weight: 400;
  font-style: italic;
  font-size: 1.08em;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); }
.section--soft { background: var(--surface-2); }
.section--ink { background: var(--charcoal); color: #e8e9e6; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink p { color: #b9bdb7; }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .7rem; }
.section-head p { margin-top: 1rem; font-size: var(--fs-md); }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.lede { font-size: var(--fs-md); color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; min-height: 48px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r-full);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-green); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn--red   { --btn-bg: var(--red); }
.btn--red:hover { box-shadow: 0 14px 30px rgba(206,48,48,.28); }
.btn--dark  { --btn-bg: var(--charcoal); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green); border: 2px solid var(--green); box-shadow: none; }
.btn--ghost:hover { background: var(--green); --btn-fg: #fff; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--charcoal); }
.btn--outline-white { --btn-bg: transparent; --btn-fg: #fff; border: 2px solid rgba(255,255,255,.55); box-shadow: none; }
.btn--outline-white:hover { background: #fff; --btn-fg: var(--charcoal); border-color: #fff; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; min-height: 56px; }
.btn--block { width: 100%; }

.textlink { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.textlink svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  height: 100%;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green-050); color: var(--green);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card__icon--red { background: #fbe9e9; color: var(--red); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: var(--fs-sm); }
.card__link { margin-top: 1.1rem; }

/* Media card (photo + body) */
.mcard { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.mcard__media { aspect-ratio: 16 / 10; overflow: hidden; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mcard--hover:hover .mcard__media img { transform: scale(1.06); }
.mcard__body { padding: clamp(1.35rem, 2.2vw, 1.7rem); display: flex; flex-direction: column; flex: 1; }
.mcard__body h3 { margin-bottom: .45rem; }
.mcard__body p { font-size: var(--fs-sm); }
.mcard__body .card__link { margin-top: auto; padding-top: 1rem; }

/* Tag / pill */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: .35rem .8rem; border-radius: var(--r-full);
  background: var(--green-050); color: var(--green-700);
}
.tag--red { background: #fbe9e9; color: var(--red-600); }
.tag--ink { background: rgba(255,255,255,.1); color: #fff; }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + clamp(2.5rem,6vw,4.5rem)); padding-bottom: clamp(3rem,7vw,6rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__overlay { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20,28,20,.92) 0%, rgba(24,42,26,.82) 42%, rgba(30,45,30,.55) 100%);
}
.hero__inner { max-width: 720px; color: #fff; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); font-size: var(--fs-md); margin-top: 1.2rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  padding: .5rem 1rem; border-radius: var(--r-full);
  color: #fff; font-size: .85rem; font-weight: 500; margin-bottom: 1.4rem;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(49,153,54,.3); }

/* Page header (interior pages) */
.pagehead { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + clamp(2.5rem,5vw,3.5rem)); padding-bottom: clamp(2.5rem,5vw,3.5rem); overflow: hidden; color: #fff; }
.pagehead__bg { position: absolute; inset: 0; z-index: -2; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,28,20,.9), rgba(28,44,28,.7)); }
.pagehead h1 { color: #fff; max-width: 760px; }
.pagehead p { color: rgba(255,255,255,.88); max-width: 620px; margin-top: .9rem; font-size: var(--fs-md); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* ---- Stats ---- */
.stat { text-align: center; }
.stat__num { font-family: var(--font-heading); font-weight: 600; font-size: clamp(2.2rem,5vw,3.2rem); color: var(--green); line-height: 1; }
.section--ink .stat__num { color: #6bd071; }
.stat__label { margin-top: .5rem; font-size: var(--fs-sm); color: var(--ink-muted); font-weight: 500; }
.section--ink .stat__label { color: #b9bdb7; }

/* ---- Feature split (image + text) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3/4; }
.split__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 1rem 1.3rem; display: flex; align-items: center; gap: .8rem;
}
.split__badge .n { font-family: var(--font-heading); font-weight: 600; font-size: 1.6rem; color: var(--green); }
.split__badge .t { font-size: .82rem; color: var(--ink-muted); line-height: 1.3; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: 0; }
  .split__badge { left: 16px; bottom: 16px; }
}

/* ---- Prose (info pages) ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.6rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 1.9rem; margin-bottom: .6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul.bullets { margin: 0 0 1.3rem; display: grid; gap: .7rem; }
.prose ul.bullets li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.prose ul.bullets li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 18px; height: 18px; background: var(--green-050); border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--green);
}
.prose ul.bullets li::after {
  content: ""; position: absolute; left: 6px; top: calc(.55em + 5px);
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
}

/* Callout */
.callout {
  border-left: 4px solid var(--green); background: var(--green-050);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.6rem 0;
}
.callout--red { border-color: var(--red); background: #fbe9e9; }
.callout p { color: var(--charcoal-700); margin: 0; }
.callout h4 { margin-bottom: .3rem; }

/* ---- Timeline / schedule ---- */
.schedule { display: grid; gap: .75rem; }
.schedule__row {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem 1.3rem; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.schedule__row:hover { border-color: var(--green-100); transform: translateX(4px); }
.schedule__time { font-family: var(--font-display); font-weight: 700; color: var(--green); }
.schedule__title { font-weight: 600; color: var(--charcoal); }
.schedule__note { font-size: var(--fs-sm); color: var(--ink-muted); }
@media (max-width: 620px) {
  .schedule__row { grid-template-columns: 1fr; gap: .3rem; }
  .schedule__note { grid-row: 3; }
}

/* Prayer times strip */
.prayer-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.prayer-strip__cell { background: var(--surface); padding: 1.1rem .8rem; text-align: center; }
.prayer-strip__name { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 600; }
.prayer-strip__time { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--charcoal); margin-top: .3rem; }
@media (max-width: 720px) { .prayer-strip { grid-template-columns: repeat(3,1fr); } }

/* ---- CTA band ---- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.5rem,6vw,4.5rem); text-align: center; color: #fff; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(35,112,41,.95), rgba(30,33,30,.9)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 1rem auto 0; font-size: var(--fs-md); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2rem; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.2rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--charcoal); }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--charcoal);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: .8rem 1rem; min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(49,153,54,.12);
}
.field__hint { font-size: .82rem; color: var(--ink-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--ink-muted); margin-top: .5rem; }

/* ---- Donation widget ---- */
.donate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.2rem); box-shadow: var(--shadow-md); }
.toggle { display: inline-flex; background: var(--surface-2); border-radius: var(--r-full); padding: 5px; gap: 4px; }
.toggle button { padding: .6rem 1.3rem; border-radius: var(--r-full); font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-soft); transition: all .2s var(--ease); }
.toggle button.is-active { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; margin: 1.3rem 0; }
@media (max-width: 460px){ .amount-grid { grid-template-columns: repeat(2,1fr);} }
.amount-btn {
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 1rem .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--charcoal);
  background: var(--surface); transition: all .18s var(--ease); text-align: center;
}
.amount-btn:hover { border-color: var(--green); }
.amount-btn.is-active { border-color: var(--green); background: var(--green-050); color: var(--green-700); box-shadow: inset 0 0 0 1px var(--green); }
.amount-btn small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--ink-muted); margin-top: .2rem; }

/* Membership tiers */
.tier { position: relative; display: flex; flex-direction: column; }
.tier--featured { border-color: var(--green); box-shadow: var(--shadow-lg); }
.tier__ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .9rem; border-radius: var(--r-full); }
.tier__price { font-family: var(--font-heading); font-weight: 600; font-size: 2.4rem; color: var(--charcoal); line-height: 1; margin: .4rem 0 .1rem; }
.tier__price span { font-size: .95rem; font-weight: 500; color: var(--ink-muted); }
.tier__list { display: grid; gap: .7rem; margin: 1.3rem 0; }
.tier__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.tier__list li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.tier .btn { margin-top: auto; }

/* Accordion (FAQ) */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.acc + .acc { margin-top: .8rem; }
.acc__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; font-family: var(--font-heading); font-weight: 600; color: var(--charcoal); font-size: 1.05rem; }
.acc__q .ico { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-050); color: var(--green); display: grid; place-items: center; transition: transform .3s var(--ease); }
.acc.is-open .acc__q .ico { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__a-inner { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: var(--fs-sm); }

/* Contact info list */
.info-list { display: grid; gap: 1.3rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--green-050); color: var(--green); display: grid; place-items: center; }
.info-item__ico svg { width: 22px; height: 22px; }
.info-item h4 { margin-bottom: .2rem; }
.info-item p, .info-item a { font-size: var(--fs-sm); color: var(--ink-soft); }
.info-item a:hover { color: var(--green); }

/* Map */
.map-embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/9; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { width:100%; height:100%; display:grid; place-items:center; text-align:center; color: var(--ink-muted); padding: 2rem; }

/* ================= Header / Nav ================= */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header.is-scrolled { background: rgba(251,250,248,.92); backdrop-filter: saturate(150%) blur(12px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; z-index: 2; }
.brand img { height: 46px; width: auto; }
.brand .brand__logo-light { display: block; }
.brand .brand__logo-dark { display: none; }
.header:not(.is-scrolled) .brand__logo-light { display: none; }
.header:not(.is-scrolled) .brand__logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: var(--r-full);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--nav-fg, #fff); transition: color .2s var(--ease), background .2s var(--ease);
}
.header.is-scrolled .nav__link { color: var(--charcoal); }
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--green); }
.nav__link.is-current, .header.is-scrolled .nav__link.is-current { color: var(--green); position: relative; }
.nav__link.is-current::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem; height: 2px;
  background: var(--green); border-radius: 2px;
}
.nav__link .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__item:hover .chev { transform: rotate(180deg); }

/* Invisible hover bridge so moving the cursor into the dropdown doesn't close it */
.nav__item { position: relative; }
.nav__item::after { content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 24px; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 240px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 10;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: .65rem .9rem; border-radius: var(--r-sm); font-weight: 500; font-size: .93rem; color: var(--ink-soft); transition: background .18s var(--ease), color .18s var(--ease); }
.dropdown a:hover { background: var(--green-050); color: var(--green-700); }

.header__actions { display: flex; align-items: center; gap: .7rem; flex: none; }
.header .btn { padding: .6rem 1.25rem; min-height: 44px; font-size: .92rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; color: var(--nav-fg,#fff); }
.header.is-scrolled .nav-toggle { color: var(--charcoal); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-nav__scrim { position: absolute; inset: 0; background: rgba(20,25,20,.5); opacity: 0; transition: opacity .3s var(--ease);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: rgba(251,250,248,.82);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border-left: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow-lg); padding: 1.4rem;
  transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-nav.is-open { visibility: visible; }
.mobile-nav.is-open .mobile-nav__scrim { opacity: 1; }
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.mobile-nav__head img { height: 42px; }
.mobile-nav__close { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--charcoal); }
.mobile-nav__close svg { width: 26px; height: 26px; }
.m-link { display: block; padding: .85rem .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--charcoal); border-bottom: 1px solid var(--line-soft); }
.m-link:hover, .m-link.is-current { color: var(--green); }
.m-sub { padding-left: 1rem; }
.m-sub a { display: block; padding: .6rem; font-size: .98rem; color: var(--ink-soft); font-weight: 500; }
.m-sub a:hover { color: var(--green); }
.m-group__label { padding: .85rem .6rem .3rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.mobile-nav .btn { margin-top: 1.2rem; }

/* ================= Footer ================= */
.footer { background: var(--charcoal); color: #c5c9c3; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer a { color: #c5c9c3; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
@media (max-width: 900px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px){ .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 56px; margin-bottom: 1rem; }
.footer__brand p { color: #9aa09a; font-size: var(--fs-sm); max-width: 320px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-display); }
.footer__links { display: grid; gap: .7rem; font-size: var(--fs-sm); }
.footer__contact { display: grid; gap: .9rem; font-size: var(--fs-sm); }
.footer__contact div { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .2s var(--ease), transform .2s var(--ease); }
.socials a:hover { background: var(--green); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .82rem; color: #8b918b; }

/* ================= Reveal animations ================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card--hover:hover, .mcard--hover:hover .mcard__media img { transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Decorative arch/pattern divider */
.pattern-divider { height: 6px; background:
  repeating-linear-gradient(90deg, var(--green) 0 22px, var(--red) 22px 26px, transparent 26px 48px); opacity: .8; }

/* ================= Arabic + Bismillah ================= */
.arabic { font-family: var(--font-arabic); direction: rtl; line-height: 1.9; }
/* Honorifics — ﷺ for the Prophet, عليه السلام for the Imams — in Amiri (like Bismillah) */
.hon { font-family: var(--font-script); font-weight: 400; font-style: normal; color: var(--green); font-size: 1.12em; white-space: nowrap; direction: rtl; unicode-bidi: isolate; }
/* On dark / image backgrounds, inherit the light surrounding colour for legibility */
.hero .hon, .pagehead .hon, .section--ink .hon, .section--night .hon,
.quote-band .hon, .cta-band .hon, .section--flag .hon { color: currentColor; }
.bismillah {
  font-family: var(--font-quran); direction: rtl; text-align: center;
  font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.7; color: var(--green);
}
.bismillah--light { color: #fff; }
.bismillah--gold  { color: #e7b64b; }

/* Bismillah divider strip */
.bismillah-strip { text-align: center; padding-block: clamp(2rem, 4vw, 3rem); }
.bismillah-strip .bismillah { margin-bottom: .5rem; }
.bismillah-strip__tr { font-family: var(--font-heading); font-style: italic; color: var(--ink-muted); font-size: 1.05rem; }

/* ================= Night (black / red) section ================= */
.section--night { background: var(--night); color: #cbc6c1; position: relative; }
.section--night h2, .section--night h3, .section--night h4 { color: #fff; }
.section--night p { color: #a9a39d; }
.section--night .eyebrow { color: #e2818a; }
.section--night .card { background: var(--night-2); border-color: #2a1f1f; }
.section--night .card p { color: #a9a39d; }

/* Quote band — Arabic saying over a holy-site image, black + red */
.quote-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem,4vw,3rem); text-align: center; color: #fff; }
.quote-band__bg { position: absolute; inset: 0; z-index: -2; }
.quote-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-band__overlay { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 130% at 50% 45%, rgba(16,10,10,.38), rgba(10,7,7,.8) 82%),
    linear-gradient(180deg, rgba(122,26,26,.28), rgba(16,10,10,.42)); }
.quote-band__mark { font-family: var(--font-quran); font-size: 3rem; line-height: 1; color: #f0a6ac; opacity: .95; margin-bottom: .4rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.quote-band__ar { font-family: var(--font-arabic); direction: rtl; font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 3.4rem); line-height: 1.7; color: #fff; letter-spacing: 0; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.quote-band__tr { max-width: 620px; margin: 1.3rem auto 0; font-family: var(--font-heading); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: rgba(255,255,255,.94); line-height: 1.4; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.quote-band__by { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem;
  color: #eba6ac; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; font-family: var(--font-display); }
.quote-band__by::before { content: ""; width: 24px; height: 1px; background: var(--red); display: inline-block; }
.quote-band__by::after  { content: ""; width: 24px; height: 1px; background: var(--red); display: inline-block; }

/* Prayer strip — live state */
.prayer-strip__cell.is-next { background: var(--green-050); }
.prayer-strip__cell.is-next .prayer-strip__name { color: var(--green-700); }
.prayer-strip__cell.is-next .prayer-strip__time { color: var(--green-700); }
.prayer-badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600;
  color: var(--ink-muted); }
.prayer-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(49,153,54,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(49,153,54,.5);} 70%{ box-shadow: 0 0 0 8px rgba(49,153,54,0);} 100%{ box-shadow: 0 0 0 0 rgba(49,153,54,0);} }
.hijri-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-radius: var(--r-full);
  background: var(--green-050); color: var(--green-700); font-weight: 600; font-size: .9rem; }
.hijri-pill svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .prayer-badge .pulse { animation: none; } }

/* Inline icon alignment in eyebrows / tags / small labels */
.eyebrow svg, .tag svg, .prayer-badge svg, .schedule__time svg { flex: none; }
.callout h4 svg, .modal__label svg { vertical-align: -.12em; }

/* ================= Glassmorphism ================= */
.glass {
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.glass-dark {
  background: rgba(18,12,12,.38);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.14);
}

/* Prayer strip as frosted glass when it sits on an image/dark section */
.prayer-strip--glass { background: transparent; border: none; gap: 12px; }
.prayer-strip--glass .prayer-strip__cell {
  border-radius: var(--r-md);
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,.18);
}
.prayer-strip--glass .prayer-strip__name { color: rgba(255,255,255,.8); }
.prayer-strip--glass .prayer-strip__time { color: #fff; }
.prayer-strip--glass .prayer-strip__cell.is-next {
  background: rgba(107,208,113,.22); border-color: rgba(107,208,113,.5);
}
.prayer-strip--glass .prayer-strip__cell.is-next .prayer-strip__name,
.prayer-strip--glass .prayer-strip__cell.is-next .prayer-strip__time { color: #d5f5d7; }

/* ================= Flag (black/red) image section ================= */
.section--flag { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.section--flag > .container { position: relative; z-index: 1; }
.section--flag .flag-bg { position: absolute; inset: 0; z-index: -2; }
.section--flag .flag-bg img { width: 100%; height: 100%; object-fit: cover; }
.section--flag .flag-overlay { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(150,26,26,.5), rgba(14,8,8,.9) 72%),
    linear-gradient(180deg, rgba(20,8,8,.55), rgba(20,8,8,.72)); }
.section--flag h2, .section--flag h3, .section--flag h4 { color: #fff; }
.section--flag p { color: rgba(255,255,255,.82); }
.section--flag .eyebrow { color: #f0a6ac; }
.section--flag .stat__num { color: #ff9d9d; }
.section--flag .stat__label { color: rgba(255,255,255,.8); }

/* Glass stat tile */
.glass-tile { border-radius: var(--r-lg); padding: 1.7rem 1rem; text-align: center;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .3s var(--ease), background .3s var(--ease); }
.glass-tile:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }
.glass-tile .card__icon { margin-inline: auto; background: rgba(206,48,48,.22); color: #ff9d9d; }

/* Red icon accent (extends existing card__icon--red) */
.card__icon--flag { background: rgba(206,48,48,.12); color: var(--red); }

/* Utility */
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.center-actions { display:flex; flex-wrap:wrap; gap:.9rem; justify-content:center; }
.stack-actions { display:flex; flex-wrap:wrap; gap:.9rem; }

/* ================= Imams grid + modal ================= */
.imam-card {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.05rem 1.2rem; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.imam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.imam-card__n {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.5rem;
  background: var(--green-050); color: var(--green-700);
}
.imam-card:nth-child(3) .imam-card__n { background: #fbe9e9; color: var(--red-600); } /* Husayn accent */
.imam-card__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.18rem; color: var(--charcoal); line-height: 1.15; }
.imam-card__title { font-size: .8rem; color: var(--ink-muted); margin-top: .15rem; }
.imam-card__more { margin-left: auto; flex: none; color: var(--green); opacity: .0; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.imam-card:hover .imam-card__more { opacity: 1; transform: translateX(2px); }
.imam-card__more svg { width: 20px; height: 20px; }

/* Furu' al-Din branch cards */
.branch-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem;
  padding: 1.4rem 1rem 1.2rem; cursor: pointer; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.branch-card__n {
  position: absolute; top: .7rem; left: .8rem; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--font-heading); font-weight: 600;
  font-size: 1rem; background: var(--green-050); color: var(--green-700);
}
.branch-card__ar { font-family: var(--font-script); font-size: 1.9rem; line-height: 1.2; color: var(--green); margin-top: .3rem; }
.branch-card__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--charcoal); }
.branch-card__meaning { font-size: .82rem; color: var(--ink-muted); }
.modal__ar-big { display: block; font-family: var(--font-script); font-size: 2.4rem; line-height: 1; color: var(--green); margin-bottom: .3rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.2rem; visibility: hidden; }
.modal__scrim { position: absolute; inset: 0; background: rgba(20,25,20,.62); opacity: 0; transition: opacity .3s var(--ease); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; z-index: 1; width: min(600px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98); opacity: 0; transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.modal.is-open { visibility: visible; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__head { position: relative; padding: clamp(1.5rem,3vw,2rem) clamp(1.5rem,3vw,2rem) 1.2rem; border-bottom: 1px solid var(--line); }
.modal__num { font-family: var(--font-heading); font-weight: 600; color: var(--green); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.modal__head h3 { margin: .3rem 0 .35rem; font-size: clamp(1.6rem,3vw,2.1rem); }
.modal__title { font-family: var(--font-script); font-style: italic; color: var(--ink-soft); font-size: 1.05rem; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--charcoal); transition: background .2s var(--ease); }
.modal__close:hover { background: var(--line); }
.modal__close svg { width: 22px; height: 22px; transform: rotate(45deg); }
.modal__body { padding: clamp(1.3rem,3vw,1.8rem) clamp(1.5rem,3vw,2rem) clamp(1.5rem,3vw,2rem); }
.modal__row { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.modal__row:last-child { margin-bottom: 0; }
.modal__ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--green-050); color: var(--green); display: grid; place-items: center; }
.modal__ico svg { width: 20px; height: 20px; }
.modal__ico--red { background: #fbe9e9; color: var(--red); }
.modal__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 700; margin-bottom: .15rem; }
.modal__text { font-size: var(--fs-sm); color: var(--ink-soft); }
.modal__text strong { color: var(--charcoal); }

/* Nav default color when not scrolled (over dark hero) */
.header { --nav-fg: #fff; }

/* Hide mobile nav toggle on desktop, show nav */
@media (max-width: 1024px) {
  .nav, .header__actions .btn--nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ================= Mobile polish ================= */
@media (max-width: 680px) {
  /* Hero: comfortable height, image reads well, content centred vertically */
  .hero { min-height: 82svh; display: flex; align-items: center; }
  .hero__inner { max-width: 100%; }
  .hero h1 { line-height: 1.05; }
  .hero__actions { gap: .7rem; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Furu' branches: 2-up on phones instead of a long single column */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .branch-card { padding: 1.1rem .6rem 1rem; }
  .branch-card__ar { font-size: 1.6rem; }
  .branch-card__name { font-size: 1.05rem; }

  /* Imam cards: keep readable, avoid cramped arrows */
  .imam-card { padding: .9rem 1rem; }
  .imam-card__more { display: none; }

  /* Prayer strip stays 3 columns (compact) rather than stacking to 6 rows */
  .prayer-strip { grid-template-columns: repeat(3, 1fr); }

  /* Tighter section rhythm on phones */
  .section { padding-block: clamp(2.6rem, 9vw, 3.4rem); }
  .quote-band, .cta-band { padding: clamp(2rem,7vw,2.6rem) 1.2rem; }
  .quote-band__ar { font-size: clamp(1.7rem,7vw,2.2rem); }

  /* Split media never dwarfs text */
  .split__media--tall { max-height: 60vh; }

  /* Modal fits small screens */
  .modal { padding: .8rem; }
  .modal__dialog { max-height: 90vh; }
}

/* Prayer strip base: allow 3-col wrapping on small tablets too */
@media (max-width: 560px) {
  .prayer-strip__name { font-size: .82rem; }
  .prayer-strip__time { font-size: 1rem; }
}
