/**
 * A-38 — Author profile page.
 *
 * Brand tokens only (see .claude/CLAUDE.md): Manrope headings / Inter body, Deep Teal
 * as the informational accent, Brand Orange reserved for CTA fills and therefore not
 * used here — this page navigates, it does not convert. Mobile-first; verified at
 * 375px and 1280px.
 */

.ba-author {
	--ba-author-max: 820px;
	background: #fff;
}

/* ---------------------------------------------------------------- Hero ---- */

.ba-author__hero {
	background: #F8F8F8;
	border-bottom: 1px solid #E9E9E9;
	padding: 32px 0 24px;
	margin-bottom: 32px;
}

.ba-author__hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 20px;
	max-width: var(--ba-author-max);
	margin: 0 auto;
}

.ba-author__photo {
	flex: 0 0 auto;
	width: 132px;
	height: 132px;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	border: 3px solid #fff;
	box-shadow: 0 8px 24px rgba(32, 32, 32, 0.12);
}

.ba-author__photo-img,
.ba-author__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.ba-author__name {
	font-family: Manrope, "Nunito Sans", system-ui, sans-serif;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #202020;
	margin: 0 0 6px;
}

.ba-author__role {
	font-size: 16px;
	font-weight: 600;
	color: var(--ba-accent-text, #0B6A72);
	margin: 0 0 6px;
}

.ba-author__location {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #5b5b5b;
	margin: 0 0 14px;
}

.ba-author__pin {
	color: var(--ba-accent, #0F7C85);
	flex: 0 0 auto;
}

.ba-author__bio {
	font-size: 17px;
	line-height: 1.65;
	color: #333;
	margin: 0 0 16px;
}

/* External profile links */

.ba-author__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ba-author__link {
	display: inline-block;
	padding: 8px 18px;
	border: 2px solid var(--ba-accent, #0F7C85);
	border-radius: 999px;
	color: var(--ba-accent-text, #0B6A72);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	background: transparent;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Pin the colour explicitly — the parent theme's Bootstrap a:hover would otherwise
   leak its blue onto the filled state. */
.ba-author__link:hover,
.ba-author__link:focus-visible {
	background: var(--ba-accent, #0F7C85);
	color: #fff;
	border-color: var(--ba-accent, #0F7C85);
	text-decoration: none;
}

.ba-author__link:focus-visible {
	outline: 3px solid var(--ba-accent-ondark, #5FD0D8);
	outline-offset: 2px;
}

.ba-author__link:active {
	background: var(--ba-accent-hover, #094F56);
	border-color: var(--ba-accent-hover, #094F56);
	color: #fff;
}

/* Credential badges.
   Inline pills rather than a card grid, so the layout reads as intentional whether
   there is one badge or several — a lone full-width card looks like something failed
   to load. Sits inline with the profile text rather than as a separate strip. */

.ba-author__stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.ba-author__stat {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	background: #fff;
	border: 1px solid #E9E9E9;
	border-radius: 999px;
	padding: 9px 18px;
	box-shadow: 0 2px 8px rgba(32, 32, 32, 0.05);
}

.ba-author__stat-figure {
	font-family: Manrope, "Nunito Sans", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--ba-accent-text, #0B6A72);
	line-height: 1.2;
	white-space: nowrap;
}

.ba-author__stat-label {
	font-size: 13px;
	color: #5b5b5b;
}

/* ------------------------------------------------------------- Sections ---- */

.ba-author__body,
.ba-author__section {
	max-width: var(--ba-author-max);
	margin-left: auto;
	margin-right: auto;
}

.ba-author__section {
	margin-bottom: 36px;
}

.ba-author__section-title {
	font-family: Manrope, "Nunito Sans", system-ui, sans-serif;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	color: #202020;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ba-author__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--ba-accent, #0F7C85);
	color: #fff;
	font-family: Inter, system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
}

.ba-author__section p,
.ba-author__section-body p {
	font-size: 17px;
	line-height: 1.7;
	color: #333;
	margin: 0 0 16px;
}

.ba-author__section-intro {
	color: #5b5b5b !important;
	font-size: 15px !important;
	margin-top: -4px;
}

.ba-author__section-cta {
	margin-top: 4px;
}

.ba-author__outline-btn {
	display: inline-block;
	padding: 12px 26px;
	border: 2px solid var(--ba-accent, #0F7C85);
	border-radius: 999px;
	color: var(--ba-accent-text, #0B6A72);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	background: transparent;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.ba-author__outline-btn:hover,
.ba-author__outline-btn:focus-visible {
	background: var(--ba-accent, #0F7C85);
	color: #fff;
	text-decoration: none;
}

.ba-author__outline-btn:focus-visible {
	outline: 3px solid var(--ba-accent-ondark, #5FD0D8);
	outline-offset: 2px;
}

/* Expertise chips — kept in sync with the schema knowsAbout array */

.ba-author__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ba-author__chip {
	background: #F8F8F8;
	border: 1px solid #E9E9E9;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	color: #333;
}

/* ----------------------------------------------------------- Work cards ---- */

.ba-author__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ba-author__card {
	background: #fff;
	border: 1px solid #E9E9E9;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(32, 32, 32, 0.08);
	padding: 20px;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.ba-author__card:hover,
.ba-author__card:focus-within {
	box-shadow: 0 12px 30px rgba(32, 32, 32, 0.13);
	transform: translateY(-2px);
}

.ba-author__card-link {
	text-decoration: none;
}

.ba-author__card-link:focus-visible {
	outline: 3px solid var(--ba-accent, #0F7C85);
	outline-offset: 3px;
	border-radius: 6px;
}

.ba-author__card-title {
	font-family: Manrope, "Nunito Sans", system-ui, sans-serif;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ba-accent-text, #0B6A72);
	margin: 0 0 8px;
}

.ba-author__card-link:hover .ba-author__card-title {
	color: var(--ba-accent-hover, #094F56);
	text-decoration: underline;
}

.ba-author__card-excerpt {
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: #4a4a4a !important;
	margin: 0 0 10px !important;
}

.ba-author__card-meta {
	font-size: 13px !important;
	color: #6b6b6b !important;
	margin: 0 !important;
}

/* ------------------------------------------------------------ ≥ 640px ---- */

@media (min-width: 640px) {
	.ba-author__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ------------------------------------------------------------ ≥ 880px ---- */

@media (min-width: 880px) {
	.ba-author__hero {
		padding: 44px 0 32px;
	}

	.ba-author__hero-inner {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 32px;
	}

	.ba-author__photo {
		width: 168px;
		height: 168px;
	}

	.ba-author__links,
	.ba-author__stats {
		justify-content: flex-start;
	}

	.ba-author__name {
		font-size: 40px;
	}

}

/* -------------------------------------------------- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
	.ba-author__card,
	.ba-author__link,
	.ba-author__outline-btn {
		transition: none;
	}

	.ba-author__card:hover,
	.ba-author__card:focus-within {
		transform: none;
	}
}
