/* Article author: byline (blog listings, under the article title) and author
   box (end of the article). Markup: inc/post-author.php. */

.ova_author_byline,
.ova_author_box {
	--ova-author-accent: #7d6a3e;
	--ova-author-title: #0b0c1b;
	--ova-author-text: #5c5d66;
	--ova-author-surface: #f7f6f9;
}

/* Photo
------------------------------------------------------------ */
.ova_author_avatar {
	display: block;
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 50%;
	background-color: #e9e7ee;
}

.ova_author_avatar .ova_author_avatar_img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	object-fit: cover;
	object-position: center top;
}

/* Byline
------------------------------------------------------------ */
.ova_author_byline,
.ova_author_byline .ova_author_byline_link {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ova_author_byline {
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.3;
}

.ova_author_byline .ova_author_avatar {
	width: 36px;
	height: 36px;
}

.ova_author_byline .ova_author_name,
.ova_author_byline .ova_author_byline_link {
	color: var(--ova-author-title);
	font-weight: 500;
	text-decoration: none;
}

.ova_author_byline .ova_author_byline_link:hover .ova_author_name,
.ova_author_byline .ova_author_byline_link:focus-visible .ova_author_name {
	color: var(--ova-author-accent);
}

/* Listings: keep the theme's spacing between the byline and the date row. */
.ova_author_byline + .post_meta {
	margin-top: 10px;
}

/* "Band" listing (blog page): the theme draws a short rule between the excerpt
   and the date row; the byline now comes first, so it carries that rule. */
.post_layout_band .post_content + .ova_author_byline {
	position: relative;
	margin-top: 23px;
	padding-top: 20px;
}

.post_layout_band .post_content + .ova_author_byline::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 60px;
	height: 1px;
	background-color: var(--theme-color-text_dark, #0b0c1b);
}

/* Article header: between the title and the date / share row. */
.post_header_single .ova_author_byline {
	margin-top: 22px;
	font-size: 16px;
}

.post_header_single .ova_author_byline .ova_author_avatar {
	width: 44px;
	height: 44px;
}

/* Author box
------------------------------------------------------------ */
.ova_author_box {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 28px;
	margin: 50px 0 0;
	padding: 34px 38px;
	border-radius: 15px;
	background-color: var(--ova-author-surface);
	transition: box-shadow 0.2s ease;
}

.ova_author_box:hover {
	box-shadow: 0 6px 24px rgba(11, 12, 27, 0.08);
}

.ova_author_box .ova_author_avatar {
	width: 104px;
	height: 104px;
}

.ova_author_box_body {
	flex: 1 1 auto;
	min-width: 0;
}

.ova_author_box_label {
	color: var(--ova-author-accent);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ova_author_box_name {
	margin-top: 4px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
}

.ova_author_box .ova_author_box_link {
	color: var(--ova-author-title);
	text-decoration: none;
}

/* The name link covers the whole box. */
.ova_author_box .ova_author_box_link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ova_author_box .ova_author_box_link:focus-visible {
	outline: none;
}

.ova_author_box .ova_author_box_link:focus-visible::after {
	outline: 2px solid var(--ova-author-accent);
	outline-offset: 2px;
}

.ova_author_box:hover .ova_author_box_link {
	color: var(--ova-author-accent);
}

.ova_author_box_position {
	margin-top: 4px;
	color: var(--ova-author-text);
	font-size: 15px;
	line-height: 1.4;
}

.ova_author_box .ova_author_box_intro {
	margin: 14px 0 0;
	color: var(--ova-author-text);
	font-size: 16px;
	line-height: 1.65;
}

.ova_author_box_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 24px;
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.4;
}

/* Sits above the stretched name link, so it keeps its own target. */
.ova_author_box .ova_author_box_contact {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ova-author-title);
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.ova_author_box .ova_author_box_contact:hover,
.ova_author_box .ova_author_box_contact:focus-visible {
	color: var(--ova-author-accent);
}

.ova_author_box_contact::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--ova-author-icon) center / contain no-repeat;
	mask: var(--ova-author-icon) center / contain no-repeat;
}

.ova_author_box_contact_linkedin {
	--ova-author-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.45 20.45h-3.55v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E");
}

.ova_author_box_contact_email {
	--ova-author-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm17 4.24-7.93 7.1L4 8.21V18h16V8.24zM4.51 6l7.55 6.66L19.5 6H4.51z'/%3E%3C/svg%3E");
}

.ova_author_box_team {
	color: var(--ova-author-accent);
}

.ova_author_box_team::after {
	content: "\2192";
	display: inline-block;
	margin-left: 6px;
	transition: transform 0.2s ease;
}

.ova_author_box:hover .ova_author_box_team::after {
	transform: translateX(3px);
}

@media (max-width: 599px) {
	.ova_author_box {
		flex-direction: column;
		gap: 18px;
		margin-top: 36px;
		padding: 26px 22px;
	}

	.ova_author_box .ova_author_avatar {
		width: 84px;
		height: 84px;
	}

	.ova_author_box_name {
		font-size: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ova_author_box,
	.ova_author_box_team::after {
		transition: none;
	}
}
