/*
 * SDF Light Author Box
 * One box, one job. The accent colour is the only themeable value, set as a
 * CSS custom property inline per box so a per-post override is possible via
 * a filter without touching this file.
 */

.sdflab-box {
	--sdflab-accent: #e05a4e;
	background: #fff;
	border: 1px solid #ececed;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(20, 20, 20, 0.05);
	box-sizing: border-box;
	margin: 2.5em 0;
	padding: 30px 34px 22px;
}

.sdflab-header {
	align-items: center;
	display: flex;
	gap: 22px;
	margin-bottom: 16px;
}

.sdflab-avatar {
	flex: 0 0 auto;
	line-height: 0;
}

.sdflab-avatar__img {
	border-radius: 50%;
	display: block;
	height: auto;
	max-width: 100%;
}

.sdflab-name {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.sdflab-name a {
	color: var(--sdflab-accent);
	text-decoration: none;
}

.sdflab-name a:hover {
	text-decoration: underline;
}

.sdflab-name:not(:has(a)) {
	color: var(--sdflab-accent);
}

.sdflab-bio {
	color: #333;
	font-size: 15.5px;
	line-height: 1.75;
	text-align: center;
}

.sdflab-bio p {
	margin: 0 0 14px;
}

.sdflab-bio p:last-child {
	margin-bottom: 0;
}

.sdflab-admin-link {
	font-size: 13px;
	margin-top: 16px;
	text-align: right;
}

.sdflab-admin-link a {
	color: #2271b1;
	font-weight: 600;
	text-decoration: none;
}

.sdflab-admin-link a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.sdflab-header {
		flex-direction: column;
		text-align: center;
	}
}
