/* Compact, accessible homepage journal carousel. Scoped to avoid archive/theme changes. */
.hdsce-latest-posts--carousel {
	margin-top: 44px;
	padding: 28px 30px 30px;
	border-radius: 20px;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__header {
	align-items: center;
	margin-bottom: 20px;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__title {
	margin: 9px 0 5px !important;
	font-size: clamp(29px, 2.35vw, 38px) !important;
	line-height: 1.02 !important;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__subtitle {
	max-width: 700px;
	font-size: 14px !important;
	line-height: 1.45 !important;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__archive {
	min-height: 44px;
	padding-inline: 19px;
}

.hdsce-latest-posts__layout {
	display: grid;
	grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.hdsce-latest-posts__older {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
	border: 1px solid rgba(201, 154, 50, .5);
	border-radius: 14px;
	background: linear-gradient(150deg, #082b20 0%, #051d16 100%);
	color: #fff;
	box-shadow: 0 12px 28px rgba(8, 37, 26, .12);
}

.hdsce-latest-posts__older-head > span {
	display: block;
	margin-bottom: 5px;
	color: #d5ae52;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.hdsce-latest-posts__older h3 {
	margin: 0 !important;
	color: #fff !important;
	font-size: 20px !important;
	line-height: 1.15 !important;
}

.hdsce-latest-posts__older-list {
	margin: 14px 0 16px !important;
	padding: 0 !important;
	list-style: none !important;
}

.hdsce-latest-posts__older-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
	padding: 9px 0;
	border-top: 1px solid rgba(255, 255, 255, .13);
}

.hdsce-latest-posts__older-list a {
	display: -webkit-box;
	overflow: hidden;
	color: #f8f5ec !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hdsce-latest-posts__older-list a:hover {
	color: #f0c55c !important;
}

.hdsce-latest-posts__older-list time {
	padding-top: 1px;
	color: #acc6bb;
	font-size: 10px;
	font-weight: 700;
	white-space: nowrap;
}

.hdsce-latest-posts__older-all {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid rgba(201, 154, 50, .35);
	color: #f0c55c !important;
	font-size: 12px;
	font-weight: 900;
	text-decoration: none !important;
}

.hdsce-latest-posts__older a:focus-visible,
.hdsce-latest-posts__arrow:focus-visible,
.hdsce-latest-posts__grid:focus-visible {
	outline: 3px solid #f0c55c;
	outline-offset: 3px;
}

.hdsce-latest-posts__stage {
	min-width: 0;
}

.hdsce-latest-posts__stage-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	margin-bottom: 10px;
}

.hdsce-latest-posts__stage-head strong {
	display: block;
	color: var(--journal-ink);
	font-size: 15px;
	font-weight: 900;
}

.hdsce-latest-posts__status {
	display: block;
	margin-top: 2px;
	color: #68786f;
	font-size: 10px;
	font-weight: 700;
}

.hdsce-latest-posts__arrows {
	display: flex;
	gap: 8px;
}

.hdsce-latest-posts__arrow {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #075f3b;
	border-radius: 50%;
	background: #075f3b;
	color: #fff;
	font: 900 20px/1 Arial, sans-serif;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}

.hdsce-latest-posts__arrow:hover:not(:disabled) {
	transform: translateY(-2px);
	background: #c99a32;
	color: #08251a;
}

.hdsce-latest-posts__arrow:disabled {
	border-color: #bec9c2;
	background: #e5eae6;
	color: #7a8880;
	cursor: default;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__grid {
	display: grid !important;
	grid-auto-columns: calc((100% - 16px) / 2) !important;
	grid-auto-flow: column !important;
	grid-template-columns: none !important;
	grid-template-rows: repeat(2, auto) !important;
	gap: 16px !important;
	overflow-x: auto !important;
	overflow-y: hidden;
	padding: 2px 2px 8px !important;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__grid::-webkit-scrollbar {
	display: none;
}

.hdsce-latest-posts--carousel .hdsce-post-card {
	display: grid !important;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 14px !important;
	min-height: 126px !important;
	padding: 10px !important;
	border: 1px solid rgba(8, 37, 26, .12) !important;
	border-radius: 14px !important;
	background: #fff !important;
	box-shadow: 0 8px 22px rgba(8, 37, 26, .08) !important;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.hdsce-latest-posts--carousel .hdsce-post-card__media {
	width: 150px;
	height: 104px;
	aspect-ratio: auto;
	align-self: start;
	border-radius: 9px;
	box-shadow: none;
}

.hdsce-latest-posts--carousel .hdsce-post-card__body {
	gap: 6px !important;
	min-width: 0;
	padding: 2px 3px !important;
}

.hdsce-latest-posts--carousel .hdsce-post-card__eyebrow {
	min-height: 20px;
}

.hdsce-latest-posts--carousel .hdsce-post-card__tag {
	min-height: 20px;
	padding-inline: 8px;
	font-size: 8px;
}

.hdsce-latest-posts--carousel .hdsce-post-card__number {
	font-size: 9px;
}

.hdsce-latest-posts--carousel .hdsce-post-card__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px !important;
	line-height: 1.23 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hdsce-latest-posts--carousel .hdsce-post-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	font-size: 11px !important;
	line-height: 1.4 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hdsce-latest-posts--carousel .hdsce-post-card__meta {
	padding-top: 4px !important;
	font-size: 9px !important;
}

.hdsce-latest-posts--carousel .hdsce-post-card__meta a {
	min-height: 28px;
	font-size: 10px;
}

@media (max-width: 1100px) {
	.hdsce-latest-posts__layout {
		grid-template-columns: minmax(200px, 230px) minmax(0, 1fr);
		gap: 20px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__grid {
		grid-auto-columns: 100% !important;
		grid-template-rows: none !important;
	}
}

@media (max-width: 700px) {
	.hdsce-latest-posts--carousel {
		margin-top: 34px;
		padding: 24px 0 22px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__header {
		margin-bottom: 14px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__title {
		font-size: 28px !important;
	}

	.hdsce-latest-posts__layout {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.hdsce-latest-posts__stage {
		order: 1;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	.hdsce-latest-posts__older {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		order: 2;
		margin-inline: 18px;
		padding: 14px 16px;
	}

	.hdsce-latest-posts__older-head > span,
	.hdsce-latest-posts__older-list {
		display: none !important;
	}

	.hdsce-latest-posts__older h3 {
		font-size: 16px !important;
	}

	.hdsce-latest-posts__older-all {
		flex: 0 0 auto;
		min-height: 44px;
		margin: 0;
		padding: 0 0 0 14px;
		border-top: 0;
		border-left: 1px solid rgba(201, 154, 50, .35);
	}

	.hdsce-latest-posts__stage-head {
		margin-bottom: 9px;
		padding-inline: 18px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__grid {
		grid-auto-columns: 78vw !important;
		gap: 12px !important;
		padding: 0 18px 12px !important;
		scroll-padding-inline: 18px;
	}

	.hdsce-latest-posts--carousel .hdsce-post-card {
		display: flex !important;
		gap: 0 !important;
		padding: 8px !important;
	}

	.hdsce-latest-posts--carousel .hdsce-post-card__media {
		width: 100%;
		height: 132px;
	}

	.hdsce-latest-posts--carousel .hdsce-post-card__body {
		padding: 11px 6px 4px !important;
	}

	.hdsce-latest-posts--carousel .hdsce-post-card__title {
		font-size: 16px !important;
	}

	.hdsce-latest-posts--carousel .hdsce-post-card__meta a {
		min-height: 44px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__mobile-cta {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hdsce-latest-posts--carousel .hdsce-latest-posts__grid {
		scroll-behavior: auto;
	}

	.hdsce-latest-posts__arrow {
		transition: none;
	}
}

/* Editorial rail refinement: compact, single-row and deliberately restrained. */
.hdsce-latest-posts--carousel {
	margin-top: 32px;
	padding: 20px 28px 21px;
	border-radius: 12px;
}

/* Match the desktop content rail used by the homepage product sections. */
@media (min-width: 701px) {
	.hdsce-latest-posts--carousel {
		box-sizing: border-box;
		width: calc(100% - 32px);
		max-width: 1180px;
		margin-right: auto;
		margin-left: auto;
	}
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__header {
	align-items: end;
	margin-bottom: 12px;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__title {
	margin: 6px 0 3px !important;
	font-size: clamp(28px, 2.15vw, 34px) !important;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__subtitle {
	font-size: 13px !important;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__archive {
	min-height: 36px;
	padding-inline: 15px;
	border-radius: 5px;
	font-size: 11px;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__layout {
	grid-template-columns: 235px minmax(0, 1fr);
	gap: 18px;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__older {
	min-height: 250px;
	padding: 12px 15px;
	border-radius: 8px;
	box-shadow: none;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__older h3 {
	font-size: 17px !important;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__older-list {
	margin: 9px 0 8px !important;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__older-list li {
	padding: 4px 0;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__older-list a {
	font-size: 10px;
	line-height: 1.2;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__older-all {
	min-height: 34px;
	padding-top: 6px;
	font-size: 11px;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__stage-head {
	min-height: 34px;
	margin-bottom: 8px;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__arrow {
	width: 32px;
	height: 32px;
	font-size: 15px;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__arrow:hover:not(:disabled) {
	transform: none;
}

.hdsce-latest-posts--carousel .hdsce-latest-posts__grid {
	grid-auto-columns: clamp(220px, calc((100% - 24px) / 3.15), 250px) !important;
	grid-template-rows: minmax(0, 1fr) !important;
	gap: 12px !important;
	padding: 1px 1px 5px !important;
}

.hdsce-latest-posts--carousel .hdsce-post-card {
	display: flex !important;
	flex-direction: column;
	gap: 0 !important;
	min-height: 238px !important;
	padding: 7px !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, .72) !important;
	box-shadow: none !important;
}

.hdsce-latest-posts--carousel .hdsce-post-card__media {
	width: 100%;
	height: 118px;
	border-radius: 5px;
}

.hdsce-latest-posts--carousel .hdsce-post-card__body {
	gap: 5px !important;
	padding: 9px 3px 1px !important;
}

.hdsce-latest-posts--carousel .hdsce-post-card__eyebrow {
	justify-content: flex-start;
	gap: 8px;
	min-height: 18px;
}

.hdsce-latest-posts--carousel .hdsce-post-card__eyebrow time {
	color: #68786f;
	font-size: 9px;
	font-weight: 700;
}

.hdsce-latest-posts--carousel .hdsce-post-card__tag {
	min-height: 18px;
	padding-inline: 7px;
}

.hdsce-latest-posts--carousel .hdsce-post-card__title {
	font-size: 16px !important;
	line-height: 1.18 !important;
	-webkit-line-clamp: 2;
}

.hdsce-latest-posts--carousel .hdsce-post-card__excerpt {
	display: none !important;
}

.hdsce-latest-posts--carousel .hdsce-post-card__meta {
	justify-content: flex-end !important;
	padding-top: 2px !important;
	border-top: 0 !important;
}

.hdsce-latest-posts--carousel .hdsce-post-card__meta a {
	min-height: 24px;
}

@media (max-width: 1100px) and (min-width: 701px) {
	.hdsce-latest-posts--carousel .hdsce-latest-posts__layout {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 16px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__grid {
		grid-auto-columns: clamp(220px, 46%, 240px) !important;
		grid-template-rows: minmax(0, 1fr) !important;
	}
}

@media (max-width: 700px) {
	.hdsce-latest-posts--carousel {
		margin-top: 28px;
		padding: 20px 0 18px;
		border-radius: 9px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__header {
		align-items: start;
		margin-bottom: 12px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__controls {
		display: block !important;
		margin-top: 11px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__archive {
		display: inline-flex;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__grid {
		grid-auto-columns: min(76vw, 250px) !important;
		grid-template-rows: minmax(0, 1fr) !important;
	}

	.hdsce-latest-posts--carousel .hdsce-post-card {
		min-height: 254px !important;
	}

	.hdsce-latest-posts--carousel .hdsce-post-card__media {
		height: 140px;
	}

	.hdsce-latest-posts--carousel .hdsce-latest-posts__older {
		min-height: 0;
	}
}
