/**
 * Nexza Work Smart widget.
 */

.nx-smart {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.nx-smart > * {
	min-width: 0;
}

.nx-smart-text {
	margin-top: 28px;
}

/* Platform chips */
.nx-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}


/* Image frames: gradient placeholder until an image is set. */
.nx-smart-img {
	position: relative;
	overflow: hidden;
	border-radius: var(--nx-radius-card);
	background: var(--nx-placeholder);
}

.nx-smart-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-smart-img {
	aspect-ratio: 16 / 9;
}

/* Copper number badge on the image */
.nx-smart-side {
	position: relative;
}

.nx-smart-badge {
	position: absolute;
	right: 24px;
	bottom: 24px;
	padding: 20px 26px;
	border-radius: 20px;
	background: var(--nx-copper);
	color: var(--nx-ink);
}

.nx-smart-badge b {
	display: block;
	font-size: 48px;
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1;
}

.nx-smart-badge span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

@media (max-width: 860px) {
	.nx-smart {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.nx-smart-text,
	.nx-chips {
		margin-top: 24px;
	}

	/* Taller image and a compact badge, so the badge does not cover it. */
	.nx-smart-img {
		aspect-ratio: 4 / 3;
	}

	.nx-smart-badge {
		right: 14px;
		bottom: 14px;
		padding: 12px 16px;
		border-radius: 14px;
	}

	.nx-smart-badge b {
		font-size: 30px;
	}

	.nx-smart-badge span {
		font-size: 11px;
	}
}
