/* Series Shelf: Branding owns the palette, type, corners, and section spacing. */
.cc-msg-shelf {
	--cc-msg-shelf-per-view: 3;
	--cc-msg-shelf-gap: clamp(16px, 2vw, 32px);
	--cc-msg-shelf-cover-ratio: 16 / 9;
	--cc-msg-shelf-radius: var(--img-radius, 0);
	--cc-msg-shelf-cover-bg: color-mix(in srgb, currentColor 8%, transparent);
	--cc-msg-shelf-cover-ink: currentColor;
	--cc-msg-shelf-accent: var(--color-main);
	--cc-msg-shelf-line: color-mix(in srgb, currentColor 18%, transparent);
	--cc-msg-shelf-muted: color-mix(in srgb, currentColor 76%, transparent);
	--cc-msg-shelf-name-font: var(--font-titles);
	--cc-msg-shelf-type-font: var(--font-titles);
	container-type: inline-size;
	min-width: 0;
}
.cc-msg-shelf--square { --cc-msg-shelf-cover-ratio: 1 / 1; }
.cc-msg-shelf--portrait { --cc-msg-shelf-cover-ratio: 4 / 5; }
.bg-main .cc-msg-shelf, .bg-black .cc-msg-shelf, .bg-image .cc-msg-shelf { --cc-msg-shelf-accent: currentColor; }
.ct-wrapper:has(.cc-msg-shelf__scroller[role="region"]) { overflow-x: clip; }
.cc-msg-shelf .cc-msg-shelf__scroller {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	margin-right: calc(50% - 50vw);
	padding-bottom: 6px;
}
.cc-msg-shelf .cc-msg-shelf__scroller::-webkit-scrollbar { display: none; }
.cc-msg-shelf :is(a, [tabindex]):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.cc-msg-shelf .cc-msg-shelf__list {
	display: flex;
	gap: var(--cc-msg-shelf-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.cc-msg-shelf .cc-msg-shelf__item {
	flex: 0 0 calc((100cqw - (var(--cc-msg-shelf-per-view) - 1) * var(--cc-msg-shelf-gap)) / var(--cc-msg-shelf-per-view));
	scroll-snap-align: start;
	min-width: 0;
	margin: 0;
	padding: 0;
}
.cc-msg-shelf .cc-msg-shelf__list::after { content: ''; flex: 0 0 max(0px, calc(50vw - 50cqw - var(--cc-msg-shelf-gap))); }
.cc-msg-shelf .cc-msg-shelf__cover {
	display: block;
	aspect-ratio: var(--cc-msg-shelf-cover-ratio);
	overflow: hidden;
	border-radius: var(--cc-msg-shelf-radius);
	background: var(--cc-msg-shelf-cover-bg);
	color: var(--cc-msg-shelf-cover-ink);
	position: relative;
	text-decoration: none;
}
.cc-msg-shelf .cc-msg-shelf__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-msg-shelf .cc-msg-shelf__type {
	display: flex;
	align-items: flex-end;
	height: 100%;
	box-sizing: border-box;
	padding: clamp(16px, 2vw, 28px);
	font-family: var(--cc-msg-shelf-type-font);
	font-size: clamp(24px, 2.6vw, 44px);
	line-height: 1;
	letter-spacing: -.01em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}
.cc-msg-shelf .cc-msg-shelf__body { padding-top: 18px; }
.cc-msg-shelf .cc-msg-shelf__name {
	font-family: var(--cc-msg-shelf-name-font);
	font-size: clamp(20px, 1.6vw, 26px);
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
.cc-msg-shelf :is(.cc-msg-shelf__name a, .cc-msg-shelf__msg) { color: inherit; text-decoration: none; text-underline-offset: .18em; }
.cc-msg-shelf :is(.cc-msg-shelf__name a, .cc-msg-shelf__msg):hover { text-decoration-line: var(--cc-link-hover-line, none); }
.cc-msg-shelf :is(.cc-msg-shelf__name a, .cc-msg-shelf__msg):focus-visible { text-decoration-line: underline; }
.cc-msg-shelf .cc-msg-shelf__count { font-size: 16px; line-height: 1.5; color: var(--cc-msg-shelf-muted); margin: 6px 0 0; }
.cc-msg-shelf .cc-msg-shelf__latest { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cc-msg-shelf-line); display: grid; gap: 4px; }
.cc-msg-shelf .cc-msg-shelf__label { font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--cc-msg-shelf-muted); }
.cc-msg-shelf .cc-msg-shelf__msg { font-size: clamp(17px, 1.2vw, 18px); line-height: 1.4; overflow-wrap: anywhere; }
.cc-msg-shelf .cc-msg-shelf__msg:is(:hover, :focus-visible) { color: var(--cc-msg-shelf-accent); }
.cc-msg-shelf .cc-msg-shelf__meta { font-size: 16px; line-height: 1.5; color: var(--cc-msg-shelf-muted); overflow-wrap: anywhere; }
.cc-msg-shelf .cc-msg-empty, .cc-msg-shelf .cc-msg-note { overflow-wrap: anywhere; }
.cc-msg-shelf--single .cc-msg-shelf__scroller { margin-right: 0; scroll-snap-type: none; overflow: visible; }
.cc-msg-shelf--single .cc-msg-shelf__item { flex-basis: 100%; }
.cc-msg-shelf--single .cc-msg-shelf__list::after { display: none; }
.cc-msg-shelf--single .cc-msg-shelf__card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cc-msg-shelf--single .cc-msg-shelf__body { padding: 0; }
.cc-msg-shelf--single .cc-msg-shelf__name { font-size: clamp(28px, 3vw, 48px); }
@media (max-width: 1000px) {
	.cc-msg-shelf:not(.cc-msg-shelf--single) .cc-msg-shelf__item { flex-basis: calc((100cqw - 2 * var(--cc-msg-shelf-gap)) / 2.2); }
}
@media (max-width: 767px) {
	.cc-msg-shelf:not(.cc-msg-shelf--single) .cc-msg-shelf__item { flex-basis: calc((100cqw - var(--cc-msg-shelf-gap)) / 1.15); }
	.cc-msg-shelf--single .cc-msg-shelf__card { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
	.cc-msg-shelf .cc-msg-shelf__scroller { scroll-behavior: smooth; }
	.cc-msg-shelf .cc-msg-shelf__img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
	.cc-msg-shelf .cc-msg-shelf__card:is(:hover, :focus-within) .cc-msg-shelf__img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
	.cc-msg-shelf .cc-msg-shelf__scroller { scroll-behavior: auto; }
}
