.chsla-inline-related,
.chsla-related-group {
	box-sizing: border-box;
	margin: 1.5rem 0;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(20, 33, 61, 0.12);
	border-left: 4px solid #14213d;
	border-radius: 12px;
	background: #fbfbf8;
	font-size: 0.98rem;
	line-height: 1.55;
}

.chsla-related-group {
	margin: 2.25rem 0;
	padding: 1.25rem;
	border-left-width: 0;
}

.chsla-inline-related *,
.chsla-related-group * {
	box-sizing: border-box;
}

.chsla-related-cta,
.chsla-related-heading {
	display: block;
	margin: 0 0 0.65rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #14213d;
}

.chsla-related-heading {
	font-size: 1.22rem;
	line-height: 1.3;
}

.chsla-related-list {
	margin: 0;
	padding-left: 1.15rem;
}

.chsla-related-item {
	margin: 0.25rem 0;
	padding: 0;
}

.chsla-related-link,
.chsla-related-title {
	font-weight: 700;
	text-decoration: none;
	color: #1f4e79;
}

.chsla-related-link:hover,
.chsla-related-link:focus,
.chsla-related-title:hover,
.chsla-related-title:focus {
	text-decoration: underline;
}

.chsla-related-cards {
	display: grid;
	gap: 0.85rem;
}

.chsla-related-card {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: center;
	padding: 0.75rem;
	border: 1px solid rgba(20, 33, 61, 0.10);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(20, 33, 61, 0.05);
}

.chsla-template-image-horizontal .chsla-related-card {
	grid-template-columns: 132px minmax(0, 1fr);
}

.chsla-template-compact .chsla-related-card.chsla-no-image,
.chsla-template-image-horizontal .chsla-related-card.chsla-no-image {
	grid-template-columns: minmax(0, 1fr);
}

.chsla-related-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 10px;
	background: #f1f1ed;
}

.chsla-related-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chsla-related-content {
	min-width: 0;
}

.chsla-related-category {
	display: inline-block;
	margin: 0 0 0.25rem;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #7a4b00;
}

.chsla-related-title {
	display: block;
	font-size: 1rem;
	line-height: 1.35;
}

.chsla-related-date {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.82rem;
	color: #646970;
}

.chsla-related-excerpt {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
	color: #3c434a;
}

.chsla-related-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chsla-related-grid .chsla-related-card {
	grid-template-columns: 1fr;
	align-items: start;
}

.chsla-related-grid .chsla-related-image {
	aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
	.chsla-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.chsla-inline-related,
	.chsla-related-group {
		padding: 0.9rem;
		border-radius: 10px;
	}

	.chsla-related-card,
	.chsla-template-image-horizontal .chsla-related-card {
		grid-template-columns: 82px minmax(0, 1fr);
		gap: 0.7rem;
		padding: 0.65rem;
	}

	.chsla-related-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.chsla-related-card,
	.chsla-template-image-horizontal .chsla-related-card {
		grid-template-columns: 1fr;
	}

	.chsla-related-image {
		aspect-ratio: 16 / 9;
	}
}

/* v1.4 device visibility controls */
@media (min-width: 1025px) {
	.chsla-device-tablet,
	.chsla-device-mobile,
	.chsla-device-tablet-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.chsla-device-desktop,
	.chsla-device-mobile {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.chsla-device-desktop,
	.chsla-device-tablet,
	.chsla-device-desktop-tablet {
		display: none !important;
	}
}

/* v1.4 AMP-safe minimal template */
.chsla-amp-safe {
	border: 1px solid #e5e0d8;
	background: #fffaf2;
	padding: 1rem;
}

.chsla-amp-related-list {
	display: grid;
	gap: 0.85rem;
}

.chsla-amp-related-item {
	border-bottom: 1px solid #eee3d2;
	padding-bottom: 0.75rem;
}

.chsla-amp-related-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.chsla-amp-related-item .chsla-related-image {
	display: block;
	margin-bottom: 0.5rem;
}

.chsla-inline-related a:focus,
.chsla-related-group a:focus {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.chsla-related-card {
	overflow-wrap: anywhere;
}

.chsla-related-title {
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

/* v2.0 contextual auto-linking */
a.chsla-contextual-link {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

a.chsla-contextual-link:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
