/* Trang tác giả theo bố cục hồ sơ gọn: breadcrumb, profile card và lưới bài viết. */
.author-page {
	color: #1e293b;
	background: #f6fafc;
}

.author-hero {
	padding-block: 30px 40px;
	background: #f6fafc;
}

.author-hero__inner {
	max-width: min(1200px, calc(100% - 32px));
}

.author-hero .breadcrumb {
	margin-bottom: 26px;
	color: #64748b;
	font-size: 0.9375rem;
}

.author-hero .breadcrumb__item:not(:last-child)::after {
	color: #b1bdc9;
	content: "›";
}

.author-hero .breadcrumb__item:last-child {
	color: #0878ed;
}

.author-profile {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	align-items: center;
	gap: 28px;
	padding: 28px 32px;
	background: #ffffff;
	border: 1px solid #dfe5eb;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.02);
}

.author-profile__avatar {
	width: 96px;
	height: 96px;
	padding: 4px;
	background: #edf6ff;
	border: 1px solid #cfe2f5;
	border-radius: 50%;
}

.author-profile__avatar-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.author-profile__name {
	margin: 0 0 10px;
	color: #202124;
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.author-profile__bio {
	max-width: 970px;
	color: #465468;
	font-size: 0.9375rem;
	line-height: 1.75;
}

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

.author-posts {
	padding-block: 38px 76px;
	background: #f6fafc;
	border-top: 1px solid #e2eaf1;
}

.author-posts > .container {
	max-width: min(1200px, calc(100% - 32px));
}

.author-posts__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid #dce7f0;
}

.author-posts__title {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: #202124;
	font-size: clamp(1.45rem, 2.6vw, 1.8rem);
	font-weight: 750;
	letter-spacing: -0.035em;
}

.author-posts__title svg {
	flex: 0 0 auto;
	color: #0878ed;
}

.author-posts__count {
	flex: 0 0 auto;
	padding: 7px 14px;
	color: #0878ed;
	background: #eef7ff;
	border: 1px solid #bcdcff;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 650;
	line-height: 1;
}

@media (max-width: 640px) {
	.author-hero {
		padding-block: 22px 30px;
	}

	.author-hero__inner,
	.author-posts > .container {
		max-width: 100%;
	}

	.author-hero .breadcrumb {
		margin-bottom: 20px;
	}

	.author-profile {
		grid-template-columns: 72px minmax(0, 1fr);
		align-items: start;
		gap: 16px;
		padding: 20px;
	}

	.author-profile__avatar {
		width: 72px;
		height: 72px;
	}

	.author-profile__name {
		font-size: 1.3rem;
	}

	.author-profile__bio {
		font-size: 0.875rem;
		line-height: 1.65;
	}

	.author-posts {
		padding-block: 30px 52px;
	}

	.author-posts__header {
		align-items: flex-start;
	}

	.author-posts__title {
		font-size: 1.4rem;
	}

}

@media (max-width: 420px) {
	.author-profile {
		grid-template-columns: 1fr;
	}

	.author-posts__header {
		flex-direction: column;
	}
}

