/*
Theme Name: Mercury Migration Child
Description: Accessible Mercury child theme for immigration company reviews and visa guides.
Author: Site owner
Template: mercury
Version: 2.6.17
Text Domain: mercury-migration
*/

:root {
	--mm-primary: #174836;
	--mm-primary-dark: #103e2e;
	--mm-secondary: #183b5e;
	--mm-accent: #c89d56;
	--mm-ink: #1c2b2b;
	--mm-background: #f7f3ea;
	--mm-paper: #fff;
	--mm-success: #174836;
	--mm-warning: #8a5e14;
	--mm-border: #ded8c9;
	--mm-muted: #5e625c;
	--mm-surface: #fbfaf6;
}

/* Editorial pages, articles and system screens. */
.space-page-wrapper {
	width: min(1180px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

.mm-editorial-page {
	padding-top: 24px;
	padding-bottom: 80px;
}

.mm-editorial-hero {
	margin: 18px 0 42px;
	padding: clamp(30px, 5vw, 60px);
	border: 1px solid var(--mm-border);
	border-radius: 20px;
	background: linear-gradient(135deg, #fbfaf6 0%, #f1e8d7 100%);
}

.mm-editorial-hero--media {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
	gap: clamp(32px, 5vw, 68px);
	align-items: center;
}

.mm-editorial-hero h1 {
	max-width: 18ch;
	margin: 0;
	color: var(--mm-secondary);
	font-size: clamp(2.2rem, 4.5vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -.04em;
}

.mm-editorial-kicker,
.mm-search-result__type {
	margin: 0 0 12px;
	color: var(--mm-primary);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.mm-editorial-lead {
	max-width: 64ch;
	margin: 22px 0 0;
	color: var(--mm-muted);
	font-size: clamp(1.05rem, 1.5vw, 1.22rem);
	line-height: 1.7;
}

.mm-editorial-hero__image {
	margin: 0;
}

.mm-editorial-hero__image img {
	display: block;
	width: 100%;
	height: clamp(300px, 36vw, 460px);
	border-radius: 14px;
	box-shadow: 0 18px 42px rgba(28, 43, 43, .14);
	object-fit: cover;
}

.mm-editorial-content:not(:has(.rn-hub)) {
	max-width: 840px;
	margin: 0 auto;
	padding: clamp(26px, 5vw, 58px);
	border: 1px solid var(--mm-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(28, 43, 43, .06);
}

.mm-editorial-page--hub .mm-editorial-content {
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.mm-editorial-page--hub .mm-editorial-hero {
	margin-bottom: 28px;
	padding: 28px clamp(24px, 4vw, 44px);
}

.mm-editorial-page--hub .mm-editorial-hero h1 {
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.mm-editorial-content {
	font-size: 1.06rem;
	line-height: 1.78;
}

.mm-editorial-content > :where(p, ul, ol, blockquote) {
	max-width: 74ch;
}

.mm-editorial-content > p:first-of-type:not(.mm-content-notice p) {
	font-size: 1.12em;
}

.mm-editorial-content :where(h2, h3) {
	scroll-margin-top: 110px;
	line-height: 1.2;
}

.mm-editorial-content > h2 {
	margin-top: 2.2em;
	padding-top: .25em;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.mm-editorial-content > h3 {
	margin-top: 1.8em;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.mm-editorial-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.mmc-inline-figure {
	margin: 36px 0;
}

.mmc-inline-figure figcaption {
	margin-top: 10px;
	color: var(--mm-muted);
	font-size: .85rem;
	line-height: 1.55;
}

.mm-editorial-content :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.mm-system-search input[type="search"],
.search-form input[type="search"] {
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid #bcb8ae;
	border-radius: 8px;
	color: var(--mm-ink);
	background: #fff;
	font: inherit;
}

.mm-editorial-content textarea {
	min-height: 150px;
	resize: vertical;
}

.mm-editorial-content :where(button, input[type="submit"]),
.search-form input[type="submit"] {
	min-height: 48px;
	padding: 11px 20px;
	border: 0;
	border-radius: 8px;
	color: #fff;
	background: var(--mm-primary);
	font-weight: 800;
	cursor: pointer;
}

.search-form {
	display: flex;
	gap: 10px;
}

.mm-editorial-content label {
	font-weight: 700;
}

.mm-editorial-content .wp-block-table,
.mm-table-scroll {
	margin: 28px 0;
	border-radius: 10px;
	overflow-x: auto;
}

.mm-editorial-content table {
	min-width: 620px;
	border-collapse: collapse;
}

.mm-editorial-content :where(th, td) {
	padding: 13px 14px;
	text-align: left;
	vertical-align: top;
}

.mm-editorial-content blockquote {
	margin: 30px 0;
	padding: 20px 24px;
	border-left: 4px solid var(--mm-accent);
	border-radius: 0 10px 10px 0;
	background: var(--mm-surface);
}

.article-toc {
	border-radius: 0 12px 12px 0;
}

.article-toc a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.article-faq {
	margin-top: 52px;
}

.article-faq details {
	padding: 0;
	border: 1px solid var(--mm-border);
	border-radius: 10px;
	background: #fff;
}

.article-faq details + details {
	margin-top: 10px;
}

.article-faq summary {
	padding: 18px 20px;
}

.article-faq details p {
	margin: 0;
	padding: 0 20px 20px;
}

.mm-system-page,
.mm-search-page {
	padding-top: clamp(44px, 8vw, 96px);
	padding-bottom: clamp(70px, 10vw, 130px);
}

.mm-system-page__card,
.mm-empty-state {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(34px, 7vw, 76px);
	border: 1px solid var(--mm-border);
	border-radius: 20px;
	background: linear-gradient(135deg, #fbfaf6, #f1e8d7);
	text-align: center;
}

.mm-system-code {
	margin: 0;
	color: var(--mm-accent);
	font-size: clamp(4.5rem, 12vw, 9rem);
	font-weight: 900;
	line-height: .9;
}

.mm-system-page h1 {
	margin: 24px 0 16px;
	color: var(--mm-secondary);
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.mm-system-page__card > p:not(.mm-system-code) {
	max-width: 62ch;
	margin-right: auto;
	margin-left: auto;
	color: var(--mm-muted);
	line-height: 1.7;
}

.mm-system-search {
	max-width: 620px;
	margin: 28px auto;
}

.mm-system-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
	align-items: center;
	justify-content: center;
}

.mm-search-header {
	margin-bottom: 34px;
	padding: clamp(30px, 5vw, 54px);
	border-radius: 18px;
	background: var(--mm-surface);
}

.mm-search-header h1 {
	margin: 0;
	color: var(--mm-secondary);
	font-size: clamp(2rem, 4vw, 3.6rem);
}

.mm-search-header .mm-system-search {
	margin: 26px 0 0;
}

.mm-search-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.mm-search-result {
	display: flex;
	min-height: 260px;
	padding: 28px;
	border: 1px solid var(--mm-border);
	border-radius: 13px;
	background: #fff;
	flex-direction: column;
}

.mm-search-result h2 {
	margin: 0 0 14px;
	font-size: 1.4rem;
}

.mm-search-result h2 a {
	color: var(--mm-secondary);
	text-decoration: none;
}

.mm-search-result p:not(.mm-search-result__type) {
	color: var(--mm-muted);
	line-height: 1.65;
}

.mm-search-result__link {
	margin-top: auto;
	font-weight: 800;
}

/* Company review improvements. */
.mm-company-hero {
	padding: clamp(28px, 5vw, 52px);
	border-radius: 18px;
	background: linear-gradient(135deg, #fbfaf6, #f1e8d7);
}

.mm-company-logo {
	display: grid;
	min-height: 190px;
	padding: 12px;
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	background: #fff;
	place-items: center;
	overflow: hidden;
}

.mm-company-logo img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.mm-company-title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 4vw, 3.6rem);
	line-height: 1.05;
}

.mm-company-jump {
	display: flex;
	margin: -16px 20px 36px;
	padding: 12px 16px;
	border: 1px solid var(--mm-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(28, 43, 43, .08);
	flex-wrap: wrap;
	gap: 8px 10px;
}

.mm-company-jump a {
	padding: 8px 11px;
	border-radius: 7px;
	font-size: .9rem;
	font-weight: 750;
	text-decoration: none;
}

.mm-company-jump a:hover {
	background: var(--mm-background);
}

.mm-company-grid {
	grid-template-columns: minmax(0, 1.8fr) minmax(300px, .75fr);
	gap: 34px;
}

.mm-company-grid > article > .space-page-content {
	padding: clamp(26px, 4vw, 44px);
	border: 1px solid var(--mm-border);
	border-radius: 14px;
	background: #fff;
}

.mm-company-sidebar {
	align-self: start;
	position: sticky;
	top: 104px;
}

.mm-company-sidebar .mm-card {
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(28, 43, 43, .05);
}

.mm-company-sidebar .mm-card > .mm-company-website {
	margin: 0;
	padding-top: 20px;
}

.mm-company-sidebar h2 {
	font-size: 1.22rem;
}

.mm-directory-item {
	display: flex;
	min-height: 440px;
	border-radius: 13px;
	box-shadow: 0 8px 26px rgba(28, 43, 43, .06);
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}

.mm-directory-item:hover {
	box-shadow: 0 14px 34px rgba(28, 43, 43, .11);
	transform: translateY(-3px);
}

.mm-directory-item img {
	height: 180px;
	border-radius: 8px;
	object-fit: cover;
}

.mm-directory-item .mm-button {
	margin-top: auto;
	text-align: center;
}

/* Footer call to action. */
.mm-footer-cta {
	display: flex;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 38px 0;
	border-bottom: 1px solid rgba(255,255,255,.14);
	align-items: center;
	justify-content: space-between;
	gap: 28px 50px;
}

.mm-footer-cta p {
	margin: 0 0 8px;
	color: #ead8bc;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mm-footer-cta h2 {
	max-width: 21ch;
	margin: 0;
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.15;
}

.mm-footer-cta > div:last-child {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 22px;
}

.mm-footer-cta a {
	color: #fff;
	font-weight: 750;
}

.mm-footer-cta__button {
	padding: 12px 18px;
	border-radius: 8px;
	color: var(--mm-primary-dark) !important;
	background: #fff;
	text-decoration: none;
}

.mm-footer-response {
	font-size: .86rem;
}

@media (max-width: 900px) {
	.mm-editorial-hero--media,
	.mm-company-grid {
		grid-template-columns: 1fr;
	}

	.mm-company-sidebar {
		position: static;
	}

	.mm-search-results {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.space-page-wrapper {
		width: min(100% - 28px, 1180px);
	}

	.mm-editorial-hero,
	.mm-editorial-content:not(:has(.rn-hub)) {
		padding: 24px;
	}

	.mm-editorial-hero__image img {
		height: min(72vw, 400px);
	}

	.mm-company-hero {
		grid-template-columns: 1fr;
	}

	.mm-company-logo {
		min-height: 0;
	}

	.mm-company-jump {
		margin-right: 0;
		margin-left: 0;
	}

	.mm-footer-cta {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 520px) {
	.search-form {
		flex-direction: column;
	}

	.mm-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* Navigation-led content hubs. */
.rn-hub {
	--rn-hub-radius: 18px;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--mm-ink);
}

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

.rn-hub :where(h2, h3, a, p) {
	overflow-wrap: anywhere;
}

.rn-hub :where(.rn-hub-hero, .rn-hub-split, .rn-hub-heading, .rn-hub-compare) > * {
	min-width: 0;
}

/* Keep parent-theme article link styling out of navigation cards. */
.space-page-content .rn-hub a {
	text-decoration: none !important;
}

.space-page-content .rn-hub a.rn-hub-card,
.space-page-content .rn-hub .rn-hub-country-grid > a,
.space-page-content .rn-hub .rn-hub-link-grid > a {
	border: 1px solid var(--mm-border);
	color: var(--mm-primary);
}

.space-page-content .rn-hub a.rn-hub-card:hover,
.space-page-content .rn-hub .rn-hub-country-grid > a:hover,
.space-page-content .rn-hub .rn-hub-link-grid > a:hover {
	border-color: var(--mm-accent);
}

.space-page-content .rn-hub h2,
.space-page-content .rn-hub h3 {
	color: var(--mm-secondary);
}

.rn-hub :where(h2, h3, p) {
	margin-top: 0;
}

.rn-hub-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	margin: 0 0 clamp(54px, 8vw, 92px);
	padding: clamp(30px, 5vw, 64px);
	border: 1px solid var(--mm-border);
	border-radius: 24px;
	background: linear-gradient(135deg, #fbfaf6, #f1e8d7);
	overflow: hidden;
}

.rn-hub-hero h2 {
	max-width: 15ch;
	margin-bottom: 20px;
	font-size: clamp(2.1rem, 4.2vw, 4rem);
	line-height: 1.04;
	letter-spacing: -.035em;
}

.rn-hub-lead {
	max-width: 60ch;
	color: var(--mm-muted);
	font-size: clamp(1.05rem, 1.5vw, 1.22rem);
	line-height: 1.7;
}

.rn-hub-kicker {
	margin-bottom: 12px !important;
	color: var(--mm-primary);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rn-hub-hero__media figure,
.rn-hub-split__media figure {
	margin: 0;
}

.rn-hub-hero__media img,
.rn-hub-split__media img {
	display: block;
	width: 100%;
	height: clamp(310px, 38vw, 470px);
	border-radius: var(--rn-hub-radius);
	object-fit: cover;
}

.rn-hub-hero__media figcaption,
.rn-hub-split__media figcaption {
	margin-top: 10px;
	color: var(--mm-muted);
	font-size: .82rem;
	line-height: 1.45;
}

.rn-hub-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 22px;
	align-items: center;
	margin-top: 28px;
}

.rn-hub-button {
	display: inline-flex;
	min-height: 48px;
	padding: 12px 20px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: #fff !important;
	background: var(--mm-primary);
	font-weight: 800;
	text-decoration: none;
}

.rn-hub-button:hover {
	background: var(--mm-primary-dark);
}

.rn-hub-text-link {
	font-weight: 800;
	text-decoration: none;
}

.rn-hub-section {
	margin: 0 0 clamp(56px, 8vw, 96px);
}

.rn-hub-section--soft {
	padding: clamp(30px, 5vw, 58px);
	border-radius: 20px;
	background: var(--mm-surface);
}

.rn-hub-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
	gap: 24px 54px;
	align-items: end;
	margin-bottom: 32px;
}

.rn-hub-heading .rn-hub-kicker {
	grid-column: 1 / -1;
	margin-bottom: -14px !important;
}

.rn-hub-heading h2,
.rn-hub-split h2,
.rn-hub-compare h2 {
	margin-bottom: 0;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	line-height: 1.12;
}

.rn-hub-heading > p:last-child {
	margin-bottom: 4px;
	color: var(--mm-muted);
	line-height: 1.7;
}

.rn-hub-card-grid {
	display: grid;
	gap: 20px;
}

.rn-hub-card-grid--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rn-hub-card-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rn-hub-card {
	display: flex;
	min-height: 245px;
	padding: 26px;
	border: 1px solid var(--mm-border);
	border-radius: 14px;
	background: var(--mm-paper);
	box-shadow: 0 10px 28px rgba(28, 43, 43, .06);
	flex-direction: column;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rn-hub-card:hover {
	border-color: var(--mm-accent);
	box-shadow: 0 16px 36px rgba(28, 43, 43, .11);
	transform: translateY(-3px);
}

.rn-hub-card > span {
	margin-bottom: 28px;
	color: var(--mm-primary);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rn-hub-card h3 {
	margin-bottom: 12px;
	font-size: 1.3rem;
}

.rn-hub-card p {
	color: var(--mm-muted);
	line-height: 1.6;
}

.rn-hub-card strong {
	margin-top: auto;
	color: var(--mm-primary);
}

.rn-hub-split {
	display: grid;
	grid-template-columns: minmax(340px, .95fr) minmax(0, 1.05fr);
	gap: clamp(34px, 6vw, 76px);
	align-items: center;
	margin: 0 0 clamp(60px, 9vw, 108px);
}

.rn-hub-split--reverse > :first-child {
	order: 2;
}

.rn-hub-steps {
	display: grid;
	gap: 0;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: hub-step;
}

.rn-hub-steps li {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 4px 14px;
	padding: 18px 0;
	border-bottom: 1px solid var(--mm-border);
	counter-increment: hub-step;
}

.rn-hub-steps li::before {
	display: grid;
	grid-row: span 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	background: var(--mm-primary);
	font-weight: 800;
	content: counter(hub-step);
	place-content: center;
}

.rn-hub-steps span {
	color: var(--mm-muted);
	line-height: 1.55;
}

.rn-hub-link-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.rn-hub-link-grid a {
	display: grid;
	gap: 8px;
	padding: 22px;
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
}

.rn-hub-link-grid b {
	font-size: 1.08rem;
}

.rn-hub-link-grid span {
	color: var(--mm-muted);
	line-height: 1.55;
}

.rn-hub-compare {
	display: grid;
	grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
	gap: 40px 70px;
	margin: 0 0 clamp(60px, 9vw, 100px);
	padding: clamp(34px, 5vw, 58px);
	border-radius: 20px;
	color: #fff;
	background: var(--mm-primary-dark);
}

.rn-hub-compare :where(h2, .rn-hub-kicker) {
	color: #fff;
}

.rn-hub-compare p:not(.rn-hub-kicker) {
	color: #e7eee9;
}

.rn-hub-checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.rn-hub-checks span {
	padding: 15px 16px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 9px;
	background: rgba(255,255,255,.08);
	font-weight: 700;
}

.rn-hub-country-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.rn-hub-country-grid a {
	display: flex;
	min-height: 175px;
	padding: 24px;
	border: 1px solid var(--mm-border);
	border-top: 4px solid var(--mm-accent);
	border-radius: 12px;
	background: #fff;
	flex-direction: column;
	text-decoration: none;
}

.rn-hub-country-grid b {
	margin-bottom: 12px;
	color: var(--mm-secondary);
	font-size: 1.25rem;
}

.rn-hub-country-grid span {
	color: var(--mm-muted);
	line-height: 1.55;
}

.rn-hub-country-grid em {
	margin-top: auto;
	padding-top: 18px;
	color: var(--mm-primary);
	font-style: normal;
	font-weight: 800;
}

.rn-hub > .article-faq {
	margin: 0 0 72px;
	padding: clamp(28px, 5vw, 52px);
	border: 1px solid var(--mm-border);
	border-radius: 18px;
	background: #fff;
}

.mm-directory-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
	gap: 40px 70px;
	align-items: center;
	margin-bottom: 30px;
	padding: clamp(32px, 5vw, 60px);
	border: 1px solid var(--mm-border);
	border-radius: 20px;
	background: linear-gradient(135deg, #fbfaf6, #f1e8d7);
}

.mm-directory-hero h1 {
	margin: 0 0 18px;
	color: var(--mm-secondary);
	font-size: clamp(2.3rem, 4vw, 4rem);
	line-height: 1.05;
}

.mm-directory-hero p:not(.mm-directory-kicker) {
	max-width: 62ch;
	margin: 0;
	color: var(--mm-muted);
	font-size: 1.08rem;
	line-height: 1.7;
}

.mm-directory-kicker {
	margin: 0 0 12px;
	color: var(--mm-primary);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.mm-directory-hero__checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.mm-directory-hero__checks span {
	padding: 18px 14px;
	border: 1px solid var(--mm-border);
	border-radius: 10px;
	background: #fff;
	font-weight: 750;
	text-align: center;
}

.mm-directory-guidance {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 18px 28px;
	align-items: center;
	margin-bottom: 28px;
	padding: 20px 24px;
	border-left: 4px solid var(--mm-accent);
	background: var(--mm-surface);
}

.mm-directory-guidance p {
	margin: 0;
	color: var(--mm-muted);
}

.mm-directory-guidance a {
	font-weight: 800;
	white-space: nowrap;
}

.mm-directory-safety {
	display: grid;
	grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
	gap: 36px 70px;
	margin: 64px 0;
	padding: clamp(32px, 5vw, 54px);
	border-radius: 18px;
	color: #fff;
	background: var(--mm-primary-dark);
}

.mm-directory-safety :where(h2, .mm-directory-kicker) {
	color: #fff;
}

.mm-directory-safety h2 {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	line-height: 1.12;
}

.mm-directory-safety ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-directory-safety li {
	padding: 15px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 8px;
	background: rgba(255,255,255,.08);
}

@media (max-width: 980px) {
	.rn-hub-card-grid--four,
	.rn-hub-country-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rn-hub-card-grid--three,
	.rn-hub-link-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.rn-hub-hero,
	.rn-hub-split,
	.rn-hub-compare,
	.rn-hub-heading {
		grid-template-columns: 1fr;
	}

	.mm-directory-hero,
	.mm-directory-safety,
	.mm-directory-guidance {
		grid-template-columns: 1fr;
	}

	.rn-hub-hero {
		padding: 24px;
	}

	.rn-hub-hero__media img,
	.rn-hub-split__media img {
		height: min(72vw, 420px);
	}

	.rn-hub-split--reverse > :first-child {
		order: 0;
	}

	.rn-hub-heading .rn-hub-kicker {
		margin-bottom: -8px !important;
	}
}

@media (max-width: 540px) {
	.rn-hub-card-grid--four,
	.rn-hub-card-grid--three,
	.rn-hub-country-grid,
	.rn-hub-link-grid,
	.rn-hub-checks {
		grid-template-columns: 1fr;
	}

	.mm-directory-hero__checks,
	.mm-directory-safety ul {
		grid-template-columns: 1fr;
	}

	.rn-hub-card {
		min-height: 210px;
	}

	.rn-hub-section--soft,
	.rn-hub-compare,
	.rn-hub > .article-faq {
		padding: 24px;
	}
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	background: var(--mm-background);
	color: var(--mm-ink);
}

.space-box {
	background: var(--mm-paper);
}

:where(.space-page-content, .mm-front-page, .mm-company-page, .mm-directory, .mm-author-page) :where(h1, h2, h3) {
	color: var(--mm-secondary);
}

:where(.space-page-content, .mm-front-page, .mm-company-page, .mm-directory, .mm-author-page) a:not(.mm-button) {
	color: var(--mm-primary);
}

:where(.space-page-content, .mm-front-page, .mm-company-page, .mm-directory, .mm-author-page) a:not(.mm-button):hover {
	color: var(--mm-primary-dark);
}

/* Compact three-screen informational homepage. */
.mm-home {
	--mm-home-ink: var(--mm-ink);
	--mm-home-soft: var(--mm-background);
	max-width: 1600px;
	margin: 0 auto;
	color: var(--mm-home-ink);
	background: var(--mm-paper);
}

.mm-home-screen {
	display: grid;
	align-content: center;
	min-height: min(720px, calc(100svh - 110px));
	padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 72px);
}

.mm-home-screen + .mm-home-screen {
	border-top: 1px solid var(--mm-border);
}

.mm-home-hero {
	gap: 36px;
	overflow: hidden;
	background:
		radial-gradient(circle at 84% 14%, rgba(200, 157, 86, .24), transparent 30%),
		linear-gradient(135deg, #fbfaf6 0%, #f7f3ea 60%, #ead8bc 100%);
}

.mm-home-kicker {
	margin: 0 0 12px;
	color: var(--mm-primary);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mm-home h1 {
	max-width: 18ch;
	margin: 0;
	color: var(--mm-secondary);
	font-size: clamp(2rem, 5vw, 4.5rem);
	line-height: 1.04;
	letter-spacing: -.035em;
}

.mm-home h2 {
	max-width: 18ch;
	margin: 0;
	color: var(--mm-secondary);
	line-height: 1.08;
	letter-spacing: -.025em;
}

.mm-home-lead,
.mm-home-section-heading > p:last-child,
.mm-home-trust-copy > p {
	max-width: 66ch;
	margin: 22px 0 0;
	color: var(--mm-muted);
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.7;
}

.mm-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 24px;
	align-items: center;
	margin-top: 30px;
}

.mm-home-text-link {
	color: var(--mm-primary-dark);
	font-weight: 750;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.mm-home-check {
	padding: 22px 24px;
	border: 1px solid var(--mm-border);
	border-radius: 16px;
	background: var(--mm-paper);
	box-shadow: 0 20px 60px rgba(24, 59, 94, .18);
}

.mm-home-check-title,
.mm-home-principles h3 {
	margin: 0 0 16px;
	font-size: 1.05rem;
	font-weight: 800;
}

.mm-home-check ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding-left: 20px;
}

.mm-home-routes {
	gap: 34px;
	background: var(--mm-paper);
}

.mm-home-visual {
	position: relative;
	min-width: 0;
}

.mm-home-visual .mmc-inline-figure {
	height: 100%;
	margin: 0;
}

.mm-home-visual .mmc-inline-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
}

.mm-home-visual .mmc-inline-figure figcaption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.mm-home-visual--hero .mmc-inline-image {
	aspect-ratio: 4 / 3;
	border-radius: 28px;
	box-shadow: 0 28px 80px rgba(24, 59, 94, .2);
}

.mm-home-visual--hero .mm-home-check {
	position: relative;
	margin: -64px 18px 0;
}

.mm-home-section-heading h2,
.mm-home-trust h2 {
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.mm-home-card-grid {
	display: grid;
	gap: 14px;
}

.mm-home-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	padding: 20px;
	border: 1px solid var(--mm-border);
	border-radius: 16px;
	background: linear-gradient(145deg, #fff 0%, #fbfaf6 100%);
	color: var(--mm-home-ink);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mm-home-card:hover {
	border-color: var(--mm-primary);
	box-shadow: 0 12px 30px rgba(28, 43, 43, .08);
	transform: translateY(-2px);
}

.mm-home-card span {
	grid-row: 1 / 3;
	color: var(--mm-primary);
	font-size: .78rem;
	font-weight: 800;
}

.mm-home-card strong {
	font-size: 1.08rem;
}

.mm-home-card small {
	color: var(--mm-muted);
	font-size: .92rem;
	line-height: 1.45;
}

.mm-home-destinations {
	display: grid;
	gap: 14px;
	align-content: center;
	padding: clamp(28px, 5vw, 56px);
}

.mm-home-destinations h3 {
	margin: 0;
	color: var(--mm-secondary);
	font-size: clamp(1.55rem, 3vw, 2.35rem);
	line-height: 1.1;
}

.mm-home-destinations > p:not(.mm-home-kicker) {
	margin: 0;
	color: var(--mm-muted);
	line-height: 1.65;
}

.mm-home-destination-feature {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--mm-border);
	border-radius: 24px;
	background: var(--mm-surface);
	box-shadow: 0 18px 48px rgba(28, 43, 43, .08);
}

.mm-home-destinations nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mm-home-destinations a {
	padding: 7px 12px;
	border: 1px solid var(--mm-border);
	border-radius: 999px;
	color: var(--mm-home-ink);
	font-size: .9rem;
	text-decoration: none;
}

.mm-home-destinations a:hover {
	border-color: var(--mm-primary);
	color: var(--mm-primary-dark);
}

.mm-home-trust {
	gap: 36px;
	background: var(--mm-secondary);
	color: #fff;
}

.mm-home-trust h2,
.mm-home-trust .mm-home-kicker,
.mm-home-trust .mm-home-text-link {
	color: #fff;
}

.mm-home-trust-copy > p {
	color: #ead8bc;
}

.mm-home-principles {
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 16px;
	background: rgba(255, 255, 255, .06);
}

.mm-home-visual--trust {
	overflow: hidden;
	border-radius: 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}

.mm-home-visual--trust .mmc-inline-image {
	aspect-ratio: 16 / 10;
}

.mm-home .mm-button--light {
	background: #fff;
	color: var(--mm-secondary);
}

.mm-home-faq {
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 16px;
	background: rgba(255, 255, 255, .06);
}

.mm-home-faq h3 {
	margin: 0 0 12px;
	color: #fff;
}

.mm-home-faq details {
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.mm-home-faq summary {
	cursor: pointer;
	font-weight: 750;
}

.mm-home-faq p {
	margin: 10px 0 0;
	color: #ead8bc;
	line-height: 1.55;
}

.mm-home-principles dl,
.mm-home-principles dl > div {
	display: grid;
	gap: 6px;
}

.mm-home-principles dl {
	gap: 18px;
	margin: 0;
}

.mm-home-principles dt {
	font-weight: 800;
}

.mm-home-principles dd {
	margin: 0;
	color: #ead8bc;
	line-height: 1.55;
}

.mm-home-disclaimer {
	margin: 0;
	color: #ead8bc;
	font-size: .86rem;
}

@media (min-width: 760px) {
	.mm-home-hero {
		grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
		align-items: center;
	}

	.mm-home-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mm-home-destination-feature {
		grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
	}

	.mm-home-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
	}

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

@media (max-width: 759px) {
	.mm-home-screen {
		min-height: auto;
	}

	.mm-home-visual--hero .mm-home-check {
		margin-top: -34px;
	}

	.mm-home-destination-feature .mm-home-visual {
		min-height: 240px;
	}
}

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

/* Navigation-led Relocation Nigeria homepage. */
.rn-home {
	--rn-navy: #183b5e;
	--rn-green: #174836;
	--rn-deep: #103e2e;
	--rn-gold: #c89d56;
	--rn-cream: #f7f3ea;
	--rn-paper: #fff;
	--rn-ink: #1c2b2b;
	--rn-muted: #5e625c;
	--rn-line: #ded8c9;
	color: var(--rn-ink);
	background: var(--rn-cream);
}

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

.rn-home-shell {
	width: min(100% - 40px, 1260px);
	margin-inline: auto;
}

.rn-home-eyebrow {
	margin: 0 0 14px;
	color: var(--rn-green);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rn-home h1,
.rn-home h2,
.rn-home h3 {
	color: var(--rn-navy);
}

.rn-home h1 {
	max-width: 13ch;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.7rem, 5vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -.04em;
}

.rn-home h2 {
	max-width: 16ch;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.1rem, 4vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -.025em;
}

.rn-home-lead {
	max-width: 640px;
	margin: 24px 0 0;
	color: var(--rn-muted);
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	line-height: 1.65;
}

.rn-home-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 30px;
}

.rn-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 8px;
	background: var(--rn-green);
	color: #fff !important;
	font-size: .94rem;
	font-weight: 800;
	text-decoration: none;
}

.rn-home-link {
	color: var(--rn-green) !important;
	font-size: .94rem;
	font-weight: 800;
	text-decoration: none;
}

.rn-home-hero {
	background: radial-gradient(circle at 82% 20%, rgba(200, 157, 86, .22), transparent 29%), linear-gradient(135deg, #fbfaf6 0%, #f7f3ea 62%, #ead8bc 100%);
}

.rn-home-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
	align-items: center;
	gap: clamp(36px, 5vw, 68px);
	min-height: 640px;
	padding-block: 70px 78px;
}

.rn-home-hero-media,
.rn-home-media,
.rn-home-guide-media,
.rn-home-company-media {
	position: relative;
	min-width: 0;
}

.rn-home :where(.rn-home-hero-media, .rn-home-media, .rn-home-guide-media, .rn-home-company-media) .mmc-inline-figure {
	height: 100%;
	margin: 0;
}

.rn-home :where(.rn-home-hero-media, .rn-home-media, .rn-home-guide-media, .rn-home-company-media) .mmc-inline-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rn-home :where(.rn-home-hero-media, .rn-home-media, .rn-home-guide-media, .rn-home-company-media) figcaption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.rn-home-hero-media .mmc-inline-image {
	aspect-ratio: 4 / 3;
	border-radius: 26px;
	box-shadow: 0 28px 70px rgba(24, 59, 94, .2);
}

.rn-home-float {
	position: absolute;
	right: -12px;
	bottom: -34px;
	max-width: 280px;
	padding: 18px;
	border: 1px solid var(--rn-line);
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(24, 59, 94, .16);
}

.rn-home-float strong,
.rn-home-float span {
	display: block;
}

.rn-home-float strong {
	color: var(--rn-navy);
	font-size: 1rem;
}

.rn-home-float span {
	margin-top: 6px;
	color: var(--rn-muted);
	font-size: .88rem;
	line-height: 1.55;
}

.rn-home-solves {
	background: var(--rn-paper);
	border-block: 1px solid var(--rn-line);
}

.rn-home-solves-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.rn-home-solve {
	padding: 30px;
	border-right: 1px solid var(--rn-line);
}

.rn-home-solve:last-child {
	border-right: 0;
}

.rn-home-solve strong {
	display: block;
	color: var(--rn-navy);
	font-size: 1.08rem;
}

.rn-home-solve p {
	margin: 9px 0 0;
	color: var(--rn-muted);
	font-size: .98rem;
	line-height: 1.6;
}

.rn-home-section {
	padding-block: clamp(68px, 8vw, 100px);
	background: var(--rn-paper);
}

.rn-home-section--soft {
	background: var(--rn-cream);
}

.rn-home-section-head {
	display: block;
	max-width: 760px;
	margin-bottom: 34px;
}

.rn-home .rn-home-section-head h2 {
	max-width: 24ch;
	text-wrap: balance;
}

.rn-home-section-head > p {
	max-width: 65ch;
	margin: 16px 0 0;
	color: var(--rn-muted);
	font-size: 1rem;
	line-height: 1.65;
}

.rn-home-route-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.rn-home-route {
	overflow: hidden;
	border: 1px solid var(--rn-line);
	border-radius: 16px;
	background: linear-gradient(145deg, #fff, #fbfaf6);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rn-home-route:hover {
	border-color: var(--rn-green);
	box-shadow: 0 15px 35px rgba(28, 43, 43, .08);
	transform: translateY(-3px);
}

.rn-home-route-media .mmc-inline-figure,
.rn-home-guide-media .mmc-inline-figure {
	margin: 0;
}

.rn-home-route-media .mmc-inline-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.rn-home-route-media figcaption,
.rn-home-guide-media figcaption {
	display: none;
}

.rn-home-route-copy {
	display: flex;
	min-height: 245px;
	flex-direction: column;
	padding: 24px;
}

.rn-home-route-copy > span {
	color: var(--rn-gold);
	font-size: .78rem;
	font-weight: 900;
	letter-spacing: .08em;
}

.rn-home-route h3 {
	margin: 24px 0 10px;
	font-size: 1.35rem;
}

.rn-home-route h3 a,
.rn-home-guide h3 a {
	color: var(--rn-ink) !important;
	text-decoration: none;
}

.rn-home-route h3 a:hover,
.rn-home-guide h3 a:hover {
	color: var(--rn-green) !important;
}

.rn-home-route p {
	margin: 0;
	color: var(--rn-muted);
	font-size: .98rem;
	line-height: 1.6;
}

.rn-home-route-link {
	margin-top: auto;
	padding-top: 20px;
	color: var(--rn-green) !important;
	font-size: .92rem;
	font-weight: 800;
	text-decoration: none;
}

.rn-home-destination {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	border: 1px solid var(--rn-line);
	border-radius: 24px;
	background: var(--rn-paper);
	box-shadow: 0 20px 50px rgba(28, 43, 43, .08);
}

.rn-home-destination .rn-home-media .mmc-inline-image {
	min-height: 470px;
}

.rn-home-destination-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 5vw, 60px);
}

.rn-home-destination-copy h2 {
	font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.rn-home-destination-copy > p:not(.rn-home-eyebrow) {
	color: var(--rn-muted);
	font-size: 1rem;
	line-height: 1.65;
}

.rn-home-country-list {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 18px;
}

.rn-home-country-list a {
	padding: 8px 12px;
	border: 1px solid var(--rn-line);
	border-radius: 999px;
	background: #fff;
	color: var(--rn-green) !important;
	font-size: .9rem;
	font-weight: 750;
	text-decoration: none;
}

.rn-home-guide-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.rn-home-guide {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--rn-line);
	border-radius: 17px;
	background: var(--rn-paper);
	color: var(--rn-ink) !important;
	text-decoration: none;
}

.rn-home-guide-media .mmc-inline-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.rn-home-guide-copy {
	padding: 24px;
}

.rn-home-guide small {
	color: var(--rn-green);
	font-size: .78rem;
	font-weight: 850;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.rn-home-guide h3 {
	margin: 10px 0;
	font-size: 1.35rem;
	line-height: 1.3;
}

.rn-home-guide p {
	margin: 0;
	color: var(--rn-muted);
	font-size: .98rem;
	line-height: 1.6;
}

.rn-home-company {
	background: var(--rn-navy);
	color: #fff;
}

.rn-home-company-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(36px, 5vw, 64px);
	padding-block: clamp(70px, 8vw, 100px);
}

.rn-home-company h2 {
	color: #fff;
}

.rn-home-company .rn-home-eyebrow,
.rn-home-company > p {
	color: #ead8bc;
}

.rn-home-company-grid > div > p:not(.rn-home-eyebrow) {
	color: #ead8bc;
	font-size: 1rem;
	line-height: 1.65;
}

.rn-home-button--light {
	background: #fff;
	color: var(--rn-navy) !important;
}

.rn-home-link--light {
	color: #fff !important;
}

.rn-home-proof {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 24px;
}

.rn-home-proof > div {
	padding-top: 13px;
	border-top: 1px solid rgba(255, 255, 255, .2);
}

.rn-home-proof strong,
.rn-home-proof span {
	display: block;
}

.rn-home-proof strong {
	font-size: .9rem;
}

.rn-home-proof span {
	margin-top: 5px;
	color: #ead8bc;
	font-size: .82rem;
	line-height: 1.45;
}

.rn-home-company-media {
	overflow: hidden;
	border-radius: 22px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

.rn-home-company-media .mmc-inline-image {
	aspect-ratio: 16 / 10;
}

.rn-home-editorial {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	align-items: start;
	gap: clamp(40px, 6vw, 72px);
}

.rn-home-editorial > div > p:not(.rn-home-eyebrow) {
	color: var(--rn-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.rn-home-editorial-list {
	display: grid;
	gap: 12px;
}

.rn-home-editorial-row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: flex-start;
	gap: 14px;
	padding: 20px 18px;
	border-bottom: 1px solid var(--rn-line);
}

.rn-home-editorial-row b {
	display: grid;
	width: 36px;
	height: 36px;
	grid-row: 1 / span 2;
	place-items: center;
	border-radius: 50%;
	background: rgba(23, 72, 54, .1);
	color: var(--rn-green);
}

.rn-home-editorial-row strong,
.rn-home-editorial-row > p {
	display: block;
}

.rn-home-editorial-row strong {
	grid-column: 2;
	color: var(--rn-navy);
	font-size: 1.08rem;
}

.rn-home-editorial-row > p {
	grid-column: 2;
	margin: 0;
	color: var(--rn-muted);
	font-size: .98rem;
	line-height: 1.55;
}

@media (max-width: 980px) {
	.rn-home-hero-grid,
	.rn-home-destination,
	.rn-home-company-grid,
	.rn-home-editorial {
		grid-template-columns: 1fr;
	}

	.rn-home-route-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rn-home-hero-grid {
		padding-top: 52px;
	}

	.rn-home-hero-media {
		max-width: 720px;
	}
}

@media (max-width: 720px) {
	.rn-home-shell {
		width: min(100% - 32px, 1260px);
	}

	.rn-home-solves-grid,
	.rn-home-guide-grid,
	.rn-home-proof {
		grid-template-columns: 1fr;
	}

	.rn-home-solve {
		border-right: 0;
		border-bottom: 1px solid var(--rn-line);
	}

	.rn-home-section-head {
		display: block;
	}

	.rn-home-section-head > p {
		margin-top: 16px;
	}

	.rn-home-float {
		right: 12px;
	}
}

@media (max-width: 520px) {
	.rn-home-route-grid {
		grid-template-columns: 1fr;
	}

	.rn-home-route {
		min-height: 220px;
	}

	.rn-home h1 {
		font-size: clamp(2.35rem, 12vw, 3.3rem);
	}
}

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

/* Site header. */
.mm-skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 10px 14px;
	border-radius: 6px;
	background: var(--mm-paper);
	color: var(--mm-ink);
	font-weight: 700;
	transform: translateY(-160%);
}

.mm-skip-link:focus {
	transform: translateY(0);
}

.mm-site-header {
	position: sticky;
	top: 0;
	z-index: 9990;
	border-bottom: 1px solid var(--mm-border);
	background: rgba(251, 250, 246, .96);
	backdrop-filter: blur(14px);
}

.mm-header-inner {
	display: flex;
	width: min(1180px, calc(100% - 32px));
	min-height: 72px;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
}

.mm-header-brand,
.mm-footer-brand {
	display: grid;
	gap: 4px;
}

.mm-header-brand .text-logo,
.mm-footer-brand .text-logo {
	color: var(--mm-secondary);
	font-size: 1.12rem;
	font-weight: 850;
	line-height: 1.1;
	text-decoration: none;
}

.mm-header-brand > span,
.mm-footer-brand > span {
	color: var(--mm-muted);
	font-size: .72rem;
}

.mm-header-brand img {
	width: auto;
	max-width: 210px;
	max-height: 48px;
}

.mm-brand-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.mm-desktop-nav {
	display: none;
	margin-left: auto;
}

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

.mm-primary-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.mm-primary-menu a {
	display: block;
	padding: 12px 10px;
	border-radius: 6px;
	color: var(--mm-ink);
	font-size: .92rem;
	font-weight: 700;
	text-decoration: none;
}

.mm-primary-menu a:hover,
.mm-primary-menu .current-menu-item > a,
.mm-primary-menu .current-menu-ancestor > a {
	color: var(--mm-primary-dark);
	background: var(--mm-surface);
}

.mm-primary-menu .menu-item-has-children {
	position: relative;
}

.mm-primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--mm-border);
	border-radius: 10px;
	background: var(--mm-paper);
	box-shadow: 0 16px 40px rgba(28, 43, 43, .12);
	list-style: none;
}

.mm-primary-menu .menu-item-has-children:hover > .sub-menu,
.mm-primary-menu .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.mm-header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.mm-header-directory {
	display: none;
	padding: 10px 14px;
	border: 1px solid var(--mm-primary);
	border-radius: 7px;
	color: var(--mm-paper);
	background: var(--mm-primary);
	font-size: .88rem;
	font-weight: 750;
	text-decoration: none;
}

.mm-header-directory:hover {
	color: var(--mm-paper);
	background: var(--mm-primary-dark);
}

.mm-menu-button {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	place-content: center;
	gap: 5px;
	cursor: pointer;
}

.mm-menu-button span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--mm-ink);
}

.space-header-search-block-ins > p {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
}

.space-header-search-block {
	background: rgba(24, 59, 94, .98);
}

.space-header-search-block input[type="search"],
.mm-mobile-search input[type="search"],
.mm-directory-filters :where(input, select) {
	border: 1px solid var(--mm-border);
	background: var(--mm-paper);
	color: var(--mm-ink);
}

/* Mobile navigation drawer. */
.space-mobile-menu {
	visibility: hidden;
	opacity: 0;
}

.space-mobile-menu.active {
	visibility: visible;
	opacity: 1;
}

body.mm-menu-open {
	overflow: hidden;
}

.space-mobile-menu-block {
	right: 0;
	left: auto;
	width: min(420px, 100%);
	height: 100%;
	background: var(--mm-paper);
	box-shadow: -20px 0 60px rgba(28, 43, 43, .18);
}

.space-mobile-menu-block-ins {
	display: flex;
	height: 100%;
	padding: 28px;
	flex-direction: column;
	overflow-y: auto;
}

.space-mobile-menu-header {
	padding-right: 52px;
}

.space-mobile-menu-list {
	margin-top: 32px;
}

.mobile-menu a {
	display: block;
	padding: 13px 0;
	border-bottom: 1px solid var(--mm-border);
	color: var(--mm-ink);
	font-size: 1.05rem;
	font-weight: 750;
	text-decoration: none;
}

.mobile-menu .sub-menu {
	display: block !important;
	padding-left: 18px;
	list-style: none;
}

.mobile-menu .sub-menu a {
	font-size: .92rem;
	font-weight: 600;
}

.mm-mobile-search {
	margin-top: 24px;
}

.mm-mobile-directory {
	margin-top: 20px;
	text-align: center;
}

.space-mobile-menu-copy {
	margin-top: auto;
	padding-top: 28px;
	color: var(--mm-muted);
	font-size: .82rem;
	line-height: 1.5;
}

/* Informational footer. */
.mm-site-footer {
	color: var(--mm-background);
	background: var(--mm-secondary);
}

.mm-footer-main,
.mm-footer-bottom {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.mm-footer-main {
	display: grid;
	gap: 36px;
	padding: 58px 0 44px;
}

.mm-footer-brand .text-logo {
	color: #fff;
}

.mm-footer-brand > span {
	color: #ead8bc;
}

.mm-footer-brand img {
	width: auto;
	max-width: 220px;
	max-height: 54px;
}

.mm-footer-brand .mm-brand-logo {
	width: fit-content;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--mm-background);
}

.mm-footer-brand p {
	max-width: 42ch;
	margin: 18px 0 0;
	color: #ead8bc;
	line-height: 1.65;
}

.mm-footer-column h2 {
	margin: 0 0 16px;
	color: #fff;
	font-size: .82rem;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.mm-footer-column ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-footer-column a,
.mm-footer-bottom a {
	color: #ead8bc;
	text-decoration: none;
}

.mm-footer-column a:hover,
.mm-footer-bottom a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mm-footer-bottom {
	display: flex;
	padding: 20px 0 28px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	color: #ead8bc;
	font-size: .82rem;
}

.mm-footer-bottom p {
	margin: 0;
}

.mm-footer-bottom nav {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

@media (min-width: 720px) {
	.mm-footer-main {
		grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
	}

	.mm-header-directory {
		display: inline-block;
	}
}

@media (min-width: 1020px) {
	.mm-desktop-nav {
		display: block;
	}

	.mm-menu-button {
		display: none;
	}
}

.mm-icon-button {
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	place-items: center;
}

.mm-icon-button svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.mm-social-link {
	display: inline-block;
	margin-left: 10px;
	font-size: 13px;
	font-weight: 700;
}

button.space-close-icon {
	border: 0;
	background: transparent;
	cursor: pointer;
}

/* Restore keyboard focus removed by the parent theme. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid #ffbf47 !important;
	outline-offset: 3px !important;
}

.mm-company-page,
.mm-directory,
.mm-trust-box,
.mm-author-page {
	line-height: 1.65;
}

.mm-card,
.mm-trust-box,
.mm-author-card,
.mm-directory-item {
	background: var(--mm-paper);
	border: 1px solid var(--mm-border);
	border-radius: 10px;
	padding: 22px;
}

.mm-company-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 28px;
}

.mm-company-grid aside .mm-card + .mm-card {
	margin-top: 20px;
}

.mm-facts > div {
	display: grid;
	grid-template-columns: minmax(120px, 1fr) 1.2fr;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mm-border);
}

.mm-facts dt {
	font-weight: 700;
}

.mm-facts dd {
	margin: 0;
}

.mm-directory-grid,
.mm-author-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.mm-directory-item img {
	width: 100%;
	height: 150px;
	object-fit: contain;
}

.mm-button {
	display: inline-block;
	padding: 10px 16px;
	color: #fff;
	background: var(--mm-primary);
	border-radius: 6px;
	text-decoration: none;
}

.mm-button:hover {
	color: #fff;
	background: var(--mm-primary-dark);
}

.mm-stars {
	color: var(--mm-warning);
	letter-spacing: 1px;
}

.mm-verified,
.mm-review-verified {
	display: inline-block;
	padding: 3px 8px;
	color: var(--mm-success);
	background: #e8f1eb;
	border-radius: 4px;
	font-size: .9rem;
	font-weight: 700;
}

.mm-not-verified {
	color: var(--mm-warning);
	background: #f7ecda;
}

.mm-author-card {
	display: grid;
	grid-template-columns: 144px minmax(0, 1fr);
	gap: 28px;
	margin: 28px 0;
}

.mm-author-card img {
	border-radius: 50%;
}

.mm-author-role,
.mm-disclaimer {
	color: var(--mm-muted);
}

.mm-contributor-profile {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: 30px;
	margin: 28px 0;
	padding: 24px;
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	background: var(--mm-paper);
}

.mm-contributor-profile__photo .mmc-inline-figure {
	margin: 0;
}

.mm-contributor-profile__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.mm-contributor-profile__photo figcaption {
	margin-top: 8px;
	color: var(--mm-muted);
	font-size: .82rem;
}

.mm-contributor-profile__label {
	display: inline-block;
	margin: 0 0 6px;
	padding: 4px 9px;
	border-radius: 999px;
	color: var(--mm-primary-dark);
	background: var(--mm-background);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.mm-contributor-profile__body h3 {
	margin: 0 0 4px;
}

.mm-contributor-profile__role {
	margin-top: 0;
	color: var(--mm-muted);
	font-weight: 700;
}

.mm-contributor-profile__facts > div {
	display: grid;
	grid-template-columns: minmax(130px, .45fr) minmax(0, 1.55fr);
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mm-border);
}

.mm-contributor-profile__facts dt {
	font-weight: 700;
}

.mm-contributor-profile__facts dd {
	margin: 0;
}

.mm-contributor-profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.mm-contributor-profile__note {
	margin-bottom: 0;
	padding: 14px 16px;
	border-left: 4px solid var(--mm-accent);
	background: var(--mm-background);
}

.mm-contributor-bylines {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 24px;
}

/* The content plugin owns the homepage shell, regardless of template nesting. */
.mm-home-contributors {
	box-sizing: border-box;
	width: min(calc(100% - 40px), 1260px);
	margin: 32px auto 40px;
}

.mm-home-contributors .mm-contributor-bylines {
	margin: 0;
}

.mm-home-contributors .mm-contributor-byline {
	min-width: 0;
	box-sizing: border-box;
}

.mm-home-contributors .mm-contributor-byline__photo {
	flex: 0 0 58px;
}

.mm-home-contributors .mm-contributor-byline div {
	min-width: 0;
	overflow-wrap: anywhere;
}

.mm-contributor-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--mm-border);
	border-left: 4px solid var(--mm-accent);
	border-radius: 8px;
	background: var(--mm-surface);
}

.mm-contributor-byline__photo {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
}

.mm-contributor-byline div {
	display: grid;
	gap: 2px;
}

.mm-contributor-byline span,
.mm-contributor-byline small {
	color: var(--mm-muted);
}

.mm-contributor-byline span {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.mm-contributor-byline strong {
	font-size: 1rem;
}

.mm-directory-filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto;
	gap: 14px;
	align-items: end;
	margin: 0 0 28px;
	padding: 18px;
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	background: var(--mm-surface);
}

.mm-directory-filters label {
	display: grid;
	gap: 6px;
	font-weight: 700;
}

.mm-directory-filters input,
.mm-directory-filters select {
	min-height: 44px;
	padding: 8px 10px;
}

.mm-table-scroll {
	overflow-x: auto;
}

.mm-comparison {
	width: 100%;
	border-collapse: collapse;
}

.mm-comparison th,
.mm-comparison td {
	padding: 12px;
	border: 1px solid var(--mm-border);
	text-align: left;
	vertical-align: top;
}

.mm-comparison th {
	color: var(--mm-secondary);
	background: var(--mm-background);
}

.mm-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.mm-breadcrumbs p {
	margin: 0;
}

.mm-breadcrumbs li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--mm-muted);
}

:is(.mm-pagination, .navigation.pagination) {
	margin: 36px 0 16px;
	padding: 22px 12px;
	border-top: 1px solid #ded8c9;
}

:is(.mm-pagination, .navigation.pagination) ul.page-numbers,
.navigation.pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-pagination ul.page-numbers > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(.mm-pagination, .navigation.pagination) :is(a, span).page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
	padding: 10px 15px;
	border: 1px solid #ded8c9;
	border-radius: 10px;
	background: #fbfaf6;
	color: #203d5f !important;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	box-shadow: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

:is(.mm-pagination, .navigation.pagination) a.page-numbers:hover {
	background: #edf2ee;
	border-color: #174836;
	color: #174836 !important;
}

:is(.mm-pagination, .navigation.pagination) .page-numbers.current {
	background: #203d5f;
	border-color: #203d5f;
	color: #fff !important;
	box-shadow: inset 0 -3px 0 #c99b48;
}

:is(.mm-pagination, .navigation.pagination) a.page-numbers:focus-visible {
	outline: 3px solid #c99b48;
	outline-offset: 3px;
}

:is(.mm-pagination, .navigation.pagination) .page-numbers.dots {
	min-width: 24px;
	padding-inline: 4px;
	border-color: transparent;
	background: transparent;
}

@media (max-width: 520px) {
	:is(.mm-pagination, .navigation.pagination) { padding-inline: 0; }
	:is(.mm-pagination, .navigation.pagination) :is(a, span).page-numbers { padding-inline: 12px; }
	:is(.mm-pagination, .navigation.pagination) :is(.prev, .next) { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
	:is(.mm-pagination, .navigation.pagination) a.page-numbers { transition: none; }
}

.mm-html-sitemap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.mm-taxonomy-intro {
	max-width: 780px;
	margin-bottom: 28px;
}

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

.mm-content-notice {
	margin: 0 0 24px;
	padding: 16px 18px;
	border-left: 4px solid var(--mm-accent);
	background: var(--mm-background);
}

.article-toc {
	margin: 28px 0;
	padding: 22px 24px;
	border-left: 4px solid var(--mm-accent);
	background: var(--mm-surface);
}

.article-toc h2 {
	margin-top: 0;
}

.article-toc :where(ol, ul) {
	margin-bottom: 0;
}

.article-faq details {
	padding: 16px 0;
	border-bottom: 1px solid var(--mm-border);
}

.article-faq summary {
	color: var(--mm-primary);
	font-weight: 700;
	cursor: pointer;
}

.space-page-content :where(table, th, td) {
	border-color: var(--mm-border);
}

.space-page-content th {
	color: var(--mm-secondary);
	background: var(--mm-background);
}

.space-page-content blockquote {
	border-left-color: var(--mm-accent);
	background: var(--mm-surface);
}

.space-page-content > h2 {
	margin-top: 1.8em;
}

.space-page-content li + li {
	margin-top: .45em;
}

.mm-company-hero {
	display: grid;
	grid-template-columns: minmax(110px, 160px) 1fr;
	gap: 28px;
	align-items: center;
	margin: 28px 0;
	padding: 28px;
	border: 1px solid var(--mm-border);
	border-radius: 14px;
	background: var(--mm-background);
}

.mm-company-logo img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.mm-company-title {
	margin: 0 0 10px;
	color: var(--mm-secondary);
}

.mm-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
}

.mm-stars {
	color: var(--mm-warning);
	letter-spacing: 2px;
}

.mm-verified {
	display: inline-block;
	margin: 8px 0;
	padding: 5px 10px;
	border-radius: 999px;
	background: #e8f1eb;
	color: var(--mm-success);
	font-size: 14px;
	font-weight: 700;
}

.mm-not-verified {
	background: #fce8e6;
	color: #a50e0e;
}

.mm-company-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 32px;
}

.mm-card,
.mm-trust-box {
	margin: 24px 0;
	padding: 22px;
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	background: var(--mm-surface);
	border-top-color: var(--mm-accent);
}

.mm-facts {
	margin: 0;
}

.mm-facts > div {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mm-border);
}

.mm-facts dt {
	font-weight: 700;
}

.mm-facts dd {
	margin: 0;
}

.mm-score-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	padding: 8px 0;
}

.mm-button {
	display: inline-block;
	padding: 11px 18px;
	border-radius: 7px;
	background: var(--mm-primary);
	color: #fff !important;
	font-weight: 700;
}

.mm-button:hover {
	background: var(--mm-primary-dark);
}

.mm-directory-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.mm-directory-item {
	padding: 20px;
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	background: var(--mm-paper);
}

.mm-directory-item h3 {
	margin: 12px 0 8px;
	font-size: 1.25rem;
}

.mm-review-meta {
	margin-bottom: 8px;
	color: var(--mm-muted);
	font-size: 14px;
}

.mm-review-verified {
	color: var(--mm-success);
	font-weight: 700;
}

.mm-disclaimer {
	font-size: 14px;
	color: var(--mm-muted);
}

@media (max-width: 800px) {
	.mm-company-grid,
	.mm-directory-grid,
	.mm-directory-filters,
	.mm-html-sitemap,
	.mm-contributor-profile,
	.mm-contributor-bylines {
		grid-template-columns: 1fr;
	}

	.mm-contributor-profile__photo {
		max-width: 360px;
	}

	.mm-company-hero {
		grid-template-columns: 90px 1fr;
		padding: 20px;
	}
}

@media (max-width: 520px) {
	.mm-company-grid,
	.mm-directory-grid,
	.mm-author-posts,
	.mm-author-card {
		grid-template-columns: 1fr;
	}

	.mm-company-hero {
		grid-template-columns: 1fr;
	}

	.mm-company-logo {
		max-width: 130px;
	}

	.mm-facts > div {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.mm-contributor-profile__facts > div {
		grid-template-columns: 1fr;
		gap: 3px;
	}
}

/* Final visual layer: intentionally follows parent-compatible component rules. */
.mm-company-hero {
	padding: clamp(28px, 5vw, 52px);
	border-radius: 18px;
	background: linear-gradient(135deg, #fbfaf6, #f1e8d7);
}

.mm-company-logo {
	display: grid;
	max-width: none;
	min-height: 190px;
	padding: 12px;
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	background: #fff;
	place-items: center;
	overflow: hidden;
}

.mm-company-logo img,
.mm-directory-item img {
	width: 100%;
	height: 180px;
	border-radius: 8px;
	object-fit: cover;
}

.mm-company-grid {
	grid-template-columns: minmax(0, 1.8fr) minmax(300px, .75fr);
	gap: 34px;
}

.mm-directory-item {
	display: flex;
	min-height: 440px;
	padding: 22px;
	border-radius: 13px;
	box-shadow: 0 8px 26px rgba(28, 43, 43, .06);
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}

.mm-directory-item:hover {
	box-shadow: 0 14px 34px rgba(28, 43, 43, .11);
	transform: translateY(-3px);
}

.mm-directory-item .mm-button {
	margin-top: auto;
	text-align: center;
}

.mm-taxonomy-hero {
	margin: 20px 0 30px;
	padding: clamp(30px, 5vw, 56px);
	border: 1px solid var(--mm-border);
	border-radius: 18px;
	background: linear-gradient(135deg, #fbfaf6, #f1e8d7);
}

.mm-taxonomy-hero h1 {
	margin: 0 0 16px;
	color: var(--mm-secondary);
	font-size: clamp(2.2rem, 4vw, 3.8rem);
	line-height: 1.06;
}

.mm-taxonomy-intro {
	margin: 0;
	color: var(--mm-muted);
	font-size: 1.08rem;
	line-height: 1.7;
}

.mm-author-page {
	padding-top: 24px;
	padding-bottom: 80px;
}

.mm-author-card {
	margin: 20px 0 42px;
	padding: clamp(28px, 5vw, 52px);
	border-radius: 18px;
	background: linear-gradient(135deg, #fbfaf6, #f1e8d7);
}

.mm-author-card img {
	box-shadow: 0 12px 30px rgba(28, 43, 43, .14);
}

.mm-author-posts article {
	display: flex;
	min-height: 190px;
	padding: 24px;
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	background: #fff;
	flex-direction: column;
}

.mm-author-posts h3 {
	margin-top: 0;
}

@media (max-width: 900px) {
	.mm-company-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 800px) {
	.mm-company-hero {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.mm-company-logo {
		max-width: none;
		min-height: 0;
	}
}

/* Shared breadcrumb styling for Core, Yoast and Rank Math. */
.mm-breadcrumbs,
.mm-breadcrumbs.space-breadcrumbs,
.rank-math-breadcrumb {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--mm-border);
	border-radius: 10px;
	background: var(--mm-surface);
	color: var(--mm-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
}

.mm-breadcrumbs ol,
.mm-breadcrumbs p,
.rank-math-breadcrumb p {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.mm-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	list-style: none;
}

.mm-breadcrumbs ol > li {
	display: inline-flex;
	align-items: baseline;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.mm-breadcrumbs ol > li + li::before {
	content: "›";
	flex: 0 0 auto;
	margin-right: 10px;
	color: var(--mm-accent);
}

.mm-breadcrumbs a,
.mm-breadcrumbs a:visited,
.rank-math-breadcrumb a,
.rank-math-breadcrumb a:visited {
	border: 0;
	background: transparent;
	color: var(--mm-primary) !important;
	font-weight: 500;
	text-decoration: none !important;
	box-shadow: none;
}

.mm-breadcrumbs a:hover,
.rank-math-breadcrumb a:hover {
	color: var(--mm-primary-dark) !important;
	text-decoration: underline !important;
	text-decoration-color: var(--mm-accent) !important;
	text-underline-offset: 3px;
}

.mm-breadcrumbs [aria-current="page"],
.mm-breadcrumbs .breadcrumb_last,
.rank-math-breadcrumb .last {
	color: var(--mm-secondary);
	font-weight: 600;
}

.mm-breadcrumbs .separator,
.rank-math-breadcrumb .separator {
	margin: 0 6px;
	color: var(--mm-accent);
}

@media (max-width: 540px) {
	.mm-breadcrumbs,
	.mm-breadcrumbs.space-breadcrumbs,
	.rank-math-breadcrumb {
		padding: 10px 12px;
		font-size: 13px;
	}
}

/* Individual people pages and the compact contributor directory. */
.mm-editorial-page--contributor .mm-editorial-content {
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.mm-editorial-page--contributor .mm-editorial-hero h1 {
	max-width: 28ch;
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.mm-editorial-page--contributor .mm-contributor-profile {
	grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	padding: clamp(20px, 4vw, 42px);
}

.mm-contributor-directory {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 28px 0;
}

.mm-contributor-card {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: start;
	gap: 22px;
	margin: 0 0 24px;
	padding: 24px;
	border: 1px solid var(--mm-border);
	border-radius: 14px;
	background: var(--mm-surface);
}

.mm-contributor-directory .mm-contributor-card {
	margin: 0;
}

.mm-contributor-card__photo .mmc-inline-figure {
	margin: 0;
}

.mm-contributor-card__photo img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.mm-contributor-card__photo figcaption {
	margin: 8px 0 0;
	font-size: 11px;
	line-height: 1.4;
}

.mm-contributor-card h3 {
	margin: 0 0 10px;
	font-size: 1.3rem;
	line-height: 1.3;
}

.mm-contributor-card p {
	margin: 0 0 18px;
	color: var(--mm-muted);
	font-size: .95rem;
}

.mm-contributor-card *,
.mm-contributor-profile__body {
	min-width: 0;
	overflow-wrap: anywhere;
}

.mm-profile-back {
	margin: 24px 0;
	font-weight: 700;
}

@media (max-width: 800px) {
	.mm-contributor-directory,
	.mm-editorial-page--contributor .mm-contributor-profile {
		grid-template-columns: 1fr;
	}
	.mm-editorial-page--contributor .mm-contributor-profile__photo {
		max-width: 260px;
	}
}

@media (max-width: 420px) {
	.mm-contributor-card {
		grid-template-columns: 1fr;
		padding: 20px;
	}
}

/* One keyboard-accessible link covers the complete contributor card. */
.mm-contributor-byline--linked {
	position: relative;
	isolation: isolate;
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease;
}

.mm-contributor-byline--linked a.mm-contributor-byline__link {
	position: static;
	border: 0;
	box-shadow: none;
	color: var(--mm-primary) !important;
	text-decoration: underline !important;
	text-decoration-color: var(--mm-accent) !important;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.mm-contributor-byline__link::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 8px;
	content: "";
}

.mm-contributor-byline--linked:hover,
.mm-contributor-byline--linked:focus-within {
	border-color: var(--mm-accent);
	background: var(--mm-background);
}

.mm-contributor-byline--linked:focus-within {
	outline: 3px solid var(--mm-primary);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.mm-contributor-byline--linked {
		transition: none;
	}
}
