/* ═══════════════════════════════════════════════════════════════════════════
   Masjidy — the companion (masjidy.ovh/app)

   The mosque's screen, in your pocket. The finder stands on the site's own
   bright wall (same tokens as the landing page: near-white ground, hairlines,
   Fustat display, the brand indigo). The times screen is a small bezelled
   board wearing the kiosk's own look: Lato in the kiosk's yellow for the
   clock, Lalezar on a coloured plate for the prayer, and the day's accent
   colour cycling exactly as it does on the wall of the mosque.

   No framework, no build step. Loaded as-is.
   ═══════════════════════════════════════════════════════════════════════════ */
@import url("fonts.css");   /* Fustat · Cairo · Geist · Geist Mono */

/* the kiosk's faces */
@font-face{font-family:'Lato';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/lato.woff2) format('woff2');}
@font-face{font-family:'Lalezar';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/lalezar.woff2) format('woff2');}
@font-face{font-family:'KioskFustat';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/fustat.woff2) format('woff2');}

/* ── reset ──────────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body,h1,h2,h3,p,ul,ol,figure{margin:0;padding:0}
ul,ol{list-style:none}
img,svg{display:block;max-width:100%}
input,button{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer;padding:0}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:6px}

/* ── the scrollbar: a slim rule, not furniture ──────────────────────────
   The track disappears, and the thumb is drawn inside a transparent border so
   it floats as a narrow pill with air on both sides instead of filling the
   gutter. It rests as a pale wash of the brand indigo and deepens to the full
   accent under the pointer. */
html{scrollbar-width:thin;scrollbar-color:#A6A4F5 transparent}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{border-radius:99px;border:3px solid transparent;
  background:color-mix(in srgb,var(--acc) 55%,#FFFFFF);background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:var(--acc);background-clip:content-box}
::-webkit-scrollbar-corner{background:transparent}

/* ── tokens: the landing page's own ─────────────────────────────────────── */
:root{
  --bg:#FAFAFD;--bg-2:#FFFFFF;--line:#E4E2EE;--line-2:#EFEDF6;
  --ink:#17141F;--ink-2:#544F62;--ink-3:#8B869C;
  --acc:#5352ED;--on-acc:#fff;
  --acc-dim:color-mix(in srgb,var(--acc) 10%,transparent);
  --acc-line:color-mix(in srgb,var(--acc) 40%,transparent);
  --ok:#1DA851;--warn:#B4741C;
  --f-disp:'Fustat','Cairo',system-ui,sans-serif;
  --f-body:'Cairo','Tajawal',system-ui,sans-serif;
  --f-num:'Geist Mono',ui-monospace,monospace;
  --f-clock:'Lato','Geist Mono',monospace;
  --f-plate:'Lalezar','Fustat',sans-serif;
  --col:30rem;
  --pad:clamp(16px,4.5vw,24px);
  --r:18px;--r-lg:26px;
  --shadow:0 2px 6px rgba(23,20,31,.04),0 18px 44px -28px rgba(83,82,237,.35);
}

body{
  background:var(--bg);color:var(--ink);
  font-family:var(--f-body);font-size:1rem;line-height:1.85;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:clip;-webkit-tap-highlight-color:transparent;
}
::selection{background:var(--acc);color:#fff}

/* the wall, warmed at the top */
.ground{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(60% 40% at 50% 0%,color-mix(in srgb,var(--acc) 9%,transparent),transparent 70%),
    linear-gradient(180deg,#FFFFFF 0%,var(--bg) 40%,#F4F2FA 100%)}
.ground::after{content:"";position:absolute;inset:0;opacity:.45;
  -webkit-mask:radial-gradient(60% 50% at 50% 0%,#000,transparent 85%);
          mask:radial-gradient(60% 50% at 50% 0%,#000,transparent 85%);
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'>\
<g fill='none' stroke='%235352ED' stroke-opacity='.10'>\
<rect x='22' y='22' width='28' height='28'/>\
<rect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/>\
</g></svg>")}

.num{font-family:var(--f-num);font-variant-numeric:tabular-nums;font-weight:500;letter-spacing:-.02em}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ── shell ──────────────────────────────────────────────────────────────── */
.app{position:relative;z-index:1;width:100%;max-width:var(--col);margin-inline:auto;
  padding:0 var(--pad) calc(2.5rem + env(safe-area-inset-bottom));min-height:100svh;
  display:flex;flex-direction:column}
.screen{display:none;flex-direction:column;gap:18px;flex:1}
.screen.on{display:flex;animation:screenIn .5s cubic-bezier(.2,.8,.2,1)}
@keyframes screenIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ── top ────────────────────────────────────────────────────────────────── */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-block:calc(14px + env(safe-area-inset-top)) 2px}
.wordmark{height:34px;width:auto}
.icon-btn{height:44px;min-width:44px;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  padding:0 14px;font-size:.88rem;font-weight:800;color:var(--ink-2);
  background:var(--bg-2);border:1px solid var(--line);border-radius:999px;
  transition:background .2s,border-color .2s,color .2s,transform .15s}
.icon-btn span{white-space:nowrap}
/* the language switcher: same furniture as every other top-bar button */
.top__acts{display:flex;align-items:center;gap:8px}
.lang-code{font-size:.78rem;font-weight:800;letter-spacing:.04em}
/* Four things now share the times header (share, wordmark, language, back).
   Under ~430px the words are what overflow, not the buttons: drop them and
   keep the icons, which are the universal part. The language CODE stays —
   it is the only thing that tells you which language you are in. */
@media (max-width:430px){
  .top .icon-btn>span:not(.lang-code){position:absolute;width:1px;height:1px;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .top__acts{gap:6px}
  .top{gap:8px}
}
.icon-btn--acc{background:var(--acc);border-color:var(--acc);color:#fff;
  box-shadow:0 8px 22px -10px rgba(83,82,237,.55)}
.icon-btn--acc:hover{background:color-mix(in srgb,var(--acc) 86%,white);border-color:transparent;color:#fff}
.icon-btn:hover{border-color:var(--acc);color:var(--acc);background:var(--acc-dim)}
.icon-btn:active{transform:scale(.96)}
.icon-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ── finder ─────────────────────────────────────────────────────────────── */
.hello{display:flex;flex-direction:column;gap:10px;padding-block:8px 2px}
.eyebrow{display:inline-flex;align-items:center;gap:.6em;align-self:flex-start;
  padding:.45em 1em;border-radius:999px;background:var(--acc-dim);border:1px solid var(--acc-line);
  color:var(--acc);font-size:.8rem;font-weight:800}
.eyebrow__dot{width:7px;height:7px;border-radius:99px;background:#2EE59D;flex:none;
  box-shadow:0 0 0 0 rgba(46,229,157,.5);animation:nowPulse 2.4s ease-out infinite}
@keyframes nowPulse{0%{box-shadow:0 0 0 0 rgba(46,229,157,.45)}70%{box-shadow:0 0 0 9px rgba(46,229,157,0)}100%{box-shadow:0 0 0 0 rgba(46,229,157,0)}}
.hello h1{font-family:var(--f-disp);font-weight:800;font-size:clamp(2.1rem,9vw,2.7rem);line-height:1.35;
  letter-spacing:-.015em;text-wrap:balance}
.hello h1 .lit{background:linear-gradient(120deg,#8B89FF 0%,#5352ED 55%,#4340D6 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.hello p{color:var(--ink-2);font-size:1rem;max-width:40ch}

.search-wrap{position:relative;display:flex}
.search-wrap svg{position:absolute;inset-inline-start:18px;inset-block-start:50%;transform:translateY(-50%);
  width:20px;height:20px;color:var(--ink-3);pointer-events:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
#search{width:100%;font-size:1.05rem;font-weight:600;padding:16px 18px;padding-inline-start:50px;
  background:var(--bg-2);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--shadow);transition:border-color .2s,box-shadow .2s;-webkit-appearance:none}
#search::placeholder{color:var(--ink-3);font-weight:500}
#search:focus{border-color:var(--acc);outline:none;box-shadow:0 0 0 4px var(--acc-dim),var(--shadow)}

/* the tools row: one toggle chip, and how many mosques there are */
.tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-inline:2px}
.loc-chip{display:inline-flex;align-items:center;gap:.5em;height:38px;padding:0 14px 0 12px;border-radius:999px;
  font-size:.86rem;font-weight:800;color:var(--acc);background:transparent;border:1.5px solid var(--acc-line);transition:.2s}
html[dir="rtl"] .loc-chip{padding:0 12px 0 14px}
.loc-chip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.loc-chip:hover:not(:disabled){background:var(--acc-dim);border-color:var(--acc)}
.loc-chip[aria-pressed="true"]{background:var(--acc);border-color:var(--acc);color:#fff}
.loc-chip:disabled{opacity:.6;cursor:default}
.tools__n{font-size:.8rem;font-weight:700;color:var(--ink-3)}
.more{display:flex;justify-content:center;padding-block:6px}
.more[hidden]{display:none}
.more button{font-size:.86rem;font-weight:800;color:var(--ink-2);padding:.6em 1.4em;border-radius:999px;border:1px solid var(--line);background:var(--bg-2)}
.more button:hover{color:var(--acc);border-color:var(--acc-line)}

.note{font-size:.9rem;line-height:1.8;padding:12px 16px;border-radius:14px;
  background:#FFF6E3;color:#6B4E13;border:1px solid #F0DFB4}

.group-label{display:flex;align-items:center;gap:8px;margin-block:8px -2px;padding-inline:4px;
  font-size:.86rem;font-weight:800;color:var(--ink-2)}
.group-label__ico{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--acc-dim);color:var(--acc)}
.group-label__ico svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.group-label__n{font-family:var(--f-num);font-size:.64rem;letter-spacing:.06em;color:var(--ink-3);
  padding:.25em .6em;border:1px solid var(--line);border-radius:999px}
.group-label::after{content:"";flex:1;height:1px;background:var(--line)}
#lists{display:flex;flex-direction:column;gap:10px}
.list{display:flex;flex-direction:column;gap:8px}

.m-card{display:flex;align-items:center;gap:12px;width:100%;text-align:start;padding:12px 12px 12px 10px;
  background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r);
  transition:border-color .2s,background .2s}
html[dir="rtl"] .m-card{padding:12px 12px 12px 10px}
.m-card:hover{border-color:var(--acc-line);background:color-mix(in srgb,var(--acc) 4%,var(--bg-2))}
.m-card:active{transform:scale(.99)}
.m-ico{display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:16px;
  background:var(--acc-dim);color:var(--acc);transition:background .2s,color .2s}
.m-card:hover .m-ico{background:var(--acc);color:#fff}
.m-ico svg{width:26px;height:26px;display:block}
.m-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.m-name{display:flex;align-items:center;gap:8px;min-width:0;
  font-family:var(--f-disp);font-weight:800;font-size:1.04rem;line-height:1.4}
/* One line, then "…". A long name used to wrap to two and make one card taller
   than its neighbours, which broke the row in the three-up desktop grid. */
.m-name__t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-name .badge{flex:none}
.m-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:.82rem;font-weight:700;color:var(--ink-2)}
.m-city{display:inline-flex;align-items:center;gap:.3em}
.m-city svg{width:13px;height:13px;fill:none;stroke:var(--acc);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.m-cal{color:var(--ink-3);font-weight:600}
.m-dist{font-family:var(--f-num);font-size:.7rem;letter-spacing:.02em;color:var(--acc);
  padding:.25em .55em;border-radius:6px;background:var(--acc-dim)}
.m-chev{width:18px;height:18px;flex:none;color:var(--ink-3);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:.2s}
html[dir="rtl"] .m-chev{transform:scaleX(-1)}
.m-card:hover .m-chev{color:var(--acc)}
.badge{font-family:var(--f-body);font-style:normal;font-size:.62rem;font-weight:800;line-height:1;padding:.4em .6em;border-radius:999px;
  background:var(--acc);color:#fff;flex:none}

.empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 16px;text-align:center;
  color:var(--ink-3);line-height:1.9;border:1px dashed var(--line);border-radius:var(--r)}
.empty svg{width:40px;height:40px;color:var(--acc-line);margin-block-end:6px}
.finder__foot{text-align:center;font-size:.86rem;color:var(--ink-3);padding-block-start:6px}
.finder__foot a{color:var(--acc);font-weight:800}

/* ── times: head — a kicker, the name on an accent stroke, the two dates ── */
.m-head{display:flex;flex-direction:column;gap:8px;padding-block-start:4px}
.m-kicker{display:inline-flex;align-items:center;gap:.5em;font-size:.82rem;font-weight:800;color:var(--acc)}
.m-kicker svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.m-head h1{position:relative;align-self:flex-start;font-family:var(--f-disp);font-weight:800;font-size:clamp(1.7rem,7.4vw,2.3rem);line-height:1.3;
  letter-spacing:-.014em;text-wrap:balance;padding-block-end:10px;margin-block-end:2px}
.m-head h1::after{content:"";position:absolute;inset-inline-start:0;inset-block-end:0;width:2.2em;height:5px;border-radius:3px;
  background:linear-gradient(90deg,var(--acc),color-mix(in srgb,var(--acc) 35%,transparent))}
.m-dates{display:flex;gap:8px;flex-wrap:wrap}
.m-date{display:inline-flex;align-items:center;gap:.5em;padding:.45em .85em;border-radius:12px;
  font-size:.8rem;font-weight:700;color:var(--ink-2);background:var(--bg-2);border:1px solid var(--line)}
.m-date svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--ink-3);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.m-date--h{color:var(--acc);background:var(--acc-dim);border-color:var(--acc-line)}
.m-date--h svg{stroke:var(--acc)}
.m-date:has(b:empty){display:none}

.offline{display:none;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;
  background:#FFF6E3;border:1px solid #F0DFB4;font-size:.88rem;line-height:1.75;color:#6B4E13}
.offline.on{display:flex}
.offline svg{width:18px;height:18px;flex:none;margin-top:4px;fill:none;stroke:var(--warn);stroke-width:1.8;stroke-linecap:round}

/* ── the set: a pocket-sized screen with a bezel ────────────────────────── */
.board{display:flex;flex-direction:column;gap:18px}
.set{position:relative;margin-block:10px 4px;margin-inline:6px}
.np{position:relative;overflow:hidden;border-radius:14px;color:#fff;
  padding:18px 20px 20px;display:flex;flex-direction:column;gap:2px;
  background:#0B0B10 url(../img/kiosk/masjid-3.jpeg) center/cover;
  box-shadow:0 0 0 2px #33333F,0 0 0 9px #14141C,0 0 0 10px #3A3A48,0 0 0 11px rgba(0,0,0,.25),
             0 30px 60px -24px rgba(23,20,31,.6),0 0 90px -10px color-mix(in srgb,var(--acc) 30%,transparent)}
.np::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.86)}
/* glass sheen and a whisper of scanlines */
.np::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(112deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,.02) 24%,transparent 38%),
    repeating-linear-gradient(180deg,rgba(255,255,255,.025) 0 1px,transparent 1px 3px)}
.np > *{position:relative;z-index:1}
.set-led{position:absolute;z-index:2;inset-inline-end:14px;inset-block-end:-7px;width:5px;height:5px;border-radius:50%;
  background:#2EE59D;box-shadow:0 0 7px 1px rgba(46,229,157,.8)}
.set::after{content:"MASJIDY";position:absolute;inset-inline-start:50%;transform:translateX(50%);inset-block-end:-8px;
  font-family:var(--f-num);font-size:6px;letter-spacing:.42em;color:#6A6A7A;line-height:1}
html[dir="ltr"] .set::after{transform:translateX(-50%)}
.set-cap{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 8px 0;
  font-size:.8rem;font-weight:800;color:var(--ink-2)}
.set-cap__i{display:inline-flex;align-items:center;gap:.45em;min-width:0}
.set-cap__i b{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.set-cap__i svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--acc);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.set-cap__i:has(b:empty){display:none}

.np-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.np-clock{font-family:var(--f-clock);font-weight:700;font-size:1.35rem;letter-spacing:.1em;
  color:#ffe500;text-shadow:0 0 18px rgba(255,229,0,.7);font-variant-numeric:tabular-nums}
.np-live{display:inline-flex;align-items:center;gap:.45em;font-family:var(--f-num);font-size:.58rem;
  letter-spacing:.2em;color:rgba(255,255,255,.55)}
.np-live i{width:6px;height:6px;border-radius:50%;background:#2EE59D;animation:blip 2.4s ease-in-out infinite}
@keyframes blip{0%,100%{opacity:1}50%{opacity:.25}}
.np-phase{font-family:'KioskFustat',var(--f-disp);font-size:.95rem;color:rgba(255,255,255,.78);margin-block-start:10px}
.np-name-wrap{display:flex}
.np-name{font-family:var(--f-plate);font-size:clamp(2rem,9vw,2.6rem);line-height:1.35;color:#fff;
  padding:.05em .55em .1em;border-radius:12px;
  background:linear-gradient(150deg,color-mix(in srgb,var(--acc) 100%,white 15%),var(--acc));
  text-shadow:1px 2px 8px rgba(0,0,0,.3);box-shadow:0 10px 26px -12px var(--acc)}
.np-count{font-family:var(--f-clock);font-weight:700;font-size:clamp(3.2rem,17vw,4.4rem);line-height:1.05;
  font-variant-numeric:tabular-nums;letter-spacing:.02em;margin-block:8px 6px;direction:ltr;text-align:start}
html[dir="rtl"] .np-count{text-align:right}
.np-count.small{font-family:'KioskFustat',var(--f-disp);font-weight:400;font-size:clamp(1.9rem,9vw,2.5rem);letter-spacing:0;direction:rtl}
.np-bar{height:4px;border-radius:4px;background:rgba(255,255,255,.14);overflow:hidden;margin-block:4px 14px}
.np-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#ffe500,var(--acc));transition:width 1s linear}
.np-times{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.np-t{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 12px;
  border-radius:10px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1)}
.np-t .k{font-size:.78rem;color:rgba(255,255,255,.65);font-weight:700}
.np-t .v{font-family:var(--f-clock);font-weight:700;font-size:1.15rem;font-variant-numeric:tabular-nums;letter-spacing:.04em}

/* ── the marks: sunrise and the friday prayer, as two cards ──────────────── */
.marks{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-block-start:6px}
.mark{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:var(--r);
  background:var(--bg-2);border:1px solid var(--line)}
.mark__hd{display:flex;align-items:center;gap:10px}
.mark__ico{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;
  background:var(--bg);border:1px solid var(--line-2);color:var(--ink-2)}
.mark__ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mark__t{display:flex;flex-direction:column;min-width:0}
.mark__t b{font-family:var(--f-disp);font-weight:800;font-size:1rem;line-height:1.3}
.mark__t i{font-style:normal;font-size:.72rem;color:var(--ink-3);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mark__v{font-family:var(--f-clock);font-weight:700;font-size:1.7rem;line-height:1;letter-spacing:.03em;
  font-variant-numeric:tabular-nums;direction:ltr;text-align:start}
html[dir="rtl"] .mark__v{text-align:right}
.mark--jum{background:linear-gradient(150deg,color-mix(in srgb,var(--acc) 100%,white 12%),var(--acc));border-color:transparent;color:#fff}
.mark--jum .mark__ico{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.22);color:#fff}
.mark--jum .mark__t i{color:rgba(255,255,255,.75)}
.mark--jum.today{outline:3px solid var(--acc-dim);outline-offset:2px}
.mark.msg{grid-column:1 / -1;text-align:center;color:var(--ink-3);font-weight:700;border-style:dashed;background:transparent}

/* ── the five prayers as a timeline ──────────────────────────────────────── */
.day{display:flex;flex-direction:column;gap:8px;margin-block-start:6px}
.day__hd{display:flex;align-items:center;justify-content:space-between;padding:0 6px}
.day__hd h2{font-family:var(--f-disp);font-weight:800;font-size:1.05rem}
.day__cols{display:flex;gap:0}
.day__cols span{width:4.6rem;text-align:center;font-size:.7rem;font-weight:800;color:var(--ink-3)}
.prs{position:relative;display:flex;flex-direction:column;gap:6px;padding-inline-start:0}
.pr{position:relative;z-index:1;display:grid;grid-template-columns:44px minmax(0,1fr) 4.6rem 4.6rem;align-items:center;gap:0 10px;
  min-height:62px;padding:8px 6px 8px 12px;border-radius:var(--r);
  background:var(--bg-2);border:1px solid var(--line);transition:border-color .25s,opacity .3s}
html[dir="rtl"] .pr{padding:8px 12px 8px 6px}
.pr__ico{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;
  background:var(--bg);border:1px solid var(--line);color:var(--ink-2);transition:.25s}
.pr__ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pr__name{display:flex;align-items:center;gap:8px;min-width:0;
  font-family:var(--f-plate);font-size:1.4rem;line-height:1.4;color:var(--ink)}
.pr__flag{font-family:var(--f-body);font-style:normal;font-size:.64rem;font-weight:800;line-height:1;padding:.4em .65em;
  border-radius:999px;background:var(--acc);color:#fff;flex:none}
.pr__t{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;height:46px;
  border-radius:12px;background:var(--bg);border:1px solid var(--line-2);
  font-family:var(--f-clock);font-weight:700;font-size:1.05rem;letter-spacing:.03em;font-variant-numeric:tabular-nums;
  color:var(--ink);transition:.25s}
.pr__t i{display:none}
.pr__t--iq{color:var(--ink-2)}
/* past: done and quiet */
.pr.past{opacity:.6}
.pr.past .pr__name{color:var(--ink-3)}
.pr.past .pr__ico{color:var(--ok);border-color:transparent;background:color-mix(in srgb,var(--ok) 12%,transparent)}
/* next: lit */
.pr.next{border-color:var(--acc-line);background:color-mix(in srgb,var(--acc) 5%,var(--bg-2))}
.pr.next .pr__ico{background:linear-gradient(150deg,color-mix(in srgb,var(--acc) 100%,white 15%),var(--acc));color:#fff;border-color:transparent}
.pr.next .pr__t{background:var(--bg-2);border-color:var(--acc-line);color:var(--ink)}
/* window: adhan called, iqama not yet */
.pr.window{border-color:var(--acc);animation:ring 2s ease-in-out infinite}
@keyframes ring{0%,100%{box-shadow:0 0 0 3px var(--acc-dim)}50%{box-shadow:0 0 0 7px color-mix(in srgb,var(--acc) 18%,transparent)}}
.pr.window .pr__ico{background:var(--acc);color:#fff;border-color:transparent}
.pr.window .pr__name{color:var(--acc)}
.pr.window .pr__t--iq{background:var(--acc);border-color:var(--acc);color:#fff}
.pr.friday .pr__name{color:var(--acc)}
.pr.msg{display:flex;justify-content:center;min-height:56px;color:var(--ink-3);font-weight:700;border-style:dashed;background:transparent}

/* ── the foot: three quiet tiles ────────────────────────────────────────── */
.foot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-block:14px 6px}
.foot__b{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 6px;
  border-radius:14px;background:var(--bg-2);border:1px solid var(--line);
  font-size:.76rem;font-weight:800;color:var(--ink-2);text-align:center;transition:color .2s,border-color .2s,background .2s}
.foot__b svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.foot__b:hover{color:var(--acc);border-color:var(--acc-line);background:var(--acc-dim)}

/* ── the install sheet: the app on the home screen ──────────────────────── */
.sheet{position:fixed;inset:0;z-index:50;display:none;align-items:flex-end;justify-content:center;
  padding:16px;background:rgba(23,20,31,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.sheet.on{display:flex;animation:sheetBg .3s}
@keyframes sheetBg{from{opacity:0}to{opacity:1}}
.sheet__card{width:100%;max-width:420px;padding:22px 22px 18px;border-radius:26px;background:var(--bg-2);
  box-shadow:0 40px 90px -30px rgba(23,20,31,.6);animation:sheetUp .45s cubic-bezier(.2,.9,.25,1.1);
  padding-bottom:calc(18px + env(safe-area-inset-bottom))}
@keyframes sheetUp{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
.sheet__ico{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;margin-block-end:14px;
  background:var(--acc-dim);border:1px solid var(--acc-line)}
.sheet__ico img{width:40px;height:40px}
.sheet__card h2{font-family:var(--f-disp);font-weight:800;font-size:1.4rem;line-height:1.4;margin-block-end:.3em}
.sheet__card p{color:var(--ink-2);font-size:.95rem}
.sheet__how{display:grid;gap:8px;margin-block:14px 18px;padding:12px 14px;border-radius:14px;
  background:var(--bg);border:1px solid var(--line);font-size:.88rem;color:var(--ink-2)}
.sheet__how[hidden]{display:none}
.sheet__how b{color:var(--ink)}
.sheet__how svg{width:16px;height:16px;vertical-align:-3px;margin-inline:.2em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sheet__acts{display:flex;gap:10px}
.sheet__acts button{flex:1;padding:13px 16px;border-radius:14px;font-size:.95rem;font-weight:800;transition:.2s}
.sheet__yes{background:var(--acc);color:#fff;box-shadow:0 8px 22px -10px rgba(83,82,237,.55)}
.sheet__yes:hover{background:color-mix(in srgb,var(--acc) 86%,white)}
.sheet__no{background:transparent;color:var(--ink-2);border:1px solid var(--line)}
.sheet__no:hover{border-color:var(--ink-3);color:var(--ink)}
@media (min-width:600px){ .sheet{align-items:center} }

/* toast */
.toast{position:fixed;inset-inline:0;bottom:calc(18px + env(safe-area-inset-bottom));margin-inline:auto;
  width:max-content;max-width:calc(100% - 32px);background:var(--ink);color:#fff;
  font-size:.9rem;font-weight:700;padding:.75em 1.2em;border-radius:999px;
  opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .22s,transform .22s;z-index:40}
.toast.on{opacity:1;transform:none}

/* load orchestration */
.rise{opacity:0;transform:translateY(12px)}
.loaded .rise{animation:rise .6s cubic-bezier(.22,.68,.32,1) forwards}
@keyframes rise{to{opacity:1;transform:none}}
.d1{animation-delay:.04s}.d2{animation-delay:.11s}.d3{animation-delay:.18s}.d4{animation-delay:.25s}.d5{animation-delay:.32s}

/* ── desktop: two columns, the board pinned beside the day ──────────────── */
@media (min-width:900px){
  .app{max-width:1180px;padding:0 clamp(24px,4vw,56px) 48px}
  .screen.on{display:grid;align-content:start;column-gap:clamp(40px,5vw,80px);row-gap:18px}
  /* justify-items:center on #finder would otherwise shrink the bar to its
     contents and park the wordmark in the middle of the page. */
  .top{grid-area:top;padding-block-start:22px;justify-self:stretch;width:100%}
  .wordmark{height:40px}

  /* finder: ONE centred column — the ask, then the mosques three to a row.
     The old two-column split (copy left, a narrow rail of cards right) left a
     tall empty well under the copy on anything wider than ~1100px, and the
     cards never got to breathe. Centred, the page reads top to bottom and the
     list is the widest thing on it, which is what people came for.
     auto-fit + justify-content:center is what makes a short row centre itself:
     two results sit in the middle of the page instead of hugging one edge. */
  #finder.on{grid-template-columns:minmax(0,1fr);
    grid-template-areas:"top" "hello" "search" "loc" "note" "lists" "more" "ffoot";
    justify-items:center}
  .hello{grid-area:hello;padding-block-start:clamp(20px,5vh,56px);
    align-items:center;text-align:center;max-width:46rem}
  .hello .eyebrow{align-self:center}
  .hello h1{font-size:clamp(2.6rem,3.6vw,3.6rem)}
  .hello p{font-size:1.06rem;max-width:52ch}
  .search-wrap{grid-area:search;width:min(100%,560px)}
  .tools{grid-area:loc;width:min(100%,560px)}
  .note{grid-area:note;max-width:560px}
  .finder__foot{grid-area:ffoot;text-align:center;padding-inline:4px}
  /* Tied to the widest the card grid can be (3 x 340 + 2 x 12), so the group
     label's rule ends where the cards end instead of running past them. */
  #lists{grid-area:lists;padding-block-start:clamp(14px,3vh,30px);width:min(100%,1044px)}
  .list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,340px));
    gap:12px;justify-content:center}
  .m-card{padding:14px;height:100%}
  .empty{grid-column:1 / -1}
  .more{grid-area:more}

  /* times: the set on one side, stuck; the day on the other */
  #times.on{grid-template-columns:minmax(0,6fr) minmax(0,6fr);
    grid-template-areas:"top top" "head head" "off off" "set marks" "set day" "set foot"}
  /* in arabic the reading column starts on the right, so the set goes left */
  html[dir="rtl"] #times.on{grid-template-areas:"top top" "head head" "off off" "marks set" "day set" "foot set"}
  .m-head{grid-area:head;padding-block-start:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"kick dates" "name dates";align-items:center;column-gap:20px}
  .m-kicker{grid-area:kick}
  .m-head h1{grid-area:name;font-size:clamp(2rem,2.8vw,2.7rem)}
  .m-dates{grid-area:dates;flex-direction:column;align-items:stretch}
  .offline{grid-area:off}
  .board{grid-area:set;align-self:start;position:sticky;top:28px}
  .set{margin:12px 10px 0}
  .set-cap{padding-inline:14px}
  .marks{grid-area:marks;align-self:start;margin-block-start:12px}
  .day{grid-area:day;align-self:start}
  .foot{grid-area:foot;max-width:420px}
  .np{padding:24px 26px 26px}
  .np-clock{font-size:1.6rem}
  .np-name{font-size:clamp(2.4rem,3vw,3rem)}
  .np-count{font-size:clamp(4rem,6.5vw,5.6rem)}
  .np-t .v{font-size:1.3rem}
}
@media (min-width:1180px){
  .pr{grid-template-columns:48px minmax(0,1fr) 5.4rem 5.4rem;min-height:68px}
  .day__cols span{width:5.4rem}
  .pr__t{font-size:1.15rem}
  .mark__v{font-size:2rem}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .rise{opacity:1;transform:none}
}
