/**
 * WordPress integration that does not restyle the public design.
 * Loaded after the static stylesheets.
 */

.admin-bar .site-header {
	top: 32px;
}

.admin-bar .nav-mobile {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header,
	.admin-bar .nav-mobile {
		top: 46px;
	}
}

.brand .custom-logo {
	width: auto;
	height: 2.75rem;
	max-width: 12rem;
	object-fit: contain;
}

.footer-brand .brand .custom-logo {
	height: 3.4rem;
	max-width: 14rem;
}

.page-fallback .display {
	font-size: clamp(2.6rem, 5.4vw, 5rem);
	max-width: 16ch;
}

.page-fallback .lede,
.page-fallback .entry-content {
	margin-top: 1.5rem;
	max-width: 62ch;
}

.page-fallback .entry-content p + p,
.page-fallback .entry-content > * + * {
	margin-top: 1rem;
}

.page-fallback .entry-content a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.page-header {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(22rem, 58vh, 38rem);
	color: var(--text-on-dark);
	background: var(--background-dark);
	overflow: hidden;
}

.page-header-media,
.page-header-shade {
	position: absolute;
	inset: 0;
}

.page-header-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
}

.page-header-shade {
	background:
		linear-gradient(90deg, rgba(20, 17, 14, 0.55) 0%, rgba(20, 17, 14, 0.16) 46%, rgba(20, 17, 14, 0.1) 100%),
		linear-gradient(180deg, rgba(20, 17, 14, 0.28) 0%, transparent 34%, rgba(20, 17, 14, 0.62) 100%);
	pointer-events: none;
}

.page-header-copy {
	position: relative;
	z-index: 1;
	width: min(calc(100% - 2 * var(--space-page)), var(--max));
	margin: 0 auto;
	padding: calc(var(--header-h) + 2.4rem) 0 clamp(2.2rem, 5vw, 4rem);
}

.page-header-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.7rem;
	margin: 0 0 1rem;
	font-size: 0.68rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--text-on-dark-muted);
}

.page-header-crumb a {
	color: inherit;
}

.page-header-crumb a:hover {
	color: var(--text-on-dark);
}

.page-header .display {
	font-size: clamp(2.8rem, 6.2vw, 5.6rem);
	max-width: 16ch;
	color: var(--text-on-dark);
}

.post-type-archive-suites .others-section,
.post-type-archive-services .others-section {
	padding-top: calc(var(--header-h) + clamp(2.2rem, 5vw, 4.5rem));
}

.error404 {
	background: var(--background-dark);
}

.error404 .others-section {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--background-dark);
	color: var(--text-on-dark);
	min-height: 100svh;
	padding: var(--header-h) var(--space-page);
	text-align: center;
}

.error404 .others-head {
	display: block;
	margin-bottom: 0;
	text-align: center;
}

.error404 .others-head .eyebrow {
	color: var(--text-on-dark-muted);
}

.error404 .others-head .display {
	font-size: clamp(2.2rem, 4.6vw, 4.2rem);
	max-width: 16ch;
	margin-inline: auto;
}

.error404 .lede {
	margin-top: 1.6rem;
	margin-inline: auto;
	max-width: 36ch;
	color: var(--text-on-dark-muted);
}

.error404 .not-found-back {
	margin-top: 2.4rem;
}

/* Default text pages: same dark field as the rooms archive. */
.text-page.others-section {
	background: var(--background-dark);
	color: var(--text-on-dark);
	padding-top: calc(var(--header-h) + clamp(2.2rem, 5vw, 4.5rem));
}

.text-page .others-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
	margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.text-page .others-head .eyebrow {
	color: var(--text-on-dark-muted);
}

.text-page .others-head .display {
	font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

.text-page .entry-content {
	width: 100%;
	max-width: none;
	columns: 2;
	column-gap: clamp(2rem, 4vw, 4rem);
	font-size: 1.02rem;
	line-height: 1.75;
	color: var(--text-on-dark);
}

.text-page .entry-content > * + * {
	margin-top: 1.15rem;
}

.text-page .entry-content h2,
.text-page .entry-content h3 {
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.15;
	color: var(--text-on-dark);
}

.text-page .entry-content h2 {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin-top: 2rem;
	break-after: avoid;
}

.text-page .entry-content h3 {
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	margin-top: 1.6rem;
	break-after: avoid;
}

.text-page .entry-content > :first-child {
	margin-top: 0;
}

.text-page .entry-content h2,
.text-page .entry-content h3,
.text-page .entry-content figure,
.text-page .entry-content img,
.text-page .entry-content ul,
.text-page .entry-content ol,
.text-page .entry-content blockquote {
	break-inside: avoid;
}

.text-page .entry-content a {
	color: var(--text-on-dark);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.text-page .entry-content a:hover {
	color: var(--accent-soft);
}

.text-page .entry-content ul,
.text-page .entry-content ol {
	padding-left: 1.2rem;
}

.text-page .entry-content ul {
	list-style: disc;
}

.text-page .entry-content ol {
	list-style: decimal;
}

.text-page .entry-content li + li {
	margin-top: 0.4rem;
}

@media (max-width: 720px) {
	.text-page .entry-content {
		columns: 1;
		max-width: 62ch;
	}
}

.form-wait,
.form-sent {
	margin: 0.9rem 0 0;
	font-family: var(--font-sans);
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.45;
}

.form-wait {
	display: block;
	width: max-content;
	max-width: 100%;
	color: var(--text);
	background-image: linear-gradient(
		90deg,
		color-mix(in srgb, currentColor 22%, transparent) 0%,
		currentColor 46%,
		color-mix(in srgb, currentColor 22%, transparent) 100%
	);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: form-shimmer 1.45s linear infinite;
}

.form-sent {
	color: var(--text);
}

.form-sent.is-error {
	color: #8c3a32;
}

.h-modal .form-wait,
.h-modal .form-sent {
	color: var(--text);
}

.h-modal .form-sent.is-error {
	color: #8c3a32;
}

.site-footer .form-wait,
.site-footer .form-sent {
	color: var(--text-on-dark);
}

.site-footer .form-sent.is-error {
	color: #e7b2a8;
}

.newsletter .form-wait,
.newsletter .form-sent {
	flex: 1 0 100%;
	margin-top: 0.7rem;
}

@keyframes form-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.form-wait {
		animation: none;
		-webkit-text-fill-color: currentColor;
	}
}
