.tg-author {
	--author-avatar-size: 3.375rem;

	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-block: var(--space-block);
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--border-muted);
	border-radius: 0.5rem;
	background: var(--gradient-blue);
}

.tg-author:first-child {
	margin-block-start: 0;
}

.tg-author:last-child {
	margin-block-end: 0;
}

.tg-author__avatar-link,
.tg-author .tg-author__avatar {
	flex: none;
	border-radius: 0.5rem;
}

.tg-author .tg-author__avatar {
	display: block;
	inline-size: var(--author-avatar-size);
	block-size: var(--author-avatar-size);
	object-fit: cover;
}

.tg-author__body,
.tg-author__details {
	display: grid;
	min-inline-size: 0;
	gap: 0.25rem;
}

.tg-author__name {
	font-size: var(--font-size-h4);
	font-weight: 600;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.tg-author__name a {
	text-decoration: none;
}

.tg-author__name a:is(:hover, :focus-visible),
.tg-author__avatar-link:is(:hover, :focus-visible) + .tg-author__body .tg-author__name a {
	color: var(--color-yellow-500);
}

.tg-author__role {
	color: var(--color-gray-400);
	font-size: 0.75rem;
	line-height: 1.6;
}

@media (min-width: 48em) {
	.tg-author {
		--author-avatar-size: 4rem;

		align-items: center;
		padding: 0.75rem 1rem;
	}

	.tg-author__body {
		display: contents;
	}

	.tg-author__details {
		gap: 0.375rem;
	}

	.tg-author__role {
		font-size: 0.875rem;
		line-height: 1.3;
	}

	.tg-author .tg-author__socials {
		margin-inline-start: auto;
	}
}

@media (min-width: 75em) {
	.tg-author {
		padding: 0.875rem 1.25rem;
	}
}
