/* Masjid websites: the public site. Built from the Masjid Madeena design; colours come from each masjid's settings. Fonts are served from this site (/fonts/, SIL Open Font License). */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/marcellus-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Malayalam"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/noto-sans-malayalam-malayalam-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Malayalam"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/noto-sans-malayalam-malayalam-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/amiri-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/amiri-arabic-700-normal.woff2") format("woff2"); }

:root {
  --green-950: #072a19;
  --green-900: #0b3a22;
  --green-800: #0f4d2e;
  --green-700: #16653c;
  --green-100: #e3efe6;
  --gold-500: #e3b54e;
  --gold-600: #c89a2e;
  --gold-100: #faf0d7;
  --cream: #fbf8f0;
  --paper: #ffffff;
  --ink: #17241c;
  --body: #34453a;
  --muted: #5d6d63;
  --line: #e6dfcc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(7, 42, 25, .06), 0 10px 30px -12px rgba(7, 42, 25, .18);
  --font-head: "Marcellus", "Noto Sans Malayalam", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Noto Sans Malayalam", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ml: "Noto Sans Malayalam", "Manjari", "Kartika", sans-serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e3b54e' stroke-width='1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
[lang="ml"] { font-family: var(--font-ml); line-height: 1.6; }
[lang="ar"] { font-family: var(--font-ar); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 380px) { .container { padding: 0 16px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold-500); color: var(--green-950); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 58, 34, .96);
  background: color-mix(in srgb, var(--green-900) 96%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(227, 181, 78, .22);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.1; letter-spacing: .01em; }
.brand-place { display: block; font-size: .78rem; color: rgba(255, 255, 255, .72); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .nav-cta { background: var(--gold-500); color: var(--green-950); margin-inline-start: 6px; }
.nav .nav-cta:hover { background: #ecc463; color: var(--green-950); }
.menu-btn {
  display: none; align-items: center; gap: 8px;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 8px 14px; font: 600 .95rem var(--font-body); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--green-900); padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(227, 181, 78, .22);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, var(--green-700) 0%, var(--green-800) 45%, var(--green-950) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 64px 64px; opacity: .13;
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1.02fr 1fr; padding-top: 72px; padding-bottom: 84px;
}
.bismillah { font-size: 1.55rem; color: var(--gold-500); line-height: 1.6; margin-bottom: 18px; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500);
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); margin-top: 14px; letter-spacing: .005em; }
.hero .ml-title { margin-top: 10px; font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 700; color: rgba(255, 255, 255, .92); }
.hero .lead { margin-top: 22px; max-width: 34rem; font-size: 1.16rem; color: rgba(255, 255, 255, .86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--green-950); box-shadow: 0 8px 20px -10px rgba(227, 181, 78, .9); }
.btn-gold:hover { background: #ecc463; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-green { background: var(--green-800); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn-line { background: var(--paper); color: var(--green-800); border: 1.5px solid var(--green-800); }
.btn-line:hover { background: var(--green-100); }

.hero-figure { margin: 0; position: relative; }
.hero-figure .frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 3px solid var(--gold-500);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6);
}
.hero-figure img { width: 100%; aspect-ratio: 853 / 543; object-fit: cover; }
.hero-figure::after {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 90px; height: 90px;
  border-top: 3px solid var(--gold-500); border-right: 3px solid var(--gold-500); border-top-right-radius: 28px;
  opacity: .7; pointer-events: none;
}
.hero-figure figcaption { margin-top: 14px; font-size: .9rem; color: rgba(255, 255, 255, .7); text-align: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; gap: 34px; }
  .hero-figure::after { display: none; }
}

/* ---------- Notice strip ---------- */
.notice { background: var(--gold-500); color: var(--green-950); }
.notice a {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 14px 0; color: inherit; text-decoration: none; text-align: center; font-weight: 600;
}
.notice strong { font-weight: 700; }
.notice .pill {
  background: var(--green-900); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: .88rem; font-weight: 700;
}
.notice .arrow { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 78px; }
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600);
}
.section-head { max-width: 44rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: 8px; }
.section-head .ml-sub { margin-top: 6px; color: var(--green-700); font-weight: 700; font-size: 1.05rem; }
.section-head p.intro { margin-top: 14px; font-size: 1.1rem; }
.ornament { display: flex; align-items: center; gap: 10px; color: var(--gold-600); margin-top: 16px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 44px; background: currentColor; opacity: .5; }
.ornament svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-tight { padding: 48px 0; } }

/* Stats */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 18px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat .num { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--green-800); line-height: 1.1; }
.stat .label { margin-top: 6px; font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about-copy p + p { margin-top: 16px; }
.about-copy p { font-size: 1.1rem; }
.trust-card {
  background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: 32px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.trust-card::before {
  content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .1;
}
.trust-card > * { position: relative; }
.trust-card h3 { color: #fff; font-size: 1.6rem; }
.trust-card .ml { color: var(--gold-500); font-weight: 700; margin-top: 4px; }
.trust-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.trust-card li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .88); }
.trust-card li svg { flex: none; width: 22px; height: 22px; color: var(--gold-500); margin-top: 2px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-800); margin-bottom: 18px;
}
.icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.35rem; }
.card .ml { margin-top: 4px; color: var(--green-700); font-weight: 700; font-size: .95rem; }
.card p.desc { margin-top: 12px; font-size: 1rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.charity { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.charity .card { background: var(--cream); box-shadow: none; }
.charity .icon { background: var(--gold-100); color: #8a6412; }

/* Iftar feature */
.iftar {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--green-900), var(--green-950));
}
.iftar::before {
  content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .1;
}
.iftar-grid { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.moon { width: 180px; height: 180px; color: var(--gold-500); }
.iftar h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 8px; }
.iftar .ml-sub { color: var(--gold-500); font-weight: 700; margin-top: 6px; }
.iftar p.big { margin-top: 18px; font-size: 1.2rem; color: rgba(255, 255, 255, .9); max-width: 42rem; }
.iftar p.small { margin-top: 12px; color: rgba(255, 255, 255, .72); max-width: 42rem; }
.iftar .kicker { color: var(--gold-500); }
@media (max-width: 760px) {
  .iftar-grid { grid-template-columns: 1fr; gap: 20px; }
  .moon { width: 96px; height: 96px; }
}

/* Family Meet */
.event {
  display: grid; grid-template-columns: 240px 1fr; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.event-date {
  background: var(--green-800); color: #fff; text-align: center;
  padding: 36px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; overflow: hidden;
}
.event-date::before {
  content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .12;
}
.event-date > * { position: relative; }
.event-date .month { font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-500); }
.event-date .day { font-family: var(--font-head); font-size: 5rem; line-height: 1; margin: 6px 0; }
.event-date .year { font-size: 1.05rem; font-weight: 600; }
.event-date .weekday { margin-top: 4px; color: rgba(255, 255, 255, .78); }
.countdown {
  margin-top: 16px; background: var(--gold-500); color: var(--green-950);
  border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .9rem;
}
.countdown:empty { display: none; }
.event-body { padding: 36px; }
.event-body h3 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.event-body .ml { margin-top: 4px; color: var(--green-700); font-weight: 700; font-size: 1.1rem; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 22px; height: 22px; color: var(--gold-600); margin-top: 3px; }
.facts strong { color: var(--ink); display: block; }
.facts .ml-line { font-size: .95rem; color: var(--muted); }
.event-body .invite { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--green-100); color: var(--green-900); font-weight: 600; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.event-actions .btn { min-height: 46px; padding: 10px 18px; font-size: .97rem; }
.text-link { display: inline-block; margin-top: 14px; font-size: .95rem; font-weight: 600; }
@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; }
  .event-date { padding: 26px 20px; }
  .event-date .day { font-size: 4rem; }
  .event-body { padding: 26px 22px; }
  .event-actions .btn { flex: 1 1 100%; }
}

/* Visit */
.visit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: stretch; }
.visit-copy { display: flex; flex-direction: column; gap: 16px; }
.visit-copy .place { font-size: 1.15rem; }
.visit-copy .place strong { color: var(--ink); }
.note {
  background: var(--paper); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold-500);
  border-radius: 12px; padding: 16px 18px;
}
.map {
  min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--green-100);
}
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--green-950); color: rgba(255, 255, 255, .78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer .brand-name { color: #fff; font-size: 1.5rem; }
.footer h4 { margin: 0 0 12px; color: var(--gold-500); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .ml { color: var(--gold-500); margin-top: 4px; }
.footer .fine {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; color: rgba(255, 255, 255, .6);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Footer logo ---------- */
.footer-logo {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 10px 12px; border-radius: 12px; background: #fff;
}
.footer-logo img { width: auto; height: 64px; }

/* ---------- Speakers ---------- */
.speakers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.speaker {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); text-align: center;
}
.speaker .photo { position: relative; background: var(--green-100); }
.speaker .photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.speaker .photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--green-800), var(--gold-500), var(--green-800));
}
.speaker .who { padding: 18px 16px 22px; }
.speaker .name-ml { font-family: var(--font-ml); font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.5; }
.speaker .name-en { margin-top: 2px; font-family: var(--font-head); font-size: 1.15rem; color: var(--green-800); }
.speaker .role { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.speaker .role .role-ml { display: block; font-family: var(--font-ml); color: var(--gold-600); font-weight: 700; }
@media (max-width: 760px) { .speakers { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

/* Small avatars, for the home page's Family Meet card */
.faces { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.face { display: flex; align-items: center; gap: 10px; }
.face img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-500); }
.face span { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.25; }

/* ---------- Invitation ---------- */
.invite {
  position: relative; max-width: 760px; margin: 0 auto;
  background: #fffdf6; border-radius: var(--radius-lg); padding: 14px;
  box-shadow: 0 30px 60px -30px rgba(7, 42, 25, .35);
}
.invite-inner {
  border: 2px solid var(--gold-500); outline: 1px solid rgba(200, 154, 46, .45); outline-offset: 5px;
  border-radius: 16px; padding: 44px 40px 40px;
  background:
    radial-gradient(circle at 0 0, rgba(227, 181, 78, .16) 0 60px, transparent 61px),
    radial-gradient(circle at 100% 0, rgba(227, 181, 78, .16) 0 60px, transparent 61px),
    radial-gradient(circle at 0 100%, rgba(227, 181, 78, .16) 0 60px, transparent 61px),
    radial-gradient(circle at 100% 100%, rgba(227, 181, 78, .16) 0 60px, transparent 61px);
}
.invite .crest { display: flex; justify-content: center; color: var(--gold-600); }
.invite .crest svg { width: 46px; height: 46px; }
.invite h2 { text-align: center; font-family: var(--font-ml); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2rem); color: var(--green-800); margin-top: 10px; }
.invite .rule { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold-600); margin: 14px 0 26px; }
.invite .rule::before, .invite .rule::after { content: ""; height: 1px; width: 70px; background: currentColor; opacity: .6; }
.invite .rule svg { width: 14px; height: 14px; }
.invite-body { font-family: var(--font-ml); font-size: 1.1rem; line-height: 2; color: #223127; }
.invite-body p + p { margin-top: 18px; }
.invite-body strong { color: var(--green-800); font-weight: 700; }
.invite-body .salam { font-family: var(--font-ar); font-size: 1.55rem; color: var(--green-800); line-height: 1.6; margin-top: 6px; }
.invite-when {
  margin: 22px 0; padding: 18px 20px; border-radius: 14px;
  background: var(--green-100); border-inline-start: 4px solid var(--green-800);
}
.invite-when strong { display: block; font-size: 1.15rem; }
.invite-sign { margin-top: 28px; text-align: end; }
@media (max-width: 560px) {
  .invite { padding: 8px; }
  .invite-inner { padding: 30px 20px 28px; outline-offset: 3px; }
  .invite-body { font-size: 1.04rem; line-height: 1.95; }
}

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, var(--green-700) 0%, var(--green-800) 45%, var(--green-950) 100%); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px 64px; opacity: .13; pointer-events: none; }
.page-hero .container { position: relative; padding-top: 56px; padding-bottom: 64px; text-align: center; }
.page-hero .bismillah { text-align: center; margin-bottom: 10px; }
.page-hero h1 { color: #fff; font-family: var(--font-ml); font-weight: 700; font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.35; margin-top: 12px; }
.page-hero .en { margin-top: 6px; font-family: var(--font-head); font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: rgba(255, 255, 255, .88); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.chip {
  display: flex; align-items: center; gap: 10px; text-align: start;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(227, 181, 78, .45);
  border-radius: 16px; padding: 12px 16px;
}
.chip svg { width: 22px; height: 22px; color: var(--gold-500); flex: none; }
.chip b { display: block; font-family: var(--font-ml); font-weight: 700; font-size: 1rem; line-height: 1.5; }
.chip small { display: block; color: rgba(255, 255, 255, .75); font-size: .88rem; }
.page-hero .countdown { display: inline-block; margin-top: 22px; }
.page-hero .actions { justify-content: center; }

/* ---------- Registration card ---------- */
.register-card {
  max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--green-900); color: #fff; border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.register-card::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .1; }
.register-card > * { position: relative; }
.register-card .kicker { color: var(--gold-500); }
.register-card h2 { color: #fff; font-family: var(--font-ml); font-weight: 700; font-size: 1.9rem; margin-top: 4px; }
.register-card p { margin-top: 8px; font-family: var(--font-ml); color: rgba(255, 255, 255, .9); }
.register-card p strong { color: var(--gold-500); }
.register-card p.en { font-family: var(--font-body); font-size: .95rem; color: rgba(255, 255, 255, .7); margin-top: 2px; }
.register-card .btn { flex: none; }
@media (max-width: 640px) { .register-card { flex-direction: column; align-items: stretch; text-align: left; padding: 24px 22px; } }

/* ======================================================================
   Platform additions: top bar, menus, new sections, forms, Arabic.
   ====================================================================== */

/* ---------- Top bar: date and the Qur'an links, top right ---------- */
.topbar { background: var(--green-950); color: rgba(255, 255, 255, .76); font-size: .86rem; border-bottom: 1px solid rgba(227, 181, 78, .18); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.today { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.today .hijri { color: var(--gold-500); }
.quick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.quick-link {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: .84rem; line-height: 1.2;
  padding: 6px 12px; border-radius: 999px; color: #fff; border: 1px solid rgba(255, 255, 255, .3);
}
.quick-link svg { width: 15px; height: 15px; flex: none; }
.quick-link:hover { background: rgba(255, 255, 255, .1); }
.quick-app { background: var(--gold-500); color: var(--green-950); border-color: var(--gold-500); }
.quick-app:hover { background: #ecc463; color: var(--green-950); }
.langs { display: inline-flex; gap: 2px; padding-inline-start: 6px; }
.langs a { color: rgba(255, 255, 255, .8); text-decoration: none; padding: 4px 8px; border-radius: 6px; font-weight: 600; }
.langs a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 640px) {
  .today { display: none; }
  .quick { margin: 0 auto; justify-content: center; }
  .quick-link { font-size: .8rem; padding: 6px 10px; }
}

/* ---------- Brand logo image ---------- */
.brand-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }

/* ---------- "About" drop-down ---------- */
.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, .86); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary svg { width: 16px; height: 16px; transition: transform .15s ease; }
.nav-drop[open] summary svg { transform: rotate(180deg); }
.nav-drop summary:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-drop .drop {
  position: absolute; inset-inline-start: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
  background: var(--green-900); border: 1px solid rgba(227, 181, 78, .3); border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); display: grid; gap: 2px;
}
.nav-drop .drop a { border-radius: 10px; }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.nav .nav-cta[aria-current="page"] { background: var(--gold-500); color: var(--green-950); }
@media (max-width: 1080px) {
  .nav-drop summary { width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 1rem; justify-content: space-between; }
  .nav-drop .drop { position: static; min-width: 0; box-shadow: none; border: 0; background: rgba(255, 255, 255, .04); margin: 2px 0 6px; }
}

/* ---------- Layout helpers ---------- */
.narrow { max-width: 760px; }
.narrow-wide { max-width: 920px; }
.stats-grid.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid.stats-1 { grid-template-columns: 1fr; }
.hero-grid.hero-grid-solo { grid-template-columns: 1fr; max-width: 820px; }
.about-grid.about-solo { grid-template-columns: 1fr; max-width: 820px; }
.visit-grid.visit-solo { grid-template-columns: 1fr; max-width: 640px; }
.list-title { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 18px; }
.empty { color: var(--muted); font-size: 1.05rem; }
.text-link { margin-top: 22px; }
.ml-heading { font-family: var(--font-ml); font-weight: 700; }
.venue-note { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.venue-note strong { color: var(--green-800); }
.contact-lines { display: flex; flex-direction: column; gap: 8px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.contact-lines svg { width: 18px; height: 18px; }

/* Sub-page banner for list pages and articles */
.page-hero h1.plain { font-family: var(--font-head); font-weight: 400; line-height: 1.15; }
.page-hero-plain .container { padding-top: 48px; padding-bottom: 52px; }
.page-hero .banner-intro { max-width: 44rem; margin: 16px auto 0; color: rgba(255, 255, 255, .84); font-size: 1.1rem; }
.register-card h2.plain { font-family: var(--font-head); font-weight: 400; }
.page-hero .eyebrow + h1 { margin-top: 12px; }

/* ---------- Prayer times ---------- */
.prayer { background: var(--paper); border-bottom: 1px solid var(--line); }
.prayer-in { display: grid; grid-template-columns: minmax(200px, .8fr) 2fr; gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.prayer-head h2 { font-size: 1.7rem; }
.prayer-head p { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.prayer-head .prayer-note { color: var(--body); margin-top: 8px; }
.prayer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.prayer-grid li { display: flex; }
.p-box {
  width: 100%; font: inherit; color: inherit; cursor: pointer;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.p-box:hover { border-color: var(--gold-500); box-shadow: var(--shadow); transform: translateY(-1px); }
.p-box:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.prayer-grid .p-name { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.prayer-grid .p-time { font-family: var(--font-head); font-size: 1.45rem; color: var(--green-800); line-height: 1.2; }
.prayer-grid .p-begins { font-size: .8rem; color: var(--muted); }
.prayer-grid .p-jumuah .p-box, .prayer-grid .is-jumuah .p-box { background: var(--gold-100); border-color: rgba(200, 154, 46, .45); }

/* Prayer details window */
.prayer-dialog {
  width: min(420px, calc(100vw - 32px)); border: 0; border-radius: var(--radius-lg); padding: 0;
  background: var(--paper); color: var(--body); box-shadow: 0 30px 60px -20px rgba(7, 42, 25, .45);
}
.prayer-dialog::backdrop { background: rgba(7, 42, 25, .55); }
.prayer-dialog .pd-head {
  position: relative; overflow: hidden; text-align: center; color: #fff; padding: 22px 20px 18px;
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
}
.prayer-dialog .pd-head::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .12; }
.prayer-dialog .pd-head > * { position: relative; }
.prayer-dialog h3 { color: #fff; font-size: 1.8rem; }
.pd-name2 { display: block; color: var(--gold-500); font-weight: 700; margin-top: 2px; }
.pd-name-ar { display: block; font-family: var(--font-ar); color: var(--gold-500); font-size: 1.4rem; line-height: 1.5; }
.pd-date { margin-top: 6px; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.pd-times { margin: 0; padding: 18px 20px 6px; display: grid; gap: 10px; }
.pd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.pd-row dt { font-weight: 700; color: var(--ink); }
.pd-row dd { margin: 0; text-align: end; font-family: var(--font-head); font-size: 1.6rem; color: var(--green-800); line-height: 1.2; }
.pd-row dd small { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--muted); }
.pd-iqamah { background: var(--gold-100); border-color: rgba(200, 154, 46, .45); }
.pd-minor dt { font-weight: 600; color: var(--muted); font-size: .92rem; }
.pd-minor dd { font-size: 1.2rem; }
.pd-note { padding: 0 20px; margin-top: 8px; font-size: .95rem; color: var(--muted); }
.prayer-dialog form { padding: 16px 20px 20px; display: flex; justify-content: center; }
.pd-close { min-width: 140px; }
.prayer-grid .p-time, .prayer-grid .p-begins { white-space: nowrap; }
@media (max-width: 900px) {
  .prayer-in { grid-template-columns: 1fr; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .prayer-grid { gap: 8px; }
  .p-box { padding: 10px 4px; }
  .prayer-grid .p-time { font-size: 1.22rem; }
  .prayer-grid .p-begins { font-size: .74rem; }
}

/* ---------- Event list ---------- */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-list a {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.event-list a:hover { border-color: var(--gold-500); }
.el-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--green-800); color: #fff; border-radius: 12px; padding: 8px 4px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.el-date b { font-family: var(--font-head); font-weight: 400; font-size: 1.8rem; line-height: 1; letter-spacing: 0; }
.el-body { display: flex; flex-direction: column; gap: 2px; }
.el-body strong { color: var(--ink); font-size: 1.1rem; }
.el-body span { color: var(--muted); font-size: .95rem; }
.el-body .el-sum { color: var(--body); }
.event-list-past .el-date { background: var(--muted); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.charity .news-card a { background: var(--cream); box-shadow: none; }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-ph { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--green-100); color: var(--green-700); }
.news-ph svg { width: 56px; height: 56px; }
.news-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.news-body time { font-size: .85rem; color: var(--gold-600); font-weight: 700; letter-spacing: .04em; }
.news-body strong { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--ink); line-height: 1.25; }
.news-sum { color: var(--body); font-size: .98rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }
.article-figure { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.article-figure img { width: 100%; }

/* ---------- Written text (news, history, notices) ---------- */
.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 16px; }
.prose h3 { font-size: 1.5rem; margin-top: 28px; }
.prose h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; margin-top: 22px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose .callout { padding: 16px 18px; border-radius: 12px; background: var(--green-100); border-inline-start: 4px solid var(--green-800); font-weight: 600; }
.prose p[lang="ar"] { font-size: 1.4rem; color: var(--green-800); }

/* ---------- Students corner ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--green-800); font-weight: 600; font-size: .95rem; }
.filter a[aria-current] { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold-500); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.post a:hover { border-color: var(--gold-500); }
.post-cat { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.post strong { font-size: 1.15rem; color: var(--ink); }
.post-sum { color: var(--body); }
.post-past a { opacity: .66; border-inline-start-color: var(--line); }
.badge { align-self: flex-start; margin-top: 6px; font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); }
.badge-soon { background: #fde7c7; color: #8a4b00; }
.badge-closed { background: #eee; color: #666; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 20px; }
.post-meta .badge { margin: 0; }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.charity .person { background: var(--cream); box-shadow: none; }
.person-photo { background: var(--green-100); }
.person-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.person-initial { display: grid; place-items: center; aspect-ratio: 1 / 1; font-family: var(--font-head); font-size: 4rem; color: var(--green-700); }
.person-who { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.person-cat { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.person-name { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--ink); line-height: 1.25; }
.person-name2 { color: var(--green-700); font-weight: 700; }
.person-role { color: var(--body); margin-top: 4px; }
.person-role2 { color: var(--muted); font-size: .95rem; }
.person-period { color: var(--muted); font-size: .95rem; }
.person-bio { margin-top: 8px; font-size: .98rem; }
.person-phone { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; text-decoration: none; }
.person-phone svg { width: 16px; height: 16px; }

/* Speakers on an event page: primary-language name first, then the second language. */
.speaker .name-1 { font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.5; }
.speaker .name-2 { margin-top: 2px; font-family: var(--font-head); font-size: 1.15rem; color: var(--green-800); }
.speaker .role .role-1 { display: block; color: var(--gold-600); font-weight: 700; }
.speaker .role .role-1:lang(ml) { font-family: var(--font-ml); }
.speaker .person-initial { font-size: 5rem; }
.speakers.speakers-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.speakers.speakers-2 { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }

/* ---------- History timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 58px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 118px 1fr; gap: 20px; position: relative; padding-bottom: 32px; }
.tl-year { font-family: var(--font-head); font-size: 1.4rem; color: var(--green-800); background: var(--cream); position: relative; z-index: 1; text-align: center; padding: 2px 0; }
.tl-body h3 { font-size: 1.4rem; }
.tl-sub { color: var(--green-700); font-weight: 700; margin-top: 2px; }
.tl-body .prose { margin-top: 10px; }
.tl-photo { margin-top: 14px; border-radius: var(--radius); max-width: 420px; }
@media (max-width: 560px) {
  .timeline::before { inset-inline-start: 34px; }
  .timeline li { grid-template-columns: 70px 1fr; gap: 12px; }
  .tl-year { font-size: 1.1rem; }
}

/* ---------- Gallery ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.album { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; background: var(--green-900); aspect-ratio: 4 / 3; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.album:hover img { transform: scale(1.03); }
.album-cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; display: flex; flex-direction: column; }
.album-cap strong { font-family: var(--font-head); font-weight: 400; font-size: 1.25rem; }
.album-cap span { font-size: .88rem; opacity: .85; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo-grid a { display: block; border-radius: 12px; overflow: hidden; background: var(--green-100); }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-cap { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-intro { margin-bottom: 4px; }
.form-section { font-size: 1.4rem; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-card .field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form-card label, .form-card legend { font-weight: 700; color: var(--ink); }
.label-2 { display: block; font-weight: 500; color: var(--muted); font-size: .92rem; }
.req { color: #b3261e; margin-inline-start: 3px; }
.form-card input[type="text"], .form-card input[type="tel"], .form-card input[type="email"], .form-card input[type="date"], .form-card input:not([type]),
.form-card select, .form-card textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #cfc6ae; border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 3px solid rgba(227, 181, 78, .55); outline-offset: 1px; border-color: var(--green-700); }
.form-card .has-error input, .form-card .has-error select, .form-card .has-error textarea, .form-card [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-weight: 600; font-size: .95rem; }
.form-card .help { color: var(--muted); font-size: .95rem; margin: 0; }
.form-alert { background: #fde8e6; color: #7d1a13; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--green-800); }
.choice.consent { font-size: .98rem; color: var(--body) !important; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } .form-card { padding: 20px 16px; } }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.members { display: grid; gap: 14px; }
.member { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 16px; background: var(--cream); margin: 0; }
.member legend { font-weight: 700; color: var(--green-800); padding: 0 6px; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 12px; }
.mf { display: flex; flex-direction: column; gap: 4px; font-weight: 600 !important; font-size: .9rem; min-width: 0; }
.mf.mf-wide { grid-column: span 2; }
.mf.has-error input, .mf.has-error select { border-color: #b3261e; }
@media (max-width: 760px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .member-grid { grid-template-columns: 1fr; } .mf.mf-wide { grid-column: auto; } }
.add-member { justify-self: start; }
.form-done { background: var(--green-100); border-radius: var(--radius-lg); padding: 28px; }
.form-done h2 { font-size: 2rem; color: var(--green-800); margin-bottom: 8px; }
.form-closed { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: 1.1rem; }

/* ---------- Arabic, right to left ---------- */
[dir="rtl"] body { font-family: var(--font-ar), var(--font-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--font-ar); font-weight: 700; }
[dir="rtl"] .bismillah { text-align: right; }
[dir="rtl"] .eyebrow, [dir="rtl"] .kicker { letter-spacing: 0; }
[dir="rtl"] .hero-figure::after { inset: -14px auto auto -14px; border-right: 0; border-left: 3px solid var(--gold-500); border-top-right-radius: 0; border-top-left-radius: 28px; }
[dir="rtl"] [lang="en"] { font-family: var(--font-body); }
.invite-when .line, .callout .line { display: block; }

/* ---------- Jumu'ah and khutbah recordings ---------- */
.khutbah-home-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.khutbah-home-grid.single { grid-template-columns: 1fr; max-width: 820px; }
.jumuah-card {
  display: grid; grid-template-columns: 190px 1fr; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.jm-photo { background: var(--green-100); min-height: 100%; }
.jm-photo picture, .jm-photo img { display: block; width: 100%; height: 100%; }
.jm-photo img { object-fit: cover; object-position: center top; min-height: 240px; }
.jm-initial { display: grid; place-items: center; height: 100%; min-height: 240px; font-family: var(--font-head); font-size: 4.5rem; color: var(--green-700); }
.jm-initial svg { width: 64px; height: 64px; }
.jm-body { padding: 26px 28px 28px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.jm-when { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; color: var(--body); }
.jm-when svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--gold-600); }
.jm-when strong { color: var(--ink); }
.jm-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.jm-khateeb { margin-top: 18px; }
.jm-khateeb h3 { font-size: 1.7rem; margin-top: 2px; }
.jm-name2 { color: var(--green-700); font-weight: 700; margin-top: 2px; }
.jm-role { color: var(--muted); margin-top: 2px; }
.jm-topic { margin-top: 16px; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.jm-topic .jm-label { margin-bottom: 2px; }
.jm-summary { margin-top: 10px; font-size: 1rem; }
.jm-bio { margin-top: 10px; color: var(--body); }
.jm-body .player { margin-top: 18px; width: 100%; }
.jm-body .text-link { margin-top: 16px; }
.khutbah-last { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 22px 24px; }
.kl-title { font-size: 1.35rem; margin-bottom: 12px; }
.khutbah-last .khutbah-item { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 14px; padding: 0; border: 0; box-shadow: none; background: none; }
.khutbah-last .text-link { margin-top: 14px; }
.khutbah-week { margin-bottom: 40px; }
.khutbah-one .player { margin-bottom: 24px; }
.khutbah-one .text-link { margin-top: 28px; }
.khutbah-list { display: grid; gap: 16px; }
.khutbah-item {
  display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: 22px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.ki-text { min-width: 0; }
.ki-text time { font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-600); }
.ki-text h3 { font-size: 1.35rem; margin-top: 4px; line-height: 1.3; }
.ki-text h3 a { color: var(--ink); text-decoration: none; }
.ki-text h3 a:hover { color: var(--green-800); text-decoration: underline; }
.ki-khateeb { color: var(--muted); margin-top: 4px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-weight: 600; }
.pager a:only-child:last-child { margin-inline-start: auto; }

/* A recording from YouTube, Google Drive and the like. Nothing loads from them until play is pressed. */
.player { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.player-start, .player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.player-audio .player-start, .player-audio iframe { aspect-ratio: auto; height: 166px; }
.player-start {
  position: relative; overflow: hidden; cursor: pointer; padding: 0; font: inherit; color: #fff;
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  display: grid; place-items: center;
}
.player-start::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .12; }
.player-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-play {
  position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-500); color: var(--green-950); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .15s ease;
}
.player-play svg { width: 30px; height: 30px; margin-inline-start: 4px; }
[dir="rtl"] .player-play svg { margin-inline-start: 0; margin-inline-end: 4px; transform: scaleX(-1); }
.player-audio .player-play { width: 56px; height: 56px; }
.player-start:hover .player-play { transform: scale(1.07); }
.player-start:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.player-label {
  position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .62); font-size: .88rem; font-weight: 600;
}
.player-out { font-size: .9rem; font-weight: 600; }
.pd-row dd.pd-text { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
@media (max-width: 1000px) { .khutbah-home-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .jumuah-card { grid-template-columns: 1fr; }
  .jm-photo { width: 120px; height: 120px; min-height: 0; margin: 22px 22px 0; border-radius: 50%; overflow: hidden; }
  .jm-photo img, .jm-initial { min-height: 0; }
  .jm-initial { font-size: 3rem; }
  .jm-initial svg { width: 44px; height: 44px; }
  .jm-body { padding: 16px 22px 24px; }
  .khutbah-item { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
}

/* Prayer times: tomorrow's time once a prayer is over, the next prayer, the countdown and three days */
.prayer [hidden] { display: none !important; }
.p-set { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.p-tag { order: -1; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-bottom: 2px; }
.prayer-grid .is-next .p-box { border-color: var(--green-800); box-shadow: 0 0 0 2px var(--green-800) inset; background: var(--green-100); }
.pd-next { margin: 16px 20px 0; padding: 10px 14px; border-radius: 999px; background: var(--green-800); color: #fff; font-weight: 700; text-align: center; }
.pd-days { width: calc(100% - 40px); margin: 14px 20px 4px; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.pd-days th, .pd-days td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pd-days thead th { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pd-days tbody th { text-align: start; font-weight: 700; color: var(--ink); }
.pd-days .pd-today { background: var(--gold-100); color: var(--green-800); font-weight: 700; }
.pd-days tr:last-child th, .pd-days tr:last-child td { border-bottom: 0; }
.prayer-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (max-width: 480px) { .pd-days { font-size: .84rem; } .pd-days th, .pd-days td { padding: 6px 3px; } }

/* Jumu'ah first in the row, a little larger than the daily prayers */
.prayer-in { grid-template-columns: minmax(190px, .6fr) 2.4fr; }
.prayer-grid { display: flex; }
.prayer-grid li { flex: 1 1 0; min-width: 0; }
.prayer-grid li.p-jumuah { flex-grow: 1.45; }
.prayer-grid .p-jumuah .p-box { justify-content: center; padding: 12px 10px; }
.prayer-grid .p-jumuah .p-name { font-size: .85rem; }
.prayer-grid .p-jumuah .p-time { font-size: 1.9rem; }
.prayer-grid .p-jumuah .p-begins { color: var(--body); font-weight: 600; }
.prayer-grid .p-who { max-width: 100%; margin-top: 2px; font-size: .8rem; font-weight: 700; color: var(--green-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .prayer-in { grid-template-columns: 1fr; }
  .prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
  .prayer-grid li { grid-column: span 2; }
  .prayer-grid li.p-jumuah { grid-column: 1 / -1; }
  .prayer-grid.daily-5 li:nth-last-child(-n + 2) { grid-column: span 3; }
  .prayer-grid .p-jumuah .p-time { font-size: 1.75rem; }
}
