.spva-article-collection {
	--spva-shortcode-primary: #3e9568;
	--spva-shortcode-text: #27312a;
	--spva-shortcode-card-bg: #fff;
	--spva-shortcode-radius: 12px;
	--spva-shortcode-gap: 26px;
	--spva-shortcode-transition: 250ms;
	--spva-shortcode-shadow: 0 10px 28px rgba(24, 63, 45, 0.09);
	--spva-shortcode-line: #e3e8e1;
	--spva-shortcode-muted: #657068;
	--spva-shortcode-soft: #eef3ed;
	box-sizing: border-box;
	color: var(--spva-shortcode-text);
	container-name: spva-articles;
	container-type: inline-size;
	font-family: inherit;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.spva-article-collection *,
.spva-article-collection *::before,
.spva-article-collection *::after {
	box-sizing: border-box;
}

.spva-article-carousel__viewport,
.spva-article-carousel__track,
.spva-article-grid__items {
	margin: 0;
	max-width: 100%;
	min-width: 0;
	padding: 0;
	width: 100%;
}

.spva-article-carousel__track {
	display: grid;
	gap: var(--spva-shortcode-gap);
	grid-auto-columns: 100%;
	grid-auto-flow: column;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	padding: 4px 3px 18px;
	scroll-behavior: smooth;
	scroll-padding-inline: 3px;
	scroll-snap-type: inline mandatory;
	scrollbar-color: var(--spva-shortcode-primary) transparent;
	scrollbar-width: thin;
}

.spva-article-carousel__track > .spva-shortcode-card {
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

.spva-article-grid__items {
	display: grid;
	gap: var(--spva-shortcode-gap);
	grid-template-columns: minmax(0, 1fr);
}

.spva-shortcode-card {
	background: var(--spva-shortcode-card-bg);
	border: 1px solid var(--spva-shortcode-line);
	border-radius: var(--spva-shortcode-radius);
	box-shadow: var(--spva-shortcode-shadow);
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	transition: border-color var(--spva-shortcode-transition) ease, box-shadow var(--spva-shortcode-transition) ease, transform var(--spva-shortcode-transition) ease;
}

.spva-shortcode-card__media {
	aspect-ratio: 3 / 2;
	background: var(--spva-shortcode-soft);
	display: block;
	overflow: hidden;
	text-decoration: none;
	width: 100%;
}

.spva-shortcode-card__image,
.spva-shortcode-card .spva-shortcode-card__image {
	display: block;
	height: 100%;
	margin: 0;
	max-width: none;
	object-fit: cover;
	transition: transform var(--spva-shortcode-transition) ease;
	width: 100%;
}

.spva-shortcode-card__fallback {
	align-items: center;
	background:
		radial-gradient(circle at 82% 18%, rgba(160, 111, 70, 0.17) 0 18%, transparent 18.5%),
		linear-gradient(145deg, #e5ece3, var(--spva-shortcode-soft));
	color: rgba(16, 63, 43, 0.55);
	display: flex;
	font-size: 13px;
	font-weight: 700;
	height: 100%;
	justify-content: center;
	letter-spacing: 0.18em;
	width: 100%;
}

.spva-shortcode-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: clamp(20px, 3.2cqi, 27px);
}

.spva-article-collection .spva-shortcode-card__category,
.spva-article-collection .spva-shortcode-card__category:link,
.spva-article-collection .spva-shortcode-card__category:visited {
	align-self: flex-start;
	color: var(--spva-shortcode-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.35;
	margin: 0 0 12px;
	text-decoration: none;
	text-transform: uppercase;
}

.spva-shortcode-card__title {
	font-family: inherit;
	font-size: clamp(20px, 2.4cqi, 23px);
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.3;
	margin: 0;
	overflow-wrap: anywhere;
}

.spva-article-collection .spva-shortcode-card__title a,
.spva-article-collection .spva-shortcode-card__title a:link,
.spva-article-collection .spva-shortcode-card__title a:visited {
	color: var(--spva-shortcode-text);
	text-decoration: none;
}

.spva-shortcode-card__date {
	color: var(--spva-shortcode-muted);
	display: block;
	font-size: 12px;
	line-height: 1.4;
	margin: 12px 0 0;
}

.spva-shortcode-card__excerpt {
	color: #4d5650;
	font-size: 15px;
	line-height: 1.6;
	margin: 16px 0 0;
}

.spva-article-collection .spva-shortcode-card__button,
.spva-article-collection .spva-shortcode-card__button:link,
.spva-article-collection .spva-shortcode-card__button:visited {
	align-items: center;
	align-self: flex-start;
	color: #103f2b;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	gap: 6px;
	line-height: 1.35;
	margin-top: auto;
	padding-top: 22px;
	text-decoration: none;
}

.spva-article-collection .spva-shortcode-card__button > span[aria-hidden="true"] {
	transition: transform var(--spva-shortcode-transition) ease;
}

.spva-article-carousel__controls {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin: 16px 0 0;
}

.spva-article-carousel__controls[hidden] {
	display: none;
}

.spva-article-carousel__arrow {
	-webkit-appearance: none;
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid var(--spva-shortcode-line);
	border-radius: 50%;
	box-shadow: none;
	color: var(--spva-shortcode-text);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	margin: 0;
	padding: 0;
	transition: background-color var(--spva-shortcode-transition) ease, border-color var(--spva-shortcode-transition) ease, color var(--spva-shortcode-transition) ease, transform var(--spva-shortcode-transition) ease;
	width: 44px;
}

.spva-article-carousel__arrow svg {
	display: block;
	height: 21px;
	width: 21px;
}

.spva-article-carousel__arrow:disabled {
	cursor: default;
	opacity: 0.38;
}

.spva-article-carousel__status,
.spva-article-collection .screen-reader-text {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.spva-article-collection:focus-visible,
.spva-article-collection a:focus-visible,
.spva-article-collection button:focus-visible {
	outline: 2px solid var(--spva-shortcode-primary);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.spva-shortcode-card:hover {
		border-color: #ccd8ca;
		box-shadow: 0 15px 32px rgba(24, 63, 45, 0.13);
		transform: translateY(-3px);
	}

	.spva-shortcode-card:hover .spva-shortcode-card__image {
		transform: scale(1.03);
	}

	.spva-article-collection .spva-shortcode-card__category:hover,
	.spva-article-collection .spva-shortcode-card__title a:hover,
	.spva-article-collection .spva-shortcode-card__button:hover {
		color: var(--spva-shortcode-primary);
	}

	.spva-article-collection .spva-shortcode-card__button:hover > span[aria-hidden="true"] {
		transform: translateX(3px);
	}

	.spva-article-carousel__arrow:not(:disabled):hover {
		background: var(--spva-shortcode-primary);
		border-color: var(--spva-shortcode-primary);
		color: #fff;
		transform: translateY(-2px);
	}
}

@container spva-articles (min-width: 560px) {
	.spva-article-collection:not(.spva-columns-1) .spva-article-grid__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spva-article-collection:not(.spva-columns-1) .spva-article-carousel__track {
		grid-auto-columns: calc((100% - var(--spva-shortcode-gap)) / 2);
	}
}

@container spva-articles (min-width: 1050px) {
	.spva-article-collection.spva-columns-3 .spva-article-grid__items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.spva-article-collection.spva-columns-4 .spva-article-grid__items {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.spva-article-collection.spva-columns-3 .spva-article-carousel__track {
		grid-auto-columns: calc((100% - (2 * var(--spva-shortcode-gap))) / 3);
	}

	.spva-article-collection.spva-columns-4 .spva-article-carousel__track {
		grid-auto-columns: calc((100% - (3 * var(--spva-shortcode-gap))) / 4);
	}
}

@media (max-width: 559px) {
	.spva-article-carousel__controls {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spva-article-carousel__track {
		scroll-behavior: auto;
	}

	.spva-shortcode-card,
	.spva-shortcode-card__image,
	.spva-article-collection .spva-shortcode-card__button > span[aria-hidden="true"],
	.spva-article-carousel__arrow {
		transition: none;
	}

	.spva-shortcode-card:hover,
	.spva-shortcode-card:hover .spva-shortcode-card__image,
	.spva-article-collection .spva-shortcode-card__button:hover > span[aria-hidden="true"],
	.spva-article-carousel__arrow:not(:disabled):hover {
		transform: none;
	}
}
