/**
 * Author archive — hero, profile (ACF), spacing with news grid + search.
 */

.author-page {
	color: var(--lp-color-white);
	margin-bottom: 2rem;
}

.author-page__back {
	display: inline-block;
	margin-bottom: 0.75rem;
	color: var(--lp-color-white-90);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.author-page__back:hover,
.author-page__back:focus-visible {
	color: var(--lp-color-pink);
}

.author-page__back:focus-visible {
	outline: 2px solid var(--lp-color-pink);
	outline-offset: 2px;
}

.author-page__date {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: var(--lp-color-white-90);
}

.author-page__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	font-weight: 900;
	font-style: italic;
	line-height: 1.15;
	text-transform: uppercase;
}

.author-page__title-prefix {
	color: var(--lp-color-white);
}

.author-page__name-accent {
	background: linear-gradient(270deg, #FF9D00 -0.86%, #FFF 97.17%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.author-page__tagline {
	margin: 0 0 2rem;
	font-size: 1rem;
	color: var(--lp-color-white-90);
}

.author-page__profile {
	margin-bottom: 2rem;
}

.author-page__profile-inner {
	padding: 1.75rem 1.5rem 2rem;
	border-radius: var(--lp-radius-card-lg);
	background-color: var(--lp-color-zinc-800);
	box-shadow: 0 8px 32px var(--lp-color-shadow-16);
}

@media (min-width: 768px) {
	.author-page__profile-inner {
		padding: 2.25rem 2.5rem 2.5rem;
	}
}

.author-page__profile-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
}

@media (min-width: 768px) {
	.author-page__profile-layout {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 2rem;
	}
}

.author-page__avatar-wrap {
	flex-shrink: 0;
}

.author-page__avatar {
	width: 140px;
	height: 140px;
	border-radius: 118px;
	border: 3.512px solid var(--lp-color-zinc-500, #71717a);
	background-color: lightgray;
	background-position: 50% 50%;
	background-size: cover;
	background-repeat: no-repeat;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.author-page__avatar {
		width: 160px;
		height: 160px;
	}
}

.author-page__profile-main {
	flex: 1;
	min-width: 0;
	width: 100%;
}

.author-page__profile-name {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 900;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--lp-color-white);
}

.author-page__section-title {
	margin: 1.75rem 0 0.75rem;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lp-color-white);
}

.author-page__profile-name + .author-page__section-title {
	margin-top: 1.25rem;
}

.author-page__wysiwyg {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--lp-color-white-90);
}

.author-page__wysiwyg p {
	margin: 0 0 0.85em;
}

.author-page__wysiwyg p:last-child {
	margin-bottom: 0;
}

.author-page__wysiwyg a {
	color: var(--lp-color-pink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.author-page__wysiwyg a:hover {
	color: var(--lp-color-pink-hover);
}

/* Previous experience: book icon as list bullet */
.author-page__experience ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.author-page__experience ul > li {
	position: relative;
	margin: 0 0 0.75rem;
	padding-left: 1.75rem;
	text-align: left;
}

.author-page__experience ul > li:last-child {
	margin-bottom: 0;
}

.author-page__experience ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.125rem;
	height: 1.125rem;
	background: url("../images/user/book.svg") 50% 50% / contain no-repeat;
}

.author-page__experience ol {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--lp-color-white-90);
}

.author-page__favorites {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
	
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.author-page__favorite-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--lp-color-white);
}

.author-page__favorite-icon {
	flex-shrink: 0;
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.author-page__social {
	margin-top: 0.25rem;
}

.author-page__linkedin {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #0a66c2;
	text-decoration: none;
}

.author-page__linkedin:hover,
.author-page__linkedin:focus-visible {
	text-decoration: underline;
}

.author-page__linkedin:focus-visible {
	outline: 2px solid #0a66c2;
	outline-offset: 2px;
}

.author-page__linkedin img {
	display: block;
	flex-shrink: 0;
}

/* Search spacing on author template */
.content-area .author-page + .lp-search-bar,
.content-area .author-page ~ .lp-search-bar {
	margin-bottom: 2rem;
}

@media (min-width:1024px) {
	.author-page__favorites {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}