/* Masjid Tawheed — public website styles.
   Colours come from the masjid logo: deep masjid green and copper-gold.
   The prayer board is the one loud element; everything else stays quiet and orderly. */
:root {
  --board: #0b2119;          /* prayer board, footer: darkest green */
  --bg: #0f2a20;             /* page */
  --bg-2: #133427;           /* alternate sections */
  --surface: #18392c;        /* panels, inputs */
  --surface-2: #1e4535;
  --ink: #f3ecdc;            /* text on green */
  --muted: #b5c0b3;
  --line: rgba(233, 199, 127, .16);
  --line-2: rgba(233, 199, 127, .32);
  --gold: #c8924a;           /* buttons, accents */
  --gold-2: #e9c77f;         /* gold text on green */
  --on-gold: #0b2119;
  --danger: #e58b78;
  --ok: #9fd6b4;
  --radius: 14px;
  --display: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Amiri', 'Noto Naskh Arabic', serif;
  --wrap: 1200px;
  --b-acc: #e9c77f;          /* gold on the dark board, header and footer */
  --b-rgb: 233 199 127;
  --dz: 1; --dzs: 1;         /* display type scale: wide typefaces in some themes run smaller */
  --d-case: none; --d-track: .005em;
  color-scheme: dark;
}
/* Light version (chosen in the admin under Display): pale sage paper, the prayer board stays dark */
:root[data-theme="light"] {
  --bg: #eef1ea; --bg-2: #e3e9e0; --surface: #ffffff; --surface-2: #f4f6f1;
  --ink: #12261d; --muted: #4f6158; --line: rgba(18, 38, 29, .14); --line-2: rgba(18, 38, 29, .28);
  --gold: #b17a32; --gold-2: #8a5a1c; --on-gold: #ffffff; --danger: #a3372a; --ok: #1f6b45;
  color-scheme: light;
}

/* ---------- website themes (chosen in the admin under Display) ----------
   Night & Gold is the default above. Each theme sets its own colours and display typeface.
   Light/dark still applies on top, except Stone, which is a daytime theme and always light. */
:root[data-skin="lapis"] {
  --board: #081430; --bg: #0c1c3d; --bg-2: #10234a; --surface: #152a55; --surface-2: #1b3363;
  --ink: #eef2fa; --muted: #aab6cf; --line: rgba(214, 182, 104, .16); --line-2: rgba(214, 182, 104, .34);
  --gold: #c9a14a; --gold-2: #e6c97f; --on-gold: #081430; --b-acc: #e6c97f; --b-rgb: 230 201 127;
}
:root[data-skin="lapis"][data-theme="light"] {
  --bg: #edf1f8; --bg-2: #e2e8f3; --surface: #ffffff; --surface-2: #f3f6fb;
  --ink: #0f1d3a; --muted: #4f5d78; --line: rgba(15, 29, 58, .14); --line-2: rgba(15, 29, 58, .28);
  --gold: #1d3f8f; --gold-2: #8a6416; --on-gold: #ffffff; --danger: #a3372a; --ok: #1f6b45;
}
:root[data-skin="andalus"] {
  --board: #1a0c18; --bg: #241221; --bg-2: #2c1729; --surface: #361d32; --surface-2: #43243e;
  --ink: #f6ebe4; --muted: #c9b3bf; --line: rgba(91, 196, 183, .16); --line-2: rgba(91, 196, 183, .34);
  --gold: #3fb3a4; --gold-2: #86d8cc; --on-gold: #1a0c18; --b-acc: #e2b867; --b-rgb: 226 184 103;
  --display: 'Marcellus', 'Cinzel', Georgia, serif; --dz: .6; --dzs: .8;
}
:root[data-skin="andalus"][data-theme="light"] {
  --bg: #f6eee9; --bg-2: #efe3dc; --surface: #ffffff; --surface-2: #faf5f2;
  --ink: #2a1426; --muted: #6b5463; --line: rgba(42, 20, 38, .14); --line-2: rgba(42, 20, 38, .28);
  --gold: #1f7f74; --gold-2: #17655c; --on-gold: #ffffff; --danger: #a3372a; --ok: #1f6b45;
}
:root[data-skin="andalus"] :is(.sh h2, .welcome h2, .spot h3, .feat h3, .subh, .wk-head h2, .tday .dn b, .svc h3, .fund h3, .prog h4, .ft h4, .mbig .mq p:last-child) { text-transform: uppercase; letter-spacing: .05em; }
:root[data-skin="andalus"] .next .cd { letter-spacing: .02em; }
:root[data-skin="stone"], :root[data-skin="stone"][data-theme] {
  --board: #123d2f; --bg: #ebe6dc; --bg-2: #e1dbce; --surface: #f8f5ef; --surface-2: #efeae0;
  --ink: #14261e; --muted: #575f57; --line: rgba(20, 38, 30, .14); --line-2: rgba(20, 38, 30, .28);
  --gold: #0f5c43; --gold-2: #0f5c43; --on-gold: #ffffff; --danger: #a3372a; --ok: #1f6b45;
  --b-acc: #e3c27e; --b-rgb: 227 194 126;
  --display: 'Fraunces', Georgia, serif; --dz: .7; --dzs: .86;
  color-scheme: light;
}
:root[data-skin="stone"] :is(.sh h2, .welcome h2, .spot h3, .feat h3, .subh) { font-weight: 600; letter-spacing: -.015em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; display: block; }
svg[aria-hidden] { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
a { color: var(--gold-2); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, label, select, summary, [role=button] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--arabic); direction: rtl; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
h1, h2, h3, h4, p, li, dd, dt, td { overflow-wrap: anywhere; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-2); color: var(--on-gold); }
.btn-line, .btn-out, .btn-light { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover, .btn-out:hover, .btn-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-green { background: var(--gold); color: var(--on-gold); }
.btn-green:hover { background: var(--gold-2); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14.5px; }

/* ---------- announcements ---------- */
.notices { display: grid; }
.notice { display: flex; align-items: center; padding: 10px 16px; font-size: 15px; background: var(--surface-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.notice .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; flex: 1; min-width: 0; }
.notice p { margin: 0; flex: 1 1 200px; min-width: 0; }
.notice a { color: var(--gold-2); font-weight: 700; }
.notice.urgent { background: #7a2a20; color: #fff; }
.notice.urgent a { color: #ffe0b0; }
.notice.celebrate { background: var(--gold); color: var(--on-gold); }
.notice.celebrate a { color: var(--on-gold); }
.notice .x { margin: -8px -10px -8px auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: none; border: 0; color: inherit; opacity: .75; font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%; }
.notice .x:hover { opacity: 1; }
.notice.more { width: 100%; border: 0; cursor: pointer; font-weight: 700; text-align: left; color: var(--gold-2); min-height: 44px; background: var(--surface); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--board); border-bottom: 1px solid var(--line); color: #f3ecdc; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand img.mk { height: 54px; width: auto; }
.brand .bn { display: grid; line-height: 1.05; min-width: 0; }
.brand .bn b { font: 800 calc(27px * var(--dzs))/1 var(--display); letter-spacing: .02em; color: #fff; white-space: nowrap; }
.brand .bn span { font-size: 12.5px; color: #b5c0b3; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 8px; color: #e8e1cf; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--b-acc); }
.nav .btn { margin-left: 8px; color: var(--on-gold); padding: 10px 18px; min-height: 42px; }
.nav .btn:hover { color: var(--on-gold); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(var(--b-rgb) / .45); color: var(--b-acc); text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.live-pill:hover { background: rgb(var(--b-rgb) / .1); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid rgb(var(--b-rgb) / .3); background: transparent; color: #f3ecdc; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 1020px) {
  .menu-btn { display: grid; }
  .live-pill { margin-left: auto; padding: 8px 12px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 78px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--board); border-bottom: 1px solid rgb(var(--b-rgb) / .25); box-shadow: 0 18px 30px rgba(0,0,0,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; font-size: 18px; border-bottom: 1px solid rgb(var(--b-rgb) / .14); }
  .nav .btn { margin: 16px 0 0; border: 0; border-radius: 10px; }
  .live-pill + .menu-btn { margin-left: 0; }
  .brand + .nav + .live-pill[hidden] + .menu-btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .top .wrap { height: 68px; gap: 10px; }
  .brand img.mk { height: 42px; }
  .brand .bn b { font-size: 22px; }
  .brand .bn span { display: none; }
  .live-pill span { display: none; }
  .live-pill { width: 44px; height: 44px; padding: 0; justify-content: center; }
  html { scroll-padding-top: 76px; }
}

/* ---------- the prayer board ---------- */
.board { position: relative; background: var(--board); color: #f3ecdc; isolation: isolate; overflow: hidden; border-bottom: 1px solid rgb(var(--b-rgb) / .22); }
.board::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23e9c77f' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M48 6l12.7 30.3L91 48 60.7 60.7 48 91 35.3 60.7 5 48l30.3-11.7z'/%3E%3Crect x='22' y='22' width='52' height='52' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='11'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%); mask-image: linear-gradient(90deg, transparent 10%, #000 70%); }
.bgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 64px); }
.bdate { display: flex; gap: 6px 22px; flex-wrap: wrap; color: #b5c0b3; font-size: 15px; font-weight: 600; }
.bdate span + span { color: var(--b-acc); }
.next { display: grid; margin-top: 10px; }
.next .lbl { font-weight: 700; color: var(--b-acc); font-size: 15px; }
.next .nm { display: flex; align-items: baseline; gap: 16px; font: 800 calc(clamp(52px, 8vw, 104px) * var(--dz))/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #fff; margin-top: 6px; }
.next .nm .ar { font: 700 clamp(28px, 3.6vw, 44px)/1 var(--arabic); color: var(--b-acc); text-transform: none; }
.next .cd { font: 900 calc(clamp(92px, 17vw, 230px) * var(--dz))/.82 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--b-acc); margin: 10px 0 0 -4px; }
.next .sub { font-size: clamp(16px, 1.8vw, 20px); color: #e8e1cf; margin-top: 14px; font-weight: 600; }
.btimes { background: rgba(255,255,255,.035); border: 1px solid rgb(var(--b-rgb) / .22); border-radius: 18px; padding: 18px 20px 16px; }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable th { font-size: 13px; color: #b5c0b3; text-align: right; font-weight: 600; padding: 0 4px 8px; }
.ptable th:first-child { text-align: left; }
.ptable td { padding: 11px 4px; text-align: right; font-size: 18px; font-weight: 600; border-top: 1px solid rgb(var(--b-rgb) / .13); color: #e8e1cf; }
.ptable td:first-child { text-align: left; font: 700 calc(22px * var(--dzs))/1.1 var(--display); letter-spacing: .02em; color: #fff; }
.ptable td:first-child .ar { font: 400 16px var(--arabic); color: #b5c0b3; margin-left: 8px; }
.ptable td.iq { color: #fff; font-weight: 800; }
.ptable tr.sun td { color: #8f9c90; font-size: 15px; font-weight: 500; }
.ptable tr.sun td:first-child { color: #8f9c90; font-size: 18px; }
.ptable tr.now td { color: var(--b-acc); }
.ptable tr.now td:first-child { color: var(--b-acc); box-shadow: inset 3px 0 0 #c8924a; padding-left: 12px; }
.ptable tr.past td { opacity: .45; }
.pextra { display: grid; gap: 8px; margin-top: 12px; }
.jum { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: rgba(200,146,74,.13); border: 1px solid rgb(var(--b-rgb) / .25); font-size: 15px; }
.jum b { font: 800 calc(20px * var(--dzs))/1 var(--display); color: var(--b-acc); letter-spacing: .02em; }
.jum .t { color: #e8e1cf; }
.jum .t strong { color: #fff; }
.change, .pnote { font-size: 14.5px; color: #cfd6cc; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); }
.change b { color: var(--b-acc); }
.ramadan { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(200,146,74,.13); }
.ramadan div span { display: block; font-size: 12.5px; color: #b5c0b3; }
.ramadan div b { font: 800 calc(22px * var(--dzs))/1.1 var(--display); color: var(--b-acc); }
.ramadan p { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #cfd6cc; }
.tt { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--b-acc); text-decoration: none; padding: 6px 0; }
.tt:hover { text-decoration: underline; }
.upnext { margin-top: 26px; display: grid; gap: 8px; max-width: 520px; }
.upnext h3 { margin: 0; font-size: 14px; color: #b5c0b3; font-weight: 700; }
.upnext a { display: flex; gap: 14px; align-items: center; color: #f3ecdc; text-decoration: none; padding: 8px 0; border-top: 1px solid rgb(var(--b-rgb) / .14); }
.upnext .dt { display: grid; text-align: center; min-width: 46px; line-height: 1; }
.upnext .dt span { font-size: 12px; color: #b5c0b3; }
.upnext .dt b { font: 800 calc(26px * var(--dzs))/1 var(--display); color: var(--b-acc); }
.upnext small { display: block; color: #b5c0b3; font-size: 13.5px; }
@media (max-width: 900px) {
  .bgrid { grid-template-columns: 1fr; gap: 24px; }
  .board::before { -webkit-mask-image: none; mask-image: none; opacity: .35; }
}
@media (max-width: 560px) {
  .btimes { padding: 12px 14px 12px; border-radius: 14px; }
  .ptable td { padding: 10px 2px; font-size: 16.5px; }
  .ptable td:first-child { font-size: 20px; }
  .ptable td:first-child .ar { display: none; }
}

/* ---------- welcome ---------- */
.welcome { position: relative; background: var(--bg); isolation: isolate; }
.welcome.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 35%, color-mix(in srgb, var(--bg) 70%, transparent)), var(--hero-img) center/cover no-repeat; }
.welcome .wrap { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(36px, 6vw, 72px) 0; }
.welcome .badge { width: 220px; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px rgba(0,0,0,.35); }
.welcome .motto { margin: 0; font-size: clamp(24px, 3vw, 32px); color: var(--gold-2); text-align: left; line-height: 1.5; }
.welcome h2 { font: 800 calc(clamp(40px, 6vw, 76px) * var(--dz))/.92 var(--display); margin: 8px 0 14px; letter-spacing: .005em; text-wrap: balance; }
.welcome .lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 36em; margin: 0 0 18px; }
.welcome .meta { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.welcome .meta a, .welcome .meta span { color: inherit; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.welcome .meta a:hover { color: var(--gold-2); }
.welcome .meta svg { color: var(--gold-2); }
.welcome .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 760px) {
  .welcome .wrap { grid-template-columns: 1fr; }
  .welcome .badge { width: 150px; }
}

/* ---------- this week ---------- */
.week { background: var(--bg-2); border-block: 1px solid var(--line); padding: clamp(32px, 5vw, 56px) 0; }
.wk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.wk-head h2 { font: 800 calc(clamp(32px, 4.4vw, 52px) * var(--dz))/.95 var(--display); margin: 0; }
.wk-head p { margin: 0; color: var(--muted); }
.wk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.wk > li { padding: 14px 12px 16px; border-left: 1px solid var(--line); min-width: 0; }
.wk > li:first-child { border-left: 0; padding-left: 0; }
.wk .wd { display: grid; line-height: 1.1; margin-bottom: 10px; }
.wk .wd b { font: 800 calc(22px * var(--dzs))/1 var(--display); letter-spacing: .01em; }
.wk .wd span { font-size: 13px; color: var(--muted); margin-top: 3px; }
.wk .is-today .wd b { color: var(--gold-2); }
.wk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wk ul a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.wk ul a:hover { border-color: var(--line-2); }
.wk .ti { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.wk .tm { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.wk .lv { font-style: normal; color: var(--gold-2); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.wk .lv svg { width: 13px; height: 13px; }
.wk .tag { justify-self: start; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--on-gold); background: var(--gold); padding: 1px 7px; border-radius: 999px; }
.wk .event a { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.wk .none { margin: 0; font-size: 13px; color: var(--muted); opacity: .75; }
@media (max-width: 1020px) {
  .wk { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; border-top: 0; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: thin; }
  .wk > li { flex: 0 0 min(250px, 72vw); scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: color-mix(in srgb, var(--bg-2) 60%, var(--bg)); }
  .wk > li:first-child { padding-left: 14px; border-left: 1px solid var(--line); }
  .wk > li.free { flex-basis: min(170px, 46vw); }
}

/* ---------- sections ---------- */
section.s { padding: clamp(52px, 8vw, 104px) 0; }
section.s.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sh { max-width: 760px; margin: 0 0 clamp(26px, 4vw, 40px); }
.sh.center { margin-inline: auto; text-align: center; }
.sh h2 { font: 800 calc(clamp(42px, 6.4vw, 80px) * var(--dz))/.92 var(--display); letter-spacing: .005em; margin: 0; text-wrap: balance; }
.sh p { margin: 14px 0 0; color: var(--muted); font-size: clamp(16.5px, 1.8vw, 19px); max-width: 40em; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.subscribe { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 15px; }
.subscribe svg { color: var(--gold-2); }
.subscribe a { font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.chip:hover { border-color: var(--gold-2); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* classes: weekly timetable */
.tt-week { border-top: 1px solid var(--line-2); }
.tday { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tday .dn { display: grid; align-content: start; gap: 6px; }
.tday .dn b { font: 800 calc(clamp(34px, 4vw, 48px) * var(--dz))/.9 var(--display); letter-spacing: .01em; }
.tday .dn span { justify-self: start; font-size: 12.5px; font-weight: 800; color: var(--on-gold); background: var(--gold); padding: 2px 10px; border-radius: 999px; }
.tday.is-today .dn b { color: var(--gold-2); }
.tday .dl { display: grid; gap: 0; }
.cls { display: grid; gap: 8px; padding: 0 0 18px; }
.cls + .cls { border-top: 1px solid var(--line); padding-top: 18px; }
.cls .ct { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.cls h4 { margin: 0; font-size: clamp(19px, 2vw, 22px); line-height: 1.25; font-weight: 800; }
.cls .ct .ar { margin: 0; font-size: clamp(20px, 2.2vw, 25px); color: var(--gold-2); line-height: 1.5; }
.cls .cm { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--muted); align-items: center; }
.cls .cm span { display: inline-flex; gap: 7px; align-items: center; }
.cls .cm svg { color: var(--gold-2); width: 17px; height: 17px; }
.cls .aud { border: 1px solid var(--line-2); padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); }
.cls .lv { color: var(--gold-2); font-weight: 700; }
.cls .cd p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 62em; }
.cls .cd p.ar { font-size: 20px; color: var(--ink); text-align: right; }
.cls .rec { justify-self: start; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; text-decoration: none; padding: 4px 0; }
.cls .rec:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .tday { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .tday .dn { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
}

/* events */
.feat { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--surface); margin-bottom: 26px; }
.feat.noimg { grid-template-columns: 1fr; }
.feat .fimg { background: var(--board); display: grid; place-items: center; min-height: 280px; }
.feat .fimg img { width: 100%; height: 100%; max-height: 560px; object-fit: contain; }
.feat .fbody { padding: clamp(20px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.frow { display: flex; gap: 20px; align-items: flex-start; }
.dblock { display: grid; justify-items: center; line-height: 1; min-width: 64px; padding: 8px 6px; border: 1px solid var(--line-2); border-radius: 12px; }
.dblock span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dblock b { font: 900 calc(42px * var(--dzs))/1 var(--display); color: var(--gold-2); margin: 2px 0; }
.feat .dblock b { font-size: 54px; }
.cat { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--on-gold); background: var(--gold); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.feat h3 { font: 800 calc(clamp(30px, 3.6vw, 46px) * var(--dz))/.98 var(--display); margin: 0 0 8px; letter-spacing: .005em; }
.when { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.where { color: var(--muted); font-size: 15px; display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.where svg { color: var(--gold-2); }
.desc p, .eb details p { margin: 0 0 10px; color: var(--muted); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.evlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.evlist > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "d b c" "d a a"; gap: 10px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.evlist > li[hidden] { display: none; }
.evlist .dblock { grid-area: d; }
.evlist .eb { grid-area: b; }
.evlist .cat { grid-area: c; margin: 0; align-self: start; }
.evlist .ethumb { display: none; }
.evlist .acts { grid-area: a; }
.evlist h3 { margin: 0 0 4px; font-size: clamp(19px, 2vw, 22px); font-weight: 800; line-height: 1.25; }
.eb details { margin-top: 6px; }
.eb summary { cursor: pointer; color: var(--gold-2); font-weight: 700; font-size: 14.5px; padding: 6px 0; }
.eb details[open] summary { margin-bottom: 6px; }
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; }
  .feat .fimg { min-height: 0; }
  .feat .fimg img { max-height: 70vh; }
}
@media (max-width: 560px) {
  .evlist > li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "d b" "d c" "a a"; }
  .evlist .cat { justify-self: start; }
  .frow { gap: 14px; }
}

/* live */
section.s.live { background: var(--board); color: #f3ecdc; border-block: 1px solid rgb(var(--b-rgb) / .22); }
.live .sh p { color: #b5c0b3; }
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.player { border-radius: 14px; overflow: hidden; border: 1px solid rgb(var(--b-rgb) / .25); background: #0e271e; }
.player iframe { display: block; width: 100%; height: 180px; border: 0; }
.chan { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chan a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(var(--b-rgb) / .2); color: #f3ecdc; text-decoration: none; min-height: 60px; }
.chan a:hover { border-color: var(--b-acc); }
.chan .ic { color: var(--b-acc); display: grid; place-items: center; }
.chan .ic svg { width: 22px; height: 22px; }
.chan b { display: block; font-size: 15.5px; }
.chan small { display: block; color: #b5c0b3; font-size: 13px; line-height: 1.3; }
@media (max-width: 860px) { .lgrid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .chan { grid-template-columns: 1fr; } }

/* services */
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.svc li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.svc .ic { color: var(--gold-2); padding-top: 2px; }
.svc .ic svg { width: 30px; height: 30px; }
.svc h3 { margin: 0 0 4px; font: 800 calc(24px * var(--dzs))/1.05 var(--display); letter-spacing: .01em; }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc { grid-template-columns: 1fr; } .svc li { padding: 16px 0; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about .pic img { width: 100%; height: auto; border-radius: 16px; }
.about .pic img.logo { box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px rgba(0,0,0,.3); }
.about .prose p { margin: 0 0 14px; color: var(--muted); font-size: 17px; max-width: 40em; }
.mq { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); }
.mq p { margin: 0; font-weight: 700; }
.mq .ar { font-size: 26px; color: var(--gold-2); text-align: left; line-height: 1.6; font-weight: 400; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 22px 0 0; }
.facts div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 800; }
.facts dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.about.solo { grid-template-columns: 1fr; }
.mbig .mq { margin: 0; border-left-width: 4px; padding: 8px 0 8px 24px; }
.mbig .mq .ar { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.5; }
.mbig .mq p:last-child { font: 800 calc(clamp(30px, 3.4vw, 44px) * var(--dz))/1 var(--display); color: var(--ink); margin-top: 10px; letter-spacing: .005em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .pic { max-width: 340px; } .about .pic:has(.mbig) { max-width: none; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* gallery */
.gal { columns: 4 220px; column-gap: 10px; }
.gal button { display: block; width: 100%; margin: 0 0 10px; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface); break-inside: avoid; }
.gal img { width: 100%; height: auto; }
@media (max-width: 520px) { .gal { columns: 2; column-gap: 6px; } .gal button { margin-bottom: 6px; border-radius: 8px; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 16, 12, .95); display: none; align-items: center; justify-content: center; padding: 56px 12px; touch-action: pan-y; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-height: calc(100dvh - 150px); width: auto; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { color: #e8e1cf; text-align: center; }
.lightbox .lb { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox .lb:hover { background: rgba(255,255,255,.2); }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox .nextb { right: 12px; top: 50%; translate: 0 -50%; }

/* donate */
section.s.donate { background: var(--board); color: #f3ecdc; border-block: 1px solid rgb(var(--b-rgb) / .22); }
.donate .sh p { color: #b5c0b3; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .dgrid { grid-template-columns: 1fr; } }
.ayah { border-left: 3px solid #c8924a; padding-left: 18px; margin: 8px 0 0; }
.ayah .ar { font-size: 26px; color: var(--b-acc); line-height: 1.9; }
.ayah p { margin: 6px 0 0; color: #b5c0b3; }
.dbox { background: rgba(255,255,255,.04); border: 1px solid rgb(var(--b-rgb) / .25); border-radius: 18px; padding: 24px; display: grid; gap: 16px; }
.fund h3 { margin: 0 0 8px; font: 800 calc(26px * var(--dzs))/1 var(--display); color: #fff; }
.bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; background: #c8924a; border-radius: inherit; }
.fund .nums { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: #b5c0b3; margin-top: 8px; flex-wrap: wrap; }
.fund .nums b { color: #fff; }
.methods { display: grid; gap: 10px; }
.methods div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.05); border-radius: 12px; font-size: 15px; flex-wrap: wrap; }
.methods span { color: #b5c0b3; }
.methods b { color: #fff; font-weight: 700; text-align: right; }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); min-height: 360px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(.85); }
.vinfo { display: grid; gap: 16px; align-content: start; padding: 22px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); }
.vrow { display: flex; gap: 14px; align-items: flex-start; }
.vrow .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-2); flex: none; }
.vrow .ic svg { width: 20px; height: 20px; }
.vrow b { display: block; }
.vrow span, .vrow a { color: var(--muted); }
.vrow a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.vbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 20px; } }
form.cf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); }
form.cf .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.cf { grid-template-columns: 1fr; padding: 18px; } }
label.f { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.f input, .f select, .f textarea { width: 100%; border: 1px solid var(--line-2); background: var(--bg); border-radius: 10px; padding: 13px 14px; font-size: 16px; font-weight: 400; color: var(--ink); }
.f textarea { min-height: 140px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--gold-2); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -5000px; }
.formmsg { padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.formmsg.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.formmsg.err { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

/* footer */
footer.ft { background: var(--board); color: #b5c0b3; padding: 56px 0 28px; font-size: 15px; border-top: 1px solid rgb(var(--b-rgb) / .22); }
.ft .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .ft .cols { grid-template-columns: 1fr; } }
.fbrand { display: flex; gap: 12px; align-items: center; }
.fbrand img { height: 54px; width: auto; }
.fbrand b { display: block; font: 800 calc(26px * var(--dzs))/1 var(--display); color: #fff; }
.fbrand .ar { font-size: 17px; color: var(--b-acc); }
.fnote { margin: 16px 0 0; max-width: 30em; }
.ft h4 { font: 800 calc(20px * var(--dzs))/1 var(--display); color: var(--b-acc); margin: 0 0 14px; letter-spacing: .02em; }
.ft a { color: #e8e1cf; text-decoration: none; }
.ft a:hover { color: var(--b-acc); text-decoration: underline; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft .soc { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ft .soc a { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgb(var(--b-rgb) / .25); }
.ft .soc a:hover { border-color: var(--b-acc); color: var(--b-acc); }
.ft .soc svg { width: 20px; height: 20px; }
.ft .base { border-top: 1px solid rgb(var(--b-rgb) / .14); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }

/* phone: floating next-prayer bar */
.pbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; display: none; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--board); color: #f3ecdc; border: 1px solid rgb(var(--b-rgb) / .35); box-shadow: 0 14px 30px rgba(0,0,0,.4); text-decoration: none; transform: translateY(140%); transition: transform .3s; }
.pbar.show { transform: none; }
.pbar b { font: 800 calc(20px * var(--dzs))/1 var(--display); color: var(--b-acc); letter-spacing: .02em; }
.pbar span { font-size: 14px; color: #cfd6cc; font-variant-numeric: tabular-nums; }
.pbar .go { margin-left: auto; color: var(--on-gold); background: var(--gold); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 800; }
@media (max-width: 1020px) {
  .pbar { display: flex; bottom: calc(12px + env(safe-area-inset-bottom)); }
  footer.ft { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

.reveal { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pbar { transition: none; } }
.preview-badge { position: fixed; bottom: 10px; left: 10px; z-index: 99; background: #c8924a; color: #0b2119; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; pointer-events: none; }

/* comfortable tap targets on phones */
.menu-btn, .live-pill { flex: none; }
.tt { min-height: 44px; }
.welcome .meta a { min-height: 44px; }
.cls .rec { min-height: 44px; }

/* seminars */
.spot { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--surface); }
.spot.noimg { grid-template-columns: 1fr; }
.spot .simg { background: var(--board); display: grid; place-items: center; }
.spot .simg img { width: 100%; height: 100%; max-height: 720px; object-fit: contain; }
.spot .sbody { padding: clamp(20px, 3.4vw, 40px); display: grid; gap: 14px; align-content: start; }
.sdate { margin: 0; font: 800 calc(clamp(22px, 2.4vw, 30px) * var(--dz))/1.05 var(--display); color: var(--gold-2); letter-spacing: .01em; }
.spot h3 { margin: 0; font: 800 calc(clamp(38px, 5vw, 64px) * var(--dz))/.92 var(--display); letter-spacing: .005em; text-wrap: balance; }
.spot .sbody > .ar { margin: 0; font-size: clamp(24px, 2.6vw, 32px); color: var(--gold-2); text-align: left; line-height: 1.4; }
.spk { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spk li { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 15px; }
.spk svg { color: var(--gold-2); }
.prog h4 { margin: 0 0 6px; font: 800 calc(24px * var(--dzs))/1 var(--display); color: var(--gold-2); letter-spacing: .01em; }
.prog ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-2); }
.prog li { position: relative; display: grid; gap: 2px; padding: 8px 0 8px 18px; }
.prog li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.prog li b { font-size: 14px; color: var(--muted); font-weight: 700; }
.prog li span { font-weight: 700; }
.subh { font: 800 calc(clamp(26px, 3vw, 36px) * var(--dz))/1 var(--display); margin: 40px 0 12px; letter-spacing: .01em; }
.semlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.semlist li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.semlist .sd { font-weight: 800; color: var(--gold-2); }
.semlist .st { display: grid; gap: 2px; }
.semlist .st b { font-size: 18px; line-height: 1.3; }
.semlist .st .ar { font-size: 20px; color: var(--gold-2); text-align: left; }
.semlist .st small { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .spot { grid-template-columns: 1fr; } .spot .simg img { max-height: 70vh; } }
@media (max-width: 600px) { .semlist li { grid-template-columns: 1fr; gap: 6px; } .semlist li > a { justify-self: start; } }
.evrow details summary, .evlist details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.subscribe a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- multi-page ---------- */
.nav a[aria-current="page"]:not(.btn) { color: var(--b-acc); box-shadow: inset 0 -2px 0 var(--b-acc); }
.nav .nav-home { display: none; }
@media (max-width: 920px) { .nav .nav-home { display: flex; } }
.page-head { margin-bottom: clamp(24px, 4vw, 44px); }
.page-head h1 { font: 800 calc(clamp(48px, 8vw, 104px) * var(--dz))/.9 var(--display); letter-spacing: var(--d-track); margin: 0; text-wrap: balance; }
:root[data-skin="andalus"] .page-head h1 { text-transform: uppercase; letter-spacing: .05em; }
:root[data-skin="stone"] .page-head h1 { font-weight: 600; letter-spacing: -.015em; }
main > #sections > .s:first-child { padding-top: clamp(40px, 6vw, 80px); }
.board + #sections > .s:first-child { padding-top: clamp(48px, 6vw, 80px); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* home: coming up */
.hn { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.hn.one { grid-template-columns: 1fr; }
.hn-sem { display: grid; grid-template-columns: 180px minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.hn-sem:not(:has(.hn-img)) { grid-template-columns: 1fr; }
.hn-sem:hover { border-color: var(--gold-2); }
.hn-img { background: var(--board); } .hn-img img { width: 100%; height: 100%; object-fit: cover; }
.hn-tx { display: grid; gap: 8px; padding: 22px 24px; align-content: center; }
.hn-tx .k { color: var(--gold-2); font-weight: 800; font-size: 14.5px; }
.hn-tx b { font: 800 calc(clamp(30px, 3.4vw, 44px) * var(--dz))/.95 var(--display); text-wrap: balance; }
:root[data-skin="andalus"] .hn-tx b { text-transform: uppercase; letter-spacing: .04em; }
.hn-tx small { color: var(--muted); font-size: 15px; }
.hn-tx .go { font-weight: 800; color: var(--gold-2); margin-top: 4px; }
.hn-ev { display: grid; gap: 12px; align-content: start; }
.hn-ev ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.hn-ev li a { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; }
.hn-ev .dt { display: grid; text-align: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 0; }
.hn-ev .dt span { font-size: 12px; font-weight: 800; color: var(--gold-2); text-transform: uppercase; }
.hn-ev .dt b { font: 800 calc(26px * var(--dzs))/1 var(--display); }
.hn-ev li b { display: block; font-size: 17px; line-height: 1.3; }
.hn-ev li small { color: var(--muted); font-size: 14px; }
.hn-ev .btn { justify-self: start; }
@media (max-width: 860px) { .hn { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hn-sem { grid-template-columns: 1fr; } .hn-img img { max-height: 260px; } }
.home-live .hl, .home-give .hg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 18px; background: var(--board); color: #f3ecdc; border: 1px solid rgb(var(--b-rgb) / .25); }
.home-give .hg { grid-template-columns: minmax(0, 1fr) auto; background: transparent; color: var(--ink); border-color: var(--line-2); }
.hl-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--b-rgb) / .14); color: var(--b-acc); }
.hl-ic svg { width: 26px; height: 26px; }
.hl h2, .hg h2 { margin: 0; font: 800 calc(clamp(26px, 3vw, 38px) * var(--dz))/1 var(--display); }
:root[data-skin="andalus"] :is(.hl h2, .hg h2) { text-transform: uppercase; letter-spacing: .04em; }
.hl p, .hg p { margin: 6px 0 0; color: inherit; opacity: .8; }
.home-live, .home-give { padding-block: clamp(18px, 3vw, 32px); }
@media (max-width: 640px) { .home-live .hl, .home-give .hg { grid-template-columns: 1fr; } .hl .btn, .hg .btn { justify-self: start; } }

/* prayer times page: month table */
.mt-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.mt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.mt th, .mt td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mt thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 14px; font-weight: 800; color: var(--ink); }
.mt thead th .ar { display: block; font-size: 15px; color: var(--gold-2); font-weight: 400; }
.mt tbody th { text-align: left; font-weight: 600; } .mt tbody th b { font-size: 16px; margin-right: 8px; } .mt tbody th span { color: var(--muted); font-size: 13.5px; }
.mt td { font-weight: 700; font-size: 15px; } .mt td small { display: block; font-weight: 600; color: var(--gold-2); font-size: 13px; }
.mt td:nth-child(3) { color: var(--muted); font-weight: 600; }
.mt tr.fri th span { color: var(--gold-2); font-weight: 800; }
.mt tr.today { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.mt tr.today th b::after { content: " today"; font-size: 12px; color: var(--gold-2); font-weight: 800; }
.mt tbody tr:last-child > * { border-bottom: 0; }

/* prayer bar on pages without the board: a small chip on wide screens too */
@media (min-width: 921px) {
  body:not([data-page="home"]):not([data-page="prayer"]) .pbar { display: flex; left: auto; right: 20px; bottom: 20px; width: 340px; }
}

/* ---------- motion: scroll reveal and page-to-page cross-fade ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--rv, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
@view-transition { navigation: auto; }
.top { view-transition-name: site-top; }
::view-transition-old(root) { animation: .22s ease both vt-out; }
::view-transition-new(root) { animation: .38s cubic-bezier(.2, .7, .2, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* "Listen live on" links for live classes and seminars */
.listen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.listen > span { font-weight: 800; color: var(--gold-2); margin-right: 4px; font-size: 15px; }
.listen a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.listen a:hover { border-color: var(--gold-2); color: var(--gold-2); }
.listen a svg { color: var(--gold-2); }
.listen.sm a { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.listen.sm > span { font-size: 14px; }
.cls.has-pic { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 18px; }
.cls.has-pic > :not(.cpic) { grid-column: 1; }
.cls .cpic { grid-column: 2; grid-row: 1 / span 4; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }
@media (max-width: 520px) { .cls.has-pic { grid-template-columns: minmax(0, 1fr) 72px; } .cls .cpic { width: 72px; } }

/* ---------- phones: bottom tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 920px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: color-mix(in srgb, var(--board) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgb(var(--b-rgb) / .22); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 54px; padding: 4px 2px; border: 0; background: none; color: #c9d0c6; text-decoration: none; font: 700 11.5px/1.1 var(--body); border-radius: 12px; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .on { color: var(--b-acc); background: rgb(var(--b-rgb) / .1); }
  .tabbar small { font-size: 10px; font-weight: 700; color: var(--b-acc); font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .pbar, .pbar.show { display: none !important; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .nav.open { z-index: 50; }
}
/* phones: compact "Listen live on" row under each live class */
@media (max-width: 600px) {
  .listen.sm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .listen.sm > span { grid-column: 1 / -1; }
  .listen.sm a { justify-content: center; padding: 6px 4px; font-size: 12.5px; gap: 5px; border-radius: 10px; }
  .listen.sm a svg { width: 15px; height: 15px; }
}
/* phones: the month table fits the screen (sunrise and AM/PM dropped) */
@media (max-width: 640px) {
  .mt { min-width: 0; table-layout: fixed; }
  .mt th, .mt td { padding: 8px 2px; }
  .mt th:nth-child(3), .mt td:nth-child(3) { display: none; }
  .mt thead th { font-size: 12px; } .mt thead th .ar { font-size: 13px; }
  .mt td { font-size: 14px; } .mt td small { font-size: 12px; }
  .mt .ap { display: none; }
  .mt tbody th { padding-left: 10px; width: 54px; } .mt tbody th b { display: block; margin: 0; } .mt tbody th span { font-size: 11.5px; }
  .mt tr.today th b::after { content: ""; }
  .mt-wrap { border-radius: 12px; }
}
.chips + .chips { margin-top: -10px; }
.all-live { display: grid; gap: 6px; padding: 16px 18px; margin: 0 0 22px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.all-live p { margin: 0; color: var(--muted); font-size: 14.5px; }
/* class: the part being studied and the book's author */
.cls .cb { display: grid; gap: 2px; margin-top: -2px; }
.cls .cb .part { margin: 0; font-style: italic; color: var(--ink); font-size: 16px; }
.cls .cb .by { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px; align-items: baseline; color: var(--muted); font-size: 15px; }
.cls .cb .by .ar { font-size: 19px; color: var(--muted); }
