/* Private mode, settings, replays and the visitors page. */

/* private mode: nothing but the cover until it is unlocked */
html.locked body>*:not(#gate){display:none!important}
html.locked body{overflow:hidden}
#gate{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px 16px;overflow:auto;
  background:radial-gradient(ellipse at 50% 20%,#0d4a3c 0%,#04261f 50%,#021712 100%)}
.gateCard{width:min(440px,100%);background:var(--surface,#fff);color:var(--text);border-radius:28px;padding:34px 28px 26px;text-align:center;box-shadow:0 40px 90px rgba(0,0,0,.45)}
.gateCard img{width:120px;height:120px;border-radius:50%;margin:0 auto 14px;object-fit:cover;box-shadow:0 0 0 5px #f3d77a}
.gateCard h1{font-size:26px;margin:4px 0 10px}
.gateTxt{color:var(--muted);font-size:15px}
.gateLogo{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.gateVid{display:block;width:min(100%,300px);aspect-ratio:480/856;margin:18px auto 0;border-radius:18px;background:#021712;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.gateFb{margin-top:18px;width:100%}
.gateForm{display:flex;gap:8px;margin-top:14px}
.gateForm[hidden]{display:none}
.gateForm input{flex:1;min-width:0;padding:12px 14px;border-radius:14px;border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;font-size:16px}
.gateMsg{min-height:1.2em;margin:8px 0 0;color:var(--red);font-weight:700}

/* settings */
.navSet{width:42px;height:42px;flex:none;border-radius:12px;border:1px solid var(--border);background:transparent;color:var(--text);display:grid;place-items:center;cursor:pointer;margin-left:8px}
.navSet svg{width:20px;height:20px}
.navSet:hover{background:var(--mint)}
@media (max-width:560px){.navSet{width:38px;height:38px;margin-inline:auto 6px}}
[dir=rtl] .navSet{margin-left:0;margin-right:8px}
@media (max-width:560px){[dir=rtl] .navSet{margin-inline:auto 6px}}
/* longer menu words in Kreol and Arabic stay on one line */
.navLinks a{white-space:nowrap}
@media (max-width:1400px){html[lang=mfe] .navLinks a,html[lang=ar] .navLinks a{padding:9px 8px;font-size:13.5px}}
.setDlg{border:0;border-radius:24px;padding:0;width:min(420px,calc(100% - 32px));background:var(--surface,#fff);color:var(--text);box-shadow:0 40px 90px rgba(0,0,0,.35)}
.setDlg::backdrop{background:rgba(2,23,18,.55)}
.setIn{padding:22px 22px 24px}
.setHead{display:flex;justify-content:space-between;align-items:center}
.setHead h2{font-size:24px;margin:0}
.setIn h3{font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:20px 0 10px}
.setChoices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.setChoice{position:relative;display:grid;place-items:center;min-height:52px;padding:8px;border-radius:14px;border:1.5px solid var(--border);cursor:pointer;font-weight:700;font-size:14.5px;text-align:center}
.setChoice input{position:absolute;opacity:0;pointer-events:none}
.setChoice [lang=ar]{font-size:19px}
.setChoice.on{border-color:var(--emerald);background:var(--mint);color:var(--emerald)}
.setChoice:has(input:focus-visible){outline:3px solid var(--gold);outline-offset:2px}
.setDone{width:100%;margin-top:22px}

/* replays */
.rpGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.rpCard{display:block;text-align:left;padding:0;border:1px solid var(--border);border-radius:20px;overflow:hidden;background:var(--surface,#fff);color:var(--text);cursor:pointer;font:inherit;text-decoration:none;box-shadow:var(--shadow);transition:transform .15s}
.rpCard:hover{transform:translateY(-2px)}
.rpCard.on{outline:3px solid var(--emerald);outline-offset:-3px}
.rpArt{position:relative;display:grid;place-items:center;aspect-ratio:16/9;background:#0b1f33;color:#fff;overflow:hidden}
.rpArt.fb{background:linear-gradient(135deg,#1877f2,#0b3b8f)}
.rpArt.fb svg{width:64px;height:64px;opacity:.35}
.rpArt img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rpPlay{position:absolute;left:50%;top:50%;width:58px;height:58px;margin:-29px;border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 10px 30px rgba(0,0,0,.35)}
.rpPlay::after{content:"";position:absolute;left:23px;top:18px;border-style:solid;border-width:11px 0 11px 17px;border-color:transparent transparent transparent #0b3b31}
.rpArt em{position:absolute;right:10px;bottom:10px;font-style:normal;font-size:12.5px;font-weight:800;background:rgba(0,0,0,.72);color:#fff;padding:4px 9px;border-radius:8px}
.rpTxt{display:grid;gap:3px;padding:14px 16px 16px}
.rpTxt b{font-size:16.5px;line-height:1.25}
.rpTxt small{color:var(--muted);font-size:13.5px}
.vFacade .rpArt{position:absolute;inset:0;aspect-ratio:auto}
.vFacade.heroLive{text-decoration:none}
.rpEmpty{max-width:620px;margin:20px auto 40px;text-align:center;padding:36px 24px;border:1px dashed var(--border);border-radius:24px;background:var(--surface,#fff)}
.rpEmpty b{font-size:20px;display:block;margin-bottom:8px}
.rpEmpty p{color:var(--muted)}
.rpEmpty .row{justify-content:center}
@media (max-width:560px){.rpGrid{grid-template-columns:1fr}}

/* admin: visitors */
.stTiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.stTile{background:var(--surface,#fff);border:1px solid var(--border);border-radius:18px;padding:16px 18px}
.stTile small{display:block;color:var(--muted);font-weight:600;font-size:13px}
.stTile b{display:block;font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.1;margin-top:4px}
.stTile span{font-size:13px;color:var(--muted)}
.stTile.live b{color:var(--emerald)}
.stGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.stBars{display:flex;align-items:flex-end;gap:3px;height:150px;padding-top:10px}
.stBars i{flex:1;min-width:3px;background:var(--emerald);border-radius:4px 4px 0 0;position:relative}
.stBars i:hover{background:var(--gold)}
.stAxis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:6px}
.stRows{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.stRows li{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;font-size:14.5px}
.stRows li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stRows li>b{font-variant-numeric:tabular-nums}
.stRows li>i{grid-column:1/-1;height:6px;border-radius:6px;background:var(--mint);overflow:hidden}
.stRows li>i::before{content:"";display:block;height:100%;width:var(--w);background:var(--emerald);border-radius:6px}
.stPeople{list-style:none;margin:0;padding:0}
.stPeople li{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:12px 0;border-bottom:1px solid var(--border)}
.stPeople li:last-child{border-bottom:0}
.stPeople small{color:var(--muted);font-size:13px;grid-column:1/-1;overflow-wrap:anywhere}
.stPeople em{font-style:normal;font-size:12px;font-weight:700;color:var(--emerald);background:var(--mint);padding:2px 8px;border-radius:999px;margin-left:6px}
.stFeed{max-height:420px;overflow:auto}
.stNote{font-size:13px;color:var(--muted);margin-top:14px}
.stDays{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.stDays button{border:1px solid var(--border);background:var(--surface,#fff);color:var(--text);border-radius:999px;padding:7px 14px;font:inherit;font-weight:700;font-size:13.5px;cursor:pointer}
.stDays button.on{background:var(--night);color:#fff;border-color:var(--night)}
@media (max-width:820px){.stTiles{grid-template-columns:repeat(2,1fr)}.stGrid{grid-template-columns:1fr}}
.staffForm{display:grid;grid-template-columns:1fr 160px auto;gap:10px;align-items:end;margin:12px 0 18px}
.staffForm input,.staffForm select{width:100%;padding:11px 12px;border-radius:12px;border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit}
@media (max-width:620px){.staffForm{grid-template-columns:1fr}}
@media (max-width:1240px){html[lang=mfe] .navLinks{display:none}}
@media (max-width:430px){.navSet{display:none}}
.navIn>.brand{flex-shrink:0}
.aboutVid{display:block;width:min(100%,320px);aspect-ratio:480/856;margin:6px 0 22px;border-radius:20px;background:#021712;box-shadow:var(--shadow)}

/* live: a light card when nothing is live, instead of Facebook's page feed */
.player.isOff{background:radial-gradient(ellipse at 50% 0%,#0d4a3c 0%,#04261f 60%,#021712 100%)}
.offAir{aspect-ratio:16/9;display:grid;place-items:center;padding:24px;color:#fff;text-align:center}
.offIn{max-width:440px;display:grid;justify-items:center;gap:6px}
.offIn img{width:84px;height:84px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px #f3d77a;margin-bottom:6px}
.offTag{margin:0;font-size:12.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#f3d77a}
.offIn small{color:#a9c3bb;font-size:13px;margin-top:6px}
.offIn h3{margin:0;font-size:24px;line-height:1.2;color:#fff}
.offIn p{margin:0;color:#d6e6e0}
.offIn .offNote{font-size:13.5px;color:#a9c3bb;margin-top:6px}
.offBtns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}
.offBtns .btn{color:#fff;border-color:rgba(255,255,255,.35);background:transparent}
.offBtns .btn:hover{background:rgba(255,255,255,.1)}
@media (max-width:560px){.offAir{aspect-ratio:auto;min-height:340px}.offIn h3{font-size:20px}}
.liveSide{display:grid;gap:10px;justify-items:start}
.notifyBtn{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;border-radius:999px;padding:9px 16px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.notifyBtn svg{width:18px;height:18px}
.notifyBtn:hover{background:rgba(255,255,255,.1)}
.notifyBtn.on{background:#f3d77a;border-color:#f3d77a;color:#04261f}
.notifyBtn[hidden]{display:none}

/* privacy and terms */
.legal{max-width:760px}
.legal h1{margin:4px 0 6px}
.legal h2{font-size:21px;margin:30px 0 8px}
.legal p{line-height:1.7}
.footLegal a{color:#c4d8d1}
/* pictures and videos can't be dragged away or long-pressed to save */
img,video,canvas{-webkit-user-drag:none;-webkit-touch-callout:none}

/* Friday only: the Jumu'ah checklist on the home page */
.jmSec{padding:28px 0 8px}
.jmSec[hidden]{display:none}
.jmCard{background:linear-gradient(160deg,#0b4a3b,#04261f);color:#fff;border-radius:28px;padding:26px 24px;box-shadow:var(--shadow)}
.jmHead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.jmHead .eyebrow{color:#f3d77a;margin:0}
.jmHead h2{color:#fff;margin:4px 0 0;font-size:26px}
.jmSub{margin:4px 0 0;font-family:Amiri,serif;font-size:20px;color:#f3d77a}
.jmRing{--p:0;flex:none;width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#f3d77a calc(var(--p)*1%),rgba(255,255,255,.15) 0)}
.jmRing b{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:#06342a;font-size:17px}
.jmList{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.jmList li{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:4px 10px 4px 4px}
.jmItem{flex:1;display:flex;align-items:center;gap:12px;padding:10px;cursor:pointer;min-width:0}
.jmItem input{position:absolute;opacity:0;pointer-events:none}
.jmBox{flex:none;width:24px;height:24px;border-radius:8px;border:2px solid rgba(255,255,255,.5);display:grid;place-items:center}
.jmItem.on .jmBox{background:#f3d77a;border-color:#f3d77a}
.jmItem.on .jmBox::after{content:"";width:6px;height:11px;border:solid #04261f;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px)}
.jmItem:has(input:focus-visible) .jmBox{outline:3px solid #f3d77a;outline-offset:2px}
.jmTxt{display:grid;gap:2px}
.jmTxt b{font-size:15px;font-weight:600;line-height:1.35}
.jmTxt small{font-size:12px;color:#a9c3bb}
.jmItem.on .jmTxt b{opacity:.65;text-decoration:line-through;text-decoration-color:rgba(243,215,122,.7)}
.jmGo{flex:none;font-size:13px;font-weight:800;color:#04261f;background:#f3d77a;border-radius:999px;padding:6px 12px;text-decoration:none}
.jmFoot{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.jmFoot .btnDark{background:#f3d77a;color:#04261f;border-color:#f3d77a}
.jmFoot .btnLine{color:#fff;border-color:rgba(255,255,255,.35)}
@media (max-width:760px){.jmList{grid-template-columns:1fr}.jmHead h2{font-size:22px}.jmCard{padding:22px 16px}}
html:not([dir=rtl]) .jmSub{text-align:left}

/* salaah tracker */
.slWrap{max-width:820px}
.slWrap h1{margin:4px 0 8px}
.slLead{color:var(--muted);font-size:16px;line-height:1.6;margin:0 0 22px}
.slTop{display:flex;align-items:center;gap:22px;flex-wrap:wrap;background:linear-gradient(160deg,#0b4a3b,#04261f);color:#fff;border-radius:24px;padding:20px 22px}
.slRing{--p:0;width:104px;height:104px;border-radius:50%;display:grid;place-items:center;align-content:center;background:radial-gradient(closest-side,#06342a 80%,transparent 81%),conic-gradient(#f3d77a calc(var(--p)*1%),rgba(255,255,255,.15) 0)}
.slRing b{font-size:26px;line-height:1}
.slRing small{font-size:12px;color:#a9c3bb}
.slStats{display:flex;gap:28px}
.slStats b{display:block;font-size:30px;font-weight:800;line-height:1.1}
.slStats small{color:#a9c3bb;font-size:13px}
.slH{font-size:15px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:26px 0 10px}
.slH small{text-transform:none;letter-spacing:0;font-weight:500;margin-left:6px}
.slList,.slExtra,.slWeek{list-style:none;margin:0;padding:0}
.slList{display:grid;gap:8px}
.slBtn{width:100%;display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;border:1.5px solid var(--border);background:var(--surface,#fff);color:var(--text);font:inherit;text-align:start;cursor:pointer;transition:background .15s,border-color .15s}
.slBtn:hover{border-color:var(--emerald)}
.slBtn.next{border-color:#f3d77a;box-shadow:0 0 0 3px rgba(243,215,122,.25)}
.slTick{flex:none;width:30px;height:30px;border-radius:50%;border:2px solid var(--border);display:grid;place-items:center}
.slBtn.on{background:var(--mint);border-color:var(--emerald)}
.slBtn.on .slTick{background:var(--emerald);border-color:var(--emerald)}
.slBtn.on .slTick::after{content:"";width:7px;height:13px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg) translate(-1px,-1px)}
.slName{flex:1;display:grid}
.slName b{font-size:17px}
.slName small{font-family:Amiri,serif;font-size:16px;color:var(--muted)}
.slTime{font-variant-numeric:tabular-nums;font-weight:700;color:var(--muted);display:grid;justify-items:end}
.slTime em{font-style:normal;font-size:11px;font-weight:800;color:#8a6a00;background:#f3d77a;border-radius:999px;padding:1px 8px;margin-top:3px}
.slExtra{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.slChip{width:100%;height:100%;display:grid;gap:2px;text-align:start;padding:11px 14px;border-radius:14px;border:1.5px solid var(--border);background:var(--surface,#fff);color:var(--text);font:inherit;cursor:pointer}
.slChip b{font-size:14.5px}
.slChip small{font-size:11.5px;color:var(--muted)}
.slChip.on{background:var(--mint);border-color:var(--emerald);color:var(--emerald)}
.slWeek{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.slWeek li{display:grid;justify-items:center;gap:4px;padding:10px 4px;border-radius:14px;background:var(--surface,#fff);border:1px solid var(--border);font-size:13px}
.slWeek li.today{border-color:var(--emerald)}
.slWeek i{--c:0;width:28px;height:28px;border-radius:50%;background:conic-gradient(var(--emerald) calc(var(--c)*20%),var(--border) 0)}
.slWeek li.full i{background:var(--emerald)}
.slWeek small{color:var(--muted);font-size:11.5px}
.slNote{margin-top:16px}
.quick a{position:relative}
.qBadge{position:absolute;top:8px;right:8px;font-style:normal;font-size:11px;font-weight:800;background:var(--emerald);color:#fff;border-radius:999px;padding:1px 7px}
.qBadge[hidden]{display:none}
@media (max-width:560px){.slStats{gap:18px}.slRing{width:88px;height:88px}.slWeek{gap:4px}.slWeek li{padding:8px 2px}}
