:root {
	--ucm-brand-blue: #183057;
	--ucm-brand-green: #6ed258;
	--ucm-brand-lime: #7ebd28;
	--ucm-page-gutter: clamp(1rem, 5vw, 2.5rem);
	--ucm-shadow: 0 22px 55px rgba(24, 48, 87, 0.12);
	--ucm-soft-shadow: 0 12px 35px rgba(24, 48, 87, 0.09);
}

* {
	box-sizing: border-box;
}

body {
	overflow-wrap: anywhere;
}

.wp-site-blocks {
	overflow-x: clip;
}

.wp-site-blocks > .wp-block-group,
.wp-site-blocks > .wp-block-template-part > .wp-block-group {
	padding-left: var(--ucm-page-gutter);
	padding-right: var(--ucm-page-gutter);
}

.wp-site-blocks .alignwide {
	max-width: min(var(--wp--style--global--wide-size, 1180px), calc(100vw - (2 * var(--ucm-page-gutter))));
	width: 100%;
}

.wp-site-blocks .wp-block-columns,
.wp-site-blocks .wp-block-column {
	min-width: 0;
}

.ucm-site-header {
	backdrop-filter: blur(18px);
	position: sticky;
	top: 0;
	z-index: 20;
}

.admin-bar .ucm-site-header {
	top: 32px;
}

.ucm-brand-link {
	display: inline-flex;
	line-height: 0;
	min-width: 0;
	text-decoration: none;
}

.ucm-brand-image {
	background-position: left center;
	background-repeat: no-repeat;
	background-size: contain;
	display: inline-block;
}

.ucm-brand-image--header {
	background-image: url("../images/brand-header.jpg");
	height: 58px;
	width: min(330px, 56vw);
}

.ucm-brand-image--footer {
	background-image: url("../images/brand-footer.jpg");
	height: 68px;
	width: min(360px, 70vw);
}

.ucm-hero {
	min-height: min(78vh, 760px);
	position: relative;
}

.ucm-hero::after {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(244, 248, 246, 0.86));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.ucm-hero > * {
	position: relative;
	z-index: 1;
}

.ucm-hero-brand {
	aspect-ratio: 1;
	background-image: url("../images/brand-hero.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	box-shadow: var(--ucm-shadow);
	margin-inline: auto;
	max-width: 380px;
	min-width: 220px;
	width: 30vw;
}

.ucm-network-card,
.ucm-domain-card,
.ucm-feature-card {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(24, 48, 87, 0.1);
	border-radius: 8px;
	box-shadow: var(--ucm-soft-shadow);
}

.ucm-domain-card {
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ucm-domain-card:hover {
	border-color: rgba(110, 210, 88, 0.5);
	box-shadow: var(--ucm-shadow);
	transform: translateY(-2px);
}

.ucm-signal-line {
	background: linear-gradient(90deg, var(--ucm-brand-green), var(--ucm-brand-blue));
	border-radius: 999px;
	height: 6px;
	width: 96px;
}

.ucm-pill {
	border: 1px solid rgba(24, 48, 87, 0.12);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 900;
	padding: 0.28rem 0.68rem;
	text-transform: uppercase;
}

.ucm-footer a {
	color: inherit;
	text-decoration: none;
}

.ucm-footer a:hover {
	color: var(--ucm-brand-green);
}

.dov-listings,
.dov-submit-form,
.dov-stripe-connect {
	background: #fff;
	border: 1px solid rgba(24, 48, 87, 0.1);
	border-radius: 8px;
	box-shadow: var(--ucm-soft-shadow);
	max-width: 100%;
	padding: clamp(1rem, 3vw, 2rem);
	width: 100%;
}

.dov-listings a,
.dov-submit-form button,
.dov-submit-form input[type="submit"],
.dov-stripe-connect a.button {
	border-radius: 8px;
	font-weight: 800;
}

.dov-listings__grid,
.dov-connect-grid,
.dov-post-sale-status__item {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.dov-listings__domain,
.dov-listings__domain a,
.dov-single-domain h1,
.dov-single-domain__price .value {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.dov-single-domain {
	max-width: min(720px, calc(100vw - (2 * var(--ucm-page-gutter))));
}

@media (max-width: 782px) {
	.admin-bar .ucm-site-header {
		top: 46px;
	}

	.ucm-site-header {
		position: relative;
	}

	.ucm-brand-image--header {
		height: 46px;
		width: min(260px, 72vw);
	}

	.ucm-brand-image--footer {
		height: 56px;
		width: min(300px, 78vw);
	}

	.ucm-hero {
		min-height: auto;
	}

	.ucm-hero-brand {
		width: min(280px, 72vw);
	}
}

@media (max-width: 640px) {
	.wp-site-blocks > .wp-block-group,
	.wp-site-blocks > .wp-block-template-part > .wp-block-group {
		padding-left: var(--ucm-page-gutter);
		padding-right: var(--ucm-page-gutter);
	}

	.ucm-network-card,
	.ucm-domain-card,
	.ucm-feature-card,
	.dov-listings,
	.dov-submit-form,
	.dov-stripe-connect {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
}
