/*
 * digiloom: featured case study.
 * Source: Figma Make `Home.tsx` section 2.5 — a 48px-radius white panel split
 * into copy + full-bleed image, stacking on small screens.
 */

.digiloom-featured {
	background-color: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--wp--preset--color--slate-line);
	border-radius: var(--wp--custom--radius--xxxl);
	box-shadow: var(--wp--preset--shadow--lifted);
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	transition: box-shadow var(--wp--custom--transition--slow);
}

.digiloom-featured:hover {
	box-shadow: var(--wp--preset--shadow--deep);
}

@media (min-width: 782px) {

	.digiloom-featured {
		grid-template-columns: 1fr 1fr;
	}
}

/* Copy side ---------------------------------------------------------- */

.digiloom-featured__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
}

/*
 * Core's constrained layout gives block children `margin-inline: auto`, which
 * centres them once the container becomes a flex column. Pin them back to the
 * start so the copy reads flush left, as in the prototype.
 */
.digiloom-featured__body > * {
	margin-inline: 0;
	width: 100%;
}

@media (min-width: 782px) {

	.digiloom-featured__body {
		padding: 64px;
	}
}

.digiloom-featured__eyebrow {
	align-items: center;
	color: var(--wp--preset--color--pink-deep);
	display: flex;
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: var(--wp--custom--font-weight--semi-bold);
	gap: 8px;
	letter-spacing: 0.05em;
	margin: 0 0 16px;
	text-transform: uppercase;
}

.digiloom-featured__eyebrow::before {
	background-color: currentColor;
	content: "";
	flex: 0 0 auto;
	height: 16px;
	width: 16px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.digiloom-featured__title {
	line-height: 1.15;
	margin: 0 0 24px;
}

.digiloom-featured__lead {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--body);
	margin: 0 0 32px;
}

.digiloom-featured__points {
	color: #334155;
	margin-top: 0;
}

/* Media side --------------------------------------------------------- */

.digiloom-featured__media {
	min-height: 300px;
	position: relative;
}

.digiloom-featured__image {
	height: 100%;
	margin: 0;
	width: 100%;
}

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

@media (min-width: 782px) {

	.digiloom-featured__media {
		min-height: 100%;
	}

	.digiloom-featured__image {
		inset: 0;
		position: absolute;
	}
}

/* Arrow link — shared by several sections. */
.digiloom-arrow-link {
	margin: 0;
}

.digiloom-arrow-link a {
	align-items: center;
	color: var(--wp--preset--color--indigo);
	display: inline-flex;
	font-weight: var(--wp--custom--font-weight--bold);
	gap: 8px;
	text-decoration: none;
}

.digiloom-arrow-link a::after {
	background-color: currentColor;
	content: "";
	flex: 0 0 auto;
	height: 16px;
	width: 16px;
	transition: transform var(--wp--custom--transition--base);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.digiloom-arrow-link a:hover {
	color: #4338ca;
}

.digiloom-arrow-link a:hover::after {
	transform: translateX(4px);
}
