/* Author archive (templates/author.html) — author-profile-header pattern +
   author-archive/author-card styling. Loaded only on is_author(). Slice 3. */

.author-profile {
	--ghn-author-avatar-size: 110px;
	--ghn-author-stack-gap: 16px;
	--ghn-author-social-gap: 12px;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
}

/* QA-31: avatar/bio/social render as a distinct meta box beneath the
   page-title-bar heading, rather than bundled markup replacing the page
   header entirely. */
.author-meta-box {
	background-color: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 4px;
	margin-top: var(--wp--preset--spacing--20);
}

.author-profile__avatar-wrap {
	width: var(--ghn-author-avatar-size);
	height: var(--ghn-author-avatar-size);
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: var(--ghn-author-stack-gap);
}

.author-profile__avatar-wrap .author-avatar,
.author-profile__avatar-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.author-profile .author-bio.bio-box {
	border-left: 4px solid var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--surface-alt);
	padding: 12px 12px 12px 16px;
	margin-bottom: var(--wp--preset--spacing--20);
}

.author-profile .author-bio-text {
	font-size: var(--wp--preset--font-size--regular);
	line-height: 1.4;
	margin: 0;
}

.author-profile__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ghn-author-social-gap);
	margin-top: 8px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
}

.author-profile__social-link {
	color: var(--wp--preset--color--primary);
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.author-card .wp-block-avatar img,
.author-archive__avatar img {
	border-radius: 50%;
	width: 120px;
	height: 120px;
	object-fit: cover;
}

.author-archive__bio {
	border-left: 4px solid var(--wp--preset--color--primary);
	padding-left: 1.5rem;
	margin-bottom: 2rem;
}
