/* Find a Masjid (/app/): list, map and mosque timetable. Uses tokens.css; logical properties so RTL works. */

.app-page { min-height: 100vh; display: flex; flex-direction: column; }
/* Our display: grid/flex rules must never beat the hidden attribute. The landing (no .app-page) loads this file for its live
   map's bar (home-map.js): there its sign-in dialog's hidden .act buttons ("Send the link again") stay hidden too. */
.app-page [hidden], .act[hidden] { display: none !important; }

.find {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 104px clamp(16px, 4vw, 40px) 40px;
}

.dev-banner {
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, var(--gold-pale), var(--gold-pale) 12px, transparent 12px, transparent 24px);
  border: 1px dashed var(--gold);
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.find-head { margin-bottom: 20px; }

.find-title {
  font-family: var(--font-display);
  font-size: calc(clamp(34px, 5vw, 48px) * max(var(--title-scale), 0.72));
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
}
.find-title em { color: var(--gold); font-style: italic; }
html:not([lang="en"]) .find-title em { font-style: normal; }

.find-sub { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.6; }
.find-date { color: var(--gold-text); font-size: 13px; font-weight: 600; margin-top: 6px; min-block-size: 1lh; }   /* its line is kept before the date is known (0028: no shift) */

/* ── Toolbar: List | Map + Near me ── */
.find-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 10px; background: var(--gold-pale); }
.seg-btn {
  padding: 8px 18px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.seg-btn[aria-current="page"] { background: var(--brand); color: var(--on-brand); }

.near-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}
.find-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.near-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-text); }
.lbl-short { display: none; }   /* "Share" instead of "Share with others" on phones (below) */

/* ── Search (founder, 2026-09-28): one box under the tabs, a magnifier at its start and our own × at its end (the same in
   every browser; both ends padded alike, so typed Latin in an RTL page or Urdu in an LTR one never runs under them) ── */
.find-search { position: relative; flex: 1 1 100%; max-width: 560px; }
.find-search-ico { position: absolute; inset-inline-start: 14px; inset-block-start: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.find-q {
  width: 100%; min-height: 44px; margin: 0; padding-block: 9px; padding-inline: 42px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: 16px;   /* 16px: phones don't zoom in when it is tapped */
  -webkit-appearance: none; appearance: none;
}
.find-q::placeholder { color: var(--muted); opacity: 1; }
.find-q:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.find-q::-webkit-search-cancel-button, .find-q::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.find-q-clear {
  position: absolute; inset-inline-end: 4px; inset-block-start: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.find-q-clear svg { width: 18px; height: 18px; }
.find-q-clear:hover { background: var(--tint); color: var(--text); }
/* "Masjids found: 12": a live region, so still rendered (out of sight) while empty, like the Filters' note. */
.search-note { flex: 1 1 100%; margin-top: -4px; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.5; }
.search-note:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Nothing found: what was typed, and "Clear search". */
.find-empty {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px;
  background: var(--tint); color: var(--text); font-size: 14px; line-height: 1.6;
}
.find-empty p { flex: 1 1 220px; overflow-wrap: anywhere; }
.find-empty bdi { font-weight: 600; }
/* "On a masjid committee? Register your masjid →" under the date, and "Is your masjid not here yet?" under a search that finds
   no masjid (its own row, after "Clear search"). The link opens the sign-in dialog when signed out (data-signin). */
.find-reg { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.find-reg a { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.find-reg .arrow { display: inline-block; margin-inline-start: 4px; }
.find-empty .find-reg { flex-basis: 100%; order: 1; margin-top: 0; }
/* "Showing 20 of 87" + "Show more" under a list (List, Next jamat, Events). */
.more-row { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; }
.more-count { font-size: 13px; color: var(--muted); }
.more-row .more-btn { min-height: 44px; padding-inline: 24px; border-color: var(--gold); color: var(--gold-text); font-size: 14px; font-weight: 600; }
.more-row .more-btn:hover { background: var(--gold-pale); }
.more-row .more-btn[aria-busy="true"] { opacity: .6; cursor: wait; }   /* reading more: still focusable (aria-disabled) */
.ev-title:focus { outline: none; }   /* focused after "Show more" (read out); the card itself shows where */
.ev-title:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.md-name:focus { outline: none; }

/* ── Facilities (migration 0011): the Filters, the cards' icons, the timetable page's list ── */
.fac-ico, .btn-ico { width: 18px; height: 18px; flex: none; }
#filter-btn.is-active, #filter-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-text); }
.filter-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.filter-count:empty { display: none; }
.filter-panel { flex: 1 1 100%; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); }
.filter-panel legend { float: inline-start; width: 100%; margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.filter-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-opt {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--tint);
  color: var(--text); font-size: 13px; line-height: 1.3; cursor: pointer;
}
.filter-opt input { margin: 0; accent-color: var(--brand); }
.filter-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-pale); color: var(--gold-text); }
.filter-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter-opt input:focus-visible { outline: none; }   /* the pill shows it */
.filter-opt [data-fac] { display: inline-flex; }
.filter-row { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* Empty: out of sight but still rendered, so a screen reader announces the first note (a live region must exist first). */
.filter-row:has(.filter-note:empty) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.filter-note { font-size: 13px; color: var(--gold-text); font-weight: 500; line-height: 1.5; }
/* Filtered list: masjids that haven't said yet, after the matches, under their own heading (EC-FAC-01). */
.list-group { grid-column: 1 / -1; margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--heading); }
.list-group-hint { grid-column: 1 / -1; margin-top: -8px; font-size: 13px; color: var(--muted); }
/* Card: what the masjid has, as one quiet row of small icons (named for screen readers and on hover). */
/* Card: what the masjid has as one row of equal round badges, no words (named on hover and for screen readers); main.js
   fitFac() hides the ones that don't fit into a "+N" badge at the end, so the row never wraps. */
.mc-fac { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 8px; overflow: hidden; contain: inline-size; }   /* never widens the card */
.mc-fac li {
  position: relative; flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tint); border: 1px solid var(--line); color: var(--muted);
}
.mc-fac .fac-ico { width: 16px; height: 16px; }
/* A women's area open only at some prayers: a small gold dot (its "when" is in the badge's name). */
.mc-fac li.is-part::after {
  content: ""; position: absolute; inset-block-start: -1px; inset-inline-end: -1px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--bg-alt);
}
.mc-fac li.is-match { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-text); }   /* a Filter asked for it */
.mc-fac .mc-fac-more { font-size: 11px; font-weight: 600; font-family: 'DM Sans', sans-serif; color: var(--text); direction: ltr; }   /* "+2", not "2+", in Urdu and Arabic */
/* Timetable page: a grid of what it has (icon, name, when), then muted what it lacks and what it hasn't said yet. */
.md-fac { margin: 4px 0 6px; }
.md-fac h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.md-fac-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 8px; }   /* two across on a phone */
.md-fac-item {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.md-fac-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-pale); color: var(--gold-text); }
.md-fac-ico .fac-ico { width: 20px; height: 20px; }
.md-fac-text { display: flex; flex-direction: column; min-width: 0; }
.md-fac-name { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.35; }
.md-fac-when { font-size: 12px; color: var(--gold-text); line-height: 1.4; }
.md-fac p { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.md-fac p.md-fac-at { font-size: 12px; }
.md-fac-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.md-fac-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding-block: 3px; padding-inline: 8px 10px; border: 1px dashed var(--line); border-radius: 14px;
  font-size: 12.5px; color: var(--muted); line-height: 1.4;
}
.md-fac-chip .fac-ico { width: 15px; height: 15px; opacity: .75; }

.find-status:empty { display: none; }
.find-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(var(--tint), var(--tint)), var(--bg);   /* opaque: the season's pattern never shows under the text */
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.find-status button { margin-inline-start: 8px; }
/* 0028: "Loading masjids…" for screen readers only, while the placeholders show it (skeleton.js); the line takes no room. */
.find-status[data-busy] { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── List ── */
.mosque-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mosque-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.mc-name a { color: inherit; text-decoration: none; }
.mc-name a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.mc-where { color: var(--muted); font-size: 13px; margin-top: 3px; }

.mc-times {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  background: var(--bg);
}
.mc-times li { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 8px; min-width: 0; }
.mc-times .p-name { font-size: 11px; color: var(--muted); }
.mc-times .p-time { font-size: 17px; font-weight: 600; color: var(--heading); font-family: 'DM Sans', sans-serif; unicode-bidi: isolate; white-space: nowrap; line-height: 1.2; }
.mc-times .p-period { font-size: 10px; color: var(--muted); line-height: 1.2; min-height: 1.2em; }
.mc-times li.is-next { background: var(--gold-pale); }
.mc-times li.is-next .p-name, .mc-times li.is-next .p-time, .mc-times li.is-next .p-period { color: var(--gold-text); }
/* After the day's last jamat the next one is tomorrow's (prayer.js dayAt): a small "Tomorrow" under its time. */
.p-tmrw, .tmrw { font-size: 10px; font-weight: 600; line-height: 1.3; color: var(--gold-text); white-space: nowrap; }
.p-tmrw { max-width: 100%; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.tmrw { margin-inline-start: 6px; padding: 1px 6px; border-radius: 6px; background: var(--gold-pale); }
.md-table tr.is-next .tmrw { background: var(--bg-alt); }
/* The masjid's labels on today's times ("Winter: Fajr", "Ramadan"), once each under the times. */
.mc-label { font-size: 12px; color: var(--gold-text); line-height: 1.5; margin-top: -6px; }
.mc-label bdi { font-weight: 600; }

.mc-jumuah { font-size: 13px; color: var(--text); }
.mc-jumuah b { font-family: 'DM Sans', sans-serif; unicode-bidi: plaintext; white-space: nowrap; }  /* each time keeps its own direction inside RTL text */
/* Today's Eid / Taraweeh: highlighted like a notice; the next jamat among them underlined. */
.mc-special, .pop-special { font-size: 13px; color: var(--gold-text); background: var(--gold-pale); border-radius: 8px; padding: 6px 10px; }
.pop-special { margin-bottom: 8px; padding: 4px 8px; }
.mc-special b, .pop-special b { font-family: 'DM Sans', sans-serif; unicode-bidi: plaintext; white-space: nowrap; }
.mc-special b.is-next, .pop-special b.is-next, .mc-jumuah b.is-next { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.mc-special .label, .pop-special .label { font-size: 11px; opacity: .85; }
.mc-notice { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mc-notice bdi, .md-soon bdi { font-family: 'DM Sans', sans-serif; }
/* Founder 2026-10-04 (0041): the times stay whole (<b><bdi>), a place's name wraps inside the card ("… at <a long Eidgah
   name>" ran past its edge); .md-soon-p keeps its own nowrap. */
.mc-notice b bdi { white-space: nowrap; }
.mc-notice, .nx-at, .md-at, .pk-found .pl-name, .pk-by { overflow-wrap: anywhere; min-width: 0; }

.mc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mosque-card > .mc-actions { margin-top: auto; }   /* cards in a row are one height: their buttons share one line at the foot */
.mc-actions a.mc-more { margin-inline-start: auto; border: none; padding-inline: 4px; color: var(--gold-text); font-weight: 600; }
.mc-actions a.mc-more:hover { text-decoration: underline; }
.mc-actions a, .mc-actions button, .act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.mc-actions a:hover, .mc-actions button:hover, .act:hover { border-color: var(--gold); }
.mc-actions .primary, .act.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ── Map ── */
.map-wrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
/* Over the top of the map, clear of the zoom buttons (MapLibre keeps them at the top RIGHT in both directions, so this side
   is physical, not logical), one under the other: the map's "No masjid matches" (search, Filters), then the Qibla. */
.map-top { position: absolute; left: 12px; right: 56px; top: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px; pointer-events: none; }
[dir="rtl"] .map-top { align-items: flex-end; }   /* the Qibla in the map's left corner there too */
.map-top > * { pointer-events: auto; }
.map-empty { align-self: stretch; }
.map-empty:empty { display: none; }
.map-empty .find-empty { margin: 0; background: var(--bg-alt); box-shadow: 0 6px 20px rgba(var(--shadow), .18); }
#map { height: min(70vh, 620px); min-height: 360px; background: var(--map-bg); }
/* ── The map's bar (founder 2026-10-07; app/mapbar.js): a pin tapped shows its details at the map's foot, in place of popups,
   on Find a Masjid's map (#/eid's too) and the home page's live map. Centred and at most 480 px wide on a laptop; its height
   is capped under .map-top (the Qibla's card, "No masjid matches"), and the map's credits move up over it while it shows. ── */
.map-bar { position: absolute; inset-inline: 10px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; max-width: 480px; max-height: 60%;
  margin-inline: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text);
  box-shadow: 0 10px 30px rgba(var(--shadow), .25); font-family: var(--font-body); }
.map-bar[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .map-bar:not([hidden]) { animation: mb-up .2s ease-out; } }
@keyframes mb-up { from { opacity: 0; translate: 0 14px; } }
.mb-grip { flex: none; align-self: center; width: 36px; height: 4px; margin-top: 7px; border-radius: 2px; background: var(--line); }   /* a swipe down closes it */
.mb-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 14px; }
/* Its buttons (Directions, Share, Open; a place's) stay in view at its foot when its text is taller than the bar (Ramadan's
   lines, Urdu on a 360-px phone): the text scrolls under them. Edge to edge over the body's padding, the bar's own corners. */
.mb-body > .mc-actions, .mb-place > .pl-acts { position: sticky; bottom: -14px; z-index: 1; margin: 0 -16px -14px; padding: 10px 16px 14px;
  border-top: 1px solid var(--border); border-radius: 0 0 13px 13px; background: var(--bg-alt); }
.mb-place > .pl-acts:not(:last-child) { margin-bottom: 0; }   /* /app/'s qabristan: the contact shows under them once asked */
.mb-close { position: absolute; top: 6px; inset-inline-end: 6px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.mb-close:hover { background: var(--tint); color: var(--text); }
.mb-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.mb-close svg { width: 20px; height: 20px; }
.mb-name { padding-inline-end: 34px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--heading); overflow-wrap: anywhere; }
.mb-name:focus { outline: none; }   /* focused when it opens, for screen readers; the bar itself shows where */
.map-bar .mc-where { margin-top: -8px; }
.mb-next { font-size: 14px; color: var(--gold-text); line-height: 1.5; }
.mb-next b { color: var(--heading); font-weight: 600; }
.mb-next bdi { font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.mb-place { display: flex; flex-direction: column; gap: 8px; }
.mb-place .mb-name { margin-top: -6px; }
.mb-place .pk-kind { padding-inline-end: 34px; }
.mb-place .pop-special { margin-bottom: 0; }
.mb-place .pop-special a, .mb-place .pk-by a { color: inherit; font-weight: 600; }
.has-bar :is(.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right) { bottom: var(--bar-h, 0px); }
@media (pointer: coarse) { .mb-close { width: 44px; height: 44px; top: 4px; inset-inline-end: 4px; } }
/* The Qibla (app/qibla.js): its button and, under it, its card (in .map-top; the map's credits stay clear at the bottom). */
.qibla { display: flex; flex-direction: column; align-items: inherit; gap: 8px; max-width: min(360px, 100%); }
.qibla-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--heading); font: 600 14px var(--font-body); box-shadow: 0 4px 14px rgba(var(--shadow), .2); cursor: pointer; }
.qibla-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.qibla-btn:focus-visible, .haram-pin:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.qibla-card { padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); color: var(--text); font-size: 13.5px; line-height: 1.5;
  box-shadow: 0 6px 20px rgba(var(--shadow), .2); }
.qibla-line { font-weight: 600; color: var(--heading); }
.qibla-line bdi { font-family: 'DM Sans', sans-serif; color: var(--gold-text); }
.qibla-from { margin-top: 2px; color: var(--muted); }
.qibla-card .act { margin-top: 8px; }
/* The phone's compass: the turn line (gold and bold once facing the Qibla) and its hint; the beam on the map at your dot. */
.qibla-turn { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.qibla-turn-text { font-weight: 600; color: var(--heading); }
.qibla-turn-text bdi { font-family: 'DM Sans', sans-serif; }
.qibla-turn.is-ahead .qibla-turn-text { color: var(--gold-text); font-size: 15px; }
.qibla-hint { margin-top: 2px; font-size: 12px; color: var(--muted); }
.heading-beam { width: 120px; height: 120px; pointer-events: none; }
.heading-beam svg { display: block; }
.haram-pin { display: block; width: 36px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.haram-pin svg { display: block; }

/* ── Mosque timetable (#/m/<slug>) ── */
.mosque-detail { max-width: 640px; margin-inline: auto; }   /* a masjid's page: one centred column, like /account/ and /privacy/ */
.back-link { display: inline-block; margin-bottom: 14px; color: var(--gold-text); text-decoration: none; font-size: 14px; }
/* Arrows flip in RTL (landing.css: [dir="rtl"] .arrow); transforms need an inline-block box. */
.app-page .arrow { display: inline-block; }
.md-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.md-name { font-family: var(--font-display); font-size: calc(30px * max(var(--title-scale), 0.8)); font-weight: 600; color: var(--heading); line-height: 1.3; }
.md-addr { color: var(--muted); font-size: 14px; margin: 6px 0 16px; line-height: 1.6; }
/* Today at the masjid, Gregorian · Hijri, heading its timetable. */
.md-today { margin: -8px 0 8px; font-size: 13px; font-weight: 600; color: var(--gold-text); line-height: 1.5; }
.md-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.md-table th, .md-table td { padding: 10px 8px; text-align: start; border-bottom: 1px solid var(--line); font-size: 15px; }
.md-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.md-table td.t { font-family: 'DM Sans', sans-serif; font-weight: 600; color: var(--heading); text-align: end; white-space: nowrap; }  /* <bdi> keeps "5:30 AM" in order; the cell stays RTL so it lines up with its heading */
.md-table th.t { text-align: end; }
.md-table tr.is-next td { background: var(--gold-pale); color: var(--gold-text); }
.md-table .label { font-size: 11px; color: var(--gold-text); margin-inline: 6px; }   /* both sides: a <bdi> in English letters has its own start, the wrong side on an Urdu page */
.md-table tr.is-special td:first-child { color: var(--gold-text); font-weight: 600; }
/* "Coming up": changes starting in the next 60 days. */
.md-soon { margin: 4px 0 6px; }
.md-soon h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.md-soon ul { list-style: none; }
.md-soon li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.md-soon-when { font-size: 13px; font-weight: 600; color: var(--gold-text); }
.md-soon-when .hijri { font-weight: 400; }   /* the Hijri day after the Gregorian one, lighter */
.md-soon small { font-size: 12px; color: var(--muted); }
/* One unit per prayer ("Dhuhr 1:15 PM (Azan 12:45 PM)") that never breaks inside; units wrap as a whole. */
.md-soon-ps { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.md-soon-p { white-space: nowrap; }
.md-updated { font-size: 12px; color: var(--muted); margin: 10px 0 16px; }

/* ── Next jamat near me (#/next) and, on Fridays, the Jumu'ah finder: one card per jamat, soonest first ── */
.next-title { font-size: 18px; font-weight: 600; color: var(--heading); }
.next-title:focus { outline: none; }
.next-hint { margin: 4px 0 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.next-ask {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--gold-pale); color: var(--text); font-size: 14px; line-height: 1.6;
}
.next-ask p { flex: 1 1 240px; }
.nx-list { list-style: none; }
.next-view .list-group { margin: 20px 0 2px; }   /* "Not stated yet": outside the list's grid here */
.next-view .list-group-hint { margin: 0 0 12px; }
.next-view .nx-list ~ .next-hint { margin-top: 14px; }
.nx-when { font-size: 14px; color: var(--gold-text); line-height: 1.4; }
.nx-when b { font-size: 19px; font-weight: 600; color: var(--heading); }
.nx-when bdi { font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.nx-how { margin-top: 3px; font-size: 13px; color: var(--text); }
/* D-20: times not updated for 45 days (cards, next jamat, the timetable page's "Times updated" line). */
.stale-note { font-size: 12.5px; font-weight: 500; color: var(--gold-text); line-height: 1.5; }   /* a warning, not an error */

.find-foot {
  background: transparent;   /* not landing.css's dark footer band: muted text on it failed contrast in the light theme */
  padding: 22px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center;   /* text beside the 44 px "Follow us" icons */
  color: var(--muted); font-size: 13px;
}
.find-foot a { color: var(--gold-text); }

@media (max-width: 900px) {
  .find { padding-top: 132px; }
  .mosque-list { grid-template-columns: 1fr; }
  .mc-times { padding-inline: 2px; gap: 2px; }
  .mc-times .p-time { font-size: 15px; }
}
@media (max-width: 480px) {
  .seg-btn { padding-inline: 11px; }   /* List | Map | Next jamat fit one line at 375px */
  .near-btn { padding-inline: 12px; }  /* Filters, Near me and Share fit the next one */
  .lbl-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lbl-short { display: inline; }
}

/* ── 0017: a masjid's photos (served by the Worker at /photo/…, loaded lazily) and Maghrib after sunset ── */
/* Flex, not grid: a photo that fails to load is removed and the name takes the whole line. */
.mc-head { display: flex; gap: 12px; align-items: flex-start; }
.mc-head > div { flex: 1; min-width: 0; }
.mc-photo { flex: none; display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--tint); }
.mc-photo, .md-photo { padding: 0; border: 0; cursor: zoom-in; }   /* buttons: the viewer */
.mc-photo img, .md-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 8px; margin: 14px 0 16px; }
.md-photo { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--tint); }
.md-photos[data-n="1"] .md-photo { aspect-ratio: 16 / 9; }
/* The viewer (#dlg-photo, founder 2026-10-05): the whole screen, dark in both themes, the photo as large as fits (never
   enlarged past its own size); the name and "Photo 2 of 3" over it, Previous / Next at its sides (swapped in Urdu, Arabic). */
.ph-dlg { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; box-shadow: none;
  background: #070b09; color: #fff; overflow: hidden; padding: var(--sat, 0px) 0 var(--sab, 0px); }   /* edge to edge: dark behind the bars */
.ph-dlg[open] { display: grid; grid-template: auto minmax(0, 1fr) / minmax(0, 1fr); animation-name: fadeIn; }
:root:has(.ph-dlg[open]) { overflow: hidden; overscroll-behavior: none; }   /* a swipe is the next photo, never the browser's Back;
   the page under it doesn't scroll (landing.css: scrollbar-gutter stable, so it doesn't move either) */
.ph-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; padding-inline-start: 16px; }
.ph-top p { flex: 1; min-width: 0; line-height: 1.4; }
.ph-top p > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ph-name { font-size: 16px; font-weight: 600; text-align: left; }   /* dir="auto": a name in the other script lines up too */
[dir="rtl"] #ph-name { text-align: right; }
#ph-of { font-size: 13px; color: rgb(255 255 255 / 0.75); }
#ph-img { place-self: center; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.ph-dlg button { display: grid; place-items: center; min-width: 48px; height: 48px; border-radius: 24px; border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(0 0 0 / 0.5); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .ph-dlg button:hover { background: rgb(255 255 255 / 0.18); } }
.ph-dlg :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ph-close { grid-auto-flow: column; gap: 8px; flex: none; padding-inline: 16px; }
.ph-close span[aria-hidden] { font-size: 18px; }
.ph-step { position: absolute; top: 50%; translate: 0 -50%; inset-inline-start: 10px; }
.ph-step + .ph-step { inset-inline-start: auto; inset-inline-end: 10px; }
.ph-step[hidden] { display: none; }
.ph-step svg { width: 26px; height: 26px; }
[dir="rtl"] .ph-step svg { transform: scaleX(-1); }
.md-sun { margin: -6px 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ── seasons (0023): Ramadan's Sehri/Iftar line on the cards, Taraweeh brought forward, the Eid prayers (#/eid) ──
   Colours: tokens.css --sn-* (the panels themselves are landing.css .season-panel). */
.mc-ramadan { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--sn-ink); line-height: 1.5; }
.mc-ramadan b { font-family: 'DM Sans', sans-serif; font-weight: 600; white-space: nowrap; }
.mc-ramadan .season-ico, .next-title .season-ico { width: 15px; height: 15px; background: var(--sn-ink); }
html[data-season="ramadan"] .mc-special[data-p="taraweeh"] { color: var(--sn-ink); background: var(--sn-tint); box-shadow: inset 0 0 0 1px var(--sn-line); font-weight: 600; }
html[data-season="ramadan"] .md-table tr[data-p="taraweeh"] td { color: var(--sn-ink); font-weight: 600; background: var(--sn-tint); }
html:is([data-season="eid-fitr"], [data-season="eid-adha"]) .md-table tr[data-p="eid"] td { color: var(--sn-ink); font-weight: 600; background: var(--sn-tint); }
.md-card > .mc-notice { margin: -4px 0 12px; font-size: 14px; color: var(--sn-ink); }
.md-ramadan { max-width: none; margin: 4px 0 16px; }
.eid-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.eid-head .next-title { display: flex; align-items: center; gap: 8px; }
.eid-head .sp-city { margin-inline-end: auto; }   /* next to the title, Share at the end */
.eid-head .season-ico { --sn-ico: var(--sn-ico-moon); }   /* Eid's crescent, also on Chand Raat (still Ramadan's colours) */
.eid-view + .map-wrap { margin-top: 18px; }
.nx-row.is-past .nx-when b { color: var(--muted); }   /* over: muted, never faded below AA */
.mc-ramadan .mc-src { font-size: 12px; color: var(--muted); }   /* 0026: whose times: "as announced by the masjid" / "calculated for Warangal" */
/* 0042: Qiyam ul-Layl — the card's line on its nights (a .mc-special), the timetable page's box; Ramadan's colours in Ramadan,
   like Taraweeh. The Filters' women's area, when it counts tonight's Qiyam, is underlined (is-match). */
.md-qiyam { margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--gold-pale); color: var(--gold-text); font-size: 14px; line-height: 1.55; }
.md-qiyam b, .mc-qiyam b { font-family: 'DM Sans', sans-serif; unicode-bidi: plaintext; white-space: nowrap; }
.md-qiyam .md-qm-when { font-size: 13px; color: var(--text); }
:is(.md-qiyam, .mc-qiyam) .is-match { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
html[data-season="ramadan"] :is(.md-qiyam, .mc-special[data-p="qiyam"]) { color: var(--sn-ink); background: var(--sn-tint); box-shadow: inset 0 0 0 1px var(--sn-line); }
html[data-season="ramadan"] .mc-special[data-p="qiyam"] { font-weight: 600; }   /* like Taraweeh */

/* ── A masjid's qabristan and Eidgah (0037): the masjid's page, the map's bar, an Eid row held at the Eidgah, and
   /manage/'s list (manage.css adds its form). The pins are SVG pictures (places.js), told apart by their picture. ── */
.md-places { margin: 14px 0 10px; }
.md-places h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.pl-cards, .pl-list { list-style: none; }
.pl-cards .pl-place, .pl-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pl-pin, .pl-mini { flex: none; line-height: 0; }
.pl-pin svg, .pl-mini svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.pl-mini { display: inline-block; vertical-align: -5px; margin-inline-end: 6px; }
.pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-name { color: var(--heading); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.pl-kind { display: inline-block; margin-inline-start: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-contact { font-size: 14px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.pl-contact:empty { display: none; }
.pl-call { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-inline-start: 6px; vertical-align: middle; }
.pop-kind { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.mb-place .pl-acts .act { padding: 6px 10px; }
.pl-report { font-size: 13px; color: var(--muted); }   /* a quiet link next to the buttons (the contact form) */
.nx-at { font-size: 13px; font-weight: 600; color: var(--text); }
/* A search that found a masjid through its place (founder 2026-10-04): a line per place on the card, by the buttons at its foot */
.mc-places { list-style: none; display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.mosque-card > .mc-places { margin-top: auto; }
.mosque-card > .mc-places + .mc-actions { margin-top: 0; }
.mc-places li { display: flex; align-items: center; gap: 8px; }
.mc-places .pl-mini { margin: 0; }
.mc-places .pl-name { flex: 1; min-width: 0; font-size: 14px; }
.mc-places .pl-kind { margin-inline-start: 0; }   /* the space before it is enough; wrapped, it lines up under the name */
.mc-places .act { flex: none; padding: 6px 10px; }
.md-table .md-at { display: block; margin-inline: 0; font-weight: 400; }
/* ── F5 (2026-10-04): the jamat calendar and "Silence my phone" (app/calendar.js): the two buttons under Follow on a masjid's
   page, the sheet #dlg-cal and the guide #dlg-silence (on landing.css's dialog, .auth-body, forms and .share-link). ── */
.cal-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cal-row .act { min-height: 40px; text-align: start; }
.cal-row svg { width: 17px; height: 17px; flex: none; color: var(--gold-text); }
.cal-dlg { max-width: 480px; }
.cal-dlg .join-title:focus { outline: none; }   /* focused on opening, for screen readers */
.cal-dlg .report-event { margin-bottom: 4px; }
.cal-prayers { border: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 2px 12px; }
.cal-prayers > legend { padding: 0; margin-bottom: 6px; }
.cal-prayers label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; cursor: pointer; }
.cal-prayers input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.cal-prayers .field-error { grid-column: 1 / -1; }
.cal-actions { display: grid; gap: 10px; margin: 14px 0 10px; }
.cal-actions a { padding: 13px 18px; border-radius: 8px; text-align: center; }
.cal-actions a[aria-disabled="true"], .cal-copy .btn-solid:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.cal-note { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.cal-note b, .sil-steps b { color: var(--heading); font-weight: 600; }
.cal-copy { margin-top: 14px; }
.cal-copy .share-status:empty { min-height: 0; margin: 0; }
.cal-switch { margin-top: 4px; min-height: 40px; }
.sil-phones { border: 0; padding: 0; min-width: 0; margin-bottom: 14px; }
.sil-phones > legend { padding: 0; margin-bottom: 6px; }
/* The phones as one row of choices (two by two on a phone); a native radio each, so arrow keys and screen readers work. */
.sil-seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 480px) { .sil-seg { grid-template-columns: repeat(4, 1fr); } }
.sil-seg label { position: relative; display: grid; place-items: center; min-height: 42px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; text-align: center; cursor: pointer; }
.sil-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sil-seg label:has(input:checked) { border-color: var(--gold); background: var(--gold-pale); color: var(--gold-text); font-weight: 600; }
.sil-seg label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.sil-what { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 8px; }
.sil-steps :is(ol, ul) { display: grid; gap: 8px; padding-inline-start: 1.4em; margin-bottom: 10px; font-size: 14px; line-height: 1.6; color: var(--text); }
.sil-steps ol { list-style: decimal; }
.sil-steps ul { list-style: disc; }
@media (pointer: coarse) { .cal-row .act, .cal-switch, .cal-prayers label, .sil-seg label { min-height: 44px; } }
/* F5 part 2 (0039): "Remind me before jamat" (#dlg-remind, app/remind.js) and the diary's link under the masjid's buttons */
.cal-diary { align-self: center; margin-inline-start: 4px; color: var(--gold-text); font-size: 14px; text-decoration: none; }
.cal-diary:hover, .cal-diary:focus-visible { text-decoration: underline; }
.jr-strong { color: var(--text); font-size: 14px; }
.jr-signin, .jr-install { display: block; padding: 13px 18px; border-radius: 8px; text-align: center; margin: 4px 0 12px; }
.jr-install { width: 100%; }
.jr-now { font-size: 14px; color: var(--text); line-height: 1.6; margin: 4px 0 10px; }
.jr-now:empty { display: none; }
.jr-near-btn { min-height: 40px; margin-bottom: 4px; }
.jr-choices { border: 0; padding: 0; min-width: 0; margin: 6px 0 12px; }
.jr-choices > legend { padding: 0; margin-bottom: 6px; }
.jr-choice { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.jr-choice + .jr-choice { margin-top: 6px; }
.jr-choice:has(input:checked) { border-color: var(--gold); background: var(--gold-pale); }
.jr-choice input { width: 18px; height: 18px; accent-color: var(--brand); grid-row: span 2; }
.jr-choice-name { color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }
.jr-choice-how { color: var(--muted); font-size: 13px; }
.jr-save { width: 100%; padding: 13px 18px; margin: 4px 0 6px; }
.jr-save:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.jr-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 12px; }
.jr-more .form-input { width: auto; min-height: 40px; font-size: 14px; }
.jr-more .act { min-height: 40px; }
.jr-diary { margin-top: 6px; }
.jr-diary a { color: var(--gold-text); }
@media (pointer: coarse) { .jr-near-btn, .jr-more .act, .jr-more .form-input, .jr-choice { min-height: 44px; } }

/* #/diary: the private jamat diary (app/diary.js): one column like a masjid's page; the week as a grid that fits 375px */
.diary { max-width: 640px; margin-inline: auto; }
.diary-title { font-family: var(--font-display); font-size: calc(30px * max(var(--title-scale), 0.8)); font-weight: 600; color: var(--heading); line-height: 1.3; }
.diary-title:focus { outline: none; }
.diary-private { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.diary-line { margin: 0 0 18px; padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--border); border-inline-start: 3px solid var(--gold); border-radius: 12px; }
.diary-ar { margin: 0 0 8px; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 22px; line-height: 2; color: var(--heading); text-align: start; }
.diary-meaning { margin: 0 0 8px; color: var(--text); line-height: 1.7; }
.diary-line figcaption { color: var(--muted); font-size: 13px; }
.diary-ref { color: var(--gold-text); font-weight: 600; }
.diary-about { color: var(--heading); font-weight: 600; }
.diary-about::after { content: ' ·'; color: var(--muted); }
.diary-by { display: block; margin-top: 2px; font-size: 12px; }
.diary-warn { padding: 10px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--text); }
.diary-how { color: var(--text); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.diary-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.diary-nav .act { min-height: 40px; }
.diary-nav .act:disabled { opacity: 0.45; cursor: not-allowed; }
.diary-range { flex: 1; text-align: center; color: var(--heading); font-weight: 600; font-size: 14px; }
.diary-scroll { overflow-x: auto; }
.diary-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.diary-grid th, .diary-grid td { padding: 0; text-align: center; border-bottom: 1px solid var(--line); }
/* The prayers' names whole at 375 px ("Maghrib" broke as "Maghr / ib" at 30% for the day): the day 25%, the away column 10%. */
.diary-grid thead th { padding: 6px 0; color: var(--heading); font-weight: 600; font-size: 11.5px; }
.diary-grid thead th:first-child, .diary-grid tbody th { width: 25%; }
.diary-grid .diary-x { width: 10%; }
.diary-grid tbody th { padding: 6px 4px; text-align: start; color: var(--text); font-weight: 500; line-height: 1.3; }
.diary-grid input { width: 22px; height: 22px; margin: 9px auto; display: block; accent-color: var(--brand); cursor: pointer; }
.diary-grid tr[aria-current="date"] { background: var(--gold-pale); }
.diary-grid tr[data-away] td:not(.diary-x) { opacity: 0.55; }
.diary-today, .diary-jumuah { display: block; color: var(--gold-text); font-size: 11px; font-weight: 600; }
.diary-jumuah { color: var(--heading); }
.diary-x { border-inline-start: 1px dashed var(--line); }
.diary-x-ico, .diary-key span { color: var(--gold-text); }
.diary-key { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.diary-count { margin: 10px 0 18px; color: var(--heading); font-weight: 600; }
.diary-copy { padding-top: 14px; border-top: 1px solid var(--line); }
.diary-copy-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.diary-copy-acts .act { min-height: 40px; }
.diary-restore { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.diary-restore input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.diary-restore:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.diary-restore[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.diary-copy-acts .diary-del { color: var(--danger); border-color: currentColor; }
.diary-copy-acts .diary-del:disabled { opacity: 0.45; cursor: not-allowed; }
.diary-ask { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--text); }
.diary-ask p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
html[lang="ur"] .diary-meaning { line-height: 2.1; }
@media (pointer: coarse) { .diary-nav .act, .diary-copy-acts .act { min-height: 44px; } .diary-grid input { margin-block: 11px; } }

/* ── 0041: an Eidgah or a qabristan of its own committee: the search's cards above the masjids (.pk-found, in the list's
   grid), its own page (#/m/<slug>, .pk-page) and its rows on #/eid. ── */
.pk-found { grid-column: 1 / -1; }
.pk-found .list-group { margin-top: 0; }
.pk-found .pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; margin-top: 8px; }
.pk-found .pl-place { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); }
.pk-found .mc-where { font-size: 13px; color: var(--muted); }
.pk-by { font-size: 14px; color: var(--text); line-height: 1.5; }
.pk-by bdi { font-weight: 600; }
.pk-kind { display: flex; align-items: center; margin: 0 0 2px; }
.pk-page .md-name { margin-bottom: 2px; }
.pk-page .md-addr { margin-top: 4px; }
.pk-page > .pl-acts { margin: 14px 0 4px; }
.pk-page > .pl-contact { margin-top: 8px; }
.pk-none { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
