/*
Theme Name: vnEsports
Theme URI: http://vnesports.local/
Author: vnEsports
Description: Theme tin tức Esports & Game theo phong cách QuanTriMang: slider nổi bật, danh sách tin mới, sidebar chuyên mục/mục lục dạng sticky. Tối ưu cho PC và Mobile.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vnesports
*/

/* ==========================================================================
   1. Tokens (spec §13)
   ========================================================================== */
:root {
	--color-primary: #ef4444;
	--color-primary-dark: #f87171;
	--color-primary-light: rgba(239, 68, 68, 0.55);
	--color-primary-soft: rgba(239, 68, 68, 0.16);
	--color-accent: #ff6a3d;
	--color-text: rgba(255, 255, 255, 0.90);
	--color-text-secondary: #9ba1ad;
	--color-text-dark: #e6e8ee;
	--color-bg: #0f1116;
	--color-bg-footer: #0b0c10;
	--color-white: #181a21;
	--color-surface-hover: #22252e;
	--color-border: #282b34;
	--color-border-medium: #3a3e49;
	--color-link-toc: #aeb4c0;
	--color-pill: #23262f;

	--font-family: Arial, sans-serif;
	--font-size-base: 15px;
	--line-height-base: 23px;

	--content-max-width: 1080px;
	--gutter: 16px;
	--sidebar-width: 280px;
	--home-aside-width: 360px;
	--header-height: 65px;
	--nav-h: 44px;
	--adminbar: 0px;
	--sticky-top: calc(var(--adminbar) + var(--nav-h) + 16px);

	--radius: 3px;
	--border-light: 1px solid var(--color-border);
	--border-medium: 1px solid var(--color-border-medium);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
}

:root { color-scheme: dark; }

.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --adminbar: 0px; } }
@media (max-width: 767px) { :root { --nav-h: 38px; } }

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.drawer-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.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;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	padding: 8px 14px;
	background: var(--color-primary); color: #fff;
	border-radius: var(--radius);
}

.container {
	width: 100%;
	max-width: calc(var(--content-max-width) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.site-main { min-height: 50vh; padding-bottom: 8px; }

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

/* Shared clamps */
.hero-title, .card-title, .side-card-title, .listitem-title, .rank-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.thumb-placeholder {
	display: grid; place-items: center;
	width: 100%; height: 100%;
	min-height: 42px;
	background: linear-gradient(135deg, #2a2328, #1b1c22);
	color: var(--color-primary-light);
}

/* ==========================================================================
   3. Header (spec §3)
   ========================================================================== */
.site-header { background: var(--color-white); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--header-height);
}

.site-logo { margin: 0; font-size: inherit; flex-shrink: 0; }
.site-logo a { display: flex; align-items: center; gap: 8px; color: var(--color-primary); }
.site-logo a:hover { color: var(--color-primary-dark); }
.site-logo .icon { width: 34px; height: 34px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 26px; line-height: 28px; font-weight: 700; letter-spacing: -0.5px; }
.logo-tagline { font-size: 11px; line-height: 14px; font-weight: 400; color: var(--color-text-secondary); margin-top: 2px; }
.site-logo--image a { display: flex; }
.site-logo--image img { display: block; width: auto; height: 36px; }

.search-form { display: flex; width: 332px; max-width: 100%; }
.search-field {
	flex: 1;
	width: 100%; /* A percentage width lets the field (and the header form) shrink below the input's default size. */
	min-width: 0;
	height: 32px;
	padding: 0 10px;
	font-size: 16px;
	background: var(--color-white);
	border: 1px solid var(--color-primary-light);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.search-field:focus { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.search-field::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-submit {
	display: grid; place-items: center;
	width: 40px; height: 32px;
	padding: 0;
	background: var(--color-primary);
	color: #fff;
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
}
.search-submit:hover { background: var(--color-primary-dark); }

/* Navigation bar */
.site-nav {
	position: sticky;
	top: var(--adminbar);
	z-index: 50;
	background: var(--color-white);
	border-top: var(--border-light);
	border-bottom: var(--border-light);
	transition: box-shadow 0.2s;
}
.site-nav.is-stuck { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); }

.nav-inner { display: flex; align-items: stretch; height: var(--nav-h); }

.nav-toggle {
	display: none;
	align-items: center; justify-content: center;
	flex-shrink: 0;
	width: 40px;
	margin-left: -8px;
	padding: 0;
	background: none;
	border: 0;
	border-right: var(--border-light);
	color: var(--color-primary);
}

.site-nav .nav-menu {
	position: relative;
	display: flex;
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.site-nav .nav-menu::-webkit-scrollbar { display: none; }
.site-nav .nav-menu li { flex-shrink: 0; }
.site-nav .nav-menu a {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--color-primary);
}
.site-nav .nav-menu li:first-child a { padding-left: 0; }
.site-nav .nav-menu a::after {
	content: "";
	position: absolute;
	left: 12px; right: 12px; bottom: -1px;
	height: 3px;
	background: var(--color-primary);
	border-radius: 3px 3px 0 0;
	transform: scaleX(0);
	transition: transform 0.2s;
}
.site-nav .nav-menu li:first-child a::after { left: 0; }
.site-nav .nav-menu a:hover::after,
.site-nav .nav-menu .is-active > a::after,
.site-nav .nav-menu .current-menu-item > a::after,
.site-nav .nav-menu .current-menu-parent > a::after,
.site-nav .nav-menu .current-post-ancestor > a::after { transform: scaleX(1); }

/* ==========================================================================
   4. Drawer (mobile hamburger)
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s 0.25s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.25s; }
.drawer.is-open .drawer-overlay { opacity: 1; }
.drawer-panel {
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: min(300px, 85vw);
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
	display: flex; align-items: center; justify-content: space-between;
	height: 56px;
	padding: 0 8px 0 16px;
	border-bottom: var(--border-light);
}
.drawer-title { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--color-primary); }
.drawer-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--color-text-secondary); }
.drawer-cats { list-style: none; margin: 0; padding: 8px 0; }
.drawer-cats a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 15px; color: var(--color-text-dark); }
.drawer-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); }
.drawer-name { flex: 1; }
.drawer-count { font-size: 12px; color: var(--color-text-secondary); }
.drawer-cats .is-active a { color: var(--color-primary); font-weight: 700; background: var(--color-primary-soft); }
.drawer-cats .is-active .drawer-icon { background: var(--color-primary); color: #fff; }
.drawer-links { list-style: none; margin: auto 0 0; padding: 12px 16px 20px; border-top: var(--border-light); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--color-text-secondary); }

/* ==========================================================================
   5. Shared components (spec §8)
   ========================================================================== */
.panel {
	background: var(--color-white);
	border-radius: var(--radius);
	padding: 4px 16px;
	box-shadow: var(--shadow-sm);
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 22px 0 14px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--color-border);
}
.panel > .section-head { margin: 12px 0 8px; }
.section-title {
	font-size: 21px;
	line-height: 28px;
	font-weight: 700;
	color: var(--color-text);
}
.section-more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--color-primary); white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

.cat-label {
	display: inline-block;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	color: var(--color-primary);
}

.meta-time { display: inline-flex; align-items: center; gap: 4px; }
.meta-time .icon { opacity: 0.7; }

/* Grid card — 304×159 image ratio, 18px bold title */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
.card-thumb { display: block; aspect-ratio: 304 / 159; overflow: hidden; background: var(--color-pill); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.card-title { font-size: 18px; line-height: 24px; -webkit-line-clamp: 3; }
.card-meta {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: auto; padding-top: 8px;
	font-size: 12px; line-height: 16px;
	color: var(--color-text-secondary);
}

/* List item — spec §8.2: 101px tall, 100px left padding, 80×42 thumb */
.listitem {
	position: relative;
	min-height: 101px;
	padding: 14px 0 14px 100px;
	border-bottom: var(--border-light);
}
.listitem:last-child { border-bottom: 0; }
.listitem-thumb {
	position: absolute;
	top: 16px; left: 0;
	width: 80px; height: 42px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-pill);
}
.listitem-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listitem-title {
	font-size: 15px;
	line-height: 19.5px;
	font-weight: 400;
	-webkit-line-clamp: 3;
	margin-bottom: 6px;
}
.listitem-title a:hover { color: var(--color-primary); }
.listitem-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
	font-size: 12px; line-height: 16px;
	color: var(--color-text);
}
.meta-cat { color: var(--color-primary); font-weight: 700; }
.listitem-excerpt { display: none; }

/* Big list items — archive "large" + homepage "feed": large image left, title + excerpt right */
.listitem--large,
.listitem--feed {
	display: flex;
	gap: 18px;
	min-height: 0;
	padding: 18px 0;
}
.listitem--large .listitem-thumb,
.listitem--feed .listitem-thumb {
	position: static;
	flex-shrink: 0;
	width: 300px;
	height: auto;
	aspect-ratio: 304 / 159;
}
.listitem--large .listitem-body,
.listitem--feed .listitem-body { align-self: center; min-width: 0; }
.listitem--large .listitem-title,
.listitem--feed .listitem-title {
	font-size: 19px;
	line-height: 26px;
	font-weight: 700;
	-webkit-line-clamp: 2;
}
.listitem--large .listitem-excerpt,
.listitem--feed .listitem-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-bottom: 8px;
	font-size: 14.5px;
	line-height: 22px;
	color: var(--color-text-secondary);
}
.listitems--feed .listitem--feed:first-child { padding-top: 6px; }

/* Category block on homepage — 1 lead card + 3 compact items */
.cat-block {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
	gap: 22px;
	padding: 14px 16px 16px;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.cat-lead .card { box-shadow: none; }
.cat-lead .card-title { font-size: 17px; line-height: 23px; -webkit-line-clamp: 2; }
.cat-rest { display: flex; flex-direction: column; justify-content: center; }
.cat-rest .listitem { min-height: 0; padding: 11px 0 11px 96px; }
.cat-rest .listitem:first-child { padding-top: 0; }
.cat-rest .listitem:last-child { padding-bottom: 0; border-bottom: 0; }
.cat-rest .listitem-thumb { top: 11px; width: 80px; height: 48px; }
.cat-rest .listitem:first-child .listitem-thumb { top: 0; }
.cat-rest .listitem-title { font-size: 14.5px; line-height: 19px; -webkit-line-clamp: 2; margin-bottom: 4px; }

/* Category showcase — 4 big cards (2×2) per category */
.cat-cards .card-title { -webkit-line-clamp: 2; }
.cat-cards .cat-label { display: none; }
.cat-cards .card-meta { justify-content: flex-start; }

/* Trending tags — spec §8.4 */
.trending {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0;
	padding: 8px 12px;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.trending-label { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--color-accent); }
.trending-list {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.trending-list::-webkit-scrollbar { display: none; }
.tag-pill {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	height: 34px;
	padding: 0 12px;
	font-size: 14px;
	line-height: 34px;
	color: var(--color-text-dark);
	background: var(--color-pill);
	border-radius: 17px;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.tag-pill:hover { background: var(--color-primary-soft); color: var(--color-primary); }

/* "Xem thêm" button — spec §4.1 */
.btn-more {
	display: block;
	min-width: 102px;
	width: max-content;
	margin: 12px auto 16px;
	padding: 5px 16px;
	font-size: 15px;
	line-height: 23px;
	text-align: center;
	color: var(--color-text);
	background: var(--color-white);
	border: var(--border-medium);
	border-radius: var(--radius);
}
.btn-more:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-more[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.btn-primary,
.comment-form input[type="submit"] {
	display: inline-block;
	padding: 8px 18px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--color-primary);
	border: 0;
	border-radius: var(--radius);
}
.btn-primary:hover,
.comment-form input[type="submit"]:hover { background: var(--color-primary-dark); }

/* Sidebar boxes */
.box {
	background: var(--color-white);
	border-radius: var(--radius);
	padding: 12px 0 8px;
	margin-bottom: 16px;
	box-shadow: var(--shadow-sm);
}
.box-title {
	margin: 0 0 4px;
	padding: 0 16px 10px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-primary);
	border-bottom: var(--border-light);
}
.box .widget, .widget-area .box > *:not(.box-title) { padding-left: 16px; padding-right: 16px; }

/* "#" category list — spec §8.6 */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 14px;
	line-height: 20px;
	color: var(--color-text-secondary);
	border-left: 3px solid transparent;
}
.cat-hash { color: var(--color-primary-light); font-weight: 700; }
.cat-name { flex: 1; min-width: 0; }
.cat-count { font-size: 12px; color: #9aa0a6; }
.cat-list a:hover { background: var(--color-surface-hover); color: var(--color-primary); }
.cat-list .is-active a {
	color: var(--color-primary);
	font-weight: 700;
	background: var(--color-primary-soft);
	border-left-color: var(--color-primary);
}

/* Related hubs above a hub's news (inc/hub-related.php) */
.hub-related { margin-bottom: 16px; padding-bottom: 14px; }
.hub-related-title { margin: 12px 0 8px; font-size: 16px; line-height: 22px; }
.hub-related-title:first-child { margin-top: 2px; }
.hub-related-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hub-related-list a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: var(--border-light); border-radius: 999px; background: var(--color-pill); color: var(--color-text); font-size: 13.5px; line-height: 20px; }
.hub-related-list a.has-img { padding-left: 7px; }
.hub-related-list a:hover { border-color: var(--color-primary); color: #fff; }
.hub-related-img { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; }
.hub-related-img.is-round { border-radius: 50%; object-fit: cover; }

/* Hub links under the category list (inc/hub-links.php); on phones they move to the end of the page */
.hub-nav { margin-top: 14px; padding-top: 12px; border-top: var(--border-light); }
.hub-nav-title { margin: 0 0 4px; padding: 0 16px; color: var(--color-text-dark); font-size: 13px; font-weight: 700; line-height: 20px; }
.hub-nav-list { margin: 0; padding: 0; list-style: none; }
.hub-nav-list a { display: block; padding: 5px 16px 5px 19px; overflow: hidden; color: var(--color-text-secondary); font-size: 14px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.hub-nav-list a:hover { background: var(--color-surface-hover); color: var(--color-primary); }
.hub-explore { display: none; }
.hub-box { padding-bottom: 16px; }
.hub-box .hub-nav-title { padding: 0 16px; margin: 12px 0 8px; }
.hub-box .hub-explore-list { padding: 0 16px; }
.hub-explore .hub-nav-title { padding: 0; margin: 12px 0 8px; font-size: 15px; }
.hub-explore .hub-nav-title:first-child { margin-top: 4px; }
.hub-explore-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hub-explore-list a { display: inline-block; padding: 5px 11px; border: var(--border-light); border-radius: 999px; background: var(--color-pill); color: var(--color-text); font-size: 13px; line-height: 18px; }
.hub-explore-list a:hover { border-color: var(--color-primary); }
@media (max-width: 1023px) {
	.sidebar-cats .hub-nav { display: none; }
	.hub-explore { display: block; margin-top: 16px; padding-bottom: 14px; }
}

/* Numbered "Nổi bật" list */
.rank-list { list-style: none; margin: 0; padding: 0 16px; counter-reset: rank; }
.rank-item {
	position: relative;
	display: flex;
	gap: 10px;
	padding: 10px 0 10px 26px;
	border-bottom: var(--border-light);
	counter-increment: rank;
}
.rank-item:last-child { border-bottom: 0; }
.rank-item::before {
	content: counter(rank);
	position: absolute;
	left: 0; top: 10px;
	width: 18px;
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	color: var(--color-primary-light);
}
.rank-item:nth-child(-n+3)::before { color: var(--color-accent); }
.rank-thumb { flex: 0 0 80px; height: 42px; border-radius: var(--radius); overflow: hidden; background: var(--color-pill); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-title { font-size: 14px; line-height: 19px; -webkit-line-clamp: 3; }

/* Breadcrumb — spec §6.1 */
.breadcrumb { margin: 14px 0 10px; font-size: 15px; line-height: 20px; }
.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0; padding: 0;
	list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; color: var(--color-text-secondary); }
.breadcrumb li + li::before { content: "›"; color: #9aa0a6; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--color-text); }

/* ==========================================================================
   6. Homepage (spec §4)
   ========================================================================== */
.home-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--home-aside-width);
	gap: 24px;
	margin-top: 16px;
}

.hero {
	position: relative;
	height: 364px;
	border-radius: var(--radius);
	overflow: hidden;
	background: #16151a;
}
.hero-track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.hero-link { position: relative; display: block; height: 100%; color: #fff; }
.hero-link:hover { color: #fff; }
.hero-link img, .hero-link .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.88) 100%);
	pointer-events: none;
}
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 24px 36px; }
.hero-cat {
	display: inline-block;
	margin-bottom: 8px;
	padding: 0 8px;
	font-size: 12px;
	line-height: 22px;
	font-weight: 700;
	color: #fff;
	background: var(--color-primary);
	border-radius: var(--radius);
}
.hero-title {
	font-size: 22.5px;
	line-height: 29.25px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
	-webkit-line-clamp: 3;
}
.hero-link:hover .hero-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.hero-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid; place-items: center;
	width: 38px; height: 38px;
	margin-top: -19px;
	padding: 0;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	border: 0;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.2s, background 0.2s;
}
.hero-arrow--prev { left: 12px; }
.hero-arrow--next { right: 12px; }
.hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { background: var(--color-primary); }

.hero-dots { position: absolute; left: 18px; bottom: 10px; z-index: 2; display: flex; }
.hero-dot { position: relative; width: 18px; height: 20px; padding: 0; background: none; border: 0; }
.hero-dot::before {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 8px; height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.5);
	transition: width 0.2s, margin 0.2s, background 0.2s;
}
.hero-dot.is-active::before { width: 18px; margin-left: -9px; background: #fff; }

.side-cards { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.side-card {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 0;
	padding: 8px;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.side-card-thumb { flex: 0 0 140px; aspect-ratio: 304 / 159; border-radius: var(--radius); overflow: hidden; background: var(--color-pill); }
.side-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-card-body { min-width: 0; }
.side-card-title { margin-top: 2px; font-size: 15px; line-height: 20px; -webkit-line-clamp: 3; }

.home-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--home-aside-width);
	gap: 24px;
	align-items: start;
	margin-top: 16px;
}
.home-grid + .widget-area { margin-top: 16px; }
.home-main > .panel--list { margin-top: 16px; }
.home-aside-sticky { position: sticky; top: var(--sticky-top); }

/* ==========================================================================
   7. Archive & single layout (spec §5, §6)
   ========================================================================== */
.layout {
	position: relative;
	display: grid;
	grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
/* Single post: article on the left, related sidebar on the right. */
.layout--article { grid-template-columns: minmax(0, 1fr) var(--sidebar-width); }
.layout--article.is-full { grid-template-columns: minmax(0, 1fr); }
.layout--article.is-full .layout-main { max-width: 768px; }
.layout-main { min-width: 0; }
.layout-page { max-width: 1000px; margin: 0 auto; }

/* Left sidebar */
.sidebar-box {
	position: sticky;
	top: var(--sticky-top);
	max-height: calc(100vh - var(--sticky-top) - 16px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #3a3e49 transparent;
}
.sidebar-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 16px 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text-dark);
	border-bottom: var(--border-light);
	margin-bottom: 4px;
}
.sidebar-head .icon { color: var(--color-primary); }
.sidebar-box .widget-area { margin-top: 16px; }

/* TOC — spec §6.1, §8.5 */
.toc-group + .toc-group { margin-top: 16px; padding-top: 12px; border-top: var(--border-light); }
.toc-title {
	padding: 4px 12px 8px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-primary);
}
.toc-title a:hover { text-decoration: underline; }
.toc-list { position: relative; list-style: none; margin: 0; padding: 0; }
.toc-list::before {
	content: "";
	position: absolute;
	left: 17px; top: 14px; bottom: 14px;
	width: 1px;
	background: var(--color-border);
}
.toc-list a {
	position: relative;
	display: block;
	padding: 6px 12px 6px 32px;
	font-size: 14px;
	line-height: 20px;
	color: var(--color-link-toc);
	border-radius: var(--radius);
}
.toc-list a::before {
	content: "";
	position: absolute;
	left: 13px; top: 12px;
	width: 9px; height: 9px;
	background: var(--color-white);
	border: 1.5px solid #9aa0a6;
	border-radius: 50%;
}
.toc-list a:hover { background: var(--color-surface-hover); color: var(--color-primary); }

/* Archive header & feature */
.archive-header { margin-bottom: 12px; }

/* Shortcut row under a category's heading (inc/shortcuts.php): one line, scrolls sideways on phones */
.shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.shortcut {
	display: inline-flex; flex: none; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: var(--border-light); border-radius: 999px;
	background: var(--color-white); color: var(--color-text); font-size: 13.5px; line-height: 1; text-decoration: none; white-space: nowrap; transition: border-color 0.15s;
}
.shortcut:hover { border-color: var(--color-primary); color: #fff; }
.shortcut svg { flex: none; color: var(--color-primary); }
.shortcut-glyph { font-size: 14px; line-height: 1; }
.shortcut-live { display: inline-flex; align-items: center; gap: 4px; color: var(--color-primary); font-size: 12px; font-weight: 700; }
.shortcut-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); animation: vne-pulse 1.4s ease-in-out infinite; }
@keyframes vne-pulse { 50% { opacity: 0.3; } }
@media (max-width: 767px) {
	.shortcuts { flex-wrap: nowrap; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); overflow-x: auto; scrollbar-width: none; }
	.shortcuts::-webkit-scrollbar { display: none; }
}
.archive-title { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 34px; }
.archive-icon {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	flex-shrink: 0;
	color: #fff;
	background: var(--color-primary);
	border-radius: 50%;
}
.archive-count { margin-top: 2px; font-size: 14px; color: var(--color-text-secondary); }

.feature { padding: 16px 0; border-bottom: var(--border-light); }
.feature-thumb { display: block; aspect-ratio: 304 / 159; border-radius: var(--radius); overflow: hidden; background: var(--color-pill); }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-title { margin: 12px 0 6px; font-size: 22px; line-height: 30px; }
.feature-excerpt { margin-bottom: 8px; color: var(--color-text-secondary); }

.pillar { margin-top: 16px; padding: 16px; }
.pillar-title { margin-bottom: 8px; font-size: 20px; line-height: 32px; }

.empty-state { padding: 24px 16px; text-align: center; }
.empty-state p { margin-bottom: 12px; }
.empty-state .search-form { margin: 0 auto; }
.error-code { font-size: 64px; line-height: 1; font-weight: 700; color: var(--color-primary-light); }

/* Author box (EEAT) */
.author-box {
	display: flex;
	gap: 22px;
	margin: 6px 0 20px;
	padding: 22px 24px;
	background: var(--color-white);
	border-radius: var(--radius);
	border-left: 3px solid var(--color-primary);
	box-shadow: var(--shadow-sm);
}
.author-avatar { flex-shrink: 0; }
.author-avatar-img { width: 112px; height: 112px; border-radius: 50%; }
.author-main { min-width: 0; }
.author-name { font-size: 26px; line-height: 32px; font-weight: 700; color: var(--color-text); }
.author-title { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.3px; }
.author-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13.5px; color: var(--color-text-secondary); }
.author-stat { display: inline-flex; align-items: center; gap: 5px; }
.author-stat .icon { opacity: 0.8; }
.author-bio { margin-top: 12px; font-size: 14.5px; line-height: 22px; color: var(--color-text); }
.author-bio p { margin: 0 0 8px; }
.author-bio p:last-child { margin-bottom: 0; }
.author-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.author-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.author-social {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-dark);
	background: var(--color-pill);
	border-radius: 16px;
	transition: background 0.15s, color 0.15s;
}
.author-social:hover { background: var(--color-primary); color: #fff; }
.author-social--facebook:hover { background: #1877f2; }
.author-social--youtube:hover { background: #ff0000; }
.author-social--twitter:hover { background: #000; }
.author-editorial {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	font-size: 13px;
	color: var(--color-text-secondary);
}
.author-editorial:hover { color: var(--color-primary); }
.author-posts .section-head { margin-top: 4px; }

@media (max-width: 600px) {
	.author-box { flex-direction: column; gap: 16px; padding: 18px var(--gutter); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; }
	.author-avatar-img { width: 84px; height: 84px; }
	.author-name { font-size: 22px; line-height: 28px; }
	.author-editorial { margin-left: 0; }
}

/* Pagination */
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 20px 0 8px;
}
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-size: 14px;
	background: var(--color-white);
	border: var(--border-medium);
	border-radius: var(--radius);
}
a.page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-numbers.current { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.page-numbers.dots { border: 0; background: none; }

/* ==========================================================================
   8. Article (spec §6.1)
   ========================================================================== */
.article {
	padding: 20px 24px 24px;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.entry-title { margin-bottom: 10px; font-size: 24px; line-height: 34px; font-weight: 700; color: var(--color-text); }
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	font-size: 14px;
	line-height: 20px;
	color: var(--color-text-secondary);
	border-bottom: var(--border-light);
}
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.entry-meta .meta-item > .icon { color: var(--color-primary); }
.entry-meta .meta-k { font-weight: 700; color: var(--color-text); }
.entry-meta .meta-item a { color: var(--color-primary); }
.entry-meta .meta-item a:hover { text-decoration: underline; }
.entry-meta .meta-item + .meta-item::before {
	content: "";
	width: 1px;
	height: 13px;
	margin-right: 16px;
	background: var(--color-border-medium);
}

/* In-article table of contents (numbered) */
.post-toc {
	margin: 16px 0;
	padding: 10px 16px 11px;
	background: var(--color-pill);
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-primary);
	border-radius: var(--radius);
}
.post-toc-head { margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--color-text); }
.post-toc .post-toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.post-toc-list li { counter-increment: toc; position: relative; padding: 2px 0 2px 26px; line-height: 20px; }
.post-toc-list li::before {
	content: counter( toc ) ".";
	position: absolute;
	left: 0; top: 2px;
	min-width: 20px;
	font-weight: 700;
	color: var(--color-primary);
}
.post-toc-list a { color: var(--color-link-toc); text-decoration: none; }
.post-toc-list a:hover { color: var(--color-primary); text-decoration: underline; }
@media (max-width: 767px) {
	.post-toc { margin: 14px 0; padding: 10px 14px; }
	.post-toc-head { margin-bottom: 6px; font-size: 14px; }
	.post-toc-list li { padding: 0 0 0 22px; margin-bottom: 7px; line-height: 19px; }
	.post-toc-list li:last-child { margin-bottom: 0; }
	.post-toc-list li::before { top: 0; min-width: 18px; }
	.post-toc-list a { font-size: 14.5px; }
}

.entry-thumb { margin: 0 0 16px; }
.entry-thumb img { width: 100%; border-radius: var(--radius); }
.entry-thumb figcaption { margin-top: 6px; font-size: 13px; line-height: 18px; text-align: center; color: var(--color-text-secondary); }

.entry-content { font-size: 15px; line-height: 23px; color: var(--color-text); overflow-wrap: break-word; text-align: justify; text-justify: inter-word; }
.entry-content :is(h2, h3, h4, li, td, th, summary) { text-align: left; } /* Justified headings and short lines open wide gaps on phones. */
.entry-content > * + * { margin-top: 0; }
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content figure,
.entry-content blockquote,
.entry-content table,
.entry-content pre { margin: 0 0 15px; }
.entry-content h2 { margin: 20px 0 10px; font-size: 20px; line-height: 32px; }
.entry-content h3 { margin: 16px 0 8px; font-size: 17px; line-height: 26px; }
.entry-content h4 { margin: 14px 0 8px; font-size: 15px; line-height: 23px; }
.entry-content :is(h2, h3, h4) { scroll-margin-top: var(--sticky-top); }
.entry-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li + li { margin-top: 4px; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { max-width: 100%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 4px 16px 10px 0; }
.entry-content .alignright { float: right; margin: 4px 0 10px 16px; }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 6px; font-size: 13px; line-height: 18px; text-align: center; color: var(--color-text-secondary); }
.entry-content blockquote { padding: 10px 16px; background: var(--color-pill); border-left: 3px solid var(--color-primary); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 8px 10px; border: var(--border-light); text-align: left; }
.entry-content th { background: var(--color-bg); }
.entry-content pre { padding: 12px; background: var(--color-pill); border-radius: var(--radius); overflow-x: auto; font-size: 13px; }
.entry-content code { padding: 1px 4px; background: var(--color-pill); border-radius: 2px; font-size: 13px; }
.entry-content pre code { padding: 0; background: none; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content .alignleft { float: left; margin: 4px 16px 10px 0; }
.entry-content .alignright { float: right; margin: 4px 0 10px 16px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) {
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 auto 15px; }
}
.page-links { display: flex; gap: 6px; align-items: center; margin-top: 12px; }

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding-top: 14px;
	border-top: var(--border-light);
}
.entry-tags-label { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; }
.entry-tags .tag-pill { height: 30px; line-height: 30px; font-size: 13px; }

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}
.post-navigation a {
	display: block;
	height: 100%;
	padding: 12px 14px;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav-label { display: block; font-size: 12px; text-transform: uppercase; font-weight: 700; color: var(--color-primary); }
.post-nav-title { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; }

/* Comments */
.comments { margin-top: 20px; padding: 16px 20px; }
.comments-title { margin-bottom: 12px; font-size: 18px; line-height: 26px; }
.comment-list { list-style: none; margin: 0 0 16px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 12px 0; border-bottom: var(--border-light); font-size: 14px; line-height: 21px; }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 2px 0 6px 48px; font-size: 12px; color: var(--color-text-secondary); }
.comment-content { margin-left: 48px; }
.reply { margin-left: 48px; font-size: 13px; }
.reply a { color: var(--color-primary); }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 8px 10px;
	font-size: 16px;
	background: var(--color-white);
	border: var(--border-medium);
	border-radius: var(--radius);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 2px var(--color-primary-soft); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
@media (min-width: 768px) {
	.comment-form-author,
	.comment-form-email { float: left; width: calc(50% - 8px); }
	.comment-form-author { margin-right: 16px; }
	.comment-form > p:not(.comment-form-author):not(.comment-form-email) { clear: both; }
}

/* Contact form */
.contact-form-wrap { margin-top: 24px; padding-top: 20px; border-top: var(--border-light); }
.contact-form-wrap > h2 { margin-bottom: 14px; font-size: 20px; line-height: 28px; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-form p { margin-bottom: 14px; }
.contact-form label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.cf-req { color: var(--color-primary); }
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 9px 11px;
	font-size: 16px;
	color: var(--color-text);
	background: var(--color-white);
	border: var(--border-medium);
	border-radius: var(--radius);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 2px var(--color-primary-soft); }
.cf-submit { margin-bottom: 0; }
.cf-notice { margin-bottom: 18px; padding: 12px 16px; font-size: 14.5px; line-height: 21px; border-radius: var(--radius); border-left: 3px solid; }
.cf-notice--ok { color: #8be09b; background: rgba(46, 160, 67, 0.12); border-color: #2ea043; }
.cf-notice--err { color: #ffb3b3; background: rgba(239, 68, 68, 0.12); border-color: var(--color-primary); }
@media (max-width: 600px) {
	.cf-row { grid-template-columns: 1fr; }
}

/* Widgets */
.widget-area > .box:last-child { margin-bottom: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: var(--border-light); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }

/* ==========================================================================
   9. Footer (spec §7)
   ========================================================================== */
.site-footer {
	margin-top: 32px;
	padding: 28px 0 34px;
	font-size: 14px;
	line-height: 22px;
	background: var(--color-bg-footer);
	border-top: 1px solid var(--color-border);
	color: var(--color-text-secondary);
}

/* Row 1 — brand */
.footer-brand a { display: inline-flex; align-items: center; gap: 10px; color: var(--color-primary); }
.footer-brand a:hover { color: var(--color-primary-dark); }
.footer-brand .icon { width: 34px; height: 34px; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-brand-name { font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.5px; }
.footer-brand-tagline { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--color-text-secondary); margin-top: 1px; }
.footer-brand-logo { display: block; width: auto; height: 40px; }
.footer-brand-logo + .footer-brand-tagline { margin-top: 6px; }

/* Row 2 — footer menu */
.footer-nav { margin: 18px 0 22px; padding: 14px 0; border-top: var(--border-light); border-bottom: 2px solid var(--color-primary); }
.footer-menu { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.footer-menu a {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--color-text-dark);
}
.footer-menu a:hover { color: var(--color-primary); }
.footer-menu .current-menu-item > a { color: var(--color-primary); }

/* Row 3 — two columns */
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px 48px; }
.footer-col p { margin: 0 0 8px; }
.footer-col p:last-child { margin-bottom: 0; }
.footer-col strong { color: var(--color-text); font-weight: 700; }
.footer-col a { color: var(--color-primary); }
.footer-col a:hover { text-decoration: underline; }
.footer-ads-title { font-size: 22px; line-height: 28px; font-weight: 700; text-transform: uppercase; color: var(--color-text); margin-bottom: 12px !important; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 18px; }
.footer-social-link {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	color: var(--color-text-dark);
	background: var(--color-pill);
	border-radius: 50%;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.footer-social-link:hover { color: #fff; transform: translateY(-1px); }
.footer-social--facebook:hover { background: #1877f2; }
.footer-social--youtube:hover { background: #ff0000; }
.footer-social--x:hover { background: #000; }
.footer-social--pinterest:hover { background: #e60023; }
.footer-dmca-label { margin: 0 0 8px !important; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--color-text); }
.footer-dmca { max-width: 160px; }
.footer-dmca img { height: auto; }
.footer-legal { margin: 18px 0 0; padding-top: 14px; border-top: var(--border-light); font-size: 12px; line-height: 18px; color: var(--color-text-secondary); }

/* ==========================================================================
   10. Responsive (spec §10)
   ========================================================================== */

/* Tablet & small laptop: sidebar collapses above content */
@media (max-width: 1023px) {
	.home-top,
	.home-body { grid-template-columns: minmax(0, 1fr); }
	.home-aside { display: none; }

	.hero { height: auto; aspect-ratio: 696 / 364; }

	.side-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.side-card { flex-direction: column; align-items: stretch; gap: 8px; }
	.side-card-thumb { flex: none; width: 100%; }

	.layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.sidebar-box { position: static; max-height: none; overflow: visible; }

	/* Archive: category list becomes horizontal "#" chips */
	.sidebar-cats { background: none; }
	.sidebar-cats .sidebar-head { display: none; }
	.sidebar-cats .cat-list {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 0 calc(var(--gutter) * -1);
		padding: 2px var(--gutter);
	}
	.sidebar-cats .cat-list::-webkit-scrollbar { display: none; }
	.sidebar-cats .cat-list li { flex-shrink: 0; }
	.sidebar-cats .cat-list a {
		height: 34px;
		padding: 0 12px;
		background: var(--color-white);
		border: var(--border-light);
		border-radius: 17px;
		white-space: nowrap;
	}
	.sidebar-cats .cat-list .is-active a { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
	.sidebar-cats .cat-list .is-active .cat-hash,
	.sidebar-cats .cat-list .is-active .cat-count { color: rgba(255, 255, 255, 0.75); }
	.sidebar-cats .cat-count { display: none; }
	.sidebar-cats .widget-area { display: none; }
}

/* Mobile */
@media (max-width: 767px) {
	.header-inner { gap: 12px; }
	.site-logo .icon { width: 28px; height: 28px; }
	.site-logo--image img { height: 26px; }
	.logo-name { font-size: 21px; line-height: 24px; }
	.logo-tagline { font-size: 10px; line-height: 12px; }
	.search-form { flex: 1; width: auto; min-width: 0; max-width: 70%; }

	.nav-toggle { display: inline-flex; }
	.site-nav .nav-menu a { padding: 0 12px; font-size: 14px; font-weight: 400; line-height: 38px; }
	.site-nav .nav-menu li:first-child a { padding-left: 12px; }
	.site-nav .nav-menu li:first-child a::after { left: 12px; }
	.site-nav .nav-menu .is-active > a,
	.site-nav .nav-menu .current-menu-item > a { font-weight: 700; }

	.home-top { margin-top: 0; gap: 12px; }
	.hero { margin: 0 calc(var(--gutter) * -1); border-radius: 0; height: clamp(220px, 68vw, 322px); aspect-ratio: auto; }
	.hero-caption { padding: 16px 16px 32px; }
	.hero-dots { left: 10px; }
	.hero-arrow { display: none; }

	.side-cards { display: flex; flex-direction: column; gap: 0; padding: 0 12px; background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
	.side-card { flex: none; flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: var(--border-light); border-radius: 0; box-shadow: none; }
	.side-card:last-child { border-bottom: 0; }
	.side-card-thumb { flex: 0 0 120px; width: 120px; }

	.home-body { margin-top: 12px; }
	.grid-2 { gap: 10px; }
	.card-body { padding: 8px 10px 10px; }
	.card-title { font-size: 15px; line-height: 20px; }
	.card-meta .cat-label { display: none; }

	.section-title { font-size: 19px; line-height: 26px; }

	.panel { padding: 4px 12px; }
	.trending { margin: 12px calc(var(--gutter) * -1); border-radius: 0; padding: 8px var(--gutter); }

	.breadcrumb { margin: 10px 0 8px; font-size: 14px; }

	.archive-title { font-size: 21px; line-height: 28px; }
	.archive-icon { width: 32px; height: 32px; }
	.feature-title { font-size: 19px; line-height: 26px; }

	.listitem--large,
	.listitem--feed { gap: 12px; padding: 12px 0; }
	.listitem--large .listitem-thumb,
	.listitem--feed .listitem-thumb { width: 140px; }
	.listitem--large .listitem-title,
	.listitem--feed .listitem-title { font-size: 15px; line-height: 20px; -webkit-line-clamp: 3; }
	.listitem--large .listitem-excerpt,
	.listitem--feed .listitem-excerpt { display: none; }

	.cat-block { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 12px; }
	.cat-lead { padding-bottom: 12px; margin-bottom: 4px; border-bottom: var(--border-light); }
	.cat-lead .card-title { font-size: 15px; line-height: 20px; }
	.cat-rest .listitem:first-child { padding-top: 11px; }
	.cat-rest .listitem:first-child .listitem-thumb { top: 11px; }

	.article { margin: 0 calc(var(--gutter) * -1); padding: 16px var(--gutter) 20px; border-radius: 0; box-shadow: none; }
	.entry-thumb { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
	.entry-thumb img { border-radius: 0; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 15px; }

	.post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.post-navigation .nav-next { grid-column: auto; }
	.comments { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; padding: 16px var(--gutter); }

	.footer-cols { grid-template-columns: 1fr; gap: 22px; }
	.footer-nav { margin: 16px 0 20px; }
	.footer-menu { gap: 10px 20px; }
	.footer-menu a { font-size: 14px; }
	.footer-ads-title { font-size: 19px; line-height: 26px; }
}

@media (max-width: 400px) {
	.site-logo--image img { height: 24px; }
	.logo-tagline { display: none; }
	.site-logo .icon { display: none; }
	.hero-title { font-size: 19px; line-height: 25px; }
	.listitem--large .listitem-thumb,
	.listitem--feed .listitem-thumb { width: 118px; }
}

/* ==========================================================================
   Hub pages: giải đấu / đội tuyển / tuyển thủ
   ========================================================================== */
.hub-header { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "media body" "media info"; align-items: start; column-gap: 20px; }
.hub-header > .hub-media { grid-area: media; }
.hub-header > .hub-body { grid-area: body; }
.hub-header > .hub-info { grid-area: info; }
.hub-media {
	display: grid; place-items: center;
	flex: 0 0 112px; width: 112px; height: 112px;
	overflow: hidden;
	color: var(--color-text-secondary);
	background: var(--color-pill);
	border: var(--border-light);
	border-radius: 12px;
}
.hub-media img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.hub-header--tuyen-thu .hub-media { border-radius: 50%; }
.hub-header--tuyen-thu .hub-media img { padding: 0; object-fit: cover; }
.hub-body { flex: 1; min-width: 0; }
.hub-kicker { margin-bottom: 2px; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-primary); }
.hub-kicker a { color: inherit; }
.hub-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hub-fullname { color: var(--color-text-secondary); }
/* Tournament facts: a muted line of icons, then the key facts (no boxes) */
.hub-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--color-text-secondary); font-size: 14px; line-height: 20px; }
.hub-meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.hub-meta .icon { flex: none; color: var(--color-text-secondary); opacity: 0.8; }
.hub-keyfacts { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 10px 0 0; padding-top: 10px; border-top: var(--border-light); font-size: 14.5px; line-height: 21px; }
.hub-keyfacts > div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.hub-keyfacts dt { color: var(--color-text-secondary); }
.hub-keyfacts dd { margin: 0; color: var(--color-text-dark); font-weight: 700; }
.hub-keyfacts a { color: inherit; }
.hub-keyfacts a:hover { color: var(--color-primary); }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.hub-links a {
	display: grid; place-items: center;
	width: 34px; height: 34px;
	color: var(--color-text-secondary);
	background: var(--color-pill);
	border-radius: 50%;
	transition: color 0.15s, background-color 0.15s;
}
.hub-links a:hover, .hub-links a:focus-visible { color: #fff; background: var(--color-primary); }
.hub-header .archive-count { margin-top: 8px; }

/* Team hub: jump tabs, overview + info box, players */
.hub-tabs { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs a { flex-shrink: 0; padding: 7px 14px; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--color-text); background: var(--color-pill); border-radius: 18px; }
.hub-tabs a:hover { color: #fff; background: var(--color-primary); }
.hub-section-title { margin-bottom: 10px; font-size: 18px; line-height: 26px; }
.hub-section-title--list { margin: 18px 0 8px; }
.team-overview, .team-roster { margin-bottom: 16px; padding: 14px 16px; }
#tong-quan, #tieu-su, #doi-hinh, #su-nghiep, #lich-thi-dau, #tin-tuc, #gioi-thieu { scroll-margin-top: var(--sticky-top); }
.team-overview-text p { margin: 0 0 10px; line-height: 24px; text-align: justify; }
.team-overview-text p.is-note { color: var(--color-text-secondary); }
.team-overview-text a, .team-infobox dd a { color: var(--color-primary); }
.team-overview-text a:hover, .team-infobox dd a:hover { text-decoration: underline; }
.team-infobox { margin-bottom: 16px; overflow: hidden; background: var(--color-bg); border: var(--border-light); border-radius: var(--radius); }
.team-infobox-title { padding: 9px 14px; font-size: 16px; line-height: 24px; font-weight: 700; color: #fff; background: var(--color-primary); }
.team-infobox-body { display: flex; }
.team-infobox-logo { flex: 0 0 128px; display: grid; place-items: center; padding: 14px; border-right: var(--border-light); }
.team-infobox-logo img { width: 96px; height: 96px; object-fit: contain; }
/* Two label/value pairs per row; the last row's bottom border is clipped by the box. */
.team-infobox dl { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 -1px; }
.team-infobox dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; padding: 9px 14px; font-size: 14px; line-height: 20px; border-bottom: var(--border-light); }
.team-infobox dl > div:nth-child(odd) { border-right: var(--border-light); }
.team-infobox dt { font-weight: 700; color: var(--color-text-dark); }
.team-infobox dd { margin: 0; color: var(--color-text-secondary); overflow-wrap: anywhere; }
.team-roster-note { margin: -4px 0 12px; font-size: 13px; color: var(--color-text-secondary); }
.team-roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.team-player { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; padding: 10px 6px 12px; text-align: center; background: var(--color-bg); border: var(--border-light); border-radius: var(--radius); }
a.team-player:hover { border-color: var(--color-primary); }
.team-player-photo { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 6px; overflow: hidden; color: var(--color-text-secondary); background: var(--color-pill); border-radius: 50%; }
.team-player-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-player-nick { font-weight: 700; line-height: 20px; color: var(--color-text-dark); }
.team-player-role { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--color-primary); }
.team-player-real { font-size: 12px; line-height: 16px; color: var(--color-text-secondary); }
@media (max-width: 767px) {
	.team-infobox-logo { display: none; } /* Already shown in the hub header. */
	.team-infobox dl { grid-template-columns: 1fr; }
	.team-infobox dl > div:nth-child(odd) { border-right: 0; }
	.team-roster-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
	.team-player-photo { width: 76px; height: 76px; }
}

.entry-tags + .entry-tags { margin-top: 8px; padding-top: 0; border-top: 0; }

@media (max-width: 600px) {
	.hub-header { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "media body" "info info"; align-items: center; column-gap: 14px; }
	.hub-info { margin-top: 10px; }
	.hub-media { flex-basis: 76px; width: 76px; height: 76px; border-radius: 10px; }
	.hub-media img { padding: 6px; }
	.hub-media .icon { width: 32px; height: 32px; }
	.hub-meta { gap: 2px 12px; font-size: 13.5px; }
	.hub-keyfacts { gap: 2px 16px; font-size: 14px; }
}

/* "Đọc thêm" box inside articles */
.entry-content .read-more {
	margin: 4px 0 18px;
	padding: 10px 14px;
	text-align: left;
	background: var(--color-pill);
	border-left: 3px solid var(--color-primary);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.read-more-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-primary); }
.entry-content .read-more ul { margin: 0; padding: 0; list-style: none; }
.entry-content .read-more li + li { margin-top: 6px; }
.entry-content .read-more a { font-weight: 700; color: var(--color-text-dark); text-decoration: none; }
.entry-content .read-more a:hover { color: var(--color-primary); text-decoration: underline; }

/* Schedule blocks come from the vne-schedule plugin (assets/schedule.css); spacing in theme layouts only. */
.sched-box--term { margin-bottom: 16px; }
.sched-more--block { display: block; margin-top: 8px; padding-top: 8px; text-align: center; border-top: var(--border-light); }

/* Share buttons — end of article, right-aligned */
.entry-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.entry-share-label { margin-right: 2px; font-size: 14px; font-weight: 700; color: var(--color-text-secondary); }
.share-btn {
	display: inline-grid; place-items: center;
	width: 38px; height: 38px; padding: 0;
	color: #fff;
	background: var(--color-pill);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.15s, filter 0.15s, background-color 0.15s;
}
.share-btn[hidden] { display: none; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.share-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.share-btn--facebook { background: #1877f2; }
.share-btn--zalo { background: #0068ff; }
.share-btn--messenger { background: linear-gradient(45deg, #0099ff, #a033ff 60%, #ff5280); }
.share-btn--copy, .share-btn--more { color: var(--color-text); }
.share-btn--copy:hover, .share-btn--more:hover { background: var(--color-surface-hover); filter: none; }
@media (hover: hover) and (pointer: fine) { .share-btn--messenger { display: none; } }
.share-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 1000;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	font-size: 14px; line-height: 20px; text-align: center;
	color: #fff;
	background: rgba(20, 22, 28, 0.96);
	border: var(--border-medium);
	border-radius: 20px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity 0.2s, transform 0.2s;
}
.share-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .share-btn, .share-toast { transition: none; } }

/* Team overview: written introduction + achievements */
.team-overview-text.entry-content > :last-child { margin-bottom: 0; }
.team-overview-text.entry-content h3 { margin: 18px 0 8px; font-size: 17px; line-height: 26px; }
.team-achievements { margin-top: 16px; padding: 12px 14px; background: var(--color-bg); border: var(--border-light); border-left: 3px solid var(--color-primary); border-radius: 0 var(--radius) var(--radius) 0; }
.team-achievements-title { margin-bottom: 8px; font-size: 15px; line-height: 22px; }
.team-achievements ul { margin: 0; padding-left: 18px; }
.team-achievements li { margin: 0; font-size: 14px; line-height: 22px; }
.team-achievements li + li { margin-top: 4px; }
.team-sources { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--color-text-secondary); }

/* Player hub: photo in the info box, career timeline */
.player-infobox .team-infobox-logo img { border-radius: 50%; object-fit: cover; object-position: top; background: var(--color-pill); }
.player-career { margin-bottom: 16px; padding: 14px 16px; }
.player-career-list { margin: 0; padding: 0; list-style: none; }
.player-career-list li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 14px; line-height: 22px; border-bottom: var(--border-light); }
.player-career-list li:last-child { border-bottom: 0; }
.player-career-period { color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.player-career-team { font-weight: 700; color: var(--color-text-dark); }
.player-career-team a { color: var(--color-primary); }
.player-career-team a:hover { text-decoration: underline; }

/* Hero hubs (Liên Quân): skills, skins, pro play; hero list on "Tướng Liên Quân" */
.hero-skills, .hero-skins, .hero-stats { margin-bottom: 16px; padding: 14px 16px; }
.hero-skill-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-skill-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; padding: 10px 0; border-bottom: var(--border-light); }
.hero-skill-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-skill-slot { grid-row: span 2; align-self: start; padding: 3px 8px; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; color: var(--color-primary); background: var(--color-primary-soft); border-radius: 6px; }
.hero-skill-name { margin: 0 0 4px; font-size: 15px; line-height: 22px; color: var(--color-text-dark); }
.hero-skill-list p { margin: 0; font-size: 14px; line-height: 22px; }
.hero-table-wrap { overflow-x: auto; }
.hero-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.hero-table th, .hero-table td { padding: 8px 10px; text-align: left; border-bottom: var(--border-light); vertical-align: top; }
.hero-table th { font-size: 13px; color: var(--color-text-secondary); font-weight: 600; white-space: nowrap; }
.hero-table--num td:not(:first-child) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-skin-name { font-weight: 600; color: var(--color-text-dark); }
.hero-table a { color: var(--color-primary); }
.hero-table a:hover { text-decoration: underline; }
.hero-skins .team-roster-note, .hero-stats .team-roster-note { margin: 10px 0 0; }
.hero-faq { margin-bottom: 16px; }
.hero-updated { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: 13px; color: var(--color-text-secondary); }
.hero-list { margin-bottom: 16px; padding: 14px 16px; }
.hero-list-roles { margin: 0; }
.hero-list-roles > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: var(--border-light); }
.hero-list-roles > div:last-child { border-bottom: 0; }
.hero-list-roles dt { font-size: 14px; font-weight: 700; color: var(--color-text-dark); }
.hero-list-roles dt span { font-weight: 400; color: var(--color-text-secondary); }
.hero-list-roles dd { margin: 0; font-size: 14px; line-height: 24px; color: var(--color-text-secondary); }
.hero-list-roles dd > * { margin-right: 10px; white-space: nowrap; }
.hero-list-roles dd a { color: var(--color-primary); font-weight: 600; }
.hero-list-roles dd a:hover { text-decoration: underline; }
.notice-scheduled { margin: 0 0 12px; padding: 8px 12px; font-size: 13px; color: var(--color-text-dark); background: var(--color-primary-soft); border-radius: 8px; }
@media (max-width: 767px) {
	.hero-skill-list li { grid-template-columns: minmax(0, 1fr); }
	.hero-skill-slot { grid-row: auto; justify-self: start; margin-bottom: 6px; }
	.hero-list-roles > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 600px) {
	.player-career-list li { grid-template-columns: 1fr; gap: 0; }
}

/* FAQ accordion (inc/faq.php): one bordered card per question. */
.entry-content .faq { display: grid; gap: 8px; margin: 0 0 20px; }
.faq-item { background: var(--color-white); border: var(--border-light); border-radius: 14px; transition: border-color .15s; }
.faq-item:hover, .faq-item[open] { border-color: var(--color-border-medium); }
.faq-q { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-q:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 14px; }
.entry-content .faq .faq-title { flex: 1; margin: 0; font-size: 15.5px; line-height: 22px; font-weight: 700; color: var(--color-text-dark); text-align: left; } /* Beats hub sections' own h3 margins. */
.faq-icon { position: relative; flex: none; width: 26px; height: 26px; border: 1.5px solid var(--color-border-medium); border-radius: 50%; color: var(--color-text-secondary); transition: color .15s, border-color .15s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { color: var(--color-primary); border-color: var(--color-primary); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%); }
.faq-chevron { flex: none; width: 9px; height: 9px; margin: 0 4px; border-right: 2px solid var(--color-text-secondary); border-bottom: 2px solid var(--color-text-secondary); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq-item[open] .faq-chevron { transform: translateY(2px) rotate(-135deg); }
.faq-a { padding: 0 16px 14px 54px; }
.faq-a > :last-child { margin-bottom: 0; }
.entry-content hr { margin: 24px 0; border: 0; border-top: var(--border-light); }
@media (max-width: 600px) {
	.faq-q { gap: 10px; padding: 10px 12px; }
	.entry-content .faq .faq-title { font-size: 15px; line-height: 21px; }
	.faq-icon { width: 24px; height: 24px; }
	.faq-a { padding: 0 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.faq-item, .faq-icon, .faq-icon::before, .faq-icon::after, .faq-chevron { transition: none; }
}

/* Homepage H1 and one-line intro above the top stories. */
.home-intro { margin: 22px 0 18px; }
.home-intro-title { margin: 0 0 6px; font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -0.01em; color: var(--color-text-dark); }
.home-intro-text { margin: 0; font-size: 15px; line-height: 23px; color: var(--color-text-secondary); }
@media (max-width: 640px) { .home-intro { margin: 14px 0; } .home-intro-title { font-size: 24px; line-height: 31px; } .home-intro-text { font-size: 14px; line-height: 21px; } }

/* Author page: focus chips and working principles. */
.author-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.author-focus-label { font-size: 13px; font-weight: 700; color: var(--color-text-secondary); margin-right: 2px; }
.author-principles { margin: 14px 0 0; padding: 12px 14px 12px 30px; border-left: 3px solid var(--color-primary); background: rgba(255,255,255,0.03); font-size: 14px; line-height: 21px; color: var(--color-text); }
.author-principles li { margin: 0 0 4px; }
.author-principles li:last-child { margin-bottom: 0; }

/* Compact author box under posts and code pages. */
.author-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px; border: 1px solid var(--color-border); border-radius: 10px; }
.author-card-avatar { flex-shrink: 0; }
.author-card-img { width: 72px; height: 72px; border-radius: 50%; display: block; }
.author-card-body { min-width: 0; }
.author-card-kicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--color-text-secondary); }
.author-card-name { margin: 2px 0 0; font-size: 17px; line-height: 24px; font-weight: 700; }
.author-card-name a { color: var(--color-text); }
.author-card-title { display: block; font-size: 13px; font-weight: 600; color: var(--color-primary); }
.author-card-bio { margin: 6px 0 0; font-size: 14px; line-height: 21px; color: var(--color-text-secondary); }
.author-card-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: 13px; font-weight: 600; }
@media (max-width: 640px) { .author-card { padding: 14px; gap: 12px; } .author-card-img { width: 56px; height: 56px; } }

/* Author page: basic-info table. */
.author-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 14px 0 0; padding: 4px 14px; border: 1px solid var(--color-border); border-radius: 8px; }
.author-fact { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; line-height: 20px; }
.author-fact:nth-last-child(-n+2) { border-bottom: 0; }
.author-fact dt { flex: 0 0 150px; margin: 0; color: var(--color-text-secondary); }
.author-fact dd { margin: 0; color: var(--color-text); font-weight: 600; }
@media (max-width: 640px) { .author-facts { grid-template-columns: 1fr; } .author-fact:nth-last-child(2) { border-bottom: 1px solid var(--color-border); } .author-fact dt { flex-basis: 120px; } }

/* "Bản đồ nội dung" tables on the About page: full width on desktop, scroll on phones. */
.entry-content table.vne-map { display: table; table-layout: auto; }
.entry-content table.vne-map th { white-space: nowrap; }
.entry-content table.vne-map td { vertical-align: top; line-height: 22px; }
.entry-content table.vne-map td:first-child { font-weight: 600; white-space: nowrap; }
.entry-content table.vne-map a { font-weight: 600; }
@media (max-width: 640px) { .entry-content table.vne-map { display: block; } .entry-content table.vne-map td:first-child { white-space: normal; } }

/* Header menu: curated sub-links open on hover/focus (desktop); the drawer shows them on phones. */
.site-nav .nav-menu > .menu-item-has-children > a { padding-right: 26px; }
.site-nav .nav-menu > .menu-item-has-children > a::before { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: 0.55; }
.site-nav .sub-menu { display: none; }
@media (min-width: 768px) {
	.site-nav .nav-menu { overflow: visible; }
	.site-nav .nav-menu > li { position: relative; }
	.site-nav .sub-menu { display: block; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 232px; margin: 0; padding: 8px 0; list-style: none; background: var(--color-white); border: 1px solid var(--color-border); border-top: 2px solid var(--color-primary); border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s; }
	.site-nav .nav-menu > li:hover > .sub-menu, .site-nav .nav-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.site-nav .nav-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
	.site-nav .sub-menu a { display: block; height: auto; padding: 9px 16px; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--color-text-dark); white-space: nowrap; }
	.site-nav .sub-menu a::after, .site-nav .sub-menu a::before { display: none; }
	.site-nav .sub-menu a:hover, .site-nav .sub-menu .current-menu-item > a { background: var(--color-primary-soft); color: var(--color-primary); }
}

/* Drawer: sections with sub-links. */
.drawer-item { position: relative; }
.drawer-item.has-children > a { padding-right: 56px; }
.drawer-sub-toggle { position: absolute; top: 6px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--color-text-secondary); transition: transform 0.2s; }
.drawer-item.is-expanded > .drawer-sub-toggle { transform: rotate(90deg); color: var(--color-primary); }
.drawer-sub { display: none; list-style: none; margin: 0 0 6px; padding: 0 0 0 60px; }
.drawer-item.is-expanded > .drawer-sub { display: block; }
.drawer-cats .drawer-sub a { display: block; padding: 7px 16px 7px 0; font-size: 14px; font-weight: 400; color: var(--color-text-secondary); background: none; }
.drawer-cats .drawer-sub .is-active > a { color: var(--color-primary); font-weight: 700; }
@media (max-width: 767px) {
	/* Phones: no dropdowns in the bar (the drawer has the sub-links), so no caret either. */
	.site-nav .nav-menu > .menu-item-has-children > a { padding-right: 12px; }
	.site-nav .nav-menu > .menu-item-has-children > a::before { display: none; }
}
/* The bar's "first item has no left padding" rule must not reach into dropdowns. */
@media (min-width: 768px) {
	.site-nav .nav-menu .sub-menu li:first-child a { padding-left: 16px; }
	.site-nav .nav-menu .sub-menu li a::after, .site-nav .nav-menu .sub-menu li a::before { display: none; }
}
