.cml-profile-page {
	display: flow-root;
}

body.cml-profile-popup { margin: 0; }
body.cml-profile-popup .cml-profile.cml-profile { width: min(50.25rem, calc(100% - 2 * clamp(12px, 4vw, 24px))); margin: 12px auto 20px; }

.cml-profile-popup-document {
	--cml-profile-scroll-thumb: #738095;
	scrollbar-width: thin;
	scrollbar-color: var(--cml-profile-scroll-thumb) transparent;
	overscroll-behavior-y: contain;
}

@supports selector(::-webkit-scrollbar) {
	.cml-profile-popup-document { scrollbar-width: auto; scrollbar-color: auto; }
	.cml-profile-popup-document::-webkit-scrollbar { width: 9px; height: 9px; }
	.cml-profile-popup-document::-webkit-scrollbar-track { background: transparent; }
	.cml-profile-popup-document::-webkit-scrollbar-thumb {
		border: 2px solid transparent;
		border-radius: 999px;
		background: var(--cml-profile-scroll-thumb) padding-box;
	}
	.cml-profile-popup-document::-webkit-scrollbar-thumb:hover { background-color: #526277; }
	.cml-profile-popup-document::-webkit-scrollbar-button { display: none; }
}

@media (forced-colors: active) {
	.cml-profile-popup-document { --cml-profile-scroll-thumb: ButtonText; scrollbar-color: auto; }
}

.cml-profile.cml-profile {
	--cml-profile-surface: var(--wp--preset--color--base, #fff);
	--cml-profile-ink: var(--wp--preset--color--contrast, #1e2426);
	--cml-profile-radius: 20px;
	--cml-profile-gap: clamp(.875rem, 2.2vw, 1.25rem);
	--cml-profile-padding: clamp(.875rem, 2.8vw, 1.5rem);
	--cml-profile-shadow: 0 2px 5px rgb(15 23 42 / 5%), 0 8px 24px rgb(15 23 42 / 9%);
	--cml-profile-shadow-raised: 0 3px 8px rgb(15 23 42 / 7%), 0 14px 30px rgb(15 23 42 / 15%);
	box-sizing: border-box;
	container-type: inline-size;
	width: min(calc(100% - 2 * clamp(1rem, 7.7vw, 1.875rem)), 50.25rem);
	margin: clamp(1.5rem, 5vw, 3rem) auto clamp(2.5rem, 6vw, 4rem);
	overflow-wrap: anywhere;
}

.cml-profile > * + * {
	margin-top: var(--cml-profile-gap);
}

.cml-profile > :is(.cml-profile__hero, .cml-profile__body, .cml-profile__details) {
	border-radius: var(--cml-profile-radius);
	padding: var(--cml-profile-padding);
	box-shadow: var(--cml-profile-panel-shadow, var(--cml-profile-shadow));
}

.cml-profile > :is(.cml-profile__hero, .cml-profile__body, .cml-profile__details):focus-within {
	--cml-profile-panel-shadow: var(--cml-profile-shadow-raised);
	--cml-profile-lift: -4px;
}

@media (hover: hover) {
	.cml-profile > :is(.cml-profile__hero, .cml-profile__body, .cml-profile__details):hover {
		--cml-profile-panel-shadow: var(--cml-profile-shadow-raised);
		--cml-profile-lift: -4px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.cml-profile > :is(.cml-profile__hero, .cml-profile__body, .cml-profile__details) {
		translate: 0 var(--cml-profile-lift, 0px);
		transition: translate 180ms ease-out, box-shadow 180ms ease-out;
	}
}

.cml-profile .cml-profile__hero {
	padding: clamp(1.0625rem, 3.2vw, 1.75rem);
	background: var(--cml-hero, #1c2426);
	color: #fff;
}

.cml-profile .cml-profile__hero h1 {
	margin: .65rem 0 .5rem;
	color: inherit;
	font-size: clamp(1.625rem, 3.8vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: none;
}

.cml-profile .cml-profile__site {
	display: inline-block;
	margin: 0;
	padding: .32rem .7rem;
	border-radius: 999px;
	background: var(--cml-accent, #ffcc00);
	color: var(--cml-accent-text, #111827);
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1.45;
}

.cml-profile .cml-profile__type,
.cml-profile .cml-profile__subtitle {
	margin: .5rem 0 0;
	color: inherit;
}

.cml-profile .cml-profile__type { font-size: .9rem; }

.cml-profile .cml-profile__body {
	background: var(--cml-profile-surface);
	color: var(--cml-profile-ink);
}

.cml-profile__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cml-profile-gap);
	align-items: center;
}

@container (min-width: 600px) {
	.cml-profile__intro--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cml-profile__description { min-width: 0; line-height: 1.6; }
.cml-profile__description > p { margin-block: 0 .75rem; }
.cml-profile .cml-profile__description :where(h2, h3) { margin-block: .9rem .45rem; line-height: 1.3; letter-spacing: normal; }
.cml-profile .cml-profile__description :where(h2) { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
.cml-profile .cml-profile__description :where(h3) { font-size: clamp(1.125rem, 2.3vw, 1.25rem); }
.cml-profile .cml-profile__description > :first-child { margin-top: 0; }
.cml-profile .cml-profile__description > :last-child { margin-bottom: 0; }
.cml-profile__description img { max-width: 100%; height: auto; }
.cml-profile__description table { display: block; max-width: 100%; overflow-x: auto; }

.cml-profile .cml-profile__cover { margin: 0; }
.cml-profile .cml-profile__cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 32rem;
	object-fit: contain;
	border-radius: 16px;
}

.cml-profile__intro + .cml-profile__photos { margin-top: var(--cml-profile-gap); }
.cml-profile__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .625rem; }
.cml-profile__gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

.cml-profile .cml-profile__details {
	background: var(--cml-accent, #ffcc00);
	color: var(--cml-accent-text, #111827);
}

.cml-profile .cml-profile__details h2,
.cml-profile .cml-profile__photos h2,
.cml-profile .cml-profile__intro-title {
	margin: 0 0 .5rem;
	color: inherit;
	font-size: clamp(1.1875rem, 2.5vw, 1.375rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
}

.cml-profile .cml-profile__details p { margin: 0; color: inherit; }
.cml-profile .cml-profile__details dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: .75rem 1.25rem;
	margin: 0;
}
.cml-profile__details dt { font-weight: 700; }
.cml-profile__details dd { margin: .15rem 0 0; }
.cml-profile .cml-profile__details dl a { color: inherit; text-decoration: underline; text-underline-offset: .16em; }

.cml-profile .cml-profile__directions {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: .75rem;
	padding: 0 .9rem;
	border-radius: 8px;
	background: var(--cml-hero, #1c2426);
	color: #fff;
	text-decoration: none;
	font-weight: 650;
}

.cml-profile .cml-profile__directions:hover { color: #fff; text-decoration: underline; }
.cml-profile .cml-profile__approximate { margin-top: .5rem; font-size: .875rem; }
.cml-profile a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cml-profile .cml-profile__directions:focus-visible { outline-color: var(--cml-accent-text, #111827); }
