/* CSMJC public website. Loaded after site.css on public pages only (body.w).
   Typefaces are self-hosted (SIL Open Font Licence): Cormorant Garamond for
   headings, Inter for text, Amiri for Arabic. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.efeea72c7a42.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.bf1e09fb81d7.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.aa6bdaf51a40.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.9b8a16c9964e.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.da03732a27e1.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.51205681a1ba.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.2ede57db1a3a.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url("../fonts/amiri-arabic-400-normal.b640f7cc5918.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url("../fonts/amiri-arabic-700-normal.bb99562a6788.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

body.w {
  --g: #0d3b2e;          /* deep green */
  --g2: #154b3b;
  --g-ink: #e9e4d6;
  --gold: #b48a3c;
  --gold-2: #8c6a2b;
  --gold-soft: #e8dcbc;
  --paper: #f6f1e6;
  --ivory: #fcfaf5;
  --ink: #1e2622;
  --text: #39433e;
  --quiet: #6d7570;
  --rule: #e2d9c5;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri", "Traditional Arabic", "Scheherazade New", serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23b48a3c' stroke-width='1'%3E%3Cpath d='M48 14l9.9 24.1L82 48l-24.1 9.9L48 82l-9.9-24.1L14 48l24.1-9.9z'/%3E%3Cpath d='M24 24h48v48H24z' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 0l14 14M96 0L82 14M0 96l14-14M96 96L82 82'/%3E%3C/g%3E%3C/svg%3E");
  background: var(--ivory); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.w h1, body.w h2, body.w h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -.005em; line-height: 1.12; }
body.w h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 .35em; }
body.w h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 0 0 .4em; }
body.w h3 { font-size: 1.45rem; margin: 0 0 .35em; }
body.w a { color: var(--g); text-decoration-color: rgba(13,59,46,.35); text-underline-offset: 3px; }
body.w a:hover { text-decoration-color: currentColor; }
body.w .wrap { max-width: 1180px; padding-left: 24px; padding-right: 24px; }
body.w .narrow { max-width: 760px; }
body.w .narrow-wide { max-width: 900px; }
body.w .center { text-align: center; }
body.w :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--g); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.w-header { background: var(--ivory); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.w-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--g) 0 70%, var(--gold) 70% 100%); }
.w-bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.w-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--g); }
.w-brand img { width: 68px; height: 68px; object-fit: contain; flex: none; }
.w-wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; max-width: 250px; }
.w-wordmark small { display: block; font-size: .62em; letter-spacing: .32em; color: var(--gold-2); }
.w-wordmark small:last-child { margin-top: 2px; }
.w-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
body.w .w-nav a { font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 10px 12px; border-bottom: 1px solid transparent; }
body.w .w-nav a:hover { color: var(--g); border-bottom-color: var(--gold); }
body.w .w-nav a.w-give { margin-left: 10px; border: 1px solid var(--g); padding: 9px 20px; color: var(--g); }
body.w .w-nav a.w-give:hover { background: var(--g); color: var(--ivory); }
.w-menu { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.w-menu span:first-child, .w-menu span:first-child::before, .w-menu span:first-child::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ""; }
.w-menu span:first-child { top: 21px; }
.w-menu span:first-child::before { left: 0; top: -7px; }
.w-menu span:first-child::after { left: 0; top: 7px; }

/* Buttons and links */
.w-btn { display: inline-block; font: 500 .85rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 16px 26px; text-decoration: none; border: 1px solid var(--g); background: var(--g); color: var(--ivory) !important; transition: background .2s, border-color .2s; }
.w-btn:hover { background: var(--g2); }
.w-btn.gold { background: var(--gold); border-color: var(--gold); color: #fff !important; }
.w-btn.gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.w-link { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; color: var(--g); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.w-link:hover { color: var(--gold-2); }
.w-link.light { color: var(--g-ink) !important; border-bottom-color: rgba(233,228,214,.5); }
.w-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 28px; }
.w-kicker { font: 500 .78rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.w-kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.w-kicker.dark { color: var(--gold-2); }
body.w .w-kicker a { color: inherit; text-decoration: none; }
.w-quiet { color: var(--quiet); }
.w-fine { font-size: .9rem; color: var(--quiet); margin-top: 18px; }

/* Hero */
.w-hero { background-color: var(--g); background-image: linear-gradient(90deg, var(--g) 35%, rgba(13,59,46,.82)), var(--pattern); background-size: auto, 96px 96px;
  color: var(--g-ink); padding: 84px 0 96px; position: relative; overflow: hidden; }
body.w .w-hero h1 { color: #fbf7ec; font-size: clamp(3.4rem, 8vw, 6rem); font-weight: 500; letter-spacing: -.01em; margin-bottom: .15em; }
.w-hero p { color: var(--g-ink); max-width: 540px; }
.w-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.w-hero-grid.compact { gap: 48px; }
.w-hero-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.35; color: #f3eedf !important; margin: 0 0 18px; }
.w-hero-lead.dark { color: var(--text) !important; }
.w-hero .w-progress p { color: var(--g-ink); }
.w-arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; border: 1px solid rgba(180,138,60,.7);
  outline: 1px solid rgba(180,138,60,.35); outline-offset: 10px; max-width: 420px; justify-self: end; width: 100%; }
.w-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-arch.small { max-width: 340px; }
.w-arch-fill { position: absolute; inset: 0; background-color: var(--g2); background-image: var(--pattern); background-size: 64px 64px;
  display: flex; align-items: center; justify-content: center; }
.w-arch-fill span { font-family: var(--arabic); font-size: clamp(4rem, 9vw, 6.5rem); color: var(--gold-soft); line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.15);
  background: var(--g2); padding: 18px 26px; border-radius: 8px; }

/* Page heads */
.w-page-head { background-color: var(--g); background-image: linear-gradient(90deg, var(--g) 45%, rgba(13,59,46,.86)), var(--pattern); background-size: auto, 96px 96px; color: var(--g-ink); padding: 64px 0 56px; }
body.w .w-page-head h1 { color: #fbf7ec; font-weight: 500; }
.w-page-head p { max-width: 640px; color: var(--g-ink); margin: 0; }
.w-page-head .w-hero-lead { margin-bottom: 14px; }

/* Sections */
.w-section { padding: 88px 0; }
.w-section-tight { padding: 48px 0 8px; }
.w-paper { background: var(--paper); }
.w-head { max-width: 680px; margin-bottom: 44px; }
.w-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.w-head p { color: var(--quiet); margin: 0; font-size: 1.02rem; }
.w-head-row { max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.w-small-h { font-size: 1.2rem; margin-top: 30px; }

/* Ornament and verse */
.w-ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); margin: 0 auto 26px; }
.w-ornament::before, .w-ornament::after { content: ""; width: 90px; height: 1px; background: currentColor; opacity: .6; }
.w-ornament svg { width: 18px; height: 18px; fill: currentColor; }
.w-verse { margin: 0 auto; text-align: center; max-width: 820px; }
.w-arabic { font-family: var(--arabic); font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 2; color: var(--g); margin: 0 0 18px; }
.w-verse blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.45; color: var(--ink); margin: 0 auto 16px; max-width: 700px; }
.w-verse figcaption { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }

/* Giving */
.w-give-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); background: #fff; max-width: 980px; margin: 0 auto 28px; }
.w-give-panel > div { padding: 40px 44px; }
.w-give-panel > div + div { border-left: 1px solid var(--rule); }
body.w .w-give-panel h3 { font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 22px; }
.w-numbers { display: grid; gap: 22px; }
.w-numbers span { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.w-numbers strong { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; color: var(--g); letter-spacing: .03em; font-variant-numeric: lining-nums tabular-nums; }
.w-note { font-size: .88rem; color: var(--quiet); margin: 22px 0 0; }
.w-bank dl { margin: 0; }
.w-bank dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #efe8d8; }
.w-bank dl > div:last-child { border-bottom: 0; }
.w-bank dt { font-size: .82rem; color: var(--quiet); }
.w-bank dd { margin: 0; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.w-progress { margin: 18px 0 6px; max-width: 460px; }
.w-progress .progress { height: 3px; background: rgba(180,138,60,.22); border: 0; border-radius: 0; }
.w-progress .bar { background: var(--gold); border-radius: 0; }
.w-progress p { font-size: .92rem; margin: 10px 0 0; }

/* Our work */
.w-three { display: grid; grid-template-columns: repeat(3, 1fr); }
.w-three article { padding: 0 36px; border-left: 1px solid var(--rule); }
.w-three article:first-child { padding-left: 0; border-left: 0; }
.w-three p { color: var(--text); }

/* Kabrastan */
.w-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.w-search { border-top: 1px solid var(--ink); padding-top: 26px; max-width: 560px; }
.w-search h3 { font-size: 1.6rem; }
body.w .search-form label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); font-weight: 500; }
body.w .search-form input[type=search] { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 12px 2px; font-size: 1.15rem; font-family: var(--serif); }
body.w .search-form input[type=search]:focus { outline: none; border-bottom: 2px solid var(--gold); }
body.w .search-form details { margin-top: 12px; font-size: .92rem; }
body.w .search-form .btn { background: var(--g); border: 1px solid var(--g); border-radius: 0; font: 500 .85rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 16px 26px; }
.w-reminders { background: var(--paper); padding: 40px 40px 34px; border-top: 3px solid var(--gold); }
.w-reminders ol { counter-reset: r; list-style: none; padding: 0; margin: 0 0 24px; }
.w-reminders ol > li { counter-increment: r; position: relative; padding: 0 0 16px 44px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: .97rem; }
.w-reminders ol > li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.w-contacts { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.w-contacts li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; margin: 0; border-bottom: 1px dotted var(--rule); }
.w-contacts a { text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Support figures and chart */
.w-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.w-figures > div { padding: 26px 24px 24px 0; display: flex; gap: 14px; align-items: baseline; position: relative; }
.w-figures > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.w-figures strong { font-family: var(--serif); font-weight: 500; font-size: 3.4rem; line-height: 1; color: var(--g); font-variant-numeric: lining-nums; }
.w-figures span { font-size: .92rem; color: var(--ink); line-height: 1.35; }
.w-figures em { font-style: normal; color: var(--quiet); font-size: .82rem; }
.w-fig-swatch { position: absolute; top: -1px; left: 0; width: 40px; height: 3px; }
.w-figures > div + div .w-fig-swatch { left: 24px; }
[data-c="0"].w-fig-swatch { background: #1a7a55; } [data-c="1"].w-fig-swatch { background: #b8862b; }
[data-c="2"].w-fig-swatch { background: #3e6ea8; } [data-c="3"].w-fig-swatch { background: #a2506a; }
body.w .chart { background: transparent; border: 0; padding: 0; }
body.w .chart figcaption strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
body.w .chart .tick, body.w .chart .xlab { font-family: var(--sans); }
body.w .chart-tip { border-radius: 0; border-color: var(--rule); font-size: .85rem; }
body.w .chart-table summary { font-size: .85rem; color: var(--quiet); cursor: pointer; }

/* Funds */
.w-funds { border-top: 1px solid var(--ink); }
.w-fund { display: grid; grid-template-columns: 180px 1fr 230px; gap: 36px; padding: 34px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.w-fund:not(:has(.w-fund-img)) { grid-template-columns: 1fr 230px; }
.w-fund-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.w-fund h3 { font-size: 1.75rem; }
body.w .w-fund h3 a { color: var(--ink); text-decoration: none; }
body.w .w-fund h3 a:hover { color: var(--g); }
.w-fund-text p { margin: 0 0 6px; }
.w-fund-pay p { margin: 0 0 6px; font-family: var(--serif); font-size: 1.45rem; color: var(--g); font-variant-numeric: lining-nums; }
.w-fund-pay span { display: inline-block; min-width: 80px; font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.w-fund-pay .w-link { display: inline-block; margin-top: 12px; }

/* Stories */
.w-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.w-story-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-bottom: 18px; }
.w-story h3 { font-size: 1.55rem; }
body.w .w-story h3 a { color: var(--ink); text-decoration: none; }
body.w .w-story h3 a:hover { color: var(--g); }
.w-story p { margin: 0; }
.w-meta { font-size: .75rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 8px !important; }
.w-meta span { color: var(--rule); margin: 0 4px; }
body.w .w-meta a { color: inherit; text-decoration: none; }
.w-filter { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
body.w .w-filter a { padding: 0 0 12px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--quiet); border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.w .w-filter a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }

/* Article and prose */
.w-article { padding-top: 56px; max-width: 820px; }
.w-article-img { width: 100%; margin: 20px 0 30px; display: block; }
.w-prose { max-width: 700px; font-size: 1.06rem; }
.w-prose p { margin: 0 0 1.1em; }
.w-callout { border-left: 2px solid var(--gold); padding: 6px 0 6px 20px; margin: 30px 0; }
body.w .gallery { gap: 14px; }
body.w .gallery img { border-radius: 0; }
.w-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
.w-two article { border-top: 1px solid var(--ink); padding-top: 24px; }

/* Poster and rules pages */
.w-poster { text-align: center; }
.w-poster img { width: 100%; max-width: 360px; box-shadow: 0 18px 40px rgba(13,59,46,.16); display: block; margin: 0 auto 16px; }
.w-page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.w-rules { counter-reset: r; list-style: none; padding: 0; margin: 0 0 40px; }
.w-rules li { counter-increment: r; position: relative; padding: 14px 0 14px 56px; border-bottom: 1px solid var(--rule); }
.w-rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 8px; font-family: var(--serif); font-size: 1.7rem; color: var(--gold); }
.w-plain { list-style: none; padding: 0; }
.w-plain li { padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.rules h2 { margin-top: 1.2em; font-size: 1.8rem; }

/* Other public pages inherit calmer forms and cards */
body.w .card { border-radius: 0; border-color: var(--rule); box-shadow: none; }
body.w .btn { border-radius: 0; letter-spacing: .06em; }
body.w input[type=text], body.w input[type=search], body.w input[type=email], body.w select, body.w textarea { border-radius: 2px; }
body.w main > .wrap:first-child { padding-top: 40px; }
body.w .messages li { border-radius: 0; }

/* Footer */
.w-footer { background-color: #0a3227; background-image: linear-gradient(rgba(10,50,39,.94), rgba(10,50,39,.94)), var(--pattern); background-size: auto, 96px 96px;
  color: #cfd6cf; padding: 72px 0 0; margin-top: 0; font-size: .93rem; }
body.w .w-footer a { color: var(--gold-soft); }
.w-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 56px; padding-bottom: 48px; }
.w-foot-logo { background: var(--ivory); border-radius: 50%; padding: 8px; width: 80px; height: 80px; object-fit: contain; }
.w-foot-name { font-family: var(--serif); font-size: 1.4rem; color: #f3eedf; margin: 14px 0 6px; }
.w-foot-muted { color: #a9b5ad; max-width: 360px; }
body.w .w-foot-h { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.w-foot-list { list-style: none; padding: 0; margin: 0; }
.w-foot-list li { display: flex; flex-direction: column; padding: 0 0 12px; }
.w-foot-list span { color: #f3eedf; }
body.w .w-foot-list a { text-decoration: none; font-variant-numeric: tabular-nums; }
.w-foot-pay { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); padding: 8px 0; margin: 0; }
.w-foot-pay span { color: #a9b5ad; }
.w-foot-pay strong { font-family: var(--serif); font-size: 1.35rem; color: #f3eedf; font-weight: 500; }
.w-foot-links { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
body.w .w-foot-links a { color: #a9b5ad; text-decoration: none; }
body.w .w-foot-links a:hover { color: var(--gold-soft); }

@media (max-width: 980px) {
  .w-hero-grid, .w-split, .w-page-grid { grid-template-columns: 1fr; gap: 48px; }
  .w-arch { justify-self: center; max-width: 360px; }
  .w-three { grid-template-columns: 1fr; gap: 32px; }
  .w-three article { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .w-three article:first-child { border-top: 0; padding-top: 0; }
  .w-stories { grid-template-columns: 1fr 1fr; }
  .w-fund, .w-fund:not(:has(.w-fund-img)) { grid-template-columns: 1fr; gap: 16px; }
  .w-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .w-menu { display: block; }
  .w-nav { display: none; position: absolute; left: 0; right: 0; top: 79px; background: var(--ivory); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; border-bottom: 1px solid var(--rule); box-shadow: 0 16px 30px rgba(0,0,0,.08); }
  .w-nav.open { display: flex; }
  .w-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .w-nav a.w-give { margin: 14px 0 0; text-align: center; }
  .w-bar { position: relative; }
}
@media (max-width: 640px) {
  body.w { font-size: 16px; }
  body.w .wrap { padding-left: 18px; padding-right: 18px; }
  .w-wordmark { font-size: .98rem; max-width: 200px; }
  .w-brand img { width: 54px; height: 54px; }
  .w-hero { padding: 56px 0 64px; }
  .w-section { padding: 60px 0; }
  .w-give-panel { grid-template-columns: 1fr; }
  .w-give-panel > div { padding: 28px 22px; }
  .w-give-panel > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .w-bank dl > div { grid-template-columns: 1fr; gap: 0; }
  .w-stories, .w-two, .w-foot-grid { grid-template-columns: 1fr; }
  .w-figures > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .w-figures > div + div .w-fig-swatch { left: 0; }
  .w-reminders { padding: 28px 22px; }
  .w-ornament::before, .w-ornament::after { width: 50px; }
}

/* ---- Fundraising tracker (campaign page) -------------------------------- */
.w-campaign-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; padding-top: 56px; }
.w-campaign-body .w-prose { padding-top: 0; }
.w-tracker { position: sticky; top: 96px; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: 26px 26px 20px; box-shadow: 0 10px 30px rgba(13, 59, 46, .07); }
.w-tracker p { margin: 0; }
.t-raised { font-size: 1rem; color: var(--quiet); }
.t-raised strong { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1.05; font-variant-numeric: lining-nums; }
.t-of { color: var(--quiet); font-size: .95rem; margin-top: 4px !important; }
body.w .t-bar.progress { height: 10px; margin: 16px 0 18px; background: #efe8d6; border: 0; border-radius: 99px; }
body.w .t-bar.progress .bar { background: linear-gradient(90deg, #1a7a55, #2c9a6d); border-radius: 99px; }
.t-stats { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 18px; }
.t-stats div { display: grid; }
.t-stats b { white-space: nowrap; font-size: .98rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-stats span { font-size: .78rem; color: var(--quiet); line-height: 1.3; }
.t-btn { display: block; text-align: center; }
.t-updated { font-size: .82rem; color: var(--quiet); text-align: center; margin-top: 10px !important; }
.t-feed { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--rule); }
.t-feed li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.t-amt { font-weight: 600; color: var(--g); font-variant-numeric: tabular-nums; }
.t-note { grid-column: 1; color: var(--text); }
.t-date { grid-column: 2; grid-row: 1; color: var(--quiet); font-size: .82rem; }

/* ---- Building progress timeline ------------------------------------------ */
body.w #progress .w-kicker, body.w .w-mayat-band .w-kicker, body.w .w-head .w-kicker { color: var(--gold); }
.w-built { max-width: 520px; }
.w-built p { margin: 0; color: var(--quiet); }
.w-timeline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.w-timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 1px; background: var(--rule); }
.w-timeline > li { display: grid; grid-template-columns: 76px 1fr; gap: 34px; padding-bottom: 40px; position: relative; }
.w-timeline > li::before { content: ""; position: absolute; left: 88px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--ivory); }
.tl-date { text-align: right; display: grid; line-height: 1.2; padding-top: 2px; }
.tl-date span:first-child { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.tl-date span:last-child { font-size: .8rem; color: var(--quiet); letter-spacing: .08em; }
body.w .tl-body h3 { font-size: 1.5rem; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-latest { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--g); background: #e3efe7; padding: 5px 8px; }
.tl-body p { margin: 0 0 10px; max-width: 62ch; }
.tl-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.tl-photos figure { margin: 0; }
.tl-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tl-photos figcaption { font-size: .82rem; color: var(--quiet); margin-top: 4px; }

/* ---- Mayat announcements -------------------------------------------------- */
.w-mayat-band { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 30px 0 22px; }
.mb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; margin-bottom: 14px; }
.mb-head .w-kicker { margin: 0; }
.w-inna { font-family: var(--arabic); font-size: 1.5rem; color: var(--g); margin: 0; }
.w-page-head .w-inna { color: var(--gold-soft); font-size: 2rem; margin: 0 0 8px; }
.mb-more { margin: 12px 0 0; }
.w-mayat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; max-width: 1000px; }
.w-mayat-card { background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--g); padding: 18px 22px; }
.w-mayat-card p { margin: 0; }
.m-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.m-rel { color: var(--quiet); font-size: .92rem; margin-top: 2px !important; }
.m-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 0; }
.m-times div { border-top: 1px solid var(--rule); padding-top: 8px; }
.m-times dt { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.m-times dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.m-times dd span { display: block; font-size: .82rem; font-weight: 400; color: var(--quiet); }
.m-notes { margin-top: 12px !important; font-size: .92rem; }
.w-recent { list-style: none; padding: 0; margin: 0; max-width: 640px; }
.w-recent li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) {
  .w-campaign-body { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .w-tracker { position: static; }
  .w-timeline::before { left: 10px; }
  .w-timeline > li { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .w-timeline > li::before { left: 6px; }
  .tl-date { text-align: left; display: flex; gap: 6px; align-items: baseline; }
}
.w-page-head .w-inna, .mb-head .w-inna { text-align: left; }
.w-page-head + .wrap.w-section-tight { padding-top: 44px; padding-bottom: 56px; }
.m-title { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.m-comm { color: var(--g); font-size: .92rem; font-weight: 600; margin-top: 2px !important; }
.m-dua { margin-top: 12px !important; font-size: .85rem; font-style: italic; color: var(--quiet); }
.w-mayat-band.quiet { padding: 22px 0 18px; }
.mb-quiet { text-align: center; }
.mb-quiet .w-inna { text-align: center; font-size: 1.6rem; }
.mb-q-en { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin: 2px 0 4px; }
.mb-q-en span { font-family: var(--sans); font-size: .78rem; color: var(--quiet); margin-left: 6px; }
.mb-q-note { font-size: .88rem; color: var(--quiet); margin: 0; }

.w-mayat-grid.one { max-width: 560px; }

/* Link-styled buttons keep their own text colour (body.w a would otherwise win) */
body.w a.btn { color: var(--ivory); text-decoration: none; }
body.w a.btn.secondary { color: var(--green); }
body.w a.btn.brass, body.w a.btn.danger { color: #fff; }
body.w a.btn.ghost { color: var(--ivory); }

/* Phones: comfortable finger-sized links */
@media (max-width: 720px) {
  body.w .w-foot-links { gap: 0 18px; }
  body.w .w-foot-links a { display: inline-block; padding: 10px 0; }
  body.w .w-foot-list a, body.w .w-contacts a { display: inline-block; padding: 6px 0; }
  .w-link { display: inline-block; padding-top: 8px; }
  .w-wordmark small { font-size: .7em; }
}
@media (max-width: 720px) {
  .w-give-panel > div { padding: 26px 20px; min-width: 0; }
  .w-give-panel > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .w-numbers strong { font-size: clamp(1.7rem, 8.4vw, 2.6rem); overflow-wrap: anywhere; }
  .w-give-panel dd { overflow-wrap: anywhere; }
}
/* Gold small headings on the cream band: the darker gold reads clearly */
body.w .w-mayat-band .w-kicker { color: var(--gold-2); }

/* Appeal as a presentation: the building today, and the new building */
.w-present { padding: 56px 0 8px; border-top: 1px solid var(--rule); margin-top: 40px; }
.w-present-head { margin-bottom: 18px; }
.w-present-head h2 { margin: 4px 0 0; }
.w-present .w-prose { max-width: 760px; }
.w-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 22px 0 10px; }
.w-photo-grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.w-photo-grid figure, .w-plans figure, .w-feature { margin: 0; }
.w-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); background: #fff; }
.w-photo-grid.wide img { aspect-ratio: 16 / 9; }
.w-photo-grid figcaption, .w-plans figcaption, .w-feature figcaption { font-size: .86rem; color: var(--quiet); margin-top: 6px; line-height: 1.45; }
.w-feature img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.w-feature { margin-bottom: 26px; }
.w-plan-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.w-facts { margin: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.w-facts > div { background: #fff; padding: 14px 16px; }
.w-facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.w-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.25rem; color: var(--g); line-height: 1.3; }
.w-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 10px; }
.w-plans.one { grid-template-columns: 1fr; max-width: 760px; }
.w-plans img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--rule); }
@media (max-width: 820px) {
  .w-plan-intro, .w-plans { grid-template-columns: 1fr; gap: 22px; }
  .w-photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .w-photo-grid.wide { grid-template-columns: 1fr 1fr; }
  .w-present { padding-top: 40px; margin-top: 28px; }
}
@media (max-width: 380px) { .w-photo-grid { grid-template-columns: 1fr; } }
.w-present h3.w-small-h { margin-top: 34px; }

.m-times dd span.m-hijri { color: var(--ink); font-weight: 500; font-size: .9rem; }
