/* Wafd, third design layer. Sits on app.css and adds: sizes that follow the reader, the three modes,
   the walk, the 3D map, and the reading aids. One rule runs through it: the next thing to do is always the biggest thing on the screen. */
:root{--ts:1;--tabh:68px;--ok:#2f7a57;--warn:#b8473a}
html{font-size:calc(100% * var(--ts))}
body{font-size:1rem}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}
#view:focus{outline:0}

/* ---------- tab bar: five plain words with pictures ---------- */
#tabs{grid-template-columns:repeat(5,1fr);height:calc(var(--tabh) + var(--safe-b));border-radius:0;padding:0 4px var(--safe-b)}
#tabs:before{left:0;right:0;top:0;height:0;border-top:2px solid var(--gold);background:none;opacity:1}
#tabs a{gap:3px;padding-top:6px;min-width:0}
#tabs svg{width:26px;height:26px;stroke-width:1.700}
#tabs span{font-size:.72rem;font-weight:700;opacity:1;letter-spacing:0}
#tabs a[aria-current="page"]{color:var(--gold)}
#tabs a[aria-current="page"]:after{content:"";position:absolute;top:0;left:28%;right:28%;height:4px;border-radius:0 0 4px 4px;background:var(--gold)}
#toast{max-width:min(92vw,520px);width:max-content;border-radius:18px;text-align:center;line-height:1.4;font-size:.92rem}

/* ---------- top of Today ---------- */
.topbtns{display:flex;gap:8px}
.topbtns a{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:var(--card);box-shadow:var(--shadow)}
.topbtns svg,.bigbtn svg,.walkcard svg,.listen svg,.mbtn svg,.wx svg,.stars svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.700;stroke-linecap:round;stroke-linejoin:round}
.hero{min-height:330px}

/* the one card that is always there: Walk with me */
.walkcard{display:flex;align-items:center;gap:14px;padding:18px;border-radius:26px;background:var(--ink);color:#fff;box-shadow:var(--shadow)}
html[data-theme="night"] .walkcard{background:#1d1b16;box-shadow:inset 0 0 0 1px #3a3524}
.walkcard>svg{flex:none;width:52px;height:52px;padding:12px;border-radius:18px;background:var(--gold);color:#0E0E12}
.walkcard span{flex:1;min-width:0}
.walkcard small{display:block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
.walkcard b{display:block;font-size:1.22rem;font-weight:800;letter-spacing:-.02em;line-height:1.2;margin:2px 0 4px}
.walkcard em{display:block;font-style:normal;font-size:.86rem;line-height:1.4;color:rgba(255,255,255,.76)}
.walkcard>i{flex:none;font-style:normal;font-weight:800;font-size:.88rem;background:var(--gold);color:#0E0E12;padding:11px 16px;border-radius:14px}
.walkcard.slim{padding:14px;border-radius:20px}.walkcard.slim b{font-size:1.05rem;margin:0}
.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.biggrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.bigbtn{display:flex;flex-direction:column;gap:10px;padding:16px 14px;min-height:112px;border-radius:22px;background:var(--card);box-shadow:var(--shadow);justify-content:space-between}
.bigbtn svg{width:30px;height:30px;color:var(--goldd)}
.bigbtn b{display:block;font-weight:800;font-size:1rem;letter-spacing:-.01em;line-height:1.2}
.bigbtn small{display:block;font-size:.78rem;color:var(--muted);line-height:1.3;margin-top:2px}
.bigbtn.warn svg{color:var(--warn)}
html[data-theme="night"] .bigbtn.warn svg{color:#ef8a7c}
.biggrid .bigbtn{min-height:132px;padding:18px 16px}.biggrid .bigbtn svg{width:38px;height:38px}.biggrid .bigbtn b{font-size:1.15rem}.biggrid .bigbtn small{font-size:.86rem}
.steps.big i{width:48px;height:48px;font-size:1.1rem}.steps.big:before{top:23px}.steps.big a{font-size:.9rem}
.steps a{min-height:48px}

/* ---------- young pilgrim ---------- */
.kidhi{margin-top:14px}.kidhi .lead{margin-top:8px;font-size:1.08rem}
.stars{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0 14px;padding:14px 8px;border-radius:24px;background:var(--card);box-shadow:var(--shadow)}
.stars span{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--line)}
.stars svg{width:44px;height:44px;stroke-width:1.400}
.stars span.on{color:var(--gold)}.stars span.on svg{fill:var(--gold)}
.stars small{font-size:.8rem;font-weight:700;color:var(--body)}
html[data-mode="young"] .lead,html[data-mode="young"] .wtext{font-size:1.12rem}

/* ---------- settings ---------- */
.modes{display:grid;gap:10px}
.modecard{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px;border-radius:22px;background:var(--card);box-shadow:inset 0 0 0 2px var(--line)}
.modecard[aria-checked="true"]{box-shadow:inset 0 0 0 3px var(--gold);background:var(--tint)}
.modecard b{display:block;font-weight:800;font-size:1.06rem}.modecard small{display:block;font-size:.86rem;line-height:1.4;color:var(--body);margin-top:2px}
.mi{flex:none;width:46px;height:46px;border-radius:15px;background:var(--ink);position:relative}
.mi:before,.mi:after{content:"";position:absolute;background:var(--gold);border-radius:3px}
.mi-standard:before{left:10px;top:11px;width:26px;height:5px;box-shadow:0 9px 0 var(--gold),0 18px 0 var(--gold)}
.mi-simple:before{left:10px;top:13px;width:26px;height:20px;border-radius:6px}
.mi-young:before{left:14px;top:10px;width:18px;height:18px;border-radius:50%}.mi-young:after{left:11px;top:30px;width:24px;height:7px;border-radius:7px}
.set{min-height:60px}.set b{font-weight:700}
.set.sw{cursor:pointer;position:relative}.set.sw span{flex:1}.set.sw small{display:block;font-size:.82rem;color:var(--muted);line-height:1.35;margin-top:2px;font-weight:500}
.set.sw input{position:absolute;opacity:0;width:1px;height:1px}
.set.sw i{flex:none;width:54px;height:32px;border-radius:999px;background:var(--line);position:relative;transition:background .15s}
.set.sw i:after{content:"";position:absolute;left:3px;top:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.set.sw input:checked+i{background:var(--ok)}.set.sw input:checked+i:after{transform:translateX(22px)}
.set.sw input:focus-visible+i{outline:3px solid var(--gold);outline-offset:3px}
.sample{font-size:calc(1.6rem * var(--arsize));line-height:2.3;text-align:center;margin:10px 0 0}
.seg button{min-height:44px;min-width:48px}

/* ---------- welcome ---------- */
.welcome{padding:calc(var(--safe-t) + 26px) 20px 40px}
.wl-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
.wl-logo{width:56px;height:56px;border-radius:18px;background:var(--ink) url(../img/icon-192.png) center/cover}
.wl-top .ar{font-size:1.7rem;margin:0;color:var(--goldd)}
.welcome .lead{margin:10px 0 18px}

/* ---------- listen ---------- */
.listen{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:8px 16px;border-radius:14px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);font-weight:700;font-size:.88rem;color:var(--text)}
.listen[aria-pressed="true"]{background:var(--gold);color:#0E0E12;box-shadow:none}
.listen.round{padding:8px 12px}.listen.round span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* ---------- the walk ---------- */
.walk{min-height:100dvh;display:flex;flex-direction:column;padding-top:var(--safe-t)}
.wbar{display:flex;align-items:center;gap:10px;padding:10px 14px}
.wx{flex:none;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
.writes{flex:1;display:flex;justify-content:center;gap:6px;list-style:none;margin:0;padding:0;font-size:.7rem;font-weight:700;color:var(--muted)}
.writes li{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:44px}
.writes i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:.76rem;box-shadow:inset 0 0 0 2px var(--line)}
.writes .done i{background:var(--gold);color:#0E0E12;box-shadow:none}.writes .now{color:var(--text)}.writes .now i{background:var(--ink);color:#fff;box-shadow:none}
html[data-theme="night"] .writes .now i{background:#f3efe4;color:#0E0E12}
.wprog{height:6px;margin:0 16px;border-radius:6px;background:var(--line);overflow:hidden}.wprog i{display:block;height:100%;background:var(--gold);border-radius:6px;transition:width .3s}
.wmain{flex:1;padding:22px 20px 200px;max-width:640px;width:100%;margin:0 auto}
.wmain h1{margin:6px 0 14px;outline:0}
.wtext{font-size:1.14rem;line-height:1.6;color:var(--text);margin:0 0 16px}
.pic{display:block;width:104px;height:104px;margin:4px 0 14px;padding:14px;border-radius:28px;background:var(--tint);fill:none;stroke:var(--text);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.pic .g{stroke:var(--goldd)}
.wdua{margin:0 0 14px;padding:18px;border-radius:22px;background:var(--card);box-shadow:var(--shadow)}
.wdua .k{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--goldd);margin:0 0 6px}
.wdua .ar{font-size:calc(1.7rem * var(--arsize));line-height:2.2;margin:0 0 8px;text-align:right;color:var(--text)}
.wdua .tr{font-family:var(--serif);font-style:italic;font-size:.96rem;line-height:1.55;color:var(--body);margin:0 0 6px}
.wdua .en{font-size:1rem;line-height:1.55;margin:0;color:var(--text)}
.wmore{margin:0 0 14px;border-radius:18px;background:var(--tint);padding:4px 16px}
.wmore summary{min-height:48px;display:flex;align-items:center;font-weight:700;cursor:pointer}
.wst{margin:0;padding:0 0 12px 20px}.wst li{margin-top:10px}.wst b{display:block}.wst span{display:block;color:var(--body);line-height:1.5}
.wlink{font-size:.9rem;color:var(--muted)}.wlink a{font-weight:700;color:var(--goldd);text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:10px 0}
.wfoot{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:12px 16px calc(12px + var(--safe-b));background:linear-gradient(transparent,var(--bg) 22%)}
.wfoot>*{max-width:608px;margin-left:auto;margin-right:auto}
.btn.big{display:flex;width:100%;min-height:68px;font-size:1.12rem;border-radius:22px;box-shadow:0 8px 24px rgba(125,98,32,.28);text-align:center;line-height:1.25}
.btn.big.tap{min-height:92px;font-size:1.2rem}
.wsub{display:flex;justify-content:space-between;gap:8px;margin-top:6px}
.wsub button{min-height:46px;padding:8px 12px;font-weight:700;font-size:.88rem;color:var(--body);border-radius:12px}
.dial{display:block;width:min(64vw,250px);margin:0 auto 14px}
.dial .arcs path{fill:none;stroke:var(--line);stroke-width:13;stroke-linecap:round}.dial .arcs .on{stroke:var(--gold)}.dial .arcs .now{stroke:var(--goldd);stroke-dasharray:4 9}
.dial .kb{fill:#0E0E12}.dial .belt{fill:var(--gold)}.dial .hatim{fill:none;stroke:var(--muted);stroke-width:3}.dial .bs{fill:var(--gold);stroke:#fff;stroke-width:2}
.dial .walker{fill:var(--text);stroke:var(--gold);stroke-width:3}
.dial text{font-family:var(--sans);text-anchor:middle;fill:var(--text)}.dial .big{font-size:38px;font-weight:800}.dial .small{font-size:12px;font-weight:700;fill:var(--muted)}
.dial.lane{width:min(88vw,360px)}.dial .track{fill:var(--line)}.dial .grn{fill:#2fa35f;opacity:.85}.dial .hill{fill:var(--tint);stroke:var(--goldd);stroke-width:2}.dial .hl{font-size:12px;font-weight:800}
.dial .pip{fill:var(--line)}.dial .pip.on{fill:var(--gold)}.dial .pip.now{fill:var(--goldd)}.dial .stem{stroke:var(--gold);stroke-width:3}
html[data-theme="night"] .dial .kb{stroke:#555;stroke-width:1}
.walk.inr .wmain{animation:inr .22s ease-out}.walk.inl .wmain{animation:inl .22s ease-out}
@keyframes inr{from{opacity:0;transform:translateX(18px)}}@keyframes inl{from{opacity:0;transform:translateX(-18px)}}

/* ---------- aids on long handbook pages ---------- */
.aids{padding:14px 18px 0}.aidrow{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;margin-top:10px}
.jump{flex:1;min-width:200px;border-radius:14px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
.jump summary{min-height:46px;display:flex;align-items:center;padding:0 16px;font-weight:700;font-size:.88rem;cursor:pointer}
.jump ol{margin:0;padding:0 8px 8px;list-style:none}.jump button{display:block;width:100%;text-align:left;min-height:44px;padding:8px;border-radius:10px;font-weight:600;font-size:.94rem}
.jump button:active{background:var(--tint)}

/* ---------- the 3D map ---------- */
#mapview{background:#cdc2a8;bottom:calc(var(--tabh) + var(--safe-b));overflow:hidden}
html[data-theme="night"] #mapview{background:#121216}
#mapview .mcanvas{position:absolute!important;inset:0;width:100%;height:100%}
.mload{position:absolute;inset:0;display:grid;place-items:center;font-weight:700;color:var(--muted);margin:0}
.mtop{position:absolute;z-index:5;left:10px;right:10px;top:calc(var(--safe-t) + 10px);display:flex;gap:8px;align-items:center}
.mcity{margin:0;flex:1;background:var(--card);box-shadow:0 4px 16px rgba(14,14,18,.18);border-radius:16px}.mcity button{flex:1;border-radius:12px;padding:8px 6px}
.mcity button[aria-pressed="true"]{background:var(--ink);color:#fff}
html[data-theme="night"] .mcity button[aria-pressed="true"]{background:var(--gold);color:#0E0E12}
.mbtn{flex:none;width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:var(--card);color:var(--text);box-shadow:0 4px 16px rgba(14,14,18,.18);font-weight:800;font-size:1rem}
.mside{position:absolute;z-index:4;right:10px;top:calc(var(--safe-t) + 70px);display:flex;flex-direction:column;gap:8px}
.mside #mzin,.mside #mzout{font-size:1.5rem;font-weight:500}
.mbottom{position:absolute;z-index:5;left:10px;right:10px;bottom:10px;display:flex;flex-direction:column;gap:8px;pointer-events:none}.mbottom>*{pointer-events:auto}
.mtours{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:8px;border-radius:20px;background:var(--card);box-shadow:0 4px 20px rgba(14,14,18,.2);scrollbar-width:none}
.mtours span{flex:none;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--goldd);padding:0 6px}
.mtours button,.mtours a{flex:none;min-height:46px;display:inline-flex;align-items:center;padding:8px 16px;border-radius:14px;font-weight:800;font-size:.92rem;background:var(--ink);color:#fff}
.mtours a{background:var(--tint);color:var(--text);margin-left:auto}
html[data-theme="night"] .mtours button{background:var(--gold);color:#0E0E12}
.mtours[data-in="makkah"] [data-tour="madinah"],.mtours[data-in="madinah"] [data-tour="tawaf"],.mtours[data-in="madinah"] [data-tour="sai"]{display:none}
.mtour,.msheet,.mpanel{position:relative;padding:18px;border-radius:24px;background:var(--card);color:var(--text);box-shadow:0 8px 30px rgba(14,14,18,.25);max-height:52vh;overflow:auto}
.mtour h2,.msheet h2{font-size:1.25rem;font-weight:800;letter-spacing:-.02em;margin:4px 40px 6px 0}
.mnote{font-size:1rem;line-height:1.55;color:var(--body);margin:0 0 12px}
.trow{display:flex;gap:8px;align-items:center}.trow .btn{flex:1;min-height:54px}.trow .btn[disabled]{opacity:.35}
.mclose{position:absolute;right:8px;top:8px;width:44px;height:44px;border-radius:14px;font-size:1.6rem;line-height:1;color:var(--muted);background:var(--tint)}
.msheet details{margin:0 0 12px;border-radius:14px;background:var(--tint);padding:2px 14px}.msheet summary{min-height:46px;display:flex;align-items:center;font-weight:700;cursor:pointer}
.msheet .pg{font-weight:700;margin:8px 0 2px}.msheet ul{margin:0 0 8px;padding-left:20px}
.mpanel{position:absolute;z-index:6;left:10px;right:10px;top:calc(var(--safe-t) + 68px);max-height:60vh}
.mpanel .search{margin:0 50px 10px 0}.mres button{display:block;width:100%;text-align:left;padding:10px 8px;min-height:52px;border-radius:12px}.mres button:active{background:var(--tint)}
.mres b{display:block;font-weight:700}.mres small{display:block;color:var(--muted);font-size:.82rem}
.mlayers label{display:flex;align-items:center;gap:12px;min-height:48px;font-weight:600;cursor:pointer}.mlayers input{width:22px;height:22px;accent-color:var(--goldd)}
.mlayers i{width:14px;height:14px;border-radius:50%}.mlayers .btn{margin-top:10px;width:100%}
.mcredit{margin:0;font-size:.64rem;color:var(--muted);text-align:center;text-shadow:0 0 4px var(--bg),0 0 4px var(--bg)}
.mk{display:flex;align-items:center;gap:6px;padding:8px 6px;cursor:pointer;background:none;border:0}
.mk i{flex:none;width:18px;height:18px;border-radius:50%;background:var(--c);border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.mk span{display:none;font:700 .78rem var(--sans);color:#16161c;background:rgba(255,255,255,.92);padding:3px 8px;border-radius:8px;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.mk.lab span,.mk.sel span{display:block}.mk.sel{z-index:3}.mk.sel i{width:24px;height:24px;border-color:var(--gold)}
html[data-theme="night"] .mk span{background:rgba(23,23,29,.92);color:#f3efe4}
.me{width:22px;height:22px;border-radius:50%;background:#2f6fe0;border:4px solid #fff;box-shadow:0 0 0 8px rgba(47,111,224,.25)}
.mfail{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:30px;background:var(--bg);color:var(--text)}.mfail h2{margin:0;font-size:1.4rem}.mfail p{margin:0;color:var(--body)}
.wafd-pin{width:26px;height:26px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--warn);border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.4)}
body.onmap #toast{bottom:auto;top:calc(var(--safe-t) + 70px)}
.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{display:none}

/* ---------- Calm and simple: less on the screen, more room around it ---------- */
html[data-mode="simple"] .epi,html[data-mode="simple"] .umr-picsec,html[data-mode="simple"] .plate.crop{display:none}
html[data-mode="simple"] .toc a,html[data-mode="young"] .toc a{min-height:66px}
html[data-mode="simple"] .kicker{letter-spacing:.04em}
html[data-mode="simple"] .guide .umr-prose p,html[data-mode="simple"] .guide p{line-height:1.75}

/* ---------- stronger contrast ---------- */
html[data-contrast="more"]{--muted:#3d3a33;--body:#16161c;--line:#8d8672;--goldd:#5a4510;--shadow:0 0 0 1.500px #8d8672}
html[data-contrast="more"][data-theme="night"]{--muted:#e2dccb;--body:#fff;--line:#8d8672;--goldd:#f0d27a;--text:#fff;--bg:#000;--card:#101014}
html[data-contrast="more"] .walkcard em,html[data-contrast="more"] .hero p{color:#fff}
html[data-contrast="more"] #tabs a{color:#fff}

/* ---------- easier letters ---------- */
html[data-easy="1"] body{letter-spacing:.035em;word-spacing:.12em;line-height:1.7}
html[data-easy="1"] .h-display,html[data-easy="1"] .h2,html[data-easy="1"] b{letter-spacing:.01em}
html[data-easy="1"] em,html[data-easy="1"] i,html[data-easy="1"] .tr,html[data-easy="1"] .umr-tr,html[data-easy="1"] .wdua .tr{font-style:normal}
html[data-easy="1"] .guide p,html[data-easy="1"] .lead,html[data-easy="1"] .wtext,html[data-easy="1"] .mnote{line-height:1.85;max-width:34em}
html[data-easy="1"] .ar,html[data-easy="1"] [lang="ar"]{letter-spacing:0;word-spacing:normal}

/* ---------- less movement ---------- */
html[data-motion="less"] *,html[data-motion="less"] *:before,html[data-motion="less"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- wider screens: a tablet on a stand, or the website ---------- */
@media (min-width:760px){
  #tabs{left:50%;right:auto;width:560px;margin-left:-280px;bottom:14px;border-radius:24px;height:var(--tabh);padding-bottom:0}
  #tabs:before{display:none}
  #mapview{bottom:0}.mbottom{bottom:calc(var(--tabh) + 26px);left:50%;right:auto;width:560px;margin-left:-280px}
  .mpanel{left:10px;right:auto;width:400px}
}
#mapview.touring .mk:not(.sel) span{display:none}
#mapview.touring .mk:not(.sel) i{width:12px;height:12px;border-width:2px;opacity:.8}
html[data-theme="night"] #mapview{background:#121216}
.walkcard{flex-wrap:wrap}.walkcard>i{flex:1 0 100%;text-align:center;padding:13px 16px;font-size:.95rem}
.walkcard.slim{flex-wrap:nowrap}.walkcard.slim>i{flex:none}

/* ---------- every control big enough for a thumb in a crowd (46px and up) ---------- */
#view :is(.btn,.bar .back,.bar .tools button,.stages button,.chips.filter button,.umr-tabbar button,.umr-acts button,.umr-ctl button,.bq-chip,.bq3-seg button,.pick button){min-height:46px}
.bar .tools button{min-width:46px}
.sec-head a,.umr-more a,.umr-dir,.umr-link{min-height:46px;display:inline-flex;align-items:center}
.umr-more a{display:flex}
.umr-dir,.umr-link{padding:0 4px}
#view summary{min-height:46px;display:flex;align-items:center;cursor:pointer}
#view summary::-webkit-details-marker{display:none}
#view details:not(.pstep)>summary:after{content:"+";margin-left:auto;font-weight:700;font-size:1.2rem;padding-left:12px}
#view details[open]:not(.pstep)>summary:after{content:"−"}
.umr-ck{min-height:46px}
a.tel{display:flex}.tel span{font-family:var(--sans);font-weight:800;font-size:1.5rem;color:var(--goldd)}
.mk{min-height:46px;min-width:46px}
.brand h1{font-weight:800;font-size:1.25rem;letter-spacing:-.03em;line-height:1;margin:0}
.surah-head h1{margin:4px 0 0;font-size:.9rem;font-weight:700;color:rgba(255,255,255,.85);font-family:var(--sans)}
.surah-head h1.ar{font-family:var(--ar);font-weight:400;font-size:2rem;line-height:1.7;color:var(--gold);margin:0}
.umr-moon{flex-wrap:wrap}.umr-moon>div,.umr-moon>span{min-width:0;flex:1 1 60px}.umr-tile{min-width:0;overflow-wrap:anywhere}.umr-moon svg{width:44px;height:44px}
.wlink a{min-height:46px;display:inline-flex;align-items:center;padding:0}
#view .btn.big{min-height:68px}#view .btn.big.tap{min-height:96px}

/* ---------- icons: one family, the gold part carries the meaning ---------- */
.ico{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.750;stroke-linecap:round;stroke-linejoin:round}
.ico .a{stroke:var(--gold)}
.bigbtn .ico{width:34px;height:34px;color:var(--text)}.biggrid .bigbtn .ico{width:42px;height:42px}
.bigbtn .ico .a,.toc .ni .ico .a,.planrow>.ico .a,.pic .ico .a,.tel .ico .a,.topbtns .ico .a,.mbtn .ico .a,.listen .ico .a,.wx .ico .a{stroke:var(--goldd)}
.bigbtn.warn .ico{color:var(--text)}.bigbtn.warn .ico .a{stroke:var(--warn)}
html[data-theme="night"] .bigbtn.warn .ico .a{stroke:#ef8a7c}
.walkcard>.ico{width:52px;height:52px;padding:12px;border-radius:18px;background:var(--gold);color:#0E0E12}.walkcard>.ico .a{stroke:#0E0E12}
.toc .n.ni{min-width:44px;width:44px;height:44px;padding:0;border-radius:14px;color:var(--text)}.toc .n.ni .ico{width:26px;height:26px}
.toc .n.ni.ok{background:var(--gold);color:#0E0E12}.toc .n.ni.ok .ico .a{stroke:#0E0E12}
.planrow>.ico{width:44px;height:44px;padding:9px;border-radius:14px;background:var(--tint);color:var(--text)}
.tel .ico{width:26px;height:26px;color:var(--warn)}.tel b{flex:1}
.pic{display:grid;place-items:center;width:104px;height:104px;margin:4px 0 14px;padding:0;border-radius:28px;background:var(--tint);color:var(--text)}
.pic .ico{width:64px;height:64px;stroke-width:1.400}
.mi{display:grid;place-items:center;background:var(--ink);color:#f3efe4}.mi:before,.mi:after{display:none}.mi .ico{width:28px;height:28px}
.stars .ico{width:44px;height:44px;stroke-width:1.400}.stars span.on .ico{fill:var(--gold)}
.mtours a .ico{width:20px;height:20px;margin-right:6px}
.mside #mzin,.mside #mzout{font-size:1rem}
.listen .ico{width:22px;height:22px}

/* ---------- the tab bar: the Kaaba, or the Green Dome in Madinah, stands out of the bar as the way home ---------- */
#tabs{grid-template-columns:1fr 1fr 88px 1fr 1fr;overflow:visible}
#tabs .ico{width:26px;height:26px}
#tabs a .ico .a{stroke:currentColor;opacity:.55}#tabs a[aria-current="page"] .ico .a{stroke:var(--gold);opacity:1}
#tabs .home{padding:0;justify-content:flex-end;padding-bottom:9px}
#tabs .home i{position:absolute;left:50%;top:-26px;width:64px;height:64px;margin-left:-32px;border-radius:20px;overflow:hidden;background:#0E0E12 url(../img/icon-192.png) center/cover;box-shadow:0 0 0 4px var(--bg),0 10px 22px rgba(14,14,18,.35);transition:transform .15s,background-image .3s}
body[data-city="madinah"] #tabs .home i{background-image:url(../img/icon-madinah.png)}
#tabs .home:active i{transform:scale(.94)}
#tabs .home[aria-current="page"] i{box-shadow:0 0 0 4px var(--bg),0 0 0 7px var(--gold),0 10px 22px rgba(14,14,18,.35)}
#tabs .home[aria-current="page"]:after{display:none}
#view{padding-bottom:calc(var(--tabh) + var(--safe-b) + 60px)}
body.reading #view{padding-bottom:40px}
#view .wfoot .btn.big{min-height:68px}#view .wfoot .btn.big.tap{min-height:96px}
#tabs .home i{top:-30px}

/* the map cards: small first so the map stays in reach, bigger in place on Read more */
.mtour,.msheet{padding:12px 14px;border-radius:20px;max-height:34vh;transition:max-height .25s}
.mtour.big,.msheet.big{max-height:68vh}
.mtour h2,.msheet h2{font-size:1.05rem;margin:2px 44px 4px 0}
.mtour .kicker,.msheet .kicker{font-size:.66rem;margin:0 44px 0 0}
.mtour .mnote,.msheet .mnote{font-size:.92rem;line-height:1.45;margin:0 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mtour.big .mnote,.msheet.big .mnote{display:block;overflow:visible;font-size:1rem;line-height:1.55}
.msheet details,.msheet .mextra,.msheet .mfull{display:none}
.msheet.big details{display:block}.msheet.big .mextra{display:block}
.msheet.big .mfull{display:inline-block;margin:0 0 12px;font-weight:700;color:var(--goldd);text-decoration:underline}
.msheet .btnrow .btn,.mtour .trow .btn{min-height:44px;padding-top:6px;padding-bottom:6px;font-size:.9rem}
.mlink{display:inline-block;margin:-4px 0 8px;padding:4px 0;font-weight:700;font-size:.85rem;color:var(--goldd);background:none;text-decoration:underline}
.mlink[hidden]{display:none}
.mclose{width:38px;height:38px;right:6px;top:6px;font-size:1.4rem}
#mme[aria-pressed="true"]{background:var(--ink);color:var(--gold)}
html,body{touch-action:pan-x pan-y}

/* the walk: brother or sister, changed on the spot */
.wtop{display:flex;align-items:center;justify-content:space-between;gap:10px}.wtop .kicker{margin:0}
.wwho{display:inline-flex;flex:none;padding:3px;border-radius:999px;background:var(--tint)}
.wwho button{min-height:32px;padding:4px 12px;border-radius:999px;font-size:.76rem;font-weight:700;color:var(--muted);background:none}
.wwho button[aria-pressed="true"]{background:var(--ink);color:#fff}
html[data-theme="night"] .wwho button[aria-pressed="true"]{background:var(--gold);color:#0E0E12}
.dial .startline{stroke:#2fa35f;stroke-width:6;stroke-linecap:round;fill:none}

/* Amanah, promoted */
.amcard{display:flex;align-items:center;gap:14px;padding:18px;border-radius:26px;background:var(--card);color:var(--text);box-shadow:0 0 0 2px var(--gold) inset,var(--shadow)}
.amcard .amq{flex:none;width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#0E0E12;color:var(--gold);font-family:"IndoPak",serif;font-size:1.05rem;line-height:1}
.amcard>span:nth-child(2){flex:1;min-width:0}
.amcard small{display:block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--goldd)}
.amcard b{display:block;font-size:1.22rem;font-weight:800;letter-spacing:-.02em;line-height:1.2;margin:2px 0 4px}
.amcard em{display:block;font-style:normal;font-size:.86rem;line-height:1.4;color:var(--body)}
.amcard>i{flex:none;font-style:normal;font-weight:800;font-size:.88rem;background:#0E0E12;color:#fff;padding:11px 16px;border-radius:14px}
html[data-theme="night"] .amcard>i{background:var(--gold);color:#0E0E12}
.mtours .mam{background:var(--gold);color:#0E0E12;margin-left:auto}.mtours .mam+a{margin-left:0}
/* the way back to an Umrah in progress */
#backpill{position:fixed;z-index:40;left:50%;transform:translateX(-50%);bottom:calc(var(--tabh) + var(--safe-b) + 44px);display:flex;align-items:center;gap:10px;padding:7px 18px 7px 7px;border-radius:999px;background:var(--gold);color:#0E0E12;box-shadow:0 8px 24px rgba(14,14,18,.32);max-width:calc(100% - 32px);white-space:nowrap}
#backpill i{flex:none;width:34px;height:34px;border-radius:50%;background:#0E0E12 url(../img/icon-192.png) center/cover}
#backpill span{min-width:0}
#backpill small{display:block;font-size:.6rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.72}
#backpill b{display:block;font-size:.92rem;font-weight:800;overflow:hidden;text-overflow:ellipsis}
#backpill[hidden],body.reading #backpill{display:none}
body.onmap #backpill{bottom:auto;top:calc(env(safe-area-inset-top) + 66px)}
/* Ihya us Sunnah mark, photos */
.ihyak{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ihyak img{width:26px;height:26px;border-radius:50%}
html[data-theme="night"] .ihyak img{filter:invert(1)}
.banner{margin:16px 20px 0;border-radius:24px;overflow:hidden;aspect-ratio:16/9;background:var(--tint)}
.banner img{display:block;width:100%;height:100%;object-fit:cover}
.site .sphoto{display:block;width:calc(100% + 36px);margin:-18px -18px 14px;aspect-ratio:16/9;object-fit:cover;border-radius:20px 20px 0 0;background:var(--tint)}
.msheet .mph{float:right;width:64px;height:64px;object-fit:cover;border-radius:14px;margin:0 44px 6px 10px}
.msheet.big .mph{float:none;display:block;width:100%;height:170px;margin:0 0 12px}
/* Support Wafd */
.tips{display:grid;gap:10px}
.tip{display:flex;justify-content:space-between;align-items:center;min-height:62px;padding:12px 18px;border-radius:18px;background:var(--card);box-shadow:0 0 0 1px var(--line) inset;color:var(--text);font-size:1rem;text-align:left}
.tip b{font-weight:800}.tip span{font-weight:800;color:var(--goldd)}
.tip[disabled]{opacity:.5}
.asksheet{position:fixed;inset:0;z-index:60;background:rgba(14,14,18,.45);display:flex;align-items:flex-end}
.askin{width:100%;max-width:560px;margin:0 auto;padding:22px 20px calc(22px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;background:var(--card);color:var(--text)}
.askin h2{font-size:1.4rem;font-weight:800;letter-spacing:-.02em;margin:4px 0 8px}.askin p{line-height:1.55;color:var(--body)}
