/* ==========================================================================
   Nova88 News – main stylesheet
   ========================================================================== */

:root {
	--c-dark: #110828;
	--c-primary: #6d28d9;
	--c-gold: #f5b82e;
	--c-red: #e5173f;

	--c-bg: #f4f4f9;
	--c-surface: #ffffff;
	--c-text: #17132b;
	--c-muted: #6c6882;
	--c-line: #e7e5f0;
	--c-soft: #f1eefb;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(23, 19, 43, .05), 0 6px 20px -8px rgba(23, 19, 43, .12);
	--shadow-hover: 0 2px 4px rgba(23, 19, 43, .06), 0 16px 32px -12px rgba(45, 20, 110, .28);
	--container: 1200px;
	--gutter: 20px;
	--header-h: 68px;
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-primary); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; z-index: 999;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: var(--c-dark);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px; border-radius: 8px; border: 0;
	font-weight: 700; font-size: 14px; line-height: 1;
	transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn--gold {
	color: #1b1002;
	background: linear-gradient(180deg, #ffd766 0%, var(--c-gold) 55%, #e59d0c 100%);
	box-shadow: 0 6px 18px -6px rgba(245, 184, 46, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--gold:hover { color: #1b1002; transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(245, 184, 46, .8); }
.btn--outline-gold { color: var(--c-gold); border: 1.5px solid var(--c-gold); background: rgba(245, 184, 46, .06); }
.btn--outline-gold:hover { color: #1b1002; background: var(--c-gold); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: linear-gradient(90deg, var(--c-dark), color-mix(in srgb, var(--c-dark) 80%, var(--c-primary)));
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.site-header__brand { flex-shrink: 0; }
.site-header__brand img, .custom-logo { max-height: 44px; width: auto; }

.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.logo:hover { color: #fff; }
.logo__mark {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	font-size: 15px; font-style: italic; color: #1b1002;
	background: radial-gradient(circle at 30% 25%, #fff2b3, var(--c-gold) 45%, #b06f00);
	box-shadow: 0 0 0 2px rgba(245, 184, 46, .35), 0 0 18px rgba(245, 184, 46, .45);
}
.logo__text {
	background: linear-gradient(180deg, #fff 0%, #ffe39a 55%, var(--c-gold) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { flex: 1; }
.nav__list, .nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.nav li { position: relative; }
.nav a {
	display: block; padding: 8px 12px; font-size: 14px; font-weight: 500;
	color: rgba(255, 255, 255, .82); border-radius: 6px; position: relative;
}
.nav a:hover { color: #fff; }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current-post-ancestor > a, .nav .current-category-ancestor > a { color: #fff; font-weight: 700; }
.nav .current-menu-item > a::after, .nav .current-menu-ancestor > a::after, .nav .current-post-ancestor > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px;
	background: var(--c-gold); border-radius: 2px; box-shadow: 0 0 8px var(--c-gold);
}
.nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px;
	background: var(--c-dark); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a::after { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
	background: transparent; border: 0; color: #fff;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

.search-panel { padding: 16px 0 20px; border-top: 1px solid rgba(255, 255, 255, .06); }
.search-form { display: flex; align-items: center; gap: 8px; position: relative; max-width: 640px; margin: 0 auto; }
.search-form__icon { position: absolute; left: 14px; color: var(--c-muted); pointer-events: none; }
.search-form__input {
	flex: 1; height: 46px; padding: 0 14px 0 42px; border-radius: 10px;
	border: 1px solid var(--c-line); background: #fff; font: inherit; color: var(--c-text);
}
.search-form__input:focus { outline: 2px solid var(--c-gold); border-color: transparent; }
.search-form__btn { height: 46px; }

/* ---------- Hero (homepage) ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(60% 80% at 78% 40%, rgba(245, 184, 46, .22), transparent 60%),
		radial-gradient(50% 70% at 20% 0%, rgba(168, 85, 247, .38), transparent 70%),
		radial-gradient(40% 60% at 100% 100%, rgba(229, 23, 63, .25), transparent 70%),
		linear-gradient(180deg, color-mix(in srgb, var(--c-dark) 70%, var(--c-primary)), var(--c-dark));
}
.hero::before { /* stadium light streaks */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		repeating-linear-gradient(115deg, transparent 0 60px, rgba(255, 255, 255, .025) 60px 62px),
		radial-gradient(2px 2px at 20% 30%, rgba(255, 220, 130, .8), transparent),
		radial-gradient(2px 2px at 35% 70%, rgba(255, 220, 130, .6), transparent),
		radial-gradient(1.5px 1.5px at 60% 20%, rgba(255, 255, 255, .7), transparent),
		radial-gradient(2px 2px at 88% 80%, rgba(255, 220, 130, .7), transparent);
}
.hero--image { background: var(--c-dark) var(--hero-bg) center right / cover no-repeat; }
.hero--image::before { background: linear-gradient(90deg, rgba(10, 4, 26, .92) 0%, rgba(10, 4, 26, .65) 45%, rgba(10, 4, 26, .05) 100%); }

.hero__emblem {
	position: absolute; right: max(2vw, calc((100vw - var(--container)) / 2 - 20px)); top: 10px;
	width: min(46vw, 470px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5));
	animation: nv-float 6s ease-in-out infinite;
}
@keyframes nv-float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__emblem { animation: none; } }

.hero__inner { position: relative; padding: 64px var(--gutter) 40px; }
.hero__content { max-width: 560px; }
.hero__title {
	font-size: clamp(40px, 6vw, 68px); font-weight: 900; line-height: 1; letter-spacing: -.02em;
	margin-bottom: 18px; text-transform: uppercase;
	text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.hero__title span {
	background: linear-gradient(180deg, #fff2b3 0%, var(--c-gold) 55%, #c07b00 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; margin-bottom: 12px; max-width: 420px; }
.hero__desc { color: rgba(255, 255, 255, .78); max-width: 440px; margin-bottom: 26px; }

.features {
	position: relative; list-style: none; margin: 0 0 28px; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: rgba(12, 5, 32, .65); backdrop-filter: blur(8px);
	border: 1px solid rgba(245, 184, 46, .18); border-radius: var(--radius);
}
.feature { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.feature + .feature { border-left: 1px solid rgba(255, 255, 255, .08); }
.feature__icon {
	flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
	color: var(--c-gold); border: 1.5px solid rgba(245, 184, 46, .55);
	background: radial-gradient(circle, rgba(245, 184, 46, .18), transparent 70%);
}
.feature__text strong { display: block; font-size: 14px; font-weight: 700; }
.feature__text small { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); line-height: 1.4; }

/* ---------- Sections ---------- */
.home-body { padding: 40px 0 24px; }
.sec { margin-bottom: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-title {
	position: relative; padding-left: 14px; margin: 0;
	font-size: 22px; font-weight: 800; letter-spacing: -.01em;
}
.sec-title::before {
	content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 3px;
	background: linear-gradient(180deg, var(--c-red), color-mix(in srgb, var(--c-red) 60%, #ff7a18));
}
.sec-sub { margin: 4px 0 0; color: var(--c-muted); font-size: 13.5px; }
.sec-more { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--c-text); }
.sec-more:hover { color: var(--c-red); }
.sec-more .ico { transition: transform .15s; }
.sec-more:hover .ico { transform: translateX(3px); }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--archive { grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Card ---------- */
.card {
	display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-line);
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card__thumb { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--c-dark); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card__title { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin: 0; }
.card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }
.card--compact .card__title { font-size: 14.5px; }
.card--compact .card__title a { -webkit-line-clamp: 2; }

.thumb-ph {
	display: grid; place-items: center; width: 100%; height: 100%;
	background:
		radial-gradient(60% 80% at 70% 30%, rgba(245, 184, 46, .35), transparent 60%),
		linear-gradient(135deg, color-mix(in srgb, var(--c-dark) 60%, var(--c-primary)), var(--c-dark));
}
.thumb-ph span {
	font-weight: 900; font-size: clamp(18px, 3vw, 30px); font-style: italic; letter-spacing: -.02em;
	background: linear-gradient(180deg, #fff2b3, var(--c-gold) 60%, #b06f00);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; white-space: nowrap; font-size: 12px; color: var(--c-muted); }
.meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* Badges */
.badge {
	display: inline-block; padding: 3px 9px; border-radius: 5px;
	font-size: 11px; font-weight: 700; line-height: 1.5;
	--b: var(--c-red); color: var(--b); background: color-mix(in srgb, var(--b) 11%, #fff);
}
a.badge:hover { color: #fff; background: var(--b); }
.badge--red { --b: #e5173f; }
.badge--blue { --b: #2563eb; }
.badge--pink { --b: #db2777; }
.badge--purple { --b: #7c3aed; }
.badge--teal { --b: #0f9488; }
.badge--gold { --b: #c27803; }
.badge--indigo { --b: #4f46e5; }

/* ---------- Explore ---------- */
.explore__item {
	display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--c-surface);
	border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow);
	transition: transform .2s, box-shadow .2s, border-color .2s;
	--t: #2563eb;
}
a.explore__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--t) 40%, #fff); color: inherit; }
.explore__item--2 { --t: #db2777; }
.explore__item--3 { --t: #4f46e5; }
.explore__item--4 { --t: #ea7a0c; }
.explore__icon {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
	color: var(--t); background: color-mix(in srgb, var(--t) 11%, #fff);
}
.explore__item strong { font-size: 15px; }
.explore__item small { color: var(--c-muted); font-size: 13px; }

/* ---------- Split (casino | guide) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 28px; }
.split__side .sec-title { font-size: 18px; }
.split__side .card { margin-bottom: 14px; }
.split__main .sec-head, .split__side .sec-head { min-height: 52px; }

/* Mini list */
.mini-list { display: flex; flex-direction: column; gap: 14px; }
.mini { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.mini__thumb { display: block; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--c-dark); }
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini__thumb .thumb-ph span { font-size: 14px; }
.mini__title { font-size: 13px; font-weight: 600; line-height: 1.45; margin: 0 0 4px; }
.mini__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini__date { font-size: 11.5px; color: var(--c-muted); }

.home-seo { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px 32px; }

/* ---------- Single ---------- */
.single-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 24px; padding-bottom: 56px; align-items: start; }
.page-wrap { max-width: 860px; padding-top: 24px; padding-bottom: 56px; }
.article { background: var(--c-surface); border-radius: var(--radius); padding: 24px 32px 32px; border: 1px solid var(--c-line); box-shadow: var(--shadow); }

.crumbs { font-size: 12.5px; color: var(--c-muted); margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; opacity: .6; }
.crumbs li[aria-current] { color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.crumbs a:hover { color: var(--c-red); }

.article__head .badge { margin-bottom: 12px; }
.article__title { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 18px; }
.article__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--c-line); }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--c-muted); }
.byline__avatar { width: 32px; height: 32px; border-radius: 50%; margin-right: -8px; }
.byline__name { font-weight: 600; color: var(--c-text); }

.share { display: flex; align-items: center; gap: 8px; }
.share__label { font-size: 13px; color: var(--c-muted); margin-right: 4px; }
.share__btn {
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	border: 0; color: #fff; background: #111; transition: transform .15s, opacity .15s;
}
.share__btn:hover { color: #fff; transform: translateY(-2px); }
.share__btn--fb { background: #1877f2; }
.share__btn--link { background: #8b8aa0; }
.share__btn.is-copied { background: #16a34a; }

.article__cover { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: var(--c-dark); }
.article__cover img { width: 100%; }
.article__cover figcaption { font-size: 12.5px; color: var(--c-muted); padding: 8px 4px 0; background: var(--c-surface); }

/* Entry typography */
.entry { font-size: 16px; line-height: 1.8; color: #2b2740; overflow-wrap: break-word; }
.entry > * + * { margin-top: 1.1em; }
.entry p { margin: 0; }
.entry h2 { font-size: 23px; font-weight: 800; margin: 1.8em 0 .6em; color: var(--c-text); scroll-margin-top: calc(var(--header-h) + 20px); }
.entry h3 { font-size: 19px; margin: 1.5em 0 .5em; color: var(--c-text); scroll-margin-top: calc(var(--header-h) + 20px); }
.entry h4 { font-size: 17px; margin: 1.3em 0 .4em; }
.entry a { color: var(--c-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { color: var(--c-red); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .35em; }
.entry li::marker { color: var(--c-red); font-weight: 700; }
.entry img, .entry figure img { border-radius: 10px; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 13px; color: var(--c-muted); text-align: center; margin-top: 8px; }
.entry blockquote, .entry .wp-block-quote {
	position: relative; margin: 1.6em 0; padding: 18px 22px 18px 58px;
	background: var(--c-soft); border: 1px solid color-mix(in srgb, var(--c-primary) 14%, #fff); border-radius: var(--radius);
	font-weight: 600; font-size: 15px; color: var(--c-text);
}
.entry blockquote::before {
	content: "“"; position: absolute; left: 18px; top: 8px; font-size: 48px; line-height: 1; font-weight: 900;
	color: var(--c-red); font-family: Georgia, serif;
}
.entry blockquote p { margin: 0; }
.entry blockquote cite { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--c-muted); font-style: normal; }
.entry table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.entry th, .entry td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.entry th { background: var(--c-soft); }
.entry code { background: var(--c-soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry pre { background: var(--c-dark); color: #eee; padding: 16px; border-radius: 10px; overflow: auto; }
.entry hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }
.entry .wp-block-button__link { background: var(--c-gold); color: #1b1002; text-decoration: none; border-radius: 8px; font-weight: 700; }
.entry .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
/* Product mini-cards: gallery / columns used like the mockup's "Các sản phẩm" row */
.entry .wp-block-columns { gap: 14px; }
.entry .wp-block-gallery { gap: 12px; }

/* In-content TOC */
.toc {
	margin: 1.6em 0; background: var(--c-soft); border: 1px solid color-mix(in srgb, var(--c-primary) 14%, #fff);
	border-radius: var(--radius); padding: 4px 22px 16px;
}
.toc__head {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	background: none; border: 0; padding: 14px 0 10px; color: var(--c-text); text-align: left;
}
.toc__title { font-size: 16px; font-weight: 700; }
.toc__toggle {
	display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: #fff; color: var(--c-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: transform .2s;
}
.toc__head[aria-expanded="true"] .toc__toggle { transform: rotate(90deg); }
.toc__list { margin: 0 !important; padding-left: 1.3em; font-size: 14.5px; }
.toc__list li + li { margin-top: 4px !important; }
.toc__list li::marker { color: var(--c-primary); font-weight: 600; }
.toc__list a { color: var(--c-primary) !important; text-decoration: none !important; }
.toc__list a:hover { text-decoration: underline !important; }
.toc.is-collapsed .toc__list { display: none; }
.toc.is-collapsed { padding-bottom: 4px; }

.article__foot { margin-top: 32px; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.tags__label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.author-box { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--c-soft); margin-bottom: 24px; }
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box p { margin: 4px 0 0; font-size: 14px; color: var(--c-muted); }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation a { display: block; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 10px; height: 100%; }
.post-navigation a:hover { border-color: var(--c-primary); }
.post-navigation small { display: block; font-size: 12px; color: var(--c-muted); }
.post-navigation span { font-weight: 600; font-size: 14px; line-height: 1.4; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: relative; height: 100%; }
.side-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 18px 20px; box-shadow: var(--shadow); }
.side-card__title, .side-plain__title { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.side-card__title--icon { display: flex; align-items: center; gap: 8px; }
.side-toc__dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--c-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-red) 15%, transparent); }
.side-toc__list { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.side-toc__list li { counter-increment: toc; }
.side-toc__list a {
	display: flex; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: 13px; color: var(--c-muted);
	border-left: 2px solid transparent; transition: .15s;
}
.side-toc__list a::before { content: counter(toc) "."; font-weight: 600; min-width: 14px; }
.side-toc__list a:hover { background: var(--c-soft); color: var(--c-text); }
.side-toc__list a.is-active { color: var(--c-primary); background: var(--c-soft); border-left-color: var(--c-primary); font-weight: 600; }

.side-plain .mini-list { gap: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500;
	background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-text);
}
.chip:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

.side-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.admin-bar .side-sticky { top: calc(var(--header-h) + 52px); }

.promo {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
	padding: 26px 20px 24px; border-radius: var(--radius); color: #fff;
	border: 1px solid rgba(245, 184, 46, .35);
	background:
		radial-gradient(80% 50% at 50% 60%, rgba(245, 184, 46, .25), transparent 70%),
		radial-gradient(60% 40% at 50% 0%, rgba(168, 85, 247, .45), transparent 70%),
		linear-gradient(180deg, color-mix(in srgb, var(--c-dark) 65%, var(--c-primary)), var(--c-dark));
	box-shadow: 0 20px 40px -18px rgba(45, 20, 110, .7);
}
.promo--image { padding: 0; overflow: hidden; border: 0; }
.promo--image img { width: 100%; }
.promo__brand {
	font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -.02em;
	background: linear-gradient(180deg, #fff 0%, #ffe39a 55%, var(--c-gold) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.promo__heading { margin: 0; font-weight: 800; font-size: 14px; line-height: 1.5; text-transform: uppercase; color: var(--c-gold); letter-spacing: .02em; }
.promo__shield { position: relative; color: var(--c-gold); filter: drop-shadow(0 0 18px rgba(245, 184, 46, .6)); padding: 8px 0; }
.promo__shield .ico { width: 110px; height: 110px; stroke-width: 1.3; }
.promo__shield .age-badge { position: absolute; right: -14px; bottom: 4px; }

.age-badge {
	display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
	font-weight: 900; font-size: 13px; color: #fff; background: var(--c-dark);
	border: 2.5px solid var(--c-gold);
}
.age-badge--lg { width: 46px; height: 46px; font-size: 15px; background: #1a0f3a; }

/* ---------- Archive ---------- */
.page-hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(50% 90% at 80% 40%, rgba(245, 184, 46, .22), transparent 60%),
		radial-gradient(50% 90% at 10% 0%, rgba(168, 85, 247, .35), transparent 70%),
		linear-gradient(180deg, color-mix(in srgb, var(--c-dark) 70%, var(--c-primary)), var(--c-dark));
}
.page-hero--image { background: var(--c-dark) var(--hero-bg) center right / cover no-repeat; }
.page-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 4, 26, .92), rgba(10, 4, 26, .5) 55%, transparent); }
.page-hero__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 240px; padding-top: 40px; padding-bottom: 40px; }
.page-hero__text { max-width: 560px; }
.page-hero__title {
	font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 12px;
	background: linear-gradient(180deg, #fff 30%, #ffe39a 70%, var(--c-gold) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero__desc { color: rgba(255, 255, 255, .78); margin: 0; max-width: 460px; }
.page-hero__art { position: relative; width: 340px; height: 190px; flex-shrink: 0; }
.page-hero__paper {
	position: absolute; left: 0; top: 18px; width: 210px; height: 150px; padding: 14px 16px;
	transform: rotate(-12deg); border-radius: 4px;
	font-weight: 900; font-size: 15px; color: #3b3450; letter-spacing: .02em; white-space: nowrap;
	background:
		repeating-linear-gradient(180deg, transparent 0 14px, rgba(0, 0, 0, .07) 14px 16px) 16px 44px / 70% 90px no-repeat,
		linear-gradient(135deg, #f4efe4, #d8d0bf);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}
.page-hero__mono {
	position: absolute; right: 0; top: 40px; font-size: 128px; line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -.06em;
	background: linear-gradient(180deg, #fff2b3 0%, var(--c-gold) 50%, #9a5b00 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 0 22px rgba(245, 184, 46, .55)) drop-shadow(0 8px 12px rgba(0, 0, 0, .5));
}

.archive-body { padding-top: 26px; padding-bottom: 60px; }
.archive-search { margin-bottom: 26px; }
.archive-search .search-form { margin: 0; }

.tabs { margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tabs__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 2px 24px 2px 0; width: max-content; }
.tabs__list a {
	display: block; padding: 8px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
	background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text);
}
.tabs__list a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tabs__list .current-menu-item > a, .tabs__list .current-cat > a {
	background: var(--c-dark); border-color: var(--c-dark); color: #fff;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--c-dark) 80%, transparent);
}

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pager .page-numbers {
	display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px;
	background: var(--c-surface); border: 1px solid var(--c-line); font-size: 14px; font-weight: 600;
}
.pager a.page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pager .current { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.pager .dots { background: transparent; border-color: transparent; }

.empty, .empty-state { color: var(--c-muted); }
.empty-state { text-align: center; padding: 60px 20px; background: var(--c-surface); border: 1px dashed var(--c-line); border-radius: var(--radius); }
.empty-state .ico { margin: 0 auto 12px; color: var(--c-primary); }
.empty-state h2 { color: var(--c-text); }
.empty-state .search-form { margin-top: 20px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 80px 0; max-width: 560px; margin: 0 auto; }
.not-found__code {
	font-size: 120px; font-weight: 900; line-height: 1; letter-spacing: -.04em; font-style: italic;
	background: linear-gradient(180deg, #fff2b3, var(--c-gold) 50%, #9a5b00);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found .search-form { margin: 24px 0; }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.comments__title, .comment-reply-title { font-size: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 14.5px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--c-muted); margin: 2px 0 8px 50px; }
.comment-content { margin-left: 50px; }
.reply { margin-left: 50px; font-size: 13px; font-weight: 600; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 8px; font: inherit; background: #fff;
}
.comment-form p { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: rgba(255, 255, 255, .72); font-size: 14px; padding-top: 48px; margin-top: 20px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 36px; }
.footer-about { margin-top: 14px; line-height: 1.7; }
.footer-col__title { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a:hover, .site-footer a:hover { color: var(--c-gold); }
.footer-links .children { display: none; }
.footer-age { display: flex; gap: 12px; align-items: flex-start; }
.footer-age p { margin: 0; font-size: 13px; line-height: 1.6; }
.site-footer__bottom {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px;
}
.site-footer__bottom p { margin: 0; }
.to-top { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; }
.to-top .ico { transform: rotate(180deg); }

.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Widgets (classic + block) */
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: 8px; }
.side-card.widget h2, .side-card.widget .wp-block-heading, .side-card .wp-block-search__label { font-size: 15px; font-weight: 800; margin: 0 0 12px; display: block; }
.side-card.widget li { font-size: 13.5px; }
.side-card.widget li a:hover { color: var(--c-red); }
.wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.wp-block-search__input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 8px; font: inherit; }
.wp-block-search__button { height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--c-dark); color: #fff; font-weight: 600; }
.site-footer .widget h2, .site-footer .widget .wp-block-heading { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer .widget a:hover { color: var(--c-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nav a { padding: 8px 9px; font-size: 13.5px; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; }
	.split__side .mini-list { display: grid; grid-template-columns: 1fr 1fr; }
	.single-wrap { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	:root { --header-h: 60px; }
	.nav-toggle { display: grid; }
	.nav {
		position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 99;
		background: var(--c-dark); padding: 12px var(--gutter) 40px; overflow-y: auto;
		transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav-open .nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav__list, .nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
	.nav .current-menu-item > a::after { display: none; }
	.nav .current-menu-item > a { color: var(--c-gold); }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 16px; }

	.features { grid-template-columns: repeat(2, 1fr); }
	.feature:nth-child(3) { border-left: 0; }
	.feature:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
	.hero__emblem { opacity: .35; right: -60px; }

	.single-wrap { grid-template-columns: 1fr; }
	.sidebar { height: auto; }
	.side-toc { display: none; } /* in-content TOC is enough on small screens */
	.side-sticky { position: static; max-width: 360px; }
	.grid--archive { grid-template-columns: repeat(2, 1fr); }
	.page-hero__art { display: none; }
}

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 14.5px; }
	.grid--3, .grid--archive { grid-template-columns: 1fr; }
	.grid--4 { grid-template-columns: 1fr 1fr; gap: 14px; }
	.grid--4 .card__body { padding: 12px; }
	.grid--4 .card__title { font-size: 14px; }
	.explore .explore__item { padding: 16px; }
	.features { grid-template-columns: 1fr 1fr; }
	.feature { padding: 12px; gap: 10px; }
	.feature__icon { width: 36px; height: 36px; }
	.hero__inner { padding-top: 44px; }
	.sec-title { font-size: 19px; }
	.sec-head { align-items: flex-start; }
	.split__side .mini-list { grid-template-columns: 1fr; }
	.article { padding: 18px 16px 24px; border-radius: 0; margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
	.single-wrap { padding-top: 0; }
	.entry { font-size: 15.5px; }
	.entry h2 { font-size: 20px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.search-form__btn { padding: 0 14px; }
}
