/*
 * Author profile + archive pages.
 *
 * Loaded conditionally from functions.php on:
 *   - /authors/                          (archive-bdc_author.php)
 *   - /authors/{slug}/                   (single-bdc_author.php)
 *
 * Mobile-first. Design tokens (see DESIGN_TOKENS.md):
 *   Primary    #385F71  hero kicker, links, focus ring
 *   Secondary  #18212D  titles, hovered links
 *   Text       #4A4B4E  body
 *   Gray       #95949C  meta, dots
 *   Alternate  #FBFAF9  surface (cards on hover, avatar placeholder bg)
 *   Border     #EAE9E8  hairlines, card outlines
 *
 * Typography: Frank Ruhl Libre 300 for serif titles, Inter for body.
 * Container max-width matches the search page (1140px) for site rhythm
 * consistency.
 */

/* ═════════ Shared scaffolding ═════════════════════════════════ */

.bdc-author,
.bdc-author-archive {
	margin: 0 auto;
	padding: 32px 20px 80px;
	max-width: 1140px;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #4A4B4E;
}

@media (min-width: 1024px) {
	.bdc-author,
	.bdc-author-archive {
		padding: 48px 32px 96px;
	}
}

/* ═════════ Single author profile ══════════════════════════════ */

.bdc-author .bdc-author__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 1px solid #EAE9E8;
}

@media (min-width: 768px) {
	.bdc-author .bdc-author__hero {
		grid-template-columns: 200px 1fr;
		gap: 40px;
		align-items: start;
	}
}

.bdc-author .bdc-author__avatar {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	background: #FBFAF9;
	border: 1px solid #EAE9E8;
}

@media (min-width: 768px) {
	.bdc-author .bdc-author__avatar {
		width: 200px;
		height: 200px;
	}
}

.bdc-author .bdc-author__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Frank Ruhl Libre", Georgia, serif;
	font-weight: 300;
	font-size: 64px;
	color: #385F71;
}

.bdc-author .bdc-author__kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #95949C;
}

.bdc-author .bdc-author__name {
	margin: 0 0 14px;
	font-family: "Frank Ruhl Libre", Georgia, serif;
	font-weight: 300;
	font-size: 36px;
	line-height: 1.15;
	letter-spacing: -0.5px;
	color: #18212D;
}

@media (min-width: 768px) {
	.bdc-author .bdc-author__name {
		font-size: 48px;
	}
}

.bdc-author .bdc-author__specialty {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.5;
	color: #385F71;
}

.bdc-author .bdc-author__institution {
	margin: 0 0 16px;
	font-size: 15px;
	color: #4A4B4E;
}

.bdc-author .bdc-author__institution span {
	color: #18212D;
	font-weight: 500;
}

.bdc-author .bdc-author__links {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bdc-author .bdc-author__links a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #385F71;
	text-decoration: none;
	background: #FFFFFF;
	border: 1px solid #EAE9E8;
	border-radius: 6px;
	transition: background .15s, color .15s, border-color .15s;
}

.bdc-author .bdc-author__links a:hover,
.bdc-author .bdc-author__links a:focus {
	outline: none;
	background: #385F71;
	color: #FFFFFF;
	border-color: #385F71;
}

/* ── Sections ────────────────────────────────────────────────── */

.bdc-author .bdc-author__section-title {
	font-family: "Frank Ruhl Libre", Georgia, serif;
	font-weight: 300;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: 0;
	color: #18212D;
	margin: 0 0 20px;
}

@media (min-width: 768px) {
	.bdc-author .bdc-author__section-title {
		font-size: 30px;
	}
}

.bdc-author .bdc-author__bio,
.bdc-author .bdc-author__articles {
	margin-bottom: 56px;
}

.bdc-author .bdc-author__bio-body {
	font-size: 17px;
	line-height: 1.7;
	color: #4A4B4E;
	max-width: 720px;
}

.bdc-author .bdc-author__bio-body p {
	margin: 0 0 1em;
}

/* ── Articles list ───────────────────────────────────────────── */

.bdc-author .bdc-author__article-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bdc-author .bdc-author__article {
	padding: 24px 0;
	border-bottom: 1px solid #EAE9E8;
}

.bdc-author .bdc-author__article:last-child {
	border-bottom: 0;
}

.bdc-author .bdc-author__article-title {
	margin: 0 0 10px;
	font-family: "Frank Ruhl Libre", Georgia, serif;
	font-weight: 300;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: 0;
}

@media (min-width: 768px) {
	.bdc-author .bdc-author__article-title {
		font-size: 26px;
	}
}

.bdc-author .bdc-author__article-title a {
	color: #18212D;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .25s ease, color .15s ease;
}

.bdc-author .bdc-author__article-title a:hover,
.bdc-author .bdc-author__article-title a:focus {
	color: #385F71;
	background-size: 100% 1px;
	outline: none;
}

.bdc-author .bdc-author__article-excerpt {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.65;
	color: #4A4B4E;
}

.bdc-author .bdc-author__article-meta {
	margin: 0;
	font-size: 13px;
	color: #95949C;
}

.bdc-author .bdc-author__articles-empty {
	margin: 0;
	font-size: 16px;
	color: #95949C;
	font-style: italic;
}

/* ═════════ Authors archive grid ═══════════════════════════════ */

.bdc-author-archive .bdc-author-archive__header {
	padding-bottom: 28px;
	margin-bottom: 36px;
	border-bottom: 1px solid #EAE9E8;
}

.bdc-author-archive .bdc-author-archive__title {
	margin: 0 0 16px;
	font-family: "Frank Ruhl Libre", Georgia, serif;
	font-weight: 300;
	color: #18212D;
	line-height: 1.15;
}

.bdc-author-archive .bdc-author-archive__kicker {
	display: block;
	margin-bottom: 8px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #95949C;
}

.bdc-author-archive .bdc-author-archive__query {
	display: block;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -0.3px;
}

@media (min-width: 768px) {
	.bdc-author-archive .bdc-author-archive__query {
		font-size: 44px;
	}
}

.bdc-author-archive .bdc-author-archive__intro {
	max-width: 720px;
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: #4A4B4E;
}

/* ── Grid ────────────────────────────────────────────────────── */

.bdc-author-archive .bdc-author-archive__grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 600px) {
	.bdc-author-archive .bdc-author-archive__grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

@media (min-width: 960px) {
	.bdc-author-archive .bdc-author-archive__grid {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 24px;
	}
}

.bdc-author-archive .bdc-author-archive__card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px;
	background: #FFFFFF;
	border: 1px solid #EAE9E8;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s, box-shadow .15s, transform .15s;
	height: 100%;
}

.bdc-author-archive .bdc-author-archive__card:hover,
.bdc-author-archive .bdc-author-archive__card:focus {
	outline: none;
	border-color: #385F71;
	box-shadow: 0 4px 16px rgba( 56, 95, 113, .08 );
}

.bdc-author-archive .bdc-author-archive__avatar {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	background: #FBFAF9;
	border: 1px solid #EAE9E8;
}

.bdc-author-archive .bdc-author-archive__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Frank Ruhl Libre", Georgia, serif;
	font-weight: 300;
	font-size: 28px;
	color: #385F71;
}

.bdc-author-archive .bdc-author-archive__meta {
	flex: 1;
	min-width: 0;
}

.bdc-author-archive .bdc-author-archive__name {
	margin: 0 0 6px;
	font-family: "Frank Ruhl Libre", Georgia, serif;
	font-weight: 300;
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: 0;
	color: #18212D;
}

.bdc-author-archive .bdc-author-archive__specialty {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.45;
	color: #385F71;
}

.bdc-author-archive .bdc-author-archive__view-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #385F71;
}

.bdc-author-archive .bdc-author-archive__card:hover .bdc-author-archive__view-link span {
	transform: translateX(3px);
}

.bdc-author-archive .bdc-author-archive__view-link span {
	display: inline-block;
	transition: transform .2s ease;
}

/* ── Empty state ────────────────────────────────────────────── */

.bdc-author-archive .bdc-author-archive__empty {
	padding: 48px 24px;
	text-align: center;
	background: #FBFAF9;
	border-radius: 8px;
}

.bdc-author-archive .bdc-author-archive__empty-title {
	margin: 0 0 12px;
	font-family: "Frank Ruhl Libre", Georgia, serif;
	font-weight: 300;
	font-size: 24px;
	color: #18212D;
}

.bdc-author-archive .bdc-author-archive__empty p {
	margin: 0;
	font-size: 16px;
	color: #4A4B4E;
}

/* ── Pagination (reuse core's nav.pagination markup) ────────── */

.bdc-author-archive nav.pagination {
	margin-top: 48px;
}

.bdc-author-archive nav.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
}

.bdc-author-archive nav.pagination a,
.bdc-author-archive nav.pagination .current,
.bdc-author-archive nav.pagination .dots {
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #4A4B4E;
	text-decoration: none;
	background: #FFFFFF;
	border: 1px solid #EAE9E8;
	border-radius: 6px;
	transition: background .15s, color .15s, border-color .15s;
}

.bdc-author-archive nav.pagination a:hover,
.bdc-author-archive nav.pagination a:focus {
	outline: none;
	background: #385F71;
	color: #FFFFFF;
	border-color: #385F71;
}

.bdc-author-archive nav.pagination .current {
	background: #18212D;
	color: #FFFFFF;
	border-color: #18212D;
}

.bdc-author-archive nav.pagination .dots {
	color: #95949C;
	background: transparent;
	border-color: transparent;
	padding: 0 6px;
	min-width: 0;
}

/* ── New fields on single-bdc_author (v0.11) ─────────────── */

.bdc-author .bdc-author__pronouns {
	display: inline-block;
	margin-left: 6px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #95949C;
	vertical-align: middle;
}

@media (min-width: 768px) {
	.bdc-author .bdc-author__pronouns {
		font-size: 16px;
	}
}

.bdc-author .bdc-author__job {
	margin: 0 0 6px;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #18212D;
}

.bdc-author .bdc-author__inline-label {
	font-weight: 600;
	color: #18212D;
	margin-right: 4px;
}

/* ── Facts block (board certs / license / NPI / education / …) ─── */

.bdc-author .bdc-author__facts {
	margin: 0 0 40px;
	padding: 24px 28px;
	background: #FBFAF9;
	border: 1px solid #EAE9E8;
	border-radius: 10px;
}

.bdc-author .bdc-author__facts-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	margin: 0;
}

@media (min-width: 600px) {
	.bdc-author .bdc-author__facts-list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 960px) {
	.bdc-author .bdc-author__facts-list {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.bdc-author .bdc-author__fact {
	margin: 0;
}

.bdc-author .bdc-author__fact dt {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #95949C;
}

.bdc-author .bdc-author__fact dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #18212D;
}

.bdc-author .bdc-author__fact-aux {
	color: #95949C;
	font-weight: 400;
	margin-left: 4px;
}

.bdc-author .bdc-author__fact--education {
	grid-column: 1 / -1; /* education spans the full row — typically longest */
}

.bdc-author .bdc-author__edu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bdc-author .bdc-author__edu-list li {
	padding: 4px 0;
	font-size: 15px;
	line-height: 1.5;
	color: #18212D;
}

.bdc-author .bdc-author__edu-list li + li {
	border-top: 1px dashed #EAE9E8;
}
