/* from RelatedSeoLinks.module.css */
[data-tp="related-seo"] {
/* Mobile = compact list rows. Desktop = small tags, separate sections. */

.section {
	margin: 0 0 1.5rem;
}

.section:last-child {
	margin-bottom: 0;
}

.title {
	margin: 0 0 0.75rem;
	font-family: var(--body-font-family, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
}

.list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.card {
	display: flex;
	align-items: center;
	gap: 0;
	min-height: 56px;
	padding: 0.6rem 0.7rem 0.6rem 0.75rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
	text-decoration: none;
	color: inherit;
	transition:
		box-shadow 0.18s ease,
		border-color 0.18s ease,
		transform 0.18s ease,
		background-color 0.18s ease,
		color 0.18s ease;
}

.card:hover {
	border-color: color-mix(in srgb, var(--tp-brand, #e53935) 28%, #e8edf3);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
	transform: translateY(-1px);
}

.card:focus-visible {
	outline: 2px solid var(--tp-brand, #e53935);
	outline-offset: 2px;
}

.iconWrap {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--tp-brand, #e53935);
}

.iconWrap svg {
	width: 18px;
	height: 18px;
	display: block;
}

.divider {
	flex-shrink: 0;
	width: 1px;
	align-self: stretch;
	min-height: 28px;
	margin: 0 0.7rem;
	background: #e8edf3;
}

.body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	text-align: left;
}

.cardTitle {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.cardSub {
	margin: 0;
	font-size: 0.74rem;
	font-weight: 500;
	line-height: 1.35;
	color: #94a3b8;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

.arrow {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-left: 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--tp-brand, #e53935) 8%, #f8fafc);
	color: var(--tp-brand, #e53935);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.arrow svg {
	width: 14px;
	height: 14px;
	display: block;
}

.card:hover .arrow {
	background: var(--tp-brand, #e53935);
	color: #fff;
}

.cta {
	display: none;
}

/* Desktop — compact tags, separate sections */
@media (min-width: 992px) {
	.section {
		margin: 0 0 2rem;
		text-align: left;
	}

	.title {
		margin: 0 0 0.9rem;
		font-family: var(--heading-font-family, "Cormorant Garamond", Georgia, serif);
		font-size: clamp(1.25rem, 2vw, 1.5rem);
		font-weight: 600;
		line-height: 1.2;
		color: #0f172a;
	}

	.list {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.55rem 0.6rem;
	}

	.card {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		width: auto;
		max-width: min(100%, 22rem);
		min-height: 0;
		height: auto;
		padding: 0.4rem 0.85rem 0.4rem 0.7rem;
		border-radius: 999px;
		border: 1px solid color-mix(in srgb, var(--tp-brand, #e53935) 18%, #e2e8f0);
		background: #fff;
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
		transform: none;
	}

	.card:hover {
		background: var(--tp-brand, #e53935);
		border-color: var(--tp-brand, #e53935);
		color: #fff;
		box-shadow: 0 6px 16px rgba(229, 57, 53, 0.22);
		transform: translateY(-1px);
	}

	.iconWrap {
		width: auto;
		height: auto;
		color: var(--tp-brand, #e53935);
	}

	.iconWrap svg {
		width: 14px;
		height: 14px;
	}

	.card:hover .iconWrap {
		color: #fff;
	}

	.divider,
	.arrow,
	.cta,
	.cardSub {
		display: none;
	}

	.body {
		display: contents;
	}

	.cardTitle {
		display: block;
		min-width: 0;
		font-family: var(--body-font-family, "Plus Jakarta Sans", system-ui, sans-serif);
		font-size: 0.8125rem;
		font-weight: 600;
		line-height: 1.3;
		color: inherit;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		-webkit-line-clamp: unset;
	}

	.card:hover .cardTitle {
		color: #fff;
	}
}

}
