/* Author Bio EAT — frontend (mobile-first, responsive) */

.abe-author-box {
	--abe-accent: #2563eb;
	box-sizing: border-box;
	margin: 2rem 0;
	padding: 1.25rem;
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.6;
	color: #1f2937;
}
.abe-author-box *,
.abe-author-box *::before,
.abe-author-box *::after { box-sizing: border-box; }

/* ---- Style variants ---- */
.abe-style-card {
	background: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.04);
}
.abe-style-bordered {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--abe-accent);
}
.abe-style-minimal {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
}

.abe-heading {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--abe-accent);
}

/* ---- Layout: stacked on mobile, side-by-side on wider screens ---- */
.abe-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	text-align: center;
}

.abe-avatar { flex: 0 0 auto; }
.abe-avatar img,
.abe-avatar-img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.abe-body { width: 100%; }

.abe-namerow {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.6rem;
	align-items: baseline;
	justify-content: center;
}
.abe-name {
	font-size: 1.15rem;
	font-weight: 700;
	color: #111827;
	text-decoration: none;
}
.abe-name:hover { color: var(--abe-accent); }
.abe-credentials {
	font-size: 0.78rem;
	font-weight: 600;
	color: #6b7280;
	background: #f3f4f6;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
}

.abe-jobtitle {
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--abe-accent);
}

.abe-bio {
	margin: 0.75rem 0 0;
	color: #374151;
}
.abe-bio p { margin: 0 0 0.5rem; }
.abe-bio p:last-child { margin-bottom: 0; }

.abe-meta {
	margin-top: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
	justify-content: center;
}

.abe-allposts {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--abe-accent);
	text-decoration: none;
}
.abe-allposts:hover { text-decoration: underline; }

.abe-socials {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.abe-social {
	font-size: 0.78rem;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	padding: 0.25rem 0.6rem;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	transition: all 0.15s ease;
	line-height: 1.2;
}
.abe-social:hover {
	color: #fff;
	background: var(--abe-accent);
	border-color: var(--abe-accent);
}

/* ---- Tablet / desktop: horizontal layout ---- */
@media (min-width: 600px) {
	.abe-author-box { padding: 1.5rem 1.75rem; }
	.abe-inner {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 1.25rem;
	}
	.abe-avatar img,
	.abe-avatar-img { width: 96px; height: 96px; }
	.abe-namerow,
	.abe-meta { justify-content: flex-start; }
}

/* ---- Dark mode aware ---- */
@media (prefers-color-scheme: dark) {
	.abe-style-card,
	.abe-style-bordered {
		background: #1f2937;
		border-color: rgba(255, 255, 255, 0.08);
	}
	.abe-author-box { color: #e5e7eb; }
	.abe-name { color: #f9fafb; }
	.abe-bio { color: #d1d5db; }
	.abe-credentials { background: #374151; color: #d1d5db; }
	.abe-social { color: #e5e7eb; border-color: #374151; }
	.abe-style-minimal { border-color: #374151; }
}
