/* Homepage Articles. Styles are intentionally scoped to the shortcode. */
.jwcs-ha {
	--jwcs-ha-visible: 3;
	--jwcs-ha-gap: 24px;
	--jwcs-ha-navy: #2a465e;
	--jwcs-ha-focus: #8d572c;
	color: var(--jwcs-ha-navy);
	position: relative;
	min-width: 0;
}
.jwcs-ha *,
.jwcs-ha *::before,
.jwcs-ha *::after { box-sizing: border-box; }
.jwcs-ha [hidden] { display: none !important; }

.jwcs-ha .jwcs-ha-shell {
	position: relative;
	padding-inline: 40px;
}
.jwcs-ha .jwcs-ha-viewport {
	/* Clip even absolutely positioned descendants of offscreen slides. */
	position: relative;
	min-width: 0;
}
.jwcs-ha .jwcs-ha-track {
	display: grid;
	grid-template-columns: repeat(var(--jwcs-ha-visible), minmax(0, 1fr));
	gap: var(--jwcs-ha-gap);
	margin: 0;
	padding: 0;
}
.jwcs-ha.jwcs-ha-ready .jwcs-ha-viewport { overflow: hidden; }
.jwcs-ha.jwcs-ha-ready .jwcs-ha-track {
	display: flex;
	touch-action: pan-y pinch-zoom;
}
.jwcs-ha.jwcs-ha-ready .jwcs-ha-card {
	flex: 0 0 calc((100% - (var(--jwcs-ha-visible) - 1) * var(--jwcs-ha-gap)) / var(--jwcs-ha-visible));
}

.jwcs-ha .jwcs-ha-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #deded5;
	border-radius: 8px;
}
.jwcs-ha .jwcs-ha-image {
	display: block;
	width: 100%;
	margin: 0;
}
.jwcs-ha .jwcs-ha-card img,
.jwcs-ha .jwcs-ha-image-placeholder {
	display: block;
	width: 100%;
	max-width: none;
	height: 210px;
	margin: 0;
	object-fit: cover;
}
.jwcs-ha .jwcs-ha-image-placeholder { background: #e6ebe2; }
.jwcs-ha .jwcs-ha-card-body {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px;
	overflow-wrap: anywhere;
}
.jwcs-ha .jwcs-ha-card h3 {
	margin: 0 0 14px;
	color: var(--jwcs-ha-navy);
	font-size: 23px;
	line-height: 1.35;
}
.jwcs-ha .jwcs-ha-card h3 a {
	color: inherit;
	text-decoration: none;
}
.jwcs-ha .jwcs-ha-card h3 a:hover { text-decoration: underline; }
.jwcs-ha .jwcs-ha-card p {
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.6;
}
.jwcs-ha .jwcs-ha-read {
	margin-top: auto;
	padding: 0;
	background: transparent;
	color: var(--jwcs-ha-navy);
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.jwcs-ha :is(a, button):focus-visible {
	outline: 3px solid var(--jwcs-ha-focus);
	outline-offset: 3px;
}
.jwcs-ha .jwcs-ha-image:focus-visible {
	outline-offset: -4px;
}

.jwcs-ha .jwcs-ha-controls {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 14px;
}
.jwcs-ha .jwcs-ha-controls button {
	appearance: none;
	box-shadow: none;
	font: inherit;
	text-transform: none;
	cursor: pointer;
}
.jwcs-ha .jwcs-ha-controls :is(.jwcs-ha-prev, .jwcs-ha-next) {
	position: absolute;
	z-index: 1;
	top: 50%;
	display: grid;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	padding: 0;
	border: 1px solid #d3dccf;
	border-radius: 50%;
	background: #e6ebe2;
	box-shadow: 0 2px 5px rgba(42, 70, 54, .06);
	color: #526b59;
	font-size: 0;
	transform: translateY(-50%);
}
.jwcs-ha .jwcs-ha-prev { inset-inline-start: -10px; }
.jwcs-ha .jwcs-ha-next { inset-inline-end: -10px; }
.jwcs-ha .jwcs-ha-controls :is(.jwcs-ha-prev, .jwcs-ha-next)::before {
	width: 9px;
	height: 9px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	content: "";
}
.jwcs-ha .jwcs-ha-prev::before { transform: rotate(135deg); }
.jwcs-ha .jwcs-ha-next::before { transform: rotate(-45deg); }
.jwcs-ha .jwcs-ha-controls :is(.jwcs-ha-prev, .jwcs-ha-next):hover {
	border-color: #b7c6b0;
	background: #dce5d8;
	color: #405b47;
}
.jwcs-ha .jwcs-ha-controls .jwcs-ha-toggle {
	min-height: 44px;
	padding: .3em .75em;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: var(--jwcs-ha-navy);
	font-size: 14px;
}
.jwcs-ha .jwcs-ha-controls .jwcs-ha-toggle:hover {
	border-color: #d3dccf;
	background: #e6ebe2;
}
.jwcs-ha .jwcs-ha-status {
	position: absolute;
	width: 1px;
	height: 1px;
	inset-block-start: 0;
	inset-inline-start: 0;
	margin: 0;
	border: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 991.98px) {
	.jwcs-ha { --jwcs-ha-visible: 2; }
}
@media (max-width: 599.98px) {
	.jwcs-ha { --jwcs-ha-visible: 1; }
	.jwcs-ha .jwcs-ha-shell { padding-inline: 0; }
	.jwcs-ha .jwcs-ha-card img,
	.jwcs-ha .jwcs-ha-image-placeholder { height: 200px; }
	.jwcs-ha .jwcs-ha-card-body { padding: 16px; }
	.jwcs-ha .jwcs-ha-card h3 { font-size: 21px; }
	.jwcs-ha .jwcs-ha-controls :is(.jwcs-ha-prev, .jwcs-ha-next) {
		position: static;
		transform: none;
	}
}
