/* Step 61: desktop layout (web, window >= 1024px). Everything is scoped to html.desk, set only by desk.js (never in the
   iOS/Android app). Phones, tablets under 1024px and the native apps keep app.css as it was. */
.dside,.dpanel,.dsearch,.pcmpw{display:none}
/* place panel frame (desk.js ?embed=1): the app without its header and tabs */
html.embed .appbar,html.embed .tabbar,html.embed .offbar,html.embed .ubar,html.embed .admtabs{display:none!important}
html.embed #app>main#view{padding-bottom:16px}
html.embed .phero .round[data-act="back"]{visibility:hidden}

html.desk{--sideW:232px;--maxW:1200px;--padX:max(32px,calc((100% - var(--maxW)) / 2))}
@media (min-width:1440px){html.desk{--sideW:256px;--maxW:1320px}}
@media (max-width:1279px){html.desk{--sideW:208px}}
/* ---- side menu ---- */
html.desk .dside{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:var(--sideW);z-index:40;background:#fff;border-right:1px solid var(--line);padding:14px 12px 14px;overflow-y:auto}
html.desk .dlogo{display:flex;align-items:center;gap:10px;text-decoration:none;padding:4px 8px 14px;min-height:44px}
html.desk .dlogo img{height:38px;width:auto;flex:none}
html.desk .dlogo .brandtxt{display:flex;flex-direction:column;min-width:0;line-height:1.15}
html.desk .dlogo .bt1{color:#C8102E;font-weight:800;font-size:1.1rem;white-space:nowrap}
html.desk .dlogo .bt2{color:var(--mut);font-size:.72rem;font-weight:500;margin-top:2px}
html.desk .dlogo .tl-short{display:inline}html.desk .dlogo .tl-long{display:none}
html.desk .dside .tabbar{position:static;transform:none;display:flex;flex-direction:column;gap:2px;width:auto;max-width:none;background:none;border:0;padding:0;z-index:auto;justify-content:flex-start}
html.desk .dside .tabbar a,html.desk .dtools a{flex:none;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:40px;padding:8px 12px;border-radius:10px;font-size:.92rem;font-weight:600;color:#3E4F4B;letter-spacing:0;text-decoration:none;display:flex}
html.desk .dside .tabbar svg,html.desk .dtools svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html.desk .dside .tabbar a:hover,html.desk .dtools a:hover{background:var(--g0,#F1F6F4);color:var(--g8)}
html.desk .dside:not(.dtool-on) .tabbar a.on,html.desk .dtools a.on{background:var(--g1,#E3F1EC);color:var(--g8)}
html.desk .dside .tabbar a .ubadge{position:static;margin-left:auto}
html.desk .dgrp{font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);padding:16px 12px 6px}
html.desk .dtools{display:flex;flex-direction:column;gap:2px}
html.desk .dfoot{margin-top:auto;padding:16px 12px 2px;font-size:.74rem;color:var(--mut)}
/* ---- shell: content right of the menu, top bar with search ---- */
html.desk #app{max-width:none;margin:0;padding-left:var(--sideW);box-shadow:none}
html.desk #app>.appbar{gap:16px;padding:10px var(--padX);min-height:62px}
html.desk body.admin-wide #app>.appbar,html.desk body[data-route=map] #app>.appbar{padding-left:24px;padding-right:24px}
html.desk #app>.appbar>.logo{display:none}
html.desk .dsearch{display:flex;align-items:center;gap:8px;flex:1 1 auto;max-width:560px;margin-right:auto;height:42px;padding:0 10px 0 14px;border:1px solid var(--line);border-radius:12px;background:var(--g0,#F4F8F6)}
html.desk .dsearch:focus-within{border-color:var(--g6);background:#fff;box-shadow:0 0 0 3px rgba(19,128,92,.12)}
html.desk .dsearch svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--mut);stroke-width:2;stroke-linecap:round}
html.desk .dsearch input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:.92rem;outline:none;color:var(--ink)}
html.desk .dsearch kbd{font:inherit;font-size:.72rem;color:var(--mut);border:1px solid var(--line);border-radius:6px;padding:1px 7px;background:#fff}
html.desk body:not(.admin-wide):not([data-route=map]) #app>main#view{padding-left:var(--padX);padding-right:var(--padX);padding-bottom:40px}
/* ---- Home: 2 columns (prayer | shortcuts), new places as a grid ---- */
html.desk body[data-route=home] main#view{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:24px;grid-auto-flow:row dense;align-content:start}
html.desk body[data-route=home] main#view>*{grid-column:1 / -1;min-width:0}
html.desk body[data-route=home] main#view>.prayer{grid-column:1}
html.desk body[data-route=home] main#view:has(>.prayer)>.htiles{grid-column:2;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;margin-top:14px}
html.desk body[data-route=home] main#view .htile{min-height:72px}
html.desk body[data-route=home] .trrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));overflow:visible;gap:12px}
html.desk body[data-route=home] .trmini{flex:none}
/* ---- Near Me: list | full-height map; place details in a side panel ---- */
html.desk body[data-route=map]:not(.nm-list) #app>main#view{grid-template-columns:minmax(360px,420px) minmax(0,1fr);column-gap:0;padding:0}
@media (min-width:1440px){html.desk body[data-route=map]:not(.nm-list) #app>main#view{grid-template-columns:460px minmax(0,1fr)}}
html.desk body[data-route=map]:not(.nm-list) .mapwrap{grid-column:2;margin:0;border-radius:0}
html.desk body[data-route=map]:not(.nm-list) main#view>:not(.mapwrap){grid-column:1;padding-left:20px;padding-right:16px}
html.desk body[data-route=map]:not(.nm-list) main#view>.mapwrap~*,html.desk body[data-route=map]:not(.nm-list) main#view>*{border-right:0}
html.desk body[data-route=map]:not(.nm-list) #mlist{padding-bottom:24px;border-right:1px solid var(--line)}
html.desk body[data-route=map] .nmview{bottom:16px}
html.desk body.nm-list[data-route=map] #app>main#view{padding-left:var(--padX);padding-right:var(--padX)}
html.desk #mlist a.ncard.dsel{border-color:var(--g6);box-shadow:0 0 0 2px rgba(19,128,92,.18)}
html.desk .dpanel{display:flex;flex-direction:column;position:fixed;z-index:900;top:74px;right:16px;bottom:16px;width:420px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px rgba(2,30,22,.22);overflow:hidden}
@media (min-width:1440px){html.desk .dpanel{width:440px}}
html.desk .dpanel[hidden]{display:none}
html.desk .dph{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px 6px 14px;border-bottom:1px solid var(--line)}
html.desk .dpfull{font-size:.85rem;font-weight:700;color:var(--g6);text-decoration:none;padding:8px 0}
html.desk .dpx{width:36px;height:36px;border:0;border-radius:50%;background:var(--g0,#F1F6F4);font-size:1.3rem;cursor:pointer;color:var(--ink)}
html.desk .dpx:hover{background:var(--g1,#E3F1EC)}
html.desk .dpanel iframe{flex:1;width:100%;border:0}
/* ---- dialogs centred instead of bottom sheets ---- */
html.desk .modal{align-items:center;padding:24px}
html.desk .modal .sheet{border-radius:20px;max-height:min(88vh,860px);padding-bottom:20px;box-shadow:0 24px 60px rgba(2,30,22,.3)}
/* ---- Plans: 4 columns + comparison table ---- */
html.desk .plusv .pplans{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
html.desk .plusv .pplan{padding:22px 18px 18px}
html.desk .pcmpw{display:block}
/* ---- Login / sign-up: form | links side by side ---- */
html.desk .auth{display:grid;grid-template-columns:minmax(0,460px) minmax(0,380px);column-gap:56px;justify-content:center;align-items:start;padding-top:24px}
html.desk .auth>*{grid-column:1}
html.desk .auth>.plinks{grid-column:2;grid-row:1 / span 12;margin-top:96px;align-self:start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:6px 16px}
/* ---- Fasting / Ramadan tabs: room for all of them ---- */
html.desk .rseg{max-width:none;justify-content:center;flex-wrap:wrap}
/* ---- Community ---- */
html.desk .cwrap{max-width:880px}
html.desk .ccta{padding:32px 28px}
html.desk .ccta p{margin-left:auto;margin-right:auto}
/* ---- reading width, hover, targets ---- */
html.desk #view p{max-width:68ch}
html.desk #view .auth p,html.desk #view .soon p,html.desk #view .ccta p,html.desk #view p[style*="center"]{margin-left:auto;margin-right:auto}
html.desk .pnote{margin-left:auto;margin-right:auto}
html.desk a.card:hover,html.desk .pcard:hover,html.desk .trmini:hover,html.desk .htile:hover,html.desk a.arow:hover,html.desk .ramcard:hover{box-shadow:0 6px 20px rgba(2,30,22,.10);border-color:#BFD3CC}
html.desk .htile:hover{background:var(--g0,#F4F8F6)}
html.desk .btn:not(:disabled):hover{filter:brightness(1.07)}
html.desk .linkbtn:hover,html.desk a.more:hover{text-decoration:underline}
html.desk .linkbtn,html.desk a.more{position:relative}
html.desk .linkbtn::after,html.desk a.more::after{content:"";position:absolute;inset:-9px -4px}
html.desk .chip,html.desk .fchips button{min-height:32px}

/* ---- all sizes (safe): bigger tap areas without moving anything ---- */
.loc button,[data-act="pickloc"],[data-act="fbplace"],.pinfo a[href="#/contact"],p.mut a[href="#/contact"]{position:relative}
.loc button::after,[data-act="pickloc"]::after,[data-act="fbplace"]::after,.pinfo a[href="#/contact"]::after,p.mut a[href="#/contact"]::after{content:"";position:absolute;inset:-9px -6px}
.leaflet-marker-icon.nstub::after{content:"";position:absolute;inset:-8px}
html.desk .pcmpw{margin:24px 0 8px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;overflow-x:auto}
html.desk .pcmpw h2{font-size:1.1rem;margin:0 0 10px}
html.desk .pcmp{width:100%;border-collapse:collapse;font-size:.9rem}
html.desk .pcmp th,html.desk .pcmp td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:center;vertical-align:middle}
html.desk .pcmp th[scope=row]{text-align:left;font-weight:600;width:38%}
html.desk .pcmp thead th{font-size:.95rem;color:var(--ink)}html.desk .pcmp thead th small{display:block;font-weight:500;color:var(--mut);font-size:.74rem}
html.desk .pcmp td.y{color:var(--g7,#0B6B4B);font-weight:800}html.desk .pcmp td.n{color:#B7C2BF}
html.desk .pcmp tbody tr:hover{background:var(--g0,#F7FAF9)}
html.desk .auth>img{justify-self:center}
html.desk .pcmp thead th:first-child{text-align:left}
html.desk body[data-route=home] main#view>.prayer{align-self:start}
