/* Savoy Musallah — site styles
   Palette: pine (primary), night pine (hero), mist (page), brass (single accent: the current prayer). */
:root {
  --pine: #0F4C3A;
  --pine-700: #0B3B2D;
  --night: #0A2A21;
  --mist: #F1F4F2;
  --paper: #FFFFFF;
  --ink: #17221E;
  --ink-soft: #4A5A53;
  --line: #D5DED9;
  --brass: #B48A35;
  --brass-soft: #F3E8CF;
  --danger: #A33A2C;
  --ok: #2F6B3F;
  --radius: 10px;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Spectral", Georgia, serif;
  --font-quran: "Amiri Quran", "Amiri", "Scheherazade New", serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--mist); }
img { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-700); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.empty { color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--pine); background: var(--pine); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--pine-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.btn-light { background: #fff; color: var(--pine); border-color: #fff; }
.btn-light:hover { background: var(--mist); color: var(--pine-700); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-brass:hover { background: #9A752B; color: #fff; }
.btn-small { min-height: 36px; padding: .35rem .9rem; font-size: .875rem; }

/* Header */
.notice-banner { background: var(--brass-soft); color: var(--ink); text-align: center; padding: .5rem 1rem; font-size: .95rem; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.brand img { border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:not(.btn):hover { border-bottom-color: var(--pine); color: var(--pine); }
.btn-donate { min-height: 38px; padding: .4rem 1rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: .45rem .8rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1rem; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: .8rem; }
}

/* Hero with the arch prayer card */
.hero { background: var(--night); color: #E9F0EC; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(180,138,53,.16), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero-lead { font-size: 1.15rem; max-width: 34ch; color: #C9D8D0; }
.next-prayer { font-size: 1.05rem; margin: 1.4rem 0 .4rem; color: #fff; }
.next-prayer strong { color: var(--brass-soft); font-weight: 600; }
.hero-address a { color: #C9D8D0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.arch-card { background: var(--paper); color: var(--ink); border-radius: 220px 220px 18px 18px; padding: 64px 28px 24px; box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.6); max-width: 420px; width: 100%; justify-self: end; }
.arch-head { text-align: center; margin-bottom: 1rem; }
.clock { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--pine); margin: 0; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.date-line { margin: .2rem 0 0; color: var(--ink-soft); font-size: .92rem; display: flex; flex-direction: column; }
.hijri { color: var(--brass); font-weight: 500; }
.prayer-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prayer-table thead th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--ink-soft); padding: 0 12px .4rem; }
.prayer-table thead th:last-child, .prayer-table td { text-align: right; }
.prayer-table tbody th, .prayer-table td { padding: .55rem 12px; border-top: 1px solid var(--line); font-weight: 500; }
.prayer-table tbody th { text-align: left; }
.prayer-table td { font-variant-numeric: tabular-nums; }
.prayer-table tr.is-next th, .prayer-table tr.is-next td { background: var(--brass-soft); color: #5E4614; font-weight: 600; }
.prayer-table tr.is-next th { border-radius: 8px 0 0 8px; }
.prayer-table tr.is-next td { border-radius: 0 8px 8px 0; }
.prayer-table tr.is-next + tr th, .prayer-table tr.is-next + tr td { border-top-color: transparent; }
.jummah { margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--pine); }
.jummah h2 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--pine); }
.jummah dl { margin: 0; display: grid; gap: .3rem; font-size: .95rem; }
.jummah dl div { display: flex; justify-content: space-between; gap: 1rem; }
.jummah dt { font-weight: 600; }
.jummah dd { margin: 0; text-align: right; color: var(--ink-soft); }
@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .arch-card { justify-self: center; padding-top: 52px; order: -1; }
  .hero-copy h1 { font-size: 2rem; }
}

/* Sections */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 90px 1fr; column-gap: 1.2rem; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.news-date { grid-row: span 2; font-family: var(--font-display); font-size: 1.1rem; color: var(--pine); font-weight: 600; }
.news-title { font-weight: 600; font-size: 1.08rem; }
.news-summary { color: var(--ink-soft); }
.news-list a:hover .news-title { color: var(--pine); text-decoration: underline; }
.quran-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quran-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.quran-band p { max-width: 48ch; color: var(--ink-soft); }
.continue a { font-weight: 600; }
.surah-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.surah-chips a { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 500; background: var(--mist); }
.surah-chips a:hover { border-color: var(--pine); }
.chip-ar { font-family: var(--font-quran); font-size: 1.3rem; color: var(--pine); }
.visit-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: var(--line); }
.donate-band { background: var(--pine); color: #fff; padding: 48px 0; }
.donate-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.donate-row p { color: #CFE0D7; margin: 0; max-width: 56ch; }
@media (max-width: 860px) {
  .section { padding: 44px 0; }
  .quran-band-grid, .visit-grid { grid-template-columns: 1fr; }
}

/* Inner pages */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.month-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.month-nav h2 { margin: 0; font-size: 1.4rem; }
.timetable-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.timetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.timetable th, .timetable td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.timetable thead th { background: var(--mist); font-size: .85rem; color: var(--ink-soft); }
.timetable tr.today td, .timetable tr.today th { background: var(--brass-soft); font-weight: 600; }
.timetable tr.friday th { color: var(--pine); }

/* Forms */
.form-grid { display: grid; gap: 1rem; max-width: 560px; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field textarea, .field select { width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px rgba(15,76,58,.15); }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
.field-error { color: var(--danger); font-size: .9rem; margin-top: .25rem; }
.hp-field { position: absolute; left: -9999px; }
.alert { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-ok { background: #E3F1E6; color: var(--ok); }
.alert-error { background: #F8E4E1; color: var(--danger); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--night); color: #B9CBC2; padding: 40px 0; font-size: .92rem; }
.site-footer a { color: #E9F0EC; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: .3rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-content: start; }
.footer-credit { grid-column: 1 / -1; margin: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Prayer times page */
.times-page { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 860px; }
.times-page h2 { font-size: 1.3rem; color: var(--pine); }
.updated { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.jummah-list { margin: 0; display: grid; gap: 1rem; }
.jummah-list dt { font-weight: 600; }
.jummah-list dd { margin: .2rem 0 0; color: var(--ink-soft); }
@media (max-width: 700px) { .times-page { grid-template-columns: 1fr; } }
.page-head .week-range { font-size: 1.15rem; color: var(--pine); font-weight: 600; }

/* Keep the footer at the bottom of the window on short pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-header, .notice-banner, .site-footer { flex-shrink: 0; }

/* Notice banner: make announcements like Eid times impossible to miss */
.notice-banner { background: var(--brass); color: #1E1505; font-weight: 600; font-size: 1.02rem; padding: .75rem 1rem; line-height: 1.4; }

/* Scrolling notice text (pauses on hover; static for people who prefer reduced motion) */
.notice-banner { text-align: left; padding-left: 0; padding-right: 0; }
.notice-track { overflow: hidden; white-space: nowrap; }
.notice-text { display: inline-block; padding-left: 100%; animation: notice-scroll var(--notice-duration, 16s) linear infinite; }
.notice-banner:hover .notice-text { animation-play-state: paused; }
@keyframes notice-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .notice-banner { text-align: center; padding-left: 1rem; padding-right: 1rem; }
  .notice-track { white-space: normal; }
  .notice-text { padding-left: 0; animation: none; }
}

/* Prayer times page: adhan column, sunrise, countdown */
.prayer-table.with-adhan thead th:nth-child(2) { text-align: right; }
.prayer-table .adhan { color: var(--ink-soft); font-weight: 400; }
.prayer-table .sunrise-row th, .prayer-table .sunrise-row td { color: var(--ink-soft); font-weight: 400; font-size: .92rem; }
.prayer-table tr.is-next .adhan { color: #5E4614; }
.next-prayer-line { margin: .4rem 0 0; font-size: 1.05rem; color: var(--ink); }
.next-prayer-line strong { color: var(--pine); }
.today-line { margin: -.3rem 0 .8rem; font-size: .92rem; color: var(--ink-soft); }
.today-line .hijri { color: var(--brass); margin-left: .4rem; }
.adhan-note { margin: 1rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.wrap.times-page { max-width: var(--wrap); grid-template-columns: minmax(0, 440px) minmax(0, 340px); }
@media (max-width: 700px) { .wrap.times-page { grid-template-columns: 1fr; } }

/* ---------- Prayer times page (redesign) ---------- */
.pt-hero { background: var(--night); color: #E9F0EC; padding: 44px 0 96px; position: relative; overflow: hidden; }
.pt-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 85% 30%, rgba(180,138,53,.18), transparent 70%); pointer-events: none; }
.pt-hero-grid { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.pt-hero h1 { color: #fff; margin: 0 0 .3rem; }
.pt-week { font-size: 1.15rem; color: var(--brass-soft); margin: 0; font-weight: 500; }
.pt-next { margin: .9rem 0 0; font-size: 1.05rem; color: #CFE0D7; }
.pt-next strong { color: #fff; font-weight: 600; }
.pt-clock-box { text-align: right; }
.pt-clock { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; color: #fff; margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.pt-dates { margin: .5rem 0 0; display: flex; flex-direction: column; font-size: .95rem; color: #B9CBC2; }
.pt-dates .hijri { color: var(--brass-soft); }

.pt-body { padding: 0 0 64px; }
.pt-label { font-size: 1rem; color: #CFE0D7; margin: -64px 0 14px; position: relative; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }
.pt-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.pt-tile { position: relative; background: var(--paper); border-radius: 120px 120px 14px 14px; padding: 38px 12px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(10,42,33,.55); border: 1px solid var(--line); transition: transform .2s ease; }
.pt-ar { font-family: var(--font-quran); font-size: 1.6rem; color: var(--pine); line-height: 1.5; }
.pt-name { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.pt-time { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); margin-top: .5rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pt-time small { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.pt-flag { display: none; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brass); color: #fff; font-size: .78rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; }
.pt-tile.is-next { background: var(--brass-soft); border-color: var(--brass); transform: translateY(-6px); }
.pt-tile.is-next .pt-flag { display: block; }
.pt-tile.is-next .pt-ar { color: #8A6414; }
.pt-tile.is-next .pt-time, .pt-tile.is-next .pt-name { color: #4A3610; }

.pt-jummah { margin-top: 36px; display: grid; grid-template-columns: 220px 1fr; background: var(--pine); color: #fff; border-radius: 18px; overflow: hidden; }
.pt-jummah-head { padding: 28px; background: var(--pine-700); display: flex; flex-direction: column; justify-content: center; }
.pt-jummah-head .pt-ar { color: var(--brass-soft); font-size: 1.9rem; }
.pt-jummah-head h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.pt-jummah-head p { margin: .2rem 0 0; color: #B9CBC2; }
.pt-jummah-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pt-slot { padding: 26px 28px; }
.pt-slot + .pt-slot { border-left: 1px solid rgba(255,255,255,.14); }
.pt-slot h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: #CFE0D7; margin: 0 0 .7rem; }
.pt-slot dl { margin: 0; display: flex; gap: 32px; }
.pt-slot dt { font-size: .85rem; color: #B9CBC2; }
.pt-slot dd { margin: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-visit { margin: 28px 0 0; color: var(--ink-soft); }

@media (max-width: 900px) {
  .pt-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .pt-hero { padding: 32px 0 84px; }
  .pt-clock-box { text-align: left; }
  .pt-tiles { grid-template-columns: 1fr; gap: 10px; }
  .pt-tile { border-radius: 14px; flex-direction: row; justify-content: space-between; padding: 16px 18px; text-align: left; }
  .pt-tile .pt-ar { order: 3; font-size: 1.3rem; }
  .pt-tile .pt-name { order: 1; min-width: 80px; }
  .pt-tile .pt-time { order: 2; margin: 0 auto 0 12px; font-size: 1.5rem; }
  .pt-tile.is-next { transform: none; }
  .pt-flag { top: -10px; left: 18px; transform: none; }
  .pt-jummah { grid-template-columns: 1fr; }
  .pt-slot + .pt-slot { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}
.pt-jummah-head .pt-ar { align-self: flex-start; }

/* ---------- Homepage (redesign) ---------- */
.hm-pattern { position: absolute; inset: 0; pointer-events: none;
  background-image: 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='%23ffffff' stroke-width='1'%3E%3Crect x='27' y='27' width='42' height='42' stroke-opacity='0.07'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)' stroke-opacity='0.07'/%3E%3Ccircle cx='48' cy='48' r='9' stroke-opacity='0.05'/%3E%3Cpath d='M0 0L27 27M96 0L69 27M0 96L27 69M96 96L69 69' stroke-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 75%); mask-image: linear-gradient(100deg, transparent 15%, #000 75%); }

.hm-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 90% at 80% 35%, #134836 0%, var(--night) 62%); color: #E9F0EC; padding: 64px 0 88px; }
.hm-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hm-salam { font-family: var(--font-quran); font-size: 1.6rem; color: #E3C27A; margin: 0 0 .4rem; text-align: left; }
.hm-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; margin: 0 0 .5rem; letter-spacing: -.01em; }
.hm-lead { font-size: 1.15rem; color: #C9D8D0; max-width: 34ch; margin-bottom: 1.4rem; }
.hm-next { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.6rem; padding: .55rem 1rem .55rem .8rem; border-radius: 999px; background: rgba(227,194,122,.14); border: 1px solid rgba(227,194,122,.45); color: #F3E8CF; font-size: 1rem; }
.hm-next::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #E3C27A; box-shadow: 0 0 0 4px rgba(227,194,122,.25); }
.hm-next strong { color: #fff; }
.hm-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hm-address { margin: 1.6rem 0 0; font-size: .95rem; }
.hm-address a { color: #B9CBC2; }
.hm-address a:hover { color: #fff; }
.hm-arch-wrap { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.hm-arch-wrap::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1.5px solid rgba(227,194,122,.55); border-radius: 230px 230px 22px 22px; pointer-events: none; }
.hm-arch-wrap .arch-card { position: relative; max-width: none; justify-self: auto; }
.arch-more { display: block; text-align: center; margin-top: 1rem; font-weight: 600; font-size: .95rem; }

.hm-cards { position: relative; margin-top: -44px; z-index: 2; }
.hm-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 26px; box-shadow: 0 20px 40px -32px rgba(10,42,33,.6); display: flex; flex-direction: column; align-items: flex-start; }
.hm-card h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.hm-card p { margin-bottom: .6rem; }
.hm-card .muted { color: var(--ink-soft); font-size: .95rem; }
.hm-card .btn, .hm-link { margin-top: auto; }
.hm-link { font-weight: 600; }
.hm-card-ar { font-family: var(--font-quran); color: var(--brass); font-size: 1.4rem; margin: 0 0 -.2rem; }
.hm-jummah { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; width: 100%; }
.hm-jummah li { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; column-gap: .6rem; }
.hm-jummah span { color: var(--ink-soft); font-size: .9rem; grid-row: span 2; }
.hm-jummah strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--pine); line-height: 1.1; }
.hm-jummah small { color: var(--ink-soft); }
.hm-card-give { background: var(--brass-soft); border-color: #E6D3A6; }

.hm-verse { padding: 72px 0 56px; text-align: center; }
.hm-verse-inner { max-width: 820px; }
.hm-verse h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--brass); margin-bottom: 1rem; }
.hm-verse-ar { font-family: var(--font-quran); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 2.1; color: var(--pine); margin: 0 0 1rem; text-align: center; }
.hm-verse-tr { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.6; color: var(--ink); max-width: 60ch; margin: 0 auto 1rem; }
.hm-verse-ref { color: var(--ink-soft); font-size: .95rem; }
.hm-verse-ref a { margin-left: .6rem; font-weight: 600; }

.hm-news { padding-top: 24px; }
.hm-news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-news-card { display: flex; gap: 16px; height: 100%; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.hm-news-card:hover { border-color: var(--pine); color: var(--ink); }
.hm-date { flex: 0 0 56px; height: 64px; border-radius: 28px 28px 8px 8px; background: var(--pine); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.hm-date-m { font-size: .75rem; color: #CFE0D7; }
.hm-date-d { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.hm-news-body { display: flex; flex-direction: column; gap: .3rem; }
.hm-news-title { font-weight: 600; font-size: 1.05rem; }
.hm-news-card:hover .hm-news-title { color: var(--pine); text-decoration: underline; }
.hm-news-sum { color: var(--ink-soft); font-size: .95rem; }
.hm-news-when { color: var(--brass); font-size: .88rem; font-weight: 600; }

.hm-quran { position: relative; overflow: hidden; background: var(--pine); color: #fff; padding: 72px 0; margin-top: 24px; }
.hm-quran h2 { color: #fff; }
.hm-quran p { color: #CFE0D7; max-width: 46ch; }
.hm-quran .continue a { color: #F3E8CF; font-weight: 600; }
.hm-quran-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hm-surahs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hm-surahs a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 10px 16px; border-radius: 70px 70px 12px 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; transition: background .2s, border-color .2s; }
.hm-surahs a:hover { background: rgba(255,255,255,.14); border-color: #E3C27A; color: #fff; }
.hm-surah-ar { font-family: var(--font-quran); font-size: 1.7rem; color: #E3C27A; line-height: 1.6; }
.hm-surah-en { font-weight: 600; }
.hm-surah-meta { font-size: .82rem; color: #B9CBC2; }

.hm-map .map { height: 340px; }

@media (max-width: 900px) {
  .hm-hero { padding: 40px 0 76px; }
  .hm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hm-arch-wrap { justify-self: center; order: 2; }
  .hm-cards-grid, .hm-news-grid { grid-template-columns: 1fr; }
  .hm-quran-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hm-arch-wrap::before { inset: -10px -8px 10px 8px; }
  .hm-surahs { grid-template-columns: repeat(2, 1fr); }
}
.hm-next { display: inline-block; }
.hm-next::before { display: inline-block; vertical-align: middle; margin: -2px .6rem 0 0; }

/* Footer with map */
.site-footer { padding: 48px 0 32px; }
.site-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 48px; align-items: start; }
.footer-info p { margin: 0 0 .4rem; }
.footer-directions { font-weight: 600; color: #E3C27A !important; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.4rem; }
.footer-map { width: 100%; height: 240px; border: 0; border-radius: 14px; background: rgba(255,255,255,.06); }
.hm-news { padding: 64px 0; }
@media (max-width: 760px) { .site-footer .footer-grid { grid-template-columns: 1fr; } .footer-map { height: 220px; } }

/* Jummah inside the arch card */
.arch-jummah { margin-top: 1rem; padding-top: .9rem; border-top: 2px solid var(--pine); }
.arch-jummah h2 { font-size: 1.05rem; margin: 0 0 .6rem; color: var(--pine); display: flex; align-items: baseline; gap: .5rem; }
.arch-jummah h2 span { font-family: var(--font-quran); font-weight: 400; color: var(--brass); font-size: 1.15rem; }
.arch-jummah-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arch-jummah-slots > div { background: var(--mist); border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; line-height: 1.25; }
.arch-jummah-slots > div:only-child { grid-column: 1 / -1; }
.arch-jummah-slots span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.arch-jummah-slots strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.arch-jummah-slots small { font-size: .8rem; color: var(--ink-soft); }
.hm-hero { padding-bottom: 72px; }
.hm-verse { padding-top: 64px; }

/* Arabic prayer names beside English in the prayer table */
.prayer-table .pr-ar { margin-left: .45rem; }
.prayer-table .pr-ar { font-family: var(--font-quran); font-weight: 400; font-size: 1.05rem; color: var(--brass); line-height: 1; }
.prayer-table tr.is-next .pr-ar { color: #8A6414; }

/* Friday: Jummah in place of Zuhr */
.prayer-table .pr-sub { display: block; font-size: .78rem; font-weight: 400; color: var(--ink-soft); margin-top: 1px; }
.prayer-table tr.is-next .pr-sub { color: #6B5420; }
.pt-tiles.count-6 { grid-template-columns: repeat(6, 1fr); }
.pt-sub { font-size: .8rem; color: var(--ink-soft); margin-top: .2rem; }
.pt-tile.is-next .pt-sub { color: #6B5420; }
.pt-tile.is-jummah .pt-ar { color: var(--brass); }
@media (max-width: 900px) { .pt-tiles.count-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pt-tiles.count-6 { grid-template-columns: 1fr; } .pt-sub { order: 4; margin: 0 0 0 8px; } }
