/* ABM Reading — public site */
:root {
  --navy: #2A486C;
  --navy-deep: #1C3350;
  --ink: #142338;
  --gold: #D1AD3C;
  --gold-deep: #A9871F;
  --gold-soft: #F6EDCF;
  --cream: #FAF6EC;
  --paper: #FFFFFF;
  --text: #1E2A3A;
  --muted: #5A6878;
  --line: #E7E0CF;
  --line-cool: #DCE3EC;
  --ok: #2F7D5B;
  --err: #B3261E;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 35, 56, .06), 0 8px 24px rgba(20, 35, 56, .08);
  --shadow-lg: 0 2px 4px rgba(20, 35, 56, .06), 0 18px 48px rgba(20, 35, 56, .14);
  --display: 'Marcellus', 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23D1AD3C' stroke-width='1'%3E%3Cpath d='M32 10l6.4 15.6L54 32l-15.6 6.4L32 54l-6.4-15.6L10 32l15.6-6.4z'/%3E%3Cpath d='M16.4 16.4h31.2v31.2H16.4z' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 0l10 10M64 0L54 10M0 64l10-10M64 64L54 54'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 1rem/1.6 var(--sans); color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.25em; border-radius: 999px; font: 600 .95rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(209, 173, 60, .35); }
.btn-gold:hover { background: #DDBB4E; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line-cool); }
.btn-line:hover { border-color: var(--navy); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow .ic { transition: transform .15s; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9rem; }
.eyebrow.dark { color: var(--gold-deep); }

/* Top bar */
.topbar { background: var(--ink); color: #C9D3E0; font-size: .85rem; }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 40px; }
.tb-next { display: inline-flex; align-items: center; gap: .45em; color: #fff; text-decoration: none; background: rgba(209, 173, 60, .14); padding: 3px 12px; border-radius: 99px; white-space: nowrap; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.tb-next strong { color: var(--gold); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(209, 173, 60, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(209, 173, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(209, 173, 60, 0); } }
.tb-links { margin-left: auto; display: flex; gap: 14px; align-items: center; flex: none; }
/* Small phones: shrink the "Next" pill to fit on one line, dropping words as space runs out */
@media (max-width: 480px) {
  .topbar-in { gap: 10px; }
  .topbar { font-size: clamp(.72rem, 3.3vw, .85rem); }
  .tb-next { padding: 3px 10px; gap: .35em; }
  .tb-links { gap: 12px; }
}
@media (max-width: 400px) { .tb-jw { display: none; } }
@media (max-width: 340px) { .tb-nx { display: none; } .tb-links { gap: 9px; } }
.tb-links a { color: #C9D3E0; display: inline-flex; gap: .4em; align-items: center; text-decoration: none; }
.tb-links a:hover { color: #fff; }
/* Donate pill in the top bar — phones/tablets only (desktop has Donate in the main menu) */
.tb-links a.tb-donate { display: none; }
@media (max-width: 980px) {
  .tb-links a.tb-donate { display: inline-flex; gap: 5px; padding: 3px 11px 3px 9px; border-radius: 99px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .75rem; letter-spacing: .02em; line-height: 1.4; white-space: nowrap; }
  .tb-links a.tb-donate:hover { background: #E2C25A; color: var(--ink); }
  .tb-links a.tb-donate svg { width: 13px; height: 13px; }
}

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: var(--navy); }
.brand-mark svg { width: 46px; height: 46px; }
.brand-logo { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; flex-shrink: 0; }
.brand-text strong { font: 400 1.32rem/1.1 var(--display); color: var(--ink); -webkit-text-stroke: .45px currentColor; paint-order: stroke fill; }
.brand-text small { font-size: .72rem; font-weight: 600; color: var(--navy-deep); text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #AFC0D4; }
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mainnav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.mainnav li { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 99px; font: 500 .97rem/1 var(--sans); color: var(--text); background: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.nav-top:hover, .has-sub:hover > .nav-top { background: var(--cream); }
.mainnav li.active > .nav-top { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.chev { width: 15px; height: 15px; transition: transform .2s; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
.sub::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev, .has-sub.open .chev { transform: rotate(180deg); }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.sub a:hover, .sub a[aria-current] { background: var(--cream); color: var(--navy); }
.nav-donate { min-height: 42px; }
.nav-head, .nav-sub { display: none; }
.nav-actions { display: contents; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.burger .ic { width: 24px; height: 24px; }
.burger .i-close { display: none; }

/* Patterns */
.hero-pattern { position: absolute; inset: 0; background-image: var(--star); background-size: 64px; opacity: .09; pointer-events: none; }

/* Hero */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 0%, #355A86 0%, var(--navy) 45%, var(--navy-deep) 100%); color: #E7EDF5; overflow: hidden; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold), #E8CD72, var(--gold)); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 72px 0 84px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 span { display: block; color: var(--gold); font-size: .55em; margin-top: .25em; letter-spacing: .02em; }
.hero-lead { font-size: 1.15rem; max-width: 34em; color: #D6E0EC; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Prayer card */
.pcard { position: relative; background: #fff; color: var(--text); border-radius: 22px; padding: 26px 26px 18px; box-shadow: 0 30px 60px rgba(8, 18, 33, .35); }
.pcard::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--gold-soft); border-radius: 16px; pointer-events: none; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.pcard-head h2 { font-size: 1.6rem; margin: 0; }
.pcard-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.pcard-count { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; font-size: .82rem; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.pcard-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; }
.pcard-table th, .pcard-table td { padding: 9px 12px; text-align: left; }
.pcard-table thead th { font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.pcard-table tbody th { font: 400 1.12rem/1 var(--display); color: var(--ink); }
.pcard-table td { font-size: 1.05rem; color: var(--muted); }
.pcard-table td.jm { color: var(--ink); font-weight: 700; }
.pcard-table tbody tr > * { background: #F7F9FC; }
.pcard-table tbody tr > :first-child { border-radius: 10px 0 0 10px; }
.pcard-table tbody tr > :last-child { border-radius: 0 10px 10px 0; }
.pcard-table tr.is-next > * { background: var(--navy); color: #fff; }
.pcard-table tr.is-next th { color: var(--gold); }
.pcard-table tr.is-next td.jm { color: #fff; }
.pcard-foot { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 6px; padding: 12px 4px 0; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--muted); }
.pcard-foot span { display: inline-flex; gap: .45em; align-items: center; }
.pcard-foot strong { color: var(--ink); }
.pcard-foot .ic { color: var(--gold-deep); }
.pcard-link { display: flex; justify-content: center; align-items: center; gap: .4em; padding: 10px; font-weight: 600; text-decoration: none; position: relative; }
.pcard-empty { color: var(--muted); padding: 24px 0; text-align: center; }

/* Jum'a band */
.jumma { background: var(--gold-soft); border-bottom: 1px solid var(--line); }
.jumma-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; flex-wrap: wrap; }
.jumma-title { display: flex; align-items: center; gap: 14px; }
.jumma-title > .ic { width: 40px; height: 40px; color: var(--gold-deep); }
.jumma-title h2 { font-size: 1.6rem; margin: 0; }
.jumma-sub p { margin: 0; color: var(--muted); font-size: .95rem; }
.jumma-times { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.jumma-times li { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 16px; border: 1px solid var(--line); font-size: .93rem; }
.jumma-times .season { font-weight: 600; color: var(--navy); }
.jumma-times strong { font-variant-numeric: tabular-nums; }
.jumma-times .jumma-ovr { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; flex-wrap: wrap; }
.jumma-times .jumma-ovr .season { color: var(--gold); }
.jumma-note { font-size: .85rem; color: #C9D6E5; }
.jumma-note::before { content: "· "; color: var(--gold); }
.ptimes-foot .pfoot-ovr strong { color: var(--gold); }

/* Sections */
.section { padding: 76px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy-deep); color: #D6E0EC; position: relative; }
.section-navy h2, .section-navy h3 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.empty { color: var(--muted); }

/* Event cards */
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ev-grid-home { grid-template-columns: repeat(4, 1fr); }
.ev { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ev:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ev-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--navy) var(--star) center / 48px; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; }
img.img-failed { display: none !important; }
.ev-date { position: absolute; left: 12px; top: 12px; width: 56px; padding: 7px 0 6px; text-align: center; background: #fff; border-radius: 10px; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.ev-date b { display: block; font: 400 1.6rem/1 var(--display); color: var(--ink); letter-spacing: 0; margin-bottom: 2px; }
.ev-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev-cat { font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.ev-cat.light { color: var(--gold); }
.ev-title { font: 600 1.1rem/1.3 var(--sans); margin: 0; }
.ev-title a { color: var(--ink); text-decoration: none; }
.ev-title a::after { content: ''; position: absolute; inset: 0; }
.ev { position: relative; }
.ev-title a:hover { color: var(--navy); }
.ev-meta { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: var(--muted); }
.ev-meta li { display: flex; align-items: center; gap: .5em; }
.ev-meta .ic { color: var(--navy); opacity: .7; }
.ev-cost { color: var(--ok) !important; font-weight: 600; }
.ev-cost .ic { color: var(--ok) !important; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 22px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .18s; }
.tile:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.tile-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50% 50% 12px 12px; background: var(--navy); color: var(--gold); flex: none; }
.tile-ic .ic { width: 26px; height: 26px; }
.tile-l { font: 400 1.25rem/1.2 var(--display); }
.tile-arrow { margin-left: auto; color: var(--gold-deep); transition: transform .18s; }
.tile:hover .tile-arrow { transform: translateX(4px); }

/* Split (madrasah) */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.arch-frame { width: 100%; max-width: 400px; justify-self: center; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; padding: 12px; background: var(--gold-soft); }
.arch-art { height: 100%; border-radius: 999px 999px 12px 12px; background: var(--navy) var(--star) center / 56px; display: grid; place-items: center; color: var(--gold); }
.arch-art .ic { width: 84px; height: 84px; stroke-width: 1.1; }
.prose { color: var(--text); }
.prose-lg { font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; color: var(--navy); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--gold-deep); }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--cream); font-weight: 600; color: var(--navy); }
.prose thead:has(th:empty) { display: none; }
.prose a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose :is(h2, h3, h4)[id] { scroll-margin-top: 110px; }
.prose-light, .prose-light p { color: #C9D6E5; }

/* Watch */
.watch { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; }
.watch-solo { grid-template-columns: 1fr; max-width: 720px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.vids-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 16px; }
.vids-head h3 { font-size: 1.3rem; margin: 0; color: #fff; }
.vids-head a { color: var(--gold); text-decoration: none; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.vids-head .ic { width: 16px; height: 16px; }
.vids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.vid { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vid-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vid-thumb:hover img, .vid-thumb:focus-visible img { transform: scale(1.04); }
.vid-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(10,22,38,.55), transparent 60%); }
.vid-play i { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .2s; }
.vid-play svg { width: 22px; height: 22px; fill: var(--navy-deep); margin-left: 3px; }
.vid-thumb:hover .vid-play i { transform: scale(1.08); }
.vid.playing .vid-play { display: none; }
.vid-title { color: #fff; text-decoration: none; font-weight: 600; line-height: 1.35; font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-title:hover { color: var(--gold); }
.vid time { color: #9FB2C8; font-size: .85rem; }
@media (max-width: 1000px) { .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .vids { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 14px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .vids::-webkit-scrollbar { display: none; }
  .vid { flex: 0 0 80%; scroll-snap-align: start; }
  .vids-head { margin-top: 32px; }
}
.watch-placeholder { aspect-ratio: 16/9; border-radius: var(--radius); display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(255, 255, 255, .05) var(--star) center / 64px; border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 600; }
.watch-placeholder .ic { width: 64px; height: 64px; color: var(--gold); stroke-width: 1.2; }

/* Trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tcard h3 { font-size: 1.45rem; margin: 6px 0 0; }
.tcard .prose { color: var(--muted); flex: 1; }
.tcard-gold { background: var(--gold-soft); border-color: #EBDDAE; }

/* Find us */
.findus { background: var(--cream); padding: 0; }
.findus-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0; align-items: stretch; width: 100%; max-width: none; }
.findus-card { padding: 64px max(32px, calc((100vw - var(--wrap)) / 2)); padding-right: 48px; }
.findus address { font-style: normal; font-size: 1.1rem; line-height: 1.7; }
.map { min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.85); }
.map-inline { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }

/* Footer */
.footer { position: relative; background: var(--ink); color: #AFC0D4; padding: 64px 0 0; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; background-image: var(--star); background-size: 64px; opacity: .05; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr; gap: 32px; }
.footer h3 { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer address { font-style: normal; margin-bottom: 10px; }
.f-about p { margin: 14px 0 18px; }
.f-link { display: flex; align-items: center; gap: .5em; color: #DCE5F0; text-decoration: none; margin: 6px 0; }
.f-link:hover { color: #fff; }
.f-link.dark { color: var(--navy); }
.f-small { font-size: .85rem; margin-top: 10px; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list a { color: #DCE5F0; text-decoration: none; display: inline-block; padding: 4px 0; }
.f-list a:hover { color: var(--gold); }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; }
.f-social a:hover { background: var(--gold); color: var(--ink); }
.footer-base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 0; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-base a { color: var(--gold); text-decoration: none; }

/* Mobile dock */
.dock { display: none; }

/* Inner pages */
.pagehead { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 44px 0 46px; overflow: hidden; }
.pagehead::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.pagehead h1 { color: #fff; margin: 0; position: relative; }
.pagehead-sub { color: #C9D6E5; margin: 8px 0 0; font-size: 1.1rem; position: relative; }
.crumbs { position: relative; display: flex; gap: 8px; font-size: .85rem; margin-bottom: 12px; color: #AFC0D4; }
.crumbs a { color: #AFC0D4; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 56px 0 80px; }
.page-img { margin: 0 0 28px; }
.page-img.arch img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 28px 28px 14px 14px; }
.page-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--cream); border-radius: var(--radius); padding: 22px; }
.aside-card h2 { font-size: 1.3rem; }
.aside-card address { font-style: normal; margin-bottom: 8px; }
.aside-nav { list-style: none; margin: 0; padding: 0; }
.aside-nav a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.aside-nav a:hover { background: #fff; }
.aside-nav a[aria-current] { background: var(--navy); color: #fff; }
.msg { padding: 56px 0 80px; font-size: 1.1rem; }

/* Forms */
.formcard { margin-top: 40px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.formcard h2 { font-size: 1.6rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 20px; }
.field.wide { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--line-cool); border-radius: 10px; background: #FBFCFE; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(42, 72, 108, .12); }
.field textarea { resize: vertical; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--err); }
.ferr { color: var(--err); font-size: .85rem; }
.count { display: block; text-align: right; color: var(--muted); font-size: .8rem; }
.radios { display: flex; gap: 10px; }
.fopt { display: inline-flex !important; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line-cool); border-radius: 99px; cursor: pointer; font-weight: 500 !important; }
.fopt:has(input:checked) { border-color: var(--navy); background: #EEF3F9; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.notice.ok { background: #E8F4EE; color: #1E5A40; }
.notice.ok .ic { width: 24px; height: 24px; }
.notice.err { background: #FBEAEA; color: var(--err); }

/* Events page */
.filterbar { position: sticky; top: 76px; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.filter-in { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.filter-in::-webkit-scrollbar { display: none; }
.chip { flex: none; font: 600 .88rem/1 var(--sans); padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line-cool); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--navy); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-link { margin-left: auto; color: var(--muted); }
.events-wrap { padding: 40px 0 80px; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 48px; }
.feature-media { display: block; min-height: 340px; background: var(--navy) var(--star) center / 56px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 36px 36px 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.feature-body h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.feature-body h2 a { color: var(--ink); text-decoration: none; }
.feature-sum { color: var(--muted); margin: 0; }
.feature-facts { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 8px 0 14px; }
.fact { display: flex; gap: 10px; align-items: center; font-size: .92rem; line-height: 1.35; }
.fact > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--cream); color: var(--navy); }
.fact-date { width: 52px; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--navy); color: var(--gold); font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.fact-date b { display: block; font: 400 1.5rem/1 var(--display); color: #fff; letter-spacing: 0; margin-bottom: 2px; }
.fact-date.big { width: 64px; padding: 9px 0; }
.fact-date.big b { font-size: 1.9rem; }
.month { margin-bottom: 44px; }
.month-h { display: flex; align-items: center; gap: 16px; font-size: 1.5rem; margin-bottom: 20px; }
.month-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.week-list { display: flex; flex-direction: column; gap: 12px; }
.week-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; padding: 16px; background: var(--cream); border-radius: var(--radius); }
.week-day { font: 400 1.3rem/1.2 var(--display); color: var(--navy); padding-top: 10px; }
.week-items { display: flex; flex-direction: column; gap: 8px; }
.week-item { display: grid; grid-template-columns: 150px 1fr auto; grid-template-areas: 'time title arrow' 'time meta arrow'; column-gap: 16px; align-items: center; padding: 12px 16px; background: #fff; border-radius: 10px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.week-item:hover { border-color: var(--gold); }
.wi-time { grid-area: time; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.wi-title { grid-area: title; font-weight: 600; color: var(--ink); }
.wi-meta { grid-area: meta; color: var(--muted); font-size: .88rem; }
.wi-arrow { grid-area: arrow; color: var(--gold-deep); }
.empty-big { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-big .ic { width: 48px; height: 48px; color: var(--gold); }
.empty-big h2 { margin-top: 12px; }
[data-hidden] { display: none !important; }

/* Event detail */
.evd-head { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); padding: 40px 0 120px; overflow: hidden; }
.evd-head-in { position: relative; }
.evd-head h1 { color: #fff; margin: 10px 0 0; max-width: 22ch; }
.draft-flag { display: inline-block; margin-top: 12px; background: var(--gold); color: var(--ink); padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: .85rem; }
.evd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: -84px; position: relative; padding-bottom: 72px; }
.evd-img { margin: 0 0 28px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.evd-img img { width: 100%; max-height: 560px; object-fit: contain; background: var(--cream); }
.evd-main .prose { padding-top: 6px; }
.back { margin-top: 24px; }
.evd-aside { position: sticky; top: 100px; align-self: start; }
.evd-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.evd-date { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.evd-date strong { display: block; color: var(--ink); line-height: 1.3; }
.evd-date span:not(.fact-date) { font-size: .9rem; color: var(--muted); }
.past-flag { color: var(--err) !important; }
.evd-facts { margin: 0; padding: 8px 0; }
.evd-facts > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.evd-facts dt { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }
.evd-facts dt .ic { color: var(--navy); }
.evd-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.evd-facts small { font-weight: 400; color: var(--muted); }
.evd-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evd-help { font-size: .9rem; color: var(--muted); padding: 14px 6px; }

/* Timetable */
.tt-wrap { padding: 32px 0 72px; }
.tt-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.tt-actions { display: flex; gap: 8px; }
.tt-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.tt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; min-width: 760px; }
.tt th, .tt td { padding: 9px 10px; text-align: center; border-bottom: 1px solid #F0EBDD; }
.tt thead th { background: var(--navy); color: #fff; font: 400 1.05rem/1.2 var(--display); position: sticky; top: 0; }
.tt thead .tt-sub th { background: var(--navy-deep); font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 8px; }
.tt td.jm { font-weight: 700; color: var(--ink); background: rgba(246, 237, 207, .35); }
.tt .tt-date { text-align: left; white-space: nowrap; padding-left: 14px; }
.tt .tt-date span { color: var(--muted); font-weight: 400; font-size: .85rem; }
.tt tbody tr:hover td, .tt tbody tr:hover th { background: #F6F8FB; }
.tt tr.is-fri th, .tt tr.is-fri td { background: #FBF7EA; }
.tt tr.is-today th, .tt tr.is-today td { background: var(--gold) !important; color: var(--ink); font-weight: 700; }
.tt-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ev-grid-home { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .topbar .tb-date { display: none; }
  .burger { display: grid; }
  .masthead { backdrop-filter: none; background: #fff; }
  .mainnav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; flex-direction: column; align-items: stretch; padding: 92px 20px 24px; gap: 16px; transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 60; }
  body.nav-open .mainnav { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(10, 20, 35, .45); z-index: 55; }
  body.nav-open .masthead { z-index: 60; }
  body.nav-open .burger { position: relative; z-index: 70; }
  body.nav-open .burger .i-open { display: none; }
  body.nav-open .burger .i-close { display: block; }
  .mainnav > ul { flex-direction: column; gap: 2px; }
  .nav-top { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .mainnav li.active > .nav-top { box-shadow: inset 3px 0 0 var(--gold); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; display: none; min-width: 0; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .chev { transform: none; }
  .has-sub.open .chev { transform: rotate(180deg); }
  /* Mobile menu: logo header + Donate/Subscribe pinned to the bottom */
  .mainnav { padding: 0 20px calc(20px + env(safe-area-inset-bottom)); gap: 0; }
  body.nav-open .burger { visibility: hidden; }
  .nav-head { display: flex; flex-direction: column; align-items: center; position: relative; margin: 0 -20px 14px; padding: 26px 20px 18px; background: linear-gradient(180deg, #FBF7EC 0%, #fff 100%); border-bottom: 1px solid var(--line); }
  .nav-head::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 56px; height: 2px; margin-left: -28px; background: var(--gold); border-radius: 2px; }
  .nav-logo img { display: block; width: auto; height: 78px; }
  .nav-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
  .nav-close .ic, .nav-close svg { width: 20px; height: 20px; }
  .nav-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
  .nav-actions:has(> :only-child) { grid-template-columns: 1fr; }
  .nav-donate, .nav-sub { width: 100%; min-width: 0; justify-content: center; min-height: 46px; padding-inline: 12px; }
  .nav-sub { display: inline-flex; align-items: center; gap: .5em; background: #fff; color: var(--navy); border: 1.5px solid var(--navy); box-shadow: none; }
  .nav-sub:hover { background: var(--navy); color: #fff; }
  .nav-sub svg { width: 18px; height: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 56px; }
  .split, .watch { grid-template-columns: 1fr; gap: 32px; }
  .arch-frame { max-width: 320px; aspect-ratio: 1; margin-inline: auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: 1fr; }
  .findus-grid { grid-template-columns: 1fr; }
  .findus-card { padding: 48px 16px; }
  .page-grid, .evd-grid { grid-template-columns: 1fr; gap: 32px; }
  .evd-aside { position: static; order: -1; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 0; aspect-ratio: 16/9; }
  .filterbar { top: 76px; }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tb-links a span { display: none; }
  .masthead-in { min-height: 66px; }
  .filterbar { top: 66px; }
  .brand-mark, .brand-mark svg { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-text small { font-size: .62rem; letter-spacing: .08em; }
  .section { padding: 52px 0; }
  .sec-head { margin-bottom: 20px; }
  .hero-lead { font-size: 1.05rem; }
  .hero-cta .btn { flex: 1; }
  .pcard { padding: 20px 16px 12px; border-radius: 18px; }
  .pcard-head { flex-direction: column; gap: 8px; }
  .pcard-head h2 { font-size: 1.45rem; }
  .pcard-table th, .pcard-table td { padding: 9px 10px; }
  .jumma-in { padding: 18px 0; }
  .jumma-times { width: 100%; }
  .jumma-times li { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 10px 14px; font-size: .9rem; }
  .jumma-times .season { grid-column: 1 / -1; }
  .jumma-note { grid-column: 1 / -1; }
  .jumma-note::before { content: none; }
  /* Events become compact list rows on phones */
  .ev-grid, .ev-grid-home { grid-template-columns: 1fr; gap: 12px; }
  .ev { flex-direction: row; border-radius: 12px; }
  .ev:hover { transform: none; }
  .ev-media { width: 112px; flex: none; aspect-ratio: auto; min-height: 112px; }
  .ev-date { left: 8px; top: 8px; width: 46px; padding: 5px 0; font-size: .64rem; }
  .ev-date b { font-size: 1.3rem; }
  .ev-body { padding: 12px 14px; gap: 5px; }
  .ev-title { font-size: 1rem; }
  .ev-meta { font-size: .84rem; gap: 3px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { padding: 14px 16px; }
  .tile-ic { width: 44px; height: 44px; }
  .tcard { padding: 22px; }
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-base { flex-direction: column; }
  .pagehead { padding: 30px 0 32px; }
  .page-grid { padding: 32px 0 56px; }
  .formcard { padding: 20px 16px; margin-inline: -4px; }
  .fgrid { grid-template-columns: 1fr; }
  .feature { margin-bottom: 32px; border-radius: 16px; }
  .feature-body { padding: 20px; }
  .feature-facts { gap: 12px 18px; }
  .week-row { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .week-day { padding-top: 0; font-size: 1.15rem; }
  .week-item { grid-template-columns: 1fr auto; grid-template-areas: 'time arrow' 'title arrow' 'meta arrow'; row-gap: 2px; }
  .evd-head { padding: 28px 0 32px; }
  .evd-grid { margin-top: 0; padding-top: 20px; }
  .evd-card { box-shadow: var(--shadow); }
  .hide-sm { display: none; }
  .tt { font-size: .85rem; min-width: 640px; }
  .tt th, .tt td { padding: 8px 6px; }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; }
  .dock a .ic { width: 22px; height: 22px; }
  .dock a.on { color: var(--navy); background: var(--cream); }
  .dock .dock-gold { color: var(--gold-deep); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .topbar, .masthead, .footer, .dock, .tt-bar, .filterbar { display: none !important; }
  .pagehead { background: none; color: #000; padding: 0 0 8px; }
  .pagehead h1, .pagehead-sub { color: #000; }
  .hero-pattern, .crumbs { display: none; }
  .tt-scroll { border: 0; overflow: visible; }
  .tt { min-width: 0; font-size: 9pt; }
  .tt thead th { background: #eee !important; color: #000 !important; }
  .tt tr.is-today th, .tt tr.is-today td { background: #f3f3f3 !important; }
  body { padding: 0; }
}

/* Images placed inside page text */
.prose img { border-radius: 14px; margin: 1.2em 0; height: auto; }
.prose p > img:only-child { margin: 0; }

/* Form builder fields */
.form-intro { margin-bottom: 18px; color: var(--muted); }
.form-page { padding: 8px 0 72px; }
.form-page .formcard { margin-top: 32px; }
.fhelp { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; }
.radios { flex-wrap: wrap; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.consent-explicit { padding: 14px 16px; border-radius: 12px; background: #FBF6E6; border: 1.5px solid #EBDDB0; line-height: 1.5; }
.consent-explicit a { color: var(--navy); font-weight: 600; white-space: nowrap; }
.form-guardian { background: #EEF3F9; color: var(--navy-deep); }
.form-guardian .ic { width: 22px; height: 22px; flex: none; }
.consent input { width: 20px; height: 20px; min-height: 0 !important; margin-top: 2px; accent-color: var(--navy); flex: none; }
.evd-main .formcard { margin-top: 32px; }
.field input[type=radio], .field input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--navy); box-shadow: none; }
.fopt span { white-space: nowrap; }

/* ---------- Prayer band (top of homepage) ---------- */
.pband { position: relative; background: var(--navy-deep); color: #E7EDF5; border-bottom: 5px solid var(--gold); }
.pband-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; padding: 26px 0 22px; }
.pnext { flex: 1 1 300px; max-width: 360px; box-sizing: border-box; border: 1px solid rgba(209,173,60,.45); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; background: #213C5E; }
.pnext-eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pnext-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pnext-name { font: 400 2.6rem/1 var(--display); color: #fff; }
.pnext-time { font-size: 1.25rem; font-weight: 700; color: #F3E3A6; font-variant-numeric: tabular-nums; }
.pnext-count { font-size: 2.9rem; font-weight: 700; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; margin-top: 6px; }
.pnext-sub { font-size: .9rem; color: #B9C7D8; }
.pnext-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 10px; overflow: hidden; }
.pnext-bar span { display: block; height: 100%; border-radius: 99px; background: var(--gold); transition: width 1s linear; }
.ptimes { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ptimes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ptimes-head h2 { margin: 0; font-size: 1.65rem; color: #fff; }
.ptimes-date { font-size: .95rem; color: #B9C7D8; }
.ptimes-clock { color: #fff; font-variant-numeric: tabular-nums; }
.ptiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ptile { border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: opacity .3s, background .3s; }
.ptile-name { font: 400 1.2rem/1.1 var(--display); }
.ptile-small { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; opacity: .8; font-variant-numeric: tabular-nums; }
.ptile-big { font-size: 1.5rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ptile-tag { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.ptile.is-past { opacity: .55; }
.ptile.is-next { background: var(--gold); border-color: var(--gold); color: var(--ink); opacity: 1; }
.ptimes-foot { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: #B9C7D8; }
.ptimes-foot strong { color: #fff; }
.ptimes-foot a { margin-left: auto; color: #F3E3A6; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ptimes-foot a:hover { color: #fff; }
.pband-empty { padding: 8px 0; }
.pband-empty h2 { color: #fff; margin: 0 0 6px; }
.pband-empty a { color: #F3E3A6; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* Slim bar (phones, once the band has scrolled away) */
.pslim { display: none; }

/* Light hero under the band */
.hero-light { background: var(--cream); color: var(--text); }
.hero-light::after { display: none; }
.hero-light .hero-grid { padding: 44px 0 52px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.hero-light h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 2.9rem); }
.hero-light h1 span { color: var(--gold-deep); }
.hero-light .hero-lead, .hero-light .hero-lead p { color: #3B4A5C; }
.hero-next { display: flex; flex-direction: column; gap: 10px; }
.hero-next .eyebrow { margin-bottom: 2px; }
.hero-ev { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.hero-ev:hover { border-color: var(--gold); }
.hero-ev strong { display: block; font-weight: 600; line-height: 1.3; }
.hero-ev small { display: block; color: var(--muted); margin-top: 2px; }

@media (max-width: 980px) {
  .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pnext { max-width: none; }
  .hero-light .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
  .pband-in { padding: 14px 0 16px; gap: 12px; flex-direction: column; }
  .pnext { flex: none; order: 1; background: var(--gold); color: var(--ink); border: 0; border-radius: 16px; padding: 14px 16px; gap: 2px; }
  .ptimes { display: contents; }
  .ptimes-head { order: 0; }
  .ptimes-head h2 { display: none; }
  .ptimes-date { width: 100%; display: flex; justify-content: space-between; font-size: .85rem; }
  .pnext-eyebrow { color: var(--ink); font-weight: 700; }
  .pnext-name { color: var(--ink); font-size: 1.9rem; }
  .pnext-time { color: var(--ink); }
  .pnext-count { color: var(--ink); font-size: 2.5rem; margin-top: 0; }
  .pnext-sub { color: var(--ink); font-weight: 500; }
  .pnext-bar { background: rgba(20,35,56,.18); height: 5px; margin-top: 6px; }
  .pnext-bar span { background: var(--ink); }
  .ptiles { order: 2; gap: 8px; }
  .ptile { padding: 9px 10px; gap: 1px; border-radius: 12px; }
  .ptile-name { font-size: 1rem; }
  .ptile-big { font-size: 1.25rem; order: 2; }
  .ptile-small { order: 3; text-transform: none; letter-spacing: 0; font-size: .72rem; }
  .ptile-tag { display: none; }
  .ptile.is-next { background: var(--gold-soft); border-color: var(--gold); }
  .ptimes-foot { order: 3; font-size: .82rem; }
  .ptimes-foot a { padding: 6px 0; }
  .pslim { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; top: 66px; z-index: 45; height: 46px; box-sizing: border-box; padding: 0 16px; background: var(--navy-deep); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(20,35,56,.2); transform: translateY(-140%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .pslim.on { transform: none; visibility: visible; }
  .pslim-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
  .pslim-label { font-size: .85rem; color: #B9C7D8; white-space: nowrap; }
  .pslim-name { font: 400 1.05rem/1 var(--display); white-space: nowrap; }
  .pslim-time { font-size: .9rem; font-weight: 700; color: #F3E3A6; font-variant-numeric: tabular-nums; }
  .pslim-count { margin-left: auto; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .pslim-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); transition: width 1s linear; }
  body.nav-open .pslim { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .pnext-bar span, .pslim-bar, .pslim { transition: none; } }

/* ABM logo */
.brand-logo { height: 54px; width: auto; flex: none; }
.f-strong { color: #fff; font-weight: 600; }
.f-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 12px 16px; line-height: 0; }
.f-logo img { width: 96px; height: auto; }
.f-name { margin: 14px 0 18px; color: #DCE5F0; }
.f-name strong { color: #fff; font-weight: 600; }
@media (max-width: 700px) { .brand-logo { height: 42px; } }

/* Popup (page-content links with "popup") */
.popup { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(10, 22, 38, .35); overflow: hidden; }
.popup[open] { display: flex; flex-direction: column; animation: popIn .22s ease-out; }
.popup::backdrop { background: rgba(14, 28, 46, .45); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.popup-body { overflow-y: auto; padding: 28px 28px 24px; overscroll-behavior: contain; }
.popup-body > :first-child { margin-top: 0; }
.popup-body > :first-child:not(.pick) { padding-right: 44px; }
.popup-body img { display: block; width: 100%; margin: 14px 0; border-radius: 12px; }
.popup-x { position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gold-soft); color: var(--navy-deep); display: grid; place-items: center; cursor: pointer; }
.popup-x svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.popup-x:hover, .popup-x:focus-visible { background: var(--gold); }
html:has(.popup[open]) { overflow: hidden; }
.prose a.popup-link { cursor: pointer; }
.popup-zoom { display: block; cursor: zoom-in; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .popup { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 14px; } .popup-body { padding: 22px 16px 18px; } }
.popup:has(.pick):not(.popup-wide) { width: min(520px, calc(100vw - 32px)); }
.popup-body .pick-h { margin: 0 0 16px; padding-right: 44px; }
.popup-body .pick-back + .pick-h { padding-right: 0; }
.pick-list { display: grid; gap: 12px; }
.pick-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font: inherit; font-weight: 600; color: var(--navy-deep); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pick-btn:hover, .pick-btn:focus-visible { border-color: var(--gold); box-shadow: 0 6px 18px rgba(28, 51, 80, .12); transform: translateY(-1px); }
.pick-thumb { flex: none; width: 76px; aspect-ratio: 4/3; border-radius: 9px; overflow: hidden; background: var(--gold-soft); }
.popup-body .pick-thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.pick-label { flex: 1; line-height: 1.3; }
.pick-btn svg, .pick-back svg { width: 20px; height: 20px; flex: none; stroke: var(--gold); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pick-back { display: inline-flex; margin-right: 44px !important; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px 6px 8px; border: 0; border-radius: 99px; background: var(--gold-soft); color: var(--navy-deep); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.pick-back:hover, .pick-back:focus-visible { background: var(--gold); }
.pick-hint { margin: 0; font-size: .85rem; color: var(--muted, #6b7280); text-align: center; }

/* "Cards" page layout (Admin → page → Layout → Cards) */
.prose-cards { display: grid; gap: 18px; }
.prose-cards > :is(p, ul, ol, h2) { margin: 0; }
.icard { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.icard-h { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
.icard-h h3 { margin: 0; font-size: 1.3rem; color: var(--navy-deep); }
.icard-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-deep); color: var(--gold); }
.icard-ic .ic { width: 22px; height: 22px; }
.icard-b { padding: 14px 20px 18px; }
.icard-b > :first-child { margin-top: 0; } .icard-b > :last-child { margin-bottom: 0; }
.icard-b p { margin: .5em 0; }
.prow { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 6px 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.icard-b > .prow:last-child, .prows > .prow:last-child { border-bottom: 0; }
.prows { list-style: none; padding: 0 !important; margin: 0; }
.prows > .prow::marker { content: none; }
.ptime { font-weight: 700; color: var(--navy-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptime::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.prule { color: var(--text); }
@media (max-width: 560px) {
  .icard-h { padding: 14px 16px; } .icard-b { padding: 12px 16px 16px; }
  .prow { grid-template-columns: 1fr; gap: 2px; }
  .icard-h h3 { font-size: 1.15rem; }
}

/* Search */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-btn { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); background: #fff; }
.search-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.search-btn .ic { width: 20px; height: 20px; }
@media (max-width: 1080px) { .search-btn { margin-left: auto; } .search-btn + .burger { margin-left: 8px; } }
@media (min-width: 981px) and (max-width: 1279px) { .masthead-in { gap: 14px; } .mainnav { gap: 12px; } .mainnav > ul { gap: 0; } .nav-top { padding: 10px 9px; font-size: .92rem; } .brand-logo { height: 46px; } .brand-text strong { font-size: 1.2rem; } .brand-text small { font-size: .64rem; letter-spacing: .1em; } }
@media (min-width: 981px) and (max-width: 1079px) { .mainnav > ul > li:has(> a.nav-top[href="/"]) { display: none; } }
.search-big { display: flex; gap: 10px; margin-top: 18px; max-width: 640px; }
.search-big input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); font: inherit; font-size: 1.05rem; background: #fff; color: var(--text); }
.search-big .btn { height: 52px; }
.search-404 input { border-color: var(--line); }
.search-wrap { padding-top: 28px; padding-bottom: 60px; }
.search-count { color: var(--muted); margin: 0 0 14px; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.search-results a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.search-results a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.sr-type { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.sr-title { font-size: 1.12rem; color: var(--navy-deep); }
.sr-snip { font-size: .93rem; color: var(--muted); line-height: 1.5; }
.sr-snip mark, .search-live mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-suggest { margin-top: 10px; }
.search-dlg { width: min(640px, calc(100vw - 24px)); margin: 10vh auto auto; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(10, 22, 38, .35); overflow: hidden; }
.search-dlg::backdrop { background: rgba(14, 28, 46, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.search-dlg-form { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.search-dlg-form > .ic { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-dlg-form input::-webkit-search-cancel-button { display: none; }
.search-dlg-form input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; font: inherit; font-size: 1.1rem; background: transparent; }
.search-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); display: grid; place-items: center; cursor: pointer; flex: none; }
.search-x .ic { width: 20px; height: 20px; }
.search-live { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.search-live:empty { display: none; }
.search-live a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-live a:hover, .search-live a.on { background: var(--cream); }
.search-live .sr-title { font-size: 1rem; }
.search-live .sr-snip { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-live .none { padding: 14px 12px; color: var(--muted); }
.search-all { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 12px; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; color: var(--navy); }
.search-all .ic { width: 16px; height: 16px; }
@media (max-width: 560px) { .search-dlg { margin-top: 12px; } .search-big .btn span { display: none; } }
@media print { .search-btn { display: none !important; } }
@media (max-width: 440px) {
  .masthead-in { gap: 10px; }
  .search-btn, .burger { width: 42px; height: 42px; }
  .search-btn + .burger { margin-left: 6px; }
  .brand-text small { white-space: nowrap; }
}
@media (max-width: 360px) { .brand-text strong { font-size: 1.15rem; } .brand-logo { height: 36px; } }
@media (max-width: 350px) { .brand-text small { font-size: .56rem; letter-spacing: .04em; } }
@media (max-width: 330px) { .brand-text small { font-size: .5rem; letter-spacing: .02em; } }

/* ---------- ABM Radio ---------- */
@keyframes rPulse { 0% { box-shadow: 0 0 0 0 rgba(217, 58, 43, .55); } 70% { box-shadow: 0 0 0 10px rgba(217, 58, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 58, 43, 0); } }
@keyframes rEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes rSpin { to { transform: rotate(360deg); } }
.radio-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #D93A2B; flex: none; }
.radio { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(10, 22, 38, .16); color: var(--navy-deep); font-family: var(--sans); max-width: calc(100vw - 32px); transition: background .25s, box-shadow .25s, border-radius .25s; }
.radio-play { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: var(--navy-deep); color: var(--gold); display: grid; place-items: center; cursor: pointer; }
.radio-play svg { width: 18px; height: 18px; fill: currentColor; grid-area: 1 / 1; }
.radio-play .r-i-radio { grid-area: 1 / 1; display: grid; place-items: center; }
.radio-play .r-i-radio .ic { width: 20px; height: 20px; }
.radio-play .r-i-play, .radio-play .r-i-pause, .radio-play .r-i-load { display: none; }
.r-i-load { grid-area: 1 / 1; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: rSpin .8s linear infinite; }
.radio-info { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; min-width: 0; text-decoration: none; color: inherit; line-height: 1.25; }
.radio-eyebrow { display: none; grid-column: 1 / -1; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: #FFB4AB; }
.radio-title { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-sub { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-short { display: none; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.radio-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.radio-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--gold); transform-origin: bottom; animation: rEq 1s infinite; }
.radio-eq i:nth-child(2) { animation-delay: .2s; } .radio-eq i:nth-child(3) { animation-delay: .4s; } .radio-eq i:nth-child(4) { animation-delay: .1s; }
.radio-min { display: none; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; place-items: center; }
.radio-min .ic { width: 16px; height: 16px; }
.radio:hover { box-shadow: 0 14px 36px rgba(10, 22, 38, .22); }
/* No standing player bar: it only appears once someone presses play (it's the only pause/stop control off the /live page) */
.radio:not(.is-playing):not(.is-loading) { display: none !important; }
/* live: dark pill with a pulsing red play button */
.radio.is-live { width: 340px; padding: 12px 12px 12px 14px; border-radius: 18px; background: #141C28; border-color: rgba(255, 255, 255, .08); color: #fff; box-shadow: 0 18px 50px rgba(10, 22, 38, .38); }
.radio.is-live .radio-play { width: 52px; height: 52px; background: #D93A2B; color: #fff; animation: rPulse 1.6s infinite; }
.radio.is-live .radio-play svg { width: 22px; height: 22px; }
.radio.is-live .radio-eyebrow { display: inline-flex; }
.radio.is-live .radio-eyebrow .radio-dot { background: #FF8A7D; }
.radio.is-live .radio-title { font-size: 1rem; }
.radio.is-live .radio-sub { color: #A9B7C8; }
.radio.is-live .radio-info { flex: 1; }
.radio.is-live .radio-min { display: grid; }
/* icon state: off-air shows the radio icon, otherwise play / pause / spinner */
.radio.is-live .radio-play .r-i-radio, .radio.is-playing .radio-play .r-i-radio, .radio.is-loading .radio-play .r-i-radio { display: none; }
.radio.is-live:not(.is-playing):not(.is-loading) .radio-play .r-i-play { display: block; }
.radio.is-playing .radio-play .r-i-pause { display: block; }
.radio.is-loading .radio-play .r-i-load { display: block; }
.radio.is-playing .radio-play, .radio.is-loading .radio-play { animation: none; background: var(--gold); color: var(--navy-deep); }
.radio.is-playing .radio-eq { display: inline-flex; }
.radio.is-playing:not(.is-live) { background: #141C28; color: #fff; border-color: transparent; }
.radio.is-playing:not(.is-live) .radio-sub { color: #A9B7C8; }
/* minimised while live: small red chip */
.radio.is-live.is-min { width: auto; padding: 6px 14px 6px 6px; border-radius: 99px; }
.radio.is-live.is-min .radio-play { width: 40px; height: 40px; }
.radio.is-live.is-min .radio-title, .radio.is-live.is-min .radio-sub, .radio.is-live.is-min .radio-eyebrow, .radio.is-live.is-min .radio-min { display: none; }
.radio.is-live.is-min .radio-short { display: inline; color: #FFB4AB; }
body.page-live .radio, body.page-live .radio-nudge { display: none !important; }

/* Jama'at nudge */
.radio-nudge { position: fixed; right: 24px; bottom: 118px; z-index: 46; width: 360px; max-width: calc(100vw - 24px); box-sizing: border-box; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 16px; border-radius: 18px; background: #141C28; color: #fff; box-shadow: 0 18px 50px rgba(10, 22, 38, .45); animation: popIn .25s ease-out; }
.radio-nudge[hidden] { display: none; }
.radio-nudge-ic { width: 44px; height: 44px; border-radius: 50%; background: #D93A2B; display: grid; place-items: center; animation: rPulse 1.6s infinite; }
.radio-nudge-ic .ic { width: 22px; height: 22px; color: #fff; }
.radio-nudge-txt { display: flex; flex-direction: column; gap: 3px; font-size: .86rem; color: #A9B7C8; }
.radio-nudge-txt strong { font-size: 1rem; color: #fff; }
.radio-nudge-x { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.radio-nudge-x .ic { width: 14px; height: 14px; }
.radio-nudge-btns { grid-column: 1 / -1; display: flex; gap: 10px; }
.radio-nudge-btns .btn { flex: 1; justify-content: center; }
.radio-nudge-btns svg { width: 16px; height: 16px; fill: currentColor; }
.radio-nudge-no { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* top bar badge */
.tb-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 99px; background: #D93A2B; color: #fff; text-decoration: none; font-weight: 700; font-size: .75rem; letter-spacing: .05em; white-space: nowrap; flex: none; }
.tb-live[hidden] { display: none; }
.tb-live:hover { background: #B42318; color: #fff; }
.tb-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: rPulse 1.6s infinite; }

/* prayer band */
body.radio-live .pnext { border-color: rgba(217, 58, 43, .75); }
.pnext-live { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pnext-live[hidden] { display: none; }
.pnext-live-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFB4AB; }
.pnext-live-tag .radio-dot { animation: rPulse 1.6s infinite; }
.pnext-listen { justify-content: center; height: 48px; background: #D93A2B; color: #fff; border: 0; font-size: 1rem; }
.pnext-listen:hover { background: #B42318; color: #fff; }
.pnext-listen svg { width: 18px; height: 18px; fill: currentColor; }
body.radio-playing .pnext-listen { background: var(--gold); color: var(--navy-deep); }
.pnext-live-sub { font-size: .85rem; color: #C9D6E5; }
.pnext-radio { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #DCE4EE; font-size: .85rem; text-decoration: none; align-self: flex-start; }
.pnext-radio[hidden] { display: none; }
.pnext-radio .ic { width: 16px; height: 16px; color: var(--gold); }
.pnext-radio:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ptile.is-live { background: #D93A2B; border-color: #D93A2B; color: #fff; opacity: 1; }
.ptile.is-live .ptile-tag::before { content: "● LIVE · "; }

/* phone dock: Live replaces Visit while live */
.dock .dock-live { display: none; color: #B42318; }
body.radio-live .dock .dock-live { display: flex; }
body.radio-live .dock .dock-visit { display: none; }
.dock-live-ic { position: relative; display: inline-grid; }
.dock-live-ic::after { content: ""; position: absolute; top: -1px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #D93A2B; }

@media (max-width: 700px) {
  .radio { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .radio:not(.is-live):not(.is-playing) .radio-title, .radio:not(.is-live):not(.is-playing) .radio-sub { display: none; }
  .radio:not(.is-live):not(.is-playing) .radio-short { display: inline; }
  .radio:not(.is-live):not(.is-playing) .radio-play { width: 34px; height: 34px; }
  .radio.is-live:not(.is-min), .radio.is-playing:not(.is-min) { left: 12px; right: 12px; width: auto; }
  .radio-nudge { left: 12px; right: 12px; width: auto; bottom: calc(160px + env(safe-area-inset-bottom)); }
  body.radio-live .footer, body.radio-playing .footer { padding-bottom: 90px; }
}

@media print { .radio, .radio-nudge, .tb-live { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .radio-play, .tb-live-dot, .radio-nudge-ic, .pnext-live-tag .radio-dot { animation: none !important; } .radio-eq i { animation: none; } }

/* /live page */
.live-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; padding: 56px 0 64px; }
.live-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.live-copy h1 { margin: 6px 0 12px; font: 400 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--display); color: #fff; }
.live-lead { margin: 0 0 18px; font-size: 1.1rem; line-height: 1.6; color: #C9D6E5; max-width: 34em; }
.live-wa { background: #25D366; color: #0B3B22; border: 0; }
.live-wa:hover { background: #1EBE5A; color: #0B3B22; }
.live-card { border-radius: 24px; background: #141C28; padding: 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .06); }
body.radio-live .live-card { border-color: rgba(217, 58, 43, .6); }
.live-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 12px; border-radius: 99px; background: #D93A2B; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.live-pill[hidden] { display: none; }
.live-pill-off { background: rgba(255, 255, 255, .1); color: #DCE4EE; }
.live-pill-off .ic { width: 15px; height: 15px; color: var(--gold); }
.live-count { margin-left: auto; font-size: .9rem; color: #A9B7C8; }
.live-main { display: flex; align-items: center; gap: 20px; }
.live-play { flex: none; width: 92px; height: 92px; border-radius: 50%; border: 0; padding: 0; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; cursor: pointer; }
body.radio-live .live-play { background: #D93A2B; color: #fff; animation: rPulse 1.6s infinite; }
body.radio-playing .live-play { background: var(--gold); color: var(--navy-deep); animation: none; }
.live-play svg { width: 36px; height: 36px; fill: currentColor; grid-area: 1 / 1; }
.live-play .r-i-pause { display: none; }
body.radio-playing .live-play .r-i-pause { display: block; }
body.radio-playing .live-play .r-i-play { display: none; }
.live-now { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.live-now strong { font: 400 2rem/1.1 var(--display); }
.live-now span { color: #A9B7C8; font-size: .95rem; }
.live-note { margin: 0; font-size: .88rem; color: #A9B7C8; }
.live-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 40px 0 64px; }
.live-today, .live-how { border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 24px 26px; }
.live-today h2, .live-how h2 { margin: 0 0 4px; font: 400 1.6rem var(--display); color: var(--navy-deep); }
.live-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.live-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.live-list li.is-done { opacity: .55; }
.live-list li.is-now { background: #D93A2B; border-color: #D93A2B; color: #fff; opacity: 1; }
.live-list li.is-now small { color: #FFE1DD; }
.live-time { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-list small { font-size: .76rem; color: var(--muted); }
.live-jum { margin: 16px 0 0; }
.live-how ul { margin: 12px 0 0; padding-left: 1.1em; display: grid; gap: 10px; line-height: 1.5; }
.live-how code { font-size: .82rem; word-break: break-all; background: var(--cream); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 860px) { .live-hero-in, .live-body { grid-template-columns: minmax(0, 1fr); } .live-hero { padding: 36px 0 40px; } .live-play { width: 76px; height: 76px; } .live-now strong { font-size: 1.6rem; } }
/* phone: the countdown card is gold, so the radio parts use dark colours there */
@media (max-width: 700px) {
  .pnext-live-tag { color: #8E1B10; }
  .pnext-live-tag .radio-dot { background: #B42318; }
  .pnext-live-sub { color: var(--navy-deep); }
  body.radio-playing .pnext-listen { background: var(--navy-deep); color: #fff; }
  .pnext-radio { background: rgba(28, 51, 80, .12); color: var(--navy-deep); font-weight: 600; }
  .pnext-radio .ic { color: var(--navy-deep); }
  .pnext-radio:hover { background: rgba(28, 51, 80, .2); color: var(--navy-deep); }
  body.radio-live .pnext { box-shadow: 0 0 0 3px #D93A2B; }
}
.pnext-listen .r-i-pause { display: none; } body.radio-playing .pnext-listen .r-i-pause { display: block; } body.radio-playing .pnext-listen .r-i-play { display: none; }

/* While live, the countdown card is about the live prayer; the next prayer drops to one small line */
body.radio-live .pnext-cd { display: none; }
.pnext-live { margin-top: 0; }
body:not(.radio-live) .pnext-live { margin-top: 12px; }
.pnext-live-name { font: 400 clamp(1.9rem, 3.2vw, 2.3rem)/1.1 var(--display); color: #fff; }
.pnext-live-next { font-size: .82rem; color: #A9B7C8; font-variant-numeric: tabular-nums; }
.pnext-live-next strong { color: #fff; font-weight: 600; }
@media (max-width: 700px) {
  .pnext-live-name { color: var(--navy-deep); }
  .pnext-live-next { color: rgba(28, 51, 80, .8); }
  .pnext-live-next strong { color: var(--navy-deep); }
}
/* countdown first, then the prayer and its time */
.pnext-count { margin-top: 4px; }
.pnext-title { margin-top: 2px; }
.pnext-name { font-size: 2.1rem; }
@media (max-width: 700px) { .pnext-name { font-size: 1.7rem; } }

/* ---------- Event live broadcast ---------- */
.evd-live { margin: 0 0 28px; border-radius: 18px; border: 1px solid var(--line); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.evd-live.is-now { background: #141C28; border-color: #141C28; color: #fff; box-shadow: var(--shadow-lg); }
.evd-live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: #A9B7C8; }
.evd-live-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 12px; border-radius: 99px; background: #D93A2B; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.evd-live-tag span { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: evdBlink 1.4s ease-in-out infinite; }
@keyframes evdBlink { 50% { opacity: .35; } }
.evd-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.evd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.evd-live-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.evd-live-btns .btn { flex: 1 1 200px; justify-content: center; }
.evd-live.is-now .btn-line { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-red { background: #D93A2B; border-color: #D93A2B; color: #fff; }
.btn-red:hover { background: #B42318; border-color: #B42318; color: #fff; }
.btn-red svg { width: 18px; height: 18px; fill: currentColor; }
.btn-red .r-i-pause, body.radio-playing .btn-red .r-i-play { display: none; }
body.radio-playing .btn-red .r-i-pause { display: inline; }
.evd-live-off { display: flex; align-items: center; gap: 14px; }
.evd-live-off > svg { width: 30px; height: 30px; flex: none; color: #D93A2B; }
.evd-live-off > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.evd-live-off span { font-size: 14px; color: var(--muted); }
[data-radio][hidden] { display: none !important; }

/* ---------- Event photos ---------- */
.evd-gallery { margin-top: 36px; scroll-margin-top: 110px; }
.evd-gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.evd-gallery-head h2 { margin: 0; font: 400 1.9rem/1.15 var(--display); color: var(--ink); }
.evd-gallery-head span { color: var(--muted); font-size: .95rem; }
.gal { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; }
.gal-item { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--cream); cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gal-item:hover img { transform: scale(1.04); }
.gal-1 { grid-template-columns: 1fr; grid-auto-rows: auto; }
.gal-1 .gal-item img { height: auto; max-height: 560px; }
.gal-3 { grid-template-columns: 2fr 1fr; grid-auto-rows: 170px; }
.gal-3 .gal-item:first-child { grid-row: span 2; }
.gal-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 160px; }
.gal-5 .gal-item:first-child { grid-column: span 2; grid-row: span 2; }
.gal-more-hidden { display: none; }
.gal-item[data-more]::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 28, 40, .55); color: #fff; font: 600 1.6rem/1 var(--sans); }
.evd-gallery-cta { margin: 16px 0 0; font-weight: 600; color: var(--ink); }
.evd-gallery-cta a { display: inline-flex; align-items: center; gap: 6px; }
.evd-gallery-cta svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .gal { gap: 6px; grid-auto-rows: 150px; }
  .gal-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; }
  .gal-3 .gal-item:first-child { grid-column: span 2; grid-row: span 2; }
  .gal-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
}
/* photo viewer */
.lbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 20, .94); color: #fff; }
.lbox::backdrop { background: rgba(8, 12, 20, .94); }
.lbox[open] { display: grid; place-items: center; animation: popIn .2s ease-out; }
.lbox-fig { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 64px; box-sizing: border-box; }
.lbox-fig img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lbox-fig figcaption { max-width: 760px; text-align: center; font-size: 1rem; color: #E4E9F0; }
.lbox-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lbox-btn:hover { background: rgba(255, 255, 255, .22); }
.lbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lbox-x { top: 14px; right: 14px; }
.lbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lbox-count { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-size: .9rem; color: #A9B7C8; }
.lbox-single .lbox-prev, .lbox-single .lbox-next, .lbox-single .lbox-count { display: none; }
@media (max-width: 640px) {
  .lbox-fig { padding: 60px 8px 24px; }
  .lbox-prev, .lbox-next { top: auto; bottom: 18px; transform: none; }
  .lbox-fig img { max-height: calc(100dvh - 190px); }
}
/* card badge + recent strip */
.ev-photos-badge { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(20, 28, 40, .72); color: #fff; font-size: .78rem; font-weight: 600; }
.ev-photos-badge svg { width: 14px; height: 14px; }
.recent-pics { margin-top: 48px; }
.recent-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.recent-pic { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: var(--cream); }
.recent-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.recent-pic:hover img { transform: scale(1.04); }
.recent-pic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgba(14, 22, 34, .85)); color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .recent-strip { grid-auto-columns: 72%; } }
/* the next-on-air line wraps onto two lines on narrow phones instead of widening the card */
.pnext { min-width: 0; }
.pnext-radio { max-width: 100%; box-sizing: border-box; line-height: 1.35; }
.pnext-radio .ic { flex: none; }
.pnext-radio [data-r="next"] { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Mailing list: footer box + /subscribe pages ---------- */
.f-news { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: 16px 40px; margin: -16px auto 48px; padding: 24px 28px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); box-sizing: border-box; }
.f-news h3 { margin: 0 0 6px; }
.f-news p { margin: 0; color: #C9D3E0; line-height: 1.5; }
.f-news-form { display: flex; gap: 10px; width: 100%; }
.f-news-form input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #fff; font: inherit; box-sizing: border-box; }
.f-news-form input::placeholder { color: rgba(255,255,255,.6); }
.f-news-form input:focus { outline: 3px solid var(--gold); outline-offset: 1px; background: rgba(255,255,255,.11); }
.f-news-form .btn { flex: none; height: 50px; padding: 0 22px; justify-content: center; }
@media (max-width: 860px) { .f-news { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 22px 20px; margin-bottom: 40px; } }
@media (max-width: 420px) { .f-news-form { flex-direction: column; } .f-news-form input { flex: none; width: 100%; } .f-news-form .btn { width: 100%; } }
.subscribe-page .sub-lead { font-size: 1.08rem; margin: 0 0 18px; }
.sub-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sub-topic { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.sub-topic input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.sub-topic span { display: flex; flex-direction: column; gap: 2px; }
.sub-topic small { color: var(--muted); font-size: .86rem; }
.sub-topic:has(input:checked) { border-color: var(--gold); background: #FFFBEF; }
.sub-consent { font-size: .88rem; color: var(--muted); margin: 18px 0; }
.cf-turnstile { margin: 0 0 16px; }
.sub-done { text-align: center; padding: 10px 0; }
.sub-done h2 { margin: 12px 0 8px; }
.sub-done .btn-row { justify-content: center; }
.sub-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cream); color: var(--gold-deep, #A88A2A); }
.sub-ic svg { width: 30px; height: 30px; }
.sub-ic.ok { background: #E6F3EC; color: #1E7B4A; }
@media (max-width: 600px) { .sub-topics { grid-template-columns: 1fr; } }

/* Cloudflare Turnstile: full width of the form, never wider than the screen */
.cf-turnstile { width: 100%; max-width: 100%; margin: 6px 0 14px; }
.cf-turnstile:empty { margin: 0; }
.cf-turnstile iframe { max-width: 100%; }
.cf-turnstile.cf-needed { padding: 8px; border-radius: 12px; outline: 2px solid var(--gold); }

/* Floating radio player: only while something is live or playing */
.radio.is-offair { display: none !important; }

/* ---------- Subscribe pop-up ---------- */
.sub-pop { position: fixed; right: 24px; bottom: 24px; z-index: 47; width: 380px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 20px 20px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(10, 22, 38, .28); opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.sub-pop.is-open { opacity: 1; transform: none; }
.sub-pop-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sub-pop-x:hover { background: #EFE7D3; }
.sub-pop-x svg { width: 16px; height: 16px; }
.sub-pop-head { display: flex; gap: 12px; align-items: flex-start; padding-right: 30px; }
.sub-pop-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.sub-pop-ic svg { width: 22px; height: 22px; }
.sub-pop h2 { margin: 2px 0 4px; font: 400 1.35rem/1.15 var(--display); color: var(--ink); }
.sub-pop-short { display: none; }
.sub-pop p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--muted); }
.sub-pop-form { display: flex; gap: 8px; margin-top: 14px; }
.sub-pop-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font: inherit; box-sizing: border-box; }
.sub-pop-form input:focus { outline: 3px solid var(--gold); outline-offset: 1px; background: #fff; }
.sub-pop-form .btn { flex: none; height: 46px; padding: 0 18px; justify-content: center; }
.sub-pop-no { display: block; margin: 8px auto 0; padding: 6px 10px; border: 0; background: none; font: 500 .85rem var(--sans); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* Phones: a slim card — one heading line, one form row, × to close (about 120px tall) */
@media (max-width: 760px) {
  .sub-pop { left: 10px; right: 10px; width: auto; max-width: none; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 12px 12px 12px 14px; border-radius: 16px; border-top: 3px solid var(--gold); }
  .sub-pop-x { top: 8px; right: 8px; width: 30px; height: 30px; }
  .sub-pop-x svg { width: 14px; height: 14px; }
  .sub-pop-head { align-items: center; gap: 10px; padding-right: 34px; }
  .sub-pop-ic { width: 34px; height: 34px; border-radius: 10px; }
  .sub-pop-ic svg { width: 18px; height: 18px; }
  .sub-pop h2 { margin: 0; font-size: 1.1rem; }
  .sub-pop p { font-size: .8rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sub-pop-form { margin-top: 10px; gap: 8px; }
  .sub-pop-form input { height: 42px; padding: 0 14px; font-size: 16px; } /* 16px stops iPhones zooming in */
  .sub-pop-form .btn { height: 42px; padding: 0 16px; font-size: .9rem; }
  .sub-pop-no, .sub-pop-more { display: none; }
  .sub-pop-txt { min-width: 0; }
  .sub-pop-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .sub-pop { transition: none; } }

/* ---------- Cookie banner (Google Analytics only; shown until the visitor chooses) ---------- */
.consent[data-consent] { position: fixed; left: 24px; bottom: 24px; z-index: 48; width: 420px; max-width: calc(100vw - 24px); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--ink); color: #DCE3EC; box-shadow: 0 18px 50px rgba(10, 22, 38, .4); font-size: .9rem; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.consent[data-consent].is-open { opacity: 1; transform: none; }
.consent[data-consent] p { margin: 0; }
.consent[data-consent] strong { color: #fff; }
.consent[data-consent] a { color: var(--gold); }
.consent-btns { display: flex; gap: 8px; justify-content: flex-end; }
.consent[data-consent] .btn-line { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
@media (max-width: 760px) { .consent[data-consent] { left: 12px; right: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); } .consent-btns .btn { flex: 1; justify-content: center; } }
.consent[data-consent][hidden], .sub-pop[hidden] { display: none !important; }


/* Back to top */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 44; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: var(--navy-deep); color: var(--gold); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px rgba(10, 22, 38, .22); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s, background .2s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media print { .to-top { display: none; } }
@media (max-width: 700px) { .to-top { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 42px; height: 42px; } }
/* Education arch: photo or drawing */
.arch-art.has-photo { background: var(--navy); overflow: hidden; }
.arch-art.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.madrasah-art { width: 72%; height: auto; color: var(--gold); }

/* ---------- Ramadan ---------- */
.rm-strip-top { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; background: var(--gold); color: var(--navy-deep); font-size: .9rem; font-weight: 600; text-decoration: none; line-height: 1.3; text-align: center; }
.rm-strip-top:hover { background: #DDBC52; }
.rm-strip-top strong { font-weight: 800; }
.rm-st-moon { font-size: 1.05rem; }
.rm-st-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; white-space: nowrap; }
.rm-st-go .ic { width: 15px; height: 15px; }

.rm-band { background: linear-gradient(160deg, var(--navy-deep) 0%, #14243B 100%); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rm-band-in { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto minmax(0, 1fr); gap: 14px 22px; align-items: center; padding: 16px 0; }
.rm-band .eyebrow { color: var(--gold); margin: 0; }
.rm-band-day { display: flex; flex-direction: column; gap: 4px; }
.rm-band-cd { color: #C9D6E5; font-size: .95rem; }
.rm-band-cd b { color: var(--gold); font-weight: 800; }
.rm-band-t { min-width: 128px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; }
.rm-band-t small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.rm-band-t strong { font-size: 1.7rem; line-height: 1.15; font-weight: 800; }
.rm-band-ift { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.rm-band-in.is-iftar .rm-band-ift { box-shadow: 0 0 0 4px rgba(209, 173, 60, .35); }
.rm-band-link { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: #F3E3A6; font-weight: 700; text-decoration: none; }
.rm-band-link .ic { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .rm-band-in { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0 16px; }
  .rm-band-day { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .rm-band-t { min-width: 0; }
  .rm-band-link { grid-column: 1 / -1; justify-self: start; font-size: .92rem; }
}

.rm-preview { background: #FFF3D6; color: #6B5310; font-size: .9rem; font-weight: 600; padding: 8px 0; border-bottom: 1px solid #F0DFA8; }
.rm-preview .wrap { display: flex; gap: 8px; align-items: center; }
.rm-preview .ic { width: 16px; height: 16px; }
.rm-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; padding: 46px 0 42px; border-bottom: 5px solid var(--gold); }
.rm-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.rm-hero .eyebrow { color: var(--gold); }
.rm-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3rem); margin: 4px 0 8px; }
.rm-lead { color: #C9D6E5; margin: 0 0 16px; }
.rm-daypill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-weight: 600; font-size: .92rem; }
.rm-today { background: #fff; color: var(--ink); border-radius: 18px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; box-shadow: var(--shadow-lg); }
.rm-tbox { border-radius: 14px; padding: 12px 16px; background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; }
.rm-tbox strong { font: 800 2.1rem/1.1 var(--sans); color: var(--navy-deep); margin: 2px 0; }
.rm-tbox small { color: var(--muted); font-size: .85rem; }
.rm-tlab { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.rm-iftar { background: var(--gold); border-color: var(--gold); }
.rm-iftar .rm-tlab, .rm-iftar small { color: var(--navy-deep); }
.rm-cd { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--navy-deep); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: .92rem; }
.rm-cd b { font-size: 1.4rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.rm-today.is-iftar .rm-cd b { font-size: 1rem; }

.rm-wrap { padding-top: 28px; padding-bottom: 48px; }
.rm-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-cal-hint { font-size: .85rem; color: var(--muted); margin: 8px 0 24px; }
.rm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rm-head h2 { margin: 0; }
.rm-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--gold-soft); color: var(--gold-deep); vertical-align: middle; white-space: nowrap; }
.rm-tag.star { background: var(--navy-deep); color: var(--gold); }
.rm-table-wrap { overflow-x: auto; }
.rm-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rm-table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); }
.rm-table td { padding: 10px; border-bottom: 1px solid #F0EBDD; vertical-align: top; }
.rm-table td.n { font: 400 1.15rem var(--display); color: var(--navy); width: 52px; }
.rm-table td.b { font-weight: 800; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.rm-table tr.fri td { background: #F7F9FC; }
.rm-table tr.odd td { background: #FBF8EF; }
.rm-table tr.now td { background: var(--gold-soft); }
.rm-table tr.now td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.rm-table tr.eid td { background: var(--navy-deep); color: #fff; }
.rm-table tr.eid td.n { color: var(--gold); }
.rm-prog { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.rm-days { display: none; }
.rm-k { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #F0EBDD; }
.rm-k b { color: var(--navy-deep); font-variant-numeric: tabular-nums; text-align: right; }
.rm-k b a { color: inherit; }
.rm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.rm-c { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; }
.rm-c h3 { margin: 2px 0 10px; }
.rm-c .eyebrow { margin: 0; }
.rm-c-btn { margin-top: 12px; }
.rm-daily { margin-top: 16px; max-width: 560px; }
.rm-note { margin-top: 22px; }
.rm-soon { margin-top: 10px; }
@media (max-width: 860px) {
  .rm-hero { padding: 30px 0 28px; }
  .rm-hero-in { grid-template-columns: 1fr; gap: 20px; }
  .rm-tbox strong { font-size: 1.8rem; }
  .rm-cards { grid-template-columns: 1fr; }
  .rm-table-wrap { display: none; }
  .rm-days { display: block; }
  .rm-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .rm-d { flex: none; width: 58px; padding: 7px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; scroll-snap-align: center; cursor: pointer; font: inherit; color: inherit; }
  .rm-d small { display: block; font-size: .68rem; color: var(--muted); }
  .rm-d b { font: 400 1.25rem var(--display); color: var(--navy); }
  .rm-d.odd { border-color: var(--gold); }
  .rm-d.on { background: var(--navy-deep); border-color: var(--navy-deep); }
  .rm-d.on b { color: var(--gold); } .rm-d.on small { color: #C9D6E5; }
  .rm-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 6px; }
  .rm-card-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
  .rm-card-h .rm-tag { margin-left: 0; }
  .rm-k-ift b { font-size: 1.15rem; }
}
@media print {
  .rm-strip-top, .rm-band, .rm-tools, .rm-cal-hint, .rm-preview, .rm-days { display: none !important; }
  .rm-table-wrap { display: block !important; }
  .rm-hero { background: none; color: #000; border: 0; padding: 0; } .rm-hero h1 { color: #000; } .rm-today { display: none; }
}
@media (max-width: 480px) { .rm-strip-top { font-size: .8rem; padding: 7px 12px; justify-content: space-between; text-align: left; } .rm-st-moon { display: none; } }
.rm-st-short { display: none; }
@media (max-width: 700px) { .rm-st-long { display: none; } .rm-st-short { display: inline; } }
@media (max-width: 389px) { .rm-st-word { display: none; } .rm-strip-top { gap: 8px; } }
/* Hijri date */
.tb-hijri { color: var(--gold); font-weight: 600; }
.ptimes-hijri { color: var(--gold); font-weight: 600; }
.ptimes-day { display: inline; }
.nav-hijri { display: none; }
@media (max-width: 980px) { .nav-hijri { display: block; margin-top: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep); } }
@media (max-width: 700px) {
  .ptimes-date { align-items: flex-start; }
  .ptimes-day { display: flex; flex-direction: column-reverse; gap: 2px; }
  .ptimes-hijri { color: var(--gold); font-weight: 600; }
  .ptimes-date .ptimes-sep { display: none; }
}
.tt-hijri { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
@media (min-width: 981px) { .ptimes-hijri { display: none; } } /* desktop: the Hijri date is already in the top bar */

/* ---------- Donate: gold circle inside the phone bar, in line with the other buttons ---------- */
@media (max-width: 700px) {
  .dock .dock-gold { color: var(--navy-deep); font-weight: 800; }
  .dock .dock-gold-ic { display: grid; place-items: center; width: 32px; height: 32px; margin: -9px 0 -1px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); box-shadow: 0 3px 8px rgba(160, 120, 20, .35); transition: transform .15s; }
  .dock .dock-gold-ic .ic { width: 17px; height: 17px; fill: currentColor; }
  .dock .dock-gold:active .dock-gold-ic { transform: scale(.94); }
  .topbar .tb-links a.tb-donate { display: none; } /* the big button replaces it on phones */
}

/* ---------- Donate card ---------- */
.dn-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 32px; align-items: center; margin: 28px 0; padding: 24px 28px; border-radius: 22px; background: linear-gradient(150deg, #F6E7B4 0%, #E9CF73 100%); color: var(--navy-deep); box-shadow: 0 12px 30px rgba(160, 120, 20, .22); }
.dn-home { margin: 28px 0 8px; }
.dn-eye { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-deep); }
.dn-h { margin: 6px 0 6px; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; color: var(--navy-deep); }
.dn-t { margin: 0; font-size: .98rem; color: #3A3418; }
.dn-act { display: flex; flex-direction: column; gap: 10px; }
.dn-amts { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.dn-amts a { text-align: center; padding: 11px 0; border-radius: 12px; background: rgba(255, 255, 255, .78); font-weight: 800; color: var(--navy-deep); text-decoration: none; transition: background .15s; }
.dn-amts a:hover { background: #fff; }
.dn-go { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 15px; border-radius: 14px; background: var(--navy-deep); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.dn-go:hover { background: var(--navy); color: #fff; }
.dn-go .ic { width: 20px; height: 20px; color: var(--gold); }
.prose .dn-card h2 { margin-top: 6px; }
.prose .dn-card a { text-decoration: none; }
@media (max-width: 760px) { .dn-card { grid-template-columns: 1fr; padding: 18px; border-radius: 20px; } }
@media print { .dn-card { display: none; } }

/* Search: highlighted words on the page */
mark.hl-mark { background: #F6E7B4; color: inherit; border-radius: 3px; padding: 0 2px; box-shadow: 0 0 0 1px rgba(209, 173, 60, .35); }
mark.hl-mark.on { background: var(--gold); color: var(--navy-deep); box-shadow: 0 0 0 3px rgba(209, 173, 60, .45); }
.hl-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 99px; background: var(--navy-deep); color: #fff; font-size: .88rem; box-shadow: 0 10px 28px rgba(10, 22, 38, .3); max-width: calc(100vw - 24px); }
.hl-count { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 6px; }
.hl-bar button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; flex: none; }
.hl-bar button:hover { background: rgba(255, 255, 255, .2); }
.hl-bar .hl-x { background: transparent; }
@media (max-width: 700px) { .hl-bar { bottom: calc(118px + env(safe-area-inset-bottom)); } }
@media print { .hl-bar { display: none; } mark.hl-mark { background: none; box-shadow: none; } }

/* Privacy policy: how long we keep information ([retention]) */
.retention-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
.retention-table th, .retention-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.retention-table th { font-weight: 700; color: var(--navy-deep); background: #F6F8FB; }
@media (max-width: 560px) { .retention-table th:first-child, .retention-table td:first-child { width: 45%; } }

/* Map shown only when asked for */
.map-click { display: grid; background: var(--navy-deep) var(--star) center / 56px; border-radius: inherit; }
.map-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 28px 20px; min-height: 380px; color: #E6ECF3; background: radial-gradient(ellipse at center, rgba(28,51,80,.55), rgba(28,51,80,.92) 70%); }
.map-cover strong { font: 400 1.5rem/1.2 var(--display); color: #fff; }
.map-cover-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(209,173,60,.16); color: var(--gold); margin-bottom: 4px; }
.map-cover-ic .ic { width: 26px; height: 26px; }
.map-cover-addr { color: #B9C7D8; font-size: .95rem; }
.map-cover-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0 6px; }
.map-cover small { color: #9FB0C4; font-size: .78rem; }

/* Privacy notes beside forms and sign-ups */
.form-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.form-privacy .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--navy); }
.form-privacy a, .sub-privacy a, .f-news-privacy a { color: var(--navy); font-weight: 600; }
.sub-privacy { margin: 8px 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.f-news-privacy { margin: 6px 0 0 !important; font-size: .82rem; opacity: .85; }
.footer .f-news-privacy a, .f-news .f-news-privacy a { color: var(--gold); }

/* "The form will reset in 5 seconds" after sending */
.form-reset { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.form-reset b { display: inline-block; min-width: 1.2em; text-align: center; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.form-reset a { color: var(--navy); font-weight: 600; margin-left: 6px; }

/* Repeating events: "Not on 17 & 19 Feb" */
.ev-skip { display: inline-block; margin: 8px 0 0; padding: 4px 9px; border-radius: 8px; background: #FFF4ED; color: #9A3412; font-size: .82rem; font-weight: 600; }
.evd-date .ev-skip { margin-top: 6px; }

/* Tables on phones: each row becomes a small card, each cell labelled with its column heading */
@media (max-width: 640px) {
  .prose table.stack, table.stack { display: block; overflow: visible; border: 0; font-size: .95rem; }
  table.stack thead { display: none; }
  table.stack tbody, table.stack tr, table.stack td { display: block; width: auto !important; }
  table.stack tr { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  table.stack td { padding: 4px 0; border: 0 !important; background: none !important; }
  table.stack td + td { margin-top: 6px; }
  table.stack td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  table.stack td:first-child { font-weight: 600; color: var(--ink); }
  table.stack td:first-child::before { display: none !important; }
}
