/* "Mosques near you" (round 362, mosques.php + js/mosques.js). Logical properties: css/rtl/mosques.css is a copy. */
.mq-page { max-width: 1240px; }
.mq-hero { margin: 10px 0 22px; max-width: 760px; }
.mq-kicker { margin: 0 0 8px; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--t-accent); }
.mq-h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 12px; color: var(--t-text); font-weight: 700; }
.mq-lead { margin: 0; font-size: 1.06rem; line-height: 1.6; color: var(--t-text-secondary); }

/* the map with its panel */
.mq-app { position: relative; display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: clamp(520px, 76vh, 760px);
    border: 1px solid var(--t-border); border-radius: 22px; overflow: hidden; background: var(--t-card); box-shadow: 0 18px 44px -30px rgba(10, 40, 30, .35); }
.mq-map { position: relative; min-width: 0; background: color-mix(in srgb, var(--t-card) 70%, var(--t-border)); }
.mq-panel { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--t-border); background: var(--t-card); }
.mq-tools { display: flex; gap: 8px; padding: 14px 14px 10px; }
.mq-search { position: relative; flex: 1; min-width: 0; }
.mq-search > svg { position: absolute; top: 50%; inset-inline-start: 12px; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--t-text-secondary); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.mq-search input { width: 100%; height: 42px; padding-inline: 38px 12px; border: 1px solid var(--t-border); border-radius: 12px; background: var(--t-input-bg, var(--t-bg)); color: var(--t-text); font: 500 14.5px 'Inter', sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; }
.mq-search input:focus { border-color: var(--t-accent); box-shadow: 0 0 0 3px rgba(var(--t-accent-rgb), .15); }
.mq-res { position: absolute; z-index: 5; top: calc(100% + 6px); inset-inline: 0; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--t-border); border-radius: 14px; background: var(--t-card); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); }
.mq-res button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--t-text); text-align: start; cursor: pointer; font: inherit; }
.mq-res button:hover, .mq-res button:focus-visible { background: rgba(var(--t-accent-rgb), .09); outline: none; }
.mq-res b { font-size: 14px; font-weight: 600; }
.mq-res small { font-size: 12px; color: var(--t-text-secondary); }
.mq-me { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 42px; padding: 0 13px; border: 0; border-radius: 12px; background: var(--t-accent); color: #fff; font: 650 13.5px 'Inter', sans-serif; cursor: pointer; transition: filter .15s; }
.mq-me:hover { filter: brightness(1.06); }
.mq-me svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mq-me.is-busy svg { animation: mq-spin 1.1s linear infinite; }
@keyframes mq-spin { to { transform: rotate(360deg); } }

.mq-body { position: relative; flex: 1; min-height: 0; }
.mq-lst, .mq-card { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.mq-lst { padding: 0 8px 14px; }
.mq-app.is-card .mq-lst { visibility: hidden; }
.mq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 6px 6px; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--t-text-secondary); }
.mq-head small { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; white-space: nowrap; }
.mq-msg { margin: 10px 6px; padding: 12px 14px; border-radius: 12px; background: var(--t-input-bg, rgba(0, 0, 0, .04)); font-size: 13.5px; line-height: 1.5; color: var(--t-text-secondary); }
.mq-list { margin: 0; padding: 0; list-style: none; }
.mq-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 12px; background: none; color: var(--t-text); text-align: start; cursor: pointer; font: inherit; transition: background .12s; }
.mq-item:hover, .mq-item:focus-visible { background: rgba(var(--t-accent-rgb), .07); outline: none; }
.mq-item.is-sel { background: rgba(var(--t-accent-rgb), .12); }
.mq-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(var(--t-accent-rgb), .11) no-repeat center / 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f8f63'%3E%3Cpath d='M12 3.2c.5 1.3 1.5 2.4 2.7 3a5.4 5.4 0 0 1 2.9 4.8H6.4a5.4 5.4 0 0 1 2.9-4.8c1.2-.6 2.2-1.7 2.7-3z'/%3E%3Crect x='6' y='12.2' width='12' height='8.3' rx='.8'/%3E%3Crect x='2.3' y='7.4' width='2.2' height='13.1' rx='.7'/%3E%3Crect x='19.5' y='7.4' width='2.2' height='13.1' rx='.7'/%3E%3C/svg%3E"); }
.mq-it { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mq-it b { font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-it small { font-size: 12.5px; color: var(--t-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-d { flex: none; font: 600 12.5px 'Inter', sans-serif; color: var(--t-text-secondary); font-variant-numeric: tabular-nums; }
.mq-more { display: block; margin: 8px auto 0; padding: 8px 18px; border: 1px solid var(--t-border); border-radius: 999px; background: none; color: var(--t-text); font: 600 13px 'Inter', sans-serif; cursor: pointer; }
.mq-more:hover { border-color: var(--t-accent); color: var(--t-accent); }

/* the card of one mosque */
.mq-card { padding: 4px 20px 20px; background: var(--t-card); }
.mq-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px -6px; padding: 6px 8px; border: 0; border-radius: 9px; background: none; color: var(--t-accent); font: 650 13.5px 'Inter', sans-serif; cursor: pointer; }
.mq-back:hover { background: rgba(var(--t-accent-rgb), .08); }
.mq-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .mq-back svg { transform: scaleX(-1); }
.mq-kind { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(var(--t-accent-rgb), .1); color: var(--t-accent); font: 700 11.5px 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.mq-c-h { margin: 0; font: 700 1.45rem/1.2 'Space Grotesk', sans-serif; letter-spacing: -.01em; color: var(--t-text); }
.mq-c-o { margin: 4px 0 0; font-size: 14px; color: var(--t-text-secondary); }
.mq-c-d { margin: 8px 0 0; font: 600 13px 'Inter', sans-serif; color: var(--t-text-secondary); }
.mq-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 16px; }
.mq-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px 10px; border: 1px solid var(--t-border); border-radius: 14px; color: var(--t-text); text-decoration: none; font: 600 12.5px/1.2 'Inter', sans-serif; text-align: center; transition: border-color .15s, background .15s; }
.mq-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mq-btn:hover { border-color: var(--t-accent); color: var(--t-accent); }
.mq-btn-1 { border-color: transparent; background: var(--t-accent); color: #fff; }
.mq-btn-1:hover { color: #fff; filter: brightness(1.06); }
.mq-facts { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--t-border); }
.mq-facts li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--t-text); }
.mq-facts svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--t-text-secondary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mq-links { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; font-size: 14px; color: var(--t-text-secondary); }
.mq-links a, .mq-edit a { color: var(--t-accent); font-weight: 600; text-decoration: none; }
.mq-links a:hover, .mq-edit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mq-edit { margin: 0; padding-top: 12px; border-top: 1px solid var(--t-border); font-size: 13px; }
.mq-edit a { display: inline-flex; align-items: center; gap: 6px; color: var(--t-text-secondary); font-weight: 500; }
.mq-edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* the visitor on the map */
.mq-me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37, 99, 235, .2), 0 2px 6px rgba(0, 0, 0, .3); }
.mq-map .mapboxgl-ctrl-group { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }

.mq-src { margin: 10px 4px 0; font-size: 12.5px; color: var(--t-text-secondary); }
.mq-src a { color: inherit; }
.mq-sec { margin: 44px 0 34px; max-width: 860px; }
.mq-sec h2, .mq-page .gr-faq h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.35rem, 2.5vw, 1.75rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; color: var(--t-text); font-weight: 700; }
.mq-p { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.7; color: var(--t-text-secondary); }

@media (max-width: 860px) {
    .mq-app { display: flex; flex-direction: column; height: auto; border-radius: 18px; overflow: visible; }
    .mq-panel { display: contents; }
    .mq-tools { order: 1; position: relative; z-index: 3; }
    .mq-map { order: 2; height: 52vh; min-height: 300px; border-block: 1px solid var(--t-border); }
    .mq-body { order: 3; min-height: 340px; padding-top: 10px; }
    .mq-head { flex-wrap: wrap; }
    .mq-lst, .mq-card { position: relative; inset: auto; overflow: visible; }
    .mq-app.is-card .mq-lst { display: none; }
    .mq-me span { display: none; }
    .mq-me { width: 42px; padding: 0; justify-content: center; }
}

/* ── the page of one mosque (round 365, mosque.php) ── */
.mqp-page { max-width: 1140px; }
.mqp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 34px; align-items: center; margin: 12px 0 34px; }
.mqp-hero.no-img { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.mqp-fig { margin: 0; min-width: 0; }
.mqp-head { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 0; margin: 0; }
.mqp-head > * { flex: none; }
.mqp-fig img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 22px; background: var(--t-border); box-shadow: 0 22px 48px -30px rgba(10, 30, 25, .55); }
.mqp-fig figcaption { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--t-text-secondary); }
.mqp-fig figcaption a { color: inherit; text-decoration: none; }
.mqp-h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.025em; margin: 0; color: var(--t-text); font-weight: 700; text-wrap: balance; }
.mqp-local { margin: 8px 0 0; font-size: 1.05rem; color: var(--t-text-secondary); }
.mqp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.mqp-chips span { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(var(--t-accent-rgb), .09); color: var(--t-text); font: 600 13px/1.35 'Inter', sans-serif; }
.mqp-chips span::first-letter { text-transform: uppercase; }
.mqp-chips .is-her { background: rgba(201, 160, 70, .14); color: color-mix(in srgb, #8a6514 80%, var(--t-text)); }
.mqp-acts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; max-width: 520px; }
.mqp-about { max-width: 820px; margin: 0 0 30px; }
.mqp-x { margin: 0; font-size: 1.12rem; line-height: 1.75; color: var(--t-text); }
.mqp-src { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--t-text-secondary); }
.mqp-src a { color: var(--t-accent); font-weight: 600; text-decoration: none; }
.mqp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 10px; }
.mqp-card { padding: 20px 22px; border: 1px solid var(--t-border); border-radius: 20px; background: var(--t-card); }
.mqp-card h2 { margin: 0 0 12px; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--t-text-secondary); }
.mqp-big { margin: 0; font: 700 1.9rem/1.1 'Space Grotesk', sans-serif; color: var(--t-text); letter-spacing: -.01em; }
.mqp-dim { margin: 6px 0 0; font-size: 14px; color: var(--t-text-secondary); }
.mqp-dim::first-letter { text-transform: uppercase; }
.mqp-addr { display: flex; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--t-border); font-size: 14px; color: var(--t-text); }
.mqp-addr svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--t-text-secondary); stroke-width: 1.8; }
.mqp-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mqp-times li { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; background: var(--t-input-bg, rgba(0, 0, 0, .04)); }
.mqp-times span { font-size: 12px; color: var(--t-text-secondary); }
.mqp-times b { font: 700 1.05rem 'Space Grotesk', sans-serif; color: var(--t-text); font-variant-numeric: tabular-nums; }
.mqp-more { margin: 12px 0 0; font-size: 13.5px; }
.mqp-more a { color: var(--t-accent); font-weight: 650; text-decoration: none; }
.mqp-near { margin-top: 36px; }
.mqp-near .mq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
a.mq-item { text-decoration: none; }
.mq-c-more { display: inline-flex; margin: 0 0 14px; color: var(--t-accent); font: 650 14px 'Inter', sans-serif; text-decoration: none; }
.mq-c-more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
    .mqp-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .mqp-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
    .mqp-grid, .mqp-near .mq-list { grid-template-columns: minmax(0, 1fr); }
}
.mq-c-img { display: block; margin: 0 0 14px; }
.mq-c-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--t-border); }
.mq-c-top + .mq-c-more { margin-top: 12px; }

/* round 367: mosques with their own page — gold in the list and on the map; the bubble on the map */
.mq-th { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d9a93a; }
.mq-ic.is-pg { background-color: rgba(214, 166, 52, .16); box-shadow: inset 0 0 0 1.5px rgba(207, 157, 44, .55); }
.mq-badge { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(214, 166, 52, .16); color: #93680f; font: 700 10.5px/1.6 'Inter', sans-serif; font-style: normal; letter-spacing: .03em; text-transform: uppercase; vertical-align: 2px; }
[data-theme="midnight"] .mq-badge, [data-theme="slate"] .mq-badge { color: #f0c96a; }
.mq-popup .mapboxgl-popup-content { padding: 12px 14px 12px; border-radius: 16px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .4); font-family: 'Inter', sans-serif; }
.mq-popup .mapboxgl-popup-close-button { top: 4px; inset-inline-end: 6px; font-size: 18px; color: #64748b; }
.mq-pop { display: flex; flex-direction: column; gap: 3px; min-width: 190px; color: #1f2937; }
.mq-pop-img { display: block; margin: -2px -4px 8px; border-radius: 11px; overflow: hidden; }
.mq-pop-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mq-pop-k { font: 700 10.5px/1.4 'Inter', sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #0f8f63; }
.mq-pop.has-pg .mq-pop-k { color: #a6770f; }
.mq-pop-n { padding-inline-end: 16px; font: 700 15px/1.3 'Space Grotesk', 'Inter', sans-serif; }
.mq-pop-s { font-size: 12.5px; line-height: 1.4; color: #64748b; }
.mq-pop-pg { margin-top: 6px; color: #a6770f; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.mq-pop-pg:hover { text-decoration: underline; }
.mq-pop-acts { display: flex; gap: 6px; margin-top: 9px; }
.mq-pop-acts a, .mq-pop-acts button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 1; padding: 7px 8px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #1f2937; font: 600 12.5px 'Inter', sans-serif; text-decoration: none; cursor: pointer; }
.mq-pop-acts a { border-color: transparent; background: #0f8f63; color: #fff; }
.mq-pop-acts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mq-pop-acts button:hover { border-color: #0f8f63; color: #0f8f63; }

.mq-it b { display: flex; align-items: center; min-width: 0; }
.mq-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-badge { flex: none; }

/* round 369: the visitor's circle of interest — the point on its edge changes its size */
.mq-r-h { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #2563eb; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: ew-resize; touch-action: none; }
.mq-r-h::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; }
.mq-r-h span { position: absolute; top: 50%; left: calc(100% + 6px); transform: translateY(-50%); padding: 3px 8px; border-radius: 999px; background: #2563eb; color: #fff; font: 700 12px/1.3 'Inter', sans-serif; white-space: nowrap; box-shadow: 0 2px 8px rgba(37, 99, 235, .35); pointer-events: none; }
.mq-r-h:hover { transform: scale(1.12); }
/* round 373: a picture without a page of ours — green ring; the credit under a picture */
.mq-th.is-g { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #0f8f63; }
.mq-c-cr { margin: -8px 0 10px; font-size: 11.5px; line-height: 1.4; color: var(--t-text-secondary); }
.mq-c-top .mq-c-cr { margin: 4px 0 0; }

/* round 379: the mosque page — the map with the Qibla across it (full width), the facts (ours + Wikipedia's box) */
.mqp-mapwrap { position: relative; margin: 0 0 18px; border-radius: 22px; overflow: hidden; border: 1px solid var(--t-border); background: color-mix(in srgb, var(--t-card) 70%, var(--t-border)); }
.mqp-map { height: 440px; }
.mqp-pin { width: 40px; height: 47px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e7bd52'/%3E%3Cstop offset='1' stop-color='%23b5841c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M24 54c-1.3 0-2.2-.9-3-2.2L15 42H10a8 8 0 0 1-8-8V10a8 8 0 0 1 8-8h28a8 8 0 0 1 8 8v24a8 8 0 0 1-8 8h-5l-6 9.8c-.8 1.3-1.7 2.2-3 2.2z' fill='url(%23g)' stroke='%23fff' stroke-width='2.5'/%3E%3Cg fill='%23fff'%3E%3Cpath d='M24 10.5c.6 1.6 1.8 2.9 3.3 3.7a6.6 6.6 0 0 1 3.5 5.9H17.2a6.6 6.6 0 0 1 3.5-5.9c1.5-.8 2.7-2.1 3.3-3.7z'/%3E%3Crect x='16.5' y='21.2' width='15' height='11.8' rx='1'/%3E%3Crect x='10.4' y='14.6' width='3.2' height='18.4' rx='1'/%3E%3Cpath d='M12 10.2l1.8 3.4h-3.6z'/%3E%3Crect x='34.4' y='14.6' width='3.2' height='18.4' rx='1'/%3E%3Cpath d='M36 10.2l1.8 3.4h-3.6z'/%3E%3C/g%3E%3Cpath d='M22 33v-5.2a2 2 0 0 1 4 0V33z' fill='%23b5841c'/%3E%3C/svg%3E"); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.mqp-ov { position: absolute; top: 16px; left: 16px; z-index: 2; max-width: 300px; padding: 14px 16px 12px; border-radius: 16px; background: color-mix(in srgb, var(--t-card) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .45); }
.mqp-mapwrap.ov-low .mqp-ov { top: auto; bottom: 16px; }
[dir="rtl"] .mqp-ov { left: auto; right: 16px; }
.mqp-ov p { margin: 0; }
.mqp-ov-k { font: 700 11px/1.4 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--t-text-secondary); }
.mqp-ov-b { display: flex; align-items: baseline; gap: 8px; margin-top: 4px !important; font: 700 1.9rem/1.1 'Space Grotesk', sans-serif; color: var(--t-text); }
.mqp-ov-b small { font: 600 14px 'Inter', sans-serif; color: var(--t-text-secondary); }
.mqp-ov-arrow { display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 30px; height: 30px; border-radius: 50%; background: #3e8dd0; color: #fff; font: 700 17px/1 'Inter', sans-serif; }
.mqp-ov-s { margin-top: 4px !important; font-size: 13.5px; color: var(--t-text-secondary); }
.mqp-ov-l { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px !important; font-size: 13.5px; }
.mqp-ov-l a { color: var(--t-accent); font-weight: 650; text-decoration: none; }
.mqp-ov-l a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mqp-facts { margin: 0; padding: 0; border: 0; }
.mqp-facts a { color: var(--t-accent); font-weight: 600; text-decoration: none; }
.mqp-ib-h { margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--t-border); font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--t-text-secondary); }
.mqp-ib { margin: 0; display: grid; gap: 0; }
.mqp-ib > div { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px dashed color-mix(in srgb, var(--t-border) 80%, transparent); }
.mqp-ib dt { font-size: 13.5px; color: var(--t-text-secondary); }
.mqp-ib dd { margin: 0; font-size: 14px; color: var(--t-text); font-weight: 550; }
.mqp-ib dt.is-sec { margin: 12px 0 2px; font: 700 13px 'Inter', sans-serif; color: var(--t-accent); }
.mqp-times li { flex-direction: row; align-items: center; gap: 8px; }
.mqp-times li > span:nth-child(2) { flex: 1; min-width: 0; }
.mqp-times .gr-icon-mask { width: 18px; height: 18px; color: var(--t-accent); opacity: .85; }
.mqp-times b { font-size: 1rem; }
.mqp-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mqp-note { margin: -8px 0 10px; font-size: 13px; color: var(--t-text-secondary); }
.mqp-grid { align-items: start; }
@media (max-width: 860px) {
    .mqp-grid { grid-template-columns: minmax(0, 1fr); }
    .mqp-map { height: 380px; }
    .mqp-ov { top: 10px; left: 10px; right: 10px; max-width: none; padding: 10px 12px; }
    .mqp-mapwrap.ov-low .mqp-ov { bottom: 10px; }
    .mqp-ov-b { font-size: 1.5rem; }
}
.mqp-dist { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--t-border); border-radius: 999px; background: var(--t-card); color: var(--t-accent); font: 600 12.5px 'Inter', sans-serif; cursor: pointer; }
.mqp-dist:hover { border-color: var(--t-accent); }
.mqp-dist svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mqp-note { margin: -6px 0 10px; }
.mqp-faq { margin-top: 30px; }

/* ── round 381: photos and details from our users ── */
.mq-add { flex-direction: row; justify-content: center; width: 100%; margin: 4px 0 14px; padding: 10px; border-style: dashed; border-color: color-mix(in srgb, var(--t-accent) 55%, var(--t-border)); background: color-mix(in srgb, var(--t-accent) 5%, transparent); color: var(--t-accent); cursor: pointer; font-size: 13px; }
.mq-add svg { width: 18px; height: 18px; }
.mqp-gal { margin: 0 0 30px; }
.mqp-gal-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.mqp-gal-h h2 { margin: 0; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--t-text-secondary); }
.mqp-gal-add { flex-direction: row; padding: 8px 14px; cursor: pointer; background: var(--t-card); }
.mqp-gal-add svg { width: 17px; height: 17px; }
.mqp-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mqp-gal-grid a { display: block; overflow: hidden; border-radius: 16px; background: var(--t-border); }
.mqp-gal-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.mqp-gal-grid a:hover img { transform: scale(1.035); }
.mqp-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; max-width: 820px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--t-accent) 50%, var(--t-border)); border-radius: 18px; background: color-mix(in srgb, var(--t-accent) 4%, var(--t-card)); }
.mqp-cta-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--t-accent) 12%, transparent); color: var(--t-accent); }
.mqp-cta-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mqp-cta b { display: block; font-size: 15px; color: var(--t-text); }
.mqp-cta span { display: block; font-size: 13px; line-height: 1.45; color: var(--t-text-secondary); }
.mqp-cta .mq-btn { flex-direction: row; padding: 10px 16px; cursor: pointer; white-space: nowrap; }
@media (max-width: 560px) { .mqp-cta { grid-template-columns: auto minmax(0, 1fr); } .mqp-cta .mq-btn { grid-column: 1 / -1; } }
.mqp-ugc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mqp-ugc-b { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--t-accent) 12%, transparent); color: var(--t-accent); font: 700 10.5px/1.6 'Inter', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.mqp-sug { margin: 14px 0 0; }
.mqp-sug-b { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--t-border); border-radius: 999px; background: none; color: var(--t-accent); font: 600 13px 'Inter', sans-serif; cursor: pointer; }
.mqp-sug-b:hover { border-color: var(--t-accent); }
.mqp-sug-b svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mqp-lb { position: fixed; inset: 0; z-index: 9980; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 14, .92); }
.mqp-lb figure { margin: 0; max-width: 100%; text-align: center; }
.mqp-lb img { display: block; max-width: min(100%, 1600px); max-height: calc(100dvh - 90px); margin: 0 auto; border-radius: 10px; object-fit: contain; }
.mqp-lb figcaption { margin-top: 10px; color: #cbd5e1; font-size: 12.5px; }
.mqp-lb button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.mqp-lb button:hover { background: rgba(255, 255, 255, .22); }
.mqp-lb-x { top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px; }
.mqp-lb-p { left: 14px; top: 50%; transform: translateY(-50%); }
.mqp-lb-n { right: 14px; top: 50%; transform: translateY(-50%); }

/* ── round 386: the sources of a mosque page; our users' description under Wikipedia's ── */
.mqp-x-u { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--t-border); }
.mqp-srcs { max-width: 820px; margin: 30px 0 0; padding-top: 16px; border-top: 1px solid var(--t-border); }
.mqp-srcs h2 { margin: 0 0 8px; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--t-text-secondary); }
.mqp-srcs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--t-text-secondary); }
.mqp-srcs a { color: var(--t-accent); font-weight: 600; text-decoration: none; }

/* ── round 392 / 394: "World mosque map" (mosques-hub.php) — the map first, the search, the chosen mosques in tabs, the community ── */
.mh-page { max-width: 1180px; --mh-deep: #0a2a20; --mh-deep2: #0f3a2c; --mh-mint: #5fd3a6; }
.mh-h2 { margin: 0; font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.015em; color: var(--t-text); text-wrap: balance; }
.mh-k { margin: 0 0 4px; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--t-accent); }
.mh-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--t-text-secondary); }
.mh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--t-border); border-radius: 13px; background: var(--t-bg); color: var(--t-text); font: 650 14px 'Inter', sans-serif; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.mh-btn:hover { border-color: var(--t-accent); color: var(--t-accent); }
.mh-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the hero: a dotted field, the words and the search on one side, the map as a picture on the other */
.mh-hero { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; margin: 0; padding: 30px 0 44px; isolation: isolate; }
.mh-hero::before { content: ""; position: absolute; inset: -40px -24px 0; z-index: -1; background: radial-gradient(rgba(var(--t-accent-rgb), .26) 1px, transparent 1.4px) 0 0 / 24px 24px; -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .3) 45%, transparent 58%); mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .3) 45%, transparent 58%); pointer-events: none; }
.mh-hero-t { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.mh-pill { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(var(--t-accent-rgb), .28); background: rgba(var(--t-accent-rgb), .08); color: var(--t-accent); font: 650 12.5px/1.3 'Inter', sans-serif; }
.mh-pill i, .mh-prev-k i, .mh-feed-h i { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mh-pill i::after, .mh-prev-k i::after, .mh-feed-h i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: mh-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes mh-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.mh-h1 { margin: 0; font: 700 clamp(2.1rem, 4.6vw, 3.35rem)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.028em; color: var(--t-text); text-wrap: balance; }
.mh-h1 span { color: var(--t-accent); }
.mh-lead { margin: 0; max-width: 60ch; font-size: 1.08rem; line-height: 1.65; color: var(--t-text-secondary); }
.mh-search { display: flex; gap: 8px; width: 100%; max-width: 580px; padding: 7px; border: 1px solid var(--t-border); border-radius: 18px; background: var(--t-bg); box-shadow: 0 18px 40px -26px rgba(10, 40, 30, .45); }
.mh-search label { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.mh-search label svg, .mh-filter svg { position: absolute; inset-inline-start: 12px; width: 18px; height: 18px; fill: none; stroke: var(--t-text-secondary); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.mh-search input { width: 100%; min-width: 0; height: 46px; padding-inline: 40px 10px; border: 0; background: none; color: var(--t-text); font: 500 15px 'Inter', sans-serif; outline: none; }
.mh-search input::-webkit-search-cancel-button { display: none; }
.mh-search button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 13px; background: var(--t-accent); color: #fff; font: 650 14.5px 'Inter', sans-serif; cursor: pointer; transition: filter .15s; }
.mh-search button:hover { filter: brightness(1.08); }
.mh-search button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mh-search:focus-within { border-color: var(--t-accent); box-shadow: 0 0 0 3px rgba(var(--t-accent-rgb), .15), 0 18px 40px -26px rgba(10, 40, 30, .45); }
[dir=rtl] .mh-search button svg, [dir=rtl] .mh-feat i svg { transform: scaleX(-1); }
.mh-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.mh-quick > span { color: var(--t-text-secondary); font-weight: 600; }
.mh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: color-mix(in srgb, var(--t-text) 6%, transparent); color: var(--t-text); font: 600 13px 'Inter', sans-serif; text-decoration: none; transition: background .15s, color .15s; }
.mh-chip b { font-weight: 700; color: var(--t-text-secondary); font-variant-numeric: tabular-nums; }
.mh-chip:hover { background: rgba(var(--t-accent-rgb), .12); color: var(--t-accent); }
.mh-chip.is-me { background: rgba(var(--t-accent-rgb), .12); color: var(--t-accent); }
.mh-chip.is-me:hover { background: var(--t-accent); color: #fff; }
.mh-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mh-chip img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* the map as a picture (round 401: the whole world, the labels say what they are, the card below the map) */
.mh-prev { position: relative; display: grid; gap: 14px; color: var(--t-text); text-decoration: none; }
.mh-prev-k { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.3 'Inter', sans-serif; color: var(--t-text-secondary); }
.mh-prev-k i { color: var(--t-accent); }
.mh-prev-map { position: relative; display: block; width: 100%; aspect-ratio: 180 / 66; }
[dir=rtl] .mh-prev-map { direction: ltr; }
.mh-prev-map img { display: block; width: 100%; height: 100%; }
.mh-bub { position: absolute; z-index: 1; display: inline-flex; align-items: baseline; gap: 5px; transform: translate(-50%, calc(-100% - 7px)); padding: 3px 8px; border-radius: 8px; background: var(--t-bg); color: var(--t-text); border: 1px solid color-mix(in srgb, var(--t-border) 90%, transparent); font: 700 11px/1.3 'Inter', sans-serif; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mh-bub span { font-weight: 600; color: var(--t-text-secondary); }
.mh-bub::after { content: ""; position: absolute; left: 50%; top: 100%; width: 7px; height: 7px; margin: 2px 0 0 -3.5px; border-radius: 50%; background: var(--t-accent); box-shadow: 0 0 0 2px var(--t-bg); }
.mh-bub.is-1 { border-color: color-mix(in srgb, var(--t-accent) 40%, transparent); color: var(--t-accent); }
.mh-kaaba { position: absolute; z-index: 1; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; background: #1f1a14; box-shadow: 0 0 0 2px var(--t-bg), 0 0 0 3.5px #c98a1e; }
.mh-kaaba span { position: absolute; top: 50%; left: calc(100% + 7px); transform: translateY(-50%); padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, #c98a1e 14%, var(--t-bg)); color: color-mix(in srgb, #8a5a0c 85%, var(--t-text)); font: 700 10.5px/1.4 'Inter', sans-serif; font-style: normal; white-space: nowrap; }
.mh-feat { position: relative; display: flex; align-items: center; gap: 13px; padding: 11px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--t-border) 80%, transparent); background: var(--t-bg); color: var(--t-text); box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .3); transition: transform .3s ease, box-shadow .3s; }
.mh-prev:hover .mh-feat { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .35); }
.mh-feat img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--t-border); }
.mh-feat > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mh-feat em { justify-self: start; padding: 2px 8px; border-radius: 6px; background: rgba(var(--t-accent-rgb), .1); color: var(--t-accent); font: 700 10.5px/1.4 'Inter', sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.mh-feat b { font: 700 14.5px/1.3 'Inter', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-feat small { font-size: 12.5px; color: var(--t-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-feat i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--t-text) 7%, transparent); transition: background .15s, color .15s; }
.mh-feat i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mh-prev:hover .mh-feat i { background: var(--t-accent); color: #fff; }

/* the map in numbers: a card over the bottom of the hero */
.mh-stats { position: relative; z-index: 2; margin: 8px 0 0; padding: 30px 34px 32px; border: 1px solid color-mix(in srgb, var(--t-border) 70%, transparent); border-radius: 26px; background: var(--t-bg); box-shadow: 0 30px 60px -36px rgba(16, 32, 48, .22), 0 2px 6px -2px rgba(16, 32, 48, .05); }
.mh-stats-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-bottom: 22px; border-bottom: 1px solid color-mix(in srgb, var(--t-border) 70%, transparent); }
.mh-stats-h > div { min-width: 0; max-width: 72ch; }
.mh-stats-h .mh-h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 1.2rem/1.3 'Inter', sans-serif; letter-spacing: -.01em; }
.mh-stats-h p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--t-text-secondary); }
.mh-date { flex: none; color: var(--t-text-secondary); font: 600 12.5px 'Inter', sans-serif; }
.mh-stats ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin: 0; padding: 26px 0 0; list-style: none; }
.mh-stats li { display: grid; gap: 3px; align-content: start; }
.mh-stats b { font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.05 'Inter', sans-serif; letter-spacing: -.02em; color: var(--t-text); font-variant-numeric: tabular-nums; }
.mh-stats li.is-main b { color: var(--t-accent); }
.mh-stats span { font: 650 13.5px/1.35 'Inter', sans-serif; color: var(--t-text); }
.mh-stats small { font-size: 12px; color: color-mix(in srgb, var(--t-text-secondary) 75%, transparent); }
.mh-stats small.is-ask { color: #b7791f; font-weight: 600; }

/* the chosen mosques, in tabs */
.mh-cur { margin: 64px 0 0; }
.mh-cur-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.mh-tabs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mh-tabs::-webkit-scrollbar { display: none; }
.mh-tabs button { flex: none; padding: 10px 16px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--t-text) 6%, transparent); color: var(--t-text); font: 650 13.5px 'Inter', sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.mh-tabs button:hover { background: rgba(var(--t-accent-rgb), .12); color: var(--t-accent); }
.mh-tabs button[aria-selected=true] { background: var(--t-accent); color: #fff; }
.mh-tabs button:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.mh-pan[hidden], .mh-grid li[hidden], .mh-pan-more[hidden] { display: none; }
.mh-pan-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 18px; padding: 13px 16px; border-radius: 14px; background: rgba(var(--t-accent-rgb), .06); font-size: 14px; line-height: 1.5; color: var(--t-text); }
.mh-pan-info a { display: inline-flex; align-items: center; gap: 6px; color: var(--t-accent); font-weight: 650; text-decoration: none; white-space: nowrap; }
.mh-pan-info a:hover { text-decoration: underline; }
.mh-pan-info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-pan-more { margin: 18px 0 0; text-align: center; }
.mh-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.mh-tabs button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.mh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.mh-card { display: flex; flex-direction: column; height: 100%; border: 1px solid color-mix(in srgb, var(--t-border) 70%, transparent); border-radius: 20px; background: var(--t-bg); box-shadow: 0 2px 8px -4px rgba(16, 32, 48, .08); color: var(--t-text); text-decoration: none; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mh-card:hover { border-color: rgba(var(--t-accent-rgb), .45); box-shadow: 0 22px 40px -26px rgba(10, 40, 30, .5); transform: translateY(-2px); }
.mh-ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(var(--t-accent-rgb), .08); }
.mh-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mh-card:hover .mh-ph img { transform: scale(1.05); }
.mh-ph > i { position: absolute; inset: 0; display: grid; place-items: center; }
.mh-ph > i svg { width: 46px; fill: rgba(var(--t-accent-rgb), .45); }
.mh-t { display: grid; gap: 5px; padding: 14px 16px 0; flex: 1; align-content: start; }
.mh-t b { font: 700 15.5px/1.3 'Inter', sans-serif; transition: color .15s; }
.mh-card:hover .mh-t b { color: var(--t-accent); }
.mh-t small { display: flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--t-text-secondary); }
.mh-t small svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.mh-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 16px 0; padding: 12px 0 15px; border-top: 1px solid color-mix(in srgb, var(--t-border) 60%, transparent); font: 650 12.5px 'Inter', sans-serif; color: var(--t-accent); }
.mh-go { color: var(--t-text-secondary); font-weight: 600; white-space: nowrap; transition: color .15s; }
.mh-card:hover .mh-go { color: var(--t-accent); }
.mh-cur-f { display: grid; justify-items: center; gap: 12px; margin-top: 26px; text-align: center; }

/* round 397: the oldest mosques on a line of years — a warm, old-paper band */
.mh-hist { --hb: #8a4614; --hi: color-mix(in srgb, var(--hb) 88%, var(--t-text)); margin: 72px 0 0; padding: 48px 48px 40px; border-radius: 28px; background: color-mix(in srgb, #c9893b 8%, var(--t-bg)); border: 1px solid color-mix(in srgb, #c9893b 18%, transparent); }
.mh-hist-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 30px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid color-mix(in srgb, #c9893b 22%, transparent); }
.mh-hist-h > div { max-width: 64ch; min-width: 0; }
.mh-hist-k { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, #d9a441 45%, transparent); background: color-mix(in srgb, #f2c55c 22%, var(--t-bg)); color: var(--hi); font: 700 11.5px/1.3 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.mh-hist-k svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mh-hist-t { margin: 0; font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: var(--t-text); text-wrap: balance; }
.mh-hist-p { margin: 12px 0 0; font-size: 1.02rem; line-height: 1.65; color: var(--t-text-secondary); }
.mh-hist-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 14px; background: #1f1a14; color: #fff; font: 650 14.5px 'Inter', sans-serif; text-decoration: none; box-shadow: 0 14px 30px -16px rgba(31, 26, 20, .7); transition: transform .15s; }
.mh-hist-btn:hover { transform: translateY(-1px); }
.mh-hist-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-hist-btn svg:first-child { stroke: #f2c55c; }
.mh-hist-btn svg:last-child { stroke: #f2c55c; }
[dir=rtl] .mh-hist-btn svg:last-child { transform: scaleX(-1); }
.mh-hist-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 36px 0 14px; padding: 22px 26px; border-radius: 18px; background: color-mix(in srgb, #c9893b 12%, var(--t-bg)); border: 1px solid color-mix(in srgb, #c9893b 22%, transparent); }
.mh-hist-cta div { display: grid; gap: 4px; min-width: 0; max-width: 70ch; }
.mh-hist-cta b { font: 700 1.05rem 'Inter', sans-serif; color: var(--t-text); }
.mh-hist-cta span { font-size: 14px; color: var(--t-text-secondary); line-height: 1.5; }
.mh-hist-cta a { flex: none; padding: 12px 20px; border-radius: 12px; background: var(--hb); color: #fff; font: 650 14px 'Inter', sans-serif; text-decoration: none; transition: filter .15s; }
.mh-hist-cta a:hover { filter: brightness(1.1); }
.mh-hist .mh-note { text-align: center; }
/* round 402: the line of years, horizontal — round pictures on one line, dragged left and right */
.mh-tl-ctl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: -14px 0 8px; }
.mh-tl-ctl span { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 6px; font: 600 12px 'Inter', sans-serif; color: var(--t-text-secondary); }
.mh-tl-ctl span svg { width: 16px; height: 16px; fill: none; stroke: var(--hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-tl-ctl button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in srgb, #8a4614 18%, transparent); background: var(--t-bg); color: var(--t-text); cursor: pointer; box-shadow: 0 2px 6px -3px rgba(0, 0, 0, .2); transition: border-color .15s, color .15s; }
.mh-tl-ctl button:hover { border-color: var(--hi); color: var(--hi); }
.mh-tl-ctl button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.mh-tl-ctl button[data-d="1"] svg { transform: rotate(-90deg); }
[dir=rtl] .mh-tl-ctl button svg { transform: rotate(-90deg); } [dir=rtl] .mh-tl-ctl button[data-d="1"] svg { transform: rotate(90deg); }
.mh-tl { position: relative; margin-inline: -48px; overflow-x: auto; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.mh-tl::-webkit-scrollbar { display: none; }
.mh-tl.is-drag { cursor: grabbing; }
.mh-tl.at-start { -webkit-mask-image: linear-gradient(90deg, #000, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000, #000 calc(100% - 48px), transparent); }
.mh-tl.at-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.mh-tl.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
.mh-tl ol { position: relative; display: flex; gap: 28px; width: max-content; margin: 0; padding: 12px 48px 18px; list-style: none; }
/* the line through the middle of the pictures */
.mh-tl ol::before { content: ""; position: absolute; z-index: 0; inset-inline: 120px; top: calc(12px + 66px + 72px); height: 2px; background: linear-gradient(90deg, color-mix(in srgb, #c9893b 60%, transparent), color-mix(in srgb, #8a4614 55%, transparent)); }
.mh-tl li { position: relative; z-index: 1; width: 200px; }
.mh-tl a { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--t-text); text-decoration: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.mh-tl-y { display: grid; justify-items: center; gap: 3px; height: 66px; align-content: start; }
.mh-tl-y b { font: 900 2rem/1 'Inter', sans-serif; letter-spacing: -.03em; color: var(--hi); font-variant-numeric: tabular-nums; }
.mh-tl-y small { font: 600 11.5px/1.3 'Inter', sans-serif; color: var(--t-text-secondary); }
.mh-tl-ph { display: block; width: 144px; height: 144px; padding: 5px; border-radius: 50%; border: 2px solid color-mix(in srgb, #c9893b 55%, transparent); background: color-mix(in srgb, #c9893b 8%, var(--t-bg)); box-shadow: 0 10px 24px -14px rgba(60, 40, 15, .55); transition: transform .3s, border-color .3s, box-shadow .3s; }
.mh-tl-ph img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, #c9893b 12%, var(--t-bg)); pointer-events: none; }
.mh-tl-ph > i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: color-mix(in srgb, #c9893b 12%, var(--t-bg)); }
.mh-tl-ph > i svg { width: 46px; fill: color-mix(in srgb, #c9893b 60%, transparent); }
.mh-tl a:hover .mh-tl-ph { transform: scale(1.05); border-color: var(--t-accent); box-shadow: 0 16px 30px -14px rgba(60, 40, 15, .6); }
.mh-tl-t { display: grid; justify-items: center; gap: 4px; margin-top: 14px; padding-inline: 6px; }
.mh-tl-t b { font: 700 15px/1.3 'Inter', sans-serif; transition: color .15s; }
.mh-tl a:hover .mh-tl-t b { color: var(--t-accent); }
.mh-tl-t small { font-size: 12.5px; color: var(--t-text-secondary); }
.mh-tl-t em { margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, #f2c55c 28%, var(--t-bg)); color: var(--hi); font: 650 11px/1.5 'Inter', sans-serif; font-style: normal; }
/* the last stop: the article */
.mh-tl li.is-end .mh-tl-y b { color: var(--t-text); font-size: 1.6rem; }
.mh-tl li.is-end .mh-tl-y small { color: var(--hi); }
.mh-tl li.is-end .mh-tl-ph { border-style: dashed; border-color: color-mix(in srgb, var(--t-text) 55%, transparent); }
.mh-tl li.is-end .mh-tl-ph > span { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; height: 100%; border-radius: 50%; background: #1f1a14; color: #f2c55c; transition: background .3s; }
.mh-tl li.is-end .mh-tl-ph svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mh-tl li.is-end .mh-tl-ph em { font: 700 10.5px/1.3 'Inter', sans-serif; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #f6dfa4; }
.mh-tl li.is-end a:hover .mh-tl-ph { border-style: solid; border-color: #c98a1e; }
.mh-tl li.is-end a:hover .mh-tl-ph > span { background: #6b3a10; }
@media (max-width: 760px) {
    .mh-tl { margin-inline: -18px; }
    .mh-tl ol { gap: 16px; padding-inline: 18px; }
    .mh-tl li { width: 158px; }
    .mh-tl-ph { width: 118px; height: 118px; }
    .mh-tl ol::before { top: calc(12px + 66px + 59px); }
    .mh-tl-y b { font-size: 1.65rem; }
    .mh-tl-ctl span { display: none; }
    .mh-tl-ctl { margin-top: 0; }
}
@media (max-width: 760px) {
    .mh-hist { padding: 30px 18px 24px; border-radius: 22px; margin-top: 56px; }
}

/* the community: a deep green band, the invitation and the latest contributions */
.mh-com { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 72px 0 0; padding: 52px 44px; border-radius: 28px; background: var(--mh-deep); color: #e8f7f0; overflow: hidden; isolation: isolate; }
.mh-com::before, .mh-com::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); }
.mh-com::before { top: -160px; inset-inline-end: -120px; background: rgba(30, 155, 114, .35); }
.mh-com::after { bottom: -200px; inset-inline-start: -140px; background: rgba(20, 110, 100, .3); }
.mh-com-t { display: grid; gap: 18px; justify-items: start; }
.mh-com-k { margin: 0; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(95, 211, 166, .35); background: rgba(95, 211, 166, .1); color: var(--mh-mint); font: 650 12px 'Inter', sans-serif; }
.mh-com-h { margin: 0; font: 700 clamp(1.7rem, 3.4vw, 2.5rem)/1.12 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.mh-com-h span { color: var(--mh-mint); }
.mh-com-p { margin: 0; font-size: 1rem; line-height: 1.65; color: rgba(232, 247, 240, .78); }
.mh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: st; }
.mh-steps li { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); counter-increment: st; }
.mh-steps b { font: 700 1.05rem 'Space Grotesk', sans-serif; color: var(--mh-mint); }
.mh-steps b::before { content: counter(st) ". "; }
.mh-steps span { font-size: 12.5px; line-height: 1.5; color: rgba(232, 247, 240, .7); }
.mh-com-btn { display: inline-flex; align-items: center; gap: 9px; margin-top: 4px; padding: 14px 22px; border-radius: 14px; background: var(--mh-mint); color: #062018; font: 700 14.5px 'Inter', sans-serif; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); transition: filter .15s; }
.mh-com-btn:hover { filter: brightness(1.08); }
.mh-com-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-feed { padding: 22px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.mh-feed-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mh-feed-h h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 15px 'Inter', sans-serif; color: #fff; }
.mh-feed-h i { color: var(--mh-mint); }
.mh-feed-h > span { font: 650 12px 'Inter', sans-serif; color: var(--mh-mint); }
.mh-feed ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mh-feed a { display: flex; align-items: center; gap: 14px; padding: 11px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .04); color: #fff; text-decoration: none; transition: background .15s; }
.mh-feed a:hover { background: rgba(255, 255, 255, .1); }
.mh-feed img, .mh-feed-ic { flex: none; width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.mh-feed-ic { display: grid; place-items: center; background: rgba(95, 211, 166, .14); border: 1px solid rgba(95, 211, 166, .3); color: var(--mh-mint); }
.mh-feed-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-feed a > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mh-feed-r { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.mh-feed-r em { font-style: normal; font-weight: 650; }
.mh-feed-r .is-ph { color: var(--mh-mint); } .mh-feed-r .is-ed { color: #f3c96b; }
.mh-feed-r time { color: rgba(232, 247, 240, .55); white-space: nowrap; }
.mh-feed b { font: 700 14px/1.3 'Inter', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-feed small { font-size: 12px; color: rgba(232, 247, 240, .65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-feed-0 { margin: 0; padding: 18px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .2); font-size: 14px; line-height: 1.55; color: rgba(232, 247, 240, .8); }

/* the countries */
.mh-ccs { margin: 64px 0 0; padding-bottom: 40px; border-bottom: 1px solid var(--t-border); }
.mh-ccs-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.mh-ccs-h p { margin: 6px 0 0; font-size: 14px; color: var(--t-text-secondary); }
.mh-filter { position: relative; display: flex; align-items: center; width: min(100%, 280px); }
.mh-filter input { width: 100%; height: 42px; padding-inline: 38px 12px; border: 1px solid var(--t-border); border-radius: 12px; background: var(--t-input-bg, var(--t-bg)); color: var(--t-text); font: 500 14px 'Inter', sans-serif; outline: none; }
.mh-filter input:focus { border-color: var(--t-accent); box-shadow: 0 0 0 3px rgba(var(--t-accent-rgb), .15); }

/* the countries, by region (the country grid of the prayer-times page), with the number of mosques on our map */
.mh-reg { margin: 0 0 30px; }
.mh-reg[hidden], .mh-reg li[hidden], .mh-reg-more[hidden] { display: none; }
.mh-reg h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font: 700 1.15rem 'Space Grotesk', sans-serif; color: var(--t-text); }
.mh-reg h3 small { font: 600 12.5px 'Inter', sans-serif; color: var(--t-text-secondary); }
.mh-page .gr-country-grid a { background: var(--t-bg); }
.mh-page .gr-country-grid .gr-cn { flex: 1; }
.mh-page .gr-country-grid em { flex: none; padding: 2px 8px; border-radius: 7px; background: rgba(var(--t-accent-rgb), .1); color: var(--t-accent); font: 700 12px 'Inter', sans-serif; font-style: normal; font-variant-numeric: tabular-nums; }
.mh-reg-more { margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--t-accent); font: 650 13.5px 'Inter', sans-serif; cursor: pointer; }
.mh-reg-more:hover { text-decoration: underline; }
.mh-cc-none { margin: 0; color: var(--t-text-secondary); }

/* questions */
.mh-faq { max-width: 820px; margin: 56px auto 0; }
.mh-faq .mh-h2, .mh-faq-p { text-align: center; }
.mh-faq-p { margin: 8px 0 24px; font-size: 14px; color: var(--t-text-secondary); }
.mh-faq details { margin: 0 0 10px; border: 1px solid var(--t-border); border-radius: 16px; background: var(--t-bg); overflow: hidden; }
.mh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font: 650 15px/1.4 'Inter', sans-serif; color: var(--t-text); transition: background .15s; }
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary:hover { background: color-mix(in srgb, var(--t-text) 3%, transparent); }
.mh-faq summary svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--t-text-secondary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.mh-faq details[open] summary svg { transform: rotate(180deg); }
.mh-faq details p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.7; color: var(--t-text-secondary); }
.mh-page > .mq-src { margin-top: 26px; text-align: center; }

@media (max-width: 1000px) {
    .mh-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 0 36px; }
    .mh-prev { max-width: 560px; width: 100%; }
    .mh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-com { grid-template-columns: minmax(0, 1fr); padding: 40px 28px; }
}
@media (max-width: 640px) {
    .mh-hero { gap: 26px; padding: 14px 0 28px; }
    .mh-search { flex-direction: column; }
    .mh-search button { justify-content: center; height: 46px; }
    .mh-stats { padding: 22px 18px; border-radius: 22px; }
    .mh-stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .mh-stats li.is-main { grid-column: 1 / -1; }
    .mh-pan-more { display: none; }
    .mh-grid li.is-more { display: block !important; }
    .mh-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; }
    .mh-grid::-webkit-scrollbar { display: none; }
    .mh-grid li { scroll-snap-align: start; }
    .mh-steps { grid-template-columns: minmax(0, 1fr); }
    .mh-com { margin-inline: -4px; padding: 32px 18px; border-radius: 22px; }
    .mh-feed { padding: 14px; }
        .mh-prev-k { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .mh-pill i::after, .mh-prev-k i::after, .mh-feed-h i::after, .mh-kaaba::after { animation: none; } }

/* ── round 397: "The history of mosques" (mosque-history.php) ── */
.mhh-page { max-width: 1120px; --hb: #8a4614; --hi: color-mix(in srgb, var(--hb) 88%, var(--t-text)); }
.mhh-hero { max-width: 780px; margin: 18px 0 30px; }
.mhh-h1 { margin: 0; font: 700 clamp(2.2rem, 5vw, 3.4rem)/1.06 'Space Grotesk', sans-serif; letter-spacing: -.028em; color: var(--t-text); text-wrap: balance; }
.mhh-lead { margin: 14px 0 0; font-size: 1.12rem; line-height: 1.65; color: var(--t-text-secondary); }
.mhh-sh { margin: 0 0 14px; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--hi); }
.mhh-dates { margin: 0 0 40px; padding: 24px 26px; border-radius: 24px; background: color-mix(in srgb, #c9893b 8%, var(--t-bg)); border: 1px solid color-mix(in srgb, #c9893b 18%, transparent); }
.mhh-dates ol { display: flex; gap: 0; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.mhh-dates li { position: relative; flex: 1 0 128px; display: grid; gap: 6px; padding: 18px 14px 0 0; border-top: 2px solid color-mix(in srgb, #c9893b 45%, transparent); }
.mhh-dates li::before { content: ""; position: absolute; top: -7px; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 4px color-mix(in srgb, #c9893b 8%, var(--t-bg)); }
.mhh-dates b { font: 800 1.35rem/1 'Inter', sans-serif; color: var(--hi); font-variant-numeric: tabular-nums; }
.mhh-dates span { font-size: 12.5px; line-height: 1.4; color: var(--t-text-secondary); }
.mhh-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.mhh-toc { position: sticky; top: 90px; padding: 18px; border-radius: 18px; border: 1px solid var(--t-border); background: var(--t-bg); }
.mhh-toc p { margin: 0 0 10px; font: 700 12px 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--t-text-secondary); }
.mhh-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: t; }
.mhh-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--t-text); font-size: 13.5px; line-height: 1.35; text-decoration: none; }
.mhh-toc a:hover { background: color-mix(in srgb, #c9893b 12%, transparent); color: var(--hi); }
.mhh-art { max-width: 720px; min-width: 0; }
.mhh-art > section { margin: 0 0 34px; scroll-margin-top: 90px; }
.mhh-art h2 { margin: 0 0 12px; font: 700 clamp(1.35rem, 2.6vw, 1.7rem)/1.2 'Space Grotesk', sans-serif; letter-spacing: -.015em; color: var(--t-text); text-wrap: balance; }
.mhh-art p { margin: 0 0 14px; font-size: 1.04rem; line-height: 1.78; color: var(--t-text); }
.mhh-parts dl { display: grid; gap: 10px; margin: 0; }
.mhh-parts dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, #c9893b 7%, var(--t-bg)); }
.mhh-parts dt { font: 700 1rem 'Space Grotesk', sans-serif; color: var(--hi); }
.mhh-parts dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--t-text-secondary); }
.mhh-map { text-align: center; }
.mhh-src { padding-top: 18px; border-top: 1px solid var(--t-border); }
.mhh-src h2 { font: 700 12px/1.4 'Inter', sans-serif !important; letter-spacing: .08em; text-transform: uppercase; color: var(--t-text-secondary) !important; }
.mhh-src p { font-size: 13px !important; color: var(--t-text-secondary) !important; }
.mhh-src ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.mhh-src a { color: var(--t-accent); text-decoration: none; }
@media (max-width: 860px) {
    .mhh-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .mhh-toc { position: static; }
    .mhh-parts dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .mhh-dates { padding: 20px 16px; }
}

/* round 398: a mosque page without our users' photos — "add a photo" and "complete the details" in one module */
.mqp-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 18px; max-width: 820px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--t-accent) 22%, var(--t-border)); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--t-accent) 6%, var(--t-bg)), var(--t-bg) 70%); }
.mqp-help-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--t-accent) 12%, var(--t-bg)); color: var(--t-accent); }
.mqp-help-ic svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mqp-help-t { min-width: 0; }
.mqp-help-t b { display: block; font: 700 15.5px/1.35 'Inter', sans-serif; color: var(--t-text); }
.mqp-help-t p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--t-text-secondary); }
.mqp-help-a { display: flex; gap: 8px; }
.mqp-hb { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; border: 1px solid var(--t-border); border-radius: 12px; background: var(--t-bg); color: var(--t-text); font: 650 13.5px 'Inter', sans-serif; white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s, filter .15s; }
.mqp-hb:hover { border-color: var(--t-accent); color: var(--t-accent); }
.mqp-hb.is-1 { border-color: transparent; background: var(--t-accent); color: #fff; }
.mqp-hb.is-1:hover { color: #fff; filter: brightness(1.08); }
.mqp-hb svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
    .mqp-help { grid-template-columns: auto minmax(0, 1fr); }
    .mqp-help-a { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) { .mqp-help-a { grid-template-columns: minmax(0, 1fr); } }

/* ── round 404: our own article on a mosque page (mosque.php, inc/content/mosque-articles/) ── */
.mqa { max-width: 820px; margin: 8px 0 36px; }
.mqa-lead { margin: 0 0 26px; font-size: 1.2rem; line-height: 1.7; color: var(--t-text); }
.mqa-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin: 0 0 34px; }
.mqa-facts, .mqa-toc { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--t-border); background: var(--t-bg); }
.mqa-facts { background: color-mix(in srgb, var(--t-accent) 4%, var(--t-bg)); }
.mqa .mqa-facts h2, .mqa-toc p { margin: 0 0 12px; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--t-text-secondary); }
.mqa-facts dl { display: grid; gap: 0; margin: 0; }
.mqa-facts dl > div { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed color-mix(in srgb, var(--t-border) 90%, transparent); }
.mqa-facts dl > div:last-child { border-bottom: 0; }
.mqa-facts dt { font-size: 13px; color: var(--t-text-secondary); }
.mqa-facts dd { margin: 0; font: 600 14px/1.45 'Inter', sans-serif; color: var(--t-text); }
.mqa-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: c; }
.mqa-toc li { counter-increment: c; }
.mqa-toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 9px; color: var(--t-text); font-size: 14px; line-height: 1.35; text-decoration: none; }
.mqa-toc a::before { content: counter(c); flex: none; width: 20px; color: var(--t-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.mqa-toc a:hover { background: rgba(var(--t-accent-rgb), .08); color: var(--t-accent); }
.mqa > section { margin: 0 0 34px; scroll-margin-top: 90px; }
.mqa h2 { margin: 0 0 12px; font: 700 clamp(1.35rem, 2.6vw, 1.75rem)/1.2 'Space Grotesk', sans-serif; letter-spacing: -.015em; color: var(--t-text); text-wrap: balance; }
.mqa section > p { margin: 0 0 14px; font-size: 1.06rem; line-height: 1.8; color: var(--t-text); }
.mqa-q { margin: 6px 0 18px; padding: 18px 22px; border-inline-start: 4px solid #c98a1e; border-radius: 0 16px 16px 0; background: color-mix(in srgb, #c9893b 8%, var(--t-bg)); }
[dir=rtl] .mqa-q { border-radius: 16px 0 0 16px; }
.mqa-q p { margin: 0; font: 500 1.12rem/1.65 'Inter', sans-serif; color: var(--t-text); }
.mqa-q footer { margin-top: 8px; font-size: 12.5px; }
.mqa-q footer a { color: color-mix(in srgb, #8a4614 88%, var(--t-text)); font-weight: 600; text-decoration: none; }
.mqa-q footer a:hover { text-decoration: underline; }
.mqa-years { position: relative; display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.mqa-years::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 110px; width: 2px; background: color-mix(in srgb, var(--t-accent) 30%, transparent); }
.mqa-years li { position: relative; display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 26px; padding: 7px 0; }
.mqa-years li::before { content: ""; position: absolute; top: 14px; inset-inline-start: 106px; width: 10px; height: 10px; border-radius: 50%; background: var(--t-accent); box-shadow: 0 0 0 3px var(--t-bg); }
.mqa-years b { text-align: end; white-space: nowrap; font: 800 14.5px/1.5 'Inter', sans-serif; color: var(--t-accent); font-variant-numeric: tabular-nums; }
.mqa-years span { font-size: 14.5px; line-height: 1.55; color: var(--t-text); }
.mqa-gal ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mqa-gal li:first-child { grid-column: span 2; grid-row: span 2; }
.mqa-gal a { display: block; height: 100%; border-radius: 14px; overflow: hidden; background: var(--t-border); }
.mqa-gal img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.mqa-gal a:hover img { transform: scale(1.04); }
.mqa-own { margin: 0; padding-top: 14px; border-top: 1px solid var(--t-border); font-size: 13px; color: var(--t-text-secondary); }
@media (max-width: 760px) {
    .mqa-top { grid-template-columns: minmax(0, 1fr); }
    .mqa-lead { font-size: 1.08rem; }
    .mqa-years::before { inset-inline-start: 94px; }
    .mqa-years li { grid-template-columns: 82px minmax(0, 1fr); gap: 24px; }
    .mqa-years li::before { inset-inline-start: 90px; }
    .mqa-years b { font-size: 13px; }
    .mqa-gal ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* round 414: the UNESCO World Heritage mark of an article */
.mqa-unesco { margin: -12px 0 24px; }
.mqa-unesco a { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #eaf2fb; color: #0b4a8b; text-decoration: none; font-size: .92rem; line-height: 1.35; border: 1px solid #c9dcf2; }
.mqa-unesco a:hover { background: #dde9f8; }
.mqa-unesco b { flex: none; padding: 3px 9px; border-radius: 999px; background: #0b4a8b; color: #fff; font-size: .75rem; letter-spacing: .06em; }
@media (prefers-color-scheme: dark) { .mqa-unesco a { background: #13263b; color: #b9d5f3; border-color: #24415f; } .mqa-unesco a:hover { background: #18304a; } .mqa-unesco b { background: #3d7fc4; } }
