/* Authority SEO - hộp tác giả, đầu trang hồ sơ, danh sách bài. Dùng font và màu của theme. */
.aseo-box,
.aseo-profile {
	--aseo-accent: var(--fs-color-secondary, #c05530);
	--aseo-btn-bg: var(--fs-color-primary, #f1c56a);
	--aseo-btn-text: #1b1b1b;
	--aseo-dark: #1f2937;
	--aseo-muted: #6b7280;
	--aseo-border: #e3e7ee;
}

/* Nút CTA dùng chung */
.aseo-cta {
	display: inline-block;
	flex: 0 0 auto;
	padding: 11px 20px;
	border-radius: 6px;
	background: var(--aseo-btn-bg);
	color: var(--aseo-btn-text);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}
.aseo-cta:hover,
.aseo-cta:focus {
	color: var(--aseo-btn-text);
	filter: brightness(.95);
}

/* Hộp thế chỗ dòng ngày đăng của theme: bỏ lề dưới của khung tiêu đề để hộp nằm sát tiêu đề. */
.article-inner:has(> .entry-content > .aseo-box:first-child) .entry-header-text:not(:has(.entry-meta)) {
	padding-bottom: 0;
}

/* Hộp tác giả */
.aseo-box {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--aseo-border);
	border-top: 3px solid var(--aseo-accent);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.aseo-box__photo {
	flex: 0 0 64px;
	width: 64px;
	height: 72px;
	overflow: hidden;
	border-radius: 8px;
	background: #eef1f6;
}
.aseo-box__photo img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}
.aseo-box__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 0;
}
.aseo-box__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--aseo-dark);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}
.aseo-box__tick {
	flex: 0 0 auto;
}
.aseo-box__name {
	color: var(--aseo-dark);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}
.aseo-box__name:hover {
	color: var(--aseo-accent);
}
.aseo-box__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	color: var(--aseo-muted);
	font-size: 12px;
}
.aseo-box__role,
.aseo-box__credential {
	color: var(--aseo-dark);
	font-size: 14px;
	line-height: 1.4;
}
.aseo-box__credential {
	color: var(--aseo-muted);
}
.aseo-box__profile {
	margin-top: 2px;
	color: var(--aseo-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.aseo-box__profile:hover {
	text-decoration: underline;
}

/* Khung trang hồ sơ: căn giữa, có lề hai bên. UX Block đặt ngoài khung nên vẫn rộng toàn màn hình. */
.aseo-profile {
	padding-top: 24px;
}
.aseo-profile__content,
.aseo-profile__posts {
	box-sizing: border-box;
	max-width: 1080px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 15px;
	padding-left: 15px;
}
.aseo-profile__content ul {
	margin: 0 0 1em 1.4em;
	list-style: disc;
}
.aseo-profile__content ol {
	margin: 0 0 1em 1.4em;
	list-style: decimal;
}
.aseo-profile__content li {
	margin-bottom: .4em;
}
.aseo-profile__content h2 {
	margin: 1.4em 0 .5em;
}
/* Giao diện con của site tự in phần "Trích dẫn" ở đầu mọi trang; trang hồ sơ đã có khối đầu trang nên ẩn đi. */
.aseo-profile-page .page-header-excerpt {
	display: none;
}

/* Đầu trang hồ sơ */
.aseo-profile__head {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 24px;
	width: calc(100% - 30px);
	max-width: 1080px;
	margin: 0 auto 28px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--aseo-border);
	border-top: 3px solid var(--aseo-accent);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.aseo-profile__photo {
	flex: 0 0 120px;
	width: 120px;
	height: 140px;
	overflow: hidden;
	border-radius: 10px;
	background: #eef1f6;
}
.aseo-profile__photo img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}
.aseo-profile__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}
.aseo-profile__name {
	margin: 0;
	color: var(--aseo-dark);
	font-size: 30px;
	line-height: 1.2;
}
.aseo-profile__role {
	color: var(--aseo-dark);
	font-size: 16px;
	font-weight: 600;
}
.aseo-profile__credential {
	color: var(--aseo-muted);
	font-size: 14px;
}
.aseo-profile__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}
.aseo-profile__tags li {
	margin: 0;
	padding: 3px 10px;
	border: 1px solid var(--aseo-border);
	border-radius: 999px;
	background: #f6f8fb;
	color: var(--aseo-dark);
	font-size: 12px;
}
.aseo-profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 13px;
}
.aseo-profile__links a {
	color: var(--aseo-accent);
}
.aseo-profile__content {
	margin-bottom: 28px;
}

/* Danh sách bài của tác giả */
.aseo-profile__posts-title {
	margin: 0 0 16px;
	font-size: 22px;
}
.aseo-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.aseo-posts__item {
	margin: 0;
}
.aseo-posts__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.aseo-posts__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	background: #eef1f6;
}
.aseo-posts__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}
.aseo-posts__title {
	color: var(--aseo-dark);
	font-weight: 700;
	line-height: 1.35;
}
.aseo-posts__link:hover .aseo-posts__title {
	color: var(--aseo-accent);
}
.aseo-posts__date {
	color: var(--aseo-muted);
	font-size: 12px;
}
.aseo-pagination {
	margin-top: 20px;
	text-align: center;
}
.aseo-pagination .page-numbers {
	display: inline-block;
	margin: 0 2px;
	padding: 6px 12px;
	border: 1px solid var(--aseo-border);
	border-radius: 6px;
	color: var(--aseo-dark);
	text-decoration: none;
}
.aseo-pagination .page-numbers.current {
	border-color: var(--aseo-accent);
	background: var(--aseo-accent);
	color: #fff;
}

@media (max-width: 849px) {
	.aseo-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 549px) {
	.aseo-box,
	.aseo-profile__head {
		flex-wrap: wrap;
	}
	.aseo-profile__head {
		gap: 14px;
		padding: 18px;
	}
	.aseo-box__info {
		flex-basis: calc(100% - 90px);
	}
	.aseo-profile__info {
		flex-basis: calc(100% - 112px);
	}
	.aseo-profile__photo {
		flex-basis: 90px;
		width: 90px;
		height: 105px;
	}
	.aseo-profile__name {
		font-size: 24px;
	}
	.aseo-cta {
		flex: 1 1 100%;
		width: 100%;
	}
	.aseo-posts {
		grid-template-columns: 1fr;
	}
}
