/*
 * Miramar Editorial System — Phase 3 approved production implementation
 * Loaded after the base theme stylesheet by functions.php.
 */

:root {
	--p3-pine-900: #082b23;
	--p3-pine-800: #0d3d32;
	--p3-forest-700: #174f42;
	--p3-ivory-100: #f7f2e8;
	--p3-paper-200: #eee6d7;
	--p3-mist-200: #e7efeb;
	--p3-ink-900: #17372f;
	--p3-ink-600: #52665f;
	--p3-gold-600: #9b7837;
	--p3-gold-500: #c3a766;
	--p3-rule: rgba(23, 55, 47, .2);
	--p3-serif: "Noto Serif TC", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
	--p3-sans: Inter, "Noto Sans TC", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
	--p3-page: 1280px;
	--p3-text: 760px;
	--p3-gutter: clamp(24px, 4.5vw, 72px);
	--p3-rule-line: 1px solid var(--p3-rule);
}

html {
	scroll-behavior: smooth;
}

body.wp-theme-miramar-corporate {
	background: var(--p3-ivory-100);
	color: var(--p3-ink-900);
	font-family: var(--p3-sans);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: 1.75;
}

body.wp-theme-miramar-corporate :where(h1, h2, h3, h4) {
	margin-top: 0;
	color: inherit;
	text-wrap: balance;
}

body.wp-theme-miramar-corporate :where(p, li, dd, figcaption) {
	text-wrap: pretty;
}

body.wp-theme-miramar-corporate :where(a) {
	text-underline-offset: .22em;
	text-decoration-thickness: 1px;
	transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.wp-theme-miramar-corporate :where(a:hover) {
	color: var(--p3-gold-600);
}

body :where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--p3-gold-600);
	outline-offset: 4px;
}

body.wp-theme-miramar-corporate .wp-block-template-part:first-child {
	position: relative;
	z-index: 20;
	border-bottom: var(--p3-rule-line);
}

body.wp-theme-miramar-corporate .wp-block-template-part:first-child > .wp-block-group {
	min-height: 72px;
	padding-inline: var(--p3-gutter);
}

body.wp-theme-miramar-corporate .wp-block-navigation {
	column-gap: clamp(.8rem, 1.5vw, 1.5rem);
	font-size: .78rem;
	font-weight: 650;
	letter-spacing: .015em;
}

body.wp-theme-miramar-corporate .wp-block-navigation-item__content {
	padding-block: .4rem;
	border-bottom: 1px solid transparent;
}

body.wp-theme-miramar-corporate .wp-block-navigation-item__content:hover {
	border-bottom-color: var(--p3-gold-600);
}

body.wp-theme-miramar-corporate .miramar-eyebrow {
	margin-bottom: 1rem;
	color: var(--p3-gold-600) !important;
	font-family: var(--p3-sans);
	font-size: .7rem !important;
	font-weight: 800;
	letter-spacing: .15em;
	line-height: 1.45;
	text-transform: uppercase;
}

body.wp-theme-miramar-corporate :where(.wp-block-button__link, button[type="submit"], .forminator-button) {
	min-height: 44px;
	padding: .65rem 0 !important;
	border: 0 !important;
	border-bottom: 1px solid currentColor !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font-size: .82rem !important;
	font-weight: 750 !important;
}

body.wp-theme-miramar-corporate :where(.wp-block-button__link, button[type="submit"], .forminator-button):hover {
	color: var(--p3-gold-600) !important;
}

/* Remaining service-page family. */
body.wp-theme-miramar-corporate :where(
	.miramar-travel-planning,
	.miramar-agency-page,
	.miramar-golf-page,
	.miramar-contact-page
) {
	--p3-section-wide: clamp(7rem, 10vw, 10rem);
	--p3-section-standard: clamp(5rem, 7vw, 7rem);
	--p3-section-compact: clamp(3.5rem, 5vw, 5rem);
}

body.wp-theme-miramar-corporate :where(
	.miramar-tp-section,
	.miramar-agency-section,
	.miramar-golf-section,
	.miramar-contact-section
) {
	padding-inline: max(var(--p3-gutter), calc((100vw - var(--p3-page)) / 2));
	padding-block: var(--p3-section-standard);
}

body.wp-theme-miramar-corporate :where(
	.miramar-tp-section,
	.miramar-agency-section,
	.miramar-golf-section,
	.miramar-contact-section
):nth-of-type(3n + 1) {
	padding-block: var(--p3-section-wide);
}

body.wp-theme-miramar-corporate :where(
	.miramar-tp-section,
	.miramar-agency-section,
	.miramar-golf-section,
	.miramar-contact-section
):nth-of-type(3n) {
	padding-block: var(--p3-section-compact);
}

body.wp-theme-miramar-corporate :where(
	.miramar-tp-section,
	.miramar-agency-section,
	.miramar-golf-section,
	.miramar-contact-section
) h2 {
	max-width: 18em;
	font-family: var(--p3-sans);
	font-size: clamp(1.9rem, 2.8vw, 2.65rem) !important;
	font-weight: 700;
	line-height: 1.23;
	letter-spacing: -.025em;
}

body.wp-theme-miramar-corporate :where(
	.miramar-tp-section,
	.miramar-agency-section,
	.miramar-golf-section,
	.miramar-contact-section
) h3 {
	font-family: var(--p3-sans);
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.45;
}

/* Hero hierarchy differs by business purpose, but uses one publication grid. */
body.wp-theme-miramar-corporate :where(.miramar-tp-hero, .miramar-agency-hero, .miramar-contact-hero) {
	min-height: 560px;
	padding: 0;
	border: 0;
}

body.wp-theme-miramar-corporate :where(
	.miramar-tp-hero-inner,
	.miramar-agency-hero > .wp-block-group,
	.miramar-contact-hero-copy
) {
	width: min(46rem, 52vw);
	margin-left: max(var(--p3-gutter), calc((100vw - var(--p3-page)) / 2));
	padding: clamp(5rem, 8vw, 8rem) 0;
}

body.wp-theme-miramar-corporate :where(.miramar-tp-hero, .miramar-agency-hero, .miramar-contact-hero) h1 {
	max-width: 10em;
	font-family: var(--p3-serif);
	font-size: clamp(3.6rem, 5.2vw, 5rem) !important;
	font-weight: 500;
	line-height: 1.07;
	letter-spacing: -.045em;
}

body.wp-theme-miramar-corporate .miramar-golf-hero {
	min-height: 720px;
}

body.wp-theme-miramar-corporate .miramar-golf-hero .wp-block-cover__image-background {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 58%;
}

body.wp-theme-miramar-corporate .miramar-golf-hero .wp-block-cover__background {
	background: rgba(8, 43, 35, .68) !important;
	opacity: 1 !important;
}

body.wp-theme-miramar-corporate .miramar-golf-hero-copy {
	width: min(42rem, 52vw);
	margin-left: 0;
	padding-block: 7rem;
}

body.wp-theme-miramar-corporate .miramar-golf-hero h1 {
	max-width: 9em;
	font-family: var(--p3-serif);
	font-size: clamp(3.8rem, 5.4vw, 5.2rem) !important;
	font-weight: 500;
	line-height: 1.07;
	letter-spacing: -.045em;
}

/* Existing images become editorial pauses instead of native-size rectangles. */
body.wp-theme-miramar-corporate :where(
	.miramar-tp-image,
	.miramar-agency-hero-image,
	.miramar-agency-operation-image,
	.miramar-golf-editorial-image
) {
	margin: 0;
	overflow: hidden;
}

body.wp-theme-miramar-corporate :where(.miramar-tp-image, .miramar-agency-operation-image) {
	aspect-ratio: 5 / 4;
}

body.wp-theme-miramar-corporate .miramar-agency-hero-image {
	aspect-ratio: 4 / 5;
}

body.wp-theme-miramar-corporate .miramar-golf-editorial-image {
	aspect-ratio: 16 / 10;
}

body.wp-theme-miramar-corporate :where(
	.miramar-tp-image,
	.miramar-agency-hero-image,
	.miramar-agency-operation-image,
	.miramar-golf-editorial-image
) img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: cover;
	object-position: center;
}

body.wp-theme-miramar-corporate :where(.miramar-tp-split, .miramar-agency-split) {
	gap: clamp(3rem, 8vw, 8rem);
	align-items: center;
}

body.wp-theme-miramar-corporate :where(.miramar-tp-split, .miramar-agency-split):nth-of-type(even) {
	flex-direction: row-reverse;
}

/* Cards and equal columns become ruled editorial indexes. */
body.wp-theme-miramar-corporate :where(
	.miramar-tp-services,
	.miramar-tp-process,
	.miramar-agency-services,
	.miramar-golf-ledger,
	.miramar-golf-regions,
	.miramar-contact-routes
) {
	gap: 0;
	border-top: var(--p3-rule-line);
}

body.wp-theme-miramar-corporate :where(
	.miramar-tp-services,
	.miramar-tp-process,
	.miramar-agency-services,
	.miramar-golf-ledger,
	.miramar-golf-regions,
	.miramar-contact-routes
) > * {
	min-width: 0;
	padding: 1.35rem 1.6rem 1.35rem 0 !important;
	border: 0 !important;
	border-bottom: var(--p3-rule-line) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.wp-theme-miramar-corporate :where(
	.miramar-agency-service,
	.miramar-golf-ledger-item,
	.miramar-contact-route
) {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.wp-theme-miramar-corporate :where(.miramar-agency-number, .miramar-golf-number) {
	color: var(--p3-gold-600);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .1em;
}

body.wp-theme-miramar-corporate :where(.miramar-service-faq details) {
	margin: 0;
	padding: 1.15rem 0;
	border: 0;
	border-top: var(--p3-rule-line);
	border-radius: 0;
	background: transparent;
}

body.wp-theme-miramar-corporate :where(.miramar-service-faq details:last-child) {
	border-bottom: var(--p3-rule-line);
}

/* Contact and form surfaces: quiet editorial utility. */
body.wp-theme-miramar-corporate .miramar-contact-direct {
	border-top: var(--p3-rule-line);
}

body.wp-theme-miramar-corporate .miramar-contact-direct-row {
	padding: 1rem 0;
	border-bottom: var(--p3-rule-line);
}

body.wp-theme-miramar-corporate :where(.forminator-ui, .forminator-custom-form) {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.wp-theme-miramar-corporate :where(.forminator-input, .forminator-textarea, .forminator-select) {
	border: 0 !important;
	border-bottom: var(--p3-rule-line) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Legal documents read as edited reference matter. */
body.wp-theme-miramar-corporate .miramar-legal-hero {
	padding: clamp(4.5rem, 7vw, 7rem) max(var(--p3-gutter), calc((100vw - var(--p3-page)) / 2));
}

body.wp-theme-miramar-corporate .miramar-legal-hero h1 {
	max-width: 12em;
	font-family: var(--p3-serif);
	font-size: clamp(3rem, 4.5vw, 4.5rem) !important;
	font-weight: 500;
	line-height: 1.08;
}

body.wp-theme-miramar-corporate .miramar-legal-document {
	padding: clamp(5rem, 8vw, 8rem) max(var(--p3-gutter), calc((100vw - var(--p3-page)) / 2));
}

body.wp-theme-miramar-corporate .miramar-legal-document > * {
	max-width: var(--p3-text);
	margin-inline: auto;
}

body.wp-theme-miramar-corporate .miramar-legal-document h2 {
	margin-top: 4.5rem;
	padding-top: 1.2rem;
	border-top: var(--p3-rule-line);
	font-family: var(--p3-sans);
	font-size: clamp(1.55rem, 2.3vw, 2.1rem) !important;
	font-weight: 700;
}

body.wp-theme-miramar-corporate .miramar-legal-document h3 {
	margin-top: 2.5rem;
	font-family: var(--p3-sans);
	font-size: 1rem;
	font-weight: 750;
}

body.wp-theme-miramar-corporate .miramar-legal-toc {
	margin-bottom: 4rem;
	padding: 1.5rem 0 !important;
	border-top: var(--p3-rule-line);
	border-bottom: var(--p3-rule-line);
	border-radius: 0 !important;
	background: transparent !important;
}

/* Native WordPress archive and article templates become publication indexes. */
body:is(.archive, .search, .blog):not(.home) main,
body.single-post main {
	width: min(var(--p3-page), calc(100% - 2 * var(--p3-gutter)));
	margin-inline: auto;
	padding-block: clamp(5rem, 8vw, 8rem);
}

body:is(.archive, .search, .blog):not(.home) main > .wp-block-group:first-child,
body.single-post main > .wp-block-group:first-child {
	padding: 0 0 3rem !important;
	border-bottom: var(--p3-rule-line);
	background: transparent !important;
}

body:is(.archive, .search, .blog):not(.home) h1,
body.single-post h1 {
	max-width: 12em;
	font-family: var(--p3-serif);
	font-size: clamp(3rem, 5vw, 4.8rem) !important;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.04em;
}

body:is(.archive, .search, .blog):not(.home) .wp-block-post-template {
	display: block;
	margin: 0;
	padding: 0;
	border-top: var(--p3-rule-line);
}

body:is(.archive, .search, .blog):not(.home) .wp-block-post {
	display: grid;
	grid-template-columns: minmax(6rem, 1fr) 3fr;
	gap: 3rem;
	padding: 1.5rem 0;
	border-bottom: var(--p3-rule-line);
}

body:is(.archive, .search, .blog):not(.home) .wp-block-post-title {
	margin: 0;
	font-family: var(--p3-sans);
	font-size: clamp(1.2rem, 2vw, 1.8rem);
	font-weight: 700;
}

body.single-post .wp-block-post-content {
	max-width: var(--p3-text);
	margin: 4rem auto 0;
	font-size: 1.05rem;
}

body.single-post .wp-block-post-content :where(h2, h3) {
	margin-top: 3.5rem;
	padding-top: 1rem;
	border-top: var(--p3-rule-line);
	font-family: var(--p3-sans);
}

/* Tables and company facts retain the same ruled colophon treatment. */
body.wp-theme-miramar-corporate :where(table, .miramar-company-data, .miramar-company-record) {
	border: 0;
	border-top: var(--p3-rule-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-variant-numeric: tabular-nums;
}

body.wp-theme-miramar-corporate :where(th, td, .miramar-company-data p, .miramar-company-record > *) {
	padding-block: .8rem;
	border: 0;
	border-bottom: var(--p3-rule-line);
	background: transparent;
}

/* One compact footer rhythm across all templates. */
body.wp-theme-miramar-corporate .wp-block-template-part:last-child {
	background: var(--p3-pine-900);
}

body.wp-theme-miramar-corporate .wp-block-template-part:last-child > .wp-block-group {
	padding: clamp(2.5rem, 4vw, 4rem) max(var(--p3-gutter), calc((100vw - var(--p3-page)) / 2));
}

body.wp-theme-miramar-corporate .wp-block-template-part:last-child :where(p, li, a) {
	font-size: .75rem;
	line-height: 1.65;
}

@media (max-width: 900px) {
	body.wp-theme-miramar-corporate :where(.miramar-tp-hero, .miramar-agency-hero, .miramar-contact-hero) {
		min-height: 500px;
	}

	body.wp-theme-miramar-corporate :where(
		.miramar-tp-hero-inner,
		.miramar-agency-hero > .wp-block-group,
		.miramar-contact-hero-copy
	) {
		width: min(34rem, 58vw);
	}

	body.wp-theme-miramar-corporate .miramar-golf-hero {
		min-height: 640px;
	}
}

@media (max-width: 700px) {
	body.wp-theme-miramar-corporate {
		font-size: 15px;
	}

	body.wp-theme-miramar-corporate .wp-block-template-part:first-child > .wp-block-group {
		min-height: 62px;
		padding-inline: 20px;
	}

	body.wp-theme-miramar-corporate :where(
		.miramar-tp-section,
		.miramar-agency-section,
		.miramar-golf-section,
		.miramar-contact-section
	) {
		padding-inline: 24px;
		padding-block: 4.5rem;
	}

	body.wp-theme-miramar-corporate :where(
		.miramar-tp-hero,
		.miramar-agency-hero,
		.miramar-contact-hero
	) {
		min-height: 0;
	}

	body.wp-theme-miramar-corporate :where(
		.miramar-tp-hero-inner,
		.miramar-agency-hero > .wp-block-group,
		.miramar-contact-hero-copy
	) {
		width: calc(100% - 48px) !important;
		max-width: none !important;
		margin: 0;
		padding: 4.5rem 24px;
	}

	body.wp-theme-miramar-corporate :where(.miramar-tp-hero, .miramar-agency-hero, .miramar-contact-hero) h1,
	body.wp-theme-miramar-corporate .miramar-golf-hero h1,
	body.wp-theme-miramar-corporate .miramar-legal-hero h1,
	body:is(.archive, .search, .blog):not(.home) h1,
	body.single-post h1 {
		font-size: clamp(2.55rem, 12vw, 3.25rem) !important;
		overflow-wrap: anywhere;
	}

	body.miramar-ja.wp-theme-miramar-corporate :where(.miramar-tp-hero, .miramar-agency-hero, .miramar-contact-hero) h1 {
		font-size: clamp(2.25rem, 10vw, 2.8rem) !important;
	}

	body.wp-theme-miramar-corporate .miramar-golf-hero {
		min-height: 690px;
	}

	body.wp-theme-miramar-corporate .miramar-golf-hero-copy {
		width: auto;
		padding: 8rem 24px 4.5rem;
	}

	body.wp-theme-miramar-corporate :where(.miramar-tp-split, .miramar-agency-split) {
		display: flex;
		flex-direction: column;
		gap: 2.5rem;
	}

	body.wp-theme-miramar-corporate :where(
		.miramar-tp-split,
		.miramar-agency-split
	) > .wp-block-column {
		width: 100%;
		flex-basis: auto !important;
	}

	body.wp-theme-miramar-corporate :where(
		.miramar-tp-image,
		.miramar-agency-hero-image,
		.miramar-agency-operation-image,
		.miramar-golf-editorial-image
	) {
		aspect-ratio: 4 / 3;
	}

	body.wp-theme-miramar-corporate :where(
		.miramar-tp-services,
		.miramar-tp-process,
		.miramar-agency-services,
		.miramar-golf-ledger,
		.miramar-golf-regions,
		.miramar-contact-routes
	) {
		display: block;
	}

	body.wp-theme-miramar-corporate :where(
		.miramar-tp-services,
		.miramar-tp-process,
		.miramar-agency-services,
		.miramar-golf-ledger,
		.miramar-golf-regions,
		.miramar-contact-routes
	) > * {
		width: 100%;
		padding: 1rem 0 !important;
	}

	body.wp-theme-miramar-corporate .miramar-legal-hero,
	body.wp-theme-miramar-corporate .miramar-legal-document {
		padding-inline: 24px;
	}

	body.wp-theme-miramar-corporate .miramar-legal-document h2 {
		margin-top: 3rem;
		font-size: 1.55rem !important;
	}

	body:is(.archive, .search, .blog):not(.home) main,
	body.single-post main {
		width: auto;
		padding: 4.5rem 24px;
	}

	body:is(.archive, .search, .blog):not(.home) .wp-block-post {
		display: block;
	}

	body:is(.archive, .search, .blog):not(.home) .wp-block-post-title {
		margin-top: .6rem;
	}

	body.wp-theme-miramar-corporate .wp-block-template-part:last-child > .wp-block-group {
		padding: 2.75rem 24px;
	}
}

/* Traditional Chinese homepage guide spread. */
body.miramar-zh-home .miramar-home-guide {
	padding: clamp(4.5rem, 7vw, 7rem) max(var(--p3-gutter), calc((100vw - var(--p3-page)) / 2));
	background: #fff !important;
}

body.miramar-zh-home .miramar-home-guide-spread {
	gap: clamp(3rem, 6vw, 6.5rem);
	margin: 0;
}

body.miramar-zh-home .miramar-home-guide-media {
	align-self: stretch;
}

body.miramar-zh-home .miramar-home-guide-media figure {
	height: 100%;
	margin: 0;
	overflow: hidden;
}

body.miramar-zh-home .miramar-home-guide-media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
}

body.miramar-zh-home .miramar-home-guide-copy {
	max-width: 42rem;
}

body.miramar-zh-home .miramar-home-guide-copy h2 {
	max-width: 13em;
	margin-bottom: 1.25rem;
	font-family: var(--p3-sans);
	font-size: clamp(2rem, 3.2vw, 3rem) !important;
	font-weight: 680;
	line-height: 1.17;
	letter-spacing: -.035em;
}

body.miramar-zh-home .miramar-home-guide-copy > p:not(.miramar-eyebrow) {
	max-width: 38rem;
	margin-bottom: 1.75rem;
	color: var(--p3-ink-600);
}

body.miramar-zh-home .miramar-home-guide-links {
	margin-block: 2rem 1.75rem;
	border-top: var(--p3-rule-line);
}

body.miramar-zh-home .miramar-home-guide-links a {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	min-height: 54px;
	padding-block: .7rem;
	border-bottom: var(--p3-rule-line);
	color: var(--p3-ink-900);
	text-decoration: none;
}

body.miramar-zh-home .miramar-home-guide-links a:hover,
body.miramar-zh-home .miramar-home-guide-links a:focus-visible {
	color: var(--p3-gold-600);
}

body.miramar-zh-home .miramar-home-guide-links span {
	color: var(--p3-gold-600);
	font-size: .7rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: .08em;
}

body.miramar-zh-home .miramar-home-guide-links strong {
	font-size: .95rem;
	font-weight: 680;
	line-height: 1.45;
}

body.miramar-zh-home .miramar-home-guide .wp-block-buttons {
	margin-top: 0;
}

@media (max-width: 900px) {
	body.miramar-zh-home .miramar-home-guide-spread {
		flex-wrap: wrap !important;
		gap: 2.5rem;
	}

	body.miramar-zh-home .miramar-home-guide-spread > .wp-block-column {
		flex-basis: 100% !important;
	}

	body.miramar-zh-home .miramar-home-guide-media figure {
		height: auto;
	}

	body.miramar-zh-home .miramar-home-guide-media img {
		aspect-ratio: 16 / 9;
	}

	body.miramar-zh-home .miramar-home-guide-copy {
		max-width: 46rem;
	}
}

@media (max-width: 560px) {
	body.miramar-zh-home .miramar-home-guide {
		padding: 4.25rem 24px;
	}

	body.miramar-zh-home .miramar-home-guide-copy h2 {
		font-size: clamp(1.85rem, 9vw, 2.45rem) !important;
	}
}

@media (max-width: 400px) {
	body.miramar-zh-home .miramar-home-guide {
		padding-inline: 20px;
	}
}

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

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

/*
 * English About hero refinement.
 * Page 15 only: a wider photographic field and compact editorial text measure.
 */
@media (min-width: 769px) {
	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero {
		display: grid;
		grid-template-columns: 43% 57%;
		min-height: clamp(620px, 50vw, 720px) !important;
		height: clamp(620px, 50vw, 720px);
		max-height: 720px;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .wp-block-cover__inner-container {
		width: 100%;
		min-width: 0;
		padding: clamp(3.75rem, 5vw, 5.25rem) clamp(2rem, 4.25vw, 4.5rem);
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .miramar-about-hero-copy {
		width: 100%;
		max-width: 34rem;
		margin-inline: 0;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero h1 {
		max-width: 9.75em;
		font-size: clamp(3rem, 3.9vw, 3.65rem) !important;
		line-height: 1.08;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .has-large-font-size {
		max-width: 32rem;
		font-size: clamp(1rem, 1.3vw, 1.125rem) !important;
		line-height: 1.62;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .wp-block-cover__image-background {
		inset: 0 0 0 43%;
		width: 57%;
		height: 100%;
		min-height: 100%;
		max-height: 720px;
		object-fit: cover;
		object-position: 50% 50%;
	}
}

@media (min-width: 769px) and (max-width: 1100px) {
	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero {
		grid-template-columns: 44% 56%;
		min-height: 600px !important;
		height: 600px;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .wp-block-cover__inner-container {
		padding: 3.5rem 2.5rem;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero h1 {
		font-size: clamp(2.65rem, 4.4vw, 3rem) !important;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .has-large-font-size {
		font-size: 1rem !important;
		line-height: 1.6;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .wp-block-cover__image-background {
		inset-inline-start: 44%;
		width: 56%;
		max-height: 600px;
	}
}

@media (max-width: 768px) {
	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero {
		display: flex;
		flex-direction: column;
		min-height: 0 !important;
		height: auto;
		max-height: none;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .wp-block-cover__inner-container {
		position: relative;
		order: 1;
		width: 100%;
		padding: clamp(3.25rem, 9vw, 4.25rem) 24px;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .miramar-about-hero-copy {
		width: 100%;
		max-width: 35rem;
		margin: 0 auto;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero h1 {
		max-width: 10em;
		font-size: clamp(2.35rem, 10.5vw, 3.15rem) !important;
		line-height: 1.08;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .has-large-font-size {
		max-width: 34rem;
		font-size: 1rem !important;
		line-height: 1.62;
	}

	body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .wp-block-cover__image-background {
		position: relative;
		inset: auto;
		order: 2;
		width: 100%;
		height: auto;
		min-height: 0;
		max-height: none;
		aspect-ratio: 16 / 10;
		object-fit: cover;
		object-position: 50% 50%;
	}

body:is(.page-id-15, .page-id-60, .page-id-82) .miramar-about-hero .wp-block-cover__background {
		display: none;
	}
}

/* Three-language Contact correction — scoped to the existing public Contact records. */
body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-section {
	padding-inline: 0;
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate :is(
	.miramar-contact-hero > .alignwide,
	.miramar-contact-section > .alignwide
) {
	width: min(calc(100% - 80px), 1440px);
	max-width: none;
	margin-inline: auto;
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-section > .wp-block-columns.alignwide {
	display: grid;
	grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
	gap: clamp(64px, 6vw, 88px);
	align-items: start;
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-section > .wp-block-columns.alignwide > .wp-block-column {
	width: 100%;
	min-width: 0;
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-direct {
	min-width: 0;
	border-top: 1px solid rgba(247, 242, 232, .28);
	overflow-wrap: break-word;
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-direct-row {
	display: grid;
	grid-template-columns: minmax(150px, .34fr) minmax(0, .66fr);
	gap: 1.5rem;
	align-items: start;
	padding: 1.15rem 0;
	border-top: 0;
	border-bottom: 1px solid rgba(247, 242, 232, .22);
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-direct-row p {
	min-width: 0;
	margin: 0;
	word-break: normal;
	overflow-wrap: break-word;
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-primary-link {
	display: inline;
	color: var(--p3-ivory-100) !important;
	opacity: 1;
	visibility: visible;
	text-indent: 0;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-primary-link:is(:hover, :focus-visible) {
	color: var(--p3-gold-500) !important;
}

body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-primary-link:focus-visible {
	outline: 2px solid var(--p3-gold-500);
	outline-offset: 4px;
}

@media (max-width: 1024px) {
	body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate :is(
		.miramar-contact-hero > .alignwide,
		.miramar-contact-section > .alignwide
	) {
		width: calc(100% - 56px);
	}
}

@media (max-width: 900px) {
	body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-section > .wp-block-columns.alignwide {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.75rem;
	}

	body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate .miramar-contact-direct-row {
		grid-template-columns: minmax(0, 1fr);
		gap: .35rem;
	}
}

@media (max-width: 600px) {
	body:is(.page-id-16, .page-id-61, .page-id-87).wp-theme-miramar-corporate :is(
		.miramar-contact-hero > .alignwide,
		.miramar-contact-section > .alignwide
	) {
		width: calc(100% - 36px);
	}

	body.page-id-16.wp-theme-miramar-corporate .miramar-contact-hero h1 {
		font-size: clamp(2.15rem, 10vw, 2.7rem) !important;
		word-break: normal;
		overflow-wrap: normal;
		hyphens: none;
	}
}
