/**
 * Multi-creator attribution component (.knack-creators)
 *
 * YouTube-style "by A & B" credit: overlapping linked avatars + linked names.
 * Size-driven via the --kc-size custom property (set inline per call).
 * Loaded site-wide so it works on cards, archives, single views and store pages.
 */

.knack-creators {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	max-width: 100%;
	line-height: 1.2;
}

.knack-creators__label {
	color: var(--knack-text-muted, #888);
	font-size: 0.82em;
	flex: 0 0 auto;
}

.knack-creators__avatars {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.knack-creators__avatar,
.knack-creators__more {
	width: var(--kc-size, 28px);
	height: var(--kc-size, 28px);
	border-radius: 50%;
	flex: 0 0 auto;
	border: 2px solid var(--knack-surface, #fff);
	margin-left: calc(var(--kc-size, 28px) * -0.32);
	background: var(--knack-bg-secondary, #ececec);
	overflow: hidden;
	display: inline-block;
	position: relative;
}

.knack-creators__avatars > :first-child {
	margin-left: 0;
}

.knack-creators__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.knack-creators__avatar:hover {
	transform: translateY(-1px);
	transition: transform 0.15s ease;
}

.knack-creators__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--knack-text-secondary, #555);
	font-size: 0.62em;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.knack-creators__names {
	min-width: 0;
	font-size: 0.9em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.knack-creators__name {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.knack-creators__name:hover {
	color: var(--knack-accent, #60335e);
	text-decoration: underline;
}

/* Solo creator: no overlap needed, tighter gap. */
.knack-creators--solo .knack-creators__avatar {
	margin-left: 0;
}
