/**
 * AIOSEO EEAT Template Styles
 *
 * Custom styles for AIOSEO EEAT templates (AuthorBio, AuthorTooltip, ReviewerTooltip)
 * Migrated from edd-v2 theme to edd-core plugin.
 */

/* Author Tooltip & Reviewer Tooltip Styles */
.aioseo-author,
.aioseo-reviewer {
	align-items: left;
	display: flex;
	flex: 0 0 50%;
	font-size: 0.87rem;
}

.aioseo-author .aioseo-eeat-image,
.aioseo-reviewer .aioseo-eeat-image {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 6px;
}

.aioseo-author .aioseo-eeat-text,
.aioseo-reviewer .aioseo-eeat-text {
	display: flex;
	flex-direction: column;
	font-size: 0.87rem;
}

.aioseo-author .aioseo-eeat-text .aioseo-eeat-job-title,
.aioseo-reviewer .aioseo-eeat-text .aioseo-eeat-job-title {
	font-size: 0.87rem;
	line-height: 1.2;
	color: #6e747b;
}

.aioseo-author .aioseo-eeat-text .badge,
.aioseo-reviewer .aioseo-eeat-text .badge {
	align-items: center;
	background: #E8F6F0;
	border-radius: 3px;
	color: #1A8756;
	cursor: default;
	display: inline-grid;
	font-size: 8px !important;
	font-weight: 700;
	grid-column-gap: 3px;
	grid-template-columns: auto auto;
	margin-right: 1px;
	margin-top: -1px;
	padding: 3px 5px;
	vertical-align: middle;
}

/* Ensure badge SVG icon is properly sized */
.aioseo-author .aioseo-eeat-text .badge svg,
.aioseo-reviewer .aioseo-eeat-text .badge svg {
	width: 8px;
	height: 8px;
}

.aioseo-author .aioseo-eeat-text .aioseo-eeat-name,
.aioseo-reviewer .aioseo-eeat-text .aioseo-eeat-name {
	font-size: 0.87rem;
	line-height: 1.2;
}

.aioseo-author .aioseo-eeat-text .aioseo-eeat-name a,
.aioseo-reviewer .aioseo-eeat-text .aioseo-eeat-name a {
	font-size: 0.87rem !important;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
}

/* Ensure span inside name also inherits correct size (but not badge) */
.aioseo-author .aioseo-eeat-text .aioseo-eeat-name span:not(.badge),
.aioseo-reviewer .aioseo-eeat-text .aioseo-eeat-name span:not(.badge) {
	font-size: 0.87rem !important;
}

.aioseo-author .aioseo-eeat-text .aioseo-eeat-name a:hover,
.aioseo-reviewer .aioseo-eeat-text .aioseo-eeat-name a:hover {
	color: #2794da;
}

/* Author Bio Archive Styles */
body.archive.author .archive-header {
	margin-bottom: 2rem;
}

body.archive.author .archive-header div.row .author-avatar {
	margin: auto 0px;
}

body.archive.author .archive-header div.row .author-avatar img {
	height: 150px;
	width: 150px;
	border-radius: 99999px;
}

body.archive.author .archive-header div.row .author-meta {
	display: flex;
	flex-direction: column;
}

body.archive.author .archive-header div.row .author-meta span {
	margin-bottom: 1rem;
}

body.archive.author .archive-header div.row .author-meta h1.author-name {
	font-size: 1.75rem;
	margin-bottom: 0px;
}

body.archive.author .archive-header div.row .author-meta h1.author-name .author-job-title {
	border-left: 1px solid #7990a0;
	padding-left: 8px;
	margin-left: 8px;
	font-weight: 300;
	margin-bottom: 0;
	color: #7990a0;
	vertical-align: baseline;
}

body.archive.author .archive-header div.row .author-socials {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
}

body.archive.author .archive-header div.row .author-socials a {
	text-decoration: none;
	color: #7990a0;
	opacity: .75;
	transition: opacity .25s ease-in-out;
}

body.archive.author .archive-header div.row .author-socials a:hover {
	opacity: 1;
}

body.archive.author .archive-header div.row .author-socials a img {
	height: 20px;
	width: 20px;
	vertical-align: baseline;
}

body.archive.author section div.container .row {
	padding-bottom: 2rem;
	padding-top: 2rem;
	border-bottom: 1px solid #cfd9e6;
}

body.archive.author section div.container .row:first-of-type {
	padding-top: 0px;
}

body.archive.author section div.container .row:last-of-type {
	border-bottom: none;
}

body.archive.author section div.container .row h2 {
	font-weight: 300;
}

body.archive.author section div.container .row.expertise .author-expertises {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
}

body.archive.author section div.container .row.expertise .author-expertises .author-expertise {
	background-color: #f4f7fa;
	border-radius: 99999px;
	padding: 5px 10px;
	border: 1px solid #7990a0;
	font-size: .85rem;
	font-weight: 500;
	color: #7990a0;
	text-transform: uppercase;
}
