/* Modern Thai-Muslim — interface */

.mm-skip {
	position: absolute;
	inset-inline-start: 1rem;
	top: -120%;
	z-index: 10000;
	padding: 0.75rem 1rem;
	background: var(--mm-gold-600);
	color: #022c22;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}

.mm-skip:focus {
	top: 1rem;
}

/* Top stack ------------------------------------------------------------- */

.mm-top {
	position: sticky;
	top: 0;
	z-index: 200;
}

body.admin-bar .mm-top {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .mm-top {
		top: 46px;
	}
}

.mm-prayerbar {
	background: var(--mm-emerald-900);
	color: #f8f5ee;
	border-bottom: 1px solid rgba(252, 211, 77, 0.28);
}

.mm-prayerbar-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto auto;
	gap: clamp(0.6rem, 1.2vw, 1.25rem);
	align-items: center;
	min-height: 4.25rem;
	padding-block: 0.45rem;
}

.mm-hijri,
.mm-gregorian {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.6rem;
	align-items: baseline;
	font-size: 0.82rem;
}

.mm-hijri-label,
.mm-next-kicker,
.mm-kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mm-kicker {
	color: var(--mm-gold-700);
}

html[lang="th"] .mm-kicker,
html[lang="ar"] .mm-kicker,
html[lang="th"] .mm-hijri-label,
html[lang="ar"] .mm-hijri-label {
	letter-spacing: 0.02em;
	text-transform: none;
}

.mm-hijri-label,
.mm-next-kicker,
.mm-gregorian {
	color: rgba(248, 245, 238, 0.72);
}

.mm-prayer-scroller {
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 16px), transparent);
}

.mm-prayer-scroller::-webkit-scrollbar {
	display: none;
}

.mm-prayer-times {
	display: flex;
	gap: 0.4rem;
	list-style: none;
	width: max-content;
}

.mm-prayer-times li {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 4.6rem;
	min-height: 48px;
	padding: 0.3rem 0.7rem;
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.04);
	scroll-snap-align: start;
}

.mm-prayer-times li.is-current {
	box-shadow: inset 0 0 0 1px rgba(252, 211, 77, 0.45);
}

.mm-prayer-times li.is-next {
	background: var(--mm-gold-600);
	color: #022c22;
}

.mm-prayer-name {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.mm-prayer-times time,
.mm-next time {
	font-variant-numeric: tabular-nums;
	font-weight: 650;
}

.mm-next {
	display: flex;
	flex-direction: column;
	min-width: 6.5rem;
	line-height: 1.15;
}

.mm-next strong {
	font-family: var(--mm-font-display);
	font-size: 1rem;
}

.mm-city {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.mm-city-label {
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(248, 245, 238, 0.72);
}

.mm-select,
.mm-input,
.mm-comment-form input[type="text"],
.mm-comment-form input[type="email"],
.mm-comment-form input[type="url"],
.mm-comment-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border-radius: 0.9rem;
	border: 1px solid var(--mm-line);
	background: var(--mm-surface-2);
	color: var(--mm-ink);
}

.mm-prayerbar .mm-select,
.mm-prayerbar .mm-select option {
	min-width: 12rem;
	background-color: #ffffff;
	color: #0f172a;
	color-scheme: light;
	border-color: rgba(15, 23, 42, 0.18);
}

.mm-prayerbar .mm-select:hover,
.mm-prayerbar .mm-select:focus {
	border-color: #d97706;
	outline: 2px solid #d97706;
	outline-offset: 2px;
}

html[data-theme="dark"] .mm-prayerbar .mm-select,
html[data-theme="dark"] .mm-prayerbar .mm-select option {
	background-color: #1e293b;
	color: #f8fafc;
	color-scheme: dark;
	border-color: rgba(248, 250, 252, 0.18);
}

html[data-theme="dark"] .mm-prayerbar .mm-select:hover,
html[data-theme="dark"] .mm-prayerbar .mm-select:focus {
	border-color: #d97706;
	outline-color: #d97706;
}

.mm-prayer-noscript,
.mm-prayer-status {
	margin: 0;
	padding-bottom: 0.6rem;
	color: rgba(248, 245, 238, 0.8);
	font-size: 0.85rem;
}

.mm-header {
	background: var(--mm-header);
	backdrop-filter: blur(18px) saturate(1.35);
	border-bottom: 1px solid transparent;
}

.mm-top.is-scrolled .mm-header {
	border-bottom-color: var(--mm-line);
	box-shadow: var(--mm-shadow);
}

.mm-header-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 4.75rem;
}

.mm-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
	color: inherit;
	text-decoration: none;
	margin-inline-end: auto;
}

.mm-brand img,
.mm-mark {
	width: 48px;
	height: 48px;
	border-radius: 16px;
	object-fit: cover;
}

.mm-drawer-head .mm-brand {
	margin-inline-end: 0;
	min-width: 0;
}

.mm-brand img.mm-brand-logo {
	width: auto;
	max-width: min(11rem, 42vw);
	height: 56px;
	max-height: 56px;
	object-fit: contain;
	border-radius: 0;
	background: transparent;
}

.mm-mark {
	display: grid;
	place-items: center;
	color: var(--mm-gold-600);
	background: var(--mm-emerald-900);
}

.mm-mark svg,
.mm-card-fallback {
	width: 70%;
	height: 70%;
}

.mm-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.mm-brand-text strong {
	font-family: var(--mm-font-display);
	font-size: 1.05rem;
}

.mm-brand-text small {
	color: var(--mm-muted);
	font-size: 0.75rem;
}

.mm-nav {
	display: none;
}

.mm-menu {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	list-style: none;
}

.mm-menu a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding-inline: 0.8rem;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.mm-menu a:hover,
.mm-menu .current-menu-item > a,
.mm-menu .current-menu-ancestor > a {
	background: color-mix(in srgb, var(--mm-emerald-800) 10%, transparent);
	color: var(--mm-emerald-800);
}

html[data-theme="dark"] .mm-menu a:hover,
html[data-theme="dark"] .mm-menu .current-menu-item > a {
	color: var(--mm-gold-readable);
}

.mm-menu .menu-item-has-children {
	position: relative;
}

.mm-menu .sub-menu {
	display: none;
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% - 0.2rem);
	min-width: 14rem;
	padding: 0.4rem;
	list-style: none;
	background: var(--mm-surface-2);
	border: 1px solid var(--mm-line);
	border-radius: 1rem;
	box-shadow: var(--mm-shadow);
}

.mm-menu .menu-item-has-children:hover > .sub-menu,
.mm-menu .menu-item-has-children:focus-within > .sub-menu {
	display: grid;
}

.mm-tools,
.mm-tools-desktop {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.mm-langdrop {
	position: relative;
}

.mm-langdrop-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 48px;
	height: 48px;
	padding-inline: 0.75rem;
	border: 1px solid var(--mm-line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--mm-surface-2) 82%, transparent);
	color: var(--mm-ink);
}

.mm-langdrop-code {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.mm-langdrop-menu {
	position: absolute;
	z-index: 40;
	inset-inline-end: 0;
	top: calc(100% + 0.4rem);
	display: none;
	min-width: 11.5rem;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: #ffffff;
	color: #0f172a;
	border: 1px solid var(--mm-line);
	border-radius: 1rem;
	box-shadow: var(--mm-shadow);
}

.mm-langdrop.is-open > .mm-langdrop-menu,
.mm-langdrop:focus-within > .mm-langdrop-menu {
	display: grid;
}

@media (hover: hover) and (pointer: fine) {
	.mm-langdrop:hover > .mm-langdrop-menu {
		display: grid;
	}
}

.mm-langdrop-menu .mm-lang {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 44px;
	padding: 0.35rem 0.75rem;
	border-radius: 0.75rem;
	color: #0f172a;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 700;
}

.mm-langdrop-menu .mm-lang.is-active,
.mm-langdrop-menu .mm-lang:hover {
	background: color-mix(in srgb, var(--mm-emerald-800) 12%, #ffffff);
	color: #022c22;
}

html[data-theme="dark"] .mm-langdrop-menu {
	background: #1e293b;
	color: #f8fafc;
}

html[data-theme="dark"] .mm-langdrop-menu .mm-lang,
html[data-theme="dark"] .mm-langdrop-toggle {
	color: #f8fafc;
}

html[data-theme="dark"] .mm-langdrop-menu .mm-lang.is-active,
html[data-theme="dark"] .mm-langdrop-menu .mm-lang:hover {
	background: color-mix(in srgb, #f8fafc 12%, #1e293b);
	color: #ffffff;
}

.mm-drawer .mm-langdrop-menu {
	position: static;
	width: 100%;
	margin-top: 0.45rem;
}

.mm-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--mm-line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--mm-surface-2) 82%, transparent);
	color: var(--mm-ink);
}

.mm-icon {
	width: 1.25rem;
	height: 1.25rem;
}

html[data-theme="light"] .mm-icon-sun,
html[data-theme="dark"] .mm-icon-moon {
	display: none;
}

.mm-burger {
	display: inline-flex;
}

/* Drawer & modals ------------------------------------------------------- */

.mm-drawer[hidden],
.mm-modal[hidden] {
	display: none !important;
}

.mm-drawer,
.mm-modal {
	position: fixed;
	inset: 0;
	z-index: 500;
}

.mm-drawer-backdrop,
.mm-modal-backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--mm-emerald-900) 55%, transparent);
}

.mm-drawer-panel,
.mm-modal-card {
	position: relative;
	background: var(--mm-surface);
	color: var(--mm-ink);
	box-shadow: var(--mm-shadow);
}

.mm-drawer-panel {
	margin-inline-start: auto;
	width: min(100%, 26rem);
	height: 100%;
	padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
	overflow: auto;
}

.mm-drawer-head,
.mm-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.mm-menu-stack {
	flex-direction: column;
	align-items: stretch;
}

.mm-menu-stack .sub-menu {
	position: static;
	display: grid;
	min-width: 0;
	box-shadow: none;
	margin-inline-start: 0.6rem;
}

.mm-drawer-langs {
	margin-top: 1.5rem;
}

.mm-modal {
	display: grid;
	place-items: center;
	padding: 1rem;
}

.mm-modal-card {
	width: min(100%, 40rem);
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: var(--mm-radius);
	border: 1px solid var(--mm-line);
}

body.mm-lock {
	overflow: hidden;
}

.mm-livesearch,
.mm-searchform {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.mm-livesearch .mm-input,
.mm-searchform .mm-input {
	flex: 1 1 14rem;
}

.mm-live-results {
	display: grid;
	gap: 0.45rem;
	margin-top: 1rem;
}

.mm-live-item {
	display: grid;
	gap: 0.15rem;
	padding: 0.8rem 0.9rem;
	border-radius: 0.9rem;
	text-decoration: none;
	color: inherit;
	background: var(--mm-surface-2);
	border: 1px solid var(--mm-line);
}

.mm-live-item small {
	color: var(--mm-muted);
}

.mm-compass {
	position: relative;
	width: min(100%, 16rem);
	aspect-ratio: 1;
	margin: 0.5rem auto 1rem;
	border-radius: 50%;
	border: 1px solid var(--mm-line);
	background:
		radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(217, 119, 6, 0.25) 59% 60%, transparent 61%),
		var(--mm-surface-2);
	display: grid;
	place-items: center;
}

.mm-compass::before {
	content: "";
	position: absolute;
	top: 0.45rem;
	left: 50%;
	transform: translateX(-50%);
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 10px solid var(--mm-gold-600);
}

.mm-compass-rose {
	position: relative;
	width: 78%;
	height: 78%;
	border-radius: 50%;
	transform: rotate(var(--mm-heading, 0deg));
}

.mm-compass-n {
	position: absolute;
	top: 0.2rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.75rem;
	font-weight: 700;
}

.mm-qibla-mark {
	position: absolute;
	left: calc(50% - 1.5px);
	bottom: 50%;
	width: 3px;
	height: 42%;
	border-radius: 999px;
	background: var(--mm-gold-600);
	transform-origin: center bottom;
	transform: rotate(var(--mm-qibla, 0deg));
}

.mm-qibla-readout {
	text-align: center;
	font-weight: 650;
}

.mm-muted {
	color: var(--mm-muted);
	text-align: center;
}

/* Hero & sections ------------------------------------------------------- */

.mm-main {
	padding-bottom: 2rem;
}

.mm-hero-shell {
	padding: clamp(1rem, 2vw, 2rem) 0 0;
}

.mm-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
	gap: clamp(1.25rem, 3vw, 3rem);
	align-items: center;
	overflow: hidden;
	padding: clamp(1.5rem, 3vw, 3.5rem);
	border-radius: clamp(1.25rem, 2vw, 2rem);
	color: #f8f5ee;
	background:
		radial-gradient(900px 420px at 0% 0%, rgba(217, 119, 6, 0.22), transparent 55%),
		linear-gradient(160deg, #022c22 0%, var(--mm-emerald-800) 70%, #0d9488 160%);
	border: 1px solid rgba(252, 211, 77, 0.32);
	box-shadow: var(--mm-shadow);
}

.mm-hero.is-solo {
	grid-template-columns: 1fr;
}

html[data-theme="dark"] .mm-hero {
	background:
		radial-gradient(900px 420px at 0% 0%, rgba(217, 119, 6, 0.18), transparent 50%),
		linear-gradient(165deg, #0c2e24, #064e3b 80%);
}

.mm-hero.has-photo {
	background-color: #022c22;
	background-image:
		linear-gradient(165deg, rgba(2, 44, 34, 0.9), rgba(6, 78, 59, 0.78)),
		var(--mm-banner-image);
	background-size: cover;
	background-position: center;
}

.mm-hero :is(h1, h2, h3),
.mm-footer :is(h2, h3),
.mm-prayerbar :is(h1, h2, h3) {
	color: #f8fafc;
}

.mm-hero-pattern {
	position: absolute;
	inset-inline-end: -2rem;
	bottom: -3rem;
	width: min(42vw, 28rem);
	color: rgba(252, 211, 77, 0.18);
	pointer-events: none;
}

.mm-hero-pattern svg {
	width: 100%;
	height: auto;
}

.mm-hero-copy,
.mm-mihrab {
	position: relative;
	z-index: 1;
}

.mm-bismillah {
	font-family: "Amiri", "Noto Naskh Arabic", "Scheherazade New", "Traditional Arabic", serif;
	font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem);
	line-height: 1.8;
	direction: rtl;
	unicode-bidi: isolate;
	color: var(--mm-gold-300);
}

.mm-hero .mm-kicker {
	color: rgba(248, 245, 238, 0.72);
}

.mm-kicker-gold,
.mm-hero .mm-kicker-gold {
	color: var(--mm-gold-300);
}

.mm-display {
	font-family: var(--mm-font-display);
	font-size: clamp(2.4rem, 1.2rem + 3.5vw, 5.1rem);
	font-weight: 650;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin-block: 0.35rem 0.8rem;
}

.mm-display-page {
	font-size: clamp(2.1rem, 1.2rem + 2.4vw, 4rem);
	color: var(--mm-ink);
}

.mm-lead,
.mm-section-lead {
	max-width: 42rem;
	color: var(--mm-muted);
	font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
}

.mm-hero .mm-lead {
	color: rgba(248, 245, 238, 0.86);
}

.mm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.4rem;
}

.mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 48px;
	padding-inline: 1.15rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.1;
}

.mm-btn-gold {
	background: var(--mm-gold-600);
	color: #022c22;
}

.mm-btn-gold:hover {
	background: var(--mm-gold-300);
	color: #022c22;
}

.mm-btn-emerald {
	background: var(--mm-emerald-800);
	color: #fff;
}

.mm-btn-emerald:hover {
	background: var(--mm-emerald-900);
	color: #fff;
}

.mm-btn-line,
.mm-btn-on-dark {
	background: transparent;
	border-color: var(--mm-line);
	color: var(--mm-ink);
}

.mm-btn-on-dark {
	border-color: rgba(248, 245, 238, 0.4);
	color: #f8f5ee;
}

.mm-btn-on-dark:hover,
.mm-btn-line:hover {
	border-color: var(--mm-gold-600);
	color: var(--mm-gold-700);
}

.mm-mihrab {
	display: grid;
	gap: 0.35rem;
	justify-items: start;
	padding: clamp(1.2rem, 2vw, 1.8rem);
	border-radius: 8rem 8rem 1.4rem 1.4rem;
	background: color-mix(in srgb, #022c22 55%, transparent);
	border: 1px solid rgba(252, 211, 77, 0.35);
	box-shadow: inset 0 0 0 6px rgba(252, 211, 77, 0.06);
}

.mm-mihrab-prayer {
	font-family: var(--mm-font-display);
	font-size: clamp(2rem, 1.4rem + 1.5vw, 3rem);
	line-height: 1;
}

.mm-mihrab-count {
	font-variant-numeric: tabular-nums;
	font-size: 1.35rem;
	color: var(--mm-gold-300);
}

.mm-mihrab-hijri {
	color: rgba(248, 245, 238, 0.78);
	margin-bottom: 0.6rem;
}

.mm-section {
	padding-block: clamp(2.5rem, 4vw, 5rem);
}

.mm-section-tint {
	background: color-mix(in srgb, var(--mm-emerald-800) 6%, var(--mm-surface));
}

.mm-section-head,
.mm-archive-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(1.2rem, 2vw, 2rem);
}

.mm-index {
	font-family: var(--mm-font-arabic);
	font-size: clamp(2rem, 1rem + 2vw, 3.5rem);
	color: var(--mm-gold-600);
	line-height: 1;
}

.mm-section-title {
	font-family: var(--mm-font-display);
	font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.7rem);
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.mm-anchors,
.mm-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: var(--mm-gap);
}

.mm-anchor,
.mm-card,
.mm-article-aside,
.mm-empty,
.mm-comment-body {
	background: var(--mm-surface-2);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.mm-anchor {
	padding: 1.25rem 1.3rem 1.4rem;
}

.mm-anchor h3,
.mm-card-title {
	font-family: var(--mm-font-display);
	font-size: clamp(1.2rem, 1rem + 0.5vw, 1.55rem);
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin-block: 0.35rem 0.5rem;
}

.mm-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.mm-card:hover {
		transform: translateY(-4px);
		border-color: color-mix(in srgb, var(--mm-gold-600) 55%, var(--mm-line));
	}
}

.mm-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	background:
		linear-gradient(160deg, var(--mm-emerald-900), var(--mm-emerald-800));
	color: rgba(252, 211, 77, 0.8);
}

.mm-card-media.is-empty {
	display: grid;
	place-items: center;
}

.mm-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mm-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.1rem 1.15rem;
	flex: 1;
}

.mm-card-meta,
.mm-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.7rem;
	color: var(--mm-muted);
	font-size: 0.85rem;
}

.mm-card-title a,
.mm-textlink {
	color: inherit;
	text-decoration: none;
}

.mm-card-excerpt {
	color: var(--mm-muted);
}

.mm-textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 48px;
	margin-top: auto;
	font-weight: 700;
	color: var(--mm-emerald-800);
}

html[data-theme="dark"] .mm-textlink {
	color: var(--mm-gold-readable);
}

.mm-pill {
	display: inline-flex;
	align-items: center;
	min-height: 1.6rem;
	padding-inline: 0.55rem;
	border-radius: 999px;
	background: var(--mm-gold-600);
	color: #022c22;
	font-size: 0.72rem;
	font-weight: 800;
}

.mm-bento {
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.mm-bento .mm-card:first-child {
	grid-column: span 7;
}

.mm-bento .mm-card:not(:first-child) {
	grid-column: span 5;
}

.mm-band {
	padding-block: clamp(2rem, 4vw, 4rem);
}

.mm-band-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: clamp(1.4rem, 3vw, 2.5rem);
	border-radius: var(--mm-radius);
	color: #f8f5ee;
	background: var(--mm-emerald-900);
	border: 1px solid rgba(252, 211, 77, 0.28);
}

.mm-band .mm-kicker,
.mm-band .mm-section-title {
	color: #f8f5ee;
}

.mm-filters {
	display: flex;
	gap: 0.45rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding-bottom: 1rem;
	margin-bottom: 0.4rem;
}

.mm-chip {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding-inline: 0.95rem;
	border-radius: 999px;
	border: 1px solid var(--mm-line);
	background: var(--mm-surface-2);
	color: inherit;
	text-decoration: none;
	font-weight: 650;
	white-space: nowrap;
}

.mm-chip.is-active {
	background: var(--mm-emerald-800);
	border-color: var(--mm-emerald-800);
	color: #fff;
}

.mm-empty {
	padding: 1.5rem;
}

.mm-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

html.mm-js .mm-pagination {
	display: none;
}

.mm-pagination {
	margin-top: 1.5rem;
}

.mm-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.mm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding-inline: 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--mm-line);
	text-decoration: none;
	color: inherit;
}

.mm-pagination .page-numbers.current {
	background: var(--mm-emerald-800);
	color: #fff;
	border-color: transparent;
}

/* Reading --------------------------------------------------------------- */

.mm-page-hero,
.mm-article-hero {
	padding-block: clamp(2rem, 4vw, 4rem) 1rem;
}

.mm-prose {
	width: min(100%, var(--mm-measure));
	padding-bottom: 2rem;
}

.mm-prose > * + * {
	margin-top: 1rem;
}

.mm-prose h2,
.mm-prose h3 {
	font-family: var(--mm-font-display);
	letter-spacing: -0.03em;
	line-height: 1.2;
	margin-top: 2rem;
}

.mm-prose h2 {
	font-size: clamp(1.6rem, 1.2rem + 1vw, 2.25rem);
}

.mm-prose ul,
.mm-prose ol {
	padding-inline-start: 1.2rem;
}

.mm-prose blockquote {
	margin-inline: 0;
	padding-inline-start: 1rem;
	border-inline-start: 3px solid var(--mm-gold-600);
	color: var(--mm-muted);
}

.mm-prose img,
.mm-cover {
	border-radius: calc(var(--mm-radius) - 0.25rem);
}

.mm-prose .alignwide {
	width: min(72rem, 100%);
	max-width: 100%;
}

.mm-prose .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.mm-figure {
	margin-bottom: 1.5rem;
}

.mm-cover {
	width: 100%;
	max-height: min(70vh, 46rem);
	object-fit: cover;
}

.mm-progress {
	position: fixed;
	inset-inline: 0;
	top: 0;
	height: 3px;
	z-index: 400;
	background: transparent;
	pointer-events: none;
}

body.admin-bar .mm-progress {
	top: 32px;
}

.mm-progress > span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--mm-gold-600), var(--mm-teal));
}

.mm-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
	gap: clamp(1.25rem, 3vw, 3rem);
	align-items: start;
}

.mm-article-aside {
	position: sticky;
	top: calc(var(--mm-header-offset) + 1rem);
	display: grid;
	gap: 1rem;
	padding: 1rem;
}

.mm-meta-list {
	display: grid;
	gap: 0.8rem;
}

.mm-meta-list dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mm-gold-700);
}

.mm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.mm-tags a {
	text-decoration: none;
}

.mm-pager {
	padding-block: 1rem 2rem;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0.8rem;
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-height: 48px;
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	border: 1px solid var(--mm-line);
	background: var(--mm-surface-2);
	text-decoration: none;
	color: inherit;
}

.mm-navdir {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mm-gold-700);
}

/* Comments -------------------------------------------------------------- */

.mm-comments {
	padding-bottom: clamp(2rem, 4vw, 4rem);
}

.mm-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.8rem;
	height: 1.8rem;
	margin-inline-start: 0.4rem;
	border-radius: 999px;
	background: var(--mm-emerald-800);
	color: #fff;
	font-size: 0.85rem;
}

.mm-comment-list {
	list-style: none;
	display: grid;
	gap: 0.8rem;
}

.mm-comment-body {
	padding: 1rem;
}

.mm-comment .children {
	list-style: none;
	margin-inline-start: clamp(0.6rem, 2vw, 1.5rem);
	margin-top: 0.8rem;
}

.mm-comment-meta {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 0.6rem;
}

.mm-avatar {
	border-radius: 50%;
}

.mm-comment-date {
	color: var(--mm-muted);
	font-size: 0.85rem;
}

.mm-comment-form {
	display: grid;
	gap: 0.8rem;
	margin-top: 1rem;
}

.mm-comment-form p {
	margin: 0;
}

.mm-note {
	padding: 0.8rem 1rem;
	border-radius: 0.9rem;
	background: color-mix(in srgb, var(--mm-gold-600) 14%, var(--mm-surface-2));
}

.mm-lost {
	display: grid;
	justify-items: start;
	gap: 0.8rem;
}

.mm-lost-mark {
	width: 7rem;
	color: var(--mm-gold-600);
}

.mm-lost-mark svg {
	width: 100%;
	height: auto;
}

/* Footer & tab bar ------------------------------------------------------ */

.mm-footer {
	position: relative;
	overflow: hidden;
	margin-top: 1rem;
	padding: clamp(2.5rem, 5vw, 4.5rem) 0 calc(2rem + var(--mm-tabbar));
	background: var(--mm-emerald-900);
	color: #f8f5ee;
}

.mm-footer a {
	color: #f8f5ee;
	text-decoration: none;
}

.mm-footer a:hover {
	color: var(--mm-gold-300);
}

.mm-footer-pattern {
	position: absolute;
	inset-inline-end: -4rem;
	top: -3rem;
	width: min(40vw, 26rem);
	color: rgba(252, 211, 77, 0.16);
	pointer-events: none;
}

.mm-footer-svg {
	width: 100%;
	height: auto;
}

.mm-footer-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: clamp(1.2rem, 2vw, 2.5rem);
}

.mm-footer-kicker {
	color: var(--mm-gold-300);
	font-weight: 700;
}

.mm-footer h2,
.mm-widget-title {
	font-family: var(--mm-font-display);
	font-size: 1rem;
	margin-bottom: 0.7rem;
}

.mm-footer-links,
.mm-socials {
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.mm-socials a,
.mm-footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 48px;
}

.mm-footer-widgets {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.mm-colophon {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.4rem 1rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(252, 211, 77, 0.22);
	color: rgba(248, 245, 238, 0.72);
	font-size: 0.9rem;
}

.mm-tabbar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 250;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	padding: 0.2rem 0.3rem calc(0.2rem + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--mm-surface) 88%, transparent);
	backdrop-filter: blur(16px);
	border-top: 1px solid var(--mm-line);
}

.mm-tab {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.1rem;
	min-height: 52px;
	border: 0;
	background: transparent;
	color: var(--mm-muted);
	text-decoration: none;
	font-size: 0.68rem;
	font-weight: 700;
}

.mm-tab.is-active,
.mm-tab:hover {
	color: var(--mm-emerald-800);
}

html[data-theme="dark"] .mm-tab {
	color: #e2e8f0;
}

html[data-theme="dark"] .mm-tab.is-active,
html[data-theme="dark"] .mm-tab:hover {
	color: #fcd34d;
}

html[data-theme="dark"] .mm-icon-btn,
html[data-theme="dark"] .mm-langdrop-toggle,
html[data-theme="dark"] .mm-brand,
html[data-theme="dark"] .mm-menu a {
	color: #f8fafc;
}

html[data-theme="dark"] .mm-index,
html[data-theme="dark"] .mm-kicker {
	color: #fcd34d;
}

html[data-theme="dark"] .mm-card,
html[data-theme="dark"] .mm-anchor,
html[data-theme="dark"] .mm-article-aside,
html[data-theme="dark"] .mm-empty,
html[data-theme="dark"] .mm-comment-body,
html[data-theme="dark"] .mm-officer {
	background: #1e293b;
	color: #e2e8f0;
}

.mm-edit a {
	font-weight: 700;
}

/* Breakpoints ----------------------------------------------------------- */

@media (max-width: 1100px) {
	.mm-prayerbar-inner {
		grid-template-columns: 1fr auto;
	}

	.mm-prayer-scroller {
		grid-column: 1 / -1;
		order: 3;
	}

	.mm-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.mm-drawer-tools {
	display: grid;
	gap: 0.65rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--mm-line);
}

.mm-drawer-action {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	min-height: 48px;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--mm-line);
	border-radius: 999px;
	background: var(--mm-surface-2);
	color: var(--mm-ink);
	font-weight: 700;
	text-align: start;
}

.mm-drawer-action .mm-icon-sun,
.mm-drawer-action .mm-icon-moon {
	display: none;
}

html[data-theme="light"] .mm-drawer-action .mm-icon-moon,
html[data-theme="dark"] .mm-drawer-action .mm-icon-sun {
	display: block;
}

@media (max-width: 1023px) {
	.mm-nav,
	.mm-tools-desktop {
		display: none;
	}

	.mm-drawer .mm-langdrop-menu {
		position: static;
	}

	body {
		padding-bottom: calc(var(--mm-tabbar) + env(safe-area-inset-bottom));
	}
}

@media (min-width: 1024px) {
	.mm-nav {
		display: block;
	}

	.mm-burger,
	.mm-tabbar {
		display: none;
	}

	.mm-footer {
		padding-bottom: 2rem;
	}

	body {
		padding-bottom: 0;
	}
}

@media (max-width: 800px) {
	.mm-hero,
	.mm-article-layout,
	.mm-bento,
	.mm-bento .mm-card,
	.mm-bento .mm-card:first-child {
		grid-template-columns: 1fr;
		grid-column: auto;
	}

	.mm-bento .mm-card,
	.mm-bento .mm-card:first-child {
		grid-column: auto;
	}

	.mm-article-aside {
		position: static;
	}

	.mm-brand-text small {
		display: none;
	}

	.mm-footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.mm-prayerbar-inner {
		grid-template-columns: 1fr;
	}

	.mm-prayerbar .mm-select {
		width: 100%;
	}

}

.mm-consent {
	position: fixed;
	z-index: 260;
	inset-inline: max(1rem, calc((100% - var(--mm-wide)) / 2));
	bottom: calc(var(--mm-tabbar) + 0.75rem + env(safe-area-inset-bottom));
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem 1.25rem;
	padding: 0.95rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 1.35rem;
	background: color-mix(in srgb, var(--mm-surface) 78%, transparent);
	color: var(--mm-ink);
	backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: 0 18px 50px rgba(6, 78, 59, 0.16);
}

html[data-consent="accepted"] .mm-consent {
	display: none;
}

.mm-consent-text {
	flex: 1 1 16rem;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

.mm-consent-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

@media (min-width: 1024px) {
	.mm-consent {
		bottom: calc(1rem + env(safe-area-inset-bottom));
	}
}

@media (min-width: 1600px) {
	:root {
		--mm-wide: min(1360px, calc(100% - 8vw));
	}
}

@media (min-width: 2560px) {
	:root {
		--mm-wide: 1680px;
	}

	body {
		font-size: 1.125rem;
	}
}

@media (min-width: 3200px) {
	:root {
		--mm-wide: 1920px;
	}

	body {
		font-size: 1.25rem;
	}

	.mm-display {
		font-size: 5.4rem;
	}
}

@media (horizontal-viewport-segments: 2), (spanning: single-fold-vertical) {
	.mm-hero,
	.mm-article-layout,
	.mm-footer-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: max(1.5rem, env(viewport-segment-left 1 0, 0px));
	}
}

@media (vertical-viewport-segments: 2), (spanning: single-fold-horizontal) {
	.mm-hero-shell {
		padding-bottom: env(viewport-segment-top 0 1, 0px);
	}
}

@media (min-width: 1600px) and (hover: none) and (pointer: coarse) {
	:root {
		font-size: 22px;
	}

	.mm-tabbar {
		display: none;
	}

	:focus-visible {
		outline-width: 4px;
	}
}

@media print {
	.mm-top,
	.mm-tabbar,
	.mm-progress,
	.mm-drawer,
	.mm-modal,
	.mm-footer-pattern,
	.mm-share,
	.mm-more,
	.mm-pagination {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		padding: 0;
	}

	.mm-hero,
	.mm-footer,
	.mm-band-inner {
		background: #fff;
		color: #000;
		box-shadow: none;
	}
}

.mm-prayer-toggle {
	color: #f8f5ee;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(252, 211, 77, 0.28);
}

.mm-prayer-restore {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	min-height: 48px;
	padding: 0.4rem 1rem;
	border: 0;
	background: transparent;
	color: #f8f5ee;
	cursor: pointer;
	font: inherit;
}

html[data-prayer="hidden"] .mm-prayerbar-inner,
html[data-prayer="hidden"] .mm-prayer-noscript {
	display: none;
}

html[data-prayer="hidden"] .mm-prayer-restore {
	display: inline-flex;
}

.mm-card-person .mm-card-media {
	aspect-ratio: 3 / 4;
}

.mm-profile-main {
	display: grid;
	gap: 1.25rem;
	align-content: start;
}

.mm-profile-photo {
	margin: 0;
	max-width: 22rem;
}

.mm-profile-photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 1.5rem;
}

.mm-officers,
.mm-gallery {
	display: grid;
	gap: 1rem;
}

.mm-officers {
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.mm-officer {
	padding: 1.1rem 1rem 1.25rem;
	text-align: center;
	background: var(--mm-surface);
	border: 1px solid var(--mm-line);
	border-radius: 1.4rem;
}

.mm-officer img {
	width: 6.5rem;
	height: 6.5rem;
	object-fit: cover;
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

.mm-officer h3,
.mm-officer p {
	margin: 0.2rem 0;
}

.mm-gallery {
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.mm-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 1rem;
}

.mm-map {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	margin-top: 0.8rem;
	border: 0;
	border-radius: 1rem;
	background: var(--mm-sand);
}

.mm-mosque .mm-meta-list dd {
	white-space: pre-line;
}
