/* Hayya v0.34.1 "depth and light" for the public pages, the phone play pages and the Q&A projector.
   The same language as the TV screens (v0.34.0): soft light from above, layered shadows, edges that catch the light,
   glass on the dark panels, a little gloss on buttons, faint grain on the dark panels only. Admin pages do not load this file (stage 3).
   Rules: card and button colours stay solid, so text keeps its contrast; on dark panels the effects only darken;
   no backdrop blur and no animation, and hover lifts are switched off for people who ask for reduced motion. */
:root{
  --d-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.2 0 0 0 .11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --d-light:rgba(255,255,255,.9); --d-shade:rgba(16,40,36,0);
  --d-hi:rgba(255,255,255,.95); --d-c1:rgba(16,44,38,.05); --d-c2:rgba(16,44,38,.07); --d-c3:rgba(16,44,38,.2); --d-c4:rgba(16,44,38,.32);
  --d-lift:inset 0 1px 0 var(--d-hi),0 1px 1px var(--d-c1),0 2px 5px var(--d-c1),0 16px 34px -18px var(--d-c3);
  --d-float:inset 0 1px 0 var(--d-hi),0 1px 2px var(--d-c1),0 8px 20px var(--d-c2),0 34px 70px -30px var(--d-c4);
  --d-raise:inset 0 1px 0 var(--d-hi),0 2px 4px var(--d-c1),0 14px 28px var(--d-c2),0 40px 80px -30px var(--d-c4);
  --d-dark:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 120px rgba(0,0,0,.26),0 2px 4px rgba(7,40,34,.14),0 30px 60px -26px rgba(7,40,34,.6);
  --d-glass:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.18),0 14px 30px -16px rgba(0,0,0,.5);
  --d-btn:inset 0 1px 0 rgba(255,255,255,.26),inset 0 14px 18px -14px rgba(255,255,255,.18),inset 0 -2px 0 rgba(0,0,0,.14),0 1px 2px rgba(16,44,38,.16),0 8px 18px -10px rgba(16,44,38,.5);
  --d-btn-hover:inset 0 1px 0 rgba(255,255,255,.3),inset 0 14px 18px -14px rgba(255,255,255,.22),inset 0 -2px 0 rgba(0,0,0,.14),0 2px 4px rgba(16,44,38,.16),0 14px 26px -12px rgba(16,44,38,.55);
  --d-btn-press:inset 0 2px 5px rgba(0,0,0,.22),0 1px 1px rgba(16,44,38,.1);
  --d-well:inset 0 1px 2px rgba(16,44,38,.09),inset 0 2px 6px -2px rgba(16,44,38,.06);
  --d-ring:0 0 0 4px rgba(11,94,82,.16);
}
/* Dark public theme: highlights are much softer and shadows deeper. */
body.hayya-today[data-theme=midnight]{--d-light:rgba(255,255,255,.04);--d-shade:rgba(0,0,0,.25);--d-hi:rgba(255,255,255,.07);--d-c1:rgba(0,0,0,.2);--d-c2:rgba(0,0,0,.25);--d-c3:rgba(0,0,0,.45);--d-c4:rgba(0,0,0,.6);--d-well:inset 0 1px 2px rgba(0,0,0,.35)}

/* ---- The page: light from the top left (grain only on the dark panels: on the light page it would cost small grey text its contrast). ---- */
body.hayya-portal,body.hy-play{background:radial-gradient(1200px 560px at 18% -140px,var(--d-light),rgba(255,255,255,0) 72%),radial-gradient(160% 120% at 18% 0,rgba(0,0,0,0) 55%,var(--d-shade)),var(--bg,var(--page))}
.hayya-portal .app-header{box-shadow:inset 0 -1px 0 var(--d-hi),0 14px 30px -24px var(--d-c4);position:relative;z-index:5}
.hayya-portal .app-nav a[aria-current=page]{box-shadow:var(--d-btn)}
.hayya-portal .app-footer{box-shadow:inset 0 1px 0 var(--d-hi)}
.hayya-portal .app-mark{box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -2px 0 rgba(0,0,0,.18),0 4px 10px -4px rgba(7,40,34,.55)}

/* ---- Cards rest on the page; the main ones float a little higher. ---- */
.hayya-portal :is(.card,.today-card,.surface-card,.saved-item,.directory-search,.discovery-map-panel,.qa-dialog,.banner),
.hayya-portal .hm-door:not(.hm-door-run),.hy-play .card,.hy-play .stat,.hy-play .you{box-shadow:var(--d-lift)}
.hayya-portal :is(.qa-room,.qa-reading article.card,.join-card){box-shadow:var(--d-float)}
.hayya-portal .masjid-card{box-shadow:var(--d-lift);transition:transform .18s ease,box-shadow .18s ease,border-color .15s}
.hayya-portal .masjid-card:hover{transform:translateY(-3px);box-shadow:var(--d-raise)}
.hayya-directory .masjid-card.selected{box-shadow:0 0 0 2px #176b6140,var(--d-raise)}
.hayya-portal .discovery-emblem,.hayya-portal .masjid-card .icon-tile,.hayya-home .hm-dot,.hayya-portal .hm-door-mark{box-shadow:inset 0 1px 0 var(--d-hi),inset 0 -2px 0 rgba(16,44,38,.07),0 6px 14px -6px var(--d-c4)}
.hayya-portal .scholar-card{box-shadow:var(--d-lift)}

/* ---- Dark panels: lit from the top edge, darker toward the corners, deep shadow. ---- */
.hayya-portal :is(.today-hero,.hm-app,.directory-welcome,.hm-door-run),.hy-play :is(header,.hero,.sp-hero){box-shadow:var(--d-dark)}
.hy-play header{box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.25),0 10px 26px -14px rgba(7,40,34,.55);position:relative;z-index:2}
.hayya-today .today-hero{background:var(--d-grain) 0 0/220px 220px,radial-gradient(ellipse at 60% 0,#399d871f,transparent 70%),linear-gradient(120deg,var(--hero),var(--hero-end))}
/* Glass tiles: darker underneath so the small light text stays clear, a sheen at the top, an edge that catches the light. */
.hayya-today .hero-tile{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 55%),linear-gradient(rgba(255,255,255,.1),rgba(255,255,255,.1)),linear-gradient(rgba(0,0,0,.16),rgba(0,0,0,.16));border-color:rgba(255,255,255,.14);box-shadow:var(--d-glass)}
.hayya-today .hero-adhan{border-left-color:rgba(255,255,255,.28);box-shadow:-1px 0 0 rgba(0,0,0,.18)}
.hayya-today .hero-times #nextTime,.hayya-today .today-hero h2,.hy-play .hero .big{text-shadow:0 2px 0 rgba(0,0,0,.12),0 8px 24px rgba(0,0,0,.3)}
/* The example TV on the home page: a real bezel, a screen set into it, and the shadow it casts. */
.hayya-home .hm-tv{border-color:#0d1c1a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),inset 0 0 90px rgba(0,0,0,.35),0 0 0 1px #2a3a37,0 2px 0 1px #050d0c,0 18px 30px -16px rgba(7,30,26,.5),0 36px 60px -36px rgba(7,30,26,.5);background:var(--d-grain) 0 0/220px 220px,#0c3a33}
.hayya-home .hm-tv-next{box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(0,0,0,.12),0 4px 10px -4px rgba(0,0,0,.45)}
.hayya-home .hm-tv-times tr.hm-cur>*{box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.12)}
.hayya-home .hm-screen figcaption{margin-top:22px}
.hayya-home .hm-note{box-shadow:inset 0 1px 0 #fff,0 10px 26px -8px rgba(0,0,0,.45)}

/* ---- Rows: the next prayer is raised out of the list. ---- */
.hayya-today #prayers .is-next>*,.hayya-today #prayers .is-current>*{box-shadow:inset 0 1px 0 var(--d-hi),0 8px 16px -12px var(--d-c4)}
.hayya-portal .month-table tr.today>*,.hayya-portal table tr.is-today>*{box-shadow:inset 0 1px 0 var(--d-hi),inset 0 -1px 0 var(--d-c2)}

/* ---- Buttons: filled ones have a sheen, a bevel and a shadow; they lift on hover and press in. ---- */
.hayya-portal :is(button,.button,.btn):not(.btn-quiet):not(.save-masjid):not(.link):not(.qa-info-button):not(.qa-join-open):not(.masjid-locate):not(.qa-dialog-close):not(.qa-vote):not([aria-pressed=false]),
.hy-play :is(.btn,.sp-next,.chg),.hayya-portal .saved-strip{box-shadow:var(--d-btn);transition:transform .12s ease,box-shadow .12s ease,background-color .15s}
.hayya-portal :is(button,.button,.btn):not(.btn-quiet):not(.save-masjid):not(.link):not(.qa-info-button):not(.qa-join-open):not(.masjid-locate):not(.qa-dialog-close):not(.qa-vote):not([aria-pressed=false]):not([disabled]):hover,
.hy-play :is(.btn,.sp-next,.chg):not([disabled]):hover,.hayya-portal .saved-strip:hover{transform:translateY(-1px);box-shadow:var(--d-btn-hover)}
.hayya-portal :is(button,.button,.btn):not(.btn-quiet):not(.save-masjid):not(.link):not(.qa-info-button):not(.qa-join-open):not(.masjid-locate):not(.qa-dialog-close):not(.qa-vote):not([aria-pressed=false]):not([disabled]):active,
.hy-play :is(.btn,.sp-next,.chg):not([disabled]):active{transform:translateY(1px);box-shadow:var(--d-btn-press)}
.hayya-portal .qa-vote{box-shadow:inset 0 1px 0 var(--d-hi),inset 0 -2px 0 var(--d-c2),0 2px 5px -2px var(--d-c3)}
.hayya-portal .qa-vote[aria-pressed=true]{box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset 0 -2px 0 rgba(0,0,0,.18),0 6px 14px -6px rgba(16,44,38,.5)}
.hayya-portal .save-masjid{box-shadow:inset 0 1px 0 var(--d-hi),0 2px 6px -3px var(--d-c3)}
/* Answer buttons on the phone look like keys. */
.hy-play :is(.opt,.sp-opt){box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset 0 16px 20px -16px rgba(255,255,255,.18),0 4px 0 rgba(0,0,0,.22),0 14px 24px -12px rgba(0,0,0,.45);transition:transform .1s ease,box-shadow .1s ease}
.hy-play :is(.opt,.sp-opt):not([disabled]):active{transform:translateY(3px);box-shadow:inset 0 2px 4px rgba(0,0,0,.2),0 1px 0 rgba(0,0,0,.22)}
.hy-play :is(.tick,.dot,.week i.ok,.week i.no,.note2 .i,.you .av){box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -2px 0 rgba(0,0,0,.14),0 6px 14px -6px rgba(16,44,38,.45)}

/* ---- Fields sit in a shallow well and glow when focused. ---- */
.hayya-portal :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea):not(.qa-input-row textarea),.hy-play input,.hayya-portal .qa-input-row{box-shadow:var(--d-well)}
.hayya-portal :is(input:not([type=checkbox]):not([type=radio]),select,textarea):not(.qa-input-row textarea):focus,.hy-play input:focus,.hayya-portal .qa-input-row:focus-within{box-shadow:var(--d-well),var(--d-ring)}
.hayya-portal .qa-input-row textarea{box-shadow:none}

/* ---- Small things: chips have a little gloss; bars sit in a groove. ---- */
.hayya-portal .chip,.hy-play .chip,.hayya-home .hm-badge{box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(16,44,38,.06)}
.hy-play :is(.time,.sp-time){box-shadow:inset 0 1px 2px rgba(16,44,38,.16)}
.hy-play :is(.time i,.sp-time i){box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.hayya-portal .leaflet-bar{box-shadow:var(--d-lift);border-color:transparent}
.hayya-portal .hayya-map-pin{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 0 rgba(0,0,0,.18),0 8px 14px -4px rgba(18,56,47,.55)}

/* ---- Q&A projector: the question being answered floats; the join panel is lit, grained and casts a shadow. ---- */
.hy-present .cur{box-shadow:inset 0 2px 0 #fff,0 2px 6px rgba(16,44,38,.06),0 26px 60px -26px rgba(16,44,38,.42)}
.hy-present .q{box-shadow:var(--d-lift)}
.hy-present .stage{background:var(--d-grain) 0 0/220px 220px,radial-gradient(1100px 600px at 20% -120px,rgba(255,255,255,.95),rgba(255,255,255,0) 72%),radial-gradient(160% 120% at 20% 0,rgba(0,0,0,0) 55%,rgba(16,40,36,.05)),#f6faf8}
.hy-present .right{background-image:var(--d-grain),radial-gradient(120% 80% at 30% 0%,#0f6b5d,#073a33 75%);background-size:220px 220px,auto;box-shadow:inset 1px 0 0 rgba(255,255,255,.1),inset 0 0 180px rgba(0,0,0,.3),-24px 0 60px -30px rgba(7,40,34,.65);position:relative}
.hy-present .qrbox{box-shadow:inset 0 2px 0 #fff,0 0 0 1px rgba(255,255,255,.15),0 24px 50px -18px rgba(0,0,0,.6)}
.hy-present :is(.k b,.state){box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(0,0,0,.12),0 6px 14px -6px rgba(0,0,0,.35)}
.hy-present .right h2{text-shadow:0 2px 0 rgba(0,0,0,.12),0 10px 30px rgba(0,0,0,.3)}
.hy-present .fs{box-shadow:var(--d-btn)}

/* ---- Quiz presenter screens (projector): the same depth as the TV; medals in gold, silver and bronze. ---- */
.hy-host .bar{box-shadow:inset 0 -1px 0 rgba(0,0,0,.25),inset 0 0 120px rgba(0,0,0,.25),0 14px 34px -16px rgba(7,40,34,.6);position:relative;z-index:2}
.hy-host:not(.hy-self) :is(.join,.row:not(:first-child),.chip,.warn){box-shadow:var(--d-lift)}
.hy-host:not(.hy-self) .join,.hy-self .prog{box-shadow:var(--d-float)}
.hy-host:not(.hy-self) .row:first-child{box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -3px 0 rgba(0,0,0,.18),0 18px 34px -14px rgba(7,40,34,.55)}
.hy-host .ctl :is(button,a),.hy-self .btn.go{box-shadow:var(--d-btn)}
.hy-host .ctl :is(button,a):active,.hy-self .btn.go:active{box-shadow:var(--d-btn-press);transform:translateY(1px)}
.hy-host .opt{box-shadow:inset 0 2px 0 rgba(255,255,255,.22),inset 0 24px 30px -24px rgba(255,255,255,.18),0 8px 0 rgba(0,0,0,.2),0 24px 40px -16px rgba(0,0,0,.45)}
.hy-host .timer span{box-shadow:var(--d-well),0 1px 0 var(--d-hi)}
.hy-host .pod .blk,.hy-self .pd .b{box-shadow:inset 0 2px 0 rgba(255,255,255,.35),inset 0 -20px 40px -20px rgba(0,0,0,.25),0 30px 50px -24px rgba(0,0,0,.55)}
.hy-self .stage{box-shadow:inset 0 0 220px rgba(0,0,0,.3)}
.hy-self .glass{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 55%),linear-gradient(rgba(255,255,255,.08),rgba(255,255,255,.08)),linear-gradient(rgba(0,0,0,.14),rgba(0,0,0,.14));box-shadow:var(--d-glass)}
.hy-self .join .qr{box-shadow:inset 0 2px 0 #fff,0 20px 40px -16px rgba(0,0,0,.6)}
.hy-self :is(.lr .r1,.pd.p1 .b){background:linear-gradient(150deg,#ffe7a6,#f4c96b 48%,#dcaa4a)}
.hy-self :is(.lr .r2,.pd.p2 .b){background:linear-gradient(150deg,#eef3f2,#c9d3d1 48%,#aab7b4)}
.hy-self :is(.lr .r3,.pd.p3 .b){background:linear-gradient(150deg,#f0c39c,#d9a273 48%,#bf8456)}
.hy-self .row .bar,.hy-play .sp-strip{box-shadow:inset 0 1px 2px rgba(16,44,38,.16)}

@media (prefers-reduced-motion:reduce){.hayya-portal .masjid-card:hover,.hayya-portal :is(button,.button,.btn):hover,.hayya-portal :is(button,.button,.btn):active,.hy-play :is(.btn,.sp-next,.chg,.opt,.sp-opt):hover,.hy-play :is(.btn,.sp-next,.chg,.opt,.sp-opt):active,.hy-host .ctl :is(button,a):active,.hy-self .btn.go:active{transform:none}}
@media print{body.hayya-portal{background:#fff}.hayya-portal *{box-shadow:none!important;text-shadow:none!important}}
