/*
 * PSE Key Takeaways — front-end styles.
 * Selectors are scoped under .pse_key_takeaways so they don't bleed into other Divi modules.
 */

.pse_key_takeaways {
	/* Brand palette — override these CSS variables in your child theme if needed. */
	--pse-kt-accent: #f2b900;
	--pse-kt-bg: #ffffff;
	--pse-kt-text: #2a3540;
	--pse-kt-muted: #6b7785;
	--pse-kt-radius: 14px;
	--pse-kt-shadow: 0 6px 24px rgba(20, 30, 45, 0.08);
	--pse-kt-gap: clamp(20px, 3vw, 36px);

	color: var(--pse-kt-text);
}

.pse_key_takeaways .pse_kt__bullet-template {
	display: none;
}

.pse_key_takeaways .pse_kt__inner {
	display: grid;
	gap: 0;
	background: var(--pse-kt-bg);
	border-radius: var(--pse-kt-radius);
	box-shadow: var(--pse-kt-shadow);
	overflow: hidden;
}

.pse_kt--with-image .pse_kt__inner {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	align-items: stretch;
}

.pse_kt--image-right .pse_kt__inner {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.pse_kt--no-image .pse_kt__inner {
	grid-template-columns: minmax(0, 1fr);
}

/* Image bleeds to the container edge on its side. */
.pse_key_takeaways .pse_kt__media {
	position: relative;
	min-height: 100%;
	overflow: hidden;
}

.pse_key_takeaways .pse_kt__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 220px;
}

.pse_key_takeaways .pse_kt__body {
	padding: clamp(24px, 3vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 18px;
	justify-content: center;
}

/* Eyebrow — small uppercase gold label, with a yellow dot accent. */
.pse_key_takeaways .pse_kt__eyebrow {
	color: var(--pse-kt-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1;
}

.pse_key_takeaways .pse_kt__eyebrow::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pse-kt-accent);
	flex-shrink: 0;
}

/* Takeaways list — replace browser bullets with the gold icon. */
.pse_key_takeaways .pse_kt__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pse_key_takeaways .pse_kt__list li {
	position: relative;
	padding-left: 36px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pse-kt-text);
}

/* Use the inline SVG bullet (mirrors the one rendered by PHP).
 * When we get the final icon, swap the data: URL below. */
.pse_key_takeaways .pse_kt__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 22px;
	height: 22px;
	background-color: var(--pse-kt-accent);
	-webkit-mask: var(--pse-kt-bullet-mask) center / contain no-repeat;
	        mask: var(--pse-kt-bullet-mask) center / contain no-repeat;
}

.pse_key_takeaways {
	--pse-kt-bullet-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9 15L15 9'/><path d='M9 9h6v6'/></svg>");
}

/* Stack on small screens. Image always sits on top when present. */
@media (max-width: 768px) {
	.pse_kt--with-image .pse_kt__inner,
	.pse_kt--image-right .pse_kt__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.pse_kt--image-right .pse_kt__inner .pse_kt__media {
		order: -1;
	}

	.pse_key_takeaways .pse_kt__image {
		min-height: 200px;
	}
}
