/*
 * Miramar multilingual homepage visual system.
 * Swiss editorial direction: shared grid, restrained surfaces, fine rules,
 * integrated photographic Hero overlay and language-aware typography.
 */

body:is(.home, .miramar-zh-home, .miramar-ja-home) {
	--home-max: 1240px;
	--home-gutter: clamp(24px, 5vw, 72px);
	--home-section-space: clamp(72px, 8vw, 116px);
	--home-ink: #17221f;
	--home-pine: #07382d;
	--home-pine-deep: #052a22;
	--home-mist: #edf3ef;
	--home-neutral: #f7f7f8;
	--home-gold: #80601f;
	--home-rule: #c7d0cb;
	--home-link: #145b49;
	background: #fff;
	color: var(--home-ink);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) main {
	overflow: clip;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .entry-content {
	margin-top: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-section {
	box-sizing: border-box;
	padding: var(--home-section-space) var(--home-gutter);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-section > :where(.alignwide, .wp-block-columns),
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-section > .wp-block-group > .alignwide,
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-section > .wp-block-group.alignwide {
	width: min(100%, var(--home-max));
	max-width: var(--home-max) !important;
	margin-inline: auto;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-section h2 {
	max-width: 19ch;
	margin: .55rem 0 1.25rem;
	font-size: clamp(2.15rem, 4vw, 4rem) !important;
	line-height: 1.06;
	letter-spacing: -.025em;
	text-wrap: balance;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-section h3 {
	font-size: clamp(1.15rem, 1.7vw, 1.5rem);
	line-height: 1.25;
	letter-spacing: -.012em;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-section p {
	max-width: 68ch;
	line-height: 1.72;
}

body:is(.miramar-zh-home, .miramar-ja-home) .miramar-editorial-section h2,
body:is(.miramar-zh-home, .miramar-ja-home) .miramar-editorial-section h3 {
	letter-spacing: 0;
	word-break: auto-phrase;
	overflow-wrap: normal;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-eyebrow {
	margin-bottom: .65rem;
	color: var(--home-gold) !important;
	font-size: .74rem !important;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .12em;
}

body:is(.miramar-zh-home, .miramar-ja-home) .miramar-eyebrow {
	letter-spacing: .08em;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) main a:not(.wp-block-button__link) {
	color: var(--home-link);
	text-decoration-color: currentColor;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .28em;
	transition: color 160ms ease, text-decoration-thickness 160ms ease;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) main a:not(.wp-block-button__link):hover {
	color: var(--home-pine-deep);
	text-decoration-thickness: 2px;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) main :is(.miramar-golf, .miramar-contact-final) a:not(.wp-block-button__link) {
	color: #e6c47c;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) main :is(.miramar-golf, .miramar-contact-final) a:not(.wp-block-button__link):hover {
	color: #fff;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) main a:focus-visible {
	outline: 3px solid #002fa7;
	outline-offset: 4px;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .wp-block-button__link {
	min-height: 46px;
	padding: .75rem 1.15rem;
	border-radius: 4px;
	font-weight: 700;
	line-height: 1.35;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

/* Integrated Hero: the overlay belongs to the image rather than to the copy. */
	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero {
	position: relative;
	display: block !important;
	isolation: isolate;
	width: 100%;
	max-width: none;
	min-height: clamp(760px, 80vh, 840px) !important;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 0;
	background: var(--home-pine-deep);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero::before {
	position: absolute;
	z-index: 1;
	inset: 0;
	content: "";
	background: linear-gradient(
		90deg,
		rgba(4, 40, 31, .94) 0%,
		rgba(4, 40, 31, .86) 24%,
		rgba(4, 40, 31, .58) 43%,
		rgba(4, 40, 31, .18) 66%,
		rgba(4, 40, 31, 0) 84%
	);
	pointer-events: none;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-cover__image-background {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
	object-fit: cover;
	object-position: 50% 56%;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-cover__background {
	display: none;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: clamp(760px, 80vh, 840px) !important;
	margin: 0;
	padding-block: clamp(52px, 6vw, 80px);
	padding-inline: max(56px, calc((100% - 1440px) / 2)) !important;
	background: transparent !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .miramar-hero-content {
	display: block;
	box-sizing: border-box;
	width: min(46%, 590px);
	max-width: 590px;
	min-height: 0 !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero h1 {
	max-width: 11.5em;
	margin: .65rem 0 1.2rem;
	color: #fff;
	font-size: clamp(2.65rem, 4vw, 4rem) !important;
	line-height: 1.05;
	letter-spacing: -.035em;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .2);
}

body.miramar-zh-home .miramar-home-hero h1 {
	max-width: 10.5em;
	font-size: clamp(2.35rem, 3.55vw, 3.5rem) !important;
	line-height: 1.16;
	letter-spacing: 0;
}

body.miramar-ja-home .miramar-home-hero h1 {
	max-width: 13em !important;
	font-size: clamp(2.1rem, 2.9vw, 2.8rem) !important;
	line-height: 1.22;
	letter-spacing: 0;
	overflow-wrap: normal !important;
	word-break: auto-phrase !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .has-large-font-size {
	max-width: 50ch;
	color: rgba(255, 255, 255, .9);
	font-size: clamp(.98rem, 1.25vw, 1.08rem) !important;
	line-height: 1.67;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-buttons {
	gap: .65rem;
	margin-top: 2rem;
	padding: 0;
}

/* Audience and core services. */
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience {
	background: #fff !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience > .wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	column-gap: clamp(48px, 7vw, 112px);
	padding: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience > .wp-block-group > * {
	width: 100% !important;
	max-width: none !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience > .wp-block-group > .miramar-eyebrow {
	grid-column: 1;
	grid-row: 1;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience > .wp-block-group > h2 {
	grid-column: 1;
	grid-row: 2;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience > .wp-block-group > p:not(.miramar-eyebrow) {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: end;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience h2 {
	max-width: 17ch;
	font-size: clamp(2.15rem, 3.65vw, 3.65rem) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience > .wp-block-group > p:not(.miramar-eyebrow) {
	max-width: 68ch;
	margin-bottom: 0;
	font-size: clamp(1rem, 1.3vw, 1.12rem);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid {
	display: grid !important;
	grid-column: 1 / -1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 !important;
	width: 100%;
	max-width: none !important;
	margin: clamp(40px, 6vw, 72px) 0 0;
	border-top: 1px solid var(--home-rule);
	border-bottom: 1px solid var(--home-rule);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid > .wp-block-column {
	min-width: 0;
	padding: clamp(26px, 3vw, 40px);
	border-right: 1px solid var(--home-rule);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid > .wp-block-column:first-child {
	padding-left: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid > .wp-block-column:last-child {
	padding-right: 0;
	border-right: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid h3 {
	min-height: 2.5em;
	margin: 0 0 1rem;
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	word-break: keep-all;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid p {
	margin: 0 0 1.25rem;
}

/* Shared editorial image/text sections. */
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-planning,
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-detail,
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-cases {
	background: var(--home-neutral) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-cases .miramar-case-number {
	color: var(--home-gold) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-guide-links a span {
	color: var(--home-gold) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) :is(.miramar-planning, .miramar-detail) > .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) :is(.miramar-planning, .miramar-detail) > .wp-block-columns > .wp-block-column {
	grid-column: span 6;
	min-width: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-image {
	overflow: hidden;
	border-radius: 3px;
}

/* DMC partner field. */
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency {
	background: var(--home-pine-deep) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency .miramar-eyebrow {
	color: #e6c47c !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency > .wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(56px, 8vw, 120px);
	align-items: start;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency > .wp-block-columns > .wp-block-column {
	min-width: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency h2 {
	max-width: 12ch;
	font-size: clamp(2.25rem, 3.7vw, 3.7rem) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency .has-large-font-size {
	max-width: 48ch;
	font-size: clamp(1.05rem, 1.4vw, 1.18rem) !important;
	line-height: 1.6;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency .miramar-numbered-list {
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, .24);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency .miramar-numbered-list h3 {
	margin: 0;
	padding: 1.35rem 0 .4rem;
	border-top: 0;
	color: #fff;
	font-size: clamp(1.05rem, 1.45vw, 1.28rem);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency .miramar-numbered-list p {
	margin: 0;
	padding: 0 0 1.35rem;
	border-bottom: 1px solid rgba(255, 255, 255, .24);
	color: rgba(255, 255, 255, .74) !important;
}

/* Six-service coordination ledger. */
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-arrangements {
	background: var(--home-mist) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-arrangements > .wp-block-group {
	width: min(100%, var(--home-max));
	max-width: var(--home-max) !important;
	margin-inline: auto;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-arrangements > .wp-block-group > p {
	max-width: 58ch;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-service-ledger {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(48px, 7vw, 104px) !important;
	margin-top: clamp(36px, 5vw, 64px);
	border-top: 1px solid var(--home-rule);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-service-ledger > .wp-block-column {
	min-width: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-service-ledger h3 {
	margin: 0;
	padding: 1.4rem 0 .45rem;
	border-top: 0;
	font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-service-ledger p {
	min-height: 0;
	margin: 0;
	padding: 0 0 1.4rem;
	border-bottom: 1px solid var(--home-rule);
	color: #46534f;
}

/* Company facts. */
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company {
	background: var(--home-mist) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company > .wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(56px, 8vw, 120px);
	align-items: start;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company > .wp-block-columns > .wp-block-column {
	min-width: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company h2 {
	font-size: clamp(2.2rem, 3.7vw, 3.65rem) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-data,
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-column {
	border-top: 1px solid var(--home-rule);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-data p,
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-column .miramar-company-row {
	display: grid;
	grid-template-columns: minmax(110px, .7fr) minmax(0, 1.5fr);
	gap: 1.25rem;
	margin: 0;
	padding: .9rem 0;
	border-bottom: 1px solid var(--home-rule);
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-data strong,
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-column dt {
	color: #52605b;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .04em;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-person span {
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	font-weight: 700;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company :where(span, dd) {
	min-width: 0;
	overflow-wrap: anywhere;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company :where(p, span, strong, dt, dd) {
	letter-spacing: normal;
}

/* Mir768 is a secondary trust-to-action bridge. */
body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr);
	gap: 1rem 4rem;
	align-items: end;
	box-sizing: border-box;
	width: min(calc(100% - (2 * var(--home-gutter))), var(--home-max));
	max-width: var(--home-max) !important;
	margin: var(--home-section-space) auto;
	padding: clamp(32px, 5vw, 56px);
	border-top: 1px solid var(--home-rule);
	border-bottom: 1px solid var(--home-rule);
	background: #fff !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context::before {
	grid-column: 1 / -1;
	content: "MIR768";
	color: var(--home-gold);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .12em;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context h2 {
	grid-column: 1;
	max-width: 22ch;
	margin: .3rem 0 .55rem;
	font-size: clamp(1.8rem, 3.1vw, 3rem) !important;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context > p:not(:last-child) {
	grid-column: 1;
	margin: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context > p:last-child {
	grid-column: 2;
	grid-row: 2 / span 2;
	justify-self: end;
	margin: 0;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context > p:last-child a {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: .7rem 1rem;
	border: 1px solid var(--home-pine);
	border-radius: 4px;
	color: var(--home-pine);
	font-weight: 700;
	text-decoration: none;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context > p:last-child a:hover {
	background: var(--home-pine);
	color: #fff;
}

body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-contact-final {
	background: var(--home-pine) !important;
}

@media (max-width: 900px) {
	body:is(.home, .miramar-zh-home, .miramar-ja-home) {
		--home-gutter: clamp(24px, 6vw, 48px);
		--home-section-space: clamp(64px, 9vw, 88px);
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero {
		width: 100%;
		min-height: clamp(620px, 78svh, 720px) !important;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero::before {
		background: linear-gradient(
			90deg,
			rgba(4, 40, 31, .94) 0%,
			rgba(4, 40, 31, .79) 48%,
			rgba(4, 40, 31, .34) 72%,
			rgba(4, 40, 31, .05) 100%
		);
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-cover__inner-container {
		align-items: center;
		width: 100%;
		min-height: clamp(620px, 78svh, 720px) !important;
		padding-block: 64px;
		padding-inline: 36px !important;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .miramar-hero-content {
		width: min(70%, 540px);
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero h1,
	body.miramar-zh-home .miramar-home-hero h1 {
		font-size: clamp(2.25rem, 5.8vw, 3.2rem) !important;
	}

	body.miramar-ja-home .miramar-home-hero h1 {
		font-size: clamp(1.95rem, 4.8vw, 2.55rem) !important;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid {
		grid-template-columns: 1fr;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience > .wp-block-group {
		grid-template-columns: 1fr;
		column-gap: 0;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-audience > .wp-block-group > :is(.miramar-eyebrow, h2, p:not(.miramar-eyebrow)) {
		grid-column: 1;
		grid-row: auto;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid > .wp-block-column,
	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid > .wp-block-column:first-child,
	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid > .wp-block-column:last-child {
		padding: 28px 0;
		border-right: 0;
		border-bottom: 1px solid var(--home-rule);
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid > .wp-block-column:last-child {
		border-bottom: 0;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-corporate-service-grid h3 {
		min-height: 0;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) :is(.miramar-planning, .miramar-detail) > .wp-block-columns,
	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-agency > .wp-block-columns,
	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company > .wp-block-columns {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) :is(.miramar-planning, .miramar-detail) > .wp-block-columns > .wp-block-column {
		grid-column: 1;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context {
		grid-template-columns: 1fr;
		align-items: start;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context > p:last-child {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
		margin-top: 1rem;
	}
}

@media (max-width: 600px) {
	body:is(.home, .miramar-zh-home, .miramar-ja-home) {
		--home-gutter: 24px;
		--home-section-space: 64px;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-editorial-section h2 {
		max-width: 100%;
		font-size: clamp(1.9rem, 9vw, 2.7rem) !important;
		line-height: 1.12;
	}

	body:is(.miramar-zh-home, .miramar-ja-home) .miramar-editorial-section h2 {
		font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
		line-height: 1.25;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero {
		min-height: clamp(600px, calc(100svh - 72px), 720px) !important;
		border-radius: 0;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero::before {
		background: linear-gradient(
			90deg,
			rgba(4, 40, 31, .95) 0%,
			rgba(4, 40, 31, .82) 53%,
			rgba(4, 40, 31, .42) 77%,
			rgba(4, 40, 31, .08) 100%
		);
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-cover__image-background {
		object-position: 61% 55%;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-cover__inner-container {
		align-items: center;
		width: 100%;
		min-height: clamp(600px, calc(100svh - 72px), 720px) !important;
		padding-block: 52px;
		padding-inline: 24px !important;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .miramar-hero-content {
		width: 78%;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero h1,
	body.miramar-zh-home .miramar-home-hero h1 {
		max-width: 100%;
		font-size: clamp(2rem, 9.2vw, 2.55rem) !important;
		line-height: 1.12;
	}

	body.miramar-ja-home .miramar-home-hero h1 {
		max-width: 100% !important;
		font-size: clamp(1.8rem, 7.6vw, 2.15rem) !important;
		line-height: 1.26;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .has-large-font-size {
		font-size: .94rem !important;
		line-height: 1.55;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-buttons {
		display: grid;
		width: 100%;
		margin-top: 1.4rem;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-button,
	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-button__link {
		width: 100%;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-home-hero .wp-block-button__link {
		justify-content: center;
		white-space: normal;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-service-ledger {
		grid-template-columns: 1fr;
		gap: 0 !important;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-data p,
	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-company-column .miramar-company-row {
		grid-template-columns: 1fr;
		gap: .35rem;
	}

	body:is(.home, .miramar-zh-home, .miramar-ja-home) .miramar-phase1-context {
		width: calc(100% - 48px);
		margin-block: 64px;
		padding: 28px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body:is(.home, .miramar-zh-home, .miramar-ja-home) main a,
	body:is(.home, .miramar-zh-home, .miramar-ja-home) .wp-block-button__link {
		transition: none;
	}
}
