:root {
  --emerald: #023020;
  --ivory: #f6f2e9;
  --sandstone: #d5c3a5;
  --ink: #19352d;
  --line: #dce2d8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: var(--ivory); color: var(--ink); font: 16px/1.4 "Source Sans 3", Arial, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #e1b65e; outline-offset: 3px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; background: #fff; color: var(--emerald); padding: .5rem .8rem; }
.skip-link:focus { top: .5rem; }
.page-shell { height: 100svh; display: grid; grid-template-rows: clamp(58px, 8svh, 78px) minmax(0, 1fr) auto; }
.site-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem clamp(1.25rem, 4vw, 4rem); background: var(--emerald); color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); }
.identity { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.identity-mark { width: clamp(42px, 5vw, 57px); height: clamp(42px, 5vw, 57px); object-fit: contain; }
.identity-text { display: flex; flex-direction: column; line-height: 1.08; }
.identity-text strong { font: 700 .93rem/1.2 Montserrat, Arial, sans-serif; white-space: nowrap; }
.identity-text span { margin-top: .22rem; color: #d8e0d8; font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; }
.header-status { display: inline-flex; align-items: center; gap: .6rem; color: #e3e9de; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
main { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; }
.hero { position: relative; isolation: isolate; min-height: 0; display: flex; align-items: center; overflow: hidden; background: var(--emerald); color: #fff; padding: .8rem clamp(1.25rem, 4vw, 4rem); }
.hero-copy { position: relative; z-index: 2; max-width: min(55%, 680px); }
.eyebrow, .section-kicker { margin: 0; color: #d8bd81; font-size: .7rem; line-height: 1.2; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { margin-bottom: .9rem; }
.eyebrow span { margin: 0 .3rem; }
.hero h1 { margin: 0; font: 700 clamp(2.7rem, 5.3vw, 5.2rem)/1.03 Montserrat, Arial, sans-serif; letter-spacing: -.055em; }
.hero h1 em { font-style: normal; color: var(--sandstone); }
.hero-description { max-width: 35rem; margin: 1rem 0 0; color: #eff3ed; font-size: clamp(.96rem, 1.4vw, 1.13rem); line-height: 1.42; }
.hero-photo { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero-photo > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 54% 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,48,32,.98) 0%, rgba(2,48,32,.9) 25%, rgba(2,48,32,.55) 48%, rgba(2,48,32,.08) 80%), linear-gradient(0deg,rgba(2,48,32,.32),transparent 45%); }
.prayer-section { background: var(--ivory); padding: .8rem clamp(1.25rem, 4vw, 4rem) .48rem; }
.prayer-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.prayer-head .section-kicker { color: #64766b; margin-bottom: .16rem; font-size: .62rem; letter-spacing: .12em; }
.prayer-head h2 { margin: 0; font: 700 clamp(1.3rem, 2vw, 1.8rem)/1.1 Montserrat, Arial, sans-serif; letter-spacing: -.04em; }
.prayer-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .85rem; margin-top: .22rem; }
.prayer-date, .sunrise-note { margin: 0; color: #52685b; font-size: .74rem; }
.prayer-date { font-weight: 600; }
.sunrise-note { font-weight: 400; }
.time-zone-label { color: #687c6e; font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.prayer-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid #e0e5dd; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 26px rgba(9,45,30,.055); }
.prayer { position: relative; min-width: 0; padding: .62rem clamp(.5rem, 1.8vw, 1.15rem); }
.prayer + .prayer::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; border-left: 1px solid var(--line); }
.prayer-name { margin: 0 0 .25rem; color: #51665a; font: 700 .7rem/1.15 Montserrat, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.prayer-jamaat-label { display: block; color: #718075; font-size: .57rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.prayer-jamaat { margin: .12rem 0 0; color: var(--emerald); font: 700 clamp(1.35rem, 2.35vw, 2rem)/1.1 Montserrat, Arial, sans-serif; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.prayer.is-jumuah .prayer-jamaat { font-size: clamp(1rem, 1.6vw, 1.45rem); }
.prayer-begins { margin: .15rem 0 0; color: #5e7065; font-size: .68rem; }
.prayer-key { margin: .36rem 0 0; color: #596b5e; font-size: .69rem; }
.loading-copy, .out-of-range, .error-copy { grid-column: 1/-1; margin: 0; padding: .8rem 1rem; color: #4d6457; font-size: .83rem; }
.out-of-range strong { display: block; color: var(--emerald); }
.out-of-range p { margin: .15rem 0 0; }
.download-section { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .57rem clamp(1.25rem, 4vw, 4rem); background: #e9ece4; border-top: 1px solid #dce2d7; }
.download-copy { display: flex; align-items: center; gap: .68rem; }
.download-icon { display: grid; place-items: center; flex: none; width: 2.35rem; height: 2.35rem; border: 1px solid #b8cbb7; border-radius: 50%; }
.download-icon svg { width: 1.16rem; }
.download-copy .section-kicker { color: #667b6a; margin-bottom: .13rem; font-size: .61rem; }
.download-copy h2 { margin: 0; font: 700 clamp(.95rem, 1.45vw, 1.25rem)/1.1 Montserrat, Arial, sans-serif; letter-spacing: -.03em; }
.download-copy div > p:last-of-type { margin: .08rem 0 0; color: #596f60; font-size: .71rem; }
.view-pdf { display: inline-block; margin-top: .08rem; color: var(--emerald); font-size: .68rem; font-weight: 700; text-underline-offset: 2px; }
.download-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; min-height: 40px; padding: .55rem .85rem; background: var(--emerald); border-radius: 6px; color: #fff; text-decoration: none; font: 700 .72rem/1.2 Montserrat, Arial, sans-serif; white-space: nowrap; }
.download-button:hover { background: #0d4935; }
.download-button span { color: #d8bd81; font-size: 1rem; }
.source-note { margin: 0; padding: .25rem clamp(1.25rem, 4vw, 4rem); background: var(--ivory); color: #66776b; font-size: .65rem; line-height: 1.25; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: .32rem; padding: .34rem clamp(1.25rem, 4vw, 4rem); background: var(--ivory); border-top: 1px solid #dce2d7; color: #52685b; font-size: .65rem; white-space: nowrap; }
.footer-name { font-weight: 700; }
@media (max-width: 900px) {
  .hero-copy { max-width: 68%; }
  .hero-photo > img { object-position: 63% 32%; }
  .hero-photo::after { background: linear-gradient(90deg,rgba(2,48,32,.97),rgba(2,48,32,.66) 62%,rgba(2,48,32,.1)); }
  .prayer-jamaat { font-size: 1.35rem; }
  .time-zone-label { display: none; }
}
@media (max-width: 700px) {
  .page-shell { grid-template-rows: 55px minmax(0, 1fr) auto; }
  .site-header { padding-inline: 1rem; }
  .identity-mark { width: 40px; height: 40px; }
  .identity-text strong { font-size: .75rem; }
  .identity-text span { font-size: .54rem; }
  .header-status { font-size: .55rem; white-space: normal; max-width: 7rem; text-align: right; line-height: 1.25; }
  .hero { padding: .65rem 1.1rem; }
  .hero-copy { max-width: 100%; }
  .hero h1 { max-width: 20rem; font-size: clamp(1.9rem, 8.2vw, 2.8rem); }
  .hero-description { max-width: 19rem; margin-top: .55rem; font-size: .83rem; line-height: 1.35; }
  .eyebrow { margin-bottom: .46rem; font-size: .54rem; }
  .hero-photo > img { object-position: 64% 34%; }
  .hero-photo::after { background: linear-gradient(90deg,rgba(2,48,32,.94),rgba(2,48,32,.68) 62%,rgba(2,48,32,.42)); }
  .prayer-section { padding: .5rem 1rem .35rem; }
  .prayer-head { margin-bottom: .35rem; }
  .prayer-head .section-kicker { margin-bottom: .12rem; font-size: .53rem; }
  .prayer-head h2 { font-size: 1.15rem; }
  .prayer-meta { gap: .1rem .55rem; margin-top: .12rem; }
  .prayer-date, .sunrise-note { font-size: .68rem; }
  .prayer-board { display: block; border-radius: 8px; }
  .prayer { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name time" "begins time"; align-items: center; min-height: 42px; padding: .23rem .7rem; gap: 0 .4rem; }
  .prayer + .prayer { border-top: 1px solid var(--line); }
  .prayer + .prayer::before { display: none; }
  .prayer-name { grid-area: name; align-self: end; margin: 0; font-size: .73rem; }
  .prayer-jamaat-label { display: none; }
  .prayer-jamaat { grid-area: time; margin: 0; font-size: 1.13rem; text-align: right; }
  .prayer.is-jumuah .prayer-jamaat { font-size: .82rem; max-width: 11rem; }
  .prayer-begins { grid-area: begins; margin: 0; font-size: .64rem; }
  .prayer-key { margin-top: .25rem; font-size: .58rem; line-height: 1.2; }
  .download-section { padding: .43rem 1rem; gap: .5rem; }
  .download-icon { display: none; }
  .download-copy .section-kicker, .download-copy div > p:last-of-type { display: none; }
  .download-copy h2 { max-width: 7.5rem; font-size: .78rem; line-height: 1.2; }
  .view-pdf { margin-top: .12rem; font-size: .64rem; }
  .download-button { flex: none; min-height: 36px; gap: .4rem; padding: .4rem .55rem; font-size: .7rem; }
  .source-note { padding: .22rem 1rem; font-size: .58rem; }
  .site-footer { padding: .25rem .5rem; font-size: .6rem; }
  .footer-trust { display: none; }
}
@media (max-width: 380px) {
  .header-status { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .prayer-jamaat { font-size: 1.05rem; }
  .download-copy h2 { font-size: .71rem; }
  .site-footer { font-size: .54rem; }
}
@media (max-height: 700px) and (max-width: 700px) {
  .eyebrow, .hero-description { display: none; }
  .hero h1 { font-size: clamp(1.65rem, 7.4vw, 2.2rem); }
  .prayer-section { padding-top: .3rem; padding-bottom: .2rem; }
  .prayer { min-height: 37px; }
  .prayer-key { display: none; }
  .download-section { padding-block: .32rem; }
  .source-note { padding-block: .12rem; }
}
@media (max-height: 500px) {
  html, body { height: auto; overflow: auto; }
  .page-shell { height: auto; min-height: 100svh; }
  main { grid-template-rows: minmax(125px, 1fr) auto auto auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
