/**
 * WTHM Dark Premium — Main Stylesheet
 * All assets local. No external dependencies.
 */

/* ── Typography: system stack (Inter loads async via fonts.css) ── */
:root {
	/* Backgrounds */
	--bg-main: #09090B;
	--bg-secondary: #111113;
	--bg-card: #18181B;
	--bg-elevated: #202024;
	--bg-input: #111113;

	/* Text */
	--text-primary: #F8FAFC;
	--text-secondary: #CBD5E1;
	--text-muted: #94A3B8;
	--text-disabled: #64748B;

	/* Borders */
	--border-default: #2A2A2E;
	--border-hover: #3F3F46;
	--border-focus: #FF8A00;

	/* Orange — Primary Brand */
	--orange: #FF8A00;
	--orange-hover: #FF9F2D;
	--orange-soft: rgba(255, 138, 0, 0.10);
	--orange-border: rgba(255, 138, 0, 0.35);
	--orange-text: #FFB35C;

	/* Green — Success */
	--green: #22C55E;
	--green-hover: #34D66F;
	--green-soft: rgba(34, 197, 94, 0.10);
	--green-border: rgba(34, 197, 94, 0.35);
	--green-text: #4ADE80;

	/* Yellow — Warning / Premium */
	--yellow: #FACC15;
	--yellow-hover: #FDE047;
	--yellow-soft: rgba(250, 204, 21, 0.10);
	--yellow-border: rgba(250, 204, 21, 0.35);
	--yellow-text: #FDE68A;

	/* Error */
	--error: #F87171;
	--error-soft: rgba(248, 113, 113, 0.10);
	--error-border: rgba(248, 113, 113, 0.35);

	/* Info */
	--info: #38BDF8;
	--info-soft: rgba(56, 189, 248, 0.10);
	--info-border: rgba(56, 189, 248, 0.35);

	/* Layout */
	--header-height: 72px;
	--ticker-height: 44px;
	--top-offset: calc(var(--header-height) + var(--ticker-height));
	--container-max: 1200px;
	--container-narrow: 760px;
	--container-article: 1100px;
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

	/* Typography */
	--font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-family);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-main);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a:not(.wthm-ticker__link):not(.wthm-nav__link):not(.wthm-card__link):not(.wthm-carousel-card__link):not(.wthm-btn) {
	color: var(--orange-text);
	text-decoration: none;
	transition: color var(--transition);
}

a:not(.wthm-ticker__link):not(.wthm-nav__link):not(.wthm-card__link):not(.wthm-carousel-card__link):not(.wthm-btn):hover {
	color: var(--orange-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--border-focus);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Skip Link ── */
.wthm-skip-link {
	position: absolute;
	top: -100%;
	left: 16px;
	z-index: 10000;
	padding: 12px 20px;
	background: var(--orange);
	color: var(--bg-main);
	font-weight: 600;
	border-radius: var(--radius-sm);
	transition: top var(--transition);
}

.wthm-skip-link:focus {
	top: 16px;
}

/* ── Container ── */
.wthm-container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 20px;
}

.wthm-container--narrow {
	max-width: var(--container-narrow);
}

.wthm-container--article {
	max-width: var(--container-article);
}

/* ── Utility Text Colors ── */
.wthm-text--orange { color: var(--orange); }
.wthm-text--green  { color: var(--green-text); }
.wthm-text--yellow { color: var(--yellow-text); }

/* ── Buttons ── */
.wthm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
	text-decoration: none;
	white-space: nowrap;
}

.wthm-btn:active {
	transform: scale(0.97);
}

.wthm-btn--primary {
	background: var(--orange);
	color: var(--bg-main);
}

.wthm-btn--primary,
a.wthm-btn--primary,
a.wthm-btn--primary:hover,
a.wthm-btn--primary:focus-visible {
	color: var(--bg-main);
}

.wthm-btn--primary .wthm-icon {
	color: var(--bg-main);
}

.wthm-btn--primary:hover {
	background: var(--orange-hover);
	color: var(--bg-main);
	box-shadow: 0 4px 20px rgba(255, 138, 0, 0.25);
}

.wthm-btn--secondary {
	background: var(--bg-card);
	color: var(--text-primary);
	border-color: var(--border-default);
}

.wthm-btn--secondary:hover {
	background: var(--bg-elevated);
	border-color: var(--border-hover);
	color: var(--text-primary);
}

.wthm-btn--success {
	background: var(--green);
	color: var(--bg-main);
}

.wthm-btn--success:hover {
	background: var(--green-hover);
	color: var(--bg-main);
}

.wthm-btn--premium {
	background: var(--yellow);
	color: var(--bg-main);
}

.wthm-btn--premium:hover {
	background: var(--yellow-hover);
	color: var(--bg-main);
}

/* ── Header / Navbar ── */
.wthm-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--header-height);
	background: rgba(9, 9, 11, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border-default);
	transition: box-shadow var(--transition), background var(--transition);
}

.wthm-header.is-scrolled {
	background: rgba(9, 9, 11, 0.95);
	box-shadow: var(--shadow-md);
}

.wthm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--container-max);
	height: 100%;
	margin-inline: auto;
	padding-inline: 20px;
	gap: 24px;
}

.wthm-header__brand {
	flex-shrink: 0;
}

.wthm-header__logo,
.wthm-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text-primary);
	font-size: 1.125rem;
	font-weight: 700;
	text-decoration: none;
	transition: color var(--transition);
}

.wthm-header__logo:hover,
.wthm-header .custom-logo-link:hover {
	color: var(--orange);
}

.wthm-header__logo-mark {
	display: flex;
	align-items: center;
	color: var(--orange);
}

.wthm-header .custom-logo {
	max-height: 40px;
	width: auto;
}

/* Navigation */
.wthm-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
}

.wthm-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: var(--radius-md);
	border: 1px solid transparent;
	transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
	text-decoration: none;
}

.wthm-nav__icon {
	display: flex;
	align-items: center;
	color: var(--text-muted);
	transition: color var(--transition), transform var(--transition);
}

.wthm-nav__link:hover {
	color: var(--text-primary);
	background: var(--bg-card);
	border-color: var(--border-default);
}

.wthm-nav__link:hover .wthm-nav__icon {
	color: var(--orange);
	transform: translateY(-1px);
}

.wthm-nav__item.is-active .wthm-nav__link,
.wthm-nav__link[aria-current="page"] {
	color: var(--orange-text);
	background: var(--orange-soft);
	border-color: var(--orange-border);
}

.wthm-nav__item.is-active .wthm-nav__icon {
	color: var(--orange);
}

/* Mobile toggle */
.wthm-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition);
}

.wthm-header__toggle:hover {
	background: var(--bg-elevated);
	border-color: var(--border-hover);
}

.wthm-header__toggle-icon--open {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wthm-header__toggle-icon--close {
	display: none;
	align-items: center;
	justify-content: center;
}

.wthm-header__toggle[aria-expanded="true"] .wthm-header__toggle-icon--open {
	display: none;
}

.wthm-header__toggle[aria-expanded="true"] .wthm-header__toggle-icon--close {
	display: flex;
}

/* ── Post titles ticker (under navbar, LTR) ── */
.wthm-ticker {
	position: fixed;
	top: var(--header-height);
	left: 0;
	right: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	height: var(--ticker-height);
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-default);
	overflow: hidden;
}

.wthm-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 0 16px;
	height: 100%;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--orange-text);
	background: var(--orange-soft);
	border-right: 1px solid var(--orange-border);
}

.wthm-ticker__label .wthm-icon {
	color: var(--orange);
}

.wthm-ticker__viewport {
	flex: 1;
	overflow: hidden;
	min-width: 0;
	mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.wthm-ticker__track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: max-content;
	animation: wthm-ticker-rtl 60s linear infinite;
	will-change: transform;
}

.wthm-ticker:hover .wthm-ticker__track {
	animation-play-state: paused;
}

.wthm-ticker__group {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
}

.wthm-ticker__group--clone {
	pointer-events: none;
	user-select: none;
}

#post-ticker .wthm-ticker__link,
#post-ticker .wthm-ticker__link:link,
#post-ticker .wthm-ticker__link:visited,
#post-ticker .wthm-ticker__link:active {
	color: var(--text-secondary) !important;
	text-decoration: none !important;
	-webkit-text-fill-color: currentColor;
}

#post-ticker .wthm-ticker__link:hover,
#post-ticker .wthm-ticker__link:focus-visible {
	color: var(--orange-text) !important;
}

.wthm-ticker__link {
	display: inline-block;
	padding: 0 4px;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: var(--ticker-height);
	color: var(--text-secondary);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--transition);
}

.wthm-ticker a.wthm-ticker__link:visited {
	color: var(--text-secondary);
}

.wthm-ticker__link:hover,
.wthm-ticker__link:focus-visible {
	color: var(--orange-text);
}

.wthm-ticker__sep {
	display: inline-block;
	padding: 0 14px;
	font-size: 0.5rem;
	color: var(--orange);
	opacity: 0.7;
	vertical-align: middle;
}

@keyframes wthm-ticker-rtl {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* ── Main Content Offset ── */
.wthm-main {
	padding-top: var(--top-offset);
	min-height: 100vh;
}

/* ── Hero Section ── */
.wthm-hero {
	position: relative;
	padding: 80px 20px 100px;
	overflow: hidden;
	background: var(--bg-main);
}

.wthm-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	max-width: var(--container-max);
	margin-inline: auto;
}

.wthm-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	margin-bottom: 24px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--yellow-text);
	background: var(--yellow-soft);
	border: 1px solid var(--yellow-border);
	border-radius: 100px;
}

.wthm-hero__title {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--text-primary);
	margin-bottom: 20px;
}

.wthm-hero__subtitle {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--text-secondary);
	max-width: 520px;
	margin-bottom: 32px;
	line-height: 1.7;
}

.wthm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 48px;
}

.wthm-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.wthm-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wthm-hero__stat-value {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
}

.wthm-hero__stat-label {
	font-size: 0.8125rem;
	color: var(--text-muted);
	font-weight: 500;
}

/* Hero visual */
.wthm-hero__visual {
	position: relative;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wthm-hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.35;
}

.wthm-hero__orb--orange {
	width: 200px;
	height: 200px;
	background: var(--orange);
	top: 10%;
	right: 20%;
}

.wthm-hero__orb--green {
	width: 160px;
	height: 160px;
	background: var(--green);
	bottom: 15%;
	left: 10%;
}

.wthm-hero__orb--yellow {
	width: 120px;
	height: 120px;
	background: var(--yellow);
	top: 40%;
	left: 40%;
}

.wthm-hero__card-preview {
	position: relative;
	z-index: 1;
	width: 320px;
	padding: 32px;
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.wthm-hero__preview-line {
	height: 12px;
	background: var(--bg-elevated);
	border-radius: 6px;
	margin-bottom: 16px;
	width: 80%;
}

.wthm-hero__preview-line--long { width: 100%; }
.wthm-hero__preview-line--short { width: 50%; margin-bottom: 24px; }

.wthm-hero__preview-btn {
	width: 120px;
	height: 36px;
	background: var(--orange);
	border-radius: var(--radius-sm);
}

/* ── Section Headers ── */
.wthm-section-header {
	text-align: center;
	margin-bottom: 40px;
}

.wthm-section-header__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.wthm-section-header__desc {
	font-size: 1rem;
	color: var(--text-muted);
}

/* ── Search Section ── */
.wthm-search-section {
	padding: 80px 0;
	background: var(--bg-secondary);
}

.wthm-search {
	position: relative;
	max-width: 640px;
	margin-inline: auto;
}

.wthm-search__field {
	position: relative;
	display: flex;
	align-items: center;
}

.wthm-search__icon {
	position: absolute;
	left: 18px;
	display: flex;
	color: var(--text-muted);
	pointer-events: none;
}

.wthm-search__input {
	width: 100%;
	padding: 16px 20px 16px 52px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--text-primary);
	background: var(--bg-input);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	transition: border-color var(--transition), box-shadow var(--transition);
}

.wthm-search__input::placeholder {
	color: var(--text-disabled);
}

.wthm-search__input:hover {
	border-color: var(--border-hover);
}

.wthm-search__input:focus {
	border-color: var(--border-focus);
	box-shadow: 0 0 0 3px var(--orange-soft);
	outline: none;
}

.wthm-search__status {
	position: absolute;
	right: 16px;
	font-size: 0.75rem;
	color: var(--text-muted);
}

.wthm-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 100;
	max-height: 400px;
	overflow-y: auto;
	background: var(--bg-elevated);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
}

.wthm-search__result {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	color: var(--text-primary);
	border-bottom: 1px solid var(--border-default);
	transition: background var(--transition);
	text-decoration: none;
}

.wthm-search__result:last-child {
	border-bottom: none;
}

.wthm-search__result:hover,
.wthm-search__result.is-focused {
	background: var(--bg-card);
	color: var(--text-primary);
}

.wthm-search__result-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 40px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-card);
}

.wthm-search__result-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wthm-search__result-body {
	flex: 1;
	min-width: 0;
}

.wthm-search__result-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wthm-search__result-excerpt {
	font-size: 0.8125rem;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wthm-search__empty {
	padding: 24px;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.9375rem;
}

/* ── Carousel ── */
.wthm-carousel-section {
	padding: 80px 0;
	overflow: hidden;
}

.wthm-carousel-section--related {
	background: var(--bg-secondary);
	padding-bottom: 100px;
}

.wthm-carousel {
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.wthm-carousel__track {
	display: flex;
	width: max-content;
	animation: wthm-carousel-scroll 40s linear infinite;
}

.wthm-carousel:hover .wthm-carousel__track {
	animation-play-state: paused;
}

.wthm-carousel__group {
	display: flex;
	gap: 20px;
	padding: 8px 10px;
}

.wthm-carousel__group--clone {
	pointer-events: none;
	user-select: none;
}

@keyframes wthm-carousel-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.wthm-carousel-card {
	flex-shrink: 0;
	width: 300px;
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.wthm-carousel-card:hover {
	border-color: var(--orange-border);
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.wthm-carousel-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.wthm-carousel-card__media {
	height: 180px;
	overflow: hidden;
	background: var(--bg-secondary);
}

.wthm-carousel-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.wthm-carousel-card:hover .wthm-carousel-card__image {
	transform: scale(1.05);
}

.wthm-carousel-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--text-disabled);
}

.wthm-carousel-card__body {
	padding: 16px 18px;
}

.wthm-carousel-card__date {
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-bottom: 6px;
	display: block;
}

.wthm-carousel-card__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Posts Grid ── */
.wthm-posts-section {
	padding: 80px 0 100px;
}

.wthm-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.wthm-card {
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.wthm-card:hover {
	border-color: var(--border-hover);
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}

.wthm-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.wthm-card__media {
	position: relative;
	height: 220px;
	overflow: hidden;
	background: var(--bg-secondary);
}

.wthm-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.wthm-card:hover .wthm-card__image {
	transform: scale(1.06);
}

.wthm-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--text-disabled);
}

.wthm-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 4px 10px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bg-main);
	background: var(--orange);
	border-radius: 100px;
}

.wthm-card__body {
	padding: 22px 24px 26px;
}

.wthm-card__meta {
	margin-bottom: 10px;
}

.wthm-card__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.wthm-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.35;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--transition);
}

.wthm-card:hover .wthm-card__title {
	color: var(--orange-text);
}

.wthm-card__excerpt {
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wthm-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--orange);
	transition: gap var(--transition);
}

.wthm-card:hover .wthm-card__read-more {
	gap: 10px;
}

/* ── Pagination ── */
.wthm-pagination {
	margin-top: 48px;
}

.wthm-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.wthm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.wthm-pagination .page-numbers:hover {
	background: var(--bg-elevated);
	border-color: var(--border-hover);
	color: var(--text-primary);
}

.wthm-pagination .page-numbers.current {
	background: var(--orange);
	border-color: var(--orange);
	color: var(--bg-main);
}

/* ── Empty State ── */
.wthm-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-muted);
}

.wthm-empty .wthm-icon {
	margin-inline: auto;
	margin-bottom: 16px;
	color: var(--text-disabled);
}

/* ── Page Header ── */
.wthm-page-header {
	padding: 60px 0 20px;
	text-align: center;
}

.wthm-page-header__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	color: var(--text-primary);
}

.wthm-page-header__desc {
	margin-top: 12px;
	color: var(--text-muted);
}

/* ── Single Post ── */
.wthm-single__header {
	padding: 60px 0 32px;
	text-align: center;
}

.wthm-single__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.wthm-single__date,
.wthm-single__category {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.wthm-single__category {
	color: var(--green-text);
}

.wthm-single__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--text-primary);
	letter-spacing: -0.02em;
}

.wthm-single__excerpt {
	margin-top: 16px;
	font-size: 1.125rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin-inline: auto;
}

.wthm-single__featured {
	margin-bottom: 40px;
}

.wthm-single__figure {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border-default);
}

.wthm-single__image {
	width: 100%;
	height: auto;
}

.wthm-single__content {
	padding-bottom: 0;
}

.wthm-single__body {
	padding-bottom: 60px;
}

/* Single post layout with sidebar */
.wthm-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 48px;
	align-items: start;
}

.wthm-single-layout__main {
	min-width: 0;
}

/* Sidebar & TOC */
.wthm-single-sidebar {
	position: sticky;
	top: calc(var(--header-height) + 24px);
	align-self: start;
	max-height: calc(100vh - var(--header-height) - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--border-hover) transparent;
}

.wthm-single-sidebar::-webkit-scrollbar {
	width: 4px;
}

.wthm-single-sidebar::-webkit-scrollbar-thumb {
	background: var(--border-hover);
	border-radius: 4px;
}

.wthm-toc {
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.wthm-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border-default);
}

.wthm-toc__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-primary);
}

.wthm-toc__heading .wthm-icon {
	color: var(--orange);
}

.wthm-toc__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	font-family: inherit;
	color: var(--text-muted);
	background: transparent;
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition);
}

.wthm-toc__toggle:hover {
	background: var(--bg-card);
	border-color: var(--border-hover);
}

.wthm-toc__toggle-chevron {
	display: flex;
	margin-left: auto;
	color: var(--text-muted);
	transition: transform var(--transition);
}

.wthm-toc__toggle[aria-expanded="false"] .wthm-toc__toggle-chevron {
	transform: rotate(-90deg);
}

.wthm-toc__nav {
	padding: 18px;
}

.wthm-toc__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wthm-toc__item--h3 {
	padding-left: 14px;
}

.wthm-toc__link {
	display: block;
	padding: 8px 12px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	border-left: 2px solid transparent;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
	line-height: 1.4;
}

.wthm-toc__link:hover {
	color: var(--text-primary);
	background: var(--bg-elevated);
}

.wthm-toc__link.is-active {
	color: var(--orange-text);
	font-weight: 600;
	border-left-color: var(--orange);
	background: var(--orange-soft);
	box-shadow: inset 3px 0 0 var(--orange);
}

.wthm-toc__item.is-active > .wthm-toc__link {
	color: var(--orange-text);
}

.wthm-toc__item--h2 > .wthm-toc__link.is-active {
	font-weight: 700;
}

.wthm-toc__item--h2 > .wthm-toc__link {
	font-weight: 600;
	color: var(--text-secondary);
}

.wthm-toc__empty {
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.wthm-sidebar-widget {
	margin-top: 16px;
	padding: 18px;
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
}

.wthm-sidebar-widget__title {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-primary);
	margin-bottom: 12px;
}

.wthm-sidebar-widget__links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wthm-sidebar-widget__links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: color var(--transition), background var(--transition);
}

.wthm-sidebar-widget__links a:hover {
	color: var(--orange-text);
	background: var(--orange-soft);
}

.wthm-sidebar-widget__links .wthm-icon {
	color: var(--orange);
	flex-shrink: 0;
}

/* Related posts section */
.wthm-related {
	padding: 80px 0 100px;
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-default);
}

.wthm-related .wthm-carousel {
	margin-bottom: 0;
}

.wthm-carousel--related .wthm-carousel__track {
	animation-duration: 50s;
}

.wthm-prose h2[id],
.wthm-prose h3[id] {
	scroll-margin-top: calc(var(--top-offset) + 24px);
}

/* Prose — single post typography */
.wthm-prose {
	color: var(--text-secondary);
	font-size: 1.0625rem;
	line-height: 1.8;
}

.wthm-prose h2,
.wthm-prose h3 {
	color: var(--orange);
	font-weight: 700;
	line-height: 1.3;
	margin-top: 2em;
	margin-bottom: 0.75em;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.wthm-prose h2.is-in-view,
.wthm-prose h3.is-in-view {
	color: var(--orange-text);
	outline: none;
}

.wthm-prose h2 {
	font-size: 1.75rem;
}

.wthm-prose h3 {
	font-size: 1.375rem;
}

.wthm-prose h4 {
	color: var(--text-primary);
	font-size: 1.125rem;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

.wthm-prose p {
	margin-bottom: 1.25em;
}

.wthm-prose a {
	color: var(--orange-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wthm-prose a:hover {
	color: var(--orange-hover);
}

.wthm-prose ul,
.wthm-prose ol {
	margin-bottom: 1.25em;
	padding-left: 1.5em;
}

.wthm-prose li {
	margin-bottom: 0.5em;
}

.wthm-prose blockquote {
	margin: 1.5em 0;
	padding: 20px 24px;
	border-left: 4px solid var(--orange);
	background: var(--orange-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-secondary);
	font-style: italic;
}

.wthm-prose img {
	border-radius: var(--radius-md);
	margin: 1.5em 0;
}

.wthm-prose code {
	padding: 2px 6px;
	font-size: 0.875em;
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: 4px;
	color: var(--yellow-text);
}

.wthm-prose pre {
	margin: 1.5em 0;
	padding: 20px;
	background: var(--bg-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	overflow-x: auto;
}

.wthm-prose pre code {
	padding: 0;
	background: none;
	border: none;
	color: var(--text-primary);
}

.wthm-single__tags {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--border-default);
	font-size: 0.875rem;
	color: var(--text-muted);
}

.wthm-single__tags a {
	color: var(--orange-text);
}

/* ── Footer ── */
.wthm-footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-default);
	padding: 60px 0 0;
}

.wthm-footer__inner {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 20px;
}

.wthm-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
}

.wthm-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
	text-decoration: none;
	margin-bottom: 12px;
	transition: color var(--transition);
}

.wthm-footer__logo:hover {
	color: var(--orange);
}

.wthm-footer__logo-mark {
	color: var(--orange);
	display: flex;
}

.wthm-footer__tagline {
	font-size: 0.9375rem;
	color: var(--text-muted);
	line-height: 1.6;
	max-width: 320px;
}

.wthm-footer__heading {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 16px;
}

.wthm-footer__links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wthm-footer__links a {
	color: var(--text-secondary);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(203, 213, 225, 0.45);
	transition: color var(--transition), text-decoration-color var(--transition);
}

.wthm-footer__links a:hover,
.wthm-footer__links a:focus-visible {
	color: var(--orange-text);
	text-decoration-color: var(--orange);
}

.wthm-footer__text {
	font-size: 0.9375rem;
	color: var(--text-muted);
	margin-bottom: 16px;
	line-height: 1.6;
}

.wthm-footer__cta {
	font-size: 0.875rem;
}

.wthm-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 24px 0;
	border-top: 1px solid var(--border-default);
}

.wthm-footer__copy {
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.wthm-footer__copy a {
	color: var(--text-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--orange-border);
	transition: color var(--transition), text-decoration-color var(--transition);
}

.wthm-footer__copy a:hover,
.wthm-footer__copy a:focus-visible {
	color: var(--orange-text);
	text-decoration-color: var(--orange);
}

.wthm-footer__credit {
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.wthm-footer__accent {
	color: var(--orange-text);
	font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.wthm-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.wthm-single-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.wthm-single-sidebar {
		position: relative;
		top: 0;
		max-height: none;
		order: -1;
	}

	.wthm-toc__toggle {
		display: flex;
	}

	.wthm-toc:has(.wthm-toc__toggle[aria-expanded="false"]) .wthm-toc__nav {
		display: none;
	}

	.wthm-hero__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.wthm-hero__visual {
		height: 300px;
	}

	.wthm-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	:root {
		--header-height: 64px;
		--ticker-height: 40px;
	}

	.wthm-header__toggle {
		display: flex;
	}

	.wthm-header__inner .wthm-nav {
		display: none;
		position: fixed;
		top: var(--top-offset);
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		background: rgba(9, 9, 11, 0.98);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		padding: 24px 20px;
		overflow-y: auto;
	}

	.wthm-header__inner .wthm-nav.is-open {
		display: block;
	}

	.wthm-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.wthm-nav__link {
		padding: 14px 18px;
		font-size: 1rem;
	}

	.wthm-posts-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.wthm-related {
		padding: 60px 0;
	}

	.wthm-hero {
		padding: 48px 20px 60px;
	}

	.wthm-hero__stats {
		gap: 20px;
	}

	.wthm-hero__card-preview {
		width: 260px;
		padding: 24px;
	}

	.wthm-carousel-card {
		width: 260px;
	}

	.wthm-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.wthm-footer__bottom {
		flex-direction: column;
		text-align: center;
	}

	.wthm-search-section,
	.wthm-carousel-section,
	.wthm-posts-section {
		padding: 60px 0;
	}
}

@media (max-width: 480px) {
	.wthm-hero__actions {
		flex-direction: column;
	}

	.wthm-hero__actions .wthm-btn {
		width: 100%;
		justify-content: center;
	}

	.wthm-card__media {
		height: 200px;
	}
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.wthm-carousel__track {
		animation: none;
	}

	.wthm-ticker__track {
		animation: none;
	}
}

/* ── Print ── */
@media print {
	.wthm-header,
	.wthm-ticker,
	.wthm-footer,
	.wthm-carousel-section,
	.wthm-search-section,
	.wthm-skip-link {
		display: none;
	}

	.wthm-main {
		padding-top: 0;
	}

	body {
		background: #fff;
		color: #000;
	}
}
