/*
Theme Name: Max Merit
Theme URI: https://maxmeritex.com/
Author: Max Merit Exchange
Author URI: https://maxmeritex.com/
Description: Custom theme for Max Merit Exchange: currency exchange, international money transfers, cryptocurrency and USDT, and corporate foreign exchange. Includes editable exchange and crypto rate tables, a live currency converter, secure contact and custom-rate forms, Customizer business details, and one-click page and menu setup (Max Merit → Theme Setup). No plugins required.
Version: 1.2.10
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maxmerit
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ==========================================================================

   BRAND PALETTE
   These values were sampled from the Max Merit logo files (navy badge
   background and gold lettering). If your approved palette differs, replace
   the hex codes below. Every colour on the site is derived from these
   variables, so changing them here updates the whole site.
   -------------------------------------------------------------------------- */

:root {
	/* Brand colours ------------------------------------------------------ */
	--mm-navy: #021b3b;        /* Primary navy: header, hero, rate boards   */
	--mm-navy-deep: #011230;   /* Deep navy: top bar, footer, menu panel    */
	--mm-navy-soft: #0c2d59;   /* Lighter navy: raised surfaces on navy     */
	--mm-gold: #e69f01;        /* Primary gold: buttons, accents, lines     */
	--mm-gold-light: #f8d25b;  /* Highlight gold: text and icons on navy    */
	--mm-gold-deep: #8a5e00;   /* Deep gold: gold-coloured text on white    */

	/* Neutrals ------------------------------------------------------------ */
	--mm-ink: #0f1b2d;         /* Headings and strong text on light         */
	--mm-text: #34404f;        /* Body text                                 */
	--mm-muted: #5d6878;       /* Secondary text                            */
	--mm-line: #dde3eb;        /* Hairlines and card borders                */
	--mm-line-strong: #c3ccd8; /* Form field borders                        */
	--mm-mist: #f2f5f9;        /* Alternate section background             */
	--mm-white: #ffffff;

	/* Status -------------------------------------------------------------- */
	--mm-success: #1d7a4e;
	--mm-success-bg: #e8f5ee;
	--mm-danger: #b42318;
	--mm-danger-bg: #fdecea;
	--mm-placeholder-bg: #fff1c2;   /* Highlight for [placeholders]        */
	--mm-placeholder-ink: #5c3d00;
	--mm-placeholder-line: #d9a400;

	/* Derived tints (follow the brand colours automatically) -------------- */
	--mm-on-dark: #ffffff;
	--mm-on-dark-muted: color-mix(in srgb, #ffffff 74%, var(--mm-navy));
	--mm-gold-hairline: color-mix(in srgb, var(--mm-gold) 38%, transparent);
	--mm-gold-tint: color-mix(in srgb, var(--mm-gold) 12%, #ffffff);
	--mm-navy-tint: color-mix(in srgb, var(--mm-navy) 7%, #ffffff);

	/* SPACING ------------------------------------------------------------
	   --section-gap sets the space above and below every page section.
	   Increase or decrease this one value to tighten or loosen all pages. */
	--section-gap: clamp(2.25rem, 4vw, 3.25rem);
	--mm-block-gap: clamp(1.25rem, 2.2vw, 1.75rem); /* Space between blocks inside a section */
	--mm-container: 1240px;
	--mm-gutter: clamp(1rem, 3vw, 2rem);

	/* Typography ---------------------------------------------------------- */
	--mm-font-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--mm-font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Shape --------------------------------------------------------------- */
	--mm-radius-sm: 6px;
	--mm-radius: 10px;
	--mm-radius-lg: 16px;
	--mm-shadow-float: 0 18px 40px -22px rgba(1, 18, 48, 0.55);
	--mm-header-h: 68px;
	--mm-focus: var(--mm-navy);
}

@media (min-width: 75em) {
	:root {
		--mm-header-h: 80px;
	}
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--mm-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--mm-white);
	color: var(--mm-text);
	font-family: var(--mm-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

a {
	color: var(--mm-navy);
	text-decoration-color: var(--mm-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--mm-gold-deep);
}

:focus-visible {
	outline: 3px solid var(--mm-focus);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--mm-ink);
	font-weight: 600;
	line-height: 1.22;
}

h1,
h2 {
	font-family: var(--mm-font-display);
	font-weight: 400;
	letter-spacing: -0.005em;
}

h1 {
	font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.25rem);
	line-height: 1.1;
}

h2 {
	font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.4rem);
	line-height: 1.16;
}

h3 {
	font-size: 1.1875rem;
}

h4 {
	font-size: 1.0625rem;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
}

strong,
b {
	color: var(--mm-ink);
	font-weight: 600;
}

hr {
	height: 1px;
	margin: var(--mm-block-gap) 0;
	border: 0;
	background: var(--mm-line);
}

address {
	font-style: normal;
}

table {
	border-collapse: collapse;
}

button,
input,
select,
textarea {
	font: inherit;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	padding: 1rem 1.25rem;
	clip: auto;
	clip-path: none;
	background: var(--mm-white);
	color: var(--mm-navy);
	font-weight: 600;
}

.mm-skip-link {
	position: absolute;
	z-index: 1000;
	top: -120px;
	left: 1rem;
	padding: 0.75rem 1rem;
	border-radius: var(--mm-radius-sm);
	background: var(--mm-gold);
	color: var(--mm-navy);
	font-weight: 600;
	text-decoration: none;
}

.mm-skip-link:focus {
	top: 1rem;
}

.mm-main:focus {
	outline: none;
}

/* Placeholder highlight for [bracketed] text that still needs replacing. */
.mm-placeholder {
	padding: 0.05em 0.3em;
	border-radius: 3px;
	outline: 1px dashed var(--mm-placeholder-line);
	outline-offset: -1px;
	background: var(--mm-placeholder-bg);
	color: var(--mm-placeholder-ink);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.mm-container {
	width: 100%;
	max-width: calc(var(--mm-container) + var(--mm-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
}

.mm-container--narrow {
	max-width: calc(780px + var(--mm-gutter) * 2);
}

.mm-section {
	padding-block: var(--section-gap);
}

.mm-section--light {
	background: var(--mm-white);
}

.mm-section--mist {
	background: var(--mm-mist);
}

.mm-section--navy {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--mm-navy);
	color: var(--mm-on-dark-muted);
	--mm-focus: var(--mm-gold-light);
}

/* Two sections with the same background share one gap instead of two. */
.mm-section--light + .mm-section--light,
.mm-section--mist + .mm-section--mist,
.mm-section--light + .mm-cta-band {
	padding-top: 0;
}

.mm-section-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: var(--mm-block-gap);
}

.mm-section-top .mm-heading {
	margin-bottom: 0;
}

.mm-grid {
	display: grid;
	gap: var(--mm-block-gap);
}

.mm-split {
	display: grid;
	gap: var(--mm-block-gap) clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

.mm-split--top {
	align-items: start;
}

.mm-split__body > :last-child {
	margin-bottom: 0;
}

.mm-layout {
	display: grid;
	gap: var(--mm-block-gap) clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

.mm-stack > * + * {
	margin-top: var(--mm-block-gap);
}

.mm-mt {
	margin-top: var(--mm-block-gap);
}

@media (min-width: 48em) {
	.mm-grid--2,
	.mm-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 56em) {
	.mm-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.mm-split--wide {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}

	.mm-split--reverse .mm-split__media {
		order: 2;
	}
}

@media (min-width: 64em) {
	.mm-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mm-layout {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	}

	.mm-layout__aside {
		position: sticky;
		top: calc(var(--mm-header-h) + 1.5rem);
	}
}

/* ==========================================================================
   4. TYPE HELPERS, LINKS AND BUTTONS
   ========================================================================== */

.mm-heading {
	max-width: 46rem;
	margin-bottom: var(--mm-block-gap);
}

.mm-heading--center {
	margin-inline: auto;
	text-align: center;
}

.mm-heading__title {
	margin: 0 0 0.35em;
	color: var(--mm-navy);
}

h3.mm-heading__title {
	font-family: var(--mm-font-display);
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
	font-weight: 400;
}

.mm-heading__lead {
	margin: 0;
	color: var(--mm-muted);
	font-size: 1.0625rem;
}

.mm-section--navy .mm-heading__title,
.mm-heading--on-dark .mm-heading__title {
	color: var(--mm-white);
}

.mm-section--navy .mm-heading__lead,
.mm-heading--on-dark .mm-heading__lead {
	color: var(--mm-on-dark-muted);
}

.mm-intro {
	color: var(--mm-ink);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
	line-height: 1.6;
}

.mm-small {
	font-size: 0.875rem;
}

.mm-muted {
	color: var(--mm-muted);
}

.mm-link {
	color: var(--mm-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--mm-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.mm-link:hover {
	color: var(--mm-gold-deep);
}

.mm-link--small {
	font-size: 0.875rem;
}

.mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 0.65rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--mm-radius-sm);
	font-family: var(--mm-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.mm-btn .mm-icon {
	flex: none;
	width: 18px;
	height: 18px;
}

.mm-btn--primary {
	background-color: var(--mm-gold);
	background-image: linear-gradient(180deg, color-mix(in srgb, var(--mm-gold-light) 45%, var(--mm-gold)) 0%, var(--mm-gold) 100%);
	color: var(--mm-navy);
}

.mm-btn--primary:hover {
	background-image: none;
	background-color: var(--mm-gold-light);
	color: var(--mm-navy);
}

.mm-btn--outline {
	border-color: var(--mm-navy);
	background: transparent;
	color: var(--mm-navy);
}

.mm-btn--outline:hover {
	background: var(--mm-navy);
	color: var(--mm-white);
}

.mm-btn--light {
	border-color: color-mix(in srgb, #ffffff 55%, transparent);
	background: transparent;
	color: var(--mm-white);
}

.mm-btn--light:hover {
	border-color: var(--mm-white);
	background: var(--mm-white);
	color: var(--mm-navy);
}

.mm-btn--ghost {
	background: var(--mm-navy-tint);
	color: var(--mm-navy);
}

.mm-btn--ghost:hover {
	background: var(--mm-navy);
	color: var(--mm-white);
}

.mm-btn--sm {
	min-height: 38px;
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
}

.mm-btn[disabled],
.mm-btn[aria-busy="true"] {
	cursor: progress;
	opacity: 0.7;
}

.mm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.mm-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--mm-line);
	border-radius: 999px;
	background: var(--mm-white);
	color: var(--mm-navy);
	font-size: 0.8125rem;
	font-weight: 600;
}

.mm-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* ==========================================================================
   5. TOP BAR, HEADER AND NAVIGATION
   ========================================================================== */

.mm-topbar {
	border-bottom: 1px solid color-mix(in srgb, var(--mm-gold) 18%, transparent);
	background: var(--mm-navy-deep);
	color: var(--mm-on-dark-muted);
	font-size: 0.8125rem;
	--mm-focus: var(--mm-gold-light);
}

.mm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 38px;
}

.mm-topbar__info {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-topbar a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--mm-on-dark-muted);
	text-decoration: none;
}

.mm-topbar a:hover {
	color: var(--mm-white);
}

.mm-topbar .mm-icon {
	color: var(--mm-gold);
}

.mm-topbar__end {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mm-topbar a.mm-topbar__phone {
	color: var(--mm-white);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.mm-topbar__address,
.mm-topbar__hours {
	display: none;
}

.mm-topbar .mm-placeholder,
.mm-footer .mm-placeholder,
.mm-page-hero .mm-placeholder {
	outline-color: color-mix(in srgb, var(--mm-gold) 60%, transparent);
	background: color-mix(in srgb, var(--mm-gold) 22%, transparent);
	color: var(--mm-gold-light);
}

@media (min-width: 40em) {
	.mm-topbar__address {
		display: list-item;
	}
}

@media (min-width: 56em) {
	.mm-topbar__hours {
		display: list-item;
	}
}

.mm-header {
	position: sticky;
	z-index: 100;
	top: 0;
	background: var(--mm-navy);
	color: var(--mm-white);
	transition: box-shadow 0.2s ease;
	--mm-focus: var(--mm-gold-light);
}

.admin-bar .mm-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .mm-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .mm-header {
		top: 0;
	}
}

.mm-header.is-scrolled {
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.mm-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--mm-header-h);
}

.mm-header__brand {
	flex: none;
	margin-right: auto;
}

.mm-logo {
	display: block;
}

/* The logo fills most of the bar; the bar height itself is --mm-header-h. */
.mm-logo img,
.mm-header .custom-logo {
	display: block;
	width: auto;
	height: 48px;
}

.mm-header .custom-logo-link {
	display: block;
}

@media (min-width: 75em) {
	.mm-logo--header img,
	.mm-header .custom-logo {
		height: 60px;
	}
}

.mm-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mm-header__cta {
	display: none;
	flex: none;
	white-space: nowrap;
}

@media (min-width: 64em) {
	.mm-header__cta {
		display: inline-flex;
	}
}

/* The header uses a little more width than page content on large screens. */
.mm-header .mm-container,
.mm-topbar .mm-container {
	max-width: calc(1400px + var(--mm-gutter) * 2);
}

/* Set by main.js when the full menu and the button do not fit side by side. */
.mm-header.mm-header--tight .mm-header__cta {
	display: none;
}

.mm-nav-toggle {
	position: relative;
	z-index: 260;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 44px;
	padding: 0.4rem 0.8rem;
	border: 1px solid color-mix(in srgb, var(--mm-gold) 55%, transparent);
	border-radius: var(--mm-radius-sm);
	background: transparent;
	color: var(--mm-white);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.mm-nav-toggle__bars {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 12px;
}

.mm-nav-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--mm-gold-light);
	transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.mm-nav-toggle__bars span:nth-child(1) {
	top: 0;
}

.mm-nav-toggle__bars span:nth-child(2) {
	top: 5px;
}

.mm-nav-toggle__bars span:nth-child(3) {
	top: 10px;
}

.mm-nav-open .mm-nav-toggle__bars span:nth-child(1) {
	top: 5px;
	transform: rotate(45deg);
}

.mm-nav-open .mm-nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.mm-nav-open .mm-nav-toggle__bars span:nth-child(3) {
	top: 5px;
	transform: rotate(-45deg);
}

.mm-menu,
.mm-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.mm-submenu-toggle .mm-icon {
	transition: transform 0.2s ease;
}

.mm-menu .is-open > .mm-submenu-toggle .mm-icon {
	transform: rotate(180deg);
}

/* Mobile and tablet: off-canvas panel. */
@media (max-width: 74.99em) {
	.mm-nav {
		position: fixed;
		z-index: 250;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(420px, 100%);
		padding: calc(var(--mm-header-h) + 0.75rem) 1.25rem 2rem;
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		background: var(--mm-navy-deep);
		box-shadow: -24px 0 48px -24px rgba(0, 0, 0, 0.7);
		transform: translateX(100%);
		transition: transform 0.28s ease, visibility 0s linear 0.28s;
	}

	.mm-nav-open .mm-nav {
		visibility: visible;
		transform: none;
		transition: transform 0.28s ease;
	}

	.mm-nav-open,
	.mm-nav-open body {
		overflow: hidden;
	}

	.mm-nav-open body::after {
		position: fixed;
		z-index: 95;
		inset: 0;
		background: rgba(1, 10, 25, 0.6);
		content: "";
	}

	.mm-menu > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
	}

	.mm-menu > li > a {
		flex: 1;
		padding: 0.8rem 0;
		color: var(--mm-white);
		font-size: 1.0625rem;
		font-weight: 500;
		text-decoration: none;
	}

	.mm-menu > li.current-menu-item > a,
	.mm-menu > li.current-menu-ancestor > a,
	.mm-menu > li.current-menu-parent > a {
		color: var(--mm-gold-light);
	}

	.mm-submenu-toggle {
		width: 44px;
		height: 44px;
		border: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
		border-radius: var(--mm-radius-sm);
		color: var(--mm-gold-light);
	}

	.mm-menu .sub-menu {
		display: none;
		flex-basis: 100%;
		margin: 0 0 0.85rem;
		padding-left: 0.85rem;
		border-left: 2px solid var(--mm-gold);
	}

	.mm-menu .is-open > .sub-menu {
		display: block;
	}

	.mm-menu .sub-menu a {
		display: block;
		padding: 0.5rem 0.25rem;
		color: var(--mm-on-dark-muted);
		font-size: 0.9375rem;
		text-decoration: none;
	}

	.mm-menu .sub-menu a:hover,
	.mm-menu .sub-menu .current-menu-item > a {
		color: var(--mm-gold-light);
	}

	.mm-nav__extras {
		display: grid;
		gap: 1.25rem;
		margin-top: 1.5rem;
	}

	.mm-nav__actions {
		display: grid;
		gap: 0.75rem;
	}

	.mm-nav__actions .mm-btn {
		width: 100%;
	}
}

/* Desktop: inline menu with dropdowns. */
@media (min-width: 75em) {
	.mm-nav-toggle,
	.mm-nav__extras {
		display: none;
	}

	.mm-nav {
		display: flex;
		align-items: center;
	}

	.mm-menu {
		display: flex;
		align-items: center;
	}

	.mm-menu > li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.mm-menu > li > a {
		display: block;
		padding: 0.5rem 0.55rem;
		color: var(--mm-white);
		font-size: 0.9rem;
		font-weight: 500;
		text-decoration: none;
		white-space: nowrap;
	}

	.mm-menu > li > a:hover,
	.mm-menu > li:hover > a,
	.mm-menu > li.current-menu-item > a,
	.mm-menu > li.current-menu-ancestor > a,
	.mm-menu > li.current-menu-parent > a {
		color: var(--mm-gold-light);
	}

	.mm-menu > li.current-menu-item > a,
	.mm-menu > li.current-menu-ancestor > a,
	.mm-menu > li.current-menu-parent > a {
		box-shadow: inset 0 -2px 0 var(--mm-gold);
	}

	.mm-menu > li > .mm-submenu-toggle {
		width: 22px;
		height: 30px;
		margin-left: -0.45rem;
		color: var(--mm-on-dark-muted);
	}

	.mm-menu .sub-menu {
		position: absolute;
		z-index: 10;
		top: calc(100% + 6px);
		left: -0.25rem;
		min-width: 280px;
		padding: 0.5rem;
		visibility: hidden;
		border-top: 3px solid var(--mm-gold);
		border-radius: 0 0 var(--mm-radius) var(--mm-radius);
		background: var(--mm-white);
		box-shadow: var(--mm-shadow-float);
		opacity: 0;
		transform: translateY(6px);
		transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
		--mm-focus: var(--mm-navy);
	}

	/* Invisible bridge so the pointer can travel into the dropdown. */
	.mm-menu .sub-menu::before {
		position: absolute;
		top: -12px;
		right: 0;
		left: 0;
		height: 12px;
		content: "";
	}

	.mm-menu > li:nth-last-child(-n + 2) > .sub-menu {
		right: -0.25rem;
		left: auto;
	}

	.mm-menu > li:hover > .sub-menu,
	.mm-menu > li:focus-within > .sub-menu,
	.mm-menu > li.is-open > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition-delay: 0s;
	}

	.mm-menu .sub-menu a {
		display: block;
		padding: 0.55rem 0.75rem;
		border-radius: var(--mm-radius-sm);
		color: var(--mm-ink);
		font-size: 0.9375rem;
		line-height: 1.35;
		text-decoration: none;
	}

	.mm-menu .sub-menu a:hover {
		background: var(--mm-mist);
		color: var(--mm-navy);
	}

	.mm-menu .sub-menu .current-menu-item > a {
		background: var(--mm-mist);
		box-shadow: inset 3px 0 0 var(--mm-gold);
		color: var(--mm-navy);
		font-weight: 600;
	}

	/* Without JavaScript, the button returns once there is clearly room. */
	.mm-header__cta {
		display: none;
	}

	.mm-js .mm-header__cta {
		display: inline-flex;
	}
}

@media (min-width: 80em) {
	.mm-header__cta {
		display: inline-flex;
	}
}

@media (min-width: 87.5em) {
	.mm-menu > li > a {
		padding-inline: 0.7rem;
		font-size: 0.9375rem;
	}
}

/* ==========================================================================
   6. HEROES, BREADCRUMBS AND SECTION NAVIGATION
   ========================================================================== */

/* Guilloche line pattern (banknote engraving motif) used on navy surfaces. */
.mm-home-rates::before,
.mm-page-hero--plain::after,
.mm-cta::before,
.mm-footer::before,
.mm-section--navy::before {
	position: absolute;
	z-index: -1;
	width: 720px;
	height: 720px;
	background-color: var(--mm-gold);
	content: "";
	opacity: 0.1;
	pointer-events: none;
	-webkit-mask: url("assets/images/guilloche.svg") center / contain no-repeat;
	mask: url("assets/images/guilloche.svg") center / contain no-repeat;
}

.mm-home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--mm-navy);
	color: var(--mm-white);
	--mm-focus: var(--mm-gold-light);
}

.mm-home-hero__media,
.mm-page-hero__media {
	position: absolute;
	z-index: -2;
	inset: 0;
}

.mm-home-hero__img,
.mm-page-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Home hero overlay: light enough to show the skyline, dark only behind the text. */
.mm-home-hero__img {
	filter: brightness(1.35) saturate(1.12);
}

/* Home hero slideshow: the next photo fades in on top of the current one. */
.mm-home-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
}

.mm-home-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
}

.mm-home-hero__slide.is-leaving {
	opacity: 1;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.mm-home-hero__slide {
		transition: none;
	}
}

.mm-home-hero::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 78%, var(--mm-navy) 100%),
		linear-gradient(180deg, color-mix(in srgb, var(--mm-navy-deep) 45%, transparent) 0%, color-mix(in srgb, var(--mm-navy) 40%, transparent) 100%);
	content: "";
}

@media (min-width: 48em) {
	.mm-home-hero::before {
		background:
			linear-gradient(180deg, transparent 78%, var(--mm-navy) 100%),
			linear-gradient(90deg, color-mix(in srgb, var(--mm-navy-deep) 62%, transparent) 0%, color-mix(in srgb, var(--mm-navy) 30%, transparent) 45%, transparent 72%);
	}
}

.mm-home-hero__title,
.mm-home-hero__lead,
.mm-home-hero .mm-checklist li {
	text-shadow: 0 2px 16px rgba(1, 12, 30, 0.6), 0 1px 2px rgba(1, 12, 30, 0.5);
}

.mm-home-hero__inner {
	padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

/* Taller hero on desktop so more of the skyline and the CN Tower show. */
@media (min-width: 64em) {
	.mm-home-hero__inner {
		display: flex;
		align-items: center;
		min-height: 44rem;
	}
}

.mm-home-hero__content {
	max-width: 42rem;
}

.mm-home-hero__title {
	margin-bottom: 0.45em;
	color: var(--mm-white);
	font-size: clamp(2.25rem, 1.35rem + 3.6vw, 3.9rem);
	line-height: 1.06;
}

.mm-home-hero__lead {
	max-width: 36rem;
	color: color-mix(in srgb, #ffffff 90%, var(--mm-navy));
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.mm-home-hero__actions {
	margin: 1.5rem 0 1.5rem;
}

.mm-page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--mm-navy);
	color: var(--mm-white);
	--mm-focus: var(--mm-gold-light);
}

.mm-page-hero::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(90deg, color-mix(in srgb, var(--mm-navy-deep) 95%, transparent) 0%, color-mix(in srgb, var(--mm-navy) 85%, transparent) 52%, color-mix(in srgb, var(--mm-navy) 55%, transparent) 100%);
	content: "";
}

.mm-page-hero--plain::after {
	top: -300px;
	right: -220px;
}

.mm-page-hero__inner {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.mm-page-hero__title {
	max-width: 26ch;
	margin: 0.5rem 0 0.45rem;
	color: var(--mm-white);
	font-size: clamp(2rem, 1.35rem + 2.5vw, 3rem);
}

.mm-page-hero__lead {
	max-width: 46rem;
	margin: 0;
	color: var(--mm-on-dark-muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.mm-page-hero__lead a {
	color: var(--mm-gold-light);
}

.mm-page-hero__actions {
	margin-top: 1.25rem;
}

.mm-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.5rem;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
	list-style: none;
}

.mm-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--mm-on-dark-muted);
}

.mm-breadcrumbs li + li::before {
	color: var(--mm-gold);
	content: "/";
}

.mm-breadcrumbs a {
	color: var(--mm-on-dark-muted);
	text-decoration: none;
}

.mm-breadcrumbs a:hover {
	color: var(--mm-white);
	text-decoration: underline;
}

.mm-breadcrumbs [aria-current="page"] {
	color: var(--mm-gold-light);
}

.mm-subnav {
	border-bottom: 1px solid var(--mm-line);
	background: var(--mm-white);
}

.mm-subnav__list {
	position: relative;
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0.55rem 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}

.mm-subnav__link {
	display: block;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	color: var(--mm-text);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.mm-subnav__link:hover {
	background: var(--mm-mist);
	color: var(--mm-navy);
}

.mm-subnav__link.is-current {
	background: var(--mm-navy);
	color: var(--mm-white);
}

/* ==========================================================================
   7. CONTENT COMPONENTS
   ========================================================================== */

/* Figures */
.mm-figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--mm-radius);
	background: var(--mm-mist);
	aspect-ratio: 4 / 3;
}

.mm-figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mm-figure--tall {
	aspect-ratio: 4 / 5;
}

.mm-figure--wide {
	aspect-ratio: 16 / 9;
}

/* Feature grid */
.mm-features {
	display: grid;
	gap: 1.35rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-feature {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.mm-feature__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--mm-navy);
	color: var(--mm-gold-light);
}

.mm-feature__icon .mm-icon {
	width: 22px;
	height: 22px;
}

.mm-feature__title {
	margin: 0.2rem 0 0.3rem;
	color: var(--mm-ink);
	font-family: var(--mm-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
}

.mm-feature__text {
	margin: 0;
	color: var(--mm-muted);
	font-size: 0.9688rem;
	line-height: 1.6;
}

.mm-feature .mm-link {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.9375rem;
}

.mm-features--card .mm-feature {
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-section--mist .mm-features--card .mm-feature {
	border-color: transparent;
}

.mm-features--dark .mm-feature__icon {
	border: 1px solid var(--mm-gold-hairline);
	background: color-mix(in srgb, var(--mm-gold) 12%, transparent);
}

.mm-features--dark .mm-feature__title {
	color: var(--mm-white);
}

.mm-features--dark .mm-feature__text {
	color: var(--mm-on-dark-muted);
}

@media (min-width: 40em) {
	.mm-features--cols-2,
	.mm-features--cols-3,
	.mm-features--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.mm-features--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mm-features--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Numbered steps (real sequences only) */
.mm-steps {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.mm-step__num {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--mm-gold);
	border-radius: 50%;
	background: var(--mm-gold-tint);
	color: var(--mm-navy);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mm-step__title {
	margin: 0.45rem 0 0.25rem;
	color: var(--mm-ink);
	font-family: var(--mm-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
}

.mm-step__text {
	margin: 0;
	color: var(--mm-muted);
	font-size: 0.9688rem;
}

.mm-steps--list .mm-step {
	padding-bottom: 0.35rem;
}

.mm-steps--list .mm-step:not(:last-child)::before {
	position: absolute;
	top: 46px;
	bottom: -10px;
	left: 19.5px;
	width: 1px;
	background: var(--mm-gold-hairline);
	content: "";
}

.mm-steps--row .mm-step {
	padding: 1.2rem;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-section--mist .mm-steps--row .mm-step {
	border-color: transparent;
}

@media (min-width: 48em) {
	.mm-steps--row {
		grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
		gap: 1.25rem;
	}

	.mm-steps--row .mm-step {
		flex-direction: column;
		gap: 0.25rem;
	}
}

/* Checklist */
.mm-checklist {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.mm-checklist .mm-icon {
	width: 20px;
	height: 20px;
	margin-top: 0.2rem;
	color: var(--mm-gold-deep);
	stroke-width: 2.25;
}

.mm-checklist--on-dark li {
	color: var(--mm-white);
}

.mm-checklist--on-dark .mm-icon {
	color: var(--mm-gold);
}

@media (min-width: 48em) {
	.mm-checklist--cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2rem;
	}
}

/* FAQs */
.mm-faqs {
	display: grid;
	gap: 0.6rem;
	max-width: 54rem;
}

.mm-faq {
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.95rem 1.15rem;
	color: var(--mm-ink);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.mm-faq__q::-webkit-details-marker {
	display: none;
}

.mm-faq__icon {
	color: var(--mm-gold-deep);
	transition: transform 0.2s ease;
}

.mm-faq[open] .mm-faq__icon {
	transform: rotate(180deg);
}

.mm-faq__a {
	padding: 0 1.15rem 1.1rem;
	color: var(--mm-text);
}

.mm-faq__a p {
	margin: 0;
}

/* Page cards */
.mm-cards {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--mm-line);
	border-bottom: 3px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.18s ease;
}

.mm-card__link:hover {
	border-bottom-color: var(--mm-gold);
	color: inherit;
}

.mm-card__link:hover .mm-card__title {
	text-decoration: underline;
	text-decoration-color: var(--mm-gold);
	text-underline-offset: 4px;
}

.mm-card__media {
	overflow: hidden;
	background: var(--mm-mist);
	aspect-ratio: 16 / 10;
}

.mm-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.15rem 1.2rem;
}

.mm-card__title {
	margin: 0;
	color: var(--mm-navy);
	font-family: var(--mm-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
}

.mm-card__text {
	margin: 0;
	color: var(--mm-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.mm-cards--compact .mm-card__link {
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.1rem;
}

.mm-cards--compact .mm-card__body {
	padding: 0;
}

/* Stacked compact cards: icon above the text, so three fit side by side in a narrow column. */
.mm-cards--stack .mm-card__link {
	gap: 0.8rem;
	padding: 1.1rem;
}

.mm-cards--stack .mm-card__body {
	padding: 0;
}

.mm-cards--stack .mm-card__title {
	font-size: 1rem;
}

.mm-cards--stack .mm-card__text {
	font-size: 0.875rem;
}

.mm-card__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--mm-navy);
	color: var(--mm-gold-light);
}

.mm-section--mist .mm-card__link {
	border-color: transparent;
	border-bottom-color: var(--mm-line);
}

.mm-section--mist .mm-card__link:hover {
	border-bottom-color: var(--mm-gold);
}

@media (min-width: 40em) {
	.mm-cards--cols-2,
	.mm-cards--cols-3,
	.mm-cards--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.mm-cards--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mm-cards--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Panels */
.mm-panel {
	padding: clamp(1.15rem, 2.5vw, 1.6rem);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-panel > :last-child {
	margin-bottom: 0;
}

.mm-panel--mist {
	border-color: transparent;
	background: var(--mm-mist);
}

.mm-panel--navy {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-color: var(--mm-gold-hairline);
	background: var(--mm-navy);
	color: var(--mm-on-dark-muted);
	--mm-focus: var(--mm-gold-light);
}

.mm-panel--navy .mm-panel__title,
.mm-panel--navy strong {
	color: var(--mm-white);
}

.mm-panel--navy a:not(.mm-btn) {
	color: var(--mm-gold-light);
}

.mm-panel__title {
	margin: 0 0 0.6rem;
	color: var(--mm-navy);
	font-family: var(--mm-font-display);
	font-size: 1.35rem;
	font-weight: 400;
}

.mm-panel .mm-actions {
	margin-top: 1rem;
}

/* Notices */
.mm-notice {
	display: flex;
	gap: 0.85rem;
	padding: 1rem 1.15rem;
	border-left: 4px solid var(--mm-navy);
	border-radius: var(--mm-radius-sm);
	background: var(--mm-mist);
	color: var(--mm-text);
	font-size: 0.9688rem;
}

.mm-section--mist .mm-notice {
	background: var(--mm-white);
}

.mm-notice__icon {
	width: 22px;
	height: 22px;
	margin-top: 0.1rem;
	color: var(--mm-navy);
}

.mm-notice__title {
	margin: 0 0 0.25rem;
	color: var(--mm-ink);
	font-weight: 700;
}

.mm-notice__body p {
	margin: 0 0 0.5em;
}

.mm-notice__body p:last-child {
	margin-bottom: 0;
}

.mm-notice--warning,
.mm-notice--risk {
	border-left-color: var(--mm-gold);
	background: var(--mm-gold-tint);
}

.mm-section--mist .mm-notice--warning,
.mm-section--mist .mm-notice--risk {
	background: var(--mm-gold-tint);
}

.mm-notice--warning .mm-notice__icon,
.mm-notice--risk .mm-notice__icon {
	color: var(--mm-gold-deep);
}

/* Label / value facts */
.mm-facts {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-facts__row {
	display: grid;
	gap: 0.15rem 1rem;
	padding: 0.8rem 1rem;
	border-top: 1px solid var(--mm-line);
}

.mm-facts__row:first-child {
	border-top: 0;
}

.mm-facts dt {
	color: var(--mm-ink);
	font-weight: 600;
}

.mm-facts dd {
	margin: 0;
	color: var(--mm-text);
}

@media (min-width: 40em) {
	.mm-facts__row {
		grid-template-columns: minmax(9rem, 38%) 1fr;
	}
}

/* Call-to-action band */
.mm-cta-band {
	padding-block: var(--section-gap);
	background: var(--mm-white);
}

.mm-section--mist + .mm-cta-band {
	background: var(--mm-mist);
	padding-top: 0;
}

.mm-cta {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	gap: 1.25rem 2rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	overflow: hidden;
	border: 1px solid var(--mm-gold-hairline);
	border-radius: var(--mm-radius-lg);
	background: var(--mm-navy);
	color: var(--mm-on-dark-muted);
	--mm-focus: var(--mm-gold-light);
}

.mm-cta::before {
	top: -330px;
	right: -200px;
	opacity: 0.14;
}

.mm-cta__title {
	margin: 0 0 0.35rem;
	color: var(--mm-white);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}

.mm-cta__text p {
	max-width: 42rem;
	margin: 0;
}

@media (min-width: 64em) {
	.mm-cta {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* Editor content */
.mm-prose > * {
	margin-block: 0 1em;
}

.mm-prose > :last-child {
	margin-bottom: 0;
}

.mm-prose h2 {
	margin-top: 1.4em;
	font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
}

.mm-prose h3 {
	margin-top: 1.3em;
}

.mm-prose > h2:first-child,
.mm-prose > h3:first-child {
	margin-top: 0;
}

.mm-prose ul,
.mm-prose ol {
	padding-left: 1.3rem;
}

.mm-prose li + li {
	margin-top: 0.35em;
}

.mm-prose img {
	height: auto;
	border-radius: var(--mm-radius);
}

.mm-prose blockquote {
	margin-inline: 0;
	padding-left: 1rem;
	border-left: 3px solid var(--mm-gold);
	color: var(--mm-muted);
}

.mm-prose table {
	width: 100%;
	font-size: 0.9375rem;
}

.mm-prose th,
.mm-prose td {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--mm-line);
	text-align: left;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption,
.wp-block-image figcaption {
	color: var(--mm-muted);
	font-size: 0.875rem;
}

.sticky,
.bypostauthor,
.gallery-caption {
	display: block;
}

/* ==========================================================================
   8. RATES: BOARDS, TABLES, SPECIAL PRICE AND CONVERTER
   ========================================================================== */

.mm-home-rates {
	position: relative;
	isolation: isolate;
	padding-block: 0 var(--section-gap);
	overflow: hidden;
	background: var(--mm-navy);
	color: var(--mm-on-dark-muted);
	--mm-focus: var(--mm-gold-light);
}

.mm-home-rates::before {
	top: -120px;
	right: -260px;
	width: 820px;
	height: 820px;
	opacity: 0.09;
}

.mm-home-rates__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-bottom: 1.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--mm-gold-hairline);
}

.mm-home-rates__intro {
	max-width: 44rem;
}

.mm-home-rates__title {
	margin: 0 0 0.3rem;
	color: var(--mm-white);
}

.mm-home-rates__lead {
	margin: 0;
	color: var(--mm-on-dark-muted);
	font-size: 0.9688rem;
}

.mm-home-rates__grid {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}

.mm-home-rates__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.mm-home-rates__links a {
	color: var(--mm-gold-light);
	font-weight: 600;
	text-decoration-color: color-mix(in srgb, var(--mm-gold) 55%, transparent);
	text-underline-offset: 4px;
}

.mm-home-rates__links a:hover {
	color: var(--mm-white);
}

@media (min-width: 48em) {
	.mm-home-rates__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mm-home-rates__grid .mm-converter {
		grid-column: 1 / -1;
	}
}

@media (min-width: 75em) {
	.mm-home-rates__grid {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1.05fr);
	}

	.mm-home-rates__grid .mm-converter {
		grid-column: auto;
	}
}

/* Rates meta (updated time and notice) */
.mm-rates-meta {
	display: grid;
	gap: 0.35rem;
}

.mm-rates-meta p {
	margin: 0;
}

.mm-rates-meta__updated {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--mm-navy);
	font-size: 0.9375rem;
	font-weight: 600;
}

.mm-rates-meta__updated .mm-icon {
	width: 18px;
	height: 18px;
	color: var(--mm-gold-deep);
}

.mm-rates-meta__updated.is-sample span {
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: var(--mm-placeholder-bg);
	color: var(--mm-placeholder-ink);
}

.mm-rates-meta__note {
	max-width: 46rem;
	color: var(--mm-muted);
	font-size: 0.875rem;
}

.mm-rates-meta--dark .mm-rates-meta__updated {
	color: var(--mm-white);
}

.mm-rates-meta--dark .mm-rates-meta__updated .mm-icon {
	color: var(--mm-gold);
}

.mm-rates-meta--dark .mm-rates-meta__updated.is-sample span {
	background: color-mix(in srgb, var(--mm-gold) 22%, transparent);
	color: var(--mm-gold-light);
}

.mm-rates-meta--dark .mm-rates-meta__note {
	display: none;
}

/* Currency label (flag or coin + code + name) */
.mm-cur {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.mm-flag {
	display: block;
	flex: none;
	width: 28px;
	height: 21px;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
	object-fit: cover;
}

/* Toman pairs: the currency's flag with a small Iran flag on its corner.
   The ring around the small flag matches the row behind it. */
.mm-flag-pair {
	position: relative;
	display: block;
	flex: none;
	margin-right: 0.35rem;
}

.mm-flag-pair .mm-flag.mm-flag--corner {
	position: absolute;
	right: -8px;
	bottom: -6px;
	width: 16px;
	height: 12px;
	border-radius: 2px;
	box-shadow: 0 0 0 2px var(--mm-flag-ring, var(--mm-navy));
}

.mm-board {
	--mm-flag-ring: color-mix(in srgb, var(--mm-navy-soft) 50%, var(--mm-navy));
}

.mm-rates-table {
	--mm-flag-ring: var(--mm-white);
}

/* Group heading with the flag of the currency it is priced in */
.mm-group-label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.mm-group-label .mm-flag.mm-flag--small {
	width: 18px;
	height: 13.5px;
	border-radius: 2px;
}

.mm-coin,
.mm-cur__badge {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--coin, var(--mm-gold-deep));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
	color: var(--mm-white);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
}

.mm-cur__badge {
	background: var(--mm-navy-soft);
	color: var(--mm-gold-light);
	font-size: 0.5625rem;
	letter-spacing: 0.02em;
}

.mm-cur__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.mm-cur__code {
	color: inherit;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.mm-cur__name {
	overflow: hidden;
	color: var(--mm-muted);
	font-size: 0.78rem;
	font-weight: 400;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mm-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mm-rate-num {
	font-size: 1.0625rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.mm-call-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.6rem;
	padding: 0.2rem 0.75rem;
	border: 1px solid var(--mm-gold);
	border-radius: 999px;
	color: var(--mm-gold-deep);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

a.mm-call-pill:hover {
	background: var(--mm-gold);
	color: var(--mm-navy);
}

/* Rate board (navy panel) */
.mm-board {
	display: flex;
	flex-direction: column;
	padding: 1rem 1rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--mm-gold) 48%, transparent);
	border-radius: var(--mm-radius-lg);
	background: linear-gradient(180deg, color-mix(in srgb, var(--mm-navy-soft) 65%, var(--mm-navy)) 0%, var(--mm-navy-deep) 100%);
	box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 8%, transparent), var(--mm-shadow-float);
	color: var(--mm-white);
	--mm-focus: var(--mm-gold-light);
}

.mm-board__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.1rem 0.25rem 0.7rem;
	border-bottom: 1px solid var(--mm-gold-hairline);
}

.mm-board__title {
	margin: 0;
	color: var(--mm-gold-light);
	font-family: var(--mm-font-display);
	font-size: 1.4rem;
	font-weight: 400;
}

.mm-board__date {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	color: var(--mm-on-dark-muted);
	font-size: 0.8125rem;
	white-space: nowrap;
}

.mm-board__date .mm-icon {
	color: var(--mm-gold);
}

.mm-board__sample {
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--mm-gold) 22%, transparent);
	color: var(--mm-gold-light);
	font-weight: 600;
}

.mm-board__table {
	width: 100%;
	margin-top: 0.2rem;
	border-collapse: separate;
	border-spacing: 0 0.45rem;
}

.mm-board__table thead th {
	padding: 0.45rem 0.65rem 0;
	color: var(--mm-on-dark-muted);
	font-size: 0.75rem;
	font-weight: 600;
	text-align: left;
}

.mm-board__table thead th.mm-num {
	text-align: right;
}

.mm-board__table tbody tr:not(.mm-board__group) > * {
	padding: 0.55rem 0.65rem;
	border-top: 1px solid color-mix(in srgb, var(--mm-gold) 26%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--mm-gold) 26%, transparent);
	background: color-mix(in srgb, #ffffff 4%, transparent);
	text-align: left;
	vertical-align: middle;
}

.mm-board__table tbody tr:not(.mm-board__group) > :first-child {
	border-left: 1px solid color-mix(in srgb, var(--mm-gold) 26%, transparent);
	border-radius: var(--mm-radius-sm) 0 0 var(--mm-radius-sm);
}

.mm-board__table tbody tr:not(.mm-board__group) > :last-child {
	border-right: 1px solid color-mix(in srgb, var(--mm-gold) 26%, transparent);
	border-radius: 0 var(--mm-radius-sm) var(--mm-radius-sm) 0;
}

.mm-board__table tbody tr:not(.mm-board__group) > .mm-num {
	text-align: right;
}

.mm-board__group th {
	padding: 0.5rem 0.4rem 0;
	color: var(--mm-gold-light);
	font-size: 0.75rem;
	font-weight: 600;
	text-align: left;
}

.mm-board .mm-cur__name {
	color: var(--mm-on-dark-muted);
}

.mm-board .mm-rate-num {
	color: var(--mm-white);
}

.mm-board .mm-call-pill {
	color: var(--mm-gold-light);
}

.mm-board__foot {
	margin-top: auto;
	padding: 0.35rem 0.25rem 0;
}

.mm-board__link {
	color: var(--mm-gold-light);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration-color: color-mix(in srgb, var(--mm-gold) 55%, transparent);
	text-underline-offset: 4px;
}

.mm-board__link:hover {
	color: var(--mm-white);
}

/* Live rates: pulsing dot, board badge and price-change flashes. */
.mm-live-dot {
	position: relative;
	display: inline-block;
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #2ecc71;
	box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
	animation: mm-live-pulse 2s ease-out infinite;
}

@keyframes mm-live-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55);
	}

	70% {
		box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
	}
}

.mm-board__live {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.15rem 0.6rem;
	border: 1px solid rgba(46, 204, 113, 0.45);
	border-radius: 999px;
	color: #b8f5cf;
	font-weight: 600;
}

.mm-rates-meta__updated.is-live {
	color: var(--mm-navy);
}

.mm-rates-meta--dark .mm-rates-meta__updated.is-live {
	color: var(--mm-white);
}

/* Status line: pulsing dot while prices are live, clock icon otherwise. */
.mm-rates-meta__updated .mm-live-dot {
	display: none;
}

.mm-rates-meta__updated.is-live .mm-live-dot {
	display: inline-block;
	margin-inline: 4px; /* Centres the 9px dot in the 18px icon slot. */
}

.mm-rates-meta__updated.is-live .mm-icon {
	display: none;
}

/* Market feed stalled: amber "Delayed" badge without the pulse. */
.mm-board__live.is-stale {
	border-color: color-mix(in srgb, var(--mm-gold-light) 50%, transparent);
	color: var(--mm-gold-light);
}

.mm-board__live.is-stale .mm-live-dot {
	background: var(--mm-gold);
	box-shadow: none;
	animation: none;
}

/* XE's free FX widget (Rates → Currency Exchange Rates). */
.mm-xe-widget {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	margin: 0;
}

.mm-xe-widget__frame {
	display: block;
	width: 340px;
	max-width: 100%;
	border: 0;
	background: transparent; /* XE's white card sits directly on the section. */
}

.mm-xe-widget__caption {
	max-width: 340px;
	color: var(--mm-muted);
	font-size: 0.8125rem;
	text-align: center;
}

.mm-section--navy .mm-xe-widget__caption {
	color: var(--mm-on-dark-muted);
}

.mm-rate-up .mm-rate-num,
.mm-rate-down .mm-rate-num {
	border-radius: 4px;
	transition: background-color 2s ease, color 2s ease;
}

.mm-rate-up .mm-rate-num {
	animation: mm-flash-up 2.2s ease-out;
}

.mm-rate-down .mm-rate-num {
	animation: mm-flash-down 2.2s ease-out;
}

@keyframes mm-flash-up {
	0%,
	35% {
		background: rgba(46, 204, 113, 0.28);
		color: #7dffb2;
	}

	100% {
		background: transparent;
	}
}

@keyframes mm-flash-down {
	0%,
	35% {
		background: rgba(231, 76, 60, 0.28);
		color: #ffb4ab;
	}

	100% {
		background: transparent;
	}
}

.mm-rates-table .mm-rate-up .mm-rate-num {
	animation-name: mm-flash-up-light;
}

.mm-rates-table .mm-rate-down .mm-rate-num {
	animation-name: mm-flash-down-light;
}

@keyframes mm-flash-up-light {
	0%,
	35% {
		background: #dff5e7;
		color: #0f6b3a;
	}

	100% {
		background: transparent;
	}
}

@keyframes mm-flash-down-light {
	0%,
	35% {
		background: #fde4e1;
		color: #9b1c12;
	}

	100% {
		background: transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-live-dot {
		animation: none;
	}
}

/* Very small phones: tighter boards so every column fits. */
@media (max-width: 26em) {
	.mm-board {
		padding: 0.85rem 0.65rem 0.7rem;
	}

	.mm-board__table tbody tr:not(.mm-board__group) > * {
		padding: 0.5rem 0.4rem;
	}

	.mm-board__table thead th {
		padding-inline: 0.4rem;
	}

	.mm-board .mm-cur {
		gap: 0.45rem;
	}

	.mm-board .mm-flag {
		width: 22px;
		height: 16px;
	}

	.mm-board .mm-flag-pair .mm-flag.mm-flag--corner {
		right: -6px;
		bottom: -5px;
		width: 13px;
		height: 10px;
	}

	.mm-board .mm-coin {
		width: 24px;
		height: 24px;
		font-size: 0.8125rem;
	}

	.mm-board .mm-cur__name {
		white-space: normal;
	}

	.mm-board .mm-rate-num {
		font-size: 0.9375rem;
	}

	.mm-board .mm-call-pill {
		min-width: 0;
		padding-inline: 0.5rem;
	}
}

/* Full rate tables (light) */
.mm-table-wrap {
	/* position: relative keeps screen-reader text inside the scroll area. */
	position: relative;
	overflow-x: auto;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-rates-table {
	width: 100%;
	min-width: 520px;
	font-size: 0.9375rem;
}

.mm-rates-table thead th {
	padding: 0.75rem 1rem;
	background: var(--mm-navy);
	color: var(--mm-white);
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: left;
}

.mm-rates-table thead th.mm-num {
	text-align: right;
}

.mm-rates-table__group th {
	padding: 0.55rem 1rem;
	border-top: 1px solid var(--mm-line);
	background: var(--mm-mist);
	color: var(--mm-navy);
	font-size: 0.8125rem;
	font-weight: 700;
	text-align: left;
}

.mm-rates-table tbody tr:not(.mm-rates-table__group) > * {
	padding: 0.8rem 1rem;
	border-top: 1px solid var(--mm-line);
	font-weight: 400;
	text-align: left;
	vertical-align: middle;
}

.mm-rates-table tbody tr:not(.mm-rates-table__group) > .mm-num {
	text-align: right;
}

.mm-rates-table tbody tr:not(.mm-rates-table__group):hover > * {
	background: color-mix(in srgb, var(--mm-gold) 6%, #ffffff);
}

.mm-rates-table .mm-cur__code {
	color: var(--mm-ink);
}

.mm-rates-table .mm-rate-num {
	color: var(--mm-ink);
}

.mm-rates-table .mm-flag {
	box-shadow: 0 0 0 1px var(--mm-line);
}

.mm-rates-table .mm-col-type {
	color: var(--mm-muted);
	font-size: 0.875rem;
}

/* Special price */
.mm-special {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.25rem;
	margin-bottom: 1.25rem;
	padding: 0.8rem 1rem 0.8rem 1.25rem;
	border-radius: var(--mm-radius-lg);
	background: linear-gradient(100deg, var(--mm-gold-light) 0%, var(--mm-gold) 58%, color-mix(in srgb, var(--mm-gold) 82%, var(--mm-navy)) 100%);
	box-shadow: var(--mm-shadow-float);
	color: var(--mm-navy);
	--mm-focus: var(--mm-navy);
}

.mm-special p {
	margin: 0;
}

.mm-special__label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--mm-font-display);
	font-size: 1.35rem;
}

.mm-special__price {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.mm-special .mm-flag {
	box-shadow: 0 0 0 1px rgba(2, 27, 59, 0.25);
}

.mm-special__code {
	font-weight: 700;
}

.mm-special__value {
	font-size: 1.65rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.mm-special__note {
	flex: 1 1 14rem;
	font-size: 0.875rem;
}

.mm-special .mm-special__call {
	margin-left: auto;
	background: var(--mm-navy);
	background-image: none;
	color: var(--mm-white);
}

.mm-special .mm-special__call:hover {
	background: var(--mm-navy-deep);
	color: var(--mm-gold-light);
}

/* Converter */
.mm-converter {
	padding: 1.25rem;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius-lg);
	background: var(--mm-white);
	box-shadow: var(--mm-shadow-float);
	color: var(--mm-text);
	--mm-focus: var(--mm-navy);
}

.mm-converter__title {
	margin: 0;
	color: var(--mm-navy);
	font-family: var(--mm-font-display);
	font-size: 1.4rem;
	font-weight: 400;
}

.mm-converter__sub {
	margin: 0.15rem 0 1rem;
	color: var(--mm-muted);
	font-size: 0.875rem;
}

.mm-converter__field label,
.mm-converter__method label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--mm-ink);
	font-size: 0.8125rem;
	font-weight: 600;
}

.mm-converter__pair {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 46%);
	overflow: hidden;
	border: 1px solid var(--mm-line-strong);
	border-radius: var(--mm-radius-sm);
	background: var(--mm-white);
}

.mm-converter__pair:focus-within {
	border-color: var(--mm-navy);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mm-navy) 18%, transparent);
}

.mm-converter__amount,
.mm-converter__result {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 52px;
	padding: 0.6rem 0.8rem;
	border: 0;
	background: transparent;
	color: var(--mm-ink);
	font-family: var(--mm-font-body);
	font-size: 1.25rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.mm-converter__amount:focus {
	outline: none;
}

.mm-converter__result {
	overflow: hidden;
	background: var(--mm-mist);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mm-converter__pair select,
.mm-converter__method select {
	width: 100%;
	min-width: 0;
	padding: 0.6rem 2rem 0.6rem 0.75rem;
	border: 0;
	border-left: 1px solid var(--mm-line);
	background: var(--mm-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23021b3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
	color: var(--mm-navy);
	font-size: 0.875rem;
	font-weight: 600;
	text-overflow: ellipsis;
	cursor: pointer;
	appearance: none;
}

.mm-converter__pair select:focus,
.mm-converter__method select:focus {
	outline: none;
}

.mm-converter__method select {
	width: 100%;
	max-width: none;
	min-height: 44px;
	border: 1px solid var(--mm-line-strong);
	border-radius: var(--mm-radius-sm);
}

.mm-converter__method select:focus-visible {
	border-color: var(--mm-navy);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mm-navy) 18%, transparent);
}

.mm-converter__method {
	margin-top: 0.85rem;
}

.mm-converter__swap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0.55rem auto;
	border: 1px solid var(--mm-line-strong);
	border-radius: 50%;
	background: var(--mm-white);
	color: var(--mm-navy);
	cursor: pointer;
}

.mm-converter__swap:hover {
	border-color: var(--mm-navy);
	background: var(--mm-navy);
	color: var(--mm-white);
}

.mm-converter__rate {
	margin: 0.9rem 0 0.25rem;
	color: var(--mm-navy);
	font-size: 0.9375rem;
	font-weight: 600;
}

.mm-converter__rate.is-error {
	color: var(--mm-danger);
}

.mm-converter__rate a {
	color: var(--mm-navy);
}

.mm-converter__note {
	margin: 0;
	color: var(--mm-muted);
	font-size: 0.8125rem;
}

.mm-converter--large {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.mm-converter--large .mm-converter__amount,
.mm-converter--large .mm-converter__result {
	min-height: 60px;
	font-size: 1.5rem;
}

.mm-empty-note {
	color: var(--mm-muted);
}

/* ==========================================================================
   9. FORMS
   ========================================================================== */

.mm-form {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius-lg);
	background: var(--mm-white);
	--mm-focus: var(--mm-navy);
}

.mm-form__required-note {
	margin: 0 0 1rem;
	color: var(--mm-muted);
	font-size: 0.8125rem;
}

.mm-form__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.mm-field {
	grid-column: 1 / -1;
}

@media (min-width: 40em) {
	.mm-field--half {
		grid-column: span 3;
	}

	.mm-field--third {
		grid-column: span 2;
	}
}

.mm-field > label,
.mm-choice legend {
	display: block;
	margin-bottom: 0.35rem;
	padding: 0;
	color: var(--mm-ink);
	font-size: 0.9rem;
	font-weight: 600;
}

.mm-field input[type="text"],
.mm-field input[type="email"],
.mm-field input[type="tel"],
.mm-field select,
.mm-field textarea,
.search-form .search-field {
	width: 100%;
	min-height: 46px;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--mm-line-strong);
	border-radius: var(--mm-radius-sm);
	background-color: var(--mm-white);
	color: var(--mm-ink);
	font-size: 1rem;
	line-height: 1.4;
}

.mm-field textarea {
	min-height: 140px;
	resize: vertical;
}

.mm-field select {
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23021b3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	appearance: none;
}

.mm-field input:focus,
.mm-field select:focus,
.mm-field textarea:focus,
.search-form .search-field:focus {
	border-color: var(--mm-navy);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mm-navy) 20%, transparent);
}

.mm-field ::placeholder {
	color: #8791a0;
}

.mm-field.has-error input,
.mm-field.has-error select,
.mm-field.has-error textarea,
.mm-field.has-error .mm-choice__option {
	border-color: var(--mm-danger);
}

.mm-field__error {
	margin: 0.35rem 0 0;
	color: var(--mm-danger);
	font-size: 0.8125rem;
	font-weight: 500;
}

.mm-req {
	color: var(--mm-danger);
}

.mm-check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: var(--mm-text);
	font-size: 0.9375rem;
	cursor: pointer;
}

.mm-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0.15rem 0 0;
	accent-color: var(--mm-navy);
}

.mm-choice {
	margin: 0;
	padding: 0;
	border: 0;
}

.mm-choice__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.mm-choice__option {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.95rem;
	border: 1px solid var(--mm-line-strong);
	border-radius: var(--mm-radius-sm);
	font-weight: 500;
	cursor: pointer;
}

.mm-choice__option input {
	margin: 0;
	accent-color: var(--mm-navy);
}

.mm-choice__option:has(input:checked) {
	border-color: var(--mm-navy);
	background: var(--mm-navy-tint);
	color: var(--mm-navy);
}

.mm-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 1.4rem;
}

.mm-form__privacy {
	margin: 0;
	color: var(--mm-muted);
	font-size: 0.8125rem;
}

.mm-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mm-alert {
	display: flex;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
	padding: 1rem 1.15rem;
	border-radius: var(--mm-radius);
}

.mm-alert .mm-icon {
	width: 24px;
	height: 24px;
}

.mm-alert p {
	margin: 0 0 0.35rem;
}

.mm-alert p:last-child {
	margin-bottom: 0;
}

.mm-alert__title {
	font-weight: 700;
}

.mm-alert__list {
	margin: 0.4rem 0 0;
	padding-left: 1.15rem;
}

.mm-alert__list a {
	color: inherit;
}

.mm-alert--success {
	border: 1px solid color-mix(in srgb, var(--mm-success) 35%, transparent);
	background: var(--mm-success-bg);
	color: color-mix(in srgb, var(--mm-success) 70%, #000000);
}

.mm-alert--error {
	border: 1px solid color-mix(in srgb, var(--mm-danger) 35%, transparent);
	background: var(--mm-danger-bg);
	color: color-mix(in srgb, var(--mm-danger) 75%, #000000);
}

.mm-form-done {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius-lg);
	background: var(--mm-white);
}

.mm-form-done:focus {
	outline: none;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-width: 32rem;
}

.search-form label {
	flex: 1;
}

.search-form .search-submit {
	min-height: 46px;
	padding: 0.6rem 1.1rem;
	border: 0;
	border-radius: var(--mm-radius-sm);
	background: var(--mm-navy);
	color: var(--mm-white);
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   10. CONTACT, HOURS, MAP, SOCIAL AND REVIEWS
   ========================================================================== */

.mm-contact-list {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-contact-list > li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.mm-contact-list > li > .mm-icon {
	width: 20px;
	height: 20px;
	margin-top: 0.2rem;
	color: var(--mm-gold-deep);
}

.mm-contact-list a {
	color: inherit;
}

.mm-contact-list address {
	margin-bottom: 0.2rem;
}

.mm-hours {
	display: grid;
	gap: 0.35rem;
	margin: 0;
}

.mm-hours__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.mm-hours dt {
	color: var(--mm-ink);
	font-weight: 600;
}

.mm-hours dd {
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* One grid for all rows: the day column is only as wide as the longest label. */
.mm-hours--compact {
	grid-template-columns: fit-content(50%) minmax(0, 1fr);
	gap: 0.3rem 1rem;
	font-size: 0.9rem;
}

.mm-hours--compact .mm-hours__row {
	display: contents;
}

.mm-hours--compact dd {
	text-align: left;
}

.mm-map {
	overflow: hidden;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-mist);
	aspect-ratio: 4 / 3;
}

.mm-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.mm-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 38px;
	height: 38px;
	border: 1px solid var(--mm-gold-hairline);
	border-radius: 50%;
	color: var(--mm-gold-light);
	text-decoration: none;
}

.mm-social__link:hover {
	border-color: var(--mm-gold);
	background: var(--mm-gold);
	color: var(--mm-navy);
}

.mm-social__link .mm-icon {
	width: 18px;
	height: 18px;
}

.mm-topbar .mm-social {
	gap: 0.15rem;
}

.mm-topbar .mm-social__link {
	width: 30px;
	height: 30px;
	border: 0;
}

.mm-topbar .mm-social__link .mm-icon {
	width: 15px;
	height: 15px;
}

.mm-social--labels .mm-social__link {
	width: auto;
	height: auto;
	padding: 0.6rem 1rem;
	border-color: var(--mm-line);
	border-radius: var(--mm-radius-sm);
	background: var(--mm-white);
	color: var(--mm-navy);
	font-weight: 600;
}

.mm-social--labels .mm-social__link .mm-icon {
	color: var(--mm-gold-deep);
}

.mm-social--labels .mm-social__link:hover {
	border-color: var(--mm-navy);
	background: var(--mm-navy);
	color: var(--mm-white);
}

.mm-social--labels .mm-social__link:hover .mm-icon {
	color: var(--mm-gold-light);
}

.mm-contact-cards {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-contact-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-contact-card .mm-feature__icon {
	margin-bottom: 0.4rem;
}

.mm-contact-card__label {
	margin: 0;
	color: var(--mm-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.mm-contact-card__value {
	margin: 0;
	color: var(--mm-ink);
	font-size: 1.0625rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.mm-contact-card__value a {
	color: inherit;
	text-decoration: none;
}

.mm-contact-card__value a:hover {
	text-decoration: underline;
}

@media (min-width: 40em) {
	.mm-contact-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 75em) {
	.mm-contact-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mm-reviews {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-review {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	padding: 1.35rem;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-review__text {
	color: var(--mm-text);
}

.mm-review__text p:last-child {
	margin-bottom: 0;
}

.mm-review__author {
	margin: auto 0 0;
	color: var(--mm-ink);
	font-weight: 600;
}

.mm-review__detail {
	display: block;
	color: var(--mm-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.mm-review--sample {
	border-style: dashed;
	border-color: var(--mm-placeholder-line);
	background: color-mix(in srgb, var(--mm-placeholder-bg) 35%, #ffffff);
}

.mm-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--mm-line-strong);
	font-size: 1.05rem;
	line-height: 1;
}

.mm-stars__star.is-on {
	color: var(--mm-gold);
}

@media (min-width: 48em) {
	.mm-reviews {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 75em) {
	.mm-reviews {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Page-template layouts ---------------------------------------------------- */

/* Rate boards and converters side by side on light sections. */
.mm-boards {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}

@media (min-width: 56em) {
	.mm-boards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mm-rate-example {
	padding: 0.9rem 1.1rem;
	border-left: 3px solid var(--mm-gold);
	border-radius: 0 var(--mm-radius-sm) var(--mm-radius-sm) 0;
	background: var(--mm-gold-tint);
	color: var(--mm-ink);
	font-size: 0.9688rem;
}

.mm-section--mist .mm-rate-example {
	background: var(--mm-white);
}

.mm-section--navy::before {
	top: -280px;
	right: -240px;
}

/* Components placed on navy panels. */
.mm-panel--navy .mm-step__num {
	border-color: var(--mm-gold);
	background: transparent;
	color: var(--mm-gold-light);
}

.mm-panel--navy .mm-step__title,
.mm-panel--navy .mm-feature__title,
.mm-panel--navy .mm-facts dt {
	color: var(--mm-white);
}

.mm-panel--navy .mm-step__text,
.mm-panel--navy .mm-feature__text {
	color: var(--mm-on-dark-muted);
}

.mm-panel--navy .mm-checklist li {
	color: var(--mm-white);
}

.mm-panel--navy .mm-checklist .mm-icon {
	color: var(--mm-gold);
}

.mm-panel--navy .mm-actions {
	margin-top: 1.25rem;
}

.mm-feature-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.mm-feature-band p {
	margin: 0;
}

.mm-feature-band .mm-actions {
	margin-top: 0;
}

/* Social links stacked with labels (used on navy panels). */
.mm-social--stack {
	flex-direction: column;
	align-items: stretch;
}

.mm-social--stack .mm-social__link {
	justify-content: flex-start;
	width: auto;
	height: auto;
	padding: 0.55rem 0.85rem;
	border-radius: var(--mm-radius-sm);
	color: var(--mm-white);
	font-weight: 600;
}

.mm-social--stack .mm-social__link .mm-icon {
	color: var(--mm-gold-light);
}

.mm-social--stack .mm-social__link:hover .mm-icon {
	color: var(--mm-navy);
}

/* Legal page */
.mm-legal__block {
	padding-bottom: var(--mm-block-gap);
	margin-bottom: var(--mm-block-gap);
	border-bottom: 1px solid var(--mm-line);
	scroll-margin-top: calc(var(--mm-header-h) + 1rem);
}

.mm-legal__block h2 {
	margin-bottom: 0.6em;
	color: var(--mm-navy);
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
}

.mm-legal__block > :last-child {
	margin-bottom: 0;
}

.mm-toc__list {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	padding-left: 1.2rem;
	font-size: 0.9375rem;
}

.mm-toc__list a {
	color: var(--mm-text);
	text-decoration: none;
}

.mm-toc__list a:hover {
	color: var(--mm-navy);
	text-decoration: underline;
}

/* Reviews summary */
.mm-reviews-summary {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	color: var(--mm-ink);
	font-weight: 600;
}

/* Contact page */
.mm-contact-card address {
	font-style: normal;
}

.mm-contact-card .mm-small {
	margin: 0;
}

.mm-hours--card {
	font-size: 0.9375rem;
}

.mm-hours--card .mm-hours__row {
	flex-direction: column;
	gap: 0;
}

.mm-hours--card dd {
	text-align: left;
}

.mm-map--tall {
	aspect-ratio: 1 / 1;
}

@media (min-width: 64em) {
	.mm-map--tall {
		aspect-ratio: 4 / 5;
	}
}

.mm-split__media > .mm-heading:first-child,
.mm-split__media > .mm-panel__title:first-child {
	margin-top: 0;
}

/* ==========================================================================
   11. POSTS, SEARCH AND EMPTY STATES
   ========================================================================== */

.mm-posts {
	display: grid;
	gap: 1.25rem;
	margin: 0 0 var(--mm-block-gap);
	padding: 0;
	list-style: none;
}

.mm-post-card {
	overflow: hidden;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius);
	background: var(--mm-white);
}

.mm-post-card__media img {
	display: block;
	width: 100%;
	height: auto;
}

.mm-post-card__body {
	padding: 1.1rem 1.2rem 1.3rem;
}

.mm-post-card__meta {
	margin: 0 0 0.25rem;
	color: var(--mm-muted);
	font-size: 0.8125rem;
}

.mm-post-card__title {
	margin: 0 0 0.4rem;
	font-family: var(--mm-font-body);
	font-size: 1.1875rem;
	font-weight: 600;
}

.mm-post-card__title a {
	color: var(--mm-navy);
	text-decoration: none;
}

.mm-post-card__title a:hover {
	text-decoration: underline;
}

.mm-post-card__excerpt p {
	margin: 0;
	color: var(--mm-muted);
}

@media (min-width: 48em) {
	.mm-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.mm-posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 0.75rem;
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius-sm);
	color: var(--mm-navy);
	text-decoration: none;
}

.nav-links .page-numbers.current {
	border-color: var(--mm-navy);
	background: var(--mm-navy);
	color: var(--mm-white);
}

.post-navigation {
	margin-top: var(--mm-block-gap);
	padding-top: var(--mm-block-gap);
	border-top: 1px solid var(--mm-line);
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.mm-post-nav__label {
	display: block;
	color: var(--mm-muted);
	font-size: 0.8125rem;
}

.mm-empty,
.mm-search-block {
	max-width: 40rem;
}

.mm-empty .mm-actions {
	margin-top: 1rem;
}

.mm-search-block {
	margin-top: var(--section-gap);
}

.mm-search-block__title {
	font-size: 1.5rem;
}

/* ==========================================================================
   12. FOOTER AND MOBILE QUICK-ACTION BAR
   ========================================================================== */

.mm-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--mm-navy-deep);
	color: var(--mm-on-dark-muted);
	font-size: 0.9375rem;
	--mm-focus: var(--mm-gold-light);
}

.mm-footer::before {
	bottom: -380px;
	left: -300px;
	opacity: 0.07;
}

.mm-footer__main {
	padding-block: calc(var(--section-gap) * 1.1) var(--section-gap);
	border-top: 3px solid var(--mm-gold);
}

.mm-footer__grid {
	display: grid;
	gap: 2rem;
}

.mm-logo--footer img {
	width: 210px;
	height: auto;
}

.mm-footer__about {
	max-width: 30rem;
	margin: 1rem 0 1.25rem;
}

.mm-footer__title {
	margin: 0 0 0.85rem;
	color: var(--mm-white);
	font-family: var(--mm-font-display);
	font-size: 1.2rem;
	font-weight: 400;
}

.mm-footer__links {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-footer a {
	color: var(--mm-on-dark-muted);
	text-decoration: none;
}

.mm-footer a:hover {
	color: var(--mm-gold-light);
	text-decoration: underline;
}

.mm-footer .mm-contact-list a {
	color: var(--mm-white);
}

.mm-footer .mm-contact-list a.mm-link {
	color: var(--mm-gold-light);
	text-decoration: underline;
}

.mm-footer .mm-contact-list > li > .mm-icon {
	color: var(--mm-gold);
}

.mm-footer .mm-hours dt {
	color: var(--mm-white);
	font-weight: 500;
}

.mm-footer .mm-social__link {
	color: var(--mm-gold-light);
}

.mm-footer .mm-social__link:hover {
	color: var(--mm-navy);
	text-decoration: none;
}

.mm-footer__legal {
	padding-block: 1.25rem;
	border-top: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
	font-size: 0.8125rem;
}

.mm-footer__compliance {
	max-width: 62rem;
	margin: 0 0 0.75rem;
}

.mm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}

.mm-footer__copy {
	margin: 0;
}

.mm-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.mm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.mm-footer__grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
		gap: 2.5rem;
	}
}

.mm-mobile-bar {
	position: fixed;
	z-index: 90;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	padding-bottom: env(safe-area-inset-bottom, 0);
	border-top: 1px solid color-mix(in srgb, var(--mm-gold) 40%, transparent);
	background: var(--mm-navy);
	--mm-focus: var(--mm-gold-light);
}

.mm-mobile-bar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
	padding: 0.5rem 0.25rem 0.55rem;
	color: var(--mm-white);
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none;
}

.mm-mobile-bar__item .mm-icon {
	color: var(--mm-gold);
}

.mm-mobile-bar__item:hover {
	color: var(--mm-gold-light);
}

body {
	padding-bottom: 62px;
}

@media (min-width: 64em) {
	.mm-mobile-bar {
		display: none;
	}

	body {
		padding-bottom: 0;
	}
}

@media print {
	.mm-topbar,
	.mm-header,
	.mm-subnav,
	.mm-mobile-bar,
	.mm-cta-band,
	.mm-footer {
		display: none !important;
	}

	body {
		padding: 0;
		color: #000000;
	}
}
