/*
 * digiloom: history teaser.
 * Source: Figma Make `Home.tsx` section 4 — white panel, icon tile, summary and
 * a dark pill button, laid out side by side from the tablet breakpoint up.
 */

.digiloom-history-teaser {
	background-color: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--wp--preset--color--slate-line);
	border-radius: var(--wp--custom--radius--xl);
	box-shadow: var(--wp--preset--shadow--lifted);
	padding: 32px;
}

@media (min-width: 782px) {

	.digiloom-history-teaser {
		padding: 48px;
	}
}

.digiloom-history-teaser__body {
	flex: 1 1 32rem;
}

/* Icon tile — an empty paragraph in the pattern so it stays a real block the
   editor can select, with the glyph painted here. */
.digiloom-history-teaser__icon {
	background-color: var(--wp--preset--color--slate-tint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M12 7v5l4 2'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
	border-radius: var(--wp--custom--radius--md);
	height: 48px;
	margin-block: 0 8px;
	width: 48px;
}

.digiloom-history-teaser__lead {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--body);
	max-width: 42rem;
}

.digiloom-history-teaser__action {
	flex: 0 0 auto;
}

/* Dark pill button with a trailing arrow. */
.digiloom-button--ink .wp-block-button__link {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	padding: 14px 24px;
}

.digiloom-button--ink .wp-block-button__link:hover,
.digiloom-button--ink .wp-block-button__link:focus {
	background-color: #1e293b;
}

.digiloom-button--arrow .wp-block-button__link {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.digiloom-button--arrow .wp-block-button__link::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-button--arrow .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

@media (max-width: 781px) {

	.digiloom-history-teaser__action,
	.digiloom-history-teaser__action .wp-block-button,
	.digiloom-history-teaser__action .wp-block-button__link {
		width: 100%;
	}

	.digiloom-history-teaser__action .wp-block-button__link {
		justify-content: center;
	}
}
