/* ==========================================================================
   Masjid Bukit Sentosa 3 — design system
   Loaded after Salient's stylesheets (functions.php, priority 100).

   Specificity note
   ----------------
   Component selectors start with ":is(body,#mbs)". It matches <body> on every
   page but counts as an ID, so Salient's class-based content rules (paragraph
   padding, heading sizes, image margins) never override the components,
   without resorting to !important. Header and footer rules use Salient's own
   IDs (#header-outer, #footer-outer) for the same reason.

   Contents
   1  Tokens and fonts        8  Facilities, sustainability
   2  Site-wide base          9  Status timeline
   3  Salient header & menu   10 Galleries and lightbox
   4  Section layout          11 Documents
   5  Type and buttons        12 Hadith
   6  Hero, page header       13 Bank and contacts
   7  Progress, facts         14 Text, CTA, footer, mobile bar
   ========================================================================== */

/* 1. Tokens and fonts ---------------------------------------------------- */

@font-face {
	font-family: "Marcellus";
	src: url("../fonts/marcellus-latin.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Public Sans";
	src: url("../fonts/public-sans-latin-var.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Amiri";
	src: url("../fonts/amiri-arabic.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
	--mbs-emerald: #0B5D45;
	--mbs-forest: #123D2D;
	--mbs-gold: #D4A63B;
	--mbs-gold-soft: #E5C77B;
	--mbs-cream: #FAF7F0;
	--mbs-white: #FFFFFF;
	--mbs-charcoal: #202820;

	--mbs-muted: #4D5A52;
	--mbs-gold-ink: #6B4E0E;
	--mbs-line: rgba(18, 61, 45, 0.14);
	--mbs-line-strong: rgba(18, 61, 45, 0.26);
	--mbs-on-dark: #F3EFE4;
	--mbs-on-dark-muted: rgba(243, 239, 228, 0.78);
	--mbs-line-dark: rgba(229, 199, 123, 0.3);

	--mbs-font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--mbs-font-body: "Public Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mbs-font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", "Noto Naskh Arabic", serif;

	--mbs-radius: 6px;
	--mbs-container: 1180px;
	--mbs-gutter: clamp(20px, 4vw, 40px);
	--mbs-space: clamp(64px, 9vw, 120px);
	--mbs-header-offset: 110px;
}

/* 2. Site-wide base ------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

:is(body,#mbs).mbs-site {
	font-family: var(--mbs-font-body);
	color: var(--mbs-charcoal);
	-webkit-font-smoothing: antialiased;
}

/* :where() keeps these at the same weight as component rules, which come
   later in the file and therefore win where a component sets its own font. */
:is(body,#mbs).mbs-site :where(p, li, dd, dt, td, th, label, input, select, textarea, button, blockquote, figcaption) {
	font-family: var(--mbs-font-body);
}

:is(body,#mbs).mbs-site :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--mbs-font-display);
	font-weight: 400;
	letter-spacing: 0;
}

/* Focus ring colour follows the background through a custom property, so
   dark areas switch to gold without fighting selector weight. */
:is(body,#mbs).mbs-site :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--mbs-focus, var(--mbs-emerald));
	outline-offset: 3px;
	border-radius: 2px;
}

:is(body,#mbs) :is(.mbs-bg-forest, .mbs-bg-emerald, .mbs-footer, .mbs-sticky, .mbs-lightbox, #slide-out-widget-area) {
	--mbs-focus: var(--mbs-gold-soft);
}

/* Sections run edge to edge on pages built with MBS elements. */
:is(body,#mbs).mbs-layout #ajax-content-wrap {
	overflow-x: clip;
}

:is(body,#mbs).mbs-layout .container-wrap {
	padding-top: 0;
	padding-bottom: 0;
}

:is(body,#mbs).mbs-layout .page-header-no-bg {
	display: none;
}

:is(body,#mbs).mbs-layout .main-content > .row {
	margin-bottom: 0;
	padding-bottom: 0;
}

:is(body,#mbs) .wpb_row:has(.mbs-section) {
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}

:is(body,#mbs) :is(.wpb_column, .vc_column-inner, .wpb_wrapper):has(.mbs-section) {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/* The column holding a section must span the row, or the section would be
   centred on a narrower box. */
:is(body,#mbs) :is(.wpb_column, .vc_column_container):has(> .vc_column-inner .mbs-section) {
	float: none;
	width: 100%;
}

:is(body,#mbs) .wpb_wrapper > .mbs-section {
	margin-top: 0;
	margin-bottom: 0;
}

:is(body,#mbs) .mbs-editor-notice {
	margin: 16px 0;
	padding: 14px 18px;
	border: 1px dashed var(--mbs-gold);
	border-radius: var(--mbs-radius);
	background: rgba(212, 166, 59, 0.1);
	color: var(--mbs-charcoal);
	font-size: 0.9rem;
}

:is(body,#mbs) .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 3. Salient header and menus ------------------------------------------- */

body.mbs-site #header-outer {
	box-shadow: 0 1px 0 var(--mbs-line);
}

body.mbs-site #header-outer #top nav > ul > li > a,
body.mbs-site #header-outer #top nav .sf-menu li a {
	font-family: var(--mbs-font-body);
	font-weight: 600;
	letter-spacing: 0.01em;
}

body.mbs-site #header-outer #top nav > ul > li.mbs-menu-cta > a .menu-title-text {
	display: inline-block;
	padding: 10px 18px;
	border-radius: var(--mbs-radius);
	background: var(--mbs-gold);
	color: var(--mbs-forest);
	line-height: 1.2;
	transition: background-color 0.2s ease;
}

body.mbs-site #header-outer #top nav > ul > li.mbs-menu-cta > a:hover .menu-title-text,
body.mbs-site #header-outer #top nav > ul > li.mbs-menu-cta > a:focus-visible .menu-title-text {
	background: var(--mbs-gold-soft);
	color: var(--mbs-forest);
}

body.mbs-site #header-outer #top nav > ul > li.mbs-menu-cta > a .menu-title-text::after,
body.mbs-site #header-outer #top nav > ul > li.mbs-menu-cta > a::after {
	display: none;
}

body.mbs-site #slide-out-widget-area li.mbs-menu-cta > a {
	color: var(--mbs-gold-soft);
}

/* 4. Section layout ------------------------------------------------------ */

:is(body,#mbs) .mbs-section {
	position: relative;
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-top: var(--mbs-space);
	padding-bottom: var(--mbs-space);
	font-family: var(--mbs-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	scroll-margin-top: var(--mbs-header-offset);
}

:is(body,#mbs) .mbs-section *,
:is(body,#mbs) .mbs-section *::before,
:is(body,#mbs) .mbs-section *::after {
	box-sizing: border-box;
}

/* Reset Salient's content spacing inside components. */
:is(body,#mbs) .mbs-section :where(h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure, blockquote, figcaption) {
	margin: 0;
	padding: 0;
}

:is(body,#mbs) .mbs-section :where(ul[role="list"], ol.mbs-timeline, ol.mbs-steps) {
	list-style: none;
}

:is(body,#mbs) .mbs-section :where(ul[role="list"], ol.mbs-timeline, ol.mbs-steps) > li {
	margin: 0;
	list-style: none;
}

:is(body,#mbs) .mbs-section img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
}

:is(body,#mbs) .mbs-container {
	width: 100%;
	max-width: calc(var(--mbs-container) + 2 * var(--mbs-gutter));
	margin: 0 auto;
	padding-left: var(--mbs-gutter);
	padding-right: var(--mbs-gutter);
}

:is(body,#mbs) .mbs-bg-cream {
	background: var(--mbs-cream);
	color: var(--mbs-charcoal);
}

:is(body,#mbs) .mbs-bg-white {
	background: var(--mbs-white);
	color: var(--mbs-charcoal);
}

:is(body,#mbs) .mbs-bg-forest {
	background: var(--mbs-forest);
	color: var(--mbs-on-dark);
}

:is(body,#mbs) .mbs-bg-emerald {
	background: var(--mbs-emerald);
	color: var(--mbs-white);
}

/* 5. Type and buttons ---------------------------------------------------- */

:is(body,#mbs) .mbs-h2 {
	margin-bottom: 0.5em;
	color: var(--mbs-forest);
	font-family: var(--mbs-font-display);
	font-size: clamp(1.9rem, 1.25rem + 2.3vw, 2.85rem);
	font-weight: 400;
	line-height: 1.12;
	text-wrap: balance;
}

:is(body,#mbs) .mbs-h3 {
	color: var(--mbs-forest);
	font-family: var(--mbs-font-display);
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.25;
}

:is(body,#mbs) :is(.mbs-bg-forest, .mbs-bg-emerald) :is(.mbs-h2, .mbs-h3) {
	color: var(--mbs-white);
}

:is(body,#mbs) .mbs-head {
	max-width: 46rem;
	margin-bottom: clamp(32px, 5vw, 56px);
}

:is(body,#mbs) .mbs-lead {
	max-width: 40rem;
	color: var(--mbs-muted);
	font-size: 1.125rem;
	line-height: 1.6;
}

:is(body,#mbs) :is(.mbs-bg-forest, .mbs-bg-emerald) .mbs-lead {
	color: var(--mbs-on-dark-muted);
}

:is(body,#mbs) .mbs-small {
	margin-top: 16px;
	color: var(--mbs-muted);
	font-size: 0.875rem;
}

:is(body,#mbs) .mbs-prose p {
	max-width: 38rem;
	margin-bottom: 1em;
	font-size: 1.0625rem;
	line-height: 1.7;
}

:is(body,#mbs) .mbs-prose p:last-child {
	margin-bottom: 0;
}

:is(body,#mbs) .mbs-prose :is(ul, ol) {
	max-width: 38rem;
	margin: 0 0 1em 1.25em;
}

:is(body,#mbs) .mbs-prose li {
	margin-bottom: 0.4em;
}

:is(body,#mbs) .mbs-section a:not(.mbs-btn) {
	color: var(--mbs-emerald);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

:is(body,#mbs) .mbs-section a:not(.mbs-btn):hover {
	color: var(--mbs-forest);
	text-decoration-thickness: 2px;
}

:is(body,#mbs) :is(.mbs-bg-forest, .mbs-bg-emerald) a:not(.mbs-btn) {
	color: var(--mbs-gold-soft);
}

:is(body,#mbs) :is(.mbs-bg-forest, .mbs-bg-emerald) a:not(.mbs-btn):hover {
	color: var(--mbs-white);
}

:is(body,#mbs) .mbs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

:is(body,#mbs) .mbs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	margin: 0;
	padding: 0.8em 1.45em;
	border: 1.5px solid transparent;
	border-radius: var(--mbs-radius);
	font-family: var(--mbs-font-body);
	font-size: 0.95rem;
	font-weight: 650;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

:is(body,#mbs) .mbs-btn .mbs-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

:is(body,#mbs) .mbs-btn--gold {
	background: var(--mbs-gold);
	border-color: var(--mbs-gold);
	color: var(--mbs-forest);
}

:is(body,#mbs) .mbs-btn--gold:hover {
	background: var(--mbs-gold-soft);
	border-color: var(--mbs-gold-soft);
	color: var(--mbs-forest);
}

:is(body,#mbs) .mbs-btn--emerald {
	background: var(--mbs-emerald);
	border-color: var(--mbs-emerald);
	color: var(--mbs-white);
}

:is(body,#mbs) .mbs-btn--emerald:hover {
	background: var(--mbs-forest);
	border-color: var(--mbs-forest);
	color: var(--mbs-white);
}

:is(body,#mbs) .mbs-btn--outline {
	background: transparent;
	border-color: var(--mbs-emerald);
	color: var(--mbs-emerald);
}

:is(body,#mbs) .mbs-btn--outline:hover {
	background: var(--mbs-emerald);
	color: var(--mbs-white);
}

:is(body,#mbs) :is(.mbs-bg-forest, .mbs-bg-emerald) .mbs-btn--outline {
	border-color: var(--mbs-gold-soft);
	color: var(--mbs-white);
}

:is(body,#mbs) :is(.mbs-bg-forest, .mbs-bg-emerald) .mbs-btn--outline:hover {
	background: var(--mbs-gold-soft);
	color: var(--mbs-forest);
}

:is(body,#mbs) .mbs-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 14px;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
}

:is(body,#mbs) .mbs-chip::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: currentColor;
}

:is(body,#mbs) .mbs-chip--proposed {
	background: rgba(212, 166, 59, 0.18);
	color: var(--mbs-gold-ink);
}

:is(body,#mbs) .mbs-chip--valid {
	background: rgba(11, 93, 69, 0.1);
	color: var(--mbs-emerald);
}

:is(body,#mbs) .mbs-chip--expired {
	background: #FBEAEA;
	color: #8A1C1C;
}

:is(body,#mbs) .mbs-tag {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 0.3em 0.75em;
	border-radius: 999px;
	background: rgba(18, 61, 45, 0.9);
	color: var(--mbs-white);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
	pointer-events: none;
}

:is(body,#mbs) .mbs-more {
	margin-top: 32px;
}

/* 6. Hero and page header ----------------------------------------------- */

:is(body,#mbs) .mbs-hero {
	padding-top: clamp(40px, 7vw, 96px);
	padding-bottom: clamp(56px, 8vw, 112px);
	overflow: hidden;
}

:is(body,#mbs) .mbs-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}

:is(body,#mbs) .mbs-hero--text-only .mbs-hero__grid {
	grid-template-columns: minmax(0, 1fr);
}

:is(body,#mbs) .mbs-hero__title {
	max-width: 14ch;
	color: var(--mbs-forest);
	font-family: var(--mbs-font-display);
	font-size: clamp(2.5rem, 1.35rem + 4.3vw, 4.4rem);
	font-weight: 400;
	line-height: 1.06;
	text-wrap: balance;
}

:is(body,#mbs) .mbs-hero__text {
	max-width: 34rem;
	margin-top: 24px;
	color: var(--mbs-muted);
	font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.6;
}

:is(body,#mbs) .mbs-hero .mbs-actions {
	margin-top: 36px;
}

:is(body,#mbs) .mbs-hero__note {
	max-width: 32rem;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--mbs-line);
	color: var(--mbs-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

:is(body,#mbs) .mbs-hero__media {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: 14px 0 0 auto;
}

/* Arch frame: a mihrab outline, drawn once around the image. */
:is(body,#mbs) .mbs-hero__media::before {
	content: "";
	position: absolute;
	inset: -14px -14px 0;
	border: 1px solid var(--mbs-gold);
	border-bottom: 0;
	border-radius: 50% 50% 0 0 / 38% 38% 0 0;
	pointer-events: none;
}

:is(body,#mbs) .mbs-arch {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 50% 50% 0 0 / 40% 40% 0 0;
	background: #E9E3D4;
}

:is(body,#mbs) .mbs-arch img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:is(body,#mbs) .mbs-focus-left .mbs-arch img {
	object-position: 25% 50%;
}

:is(body,#mbs) .mbs-focus-center .mbs-arch img {
	object-position: 50% 50%;
}

:is(body,#mbs) .mbs-focus-right .mbs-arch img {
	object-position: 75% 50%;
}

:is(body,#mbs) .mbs-hero__media .mbs-tag {
	top: auto;
	bottom: 16px;
	left: 16px;
}

:is(body,#mbs) .mbs-placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	padding: 32px;
	background: repeating-linear-gradient(45deg, #EFE9DA 0 12px, #F5F0E4 12px 24px);
	color: var(--mbs-muted);
	font-size: 0.9rem;
	text-align: center;
}

:is(body,#mbs) .mbs-page-header {
	padding-top: clamp(48px, 8vw, 104px);
	padding-bottom: clamp(40px, 5vw, 64px);
	border-bottom: 1px solid var(--mbs-line);
	overflow: hidden;
}

:is(body,#mbs) .mbs-page-header .mbs-container {
	position: relative;
}

:is(body,#mbs) .mbs-page-header .mbs-container::after {
	content: "";
	position: absolute;
	right: var(--mbs-gutter);
	bottom: calc(-1 * clamp(40px, 5vw, 64px));
	width: 180px;
	height: 230px;
	border: 1px solid var(--mbs-gold);
	border-bottom: 0;
	border-radius: 50% 50% 0 0 / 38% 38% 0 0;
	opacity: 0.7;
	pointer-events: none;
}

:is(body,#mbs) .mbs-page-header__title {
	max-width: 18ch;
	margin-bottom: 0.35em;
	color: var(--mbs-forest);
	font-family: var(--mbs-font-display);
	font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
	font-weight: 400;
	line-height: 1.08;
}

:is(body,#mbs) .mbs-page-header .mbs-lead {
	max-width: 36rem;
}

/* 7. Progress and facts -------------------------------------------------- */

:is(body,#mbs) .mbs-progress__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px 48px;
	align-items: end;
}

:is(body,#mbs) .mbs-progress .mbs-h2 {
	margin-bottom: 0;
}

:is(body,#mbs) .mbs-progress__summary {
	max-width: 32rem;
	color: var(--mbs-on-dark-muted);
	font-size: 1.0625rem;
}

:is(body,#mbs) .mbs-progress__summary strong {
	color: var(--mbs-white);
	font-weight: 600;
}

:is(body,#mbs) .mbs-meter {
	margin-top: clamp(40px, 6vw, 64px);
}

:is(body,#mbs) .mbs-meter__now {
	margin-bottom: 18px;
	color: var(--mbs-gold-soft);
	font-family: var(--mbs-font-display);
	font-size: clamp(3.4rem, 2rem + 5vw, 6rem);
	line-height: 1;
	font-variant-numeric: lining-nums;
}

:is(body,#mbs) .mbs-meter__track {
	position: relative;
	height: 16px;
	border-radius: 999px;
	background: rgba(243, 239, 228, 0.14);
}

:is(body,#mbs) .mbs-meter__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--mbs-fill, 0%);
	min-width: 16px;
	border-radius: 999px;
	background: var(--mbs-gold);
	transform-origin: left center;
}

:is(body,#mbs) .mbs-meter.is-waiting .mbs-meter__fill {
	transform: scaleX(0);
}

:is(body,#mbs) .mbs-meter.is-filling .mbs-meter__fill {
	transform: scaleX(1);
	transition: transform 1.6s cubic-bezier(0.22, 0.7, 0.2, 1);
}

:is(body,#mbs) .mbs-meter__mark {
	position: absolute;
	top: -12px;
	bottom: -12px;
	left: var(--mbs-at);
	width: 2px;
	margin-left: -1px;
	background: var(--mbs-gold-soft);
}

:is(body,#mbs) .mbs-meter__milestone {
	max-width: calc(100% - var(--mbs-at));
	margin: 14px 0 0 var(--mbs-at);
	padding-left: 14px;
	border-left: 1px solid var(--mbs-line-dark);
	color: var(--mbs-on-dark-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

:is(body,#mbs) .mbs-meter__milestone strong {
	display: block;
	color: var(--mbs-gold-soft);
	font-family: var(--mbs-font-display);
	font-size: 1.35rem;
	font-weight: 400;
}

:is(body,#mbs) .mbs-meter__milestone span {
	white-space: nowrap;
}

:is(body,#mbs) .mbs-figures {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(40px, 6vw, 64px);
	border-top: 1px solid var(--mbs-line-dark);
}

:is(body,#mbs) .mbs-figures__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 24px 0 0;
}

:is(body,#mbs) .mbs-figures__item + .mbs-figures__item {
	padding-left: 24px;
	border-left: 1px solid var(--mbs-line-dark);
}

:is(body,#mbs) .mbs-figures dt {
	color: var(--mbs-on-dark-muted);
	font-size: 0.9rem;
}

:is(body,#mbs) .mbs-figures dd {
	color: var(--mbs-white);
	font-family: var(--mbs-font-display);
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem);
	line-height: 1.15;
	font-variant-numeric: lining-nums;
}

:is(body,#mbs) .mbs-progress__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 32px;
	align-items: center;
	justify-content: space-between;
	margin-top: clamp(36px, 5vw, 56px);
}

:is(body,#mbs) .mbs-progress__updated {
	max-width: 34rem;
	color: var(--mbs-on-dark-muted);
	font-size: 0.875rem;
}

:is(body,#mbs) .mbs-facts__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(36px, 6vw, 80px);
	align-items: start;
}

:is(body,#mbs) .mbs-facts .mbs-prose {
	color: var(--mbs-charcoal);
}

/* A fact sheet set out like the title block on an architectural drawing. */
:is(body,#mbs) .mbs-sheet {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--mbs-line-strong);
	border-left: 1px solid var(--mbs-line-strong);
}

:is(body,#mbs) .mbs-sheet__cell {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 8px;
	min-height: 150px;
	padding: 22px 20px 20px;
	border-right: 1px solid var(--mbs-line-strong);
	border-bottom: 1px solid var(--mbs-line-strong);
}

:is(body,#mbs) .mbs-sheet dd {
	color: var(--mbs-emerald);
	font-family: var(--mbs-font-display);
	font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.6rem);
	line-height: 1.05;
	font-variant-numeric: lining-nums;
}

:is(body,#mbs) .mbs-sheet dt {
	color: var(--mbs-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

/* 8. Facilities and sustainability -------------------------------------- */

:is(body,#mbs) .mbs-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(24px, 4vw, 48px);
}

:is(body,#mbs) .mbs-features__item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding: 26px 0 30px;
	border-top: 1px solid var(--mbs-line-strong);
}

:is(body,#mbs) .mbs-features__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(11, 93, 69, 0.08);
	color: var(--mbs-emerald);
}

:is(body,#mbs) .mbs-features__icon .mbs-icon {
	width: 24px;
	height: 24px;
}

:is(body,#mbs) .mbs-features__item p {
	margin-top: 6px;
	color: var(--mbs-muted);
	font-size: 0.98rem;
	line-height: 1.55;
}

:is(body,#mbs) .mbs-facilities .mbs-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

:is(body,#mbs) .mbs-lestari__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(36px, 6vw, 80px);
	align-items: start;
}

:is(body,#mbs) .mbs-lestari .mbs-head {
	margin-bottom: 0;
}

:is(body,#mbs) .mbs-features--lestari {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 9. Status timeline ----------------------------------------------------- */

:is(body,#mbs) .mbs-timeline {
	position: relative;
	max-width: 48rem;
	margin: 0;
	padding: 0;
}

:is(body,#mbs) .mbs-timeline__item {
	position: relative;
	padding: 0 0 36px 44px;
}

:is(body,#mbs) .mbs-timeline__item::before {
	content: "";
	position: absolute;
	top: 26px;
	bottom: -4px;
	left: 10px;
	width: 2px;
	background: var(--mbs-line-strong);
}

:is(body,#mbs) .mbs-timeline__item:last-child {
	padding-bottom: 0;
}

:is(body,#mbs) .mbs-timeline__item:last-child::before {
	display: none;
}

:is(body,#mbs) .mbs-timeline__item::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 22px;
	height: 22px;
	border: 2px solid var(--mbs-line-strong);
	border-radius: 50%;
	background: var(--mbs-white);
}

:is(body,#mbs) .mbs-timeline__item.is-done::before {
	background: var(--mbs-emerald);
}

:is(body,#mbs) .mbs-timeline__item.is-done::after {
	border-color: var(--mbs-emerald);
	background: var(--mbs-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

:is(body,#mbs) .mbs-timeline__item.is-current::after {
	border-color: var(--mbs-gold);
	background: var(--mbs-gold);
	box-shadow: 0 0 0 5px rgba(212, 166, 59, 0.22);
}

:is(body,#mbs) .mbs-timeline__when {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	margin-bottom: 4px;
	color: var(--mbs-emerald);
	font-size: 0.92rem;
	font-weight: 650;
}

:is(body,#mbs) .mbs-timeline__state {
	padding: 0.1em 0.6em;
	border-radius: 999px;
	background: rgba(18, 61, 45, 0.07);
	color: var(--mbs-muted);
	font-size: 0.78rem;
	font-weight: 600;
}

:is(body,#mbs) .is-current .mbs-timeline__state {
	background: rgba(212, 166, 59, 0.2);
	color: var(--mbs-gold-ink);
}

:is(body,#mbs) .mbs-timeline__item p:not(.mbs-timeline__when) {
	max-width: 38rem;
	margin-top: 6px;
	color: var(--mbs-muted);
	font-size: 0.98rem;
}

/* 10. Galleries and lightbox -------------------------------------------- */

:is(body,#mbs) .mbs-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

:is(body,#mbs) .mbs-gallery__grid--feature {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

:is(body,#mbs) .mbs-gallery__grid--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

:is(body,#mbs) .mbs-gallery__grid--feature > .mbs-gallery__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

:is(body,#mbs) .mbs-gallery__link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #E9E3D4;
	cursor: zoom-in;
}

:is(body,#mbs) .mbs-gallery__img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* The large first image fills the height of the two rows beside it. */
:is(body,#mbs) .mbs-gallery__grid--feature > .mbs-gallery__item:first-child figure {
	display: flex;
	flex-direction: column;
	height: 100%;
}

:is(body,#mbs) .mbs-gallery__grid--feature > .mbs-gallery__item:first-child .mbs-gallery__link {
	flex: 1;
	min-height: 240px;
}

:is(body,#mbs) .mbs-section a.mbs-gallery__link {
	text-decoration: none;
}

:is(body,#mbs) .mbs-gallery__grid--feature > .mbs-gallery__item:first-child .mbs-gallery__img {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto;
}

:is(body,#mbs) .mbs-gallery__item figcaption {
	margin-top: 10px;
	color: var(--mbs-muted);
	font-size: 0.875rem;
	line-height: 1.45;
}

:is(body,#mbs) .mbs-gallery--site .mbs-tag {
	background: rgba(255, 255, 255, 0.92);
	color: var(--mbs-forest);
}

html.mbs-lightbox-open {
	overflow: hidden;
}

:is(body,#mbs) .mbs-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 26, 19, 0.95);
	color: var(--mbs-white);
}

:is(body,#mbs) .mbs-lightbox::backdrop {
	background: transparent;
}

:is(body,#mbs) .mbs-lightbox__frame {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 100%;
	padding: 64px 72px 32px;
}

:is(body,#mbs) .mbs-lightbox__img {
	max-width: min(100%, 1400px);
	max-height: calc(100vh - 200px);
	max-height: calc(100dvh - 200px);
	object-fit: contain;
}

:is(body,#mbs) .mbs-lightbox__caption {
	max-width: 48rem;
	margin: 0;
	color: var(--mbs-on-dark);
	font-size: 0.95rem;
	text-align: center;
}

:is(body,#mbs) .mbs-lightbox__counter {
	margin: 0;
	color: var(--mbs-on-dark-muted);
	font-size: 0.8rem;
}

:is(body,#mbs) .mbs-lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(243, 239, 228, 0.35);
	border-radius: 50%;
	background: rgba(18, 61, 45, 0.7);
	color: var(--mbs-white);
	cursor: pointer;
}

:is(body,#mbs) .mbs-lightbox__btn:hover {
	background: var(--mbs-emerald);
}

:is(body,#mbs) .mbs-lightbox__close {
	top: 12px;
	right: 12px;
}

:is(body,#mbs) .mbs-lightbox__prev,
:is(body,#mbs) .mbs-lightbox__next {
	top: 50%;
	margin-top: -24px;
}

:is(body,#mbs) .mbs-lightbox__prev {
	left: 12px;
}

:is(body,#mbs) .mbs-lightbox__next {
	right: 12px;
}

:is(body,#mbs) .mbs-lightbox.is-single :is(.mbs-lightbox__prev, .mbs-lightbox__next, .mbs-lightbox__counter) {
	display: none;
}

/* 11. Documents ---------------------------------------------------------- */

:is(body,#mbs) .mbs-docs {
	border-bottom: 1px solid var(--mbs-line-strong);
}

:is(body,#mbs) .mbs-docs__item {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto;
	gap: 20px 32px;
	align-items: start;
	padding: 32px 0;
	border-top: 1px solid var(--mbs-line-strong);
}

:is(body,#mbs) .mbs-docs__thumb {
	display: grid;
	place-items: center;
	aspect-ratio: 210 / 297;
	overflow: hidden;
	border: 1px solid var(--mbs-line-strong);
	background: var(--mbs-white);
	box-shadow: 0 6px 16px rgba(18, 61, 45, 0.08);
}

:is(body,#mbs) .mbs-docs__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

:is(body,#mbs) .mbs-docs__fallback {
	width: 40px;
	height: 40px;
	color: var(--mbs-emerald);
}

:is(body,#mbs) .mbs-docs__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin-top: 12px;
}

:is(body,#mbs) .mbs-docs__meta dt {
	color: var(--mbs-muted);
	font-size: 0.8rem;
}

:is(body,#mbs) .mbs-docs__meta dd {
	color: var(--mbs-charcoal);
	font-size: 0.95rem;
	font-weight: 600;
}

:is(body,#mbs) .mbs-docs__summary {
	max-width: 40rem;
	margin-top: 14px;
	color: var(--mbs-muted);
	font-size: 0.98rem;
	line-height: 1.6;
}

:is(body,#mbs) .mbs-docs__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 250px;
}

:is(body,#mbs) .mbs-docs__actions .mbs-btn {
	width: 100%;
	white-space: nowrap;
}

/* 12. Hadith ------------------------------------------------------------- */

:is(body,#mbs) .mbs-hadith {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23E5C77B' stroke-opacity='.13' stroke-width='1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M36 0v16.2M36 55.8V72M0 36h16.2M55.8 36H72'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 72px 72px;
	text-align: center;
}

:is(body,#mbs) .mbs-hadith__title {
	margin-bottom: 32px;
	color: var(--mbs-gold-soft);
	font-family: var(--mbs-font-display);
	font-size: 1.35rem;
	font-weight: 400;
}

:is(body,#mbs) .mbs-hadith__figure {
	max-width: 52rem;
	margin: 0 auto;
}

:is(body,#mbs) .mbs-hadith__figure blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
}

:is(body,#mbs) .mbs-hadith__figure blockquote::before,
:is(body,#mbs) .mbs-hadith__figure blockquote::after {
	content: none;
}

:is(body,#mbs) .mbs-hadith__arabic {
	color: var(--mbs-white);
	font-family: var(--mbs-font-arabic);
	font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.9rem);
	line-height: 1.9;
}

:is(body,#mbs) .mbs-hadith__translation {
	max-width: 40rem;
	margin: 28px auto 0;
	color: var(--mbs-on-dark);
	font-family: var(--mbs-font-display);
	font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
	line-height: 1.5;
	text-wrap: balance;
}

:is(body,#mbs) .mbs-bg-white .mbs-hadith__arabic,
:is(body,#mbs) .mbs-bg-cream .mbs-hadith__arabic {
	color: var(--mbs-forest);
}

:is(body,#mbs) :is(.mbs-bg-white, .mbs-bg-cream) .mbs-hadith__translation {
	color: var(--mbs-charcoal);
}

:is(body,#mbs) :is(.mbs-bg-white, .mbs-bg-cream) .mbs-hadith__title {
	color: var(--mbs-emerald);
}

:is(body,#mbs) :is(.mbs-bg-white, .mbs-bg-cream).mbs-hadith {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%230B5D45' stroke-opacity='.07' stroke-width='1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M36 0v16.2M36 55.8V72M0 36h16.2M55.8 36H72'/%3E%3C/g%3E%3C/svg%3E");
}

:is(body,#mbs) .mbs-hadith__source {
	max-width: 36rem;
	margin: 24px auto 0;
	color: var(--mbs-on-dark-muted);
	font-size: 0.9rem;
}

:is(body,#mbs) :is(.mbs-bg-white, .mbs-bg-cream) .mbs-hadith__source {
	color: var(--mbs-muted);
}

/* 13. Bank and contacts -------------------------------------------------- */

:is(body,#mbs) .mbs-bank__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

:is(body,#mbs) .mbs-bank__grid--single {
	grid-template-columns: minmax(0, 46rem);
}

:is(body,#mbs) .mbs-bank__card {
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--mbs-line);
	border-top: 4px solid var(--mbs-gold);
	border-radius: 8px;
	background: var(--mbs-white);
}

:is(body,#mbs) .mbs-bg-white .mbs-bank__card {
	background: var(--mbs-cream);
}

:is(body,#mbs) .mbs-bank__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 32px;
}

:is(body,#mbs) .mbs-bank__details dt {
	color: var(--mbs-muted);
	font-size: 0.85rem;
}

:is(body,#mbs) .mbs-bank__details dd {
	margin-top: 2px;
	color: var(--mbs-forest);
	font-size: 1.1rem;
	font-weight: 650;
}

:is(body,#mbs) .mbs-bank__number {
	grid-column: 1 / -1;
	padding-top: 20px;
	border-top: 1px solid var(--mbs-line);
}

:is(body,#mbs) .mbs-bank__number dd {
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

:is(body,#mbs) .mbs-copy {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	margin-top: 18px;
}

:is(body,#mbs) .mbs-copy [hidden] {
	display: none;
}

:is(body,#mbs) .mbs-copy .is-copied {
	background: var(--mbs-forest);
	border-color: var(--mbs-forest);
}

:is(body,#mbs) .mbs-copy__status {
	color: var(--mbs-emerald);
	font-size: 0.9rem;
	font-weight: 600;
}

:is(body,#mbs) .mbs-bank__online {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--mbs-line);
}

:is(body,#mbs) .mbs-bank__online .mbs-small {
	margin-top: 8px;
}

:is(body,#mbs) .mbs-bank__steps-title {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--mbs-line);
	font-size: 1.15rem;
}

:is(body,#mbs) .mbs-steps {
	margin-top: 16px;
	counter-reset: mbs-step;
}

:is(body,#mbs) .mbs-steps > li {
	position: relative;
	padding: 0 0 14px 42px;
	color: var(--mbs-charcoal);
	font-size: 1rem;
	line-height: 1.55;
	counter-increment: mbs-step;
}

:is(body,#mbs) .mbs-steps > li::before {
	content: counter(mbs-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--mbs-emerald);
	color: var(--mbs-white);
	font-size: 0.85rem;
	font-weight: 700;
}

:is(body,#mbs) .mbs-bank__qr {
	padding: 24px;
	border: 1px solid var(--mbs-line);
	border-radius: 8px;
	background: var(--mbs-white);
	text-align: center;
}

:is(body,#mbs) .mbs-bank__qr-img {
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
}

:is(body,#mbs) .mbs-bank__qr figcaption {
	margin-top: 14px;
	color: var(--mbs-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

:is(body,#mbs) .mbs-bank__note {
	max-width: 46rem;
	margin-top: 24px;
	color: var(--mbs-muted);
	font-size: 0.9rem;
}

:is(body,#mbs) .mbs-people {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 clamp(20px, 3vw, 36px);
}

:is(body,#mbs) .mbs-people__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 22px;
	border-top: 2px solid var(--mbs-gold);
}

:is(body,#mbs) .mbs-people__role {
	color: var(--mbs-muted);
	font-size: 0.875rem;
}

:is(body,#mbs) .mbs-people__name {
	color: var(--mbs-forest);
	font-family: var(--mbs-font-display);
	font-size: 1.22rem;
	line-height: 1.3;
}

:is(body,#mbs) .mbs-section a.mbs-people__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 4px;
	color: var(--mbs-emerald);
	font-size: 1.05rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

:is(body,#mbs) .mbs-section a.mbs-people__phone:hover {
	text-decoration: underline;
}

:is(body,#mbs) .mbs-people__phone .mbs-icon {
	width: 20px;
	height: 20px;
}

:is(body,#mbs) .mbs-contacts__extra {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--mbs-line);
}

:is(body,#mbs) .mbs-contacts__extra li,
:is(body,#mbs) .mbs-contacts__extra a {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
}

:is(body,#mbs) .mbs-contacts__extra .mbs-icon {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	color: var(--mbs-emerald);
	flex: none;
}

/* 14. Text section, CTA, footer, mobile bar ------------------------------ */

:is(body,#mbs) .mbs-text__inner {
	max-width: 46rem;
}

:is(body,#mbs) .mbs-cta {
	padding-top: clamp(56px, 7vw, 88px);
	padding-bottom: clamp(56px, 7vw, 88px);
}

:is(body,#mbs) .mbs-cta__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 48px;
	align-items: center;
	justify-content: space-between;
}

:is(body,#mbs) .mbs-cta__inner > div {
	max-width: 40rem;
}

:is(body,#mbs) .mbs-cta .mbs-h2 {
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
}

/* Campaign footer (Salient's footer is hidden while it is on). */
:is(body,#mbs).mbs-footer-on #footer-outer {
	display: none;
}

:is(body,#mbs) .mbs-footer {
	padding: clamp(56px, 7vw, 88px) 0 0;
	background: var(--mbs-forest);
	color: var(--mbs-on-dark);
	font-family: var(--mbs-font-body);
	font-size: 0.98rem;
	line-height: 1.6;
}

:is(body,#mbs) .mbs-footer *,
:is(body,#mbs) .mbs-footer *::before,
:is(body,#mbs) .mbs-footer *::after {
	box-sizing: border-box;
}

:is(body,#mbs) .mbs-footer :where(p, ul, li, h3) {
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(body,#mbs) .mbs-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
	gap: 40px clamp(24px, 4vw, 56px);
	padding-bottom: clamp(40px, 6vw, 64px);
}

:is(body,#mbs) .mbs-footer__logo {
	display: inline-block;
	margin-bottom: 20px;
}

:is(body,#mbs) .mbs-footer__logo img {
	display: block;
	width: 100%;
	max-width: 260px;
	height: auto;
	margin: 0;
}

:is(body,#mbs) .mbs-footer__about p {
	max-width: 22rem;
	color: var(--mbs-on-dark-muted);
}

:is(body,#mbs) .mbs-footer__heading {
	margin-bottom: 14px;
	color: var(--mbs-gold-soft);
	font-family: var(--mbs-font-display);
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.3;
}

:is(body,#mbs) .mbs-footer__links li,
:is(body,#mbs) .mbs-footer__list li {
	margin-bottom: 10px;
}

:is(body,#mbs) .mbs-footer a:not(.mbs-btn) {
	color: var(--mbs-on-dark);
	text-decoration: none;
}

:is(body,#mbs) .mbs-footer a:not(.mbs-btn):hover {
	color: var(--mbs-gold-soft);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

:is(body,#mbs) .mbs-footer__list li {
	display: flex;
	flex-direction: column;
}

:is(body,#mbs) .mbs-footer__muted {
	color: var(--mbs-on-dark-muted);
	font-size: 0.875rem;
}

:is(body,#mbs) .mbs-footer__bank {
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}

:is(body,#mbs) .mbs-footer__acct {
	color: var(--mbs-white);
	font-size: 1.2rem;
	font-weight: 650;
	letter-spacing: 0.05em;
	font-variant-numeric: tabular-nums;
}

:is(body,#mbs) .mbs-footer__infaq .mbs-btn {
	margin-top: 18px;
}

:is(body,#mbs) .mbs-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0 28px;
	border-top: 1px solid var(--mbs-line-dark);
	color: var(--mbs-on-dark-muted);
	font-size: 0.875rem;
}

:is(body,#mbs) .mbs-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

/* Mobile donation bar. */
:is(body,#mbs) .mbs-sticky {
	position: fixed;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	left: 12px;
	z-index: 9990;
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 10px 10px 10px 18px;
	border-radius: 10px;
	background: var(--mbs-forest);
	box-shadow: 0 10px 30px rgba(18, 61, 45, 0.35);
	color: var(--mbs-on-dark);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

:is(body,#mbs) .mbs-sticky.is-hidden {
	visibility: hidden;
	opacity: 0;
	transform: translateY(140%);
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}

:is(body,#mbs) .mbs-sticky__meta {
	margin: 0;
	padding: 0;
	color: var(--mbs-on-dark-muted);
	font-size: 0.85rem;
	line-height: 1.3;
}

:is(body,#mbs) .mbs-sticky__meta strong {
	display: block;
	color: var(--mbs-gold-soft);
	font-family: var(--mbs-font-display);
	font-size: 1.25rem;
	font-weight: 400;
}

:is(body,#mbs) .mbs-sticky .mbs-btn {
	min-height: 46px;
	padding: 0.7em 1.2em;
}

/* Responsive ------------------------------------------------------------- */

@media (min-width: 1000px) {
	:is(body,#mbs) .mbs-sticky {
		display: none;
	}
}

@media (max-width: 999.98px) {
	:is(body,#mbs).mbs-sticky-on .mbs-footer,
	:is(body,#mbs).mbs-sticky-on:not(.mbs-footer-on) #footer-outer {
		padding-bottom: 88px;
	}

	:is(body,#mbs).mbs-sticky-on #to-top {
		bottom: 92px;
	}

	:is(body,#mbs) .mbs-hero__grid,
	:is(body,#mbs) .mbs-facts__grid,
	:is(body,#mbs) .mbs-lestari__grid,
	:is(body,#mbs) .mbs-bank__grid,
	:is(body,#mbs) .mbs-progress__head {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(body,#mbs) .mbs-hero__media {
		max-width: 440px;
		margin: 14px auto 0;
	}

	:is(body,#mbs) .mbs-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(body,#mbs) .mbs-people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
	}

	:is(body,#mbs) .mbs-gallery__grid,
	:is(body,#mbs) .mbs-gallery__grid--four,
	:is(body,#mbs) .mbs-gallery__grid--feature {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(body,#mbs) .mbs-gallery__grid--feature > .mbs-gallery__item:first-child {
		grid-row: auto;
	}

	:is(body,#mbs) .mbs-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(body,#mbs) .mbs-bank__qr {
		max-width: 360px;
	}
}

@media (max-width: 640px) {
	:is(body,#mbs) .mbs-section {
		font-size: 1rem;
	}

	:is(body,#mbs) .mbs-hero .mbs-actions .mbs-btn {
		flex: 1 1 100%;
	}

	:is(body,#mbs) .mbs-arch {
		aspect-ratio: 1 / 1;
		border-radius: 50% 50% 0 0 / 50% 50% 0 0;
	}

	:is(body,#mbs) .mbs-hero__media::before {
		border-radius: 50% 50% 0 0 / 48% 48% 0 0;
	}

	:is(body,#mbs) .mbs-page-header .mbs-container::after {
		width: 96px;
		height: 124px;
		opacity: 0.45;
	}

	:is(body,#mbs) .mbs-figures {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(body,#mbs) .mbs-figures__item,
	:is(body,#mbs) .mbs-figures__item + .mbs-figures__item {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		padding: 16px 0;
		border-left: 0;
		border-bottom: 1px solid var(--mbs-line-dark);
	}

	:is(body,#mbs) .mbs-meter__milestone {
		margin-left: 0;
		max-width: none;
		padding-left: 0;
		border-left: 0;
	}

	:is(body,#mbs) .mbs-sheet {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(body,#mbs) .mbs-sheet__cell {
		min-height: 128px;
		padding: 18px 14px 16px;
	}

	:is(body,#mbs) .mbs-features,
	:is(body,#mbs) .mbs-features--lestari,
	:is(body,#mbs) .mbs-people,
	:is(body,#mbs) .mbs-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(body,#mbs) .mbs-gallery__grid,
	:is(body,#mbs) .mbs-gallery__grid--four,
	:is(body,#mbs) .mbs-gallery__grid--feature {
		gap: 12px;
	}

	:is(body,#mbs) .mbs-docs__item {
		grid-template-columns: 76px minmax(0, 1fr);
	}

	:is(body,#mbs) .mbs-docs__actions {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
		width: auto;
	}

	:is(body,#mbs) .mbs-docs__actions .mbs-btn {
		flex: 1 1 160px;
	}

	:is(body,#mbs) .mbs-bank__details {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(body,#mbs) .mbs-copy .mbs-btn {
		width: 100%;
	}

	:is(body,#mbs) .mbs-lightbox__frame {
		padding: 64px 12px 24px;
	}

	:is(body,#mbs) .mbs-lightbox__prev,
	:is(body,#mbs) .mbs-lightbox__next {
		top: auto;
		bottom: 16px;
		margin-top: 0;
	}

	:is(body,#mbs) .mbs-lightbox__frame {
		padding-bottom: 80px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(body,#mbs) :is(.mbs-btn, .mbs-sticky, .mbs-meter__fill) {
		transition: none;
	}
}
