/*
 * "Xem tất cả" trên hàng tiêu đề từng mục tin, và trang lưu trữ chuyên mục.
 *
 * Hàng tiêu đề của nd/post-loop (`.nd-loop__head`) là khối thường; biến nó thành
 * flex để chữ nằm bên trái, liên kết bên phải, cùng một đường kẻ. Áp cho mọi
 * `.px-news-section` — hàng chỉ có nhãn thì không đổi gì.
 */
.px-news-section .nd-loop__head {
	align-items: baseline;
	column-gap: var( --wp--preset--spacing--sm );
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.px-news-section .nd-loop__head h1.nd-loop__head-label {
	line-height: 1.4;
	margin: 0;
}

/*
 * `revision-tkt009.css` định nghĩa `.px-news-section__all` cho nút đặt dưới danh
 * sách (cao 44px, căn giữa). Trên hàng tiêu đề nó phải là liên kết chữ, không
 * làm hàng cao thêm — nên trả lại hiển thị thường.
 */
.px-news-section__all--head {
	color: var( --wp--preset--color--brand );
	display: inline-block;
	font-size: var( --wp--preset--font-size--body );
	font-weight: 600;
	margin-inline-start: auto;
	min-height: 0;
	text-decoration: none;
	white-space: nowrap;
}

.px-news-section__all--head::after {
	content: " ›";
}

.px-news-section__all--head:hover,
.px-news-section__all--head:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ---- Trang lưu trữ chuyên mục ---- */

.px-category-archive__desc {
	color: var( --wp--preset--color--fg-muted );
	font-size: var( --wp--preset--font-size--body );
	margin: 0 0 var( --wp--preset--spacing--md );
}

.px-category-archive__empty {
	color: var( --wp--preset--color--fg-muted );
	font-size: var( --wp--preset--font-size--body );
}

/* Ảnh trong thẻ là liên kết bọc ảnh; để nó lấp đầy khung 3:2 như thẻ ở khối khác. */
.px-category-archive .nd-loop__media > a {
	display: block;
	height: 100%;
}
