/* =========================================================================
   Geru — main.css
   Tokens + reset nhẹ + typography + layout khung.
   Không tải font từ CDN. Không phụ thuộc thư viện ngoài.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS — chế độ sáng (mặc định)
   ---------------------------------------------------------------------- */

:root {
	/* Thương hiệu — cam-đỏ lấy từ logo Geru Education */
	--brand: #f5372c;
	--brand-2: #ff7a3d;
	--brand-ink: #c2261c;
	--brand-soft: #fdede7;
	--brand-gradient: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 100%);

	/* Chữ — nâu-đen ấm, không dùng xám lạnh */
	--ink: #17100e;
	--ink-2: #54453e;
	--ink-3: #8e7e76;
	--ink-4: #b4a69e;

	/* Nền — trung tính ẤM, hơi ngả cam */
	--ground: #fcf9f6;
	--surface: #ffffff;
	--sunken: #f5efe9;

	/* Đường kẻ */
	--line: #e7dbd2;
	--line-2: #d6c6ba;

	/* Chữ nằm trên nền thương hiệu */
	--on-brand: #ffffff;

	/* Đổ bóng — dùng tông nâu ấm thay vì đen thuần */
	--shadow-1: 0 1px 2px rgba(23, 16, 14, 0.05), 0 1px 3px rgba(23, 16, 14, 0.04);
	--shadow-2: 0 4px 10px rgba(23, 16, 14, 0.07), 0 2px 4px rgba(23, 16, 14, 0.05);
	--shadow-3: 0 12px 28px rgba(23, 16, 14, 0.1), 0 4px 8px rgba(23, 16, 14, 0.05);

	/* Vòng focus */
	--focus: 0 0 0 3px var(--brand-soft), 0 0 0 5px var(--brand);

	/* Chữ */
	--font-sans: system-ui, -apple-system, "SF Pro Display", "Segoe UI Variable Display",
		"Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

	/* Nhịp khoảng cách — thang 4px */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;

	/* Bo góc */
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	--r-xl: 24px;
	--r-pill: 999px;

	/* Khung nội dung */
	--wrap: 1200px;
	--wrap-narrow: 65ch; /* dòng đọc ~65 ký tự */

	/* Chuyển động */
	--ease: cubic-bezier(0.2, 0, 0, 1);
	--dur: 160ms;

	color-scheme: light;
}

/* -------------------------------------------------------------------------
   2. TOKENS — chế độ tối
   ---------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
	:root {
		/* Cam sáng hơn một chút để đủ tương phản trên nền tối */
		--brand: #ff5a4d;
		--brand-2: #ff9257;
		--brand-ink: #ff8a7c;
		--brand-soft: #2e1a15;
		--brand-gradient: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 100%);

		--ink: #f7efe9;
		--ink-2: #d3c3ba;
		--ink-3: #a08e84;
		--ink-4: #7a6a61;

		--ground: #120c0a;
		--surface: #1c1411;
		--sunken: #251a16;

		--line: #35261f;
		--line-2: #4a352c;

		--on-brand: #1a0f0c;

		--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
		--shadow-2: 0 4px 10px rgba(0, 0, 0, 0.55);
		--shadow-3: 0 12px 28px rgba(0, 0, 0, 0.6);

		--focus: 0 0 0 3px var(--brand-soft), 0 0 0 5px var(--brand);

		color-scheme: dark;
	}
}

/* -------------------------------------------------------------------------
   3. RESET NHẸ
   ---------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	font-weight: 420;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol, pre {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

img, picture, video, canvas, svg, iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

input, button, textarea, select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

a {
	color: var(--brand-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--dur) var(--ease);
}

a:hover {
	color: var(--brand);
}

:focus-visible {
	outline: none;
	box-shadow: var(--focus);
	border-radius: var(--r-sm);
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--sp-6) 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* -------------------------------------------------------------------------
   4. TYPOGRAPHY — bám dáng chữ logo GERU
   ---------------------------------------------------------------------- */

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
	font-family: var(--font-sans);
	color: var(--ink);
	font-weight: 820;
	letter-spacing: -0.03em;
	line-height: 1.12;
	text-wrap: balance;
}

h1, .h1 {
	font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.6rem);
	font-weight: 860;
	letter-spacing: -0.035em;
}

h2, .h2 {
	font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem);
	font-weight: 840;
}

h3, .h3 {
	font-size: clamp(1.24rem, 1.05rem + 0.75vw, 1.6rem);
	line-height: 1.22;
}

h4, .h4 {
	font-size: 1.08rem;
	font-weight: 780;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

h5, h6 {
	font-size: 0.95rem;
	font-weight: 760;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

/* Tiêu đề lớn VIẾT HOA — dáng chữ logo */
.display,
.hero__title {
	text-transform: uppercase;
	font-weight: 860;
	letter-spacing: -0.03em;
	line-height: 1.04;
}

/* Nhãn nhỏ uppercase, giãn chữ rộng */
.label,
.eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 720;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--ink-3);
	line-height: 1.4;
}

.eyebrow--brand {
	color: var(--brand-ink);
}

/* Số liệu — chữ số đều cột */
.num,
.stat__value,
time,
.price,
td.numeric {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.stat__value {
	font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
	font-weight: 840;
	letter-spacing: -0.035em;
	line-height: 1.05;
	color: var(--ink);
}

.lede {
	font-size: 1.14rem;
	line-height: 1.6;
	color: var(--ink-2);
	max-width: 58ch;
}

small,
.small {
	font-size: 0.85rem;
	color: var(--ink-3);
}

code, kbd, pre, samp {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

code {
	background: var(--sunken);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	padding: 0.1em 0.36em;
}

pre {
	background: var(--sunken);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: var(--sp-4);
	overflow-x: auto;
}

pre code {
	background: none;
	border: 0;
	padding: 0;
}

blockquote {
	border-left: 3px solid var(--brand);
	padding-left: var(--sp-4);
	color: var(--ink-2);
	font-size: 1.06rem;
}

::selection {
	background: var(--brand);
	color: var(--on-brand);
}

/* -------------------------------------------------------------------------
   5. LAYOUT — wrap, stack, grid
   ---------------------------------------------------------------------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--sp-5);
}

@media (max-width: 640px) {
	.wrap {
		padding-inline: var(--sp-4);
	}
}

.wrap--narrow {
	max-width: var(--wrap-narrow);
}

/* Khoảng cách bằng gap, KHÔNG dùng margin chồng chéo */
.stack {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}

.stack--tight { gap: var(--sp-2); }
.stack--loose { gap: var(--sp-6); }

.row {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	flex-wrap: wrap;
}

.grid {
	display: grid;
	gap: var(--sp-5);
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.site-main {
	flex: 1 0 auto;
	padding-block: var(--sp-7);
	display: flex;
	flex-direction: column;
	gap: var(--sp-7);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--surface);
	color: var(--ink);
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-2);
	font-weight: 700;
}

.skip-link:focus {
	left: var(--sp-4);
	top: var(--sp-4);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	clip: auto;
	white-space: normal;
}

/* -------------------------------------------------------------------------
   6. HEADER
   ---------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: saturate(1.6) blur(12px);
	-webkit-backdrop-filter: saturate(1.6) blur(12px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-5);
	min-height: 68px;
	padding-block: var(--sp-3);
}

.brand {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	flex: 0 0 auto;
}

.brand img,
.brand .custom-logo {
	/* Logo gốc từng là ảnh VUÔNG 1875×1875 mà phần hình chỉ chiếm 48% chiều cao —
	   đặt max-height 44px thì chữ thật chỉ còn ~21px, trông bé xíu trên màn hình rộng.
	   Đã cắt viền trong suốt (còn 1588×934) nên chiều cao ở đây là chiều cao THẬT. */
	max-height: 46px;
	width: auto;
}

@media (max-width: 800px) {
	.brand .custom-logo {
		max-height: 34px;
	}
}

.brand__text {
	font-size: 1.24rem;
	font-weight: 860;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
}

.brand__text:hover {
	color: var(--brand);
}

.brand__tagline {
	color: var(--ink-3);
	font-size: 0.82rem;
	line-height: 1.3;
	max-width: 22ch;
}

@media (max-width: 900px) {
	.brand__tagline {
		display: none;
	}
}

/* Menu chính */
.nav-primary ul {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	flex-wrap: wrap;
}

.nav-primary a {
	display: block;
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--r-md);
	color: var(--ink-2);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-primary a:hover {
	background: var(--sunken);
	color: var(--ink);
}

.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a,
.nav-primary .current-menu-ancestor > a {
	color: var(--brand-ink);
	background: var(--brand-soft);
}

/* Menu con */
.nav-primary .sub-menu {
	display: none;
	position: absolute;
	min-width: 220px;
	flex-direction: column;
	gap: var(--sp-1);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-3);
	padding: var(--sp-2);
	margin-top: var(--sp-2);
}

.nav-primary li {
	position: relative;
}

.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
	display: flex;
}

/* Nút mở menu trên di động — dùng checkbox, không cần JS */
.nav-toggle {
	display: none;
}

.nav-toggle__label {
	display: none;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) var(--sp-3);
	border: 1px solid var(--line-2);
	border-radius: var(--r-md);
	background: var(--surface);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ink-2);
	cursor: pointer;
}

@media (max-width: 860px) {
	.nav-toggle__label {
		display: inline-flex;
	}

	.nav-primary {
		display: none;
		width: 100%;
		order: 3;
		padding-bottom: var(--sp-4);
	}

	.nav-primary ul {
		flex-direction: column;
		align-items: stretch;
		gap: var(--sp-1);
	}

	.nav-primary .sub-menu {
		display: flex;
		position: static;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--line);
		border-radius: 0;
		padding: var(--sp-1) 0 var(--sp-1) var(--sp-4);
		margin-top: 0;
	}

	.nav-toggle:checked ~ .nav-primary {
		display: block;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}
}

/* -------------------------------------------------------------------------
   7. NÚT
   ---------------------------------------------------------------------- */

.btn,
button.btn,
input[type="submit"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: 0.68rem 1.3rem;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	background: var(--brand-gradient);
	color: var(--on-brand);
	font-size: 0.95rem;
	font-weight: 740;
	letter-spacing: -0.005em;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: var(--shadow-1);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
		filter var(--dur) var(--ease);
}

.btn:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	color: var(--on-brand);
	filter: brightness(1.05);
	box-shadow: var(--shadow-2);
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
	box-shadow: var(--shadow-1);
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line-2);
	box-shadow: none;
}

.btn--ghost:hover {
	background: var(--sunken);
	color: var(--ink);
	filter: none;
}

.btn--soft {
	background: var(--brand-soft);
	color: var(--brand-ink);
	box-shadow: none;
}

.btn--soft:hover {
	color: var(--brand-ink);
	filter: none;
	background: color-mix(in srgb, var(--brand-soft) 80%, var(--brand) 20%);
}

.btn--sm {
	padding: 0.45rem 0.95rem;
	font-size: 0.85rem;
}

.btn--lg {
	padding: 0.9rem 1.8rem;
	font-size: 1.05rem;
}

/* -------------------------------------------------------------------------
   8. FORM
   ---------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 0.62rem 0.9rem;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: var(--r-md);
	color: var(--ink);
	font-size: 0.98rem;
	line-height: 1.5;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

input::placeholder,
textarea::placeholder {
	color: var(--ink-4);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-soft);
}

textarea {
	min-height: 9rem;
	resize: vertical;
}

label {
	font-size: 0.88rem;
	font-weight: 620;
	color: var(--ink-2);
}

/* Ô tìm kiếm */
.search-form {
	display: flex;
	gap: var(--sp-2);
	align-items: stretch;
	width: 100%;
	max-width: 34rem;
}

.search-form__field {
	flex: 1 1 auto;
}

.search-form .btn {
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   9. NỘI DUNG BÀI VIẾT
   ---------------------------------------------------------------------- */

.entry {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
}

.entry__header {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	max-width: var(--wrap-narrow);
}

.entry__meta {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	flex-wrap: wrap;
	color: var(--ink-3);
	font-size: 0.88rem;
}

.entry__thumb img {
	width: 100%;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-2);
}

/* Vùng nội dung: dòng đọc ~65 ký tự, khoảng cách bằng flex gap */
.entry__content {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	max-width: var(--wrap-narrow);
	color: var(--ink-2);
	font-size: 1.02rem;
	line-height: 1.72;
}

.entry__content > h2,
.entry__content > h3,
.entry__content > h4 {
	color: var(--ink);
	margin-top: var(--sp-3);
}

.entry__content ul,
.entry__content ol {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	padding-left: 1.35rem;
}

.entry__content ul { list-style: disc; }
.entry__content ol { list-style: decimal; }

.entry__content li::marker {
	color: var(--brand);
}

.entry__content img,
.entry__content figure {
	border-radius: var(--r-md);
}

.entry__content figcaption,
.wp-caption-text {
	font-size: 0.85rem;
	color: var(--ink-3);
	padding-top: var(--sp-2);
}

/* Ảnh alignwide / alignfull do add_theme_support('align-wide') */
.entry__content .alignwide {
	width: min(var(--wrap), 100vw - 2 * var(--sp-5));
	max-width: none;
	margin-inline: calc(50% - min(var(--wrap), 100vw - 2 * var(--sp-5)) / 2);
}

.entry__content .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.alignleft {
	float: left;
	margin: 0 var(--sp-4) var(--sp-3) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--sp-3) var(--sp-4);
}

.aligncenter {
	margin-inline: auto;
}

.entry__footer {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	max-width: var(--wrap-narrow);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--line);
}

.sticky .entry__title::before {
	content: "★ ";
	color: var(--brand);
}

/* -------------------------------------------------------------------------
   10. THẺ (CARD) — dùng cho danh sách bài viết / khoá học
   ---------------------------------------------------------------------- */

.card {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: var(--sp-4);
	box-shadow: var(--shadow-1);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
		border-color var(--dur) var(--ease);
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-2);
	border-color: var(--line-2);
}

.card__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--r-md);
	background: var(--sunken);
	aspect-ratio: 16 / 9;
}

.card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms var(--ease);
}

.card:hover .card__thumb img {
	transform: scale(1.03);
}

.card__title {
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.card__title a {
	color: var(--ink);
	text-decoration: none;
}

.card__title a:hover {
	color: var(--brand-ink);
}

.card__excerpt {
	color: var(--ink-2);
	font-size: 0.94rem;
	line-height: 1.6;
}

.card__meta {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	flex-wrap: wrap;
	color: var(--ink-3);
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
	margin-top: auto;
	padding-top: var(--sp-2);
	border-top: 1px solid var(--line);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	padding: 0.2rem 0.6rem;
	border-radius: var(--r-pill);
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 0.72rem;
	font-weight: 720;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* -------------------------------------------------------------------------
   11. TIÊU ĐỀ TRANG / ARCHIVE
   ---------------------------------------------------------------------- */

.page-head {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	padding-bottom: var(--sp-5);
	border-bottom: 1px solid var(--line);
}

.page-head__title {
	text-transform: uppercase;
	letter-spacing: -0.03em;
}

.page-head__desc {
	color: var(--ink-2);
	max-width: 60ch;
}

/* -------------------------------------------------------------------------
   12. PHÂN TRANG
   ---------------------------------------------------------------------- */

.pagination .nav-links {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	flex-wrap: wrap;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding-inline: var(--sp-3);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	color: var(--ink-2);
	font-weight: 620;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.pagination .page-numbers:hover {
	border-color: var(--line-2);
	background: var(--sunken);
	color: var(--ink);
}

.pagination .page-numbers.current {
	background: var(--brand-gradient);
	border-color: transparent;
	color: var(--on-brand);
}

.post-navigation .nav-links {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	padding-top: var(--sp-5);
	border-top: 1px solid var(--line);
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	padding: var(--sp-4);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	text-decoration: none;
	color: var(--ink);
	font-weight: 660;
}

.post-navigation a:hover {
	border-color: var(--line-2);
	background: var(--sunken);
}

/* -------------------------------------------------------------------------
   13. BÌNH LUẬN
   ---------------------------------------------------------------------- */

.comments-area {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
	max-width: var(--wrap-narrow);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--line);
}

.comment-list,
.comment-list .children {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}

.comment-list .children {
	padding-left: var(--sp-5);
	border-left: 2px solid var(--line);
	padding-top: var(--sp-4);
}

.comment-body {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: var(--sp-4);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	font-weight: 700;
	color: var(--ink);
}

.comment-author img {
	border-radius: var(--r-pill);
}

.comment-metadata {
	font-size: 0.82rem;
	color: var(--ink-3);
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.comment-form p {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.comment-notes,
.comment-form .form-submit {
	margin: 0;
}

/* -------------------------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------------------- */

.site-footer {
	flex: 0 0 auto;
	background: var(--sunken);
	border-top: 1px solid var(--line);
	padding-block: var(--sp-7) var(--sp-5);
	margin-top: var(--sp-8);
}

.site-footer__widgets {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	padding-bottom: var(--sp-6);
}

.widget {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	color: var(--ink-2);
	font-size: 0.94rem;
}

.widget__title {
	font-size: 0.74rem;
	font-weight: 760;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--ink-3);
}

.widget ul {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.widget a {
	color: var(--ink-2);
	text-decoration: none;
}

.widget a:hover {
	color: var(--brand-ink);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	flex-wrap: wrap;
	padding-top: var(--sp-5);
	border-top: 1px solid var(--line);
	color: var(--ink-3);
	font-size: 0.86rem;
}

.nav-footer ul {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	flex-wrap: wrap;
}

.nav-footer a {
	color: var(--ink-3);
	text-decoration: none;
}

.nav-footer a:hover {
	color: var(--brand-ink);
}

/* -------------------------------------------------------------------------
   15. TRANG CHỦ — hero khung tạm (chưa chốt thiết kế)
   ---------------------------------------------------------------------- */

.hero {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
	align-items: flex-start;
	padding-block: var(--sp-7);
}

.hero__title {
	max-width: 16ch;
}

.hero__title .accent {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__actions {
	display: flex;
	gap: var(--sp-3);
	flex-wrap: wrap;
}

.section {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4);
	flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   16. TRẠNG THÁI RỖNG / 404
   ---------------------------------------------------------------------- */

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-4);
	max-width: var(--wrap-narrow);
	padding: var(--sp-7) 0;
}

.error-404 .error-code {
	font-size: clamp(4rem, 2rem + 10vw, 9rem);
	font-weight: 860;
	letter-spacing: -0.05em;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* -------------------------------------------------------------------------
   17. BẢNG
   ---------------------------------------------------------------------- */

.entry__content table {
	font-size: 0.94rem;
}

.entry__content th,
.entry__content td {
	padding: var(--sp-2) var(--sp-3);
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry__content th {
	font-weight: 720;
	color: var(--ink);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* -------------------------------------------------------------------------
   18. TIỆN ÍCH IN
   ---------------------------------------------------------------------- */

@media print {
	.site-header,
	.site-footer,
	.pagination,
	.comments-area {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}
}
