/**
 * Frontend styles for co-author byline display.
 *
 * Default styles for the .coauthors-byline element and related classes.
 */

.coauthors-byline {
	display: inline;
	font-size: inherit;
	line-height: 1.6;
}

.coauthors-byline .coauthor-link {
	color: inherit;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.coauthors-byline .coauthor-link:hover {
	opacity: 0.8;
}

.coauthors-byline .coauthor-badge {
	display: inline-block;
	padding: 0.25em 0.5em;
	margin: 0 0.25em;
	border: 1px solid currentColor;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.02);
	color: inherit;
	text-decoration: none;
	font-size: 0.95em;
	transition: background 0.2s ease;
}

.coauthors-byline .coauthor-badge:hover {
	background: rgba(0, 0, 0, 0.05);
}

.coauthors-byline .coauthor-email {
	font-size: 0.9em;
	opacity: 0.7;
	margin-left: 0.25em;
}

.coauthors-byline .coauthor-separator {
	margin: 0 0.25em;
}

.coauthors-byline .coauthor-last-separator {
	margin: 0 0.25em;
}

/* Inline co-author avatars in the byline */
.coauthor-byline-item {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin: 0 1px;
}

.coauthor-link-with-avatar {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.coauthor-link-with-avatar:hover {
	opacity: 0.8;
}

.coauthor-byline-avatar {
	display: inline-block;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	object-fit: cover;
	vertical-align: middle;
	border: 1.5px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	flex-shrink: 0;
}

.coauthor-byline-name {
	vertical-align: middle;
}

.coauthors-sep {
	white-space: nowrap;
}

/* Byline enhancement with avatar grid */
.coauthors-byline .pca-avatar-grid {
	display: inline-flex;
	margin-left: 0.5em;
	vertical-align: middle;
}

.coauthors-byline .pca-avatar-grid .pca-avatar-item {
	margin-left: -8px;
}

.coauthors-byline .pca-avatar-grid .pca-avatar-item:first-child {
	margin-left: 0;
}

.coauthors-byline .pca-avatar-grid .pca-avatar-img {
	width: 32px;
	height: 32px;
}

.coauthors-byline .pca-author-role {
	color: inherit;
	opacity: 0.7;
}

/* ==========================================
   Author List shortcode
   ========================================== */

.pca-author-list {
	display: flex;
	gap: 1.25rem;
}

.pca-author-list--horizontal {
	flex-flow: row wrap;
	align-items: center;
}

.pca-author-list--vertical {
	flex-flow: column nowrap;
	align-items: flex-start;
}

.pca-author-list__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.pca-author-list__avatar {
	display: block;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.pca-author-list__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.pca-author-list__name {
	display: block;
	font-size: 0.95em;
	font-weight: 500;
	line-height: 1.3;
}

.pca-author-list__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: opacity 0.2s ease;
}

.pca-author-list__link:hover {
	opacity: 0.75;
}

.pca-author-list__role {
	display: block;
	font-size: 0.8em;
	opacity: 0.65;
	line-height: 1.2;
}
