/* ZAINAB Organization: Homepage Redesign */

/* Hide reCAPTCHA badge — disclosure text shown on contact form per Google's terms */
.grecaptcha-badge { visibility: hidden !important; }

:root {
  --pink: #F5A2B4;
  --pink-600: #F3A1B2;
  --pink-50: #FBE9E7;
  --cream: #FFFFC6;
  --cream-soft: #FFFFF0;
  --ink: #1F2430;
  --ink-2: #3A4151;
  --muted: #6B7180;
  --line: #E6E8EE;
  --bg: #FBFAF7;
  --white: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(20,24,40,.04), 0 1px 3px rgba(20,24,40,.06);
  --shadow-2: 0 4px 12px rgba(20,24,40,.06), 0 2px 4px rgba(20,24,40,.04);
  --shadow-3: 0 12px 32px rgba(20,24,40,.10), 0 4px 8px rgba(20,24,40,.04);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ====================== TOP BAR ====================== */
.topbar {
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text .b1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand-text .b2 {
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-top: 2px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: background .18s ease;
}
.tb-link:hover { background: rgba(0,0,0,.05); }
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: white;
  padding: 10px 19px;
  border-radius: 999px;
  font-size: 12.4px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(245,162,180,.35), 0 4px 12px rgba(245,162,180,.25);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-donate:hover {
  background: var(--pink-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(245,162,180,.4), 0 8px 18px rgba(245,162,180,.35);
}

/* ====================== NAV ====================== */
.nav {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(245,162,180,.08); color: var(--pink-600); }
.nav-link.active { color: var(--pink-600); background: rgba(245,162,180,.08); }
.nav-link .chev {
  width: 14px; height: 14px;
  transition: transform .2s ease;
}
.nav-item.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
  min-width: 240px;
  padding: 10px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 60;
}
.nav-item.open .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown.wide { min-width: 520px; }
.dd-section + .dd-section { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.dd-label {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px 4px;
  font-weight: 600;
}
.dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.dd-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .12s ease, color .12s ease;
}
.dd-link:hover { background: var(--cream-soft); color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink);
  color: white !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
  box-shadow: 0 1px 2px rgba(245,162,180,.3);
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--pink-600); transform: translateY(-1px); }

.topbar-mobile-toggle {
  display: none;
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,40,.25) 0%, rgba(20,24,40,.55) 60%, rgba(20,24,40,.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 96px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px 7px 10px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: white;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(253,240,196,.25);
}
.hero-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.18;
  color: white;
  font-weight: 400;
  max-width: 880px;
  margin: 0 0 18px;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.hero-quote .mark {
  font-style: italic;
  color: var(--cream);
}
.hero-attrib {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.hero-controls {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 28px; height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.35);
  transition: background .2s ease, width .25s ease;
}
.hero-dot.active { background: var(--cream); width: 44px; }
.hero-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,.25); }

/* ====================== EVENT BANNER ====================== */
.event-banner-wrap {
  position: relative;
  margin-top: -64px;
  padding: 0 28px;
  z-index: 5;
}
.event-banner {
  max-width: 1060px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
}
.event-banner > .event-icon-wrap { margin-left: 0; margin-right: 16px; flex-shrink: 0; }
.event-banner > .event-meta { flex: 1; }
.banner-spacer-l { flex: 0.15; min-width: 16px; }
.banner-spacer-r { flex: 0; min-width: 50px; }
.banner-vdivider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  flex-shrink: 0;
}
.event-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-600);
  flex-shrink: 0;
}
.event-meta .label {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.event-meta .title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  margin-top: 2px;
  color: var(--ink);
}
.event-meta .date {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.5;
}
.event-meta .date .date-day,
.event-meta .date .date-time { display: block; }

/* ====================== BANNER PRAYER PANEL ====================== */
.banner-prayers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.bp-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.bp-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--pink-600);
}
.bp-location {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bp-loc-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px !important;
  border: 1px solid var(--pink) !important;
  background: rgba(255,255,255,0.12) !important;
  color: inherit;
  font-size: 11px;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms, box-shadow 150ms;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(232,131,124,0.35), 0 2px 8px rgba(232,131,124,0.2);
}
.bp-loc-pill:hover {
  background: rgba(255,255,255,0.2) !important;
  box-shadow: 0 2px 8px rgba(232,131,124,0.45), 0 4px 14px rgba(232,131,124,0.25);
}
.bp-row-list {
  display: flex;
  gap: 12px;
}
.bp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  min-width: 84px;
}
.bp-cell.next {
  background: var(--pink-50);
  border-color: rgba(232,131,124,.35);
}
.bp-cell.bp-skel {
  height: 64px;
  opacity: .4;
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:.2} }
.bp-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.bp-cell.next .bp-name { color: var(--pink-600); }
.bp-time {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bp-cell.next .bp-time { color: var(--pink-600); }
.bp-countdown {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--pink-600);
  opacity: .8;
  font-variant-numeric: tabular-nums;
  border-top: 1px solid rgba(232,131,124,.25);
  padding-top: 5px;
  margin-top: 1px;
  white-space: nowrap;
}
.bp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pink-600);
  text-decoration: none;
  transition: gap .15s;
}
.bp-link:hover { gap: 9px; }

/* ====================== MOBILE PRAYER STRIP ====================== */
.mobile-prayer-strip {
  display: none;
  padding: 20px 4px 8px;
}
.mps-location {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.mps-row {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mps-row::-webkit-scrollbar { display: none; }
.mps-cell {
  flex: 1;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 12px;
  color: var(--ink-2);
  transition: background .15s;
}
.mps-cell.next {
  background: var(--pink-50);
}
.mps-cell.mps-skel {
  height: 76px;
  background: var(--line);
  animation: pulse 1.4s ease infinite;
}
.mps-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mps-cell.next .mps-name { color: var(--pink-600); }
.mps-time {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.mps-cell.next .mps-time { color: var(--pink-600); }
.mps-countdown {
  font-size: 10px;
  font-weight: 700;
  color: var(--pink-600);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  border-top: 1px solid rgba(232,131,124,.25);
  padding-top: 4px;
  margin-top: 1px;
}
.mps-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pink-600);
  text-decoration: none;
  transition: gap .15s;
}
.mps-link:hover { gap: 8px; }

/* ====================== SECTIONS ====================== */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 28px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink-600);
  font-weight: 600;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  color: var(--ink);
  margin: 6px 0 0;
  letter-spacing: -.015em;
  line-height: 1.1;
}
.section-sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
  max-width: 520px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-600);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  transition: gap .2s ease;
}
.link-arrow svg {
  flex-shrink: 0;
  width: 1.125em;
  height: 1.125em;
}
.link-arrow:hover { gap: 10px; }
.link-arrow:focus-visible {
  outline: 2px solid var(--pink-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ====================== EVENTS GRID ====================== */
.events-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 18px;
}
.events-grid::-webkit-scrollbar { display: none; }
.events-grid .event-card,
.events-grid .event-card-empty {
  flex: 0 0 calc((100% - 36px) / 3.2);
  min-width: 0;
  scroll-snap-align: start;
  aspect-ratio: 1007 / 635;
  padding: 24px;
  overflow: hidden;
}
.events-grid .event-card .day { font-size: 52px; }
.events-grid .event-card .ec-date-row { margin-bottom: 14px; }
.events-grid .event-card .ec-details { margin-top: 10px; }
.event-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  cursor: pointer;
}
.event-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgba(232,131,124,.3);
}
.event-card .ec-date-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 22px;
}
.event-card .day {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  color: var(--pink);
  line-height: 1;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
}
.event-card .ec-date-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  margin-top: 5px;
}
.event-card .ec-dayname,
.event-card .ec-monthyear {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}
.event-card .ec-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.event-card .ec-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.event-card .ec-meta {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 7px;
}
.event-card .ec-details {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-card-empty {
  cursor: default;
  opacity: .65;
}
.event-card-empty:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.event-empty-state {
  grid-column: 1 / -1;
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 24px;
}

/* ====================== EVENT DETAIL MODAL ====================== */
.event-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,24,40,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: emdFadeIn 200ms ease;
}
.event-modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: emdSlideUp 200ms ease;
}
.event-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none; background: var(--bg); border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background .15s ease;
}
.event-modal-close:hover { background: var(--line); }
.emd-date-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.emd-day {
  font-family: var(--serif); font-size: 56px; font-weight: 600;
  color: var(--pink); line-height: 1; letter-spacing: -.02em;
}
.emd-date-text { display: flex; flex-direction: column; gap: 2px; }
.emd-dayname, .emd-monthyear {
  font-size: 16px; font-weight: 400; color: var(--ink); line-height: 1.35;
}
.emd-divider { height: 1px; background: var(--line); margin-bottom: 20px; }
.emd-title {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--ink); line-height: 1.2; margin: 0;
}
.emd-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2); margin-top: 12px;
}
.emd-description {
  font-size: 15px; color: var(--ink-2); line-height: 1.65;
  margin-top: 16px; white-space: pre-line;
}
.emd-cal-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px; font-size: 13px; font-weight: 600;
  color: var(--pink-600); text-decoration: none;
  transition: color .15s ease;
}
.emd-cal-link:hover { color: var(--pink); }
@keyframes emdFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes emdSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ====================== GOOGLE CALENDAR ====================== */
.calendar-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px 88px;
}
.calendar-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.calendar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-1);
}
.calendar-actions button {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  transition: background .18s ease, color .18s ease;
}
.calendar-actions button:hover,
.calendar-actions button:focus-visible {
  background: var(--cream);
  color: var(--pink-600);
  outline: none;
}
.calendar-notice {
  background: var(--cream-soft);
  border: 1px solid rgba(245,162,180,.35);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 16px 18px;
}
.calendar-notice.error {
  background: #fff5f5;
  border-color: rgba(200,80,80,.25);
  color: #7a2d2d;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.calendar-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: visible;
}
/* Corner cells: clip backgrounds to match board border-radius */
.calendar-weekday:first-child      { border-radius: var(--radius-lg) 0 0 0; }
.calendar-weekday:nth-child(7)     { border-radius: 0 var(--radius-lg) 0 0; }
.calendar-day:nth-last-child(7)    { border-bottom-left-radius: var(--radius-lg); }
.calendar-day:last-child           { border-bottom-right-radius: var(--radius-lg); }
/* Remove edge borders that would double up against the board's outer border */
.calendar-day:nth-child(7n)        { border-right: none; }
.calendar-day:nth-last-child(-n+7) { border-bottom: none; }
.calendar-weekday {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 12px;
  text-align: center;
}
.calendar-day {
  position: relative;
  min-height: 128px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  background: white;
}
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day:nth-last-child(-n + 7) { border-bottom: none; }
.calendar-day.muted {
  background: #FCFBF8;
  color: var(--muted);
}
.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(245,162,180,.65);
}
.calendar-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.calendar-date-row span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.calendar-day.today .calendar-date-row span {
  background: var(--pink);
  color: white;
}
.calendar-date-row em {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--pink-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.calendar-event-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calendar-event-chip,
.calendar-more {
  position: relative;
  width: 100%;
  min-height: 28px;
  border-radius: 7px;
  background: var(--pink-50);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  overflow: visible;
  padding: 7px 8px;
  text-align: left;
  transition: background .18s ease, color .18s ease;
}
.calendar-event-chip > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event-chip:hover,
.calendar-event-chip:focus-visible {
  background: var(--pink);
  color: white;
  outline: none;
}
.calendar-more {
  background: transparent;
  color: var(--pink-600);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
}
.cal-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 200;
  width: min(280px, 80vw);
  transform: translateX(-50%) translateY(6px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  color: var(--ink);
  opacity: 0;
  padding: 16px;
  pointer-events: none;
  text-align: left;
  transition: opacity .16s ease, transform .16s ease;
}
.calendar-event-chip:hover .cal-popover,
.calendar-event-chip:focus-visible .cal-popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cal-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  background: white;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translate(-50%, -6px) rotate(45deg);
}
.cal-popover h3,
.cal-detail-panel h3 {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
  margin: 4px 0 10px;
}
.cal-detail-kicker {
  color: var(--pink-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cal-detail-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 7px;
}
.cal-detail-meta svg {
  color: var(--pink-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.cal-popover p,
.cal-detail-panel p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0 0;
}
.cal-google-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-600);
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
}
.calendar-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calendar-side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px;
}
.calendar-side-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 12px 0 0;
}
.calendar-upcoming-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  text-align: left;
}
.calendar-upcoming-row:first-of-type {
  border-top: none;
  margin-top: 10px;
}
.calendar-upcoming-row span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--pink-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}
.calendar-upcoming-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}
.calendar-upcoming-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}
.calendar-loading {
  position: absolute;
  inset: 43px 0 0;
  background: rgba(255,255,255,.74);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* ── Hijri bar ── */
.calendar-hijri-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--cream-soft);
  border: 1px solid rgba(232,131,124,.18);
  border-radius: var(--radius);
  padding: 10px 18px;
  margin-bottom: 18px;
}
.calendar-hijri-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-family: var(--serif);
  font-weight: 500;
}
.calendar-hijri-info svg { color: var(--pink-600); flex-shrink: 0; }
.calendar-hijri-offset {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.calendar-hijri-offset-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.calendar-hijri-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.calendar-hijri-btn:hover:not(:disabled) {
  border-color: var(--pink);
  color: var(--pink-600);
  background: var(--pink-50);
}
.calendar-hijri-btn:disabled { opacity: .35; cursor: default; }
.calendar-hijri-offset-val {
  min-width: 80px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ── Hijri day chips: monthly grid ── */
.calendar-hijri-day {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 4px;
  padding: 0 2px;
}
.calendar-hijri-day.month-start {
  color: var(--pink-600);
  font-weight: 700;
  font-size: 10px;
}

/* ── Hijri day: weekly header ── */
.calendar-week-hijri {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1;
}
.calendar-week-hijri.month-start {
  color: var(--pink-600);
  font-weight: 700;
}

/* ── Hijri day: list column ── */
.calendar-list-hijri {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
  line-height: 1.2;
  max-width: 72px;
  word-break: break-word;
  text-align: center;
}
.calendar-list-hijri.month-start { color: var(--pink-600); }

/* ── View switcher + controls ── */
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.calendar-view-switcher button {
  height: 36px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.calendar-view-switcher button:hover {
  color: var(--ink);
  background: white;
}
.calendar-view-switcher button.active {
  background: var(--pink);
  color: white;
  box-shadow: 0 1px 2px rgba(232,131,124,.35), 0 2px 6px rgba(232,131,124,.2);
}

/* ── Upcoming Events Carousel ── */
.cal-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cal-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 16px;
  flex: 1;
}
.cal-carousel-track::-webkit-scrollbar { display: none; }
.cal-carousel-card {
  flex: 0 0 240px;
  min-width: 240px;
  text-decoration: none;
}
.cal-carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.cal-carousel-arrow:hover {
  background: var(--cream);
  border-color: rgba(232,131,124,.3);
  transform: translateY(-1px);
}

/* ── New Calendar Main Layout ── */
.cal-main-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cal-main-area {
  min-width: 0;
}

/* ── Filter Panel ── */
.cal-filter-panel {
  position: sticky;
  top: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.cal-filter-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cal-filter-section:first-child { padding-top: 0; }
.cal-filter-section:last-child { padding-bottom: 0; border-bottom: none; }
.cal-filter-view-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-filter-view-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.cal-filter-view-btn:hover {
  background: var(--cream-soft);
  color: var(--ink);
}
.cal-filter-view-btn.active {
  background: var(--pink);
  color: white;
}
.cal-filter-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cal-filter-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cal-filter-nav-btn:hover {
  background: var(--cream);
  color: var(--pink-600);
  border-color: rgba(232,131,124,.3);
}
.cal-filter-nav-today {
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
  flex: 1;
  font-size: 12px;
  justify-content: center;
}
.cal-filter-month-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.3;
}
.cal-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 10px;
  user-select: none;
}
.cal-filter-toggle:last-child { margin-bottom: 0; }
.cal-filter-toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  flex-shrink: 0;
  transition: background .2s ease;
}
.cal-filter-toggle-track[data-checked="true"] { background: var(--pink); }
.cal-filter-toggle-track input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cal-filter-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s ease;
  pointer-events: none;
}
.cal-filter-toggle-track[data-checked="true"] .cal-filter-toggle-thumb {
  transform: translateX(14px);
}
.cal-filter-hijri-info {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.cal-filter-hijri-info svg { color: var(--pink-600); flex-shrink: 0; margin-top: 1px; }
.cal-filter-hijri-adj {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.cal-filter-hijri-label {
  color: var(--muted);
  flex: 1;
  font-size: 12px;
}

/* ── Subscribe buttons ── */
.cal-subscribe-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
  box-sizing: border-box;
  margin-bottom: 7px;
}
.cal-subscribe-btn:last-child { margin-bottom: 0; }
.cal-subscribe-btn:hover {
  background: var(--pink-50);
  border-color: rgba(232,131,124,.35);
  color: var(--pink-600);
  transform: translateY(-1px);
}
.cal-subscribe-google svg,
.cal-subscribe-ical svg { flex-shrink: 0; }

/* Mobile subscribe row — above the calendar header */
.cal-mv-subscribe-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.cal-mv-subscribe-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: white;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: all .15s ease;
}
.cal-mv-subscribe-pill:hover {
  border-color: rgba(232,131,124,.45);
  background: var(--pink-50);
  color: var(--ink-2);
}

/* ── Bottom Bento Grid ── */
.cal-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.cal-bento-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 26px;
}

/* ── Weekly view ── */
.calendar-week-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: visible;
  min-height: 420px;
}
.calendar-week-col:first-child .calendar-week-header { border-top-left-radius: var(--radius-lg); }
.calendar-week-col:last-child .calendar-week-header { border-top-right-radius: var(--radius-lg); }
.calendar-week-col {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.calendar-week-col:last-child { border-right: none; }
.calendar-week-header {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 10px 10px;
  text-align: center;
}
.calendar-week-col.today .calendar-week-header { background: var(--pink-50); }
.calendar-week-dayname {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.calendar-week-date {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 auto;
}
.calendar-week-col.today .calendar-week-date {
  background: var(--pink);
  color: white;
}
.calendar-week-events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
}
.calendar-week-empty { flex: 1; min-height: 80px; }
.calendar-week-event {
  position: relative;
  width: 100%;
  background: var(--pink-50);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease;
}
.calendar-week-event:hover .cal-popover,
.calendar-week-event:focus-visible .cal-popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.calendar-week-event:hover,
.calendar-week-event.active { background: var(--pink); }
.calendar-week-event-time {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--pink-600);
  margin-bottom: 2px;
}
.calendar-week-event:hover .calendar-week-event-time,
.calendar-week-event.active .calendar-week-event-time { color: rgba(255,255,255,.8); }
.calendar-week-event-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.calendar-week-event:hover .calendar-week-event-title,
.calendar-week-event.active .calendar-week-event-title { color: white; }
.calendar-week-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ── List view ── */
.calendar-list-view {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.calendar-list-status {
  padding: 64px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.calendar-list-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calendar-list-date-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.calendar-list-daynum {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calendar-list-group.today .calendar-list-daynum { color: var(--pink-600); }
.calendar-list-dayname {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.calendar-list-hijri {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.calendar-list-hijri.month-start { color: var(--pink-600); font-weight: 600; }
.calendar-list-today-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink-600);
  background: var(--pink-50);
  padding: 3px 10px;
  border-radius: 999px;
}
.calendar-list-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calendar-list-event {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 16px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
  cursor: pointer;
}
.calendar-list-event:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
  border-color: rgba(232,131,124,.3);
}
.calendar-list-event.active {
  border-color: rgba(232,131,124,.4);
  background: var(--pink-50);
}
.calendar-list-event-time {
  min-width: 88px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pink-600);
  padding-top: 2px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.calendar-list-event-body { flex: 1; min-width: 0; }
.calendar-list-event-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.calendar-list-event-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.calendar-list-event-desc {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ====================== NEWS GRID ====================== */
.news-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.news-thumb {
  aspect-ratio: 16 / 10;
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-thumb.placeholder {
  background-image:
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--cream), var(--pink-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .08em;
}
.news-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.news-meta .pip { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.news-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.005em;
}
.news-excerpt { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.news-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: gap .2s ease;
}
.news-card:hover .read-more { gap: 10px; }

/* ====================== PRAYER + DONATE ROW ====================== */
.duo-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}
.prayer-card {
  background: linear-gradient(135deg, #1F2430 0%, #2C3346 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: visible;
}
.prayer-card .pattern {
  position: absolute;
  right: -40px; top: -40px;
  width: 280px; height: 280px;
  opacity: .08;
  pointer-events: none;
}
.prayer-card .eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
}
.prayer-card h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0 24px;
  letter-spacing: -.01em;
}
.prayer-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.prayer-cell {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.prayer-cell .name {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 600;
}
.prayer-cell .time {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.prayer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.prayer-cta:hover { transform: translateY(-1px); background: white; }

.donate-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.donate-card .pattern {
  position: absolute;
  right: -50px; bottom: -50px;
  width: 240px; height: 240px;
  opacity: .14;
  pointer-events: none;
}
.donate-card .eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink-600);
  font-weight: 600;
}
.donate-card h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0 12px;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.15;
}
.donate-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0 0 24px;
  max-width: 380px;
}
.donate-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.amt-chip {
  background: white;
  border: 1px solid rgba(0,0,0,.08);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.amt-chip.active, .amt-chip:hover {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}
.donate-card .btn-donate-lg {
  background: var(--pink);
  color: white;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(245,162,180,.3), 0 8px 18px rgba(245,162,180,.25);
  transition: transform .15s ease, background .15s ease;
  position: relative;
  z-index: 1;
}
.donate-card .btn-donate-lg:hover { background: var(--pink-600); transform: translateY(-1px); }

/* ====================== HOME ABOUT ====================== */
.home-about-section { background: var(--white); border-top: 1px solid var(--line); }
.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.home-about-img {
  position: relative;
  height: 500px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  overflow: hidden;
}
.home-about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.home-about-caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 1;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.home-about-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.home-about-meta-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.meta-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pink-50);
  color: var(--pink-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.meta-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.meta-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ====================== ABOUT PAGE ====================== */

/* , Alternating image+text split rows, */
.about-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.about-split-photo {
  position: relative;
  background: var(--cream);
  min-height: 400px;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.about-split-content {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Reverse: photo goes right */
.about-split-row-reverse .about-split-photo { order: 2; }
.about-split-row-reverse .about-split-content { order: 1; padding-left: 72px; padding-right: 64px; }
/* Mission row: same 50/50 split as story row, left-rounded only */
.about-split-row-mission { grid-template-columns: 1fr 1fr; }
.about-split-row-mission .about-split-photo { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
@media (min-width: 981px) {
  .about-split-row:not(.about-split-row-reverse):not(.about-split-row-mission) { padding-bottom: 10px; }
  .about-split-row-mission { padding-top: 10px; }
}

/* , 3-tile info bar, */
.about-info-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1240px;
  margin: 0 auto;
}
.about-info-tile {
  padding: 119px 40px;
  text-align: center;
  background-image: linear-gradient(rgba(232,131,124,.35), rgba(232,131,124,.35));
  background-repeat: no-repeat;
  background-size: 2px 28px;
  background-position: right top 130px;
}
.about-info-tile:last-child { background-image: none; }

/* , 4-col values grid (clean uniform cards), */
.about-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.about-logo-img-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding-bottom: 32px;
}
.logo-item-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  margin: 6px 0 0;
  /* mobile accordion — overridden below */
}
.logo-item-chev {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
  display: none; /* desktop: chevron hidden, body always visible */
}
.logo-item-chev.open { transform: rotate(180deg); color: var(--pink-600); }

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}

/* , Value icon tile, */
.about-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink-50);
  color: var(--pink-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* , Services 4-col grid, */
.about-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.about-service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.about-service-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgba(245,162,180,.3);
}

/* , Hazrat Zainab 2-col, */
.about-zainab-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}
.about-zainab-deco { padding-top: 8px; }
.about-zainab-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 360px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
}
.about-zainab-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,18,28,.92) 0%, rgba(15,18,28,.3) 55%, transparent 100%);
  z-index: 1;
}
.about-zainab-photo-quote {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 2;
}

/* , Scholar profile, */
.about-scholar-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
}
.about-scholar-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  background: var(--cream);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.about-scholar-img {
  object-position: center top;
}

/* , Youth programs 3-col feature cards, */
.about-youth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-youth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}
.about-youth-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgba(232,131,124,.3);
}
.about-youth-photo {
  position: relative;
  height: 240px;
  background: var(--cream);
  overflow: hidden;
  flex-shrink: 0;
}
.about-youth-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ====================== ZAINABEYYOON 360 ====================== */
.z360-intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}
.z360-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ====================== SUBSCRIBE ====================== */
.subscribe-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.subscribe-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field {
  position: relative;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 16px 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus {
  border-color: var(--pink);
  background: white;
  box-shadow: 0 0 0 4px rgba(245,162,180,.12);
}
.field label {
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, color .15s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 11px;
  color: var(--pink-600);
  font-weight: 600;
  letter-spacing: .04em;
}
.field .req { color: var(--pink); }
.subscribe-form .submit,
button.submit {
  background: var(--pink);
  color: white;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  width: fit-content;
  transition: background .15s ease, transform .15s ease;
  box-shadow: 0 2px 4px rgba(245,162,180,.3);
}
.subscribe-form .submit:hover,
button.submit:hover { background: var(--pink-600); transform: translateY(-1px); }
.subscribe-form .success,
.success {
  font-size: 13px;
  color: #2C7A4D;
  background: #E8F5EC;
  border: 1px solid #C9E5D2;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 8px;
}

/* ====================== FOOTER ====================== */
.footer {
  background: #16192250;
  color: rgba(255,255,255,.7);
  background: #161922;
  padding: 56px 28px 32px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .brand-text .b1 { color: white; }
.footer .brand-text .b2 { color: rgba(255,255,255,.55); }
.footer-tag {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin: 16px 0 0;
  max-width: 320px;
  line-height: 1.6;
}
.footer h5 {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.75); transition: color .15s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  gap: 12px;
}

/* ====================== PRAYER TIMES: LIVE ====================== */
.prayer-cell.next {
  background: rgba(245,162,180,.22) !important;
  border-color: rgba(245,162,180,.38) !important;
}
.prayer-cell.next .name { color: var(--pink) !important; }
.prayer-cell.next .time { color: var(--pink) !important; }

.prayer-loc { position: relative; z-index: 40; margin-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.prayer-loc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.prayer-loc-btn {
  background: none; border: none; color: rgba(255,255,255,.42);
  cursor: pointer; font-size: 12px; font-family: var(--sans); padding: 0;
  transition: color .15s ease;
}
.prayer-loc-btn:hover { color: rgba(255,255,255,.72); }
.prayer-loc-pill-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.prayer-loc-pill-btn:hover {
  background: white;
  border-color: rgba(232,131,124,.45);
  color: var(--ink);
}
.prayer-loc-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prayer-loc-input {
  flex: 1; min-width: 150px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: 8px 12px; color: white;
  font-size: 13px; font-family: var(--sans); outline: none;
  transition: border-color .15s ease;
}
.prayer-loc-input:focus { border-color: rgba(245,162,180,.55); }
.prayer-loc-input::placeholder { color: rgba(255,255,255,.32); }
.prayer-loc-submit {
  background: var(--pink); color: white; border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-family: var(--sans);
  cursor: pointer; font-weight: 600; transition: background .15s ease;
}
.prayer-loc-submit:hover { background: var(--pink-600); }
.prayer-loc-submit:disabled {
  cursor: not-allowed;
  opacity: .45;
  background: rgba(245,162,180,.55);
}
.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;
}
.prayer-place-form {
  align-items: flex-start;
  max-width: 620px;
  position: relative;
  z-index: 200;
}
.prayer-place-form.compact {
  max-width: 100%;
}
.prayer-place-combobox {
  position: relative;
  flex: 1 1 290px;
  min-width: min(100%, 260px);
}
.prayer-place-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.45);
  pointer-events: none;
  z-index: 2;
}
.prayer-place-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 36px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-top: 9px;
  padding-bottom: 9px;
  padding-right: 12px;
  font-size: 13px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .15s ease;
}
.prayer-place-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232,131,124,.12);
}
.prayer-place-input::placeholder {
  color: var(--muted);
}
.prayer-place-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 300;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background-color: #05070B !important;
  background-image: none !important;
  box-shadow: 0 24px 58px rgba(0,0,0,.86), 0 0 0 1px rgba(245,162,180,.16);
  isolation: isolate;
}
.prayer-place-menu::-webkit-scrollbar {
  width: 10px;
}
.prayer-place-menu::-webkit-scrollbar-track {
  background: #05070B;
}
.prayer-place-menu::-webkit-scrollbar-thumb {
  background: #343947;
  border: 2px solid #05070B;
  border-radius: 999px;
}
.prayer-place-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background-color: #05070B;
  background-image: none;
  color: white;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 13px;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
}
.prayer-place-option:last-child { border-bottom: 0; }
.prayer-place-option:hover,
.prayer-place-option.active {
  background-color: #211620;
  background-image: none;
}
.prayer-place-option svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pink);
}
.prayer-place-option strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.prayer-place-option small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.7);
  font-size: 11.5px;
  line-height: 1.35;
}
.prayer-place-status,
.prayer-place-config {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.45;
}
.prayer-place-status {
  padding: 13px 14px;
  background-color: #05070B;
  background-image: none;
}
.prayer-place-config {
  flex-basis: 100%;
  margin-top: -2px;
}

.prayer-skeleton-cell {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 14px 12px;
  animation: prayer-skeleton-pulse 1.4s ease-in-out infinite;
}
.prayer-skeleton-block {
  height: 11px; border-radius: 4px;
  background: rgba(255,255,255,.12); margin: 0 auto;
}
@keyframes prayer-skeleton-pulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

.prayer-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.prayer-month-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: white; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.prayer-month-btn:hover { background: var(--cream-soft); border-color: rgba(245,162,180,.35); }
.prayer-month-label {
  font-family: var(--serif); font-size: 22px;
  font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}

.prayer-table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.prayer-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.prayer-table thead th {
  background: var(--ink); color: rgba(255,255,255,.75);
  padding: 8px 12px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  text-align: left; white-space: nowrap;
}
.prayer-table tbody td { padding: 6px 12px; white-space: nowrap; }
.prayer-table tbody tr { border-bottom: 1px solid var(--line); }
.prayer-table tbody tr.pt-today { background: rgba(245,162,180,.1) !important; }
.prayer-table .date-cell {
  font-family: var(--serif); font-weight: 600;
  font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums;
}
.prayer-table .day-cell { font-size: 13px; color: var(--muted); }
.prayer-table .time-cell {
  font-family: var(--serif); font-weight: 600;
  font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.prayer-table tbody tr.pt-today .date-cell { color: var(--pink-600); }
.prayer-table tbody tr.pt-today .time-cell { color: var(--ink); font-weight: 700; }
.hijri-month-tag {
  display: block; font-family: var(--sans); font-size: 9px;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--pink-600); font-weight: 600; margin-top: 3px;
}
.prayer-disclaimer {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.8;
  max-width: 720px; border-left: 3px solid var(--pink);
  padding: 16px 22px; margin: 0;
  background: white; border-radius: 0 var(--radius) var(--radius) 0;
}

/* ====================== FULL-WIDTH TODAY PRAYER TIMES ====================== */
.pt-full-card {
  background: white;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.pt-full-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 40;
}
.pt-full-header > div {
  min-width: 0;
}
.pt-full-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink-600);
  font-weight: 600;
  margin-bottom: 8px;
}
.pt-full-date {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.pt-full-hijri {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
}
.pt-full-times {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.pt-full-cell {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 16px 24px;
  text-align: center;
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}
.pt-full-cell.next {
  background: rgba(232,131,124,.1) !important;
  border-color: rgba(232,131,124,.35) !important;
}
.pt-full-name {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.pt-full-cell.next .pt-full-name { color: var(--pink-600); }
.pt-full-time {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}
.pt-full-cell.next .pt-full-time { color: var(--pink-600); }
.pt-full-countdown-pill {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--pink);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pt-full-next-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pt-full-loading {
  height: 108px;
  animation: prayer-skeleton-pulse 1.4s ease-in-out infinite;
}

/* mobile-only strip for prayer times page (mirrors homepage mps layout) */
.pt-mobile-strip {
  display: none;
  margin-top: 16px;
}

/* ====================== PDF DOWNLOAD BUTTON ====================== */
.prayer-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  letter-spacing: .01em;
}
.prayer-pdf-btn:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

/* ====================== SUNDAY SCHOOL PAGE ====================== */
.ss-hero {
  background: linear-gradient(135deg, #1F2430 0%, #2C3346 100%);
  position: relative;
  overflow: hidden;
}
.ss-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 28px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ss-hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.02em;
  color: white;
  margin: 0 0 20px;
  max-width: 760px;
}
.ss-hero-copy p {
  color: rgba(255,255,255,.76);
  font-size: 16px;
  line-height: 1.75;
  max-width: 660px;
  margin: 0;
}
.ss-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.ss-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 0;
}
.ss-hero-link:hover { color: var(--cream); }
.ss-hero-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-3);
}
.ss-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--pink-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ss-card-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink-600);
  font-weight: 700;
}
.ss-hero-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 8px 0 10px;
  color: var(--ink);
}
.ss-hero-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.ss-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ss-mini-row {
  display: flex;
  gap: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.ss-mini-row span {
  color: var(--pink-600);
  font-family: var(--serif);
  font-weight: 700;
  flex-shrink: 0;
}
.ss-intro-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.ss-intro-grid p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  border-left: 3px solid var(--pink);
  padding-left: 24px;
}
.ss-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ss-fee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.ss-fee-card {
  background: var(--cream);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 144px;
}
.ss-fee-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}
.ss-fee-value {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--pink-600);
  font-weight: 600;
  margin-top: 14px;
}
.ss-fee-note {
  color: var(--ink-2);
  font-size: 13px;
  margin-top: 8px;
}
.ss-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ss-resource-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ss-resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(245,162,180,.35);
}
.ss-resource-card.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.ss-resource-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.ss-resource-card.primary .ss-resource-label { color: var(--cream); }
.ss-resource-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 6px 0 0;
}
.ss-resource-card.primary p { color: rgba(255,255,255,.68); }
.ss-resource-card > svg {
  color: var(--pink-600);
  align-self: flex-end;
}
.ss-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ss-subject-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ss-subject-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(245,162,180,.3);
}
.ss-subject-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}
.ss-subject-number {
  font-family: var(--serif);
  font-size: 42px;
  line-height: .9;
  color: rgba(245,162,180,.48);
  font-weight: 600;
}
.ss-subject-card h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.18;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}
.ss-subject-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}
.ss-subject-detail {
  margin-top: auto;
  color: var(--pink-600);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  padding-top: 20px;
}
.ss-learning {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.ss-learning-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}
.ss-values {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ss-value-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex: 1;
}
.ss-value-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--pink-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  flex-shrink: 0;
}
.ss-value-row h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 7px;
}
.ss-value-row p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
}
.ss-contact-band {
  background: var(--cream);
  border-top: 1px solid rgba(0,0,0,.06);
}
.ss-contact-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.ss-contact-inner h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.18;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 8px;
}
.ss-contact-inner p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 620px;
}
.ss-contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ss-contact-actions .btn-donate-lg {
  background: var(--pink);
  color: white;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(245,162,180,.3), 0 8px 18px rgba(245,162,180,.25);
  transition: transform .15s ease, background .15s ease;
}
.ss-contact-actions .btn-donate-lg:hover {
  background: var(--pink-600);
  transform: translateY(-1px);
}
.ss-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 980px) {
  .page-grid-2 { grid-template-columns: 1fr !important; gap: 32px !important; }
  .page-grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }

  .nav-list { display: none; }
  .nav { display: none; }
  .topbar-right { display: none; }
  .topbar-mobile-toggle {
    display: inline-flex;
    width: 42px; height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }
  .topbar-mobile-toggle:hover { background: rgba(0,0,0,.05); }
  .events-grid .event-card,
  .events-grid .event-card-empty { flex: 0 0 calc((100% - 18px) / 2); }
  .calendar-shell { padding: 12px 24px 64px; }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-side { grid-template-columns: 1fr 1fr; display: grid; }
  .calendar-day { min-height: 112px; padding: 8px; }
  .calendar-event-chip { font-size: 11px; }
  .calendar-controls { flex-direction: column; align-items: flex-start; gap: 12px; }
  .calendar-week-board { overflow-x: auto; }
  .calendar-list-date-header { flex-wrap: wrap; gap: 6px; }
  .calendar-hijri-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cal-main-layout { grid-template-columns: 180px minmax(0,1fr); }
  .cal-bento { grid-template-columns: 1fr 1fr; }
  .cal-carousel-arrow { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .duo-grid { grid-template-columns: 1fr; }
  .home-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-about-img { height: 300px; }
  .z360-intro-row { flex-direction: column; gap: 24px; }
  .z360-intro-row > a { width: 100%; }
  .z360-card-grid { grid-template-columns: 1fr; }
  .subscribe-grid { grid-template-columns: 1fr; gap: 32px; }
  .banner-prayers { display: none; }
  .banner-spacer-l, .banner-spacer-r, .banner-vdivider { display: none; }
  .event-banner { justify-content: flex-start; order: 1; }
  .event-banner-wrap { display: flex; flex-direction: column; }
  .mobile-prayer-strip { display: block; order: 0; }
  .prayer-list { grid-template-columns: repeat(3, 1fr); }
  .prayer-place-form { width: 100%; }
  .prayer-place-combobox { flex-basis: 100%; }
  .pt-full-times { display: none; }
  .pt-mobile-strip { display: block; }
  .pt-full-hijri { display: block; margin-top: 2px; }
  .pt-full-hijri-sep { display: none; }
  .ss-hero-inner,
  .ss-intro-grid,
  .ss-learning-grid {
    grid-template-columns: 1fr;
  }
  .ss-resource-grid,
  .ss-subject-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-logo-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-logo-img-wrap { max-width: 160px; margin: 0 auto; }
  .logo-item-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
  }
  .logo-item-body.open {
    max-height: 400px;
    opacity: 1;
    margin-top: 8px;
  }
  .logo-item-chev { display: block; }
  .about-split-row { grid-template-columns: 1fr; min-height: auto; }
  .about-split-row .about-split-photo { order: 1 !important; min-height: 300px; border-radius: var(--radius-lg); margin: 0 10px; }
  .about-split-row .about-split-content { order: 2 !important; padding: 48px 28px; }
  .about-info-bar { grid-template-columns: repeat(3, 1fr); }
  .about-info-tile { padding: 32px 20px; }
  .about-values-grid { grid-template-columns: 1fr 1fr; }
  .about-services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-scholar-row { grid-template-columns: 1fr; gap: 32px; }
  .about-scholar-photo { height: auto; aspect-ratio: 1 / 1; }
  .about-scholar-img { object-position: center center; }
  .about-youth-grid { grid-template-columns: 1fr; }
  .about-zainab-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-zainab-deco { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 64px 24px; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  /* events-grid carousel styles are in the second @media (max-width: 600px) block */
  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendar-controls { flex-direction: column; align-items: flex-start; gap: 10px; }
  .calendar-view-switcher { width: 100%; }
  .calendar-view-switcher button { flex: 1; }
  .calendar-actions { width: 100%; justify-content: space-between; }
  .calendar-week-board { min-width: 560px; }
  .calendar-list-event { flex-direction: column; gap: 4px; }
  .calendar-list-event-time { min-width: unset; }
  .calendar-hijri-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .calendar-hijri-offset-label { display: none; }
  .cal-main-layout { grid-template-columns: 1fr; }
  .cal-filter-panel { position: static; }
  .cal-bento { grid-template-columns: 1fr; }
  .calendar-board {
    display: block;
    overflow: visible;
    border-radius: var(--radius);
  }
  .calendar-weekday { display: none; }
  .calendar-day {
    display: block;
    min-height: auto;
    border-right: none;
    padding: 14px;
  }
  .calendar-day.muted { display: none; }
  .calendar-date-row { margin-bottom: 10px; }
  .calendar-event-chip,
  .calendar-more {
    min-height: 38px;
    font-size: 13px;
  }
  .cal-popover { display: none; }
  .calendar-side { display: flex; }
  .about-split-content { padding: 36px 18px !important; }
  .about-split-photo { min-height: 240px !important; }
  .about-info-bar { grid-template-columns: 1fr !important; }
  .about-info-tile { border-right: none !important; border-bottom: none; padding: 28px 18px !important; background-image: linear-gradient(rgba(232,131,124,.35), rgba(232,131,124,.35)); background-size: 28px 2px; background-position: center bottom; }
  .about-info-tile:last-child { background-image: none; }
  .about-values-grid { grid-template-columns: 1fr !important; }
  .about-services-grid { grid-template-columns: 1fr 1fr !important; }
  .about-youth-photo { height: 200px; }
  .about-youth-body { padding: 22px; }
  .page-grid-3 { grid-template-columns: 1fr !important; gap: 16px !important; }
  .prayer-list { grid-template-columns: repeat(2, 1fr); }
  .prayer-loc {
    width: 100%;
  }
  .prayer-loc-form {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .prayer-place-form,
  .prayer-place-form.compact {
    max-width: none;
    width: 100%;
  }
  .prayer-place-combobox {
    flex: 0 0 auto;
    min-width: 100%;
    width: 100%;
  }
  .prayer-place-input {
    width: 100%;
    min-height: 42px;
  }
  .prayer-place-search {
    top: 21px;
  }
  .prayer-loc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
  }
  .prayer-place-form .prayer-loc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    text-align: center;
  }
  .prayer-place-menu {
    position: relative;
    top: 6px;
    width: 100%;
    max-height: 240px;
  }
  .pt-full-card,
  .prayer-card {
    padding: 28px 20px;
  }
  .pt-full-header > div {
    width: 100%;
  }
  .pt-full-time { font-size: 22px; }
  .ss-hero-inner { padding: 64px 24px; gap: 28px; }
  .ss-hero-card { padding: 24px; }
  .ss-fee-grid,
  .ss-resource-grid,
  .ss-subject-grid {
    grid-template-columns: 1fr;
  }
  .ss-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .ss-contact-actions { justify-content: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { height: 480px; }
  .brand-text .b1 { font-size: 16px; }
  .brand-text .b2 { font-size: 10px; }
  .bp-cell { min-width: 54px; padding: 6px 8px; }
  .link-arrow {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* ─── Islamic Event Chips: Month Grid ─────────────────────────────────────── */
.calendar-islamic-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}
.calendar-islamic-chip {
  position: relative;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--sans);
  line-height: 1.3;
  padding: 2px 6px;
  border-radius: 999px;
  overflow: visible;
  cursor: default;
}
.calendar-islamic-chip > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-islamic-chip:hover .cal-popover,
.calendar-islamic-chip:focus-visible .cal-popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Type colors */
.cal-islamic-eid      { background: var(--cream);  color: var(--pink-600); }
.cal-islamic-wiladat  { background: #E4F1EA;        color: #27714A; }
.cal-islamic-shahadat { background: #CC0000;        color: #FFFFFF; }
.cal-islamic-wafat    { background: #CC0000;        color: #FFFFFF; }
.cal-islamic-special  { background: #E6E8EE;        color: #4A5168; }
.cal-islamic-historical { background: var(--bg);   color: var(--muted); }
.cal-islamic-zainab   { background: var(--pink-50); color: var(--pink-600); font-weight: 700; }
.cal-islamic-more     { background: transparent;    color: var(--muted); font-style: italic; }

/* ─── Islamic Events: Weekly View ─────────────────────────────────────────── */
.calendar-week-islamic {
  position: relative;
  margin: 4px 6px 0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--sans);
  line-height: 1.35;
  overflow: visible;
}
.calendar-week-islamic > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.calendar-week-islamic:hover .cal-popover,
.calendar-week-islamic:focus-visible .cal-popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Islamic Events: List View ────────────────────────────────────────────── */
.calendar-list-islamic {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}
.calendar-list-islamic-icon {
  flex-shrink: 0;
  color: var(--muted);
  opacity: .7;
}
.calendar-list-islamic-text {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  line-height: 1.3;
  flex: 1;
}
/* Per-type backgrounds + accessible text for list cards */
.calendar-list-islamic.cal-islamic-eid       { background: var(--cream);   border-color: rgba(232,131,124,.25); }
.calendar-list-islamic.cal-islamic-eid       .calendar-list-islamic-text { color: var(--pink-600); }

.calendar-list-islamic.cal-islamic-wiladat   { background: #E4F1EA; border-color: #C5DFCF; }
.calendar-list-islamic.cal-islamic-wiladat   .calendar-list-islamic-text { color: #1F5C3A; }

.calendar-list-islamic.cal-islamic-shahadat  { background: #FBEAE8; border-color: #F0CFCB; }
.calendar-list-islamic.cal-islamic-shahadat  .calendar-list-islamic-text { color: #8B1A14; }

.calendar-list-islamic.cal-islamic-wafat     { background: #FBEAE8; border-color: #F0CFCB; }
.calendar-list-islamic.cal-islamic-wafat     .calendar-list-islamic-text { color: #8B1A14; }

.calendar-list-islamic.cal-islamic-special   { background: #ECEEF3; border-color: #CDD0DB; }
.calendar-list-islamic.cal-islamic-special   .calendar-list-islamic-text { color: #4A5168; }

.calendar-list-islamic.cal-islamic-historical { background: var(--bg); border-color: var(--line); }
.calendar-list-islamic.cal-islamic-historical .calendar-list-islamic-text { color: var(--muted); }

.calendar-list-islamic.cal-islamic-zainab    { background: var(--pink-50); border-color: rgba(232,131,124,.25); }
.calendar-list-islamic.cal-islamic-zainab    .calendar-list-islamic-text { color: var(--pink-600); font-weight: 700; }

/* ─── Islamic Observances: Bento Panel ────────────────────────────────────── */
.calendar-observance-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 8px 9px 16px;
  border-radius: 10px;
  margin-bottom: 2px;
  background: transparent;
  color: var(--ink);
}
.calendar-observance-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: var(--line);
}
.calendar-observance-row.cal-islamic-shahadat::before,
.calendar-observance-row.cal-islamic-wafat::before    { background: #CC0000; }
.calendar-observance-row.cal-islamic-wiladat::before  { background: #27714A; }
.calendar-observance-row.cal-islamic-eid::before      { background: var(--pink-600); }
.calendar-observance-row.cal-islamic-zainab::before   { background: var(--pink); }
.calendar-observance-row.cal-islamic-special::before  { background: #9099AE; }
.calendar-observance-row.cal-islamic-historical::before { background: #5E9E76; }
.cal-obs-day {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  min-width: 20px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.cal-obs-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ─── Halal / Haram Food List ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  .hfl-header { display: none !important; }
  .hfl-row {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
  }
  .hfl-row > :nth-child(1) { grid-row: 1; grid-column: 1; }
  .hfl-row > :nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .hfl-row > :nth-child(3) { grid-row: 1; grid-column: 2; align-self: start; }
}

/* ── Donate Page ───────────────────────────────────────────────────────────── */
.donate-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--pink);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
}
.donate-featured-aside {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.donate-card {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--pink);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: box-shadow .15s, transform .15s;
}
.donate-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
@media (max-width: 980px) {
  .donate-featured { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .donate-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .donate-featured { padding: 28px; }
  .donate-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   MOBILE COMPLIANCE: all rules below are scoped to mobile breakpoints
   or are globally safe. Desktop layout is completely unaffected.
   ===================================================================== */

/* Prevent any element from causing horizontal page scroll */
html { overflow-x: hidden; }

/* ── Mobile nav drawer ─────────────────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,24,40,.5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.mobile-nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(300px, 88vw);
  background: white; z-index: 201;
  display: flex; flex-direction: column;
  overflow-y: auto;
  box-shadow: -6px 0 32px rgba(20,24,40,.18);
}
.mobile-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mobile-nav-brand { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.mobile-nav-close {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; font-family: var(--sans);
  transition: background .15s ease;
}
.mobile-nav-close:hover { background: var(--bg); }
.mobile-nav-links {
  flex: 1; list-style: none; margin: 0; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
}
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 12px; border: none; background: none;
  cursor: pointer; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  font-family: var(--sans); text-align: left;
  transition: background .14s ease; text-decoration: none;
}
.mobile-nav-link:hover { background: var(--bg); }
.mobile-nav-link.active { color: var(--pink-600); background: var(--pink-50); }
.mobile-nav-sub {
  list-style: none; margin: 0; padding: 2px 0 6px 16px;
  display: flex; flex-direction: column; gap: 1px;
}
.mobile-nav-sub a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: background .12s ease;
}
.mobile-nav-sub a:hover { background: var(--bg); color: var(--ink); }
.mobile-nav-footer { padding: 14px 20px 32px; border-top: 1px solid var(--line); flex-shrink: 0; }
.mobile-nav-donate {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px; border-radius: 999px;
  background: var(--pink); color: white;
  font-size: 14px; font-weight: 600; font-family: var(--sans);
  box-shadow: 0 1px 2px rgba(245,162,180,.35), 0 4px 12px rgba(245,162,180,.25);
  transition: background .15s ease; text-decoration: none;
}
.mobile-nav-donate:hover { background: var(--pink-600); }

/* ── Calendar compact mobile filter bar (hidden by default on desktop) ── */
.cal-mobile-bar { display: none; }

/* ── Subpage hero inner: targetable for mobile padding override ── */
.subpage-hero-inner { padding: 72px 28px 64px; }

/* ── Contact page grids ─────────────────────────────────────────── */
.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 980px) {
  .contact-channel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .contact-channel-grid { grid-template-columns: 1fr; }
  .contact-form-row     { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  /* Calendar: full-width single-column (overrides existing 180px rule) */
  .cal-main-layout { grid-template-columns: 1fr !important; }

  /* Filter panel: show as compact 2-column panel when stacked */
  .cal-filter-panel {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
  }
  .cal-filter-section { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: none; }
  .cal-filter-section:nth-child(odd) { border-right: 1px solid var(--line); }
  .cal-filter-section:nth-last-child(-n+2) { border-bottom: none; }
  .cal-filter-section:first-child { padding-top: 14px; }
}

@media (max-width: 600px) {
  /* Tighter section padding on mobile */
  .section { padding: 44px 18px !important; }

  /* Subpage hero: less top padding on phones */
  .subpage-hero-inner { padding: 48px 18px 40px !important; }

  /* TopBar: tighter horizontal padding */
  .topbar-inner { padding: 12px 18px !important; }

  /* Event banner: full-width clean card on mobile */
  .event-banner-wrap { margin-top: 0 !important; padding: 12px 15px 0 !important; }
  .event-banner {
    border-radius: var(--radius) !important;
    padding: 18px 20px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .event-banner > .event-icon-wrap {
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
    margin-left: 0 !important;
    flex-shrink: 0;
  }
  .event-banner > .event-meta { flex: 1 !important; }
  .event-banner .event-meta .label { font-size: 10px !important; margin-bottom: 10px !important; }
  .event-banner .event-meta .title { font-size: 18px !important; margin-top: 0 !important; }
  .event-banner .event-meta .date { font-size: 13px !important; margin-top: 0 !important; }
  .event-banner .event-meta .date .date-day,
  .event-banner .event-meta .date .date-time { display: block !important; }
  .event-banner .event-meta .date .date-day::after { content: none !important; }
  .event-banner::after { content: none !important; }

  /* Calendar: hide sidebar panel, show compact mobile bar */
  .cal-filter-panel { display: none !important; }
  .cal-main-layout { grid-template-columns: 1fr !important; }
  .cal-mobile-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: 12px 14px;
    margin-bottom: 14px;
  }
  .cal-mobile-nav-row { display: flex; align-items: center; gap: 6px; }
  .cal-mobile-label {
    font-size: 13px; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 140px;
  }
  .cal-mobile-view-row { display: flex; gap: 4px; }
  .cal-mobile-view-btn {
    padding: 7px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    border: 1.5px solid var(--line); background: white; color: var(--ink-2);
    transition: all .15s ease; font-family: var(--sans);
  }
  .cal-mobile-view-btn.active { background: var(--pink); color: white; border-color: var(--pink); }
  .cal-mobile-filter-toggles { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
  .cal-mobile-toggle-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
    font-size: 12px; font-weight: 600; font-family: var(--sans);
    border: 1.5px solid var(--line); background: white; color: var(--ink-2);
    transition: all .15s ease;
  }
  .cal-mobile-toggle-pill.active {
    background: var(--pink-50); border-color: rgba(245,162,180,.5); color: var(--pink-600);
  }

  /* Calendar weekly: scroll inside wrapper, not the page */
  .cal-week-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }
  .cal-week-scroll .calendar-week-board {
    min-width: 500px; border-radius: var(--radius-lg);
  }

  /* Calendar monthly board: block-display mode (already done), ensure no min-width overflow */
  .calendar-board { min-width: 0 !important; }

  /* Prayer times table: ensure it scrolls inside its wrapper */
  .prayer-table-wrap { -webkit-overflow-scrolling: touch; }

  /* Halal food list: ensure table area scrolls cleanly */
  .hfl-header { display: none !important; }

  /* Section heads: always stack on mobile */
  .section-head { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }

  /* Carousel arrows: hidden on mobile (already done for cal-carousel-arrow, double-check) */
  .cal-carousel-arrow { display: none !important; }

  /* ── Coming Events: horizontal snap carousel on mobile ─────────────── */
  .events-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    /* Bleed past section padding so the track runs edge-to-edge,
       then restore left indent so the first card aligns with content above */
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 28px;
    padding-right: 28px;
    scroll-padding-left: 28px;
  }
  .events-grid::-webkit-scrollbar { display: none; }
  .events-grid .event-card,
  .events-grid .event-card-empty {
    flex: 0 0 82%;
    scroll-snap-align: start;
    min-width: 0;
    aspect-ratio: unset;
    padding: 28px;
  }
  .events-grid .event-empty-state {
    flex: 0 0 calc(100% - 36px);
    min-width: 0;
  }
}

/* =====================================================================
   MOBILE COMPLIANCE PHASE 2
   Touch targets · typography · overflow safety · small-phone fixes.
   All rules are scoped to ≤980px or ≤600px media queries.
   Desktop layout (>980px) is completely unaffected.
   ===================================================================== */

/* Prevent the body from ever producing a horizontal scrollbar */
body { overflow-x: hidden; }

/* ── Touch targets at ≤980px (tablet + phone) ─────────────────────── */
@media (max-width: 980px) {
  /* Hamburger toggle: 44×44 tap zone */
  .topbar-mobile-toggle { width: 44px; height: 44px; }

  /* Mobile drawer: all top-level links 44px tall */
  .mobile-nav-link { min-height: 44px; }
  .mobile-nav-sub a { min-height: 44px; display: flex; align-items: center; }
  .mobile-nav-close { width: 44px; height: 44px; }

  /* Topbar donate: 44px */
  .btn-donate { min-height: 44px; }

  /* Topbar right links (prayer times) */
  .tb-link { min-height: 44px; }
}

/* ── Small-screen fixes at ≤600px ────────────────────────────────── */
@media (max-width: 600px) {

  /* --- Hero controls --- */

  /* Arrows: bump from 38px to 44px */
  .hero-arrow { width: 44px; height: 44px; }

  /* Dots: 44px tap zone via pseudo-element so the visual bar stays 4px */
  .hero-dot {
    position: relative;
    width: 28px;
    height: 44px;
    background: transparent !important;
  }
  .hero-dot::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%; transform: translateY(-50%);
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.35);
    transition: background .2s ease;
  }
  .hero-dot.active { width: 44px; background: transparent !important; }
  .hero-dot.active::after { background: var(--cream); }

  /* Reduce hero content bottom padding on 480px-tall hero */
  .hero-content { padding-bottom: 72px !important; }

  /* --- TopBar: single row on phones, logo+text left, hamburger right --- */
  .topbar-inner {
    padding: 12px 18px !important;
    gap: 0;
  }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-text .b2 {
    font-size: 10px !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap;
  }

  /* --- Event banner on mobile --- */
  .event-banner { padding: 18px 20px !important; }
  .event-meta .title { font-size: 18px !important; }

  /* --- Section title safe floor for very narrow screens --- */
  .section-title { font-size: clamp(22px, 7vw, 40px) !important; }

  /* --- Subscribe form: submit full-width for easy tap --- */
  .subscribe-form .submit {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* --- Touch targets for interactive elements --- */
  .amt-chip { min-height: 44px !important; display: inline-flex; align-items: center; }
  .prayer-cta { min-height: 44px !important; }
  .btn-donate-lg { min-height: 44px !important; }
  .cal-filter-nav-btn { width: 44px !important; height: 44px !important; }
  .cal-mobile-view-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .cal-mobile-toggle-pill { min-height: 44px; display: inline-flex; align-items: center; }
  .calendar-actions button { min-height: 44px !important; }
  .prayer-month-btn { width: 44px; height: 44px; }

  /* --- Footer tightening --- */
  .footer { padding: 44px 18px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* --- Misc layout safety --- */
  .prayer-disclaimer { padding: 14px 16px; font-size: 14px; }
  .z360-intro-row p { padding-left: 16px !important; }
}

/* =====================================================================
   MOBILE CALENDAR VIEW, Google Calendar-inspired
   Only rendered by JS when window ≤ 600px, no media query needed.
   ===================================================================== */

.cal-mv-shell {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* ── Top navigation bar ───────────────────────────────────────────── */
.cal-mv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 10px 8px;
  gap: 4px;
}
.cal-mv-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.cal-mv-month-label {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.cal-mv-hijri-sub {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.cal-mv-nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  flex-shrink: 0;
}
.cal-mv-nav-btn:hover { background: var(--bg); color: var(--ink); }

/* ── Filter chips ─────────────────────────────────────────────────── */
.cal-mv-chips {
  display: flex;
  gap: 6px;
  padding: 0 14px 12px;
}
.cal-mv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: white;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.cal-mv-chip.active {
  border-color: rgba(232,131,124,.45);
  background: var(--pink-50);
  color: var(--ink-2);
}
.cal-mv-chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .55;
  transition: opacity .15s ease;
}
.cal-mv-chip.active .cal-mv-chip-dot { opacity: 1; }

/* ── Single-letter day headers ────────────────────────────────────── */
.cal-mv-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 6px;
  border-top: 1px solid var(--line);
}
.cal-mv-day-header {
  text-align: center;
  padding: 8px 0 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Calendar grid ────────────────────────────────────────────────── */
.cal-mv-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 2px 6px 10px;
}
.cal-mv-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 1px;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
}
.cal-mv-cell.muted { opacity: .22; pointer-events: none; }
.cal-mv-greg {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: background .12s ease, color .12s ease;
}
.cal-mv-cell:hover:not(.muted):not(.today):not(.selected) .cal-mv-greg { background: var(--bg); }
.cal-mv-cell.today .cal-mv-greg {
  background: var(--pink);
  color: white;
  font-weight: 700;
}
.cal-mv-cell.selected:not(.today) .cal-mv-greg {
  background: var(--ink);
  color: white;
}
.cal-mv-hijri-num {
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.cal-mv-hijri-num.month-start {
  color: var(--pink-600);
  font-weight: 700;
}
.cal-mv-dots {
  display: flex;
  gap: 2px;
  justify-content: center;
  min-height: 5px;
}
.cal-mv-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Agenda list ──────────────────────────────────────────────────── */
.cal-mv-selected-panel {
  border-top: 1px solid var(--line);
  padding: 14px 16px 12px;
  background: var(--pink-50);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cal-mv-selected-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.cal-mv-selected-date {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.cal-mv-selected-hijri {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--pink-600);
  letter-spacing: 0.01em;
}
.cal-mv-list-hijri {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-top: 3px;
  text-align: center;
}
.cal-mv-list { border-top: 1px solid var(--line); }
.cal-mv-list-status {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--sans);
}
.cal-mv-list-day {
  display: flex;
  gap: 0;
  padding: 12px 16px 12px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .12s ease;
  outline: none;
}
.cal-mv-list-day:last-child { border-bottom: none; }
.cal-mv-list-day:hover { background: var(--bg); }
.cal-mv-list-day.selected { background: var(--pink-50); }
.cal-mv-list-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 46px;
  flex-shrink: 0;
  padding-top: 2px;
}
.cal-mv-list-weekday {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 4px;
}
.cal-mv-list-daynum {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  line-height: 1;
}
.cal-mv-list-daynum.today { background: var(--pink); color: white; font-size: 18px; }
.cal-mv-list-events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 10px;
  padding-top: 8px;
  min-width: 0;
}
.cal-mv-list-empty {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
}
.cal-mv-list-event {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  min-height: 38px;
  cursor: pointer;
  transition: background .15s ease;
}
.cal-mv-list-event:hover { background: var(--line); }
.cal-mv-list-strip {
  width: 4px;
  flex-shrink: 0;
}
.cal-mv-list-body {
  flex: 1;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cal-mv-list-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}
.cal-mv-list-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}

/* ====================== ILLUMINATION PAGE ====================== */
.illum-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.illum-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgba(232,131,124,.3);
}
.illum-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.illum-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-600);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1.5px solid rgba(216,106,98,.3);
  border-radius: 999px;
  transition: border-color .15s ease, background .15s ease;
}
.illum-download:hover {
  background: var(--pink-50);
  border-color: var(--pink);
}
.illum-download-icon {
  padding: 6px 10px;
}
@media (max-width: 600px) {
  .illum-card-top { flex-direction: column; gap: 12px; }
  .illum-card p[style] { padding-left: 0 !important; }
}

/* ── 313 Athletics grid ── */
.athletics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.athletics-sports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .athletics-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ====================== FOOD SUB-NAV ====================== */
.food-subnav {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 60px;
  z-index: 49;
}
.food-subnav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.food-subnav-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 44px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.food-subnav-tab:hover { color: var(--ink); }
.food-subnav-tab.active {
  color: var(--pink-600);
  font-weight: 600;
  border-bottom-color: var(--pink-600);
}

@media (max-width: 600px) {
  .food-subnav-inner { padding: 0 16px; gap: 0; }
  .food-subnav-tab { font-size: 13px; padding: 0 12px; }
}

/* ====================== FOOD 101 ====================== */
.f101-levels-scale { position: relative; }
.f101-levels-bar {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink) 0%, #E8E6E1 100%);
  margin-bottom: 28px;
}
.f101-levels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.f101-level-item { display: flex; flex-direction: column; gap: 4px; }
.f101-level-pct {
  display: inline-block;
  width: fit-content;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.f101-meat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.f101-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.f101-guidance-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.f101-guidance-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgba(232,131,124,.3);
}
.f101-conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.f101-fish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.f101-shellfish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 980px) {
  .f101-levels-grid { grid-template-columns: repeat(3, 1fr); }
  .f101-meat-grid { grid-template-columns: 1fr; gap: 32px; }
  .f101-guidance-grid { grid-template-columns: 1fr; gap: 14px; }
  .f101-conditions-grid { grid-template-columns: 1fr; }
  .f101-fish-grid { grid-template-columns: 1fr; }
  .f101-shellfish-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .f101-levels-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .f101-levels-bar { display: none; }
  .f101-level-item {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .f101-level-item:last-child { border-bottom: none; }
  .f101-level-pct {
    flex-shrink: 0;
    min-width: 68px;
    text-align: center;
    margin-bottom: 0 !important;
    margin-top: 1px;
  }
}

/* ── Khatam tile: tiling geometric background for dark hero sections ── */
.dark-hero {
  position: relative;
  overflow: hidden;
}
.dark-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('khatam-tile.svg');
  background-repeat: repeat;
  background-size: 100px 100px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

