/* ==========================================================================
   TechHive — main stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--thc-bg: #ffffff;
	--thc-surface: #f6f7f9;
	--thc-surface-2: #eef0f4;
	--thc-text: #14171f;
	--thc-muted: #5b6475;
	--thc-border: #e3e6ec;
	--thc-accent: #f59e0b;
	--thc-accent-strong: #d97706;
	--thc-accent-soft: #fff4dc;
	--thc-accent-ink: #1a1205;
	--thc-primary: #0f172a;
	--thc-good: #16a34a;
	--thc-bad: #dc2626;
	--thc-radius: 14px;
	--thc-radius-sm: 9px;
	--thc-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
	--thc-shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 40px rgba(16, 24, 40, .12);
	--thc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--thc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--th-header-bg: rgba(255, 255, 255, .86);
	--th-hero-from: #0f172a;
	--th-hero-to: #1e293b;
	--th-gutter: 24px;
	--th-max: 1200px;
	--th-narrow: 760px;
	--th-link: #b45309;

	/* Honeycomb pattern (light strokes for use on dark covers) */
	--th-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8l28 16.2v32.4M28 64.8L0 81v32.4' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.2'/%3E%3C/svg%3E");
	--th-hex-amber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8l28 16.2v32.4M28 64.8L0 81v32.4' fill='none' stroke='%23f59e0b' stroke-opacity='.16' stroke-width='1.2'/%3E%3C/svg%3E");

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--thc-bg: #0b0f17;
		--thc-surface: #121826;
		--thc-surface-2: #182033;
		--thc-text: #e8ebf1;
		--thc-muted: #9aa3b5;
		--thc-border: #232b3b;
		--thc-primary: #e8ebf1;
		--thc-accent-soft: #2a1f0a;
		--thc-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
		--thc-shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45);
		--th-header-bg: rgba(11, 15, 23, .86);
		--th-hero-from: #070a11;
		--th-hero-to: #121a2b;
		--th-link: #fbbf24;
		color-scheme: dark;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--thc-bg);
	color: var(--thc-text);
	font-family: var(--thc-font);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

a { color: var(--th-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--thc-accent-strong); }

h1, h2, h3, h4 {
	line-height: 1.2;
	letter-spacing: -.015em;
	color: var(--thc-text);
	margin: 0 0 .6em;
	font-weight: 750;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }

:focus-visible {
	outline: 3px solid var(--thc-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto;
	left: 12px; top: 12px; z-index: 1000;
	padding: 10px 16px; background: var(--thc-accent); color: var(--thc-accent-ink);
	border-radius: 8px; font-weight: 700; text-decoration: none;
}

.th-wrap {
	width: 100%;
	max-width: calc(var(--th-max) + var(--th-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--th-gutter);
}
.th-wrap--narrow { max-width: calc(var(--th-narrow) + var(--th-gutter) * 2); }
.th-wrap--wide { max-width: calc(1040px + var(--th-gutter) * 2); }

@media (max-width: 640px) {
	:root { --th-gutter: 16px; }
	body { font-size: 1rem; }
}

.th-main { display: block; min-height: 50vh; }
.th-main:focus { outline: none; }

/* ---------- Header ---------- */
.th-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--th-header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--thc-border);
}
.admin-bar .th-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .th-header { top: 0; } }

.th-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 68px;
}
.th-header__brand { flex-shrink: 0; }
.th-header__actions { display: flex; gap: 6px; margin-left: auto; }

.th-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--thc-text);
}
.th-logo:hover { color: var(--thc-text); }
.th-logo__mark { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.th-logo:hover .th-logo__mark { transform: rotate(30deg); }
.th-logo__word { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.th-logo__word span { color: var(--thc-muted); font-weight: 600; margin-left: 3px; }
.custom-logo { max-height: 44px; width: auto; }

.th-nav { margin-left: 12px; }
.th-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2px;
	align-items: center;
}
.th-menu li { position: relative; }
.th-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--thc-text);
	text-decoration: none;
	font-weight: 600;
	font-size: .9375rem;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.th-menu a:hover { background: var(--thc-surface); color: var(--thc-text); }
.th-menu .current-menu-item > a,
.th-menu .current-category-ancestor > a,
.th-menu .current-post-ancestor > a,
.th-menu .current-menu-parent > a {
	background: var(--thc-accent-soft);
	color: var(--thc-text);
	box-shadow: inset 0 -2px 0 var(--thc-accent);
}
.th-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	list-style: none;
	margin: 6px 0 0;
	padding: 6px;
	background: var(--thc-bg);
	border: 1px solid var(--thc-border);
	border-radius: 12px;
	box-shadow: var(--thc-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: all .15s;
}
.th-menu li:hover > .sub-menu,
.th-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.th-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: var(--thc-text);
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.th-iconbtn:hover { background: var(--thc-surface); border-color: var(--thc-border); }
.th-menu-toggle { display: none; }
.th-menu-toggle__close { display: none; }
.th-menu-toggle[aria-expanded="true"] .th-menu-toggle__open { display: none; }
.th-menu-toggle[aria-expanded="true"] .th-menu-toggle__close { display: inline; }

.th-searchbar {
	border-top: 1px solid var(--thc-border);
	padding: 14px 0;
	background: var(--thc-bg);
}
.th-searchbar[hidden] { display: none; }

@media (max-width: 960px) {
	.th-menu-toggle { display: inline-grid; }
	.th-nav {
		position: fixed;
		inset: 68px 0 auto 0;
		margin: 0;
		background: var(--thc-bg);
		border-bottom: 1px solid var(--thc-border);
		box-shadow: var(--thc-shadow-lg);
		padding: 10px var(--th-gutter) 18px;
		max-height: calc(100vh - 68px);
		overflow-y: auto;
		display: none;
	}
	.admin-bar .th-nav { top: 114px; }
	.th-nav.is-open { display: block; }
	.th-menu { flex-direction: column; align-items: stretch; }
	.th-menu a { padding: 12px 10px; font-size: 1.0625rem; }
	.th-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; margin: 0; padding: 0 0 0 14px;
	}
}
@media (max-width: 782px) {
	.admin-bar .th-nav { top: 114px; }
}

/* ---------- Search form ---------- */
.th-searchform {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 620px;
	background: var(--thc-bg);
	border: 1px solid var(--thc-border);
	border-radius: 999px;
	padding: 5px 5px 5px 46px;
	box-shadow: var(--thc-shadow);
	transition: border-color .15s, box-shadow .15s;
}
.th-searchform:focus-within { border-color: var(--thc-accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.th-searchform__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--thc-muted);
	display: flex;
}
.th-searchform__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--thc-text);
	font: inherit;
	font-size: 1rem;
	padding: 8px 6px;
	outline: none;
}
.th-searchform__input::placeholder { color: var(--thc-muted); }
.th-searchform__input::-webkit-search-cancel-button { cursor: pointer; }
.th-searchform__btn {
	border: 0;
	border-radius: 999px;
	background: var(--thc-accent);
	color: var(--thc-accent-ink);
	font: inherit;
	font-weight: 700;
	font-size: .9375rem;
	padding: 10px 20px;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.th-searchform__btn:hover { background: #fbbf24; }
.th-searchform__btn:active { transform: scale(.97); }
@media (max-width: 480px) {
	.th-searchform__btn { padding: 10px 14px; }
}

/* ---------- Generic UI ---------- */
.th-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--thc-accent);
	margin: 0 0 14px;
}

.th-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	background: var(--thc-accent-soft);
	color: var(--thc-text);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
	line-height: 1.4;
}
a.th-chip:hover { background: var(--thc-accent); color: var(--thc-accent-ink); }
.th-chip .thc-icon { color: var(--thc-accent-strong); }
a.th-chip:hover .thc-icon { color: var(--thc-accent-ink); }

.th-type {
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--thc-muted);
}

.th-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	color: var(--thc-muted);
	font-size: .9rem;
}
.th-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.th-meta__item .thc-icon { opacity: .8; }

.th-crumbs ol {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: .85rem;
	color: var(--thc-muted);
}
.th-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.th-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; opacity: .6; }
.th-crumbs a { color: var(--thc-muted); text-decoration: none; }
.th-crumbs a:hover { color: var(--thc-text); text-decoration: underline; }
.th-crumbs [aria-current] span {
	color: var(--thc-text);
	max-width: 46ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
}

/* ---------- Hero ---------- */
.th-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(135deg, var(--th-hero-from), var(--th-hero-to));
	padding: clamp(56px, 9vw, 112px) 0 clamp(52px, 8vw, 96px);
	isolation: isolate;
}
.th-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(600px 320px at 85% 10%, rgba(245, 158, 11, .28), transparent 70%),
		radial-gradient(500px 300px at 0% 100%, rgba(56, 189, 248, .12), transparent 70%),
		var(--th-hex-amber);
	background-size: auto, auto, 56px 97px;
	-webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
	mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.th-hero__inner { position: relative; }
.th-hero__title {
	color: #fff;
	font-size: clamp(2.6rem, 7vw, 4.75rem);
	font-weight: 850;
	letter-spacing: -.04em;
	line-height: 1.02;
	margin-bottom: 18px;
	max-width: 14ch;
}
.th-hero__sub {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: rgba(255, 255, 255, .78);
	max-width: 46ch;
	margin-bottom: 30px;
}
.th-hero__search .th-searchform { border-color: transparent; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); background: #fff; }
.th-hero__search .th-searchform__input { color: #14171f; }
.th-hero__search .th-searchform__input::placeholder { color: #6b7280; }
.th-hero__search .th-searchform__icon { color: #6b7280; }

.th-hero__cats {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.th-catchip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 8px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 650;
	font-size: .95rem;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	transition: background .15s, border-color .15s, transform .15s;
}
.th-catchip:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(245, 158, 11, .7); transform: translateY(-1px); }
.th-catchip__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: var(--thc-accent);
	color: var(--thc-accent-ink);
}
.th-hero__cats--plain { justify-content: center; }
.th-hero__cats--plain .th-catchip {
	color: var(--thc-text);
	background: var(--thc-surface);
	border-color: var(--thc-border);
}
.th-hero__cats--plain .th-catchip:hover { color: var(--thc-text); border-color: var(--thc-accent); }

/* ---------- Sections ---------- */
.th-section { padding-top: clamp(40px, 6vw, 72px); }
.th-section:last-child { padding-bottom: clamp(48px, 7vw, 88px); }
.th-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--thc-border);
}
.th-section__title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(1.4rem, 2.6vw, 1.85rem);
	margin: 0;
}
.th-section__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--thc-primary);
	color: var(--thc-accent);
	clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
	width: 44px;
}
@media (prefers-color-scheme: dark) {
	.th-section__icon { background: var(--thc-surface-2); }
}
.th-section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: .9375rem;
	text-decoration: none;
	color: var(--thc-text);
	white-space: nowrap;
}
.th-section__more:hover { color: var(--thc-accent-strong); }
.th-section__more .thc-icon { transition: transform .15s; }
.th-section__more:hover .thc-icon { transform: translateX(3px); }
@media (max-width: 560px) {
	.th-section__head { flex-wrap: wrap; align-items: center; }
}

/* ---------- Grid & cards ---------- */
.th-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}
@media (max-width: 960px) { .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 600px) { .th-grid { grid-template-columns: minmax(0, 1fr); } }

.th-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--thc-bg);
	border: 1px solid var(--thc-border);
	border-radius: var(--thc-radius);
	overflow: hidden;
	transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s;
}
.th-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--thc-shadow-lg);
	border-color: transparent;
}
.th-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--thc-surface);
}
.th-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.th-card:hover .th-card__media img,
.th-card:hover .th-cover__icon { transform: scale(1.06); }
.th-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 20px;
	flex: 1;
}
.th-card__top { display: flex; align-items: center; gap: 8px; }
.th-card__title {
	font-size: 1.15rem;
	line-height: 1.3;
	margin: 0;
}
.th-card__title a { color: var(--thc-text); text-decoration: none; }
.th-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.th-card__title a:hover { color: var(--thc-text); }
.th-card:hover .th-card__title a { text-decoration: underline; text-decoration-color: var(--thc-accent); text-decoration-thickness: 2px; }
.th-card__excerpt {
	color: var(--thc-muted);
	font-size: .95rem;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.th-card__meta {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	gap: 16px;
	color: var(--thc-muted);
	font-size: .8125rem;
}
.th-card__meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Large card */
.th-card--large .th-card__media { aspect-ratio: 16 / 9; }
.th-card--large .th-card__body { padding: 22px 26px 26px; }
.th-card--large .th-card__title { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.025em; }
.th-card--large .th-card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 2; }

/* Compact card (horizontal) */
.th-card--compact { flex-direction: row; align-items: stretch; }
.th-card--compact .th-card__media { width: 38%; flex-shrink: 0; aspect-ratio: auto; min-height: 120px; }
.th-card--compact .th-card__body { padding: 14px 16px; gap: 8px; }
.th-card--compact .th-card__title { font-size: 1.02rem; }
.th-card--compact .th-cover__label { display: none; }
.th-card--compact .th-cover .thc-icon { width: 44px; height: 44px; }

/* Featured layout */
.th-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 28px;
}
.th-featured__main .th-card { height: 100%; }
.th-featured__side { display: grid; gap: 18px; align-content: start; }
@media (max-width: 960px) {
	.th-featured { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.th-card--compact .th-card__media { width: 34%; }
}

/* ---------- Covers ---------- */
.th-cover {
	--c1: #0f172a;
	--c2: #334155;
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	color: #fff;
	background-color: var(--c1);
	background-image:
		radial-gradient(120% 90% at 85% 15%, rgba(245, 158, 11, .35), transparent 55%),
		var(--th-hex),
		linear-gradient(135deg, var(--c1), var(--c2));
	background-size: auto, 56px 97px, auto;
	overflow: hidden;
}
.th-cover--hero { aspect-ratio: 21 / 9; border-radius: var(--thc-radius); }
@media (max-width: 600px) { .th-cover--hero { aspect-ratio: 16 / 9; } }
.th-cover__icon {
	display: grid;
	place-items: center;
	width: 42%;
	max-width: 168px;
	aspect-ratio: 1 / 1.1547;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: rgba(255, 255, 255, .1);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: var(--thc-accent);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.th-cover--hero .th-cover__icon { max-width: 220px; width: 26%; }
.th-cover__icon .thc-icon { width: 46%; height: auto; stroke-width: 1.4; }
.th-cover__label {
	position: absolute;
	left: 14px;
	bottom: 12px;
	font-size: .7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: rgba(255, 255, 255, .85);
	background: rgba(0, 0, 0, .28);
	padding: 4px 9px;
	border-radius: 999px;
}
.th-cover--hero .th-cover__label { left: 22px; bottom: 20px; font-size: .78rem; }
.th-cover--tv     { --c1: #0b1a3a; --c2: #1d4ed8; }
.th-cover--pc     { --c1: #06202a; --c2: #0e7490; }
.th-cover--audio  { --c1: #2a0a2e; --c2: #be185d; }
.th-cover--music  { --c1: #2b1203; --c2: #b45309; }
.th-cover--gaming { --c1: #160f3b; --c2: #7c3aed; }

/* ---------- Trust strip ---------- */
.th-trust {
	margin-top: clamp(40px, 6vw, 72px);
	background: var(--thc-surface);
	border-block: 1px solid var(--thc-border);
	padding: clamp(32px, 5vw, 52px) 0;
	background-image: var(--th-hex-amber);
	background-size: 56px 97px;
}
.th-trust__title {
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--thc-muted);
	margin-bottom: 22px;
}
.th-trust__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.th-trust__list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--thc-bg);
	border: 1px solid var(--thc-border);
	border-radius: var(--thc-radius);
	padding: 18px;
}
.th-trust__list .thc-icon { color: var(--thc-accent-strong); margin-top: 2px; }
.th-trust__list strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.th-trust__list span { display: block; color: var(--thc-muted); font-size: .9rem; line-height: 1.5; }
@media (max-width: 960px) { .th-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .th-trust__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Archive header ---------- */
.th-archive-head {
	background: var(--thc-surface);
	border-bottom: 1px solid var(--thc-border);
	padding: clamp(28px, 5vw, 52px) 0 clamp(28px, 4vw, 44px);
	background-image: var(--th-hex-amber);
	background-size: 56px 97px;
}
.th-archive-head__row { display: flex; align-items: center; gap: 20px; }
.th-archive-head__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 84px;
	height: 96px;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	color: var(--thc-accent);
	background: linear-gradient(135deg, var(--c1, #0f172a), var(--c2, #334155));
}
.th-archive-head--tv     .th-archive-head__icon { --c1: #0b1a3a; --c2: #1d4ed8; }
.th-archive-head--pc     .th-archive-head__icon { --c1: #06202a; --c2: #0e7490; }
.th-archive-head--audio  .th-archive-head__icon { --c1: #2a0a2e; --c2: #be185d; }
.th-archive-head--music  .th-archive-head__icon { --c1: #2b1203; --c2: #b45309; }
.th-archive-head--gaming .th-archive-head__icon { --c1: #160f3b; --c2: #7c3aed; }
.th-archive-head__title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -.03em; margin: 0 0 6px; }
.th-archive-head__desc { color: var(--thc-muted); max-width: 62ch; font-size: 1.05rem; }
.th-archive-head__desc p { margin: 0; }
.th-archive-head__search { margin-top: 18px; }
@media (max-width: 560px) {
	.th-archive-head__icon { width: 60px; height: 69px; }
	.th-archive-head__icon .thc-icon { width: 28px; height: 28px; }
	.th-archive-head__row { gap: 14px; }
}

.th-empty { color: var(--thc-muted); text-align: center; padding: 40px 0; }

/* Pagination */
.th-pagination { margin-top: 40px; }
.th-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}
.th-pagination a,
.th-pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--thc-border);
	border-radius: 10px;
	text-decoration: none;
	color: var(--thc-text);
	font-weight: 600;
}
.th-pagination a:hover { border-color: var(--thc-accent); }
.th-pagination .current { background: var(--thc-accent); border-color: var(--thc-accent); color: var(--thc-accent-ink); }

/* ---------- Single article ---------- */
.th-article__header { padding: clamp(28px, 5vw, 52px) 0 24px; }
.th-article__kicker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.th-article__title {
	font-size: clamp(2rem, 5vw, 3.15rem);
	letter-spacing: -.035em;
	line-height: 1.08;
	margin-bottom: 16px;
}
.th-article__dek {
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	color: var(--thc-muted);
	line-height: 1.5;
	margin-bottom: 20px;
}
.th-article__cover { margin-bottom: clamp(28px, 5vw, 48px); }
.th-article__cover img { width: 100%; border-radius: var(--thc-radius); display: block; }

.th-article__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, var(--th-narrow));
	gap: 56px;
	justify-content: center;
	align-items: start;
	padding-bottom: 24px;
}
.th-article__layout:has(.th-toc[hidden]) { grid-template-columns: minmax(0, var(--th-narrow)); }
.th-article__content { min-width: 0; }

/* TOC */
.th-toc {
	position: sticky;
	top: 92px;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	font-size: .9rem;
}
.admin-bar .th-toc { top: 124px; }
.th-toc[hidden] { display: none; }
.th-toc details { border: 1px solid var(--thc-border); border-radius: var(--thc-radius); background: var(--thc-surface); }
.th-toc summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	font-weight: 800;
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--thc-muted);
}
.th-toc summary::-webkit-details-marker { display: none; }
.th-toc summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--thc-accent-strong); }
.th-toc details[open] summary::after { content: "–"; }
.th-toc ol { list-style: none; margin: 0; padding: 0 8px 12px; counter-reset: toc; }
.th-toc li a {
	display: block;
	padding: 7px 10px 7px 12px;
	color: var(--thc-muted);
	text-decoration: none;
	line-height: 1.4;
	border-left: 2px solid transparent;
	border-radius: 0 6px 6px 0;
}
.th-toc li a:hover { color: var(--thc-text); background: var(--thc-bg); }
.th-toc li a.is-active { color: var(--thc-text); border-left-color: var(--thc-accent); background: var(--thc-bg); font-weight: 650; }

@media (max-width: 1100px) {
	.th-article__layout { grid-template-columns: minmax(0, var(--th-narrow)); gap: 0; }
	.th-toc { position: static; max-height: none; margin-bottom: 28px; }
}

/* ---------- Entry content ---------- */
.entry-content { font-size: 1.0625rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	letter-spacing: -.025em;
	margin: 2.2em 0 .7em;
	padding-top: .2em;
	scroll-margin-top: 92px;
}
.entry-content h3 {
	font-size: clamp(1.15rem, 2.2vw, 1.3rem);
	margin: 1.8em 0 .55em;
	scroll-margin-top: 92px;
}
.entry-content p,
.entry-content li { color: var(--thc-text); }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--thc-accent); }
.entry-content ol li::marker { color: var(--thc-accent-strong); font-weight: 700; }
.entry-content strong { font-weight: 700; }
.entry-content a { color: var(--th-link); font-weight: 550; }
.entry-content blockquote {
	margin: 1.8em 0;
	padding: 6px 0 6px 22px;
	border-left: 4px solid var(--thc-accent);
	font-size: 1.15rem;
	color: var(--thc-text);
	font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--thc-border); margin: 2.5em 0; }
.entry-content img { border-radius: var(--thc-radius-sm); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { color: var(--thc-muted); font-size: .875rem; margin-top: 8px; }
.entry-content code {
	font-family: var(--thc-mono);
	font-size: .9em;
	background: var(--thc-surface);
	padding: .1em .35em;
	border-radius: 5px;
}

/* Tables (scroll horizontally on small screens) */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8em 0;
	font-size: .95rem;
	border: 1px solid var(--thc-border);
}
@media (max-width: 760px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
.entry-content th,
.entry-content td {
	padding: 11px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--thc-border);
}
.entry-content th {
	background: var(--thc-surface);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .01em;
	white-space: nowrap;
}
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--thc-surface) 50%, transparent); }

/* About recs box */
.th-about-recs {
	display: flex;
	gap: 16px;
	margin-top: 48px;
	padding: 22px 24px;
	border-radius: var(--thc-radius);
	background: var(--thc-surface);
	border: 1px solid var(--thc-border);
}
.th-about-recs__icon { color: var(--thc-accent-strong); flex-shrink: 0; }
.th-about-recs h2 {
	font-size: 1.05rem;
	margin: 0 0 6px;
	padding: 0;
	letter-spacing: 0;
}
.th-about-recs p { margin: 0; color: var(--thc-muted); font-size: .95rem; line-height: 1.6; }

.th-pagelinks { margin-top: 24px; font-weight: 600; }

/* Pages */
.th-page__header { padding: clamp(28px, 5vw, 52px) 0 12px; }
.th-page__title { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.03em; }
.th-page .entry-content { padding-bottom: clamp(48px, 7vw, 88px); }

/* Related */
.th-related { padding-bottom: clamp(48px, 7vw, 88px); }

/* 404 */
.th-404 { text-align: center; padding: clamp(56px, 10vw, 120px) 0; }
.th-404__hex { margin-bottom: 18px; }
.th-404__hex svg { animation: th-spin 14s linear infinite; }
@keyframes th-spin { to { transform: rotate(360deg); } }
.th-404__title { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -.03em; }
.th-404 p { color: var(--thc-muted); }
.th-404__search { display: flex; justify-content: center; margin: 26px 0 26px; }
.th-404__search .th-searchform { width: 100%; }

/* ---------- Footer ---------- */
.th-footer {
	margin-top: 0;
	background: #0b1020;
	color: #c4cad6;
	padding: clamp(44px, 6vw, 72px) 0 28px;
	background-image: var(--th-hex);
	background-size: 56px 97px;
}
.th-section + .th-footer,
.th-main + .th-footer { margin-top: 0; }
.th-footer a { color: #e6e9f0; text-decoration: none; }
.th-footer a:hover { color: var(--thc-accent); }
.th-footer .th-logo { color: #fff; }
.th-footer .th-logo__word span { color: #8b93a7; }
.th-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.th-footer__tagline { margin: 14px 0 0; max-width: 34ch; color: #9aa3b5; }
.th-footer__title {
	color: #fff;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .12em;
	margin-bottom: 14px;
}
.th-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.th-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 22px;
	font-size: .85rem;
	color: #8b93a7;
}
.th-footer__bottom p { margin: 0; }
@media (max-width: 760px) {
	.th-footer__grid { grid-template-columns: 1fr 1fr; }
	.th-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
	.th-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- WP core helpers ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: calc(50% - min(50vw, 600px) + var(--th-gutter)); max-width: none; }
@media (max-width: 1100px) { .alignwide { margin-inline: 0; } }
.wp-caption-text { color: var(--thc-muted); font-size: .875rem; }
.sticky, .bypostauthor { display: block; }
.gallery-caption { color: var(--thc-muted); }
