/* Doon Muslim Community: shared stylesheet for doonmc.ca and masjid.doonmc.ca
   Palette is derived from the logo (forest green + burnished gold) on warm paper.
   All text pairs meet WCAG 2.1 AA (see README for ratios). */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-500-700-normal.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("../fonts/amiri-subset-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --forest: #123A26;   /* logo green, deepened */
  --pine: #1E5236;     /* buttons, links */
  --mint: #E6EFE8;     /* soft green tint */
  --gold: #C8963E;     /* logo gold: on forest or as a fill behind forest text */
  --gold-text: #7A5710;/* gold for text on light backgrounds */
  --honey: #F2E3C2;    /* light gold surface */
  --cream: #FBF7EF;    /* page */
  --sand: #F3EAD8;     /* alternate section */
  --white: #FFFFFF;
  --ink: #1D2620;      /* body text */
  --muted: #4D5A52;    /* secondary text */
  --clay: #A3472A;     /* "coming soon" and warm accents */
  --line: #DCCFB4;     /* hairlines (decorative only) */

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ar: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 0 rgba(18,58,38,.06), 0 10px 30px -18px rgba(18,58,38,.35);

  /* 8-point star lattice used as a quiet texture */
  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23C8963E' stroke-width='1' opacity='.35'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l11 11M56 0L45 11M0 56l11-11M56 56L45 45'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231E5236' stroke-width='1' opacity='.12'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l11 11M56 0L45 11M0 56l11-11M56 56L45 45'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.125rem/1.65 var(--font-body);
  font-feature-settings: "kern"; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .strip :focus-visible, .site-footer :focus-visible { outline-color: var(--honey); }
::selection { background: var(--honey); color: var(--forest); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--forest); line-height: 1.12; margin: 0 0 .5em; font-optical-sizing: auto; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 700; }
em.accent { font-style: italic; color: var(--gold-text); font-weight: 500; }
.on-dark em.accent { color: var(--gold); }
[lang="ar"] { font-family: var(--font-ar); font-weight: 400; letter-spacing: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--forest); color: var(--white); padding: .75rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; outline-color: var(--gold); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }

/* ---------- prayer strip (top of every main-site page) ---------- */
.strip { background: var(--forest); color: var(--honey); font-size: .9rem; }
.strip .wrap { display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; padding-block: .55rem; }
.strip-label { font-weight: 700; color: var(--white); white-space: nowrap; }
.strip-label span { font-weight: 400; color: var(--honey); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1rem; flex-wrap: wrap; }
.strip li { margin: 0; white-space: nowrap; }
.strip .pt-name { margin-right: .3em; }
.strip .pt-time { color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }
.strip li.is-next { color: var(--gold); }
.strip li.is-next .pt-time { color: var(--gold); }
.strip-jumuah { white-space: nowrap; }
.strip-jumuah b { color: var(--white); }
.strip a { color: var(--white); font-weight: 700; margin-left: auto; white-space: nowrap; }
.strip a:hover { color: var(--honey); }
@media (max-width: 47.99rem) {
  .strip .wrap { gap: .3rem 1rem; }
  .strip ul { width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 1rem; scrollbar-width: none; }
  .strip ul::-webkit-scrollbar { display: none; }
  .strip a { margin-left: 0; }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,247,239,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(251,247,239,.86); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--forest); margin-right: auto; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.005em; }
.brand-sub { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.brand:hover { color: var(--forest); }

.nav-toggle { display: inline-flex; align-items: center; gap: .45rem; background: transparent; border: 1.5px solid var(--forest); color: var(--forest); border-radius: 999px; padding: .55rem .9rem; font: 700 .9rem var(--font-body); cursor: pointer; min-height: 44px; }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle[aria-expanded="true"] .i-open, .nav-toggle[aria-expanded="false"] .i-close { display: none; }

.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(18,58,38,.35); padding: .5rem var(--gutter) 1.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a { display: block; padding: .8rem .25rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav ul a[aria-current="page"] { color: var(--pine); box-shadow: inset 4px 0 0 var(--gold); padding-left: .9rem; }
.site-nav .nav-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.site-header .header-quick { display: inline-flex; }
@media (max-width: 26rem) { .site-header .header-quick { display: none; } }

.site-nav .nav-actions a.btn { border-bottom: 0; padding: .75rem 1.2rem; display: flex; white-space: nowrap; }
.site-nav .nav-actions a.btn-masjid, .site-nav .nav-actions a.btn-masjid:hover { color: var(--white); }
.site-nav .nav-actions a.btn-gold, .site-nav .nav-actions a.btn-gold:hover { color: var(--forest); }
.site-nav .nav-actions a.btn-outline { color: var(--pine); }
.site-nav .nav-actions a.btn-outline:hover { color: var(--white); }
@media (min-width: 72rem) {
  .nav-toggle { display: none; }
  .site-header .header-quick { display: none; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: 1rem; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: .15rem; }
  .site-nav ul a { border: 0; padding: .5rem .6rem; font-size: 1rem; border-radius: 8px; }
  .site-nav ul a:hover { background: var(--sand); color: var(--forest); }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); padding-left: .6rem; border-radius: 8px 8px 0 0; }
  .site-nav .nav-actions { flex-direction: row; margin: 0; gap: .5rem; }
  .site-nav .nav-actions a.btn { padding: .55rem 1rem; font-size: .95rem; min-height: 44px; }
  .site-nav a[aria-current="page"].btn { box-shadow: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; font: 700 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, transform .15s; text-align: center; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--forest); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: #B88733; color: var(--forest); }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine); color: var(--white); }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: var(--white); color: var(--forest); }
.btn-outline-light { border-color: var(--honey); color: var(--white); }
.btn-outline-light:hover { background: var(--honey); color: var(--forest); }
.btn-masjid { background: var(--forest); color: var(--white); }
.btn-masjid:hover { background: var(--pine); color: var(--white); }
.btn-sm { min-height: 40px; padding: .45rem .9rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 700 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold); }
.lede { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.on-dark .lede { color: var(--honey); }
.small { font-size: .9rem; color: var(--muted); }
.on-dark .small { color: var(--honey); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.section-sand { background: var(--sand); }
.section-forest { background: var(--forest) var(--pattern-gold); color: var(--cream); }
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest a:not(.btn) { color: var(--honey); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.on-dark .section-head p { color: var(--honey); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); background: var(--cream) var(--pattern-green); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.75rem); max-width: 18ch; }
.page-hero .lede { max-width: 52ch; }
.crumbs { font-size: .9rem; margin-bottom: 1.25rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- home hero (main) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 6vw, 6.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.hero h1 .accent-word { font-style: italic; font-weight: 500; color: var(--gold-text); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.hero-tags li { margin: 0; font-size: .85rem; font-weight: 700; color: var(--pine); background: var(--mint); padding: .35rem .8rem; border-radius: 999px; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); background: var(--honey) var(--pattern-gold); display: grid; place-items: center; padding: 12% 10% 10%; isolation: isolate; box-shadow: inset 0 0 0 10px var(--cream), inset 0 0 0 11px var(--gold); max-width: 26rem; margin-inline: auto; width: 100%; }
.arch img { width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(18,58,38,.12)); }
.arch-caption { position: absolute; left: 50%; bottom: -1.1rem; transform: translateX(-50%); background: var(--forest); color: var(--honey); font-size: .85rem; font-weight: 700; padding: .5rem 1rem; border-radius: 999px; white-space: nowrap; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow); position: relative; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; height: 100%; }
.card-link:hover { color: inherit; box-shadow: 0 1px 0 rgba(18,58,38,.06), 0 18px 34px -18px rgba(18,58,38,.45); }
@media (prefers-reduced-motion: no-preference) { .card-link:hover { transform: translateY(-2px); } }
.card-link .more { display: inline-flex; gap: .35rem; align-items: center; margin-top: .9rem; font-weight: 700; color: var(--pine); }
.icon-badge { width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--pine); margin-bottom: 1rem; }
.icon-badge svg { width: 1.5rem; height: 1.5rem; }
.icon-badge.gold { background: var(--honey); color: var(--gold-text); }
.num { font-family: var(--font-display); font-size: .95rem; color: var(--gold-text); font-weight: 600; position: absolute; top: 1.25rem; right: 1.4rem; }

.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; }
.badge-soon { color: var(--clay); background: #F8E9E2; }
.badge-live { color: var(--pine); background: var(--mint); }
.badge-tbc { color: var(--gold-text); background: var(--honey); }
.on-dark .badge-tbc { color: var(--forest); background: var(--honey); }

/* placeholder content that needs the Board */
.tbd { display: inline-block; border: 1.5px dashed var(--clay); color: var(--clay); background: #FDF4EF; border-radius: 8px; padding: .1rem .5rem; font-weight: 700; font-size: .95em; }
.on-dark .tbd { border-color: var(--honey); color: var(--honey); background: transparent; }

/* ---------- masjid feature card (main home) ---------- */
.feature { background: var(--forest) var(--pattern-gold); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3rem); display: grid; gap: 2rem; position: relative; overflow: hidden; }
.feature h2 { color: var(--white); }
.feature p { color: var(--honey); }
.feature-times { background: rgba(251,247,239,.07); border: 1px solid rgba(242,227,194,.28); border-radius: var(--radius); padding: 1.25rem; }
.feature-times h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.feature-times h3 span { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--honey); }
.feature-times ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: .5rem; }
.feature-times li { margin: 0; padding: .6rem .75rem; border-radius: 10px; background: rgba(18,58,38,.6); display: flex; flex-direction: column; }
.feature-times .pt-name { font-size: .85rem; color: var(--honey); }
.feature-times .pt-time { font-weight: 700; color: var(--white); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.feature-times li.is-next { background: var(--gold); }
.feature-times li.is-next .pt-name, .feature-times li.is-next .pt-time { color: var(--forest); }
@media (min-width: 56rem) { .feature { grid-template-columns: 1fr 1.05fr; align-items: center; } }

/* ---------- notice ---------- */
.notice { display: flex; gap: .9rem; align-items: flex-start; background: var(--honey); border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.25rem; color: var(--ink); }
.notice svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--gold-text); margin-top: .15rem; }
.notice p { margin: 0; max-width: none; }
.notice strong { color: var(--forest); }

/* ---------- lists / programs ---------- */
.focus-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.focus-list li { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); color: var(--forest); padding: .4rem 1.1rem; border: 1.5px solid var(--gold); border-radius: 999px; background: var(--white); }
.program { display: grid; gap: 1rem 2.5rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.program:last-child { border-bottom: 1px solid var(--line); }
.program-head { display: flex; gap: 1rem; align-items: flex-start; }
.program-head .icon-badge { margin: 0; flex: none; }
.program h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .35rem; }
.program dl { margin: 0; display: grid; gap: .9rem; }
.program dt { font-weight: 700; color: var(--forest); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.program dd { margin: .15rem 0 0; }
@media (min-width: 52rem) { .program { grid-template-columns: 22rem 1fr; } }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .9rem; background: var(--gold); transform: rotate(45deg) scale(.75); border-radius: 2px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.1rem 1.25rem 1.1rem 4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--forest); color: var(--honey); font: 600 1.05rem/2.1rem var(--font-display); text-align: center; }

/* ---------- split / quote ---------- */
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split-wide { grid-template-columns: 1.3fr 1fr; } }
.mission-quote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); line-height: 1.35; color: var(--forest); position: relative; padding-left: 1.5rem; border-left: 4px solid var(--gold); }
.mission-quote footer { font: 400 .95rem var(--font-body); color: var(--muted); margin-top: 1rem; }
.on-dark .mission-quote { color: var(--white); }

/* ---------- events ---------- */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0; box-shadow: var(--shadow); }
.event-date { width: 4.75rem; text-align: center; border-radius: 12px; background: var(--forest); color: var(--honey); padding: .6rem .25rem; line-height: 1.1; }
.event-date b { display: block; font: 600 1.5rem/1.1 var(--font-display); color: var(--white); }
.event-date span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.event-date.is-tbd { background: var(--sand); color: var(--muted); border: 1.5px dashed var(--line); }
.event-date.is-tbd b { color: var(--muted); }
.event h3 { margin-bottom: .25rem; font-size: 1.25rem; }
.event p { margin: .25rem 0 0; }
.event .meta { color: var(--muted); font-size: .95rem; }
.event .tags { display: flex; gap: .4rem; margin-bottom: .5rem; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.15rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow); }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 700; color: var(--forest); }
.field .hint { font-size: .9rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid #8A9389; border-radius: 10px; padding: .75rem .9rem; min-height: 48px; }
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 1px; border-color: var(--forest); background: var(--white); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: .5rem; }
.choice { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); cursor: pointer; font-weight: 400; color: var(--ink); }
.choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--pine); flex: none; }
.choice:has(input:checked) { border-color: var(--pine); background: var(--mint); }
.form-row { display: grid; gap: 1.15rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- donate ---------- */
.give-box { background: var(--white); border: 2px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: .75rem 0 1rem; }
.copy-row code { font: 700 clamp(1rem, .9rem + .6vw, 1.3rem)/1.3 var(--font-body); color: var(--forest); background: var(--mint); padding: .6rem .9rem; border-radius: 10px; word-break: break-all; }
.copy-status { font-size: .9rem; color: var(--pine); font-weight: 700; min-height: 1.4em; }
.receipt-note { background: var(--sand); border-radius: var(--radius); padding: 1.1rem 1.25rem; border: 1px solid var(--line); }
.receipt-note p { margin: 0; }

/* ---------- info list ---------- */
.info { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; align-items: start; margin: 0; }
.info .icon-badge { width: 2.5rem; height: 2.5rem; margin: 0; border-radius: 10px; }
.info .icon-badge svg { width: 1.2rem; height: 1.2rem; }
.info .label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.on-dark .info .label { color: var(--honey); }
.on-dark .info .icon-badge { background: rgba(242,227,194,.14); color: var(--gold); }

/* ---------- prayer table (masjid) ---------- */
.times-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.times-card-head { display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; background: var(--sand); border-bottom: 1px solid var(--line); }
.times-card-head h2, .times-card-head h3 { margin: 0; font-size: 1.35rem; }
.times-card-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.times { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.times caption { text-align: left; }
.times th, .times td { padding: .9rem 1.5rem; text-align: left; border-bottom: 1px solid #EEE6D3; }
.times thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-block: .7rem; background: var(--cream); }
.times tbody tr:last-child th, .times tbody tr:last-child td { border-bottom: 0; }
.times .pname { font-weight: 700; color: var(--forest); font-size: 1.08rem; }
.times .pname-ar { display: block; font-size: 1.05rem; color: var(--muted); line-height: 1.2; text-align: left; }
.times .ptime { font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.times .piqama { color: var(--ink); }
.times .piqama.is-tba { color: var(--muted); font-style: italic; }
.times tr.is-sunrise th, .times tr.is-sunrise td { background: #FBF8F1; }
.times tr.is-sunrise .pname, .times tr.is-sunrise .ptime { color: var(--muted); font-weight: 400; }
.times tr.is-next th, .times tr.is-next td { background: var(--mint); }
.times tr.is-next th { box-shadow: inset 5px 0 0 var(--gold); }
.next-tag { display: inline-block; margin-top: .25rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--pine); padding: .1rem .5rem; border-radius: 999px; }
.times-foot { padding: 1rem 1.5rem; font-size: .9rem; color: var(--muted); background: var(--cream); border-top: 1px solid var(--line); }
.times-foot p { margin: 0 0 .35rem; max-width: none; }
.times-foot p:last-child { margin: 0; }
@media (max-width: 30rem) { .times th, .times td { padding: .8rem .9rem; } .times .ptime { font-size: 1.08rem; } .times-card-head { padding: 1rem; } }

.month-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.month { min-width: 34rem; }
.month th, .month td { padding: .45rem .7rem; font-size: .95rem; text-align: right; }
.month thead th { text-align: right; position: sticky; top: 0; }
.month thead th:first-child, .month tbody th { text-align: left; }
.month tbody th { white-space: nowrap; font-weight: 700; color: var(--forest); }
.month .mday { display: inline-block; min-width: 1.6rem; }
.month .mwd { color: var(--muted); font-weight: 400; font-size: .85rem; }
.month td.is-sunrise { color: var(--muted); }
.month tr.is-friday th, .month tr.is-friday td { background: #FBF8F1; }
.month tr.is-today th, .month tr.is-today td { background: var(--mint); font-weight: 700; }
.month tr.is-today th { box-shadow: inset 4px 0 0 var(--gold); }
.month-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.month-tools label { font-weight: 700; color: var(--forest); }
.month-tools select { width: auto; min-width: 12rem; }

/* ---------- masjid hero ---------- */
.m-hero { background: var(--forest) var(--pattern-gold); color: var(--cream); padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5rem); position: relative; overflow: hidden; }
.m-hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); max-width: 16ch; }
.m-hero .bismillah { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); color: var(--gold); margin: 0 0 1rem; line-height: 1.6; }
.m-hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .m-hero-grid { grid-template-columns: 1fr 1fr; } }
.next-card { background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 30px 50px -30px rgba(0,0,0,.55); }
.next-card .label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.next-card .next-name { font: 600 clamp(2rem, 1.6rem + 2vw, 2.9rem)/1.1 var(--font-display); color: var(--forest); margin: .35rem 0 .15rem; }
.next-card .next-time { font-size: 1.35rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.next-card .next-in { color: var(--muted); }
.next-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }
.next-card .dates { display: grid; gap: .15rem; font-size: .95rem; color: var(--muted); }
.next-card .dates b { color: var(--ink); }
.hero-dates { color: var(--honey); display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: 1rem; }
.hero-dates span + span::before { content: "\25C6"; color: var(--gold); margin-right: 1rem; font-size: .7em; vertical-align: .15em; }

.jumuah-card { background: var(--honey) var(--pattern-gold); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: center; border: 1px solid #E5CF9F; }
.jumuah-card .ar { font-size: 1.8rem; color: var(--gold-text); margin: 0; line-height: 1.5; }
.jumuah-card .big { font: 600 clamp(2.5rem, 2rem + 2.5vw, 3.6rem)/1 var(--font-display); color: var(--forest); margin: .5rem 0; }
.jumuah-card p { margin-inline: auto; }

/* ---------- map placeholder ---------- */
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--mint) var(--pattern-green); padding: 1.5rem; display: grid; gap: .75rem; align-content: end; min-height: 14rem; }
.map-card .pin { width: 3rem; height: 3rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--forest); display: grid; place-items: center; }
.map-card .pin::after { content: ""; width: 1rem; height: 1rem; background: var(--gold); border-radius: 50%; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--forest) var(--pattern-gold); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .35rem; }
.cta-band p { color: var(--honey); margin: 0; }
.cta-band .btn-row { margin-top: 0; }
@media (min-width: 56rem) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ---------- footer ---------- */
.site-footer { background: #0D2B1C; color: var(--honey); padding-block: 3.5rem 1.5rem; margin-top: 0; font-size: .97rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.footer-brand .seal { width: 64px; height: 64px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; padding: 7px; flex: none; }
.footer-brand .seal img { width: 100%; }
.footer-brand b { font: 600 1.2rem/1.2 var(--font-display); color: var(--white); display: block; }
.site-footer h2 { font: 700 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; border-top: 1px solid rgba(242,227,194,.22); margin-top: 2.75rem; padding-top: 1.25rem; font-size: .88rem; }
.footer-bottom p { margin: 0; max-width: none; }
.tagline-ar { font-family: var(--font-ar); }

/* ---------- misc ---------- */
.divider-star { display: flex; align-items: center; gap: 1rem; color: var(--gold); margin: 0 auto; max-width: 14rem; }
.divider-star::before, .divider-star::after { content: ""; height: 1px; background: currentColor; flex: 1; opacity: .6; }
.divider-star svg { width: 18px; height: 18px; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
noscript p { background: var(--honey); padding: .75rem 1rem; border-radius: 10px; }
.js-only { display: none; }
.pt-ready .js-only { display: revert; }
.pt-ready .no-js-msg { display: none; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.lost .code { font: 600 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--font-display); color: var(--gold-text); margin: 0; }

/* ---------- print (monthly timetable on one page) ---------- */
@media print {
  .strip, .site-header, .site-footer, .no-print, .skip-link, .btn, .month-tools select { display: none !important; }
  body { background: #fff; font-size: 10pt; }
  .page-hero { padding: 0 0 8pt; border: 0; background: none; }
  .page-hero h1 { font-size: 18pt; }
  .section, .section-tight { padding: 0; }
  .times-card { box-shadow: none; border: 1px solid #999; }
  .month th, .month td { padding: 1.5pt 5pt; font-size: 8.5pt; }
  .month-wrap { overflow: visible; }
  a { color: #000; text-decoration: none; }
}

/* ---------- WhatsApp announcements ---------- */
.wa { display: grid; gap: 2rem; align-items: center; background: var(--mint) var(--pattern-green); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 3vw, 3rem); }
.wa .lede { max-width: 46ch; }
.wa-qr { margin: 0 auto; width: min(100%, 300px); }
.wa-qr img { width: 100%; filter: drop-shadow(0 14px 24px rgba(18,58,38,.18)); }
@media (min-width: 48rem) { .wa { grid-template-columns: 1fr auto; } }

/* time numerals: Fraunces lining tabular figures read calmly */
.pt-time, .times .ptime, .month td, .next-card .next-time, .jumuah-card .big { font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.month td { font-weight: 500; }

/* ---------- Jumu'ah times ---------- */
.jtimes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1.25rem 0; }
.jtimes div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; text-align: center; }
.jtimes dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jtimes dd { margin: .2rem 0 0; font: 600 clamp(1.15rem, 1rem + .8vw, 1.5rem)/1.1 var(--font-display); color: var(--forest); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.jtimes div:last-child { background: var(--forest); border-color: var(--forest); }
.jtimes div:last-child dt { color: var(--honey); }
.jtimes div:last-child dd { color: var(--white); }
.jtimes-card { max-width: 26rem; margin-inline: auto; }
.jsum { display: grid; gap: 2rem; align-items: center; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 3vw, 3rem); }
.jsum .jtimes { max-width: 30rem; }
.jsum-banner { display: block; max-width: 18rem; margin-inline: auto; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(18,58,38,.6); }
.jsum-banner img, .poster img { width: 100%; height: auto; }
.poster { margin: 0 auto; max-width: 26rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -28px rgba(18,58,38,.6); }
@media (min-width: 56rem) { .jsum { grid-template-columns: 1fr auto; } .jsum-banner { width: 18rem; } }

/* ---------- refinements after visual review ---------- */
.card-link .more svg { width: 1.1em; height: 1.1em; flex: none; }
.section-tight + .section-tight { padding-top: 0; }
.mission-quote { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); }
.feature-times ul { grid-template-columns: 1fr; gap: 0; }
.feature-times li { flex-direction: row; justify-content: space-between; align-items: baseline; background: none; border-radius: 8px; padding: .55rem .75rem; border-bottom: 1px solid rgba(242,227,194,.18); }
.feature-times li:last-child { border-bottom: 0; }
.feature-times .pt-name { font-size: 1rem; }
.jsum .btn-row + .small { margin-top: 1rem; }
.strip { font-size: .875rem; }
.strip .wrap { gap: .4rem 1rem; }
.strip ul { gap: .25rem .85rem; }
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section-head .eyebrow { font-size: .8rem; color: var(--gold-text); }
.on-dark .section-head .eyebrow { color: var(--gold); }
.next-card .small { color: var(--muted); }
.jtimes div { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 26rem) {
  .site-header .header-quick { display: inline-flex; padding: .4rem .75rem; font-size: .85rem; gap: .35rem; }
  .nav-toggle { padding: .55rem; width: 44px; justify-content: center; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand { gap: .5rem; }
  .brand img { width: 40px; }
  .brand-name { font-size: 1rem; }
  .header-inner { gap: .5rem; }
}
@media (max-width: 55.99rem) { .arch { max-width: 17rem; } }
.site-header .header-quick { white-space: nowrap; }
@media (max-width: 47.99rem) { .strip ul { overflow: visible; flex-wrap: wrap; gap: .15rem .85rem; } }
