/* ============================================================
 * Author Bio + Post Attribution
 * Loaded on single `authors` and single `post` only.
 * ============================================================ */

/* -----------------------------------------------------------
 * Bio hero
 * --------------------------------------------------------- */

.hero-author-single {
	padding-block: 24px;
	background-color: var(--green-100);
	margin-bottom: 150px;
}

@media screen and (min-width: 767.8px) {
	.hero-author-single {
		margin-bottom: 200px;
	}
}

.hero-author-single .breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-block: 0 32px;
	width: 100%;
	justify-content: flex-start;
	font-size: 13px;
	line-height: 1.4;
}

@media screen and (min-width: 1280px) {
	.hero-author-single .breadcrumbs {
		width: calc(100% - 648px);
		margin: auto;
	}
}

.hero-author-single .breadcrumbs a {
	position: relative;
	color: var(--grey-100);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s ease;
}

.hero-author-single .breadcrumbs a:hover {
	color: var(--orange-10);
}

.hero-author-single .breadcrumbs .home-link .home-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.hero-author-single .breadcrumbs a i {
	width: 20px;
	height: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	color: var(--grey-100);
	opacity: 0.5;
	font-size: 12px;
}

.hero-author-single .breadcrumbs a:hover i {
	color: var(--grey-100);
}

.hero-author-single .breadcrumbs .active {
	font-weight: 600;
	color: var(--grey-100);
}

.hero-author-wrapper {
	margin-bottom: -160px;
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.author-hero-image {
	width: 100%;
	max-width: 560px;
	padding-top: 100%;
	border-radius: 50%;
	position: relative;
	overflow: hidden;
	margin-inline: auto;
	background-color: var(--green-100);
}

.author-hero-image img {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: auto;
	transform: translateY(-50%);
	object-fit: contain;
	display: block;
}

.author-hero-info {
	width: 320px;
	flex-basis: 320px;
	max-width: 100%;
	margin-top: -120px;
	padding: 24px 32px;
	background-color: var(--white);
	border-radius: 24px;
	position: relative;
	z-index: 2;
	gap: 10px;
	text-align: center;
	min-height: 150px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.author-hero-info > * {
	width: 100%;
	flex-basis: 100%;
}

.author-hero-info h1 {
	font-size: 24px;
	line-height: 1.2;
	margin: 0;
}

.author-hero-info .author-expertise,
.author-hero-info .author-position {
	font-size: 18px;
	line-height: 28px;
	font-weight: 400;
	margin: 0;
}

/* -----------------------------------------------------------
 * Bio body + aside
 * --------------------------------------------------------- */

.author-content-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 80px;
	padding-block: 0 80px;
}

.author-content-wrapper .row {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.author-content-wrapper .author-content {
	flex: 1;
	padding-inline: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	order: 2;
}

@media screen and (min-width: 767.8px) {
	.author-content-wrapper .author-content {
		order: 1;
	}
}

.author-content-wrapper h2,
.author-content-wrapper h3,
.author-content-wrapper h4 {
	font-weight: 700;
}

.author-content-wrapper .author-aside {
	flex: 0 0 100%;
	max-width: 100%;
	padding-inline: 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
	order: 1;
}

@media screen and (min-width: 767.8px) {
	.author-content-wrapper .author-aside {
		order: 2;
	}
}

@media screen and (min-width: 768px) {
	.author-content-wrapper .author-aside {
		flex: 0 0 350px;
		max-width: 350px;
	}
}

.author-aside-column {
	width: 330px;
	flex-basis: 330px;
	max-width: 100%;
	padding: 24px;
	border-radius: 11px;
	background-color: var(--grey-70);
	box-shadow: 0 0 7px 1px rgba(0, 0, 0, 0.19);
}

.author-aside-column .separator {
	margin-block: 16px;
	height: 1px;
	width: 100%;
	background-color: var(--green-700);
	opacity: 0.2;
}

.author-aside-title p {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	color: var(--black);
	font-size: 20px;
	font-weight: 600;
	gap: 16px;
}

.author-aside-column.expertise .author-aside-title svg {
	color: var(--orange-200);
}

.author-aside-column.social .author-aside-title svg {
	color: var(--green-700);
}

.expertise-list {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 14px;
	list-style-type: none;
}

.expertise-list li {
	width: 100%;
	padding-left: 22px;
	position: relative;
	font-size: 16px;
	color: var(--blue-20, #525252);
}

.expertise-list li::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--orange-200);
}

.follow-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	list-style-type: none;
	padding: 0;
	margin: 0;
	gap: 24px;
	width: 100%;
	flex-basis: 100%;
}

.follow-list svg {
	color: var(--black);
}

/* -----------------------------------------------------------
 * Author post grids (written-by / reviewed-by)
 * --------------------------------------------------------- */

.author-posts h3 {
	text-align: left;
}

.author-content-wrapper .row:first-of-type {
	margin-block: 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.loop-author-article a {
	text-decoration: none;
}

.loop-author-article-inner {
	padding: 16px;
	background-color: var(--white);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-radius: 24px;
	border: 1px solid var(--grey-30);
	gap: 24px;
}

@media screen and (min-width: 767.8px) {
	.loop-author-article-inner {
		flex-wrap: nowrap;
	}
}

.loop-author-article-inner .image-wrapper {
	width: 100%;
	flex: 0 0 100%;
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 1024 / 538;
}

@media screen and (min-width: 767.8px) {
	.loop-author-article-inner .image-wrapper {
		width: 400px;
		flex: 0 0 400px;
	}
}

@media screen and (min-width: 1024px) {
	.loop-author-article-inner .image-wrapper {
		width: 500px;
		flex: 0 0 500px;
	}
}

.loop-author-article-inner .image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 16px;
	transition: 0.4s all;
}

.loop-author-article a:hover .image-wrapper img {
	scale: 1.05;
}

.loop-author-article a:hover h3 {
	color: var(--orange-200);
}

.loop-author-article-inner .text-wrapper {
	flex: 1 1 auto;
	min-width: 0;
}

.loop-author-article-inner .text-wrapper h3 {
	font-size: 30px;
	font-weight: 700;
	color: var(--blue-10);
	transition: 0.4s all;
}

.loop-author-article-inner .title-wrapper {
	margin-bottom: 16px;
}

.loop-author-article-inner .meta-description p {
	color: var(--blue-10);
	font-size: 18px;
	font-weight: 400;
}

.loop-author-article-inner .meta-description {
	margin-bottom: 48px;
}

.loop-author-article-inner .more-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
}

.loop-author-article-inner .author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	color: var(--blue-10);
	gap: 12px;
}

.loop-author-article-inner .author .name p {
	font-size: 16px;
}

.loop-author-article-inner time {
	position: relative;
	font-size: 14px;
	color: var(--blue-10);
	padding-left: 18px;
}

.loop-author-article-inner time::before {
	content: "";
	display: block;
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--blue-10);
	width: 2px;
	height: 2px;
	border-radius: 50%;
}

.loop-author-article-inner .author .image {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	position: relative;
	overflow: hidden;
}

.loop-author-article-inner .author img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

#author-posts-wrapper,
#author-reviews-wrapper {
	margin-block: 40px;
	padding-inline: 24px;
}

.load-more-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

/* ============================================================
 * Post hero byline + hover tooltip
 * ============================================================ */

#practice-hero-section {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-bottom: 24px;
}

#practice-hero-section .container-new {
	position: relative;
	z-index: 2;
}

.post-hero-byline {
	position: relative;
	z-index: 3;
	margin-top: auto;
	padding-top: 32px;
	padding-inline: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px 24px;
}

.author-hover-wrapper {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.author-hover-wrapper:focus-visible {
	outline: 2px solid var(--orange-10);
	outline-offset: 4px;
	border-radius: 4px;
}

.byline-line {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.byline-label {
	opacity: 0.9;
}

.byline-position {
	opacity: 0.85;
	margin-left: 4px;
}

.author-name-link {
	color: var(--white);
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	margin-left: 4px;
}

.author-name-link:hover {
	text-decoration: underline;
}

.author-hover-wrapper .author-info-box {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
	z-index: 999;
	max-width: calc(100vw - 32px);
	width: 520px;
	margin-top: 12px;
	pointer-events: none;
}

.author-hover-wrapper:hover .author-info-box,
.author-hover-wrapper.active .author-info-box,
.author-hover-wrapper:focus-within .author-info-box {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.author-hover-wrapper .author-info-box a {
	text-decoration: none;
	cursor: pointer;
}

.author-hover-wrapper .author-info-inner {
	background-color: var(--white);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	position: relative;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	text-align: left;
}

.author-hover-wrapper .author-info-inner .author-name {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.author-hover-wrapper .author-info-inner::before {
	content: "";
	display: block;
	position: absolute;
	top: -4px;
	left: 50%;
	transform: translate(-50%, 0) rotate(45deg);
	width: 12px;
	height: 12px;
	background-color: var(--white);
	border-radius: 2px;
}

.author-hover-wrapper .author-info-inner .author-image {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	background-color: var(--green-30);
	flex: 0 0 40px;
}

.author-hover-wrapper .author-info-inner .author-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.author-hover-wrapper .author-info-inner .author-name .name {
	font-size: 16px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--black);
	margin: 0;
}

.author-hover-wrapper .author-info-inner .author-name .position {
	font-size: 12px;
	line-height: 16px;
	color: var(--grey-100);
	margin: 0;
}

.author-hover-wrapper .author-info-inner .author-text {
	width: 100%;
	flex-basis: 100%;
}

.author-hover-wrapper .author-info-inner .author-text p {
	font-size: 14px;
	line-height: 18px;
	color: var(--grey-100);
	margin: 0;
}

/* ============================================================
 * End-of-content author box
 * ============================================================ */

.content-author-info-box {
	position: relative;
	width: 100%;
	margin-top: 40px;
	margin-bottom: 48px;
}

.content-author-info-box .author-info-inner {
	background-color: var(--grey-20);
	border-radius: 24px;
	padding: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px;
}

.content-author-info-box .author-info-inner .author-image {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	position: relative;
	background-color: var(--green-30);
	overflow: hidden;
	flex: 0 0 80px;
}

.content-author-info-box .author-info-inner .author-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.content-author-info-box .author-info-inner .author-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.content-author-info-box .author-info-inner .author-name {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.content-author-info-box .author-info-inner .author-name-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 8px 16px;
}

@media screen and (max-width: 767.8px) {
	.content-author-info-box .author-info-inner .author-name-row .social-links {
		flex-basis: 100%;
	}
}

.content-author-info-box .author-info-inner .author-name .name {
	font-size: 22px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--black);
}

#page-content
	.post-content
	.content-author-info-box
	.author-info-inner
	.author-name
	.author-name-row
	.author-link
	p,
#page-content .post-content .content-author-info-box .author-name ul {
	margin: 0;
}

.content-author-info-box .author-info-inner .author-name .position {
	font-size: 13px;
	line-height: 1.3;
	color: var(--grey-100);
	margin: 0;
}

.content-author-info-box .author-name .social-links {
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	padding: 0;
	margin: 0;
	gap: 12px;
}

.content-author-info-box .author-name .social-links a {
	color: var(--orange-200);
	display: inline-flex;
	transition: color 0.2s ease;
}

.content-author-info-box .author-name .social-links a:hover {
	color: var(--green-30);
}

.content-author-info-box .author-info-inner .author-text {
	width: 100%;
	flex-basis: 100%;
}

.content-author-info-box .author-info-inner .author-text p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--grey-100);
	margin: 0;
}

.author-link {
	text-decoration: none;
	color: inherit;
}
