/*
Theme Name: WoT Mods Planet
Theme URI: https://wotmodsplanet.com
Author: Ignas
Description: Armory-manifest theme for a World of Tanks mods aggregator. Mod custom post type, automatic source importer, patch compatibility badges.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: wotmodsplanet
*/

:root {
	--bg: #11140f;
	--bg-deep: #0a0c08;
	--surface: #181d13;
	--surface-2: #20271a;
	--line: #2d3524;
	--line-strong: #46523a;
	--text: #e9e6d4;
	--muted: #99a189;
	--amber: #ff9416;
	--amber-soft: #ffb45c;
	--amber-deep: #c96f05;
	--ready: #8fc93a;
	--ready-dim: #5d8c1f;
	--danger: #e5484d;
	--mono: "Share Tech Mono", monospace;
	--display: "Black Ops One", "Barlow Condensed", sans-serif;
	--cond: "Barlow Condensed", sans-serif;
	--body: "Barlow", sans-serif;
	--wrap: min(1240px, calc(100% - 40px));
	--radius: 2px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background:
		radial-gradient(1100px 480px at 75% -120px, rgba(255, 148, 22, 0.07), transparent 70%),
		var(--bg);
}

/* film grain */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9000;
	pointer-events: none;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.mobile-menu-open {
	overflow: hidden;
}

a {
	color: var(--amber-soft);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--amber);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

::selection {
	background: var(--amber);
	color: var(--bg-deep);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	word-wrap: normal !important;
}

.wrap {
	width: var(--wrap);
	margin: 0 auto;
}

/* ---------------------------------------------------------------------------
 * Shared bits
 * ------------------------------------------------------------------------ */

.hazard {
	height: 6px;
	background: repeating-linear-gradient(
		-45deg,
		var(--amber) 0 14px,
		var(--bg-deep) 14px 28px
	);
}

.btn {
	display: inline-block;
	font-family: var(--cond);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 12px 26px;
	border: 1px solid var(--amber);
	background: var(--amber);
	color: var(--bg-deep);
	cursor: pointer;
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover,
.btn:focus {
	background: var(--amber-soft);
	color: var(--bg-deep);
	transform: translateY(-2px);
}

.btn--ghost {
	background: transparent;
	color: var(--amber);
}

.btn--ghost:hover,
.btn--ghost:focus {
	background: rgba(255, 148, 22, 0.12);
	color: var(--amber-soft);
}

.btn--block {
	display: block;
	width: 100%;
	text-align: center;
}

/* stamped compatibility seals */
.stamp {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 3px 9px;
	border: 2px solid currentColor;
	outline: 1px solid currentColor;
	outline-offset: 2px;
	transform: rotate(-3deg);
	background: rgba(10, 12, 8, 0.82);
	white-space: nowrap;
}

.stamp--ready {
	color: var(--ready);
}

.stamp--stale {
	color: var(--amber);
}

.stamp--unknown {
	color: var(--muted);
}

.chip {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--amber-soft);
	border: 1px solid var(--line-strong);
	background: var(--surface-2);
	padding: 2px 9px;
}

a.chip:hover {
	border-color: var(--amber);
	color: var(--amber);
}

/* section heads */
.sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 56px 0 22px;
	padding-top: 14px;
	border-top: 1px solid var(--line-strong);
	position: relative;
}

.sec-head::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 64px;
	height: 3px;
	background: var(--amber);
}

.sec-head h2 {
	margin: 0;
	font-family: var(--cond);
	font-weight: 700;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sec-head h2 .tick {
	color: var(--amber);
}

.sec-head .all-link {
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.sec-head .all-link:hover {
	color: var(--amber);
}

/* ---------------------------------------------------------------------------
 * Top HUD strip
 * ------------------------------------------------------------------------ */

.site-hud {
	background: var(--bg-deep);
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.site-hud .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 7px 0;
}

.site-hud .hud-item b {
	color: var(--amber);
	font-weight: 400;
}

.site-hud .hud-blink {
	color: var(--ready);
	animation: hud-blink 2.4s step-end infinite;
}

@keyframes hud-blink {
	0%, 60% { opacity: 1; }
	61%, 100% { opacity: 0.25; }
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 800;
	background: rgba(17, 20, 15, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line-strong);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 72px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.site-brand img {
	max-height: 48px;
	width: auto;
}

.site-title {
	margin: 0;
	font-family: var(--display);
	font-size: 1.45rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.site-title a {
	color: var(--text);
}

.site-title .accent {
	color: var(--amber);
}

.site-nav {
	margin-left: auto;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.site-nav a {
	display: block;
	font-family: var(--cond);
	font-weight: 600;
	font-size: 1.02rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text);
	padding: 26px 14px;
	border-bottom: 3px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav li.current-menu-item > a,
.site-nav a:hover {
	color: var(--amber);
	border-bottom-color: var(--amber);
}

.header-search {
	flex-shrink: 0;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: 1px solid var(--line-strong);
	color: var(--text);
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 9px 14px;
	cursor: pointer;
}

.nav-toggle:hover {
	border-color: var(--amber);
	color: var(--amber);
}

/* search form */
.search-form {
	display: flex;
	border: 1px solid var(--line-strong);
	background: var(--bg-deep);
}

.search-form input[type="search"] {
	background: transparent;
	border: 0;
	color: var(--text);
	font-family: var(--mono);
	font-size: 0.82rem;
	padding: 9px 12px;
	width: 170px;
	outline: none;
}

.search-form input[type="search"]::placeholder {
	color: var(--muted);
}

.search-form button {
	background: var(--surface-2);
	border: 0;
	border-left: 1px solid var(--line-strong);
	color: var(--amber);
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0 14px;
	cursor: pointer;
}

.search-form button:hover {
	background: var(--amber);
	color: var(--bg-deep);
}

/* ---------------------------------------------------------------------------
 * Hero (front page)
 * ------------------------------------------------------------------------ */

.hero {
	position: relative;
	border-bottom: 1px solid var(--line-strong);
	background-image:
		linear-gradient(rgba(143, 201, 58, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143, 201, 58, 0.045) 1px, transparent 1px);
	background-size: 34px 34px;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(720px 360px at 18% 30%, rgba(255, 148, 22, 0.1), transparent 70%);
	pointer-events: none;
}

.hero .wrap {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
	gap: 48px;
	align-items: center;
	padding: 72px 0 80px;
}

.hero-kicker {
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ready);
	margin: 0 0 18px;
}

.hero h1 {
	margin: 0 0 18px;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.1rem, 5vw, 3.6rem);
	line-height: 1.06;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.hero h1 .accent {
	color: var(--amber);
}

.hero-sub {
	max-width: 54ch;
	color: var(--muted);
	font-size: 1.07rem;
	margin: 0 0 30px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* patch readout panel */
.patch-panel {
	border: 1px solid var(--line-strong);
	background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	font-family: var(--mono);
	position: relative;
}

.patch-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--bg-deep) 14px 28px);
}

.patch-panel-inner {
	padding: 30px 28px 24px;
}

.patch-label {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 6px;
}

.patch-version {
	font-family: var(--display);
	font-size: clamp(2.4rem, 4vw, 3.2rem);
	line-height: 1;
	color: var(--amber);
	margin: 0 0 22px;
	text-shadow: 0 0 24px rgba(255, 148, 22, 0.35);
}

.patch-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px dashed var(--line-strong);
}

.patch-stats li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 9px 0;
	border-bottom: 1px dashed var(--line);
}

.patch-stats li b {
	color: var(--text);
	font-weight: 400;
}

/* ---------------------------------------------------------------------------
 * Mod cards grid
 * ------------------------------------------------------------------------ */

.mod-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	margin: 0 0 8px;
}

.mod-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	animation: rise 0.5s ease backwards;
}

.mod-grid .mod-card:nth-child(2)  { animation-delay: 0.05s; }
.mod-grid .mod-card:nth-child(3)  { animation-delay: 0.1s; }
.mod-grid .mod-card:nth-child(4)  { animation-delay: 0.15s; }
.mod-grid .mod-card:nth-child(5)  { animation-delay: 0.2s; }
.mod-grid .mod-card:nth-child(6)  { animation-delay: 0.25s; }
.mod-grid .mod-card:nth-child(n+7) { animation-delay: 0.3s; }

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* targeting brackets */
.mod-card::before,
.mod-card::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
	pointer-events: none;
	z-index: 2;
}

.mod-card::before {
	top: -2px;
	left: -2px;
	border-right: 0;
	border-bottom: 0;
}

.mod-card::after {
	bottom: -2px;
	right: -2px;
	border-left: 0;
	border-top: 0;
}

.mod-card:hover {
	transform: translateY(-4px);
	border-color: var(--line-strong);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.mod-card:hover::before,
.mod-card:hover::after {
	border-color: var(--amber);
}

.mod-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background:
		linear-gradient(160deg, var(--surface-2), var(--bg-deep)),
		var(--bg-deep);
	overflow: hidden;
}

.mod-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.92);
	transition: transform 0.35s ease;
}

.mod-card:hover .mod-card-thumb img {
	transform: scale(1.04);
}

.mod-card-thumb .stamp {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}

.mod-card-thumb .thumb-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--display);
	font-size: 2rem;
	color: var(--line-strong);
	letter-spacing: 0.1em;
}

.mod-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
	flex-grow: 1;
}

.mod-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mod-card-title {
	margin: 0;
	font-family: var(--cond);
	font-weight: 700;
	font-size: 1.22rem;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mod-card-title a {
	color: var(--text);
}

.mod-card-title a:hover {
	color: var(--amber);
}

.mod-card-meta {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	border-top: 1px dashed var(--line);
	padding-top: 11px;
}

.mod-card-meta .gv {
	color: var(--amber-soft);
}

/* ---------------------------------------------------------------------------
 * Archive layout + filter bar
 * ------------------------------------------------------------------------ */

.page-head {
	padding: 44px 0 8px;
}

.page-head .crumb {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 10px;
}

.page-head h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.page-head h1 .accent {
	color: var(--amber);
}

.page-head .term-desc {
	color: var(--muted);
	max-width: 70ch;
	margin: 12px 0 0;
}

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 26px 0 30px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.filter-bar .filter-label {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: 6px;
}

.filter-bar .chip.is-active {
	background: var(--amber);
	border-color: var(--amber);
	color: var(--bg-deep);
}

.filter-bar .filter-sep {
	width: 1px;
	align-self: stretch;
	background: var(--line-strong);
	margin: 0 8px;
}

/* pagination */
.pagination {
	display: flex;
	justify-content: center;
	margin: 40px 0 0;
}

.pagination .nav-links {
	display: flex;
	gap: 6px;
}

.pagination .page-numbers {
	font-family: var(--mono);
	font-size: 0.82rem;
	min-width: 40px;
	text-align: center;
	padding: 9px 12px;
	border: 1px solid var(--line-strong);
	color: var(--text);
	background: var(--surface);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--amber);
	border-color: var(--amber);
	color: var(--bg-deep);
}

/* ---------------------------------------------------------------------------
 * Single mod — dossier layout
 * ------------------------------------------------------------------------ */

.mod-single .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 40px;
	align-items: start;
	padding: 44px 0 70px;
}

.mod-single-head {
	margin-bottom: 24px;
}

.mod-single-head .mod-card-cats {
	margin-bottom: 14px;
}

.mod-single-head h1 {
	margin: 0 0 14px;
	font-family: var(--cond);
	font-weight: 700;
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mod-single-head .mod-byline {
	font-family: var(--mono);
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.mod-single-thumb {
	border: 1px solid var(--line-strong);
	margin-bottom: 28px;
	position: relative;
}

.mod-single-thumb .stamp {
	position: absolute;
	top: 16px;
	right: 16px;
}

/* entry content */
.entry-content {
	font-size: 1.04rem;
	color: #d4d2c2;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--cond);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
	margin: 1.8em 0 0.6em;
}

.entry-content h2 {
	font-size: 1.5rem;
	border-bottom: 1px solid var(--line-strong);
	padding-bottom: 8px;
}

.entry-content h3 {
	font-size: 1.25rem;
}

.entry-content img {
	border: 1px solid var(--line-strong);
	margin: 18px 0;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: var(--amber-deep);
	text-underline-offset: 3px;
}

.entry-content blockquote {
	margin: 1.4em 0;
	padding: 14px 20px;
	border-left: 3px solid var(--amber);
	background: var(--surface);
	color: var(--muted);
}

.entry-content code,
.entry-content pre {
	font-family: var(--mono);
	background: var(--bg-deep);
	border: 1px solid var(--line);
}

.entry-content code {
	padding: 1px 6px;
	font-size: 0.88em;
}

.entry-content pre {
	padding: 16px;
	overflow-x: auto;
}

.entry-content ul li::marker {
	color: var(--amber);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}

.entry-content table th,
.entry-content table td {
	border: 1px solid var(--line-strong);
	padding: 8px 12px;
	text-align: left;
}

.entry-content table th {
	background: var(--surface-2);
	font-family: var(--cond);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* imported galleries: compact grid instead of stacked full-width images */
.entry-content .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
	margin: 18px 0;
}

.entry-content .gallery br {
	display: none;
}

.entry-content .gallery .gallery-item {
	margin: 0;
	width: auto !important;
	float: none;
}

.entry-content .gallery .gallery-icon {
	margin: 0;
}

.entry-content .gallery img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border: 1px solid var(--line-strong);
	margin: 0;
	cursor: zoom-in;
}

.entry-content .gallery .gallery-caption {
	margin: 4px 0 0;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

/* "Responsive Lightbox" style galleries (rl-gallery-link thumbnails
   separated by <br>) — flow as tiles instead of one per line */
.entry-content a.rl-gallery-link,
.entry-content a[data-rel^="lightbox"] {
	display: inline-block;
	margin: 0 8px 8px 0;
	vertical-align: top;
}

.entry-content a.rl-gallery-link + br,
.entry-content a[data-rel^="lightbox"] + br {
	display: none;
}

.entry-content a.rl-gallery-link img,
.entry-content a[data-rel^="lightbox"] img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border: 1px solid var(--line-strong);
	margin: 0;
	cursor: zoom-in;
}

/* modern browsers: upgrade the tile flow to a proper grid */
.entry-content p:has(> a.rl-gallery-link),
.entry-content p:has(> a[data-rel^="lightbox"]) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.entry-content p:has(> a.rl-gallery-link) a,
.entry-content p:has(> a[data-rel^="lightbox"]) a {
	margin: 0;
}

.entry-content p:has(> a.rl-gallery-link) img,
.entry-content p:has(> a[data-rel^="lightbox"]) img {
	width: 100%;
	height: 140px;
}

/* star-rating plugin markup leaking in from source sites */
.entry-content .kk-star-ratings,
.entry-content .kksr-stars,
.entry-content .kksr-legend,
.entry-content [class*="kksr-"] {
	display: none !important;
}

/* dossier sidebar */
.mod-side {
	position: sticky;
	top: 96px;
}

.mod-dossier {
	border: 1px solid var(--line-strong);
	background: var(--surface);
}

.mod-side-widgets .mod-widget {
	margin-top: 22px;
	border: 1px solid var(--line);
	background: var(--surface);
	padding: 18px 20px;
}

.mod-side-widgets .widget-title {
	margin: 0 0 12px;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--amber);
}

.mod-side-widgets .mod-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mod-side-widgets .mod-widget li {
	padding: 5px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 0.92rem;
}

.mod-side-widgets .mod-widget li:last-child {
	border-bottom: 0;
}

.mod-side-widgets .mod-widget a {
	color: var(--muted);
}

.mod-side-widgets .mod-widget a:hover {
	color: var(--amber);
}

.mod-dossier-head {
	padding: 14px 20px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line-strong);
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--amber);
}

.spec-list {
	list-style: none;
	margin: 0;
	padding: 8px 20px 14px;
}

.spec-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 0.86rem;
}

.spec-list li:last-child {
	border-bottom: 0;
}

.spec-list .k {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	flex-shrink: 0;
}

.spec-list .v {
	text-align: right;
	color: var(--text);
	overflow-wrap: anywhere;
}

.mod-dossier-actions {
	padding: 16px 20px 20px;
	border-top: 1px solid var(--line-strong);
	display: grid;
	gap: 10px;
}

.attribution {
	margin: 36px 0 0;
	padding: 16px 20px;
	border: 1px dashed var(--line-strong);
	background: var(--surface);
	font-size: 0.9rem;
	color: var(--muted);
}

.attribution b {
	color: var(--text);
}

/* related */
.related-mods {
	padding-bottom: 70px;
}

/* ---------------------------------------------------------------------------
 * News / blog posts
 * ------------------------------------------------------------------------ */

.news-list {
	display: grid;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	margin-bottom: 8px;
}

.news-row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	background: var(--surface);
	padding: 18px 22px;
	transition: background 0.15s ease;
}

.news-row:hover {
	background: var(--surface-2);
}

.news-row time {
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.news-row h3 {
	margin: 0;
	font-family: var(--cond);
	font-weight: 600;
	font-size: 1.18rem;
	letter-spacing: 0.02em;
}

.news-row h3 a {
	color: var(--text);
}

.news-row h3 a:hover {
	color: var(--amber);
}

.news-row p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.single-post-layout {
	max-width: 800px;
	margin: 0 auto;
	padding: 44px 0 70px;
}

.single-post-layout .page-head {
	padding-top: 0;
}

.single-post-layout .post-thumb {
	border: 1px solid var(--line-strong);
	margin: 24px 0;
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */

.site-footer {
	margin-top: 80px;
	border-top: 1px solid var(--line-strong);
	background: var(--bg-deep);
}

.site-footer .hazard {
	opacity: 0.75;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding: 48px 0 40px;
}

.footer-grid h3 {
	margin: 0 0 14px;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--amber);
}

.footer-grid p {
	color: var(--muted);
	font-size: 0.92rem;
	margin: 0;
	max-width: 44ch;
}

.footer-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-grid li {
	padding: 4px 0;
}

.footer-grid a {
	color: var(--muted);
	font-size: 0.94rem;
}

.footer-grid a:hover {
	color: var(--amber);
}

.footer-brand {
	font-family: var(--display);
	font-size: 1.3rem;
	color: var(--text);
	text-transform: uppercase;
	margin: 0 0 12px;
}

.footer-brand .accent {
	color: var(--amber);
}

.footer-widget + .footer-widget {
	margin-top: 26px;
}

.footer-widget .widget-title {
	margin: 0 0 14px;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--amber);
}

.site-footer .colophon {
	border-top: 1px solid var(--line);
	padding: 16px 0;
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------------------------------------------------------------------------
 * 404 / search / misc
 * ------------------------------------------------------------------------ */

.big-404 {
	text-align: center;
	padding: 90px 0;
}

.big-404 h1 {
	font-family: var(--display);
	font-size: clamp(4rem, 12vw, 9rem);
	margin: 0;
	color: var(--line-strong);
	text-shadow: 0 0 40px rgba(255, 148, 22, 0.15);
}

.big-404 p {
	color: var(--muted);
	margin: 6px 0 28px;
	font-family: var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

.no-results {
	padding: 50px 0 70px;
	color: var(--muted);
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------ */

@media (max-width: 1020px) {
	.hero .wrap {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 56px 0;
	}

	.mod-single .wrap {
		grid-template-columns: 1fr;
	}

	.mod-side {
		position: static;
		order: -1;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 820px) {
	.site-hud .hud-tagline {
		display: none;
	}

	.nav-toggle {
		display: block;
	}

	.header-search {
		display: none;
	}

	.site-nav {
		display: none;
		/* absolute, not fixed: backdrop-filter on the sticky header makes
		   the header the containing block for fixed descendants, which
		   collapses a viewport-inset menu to a sliver */
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: calc(100vh - 72px);
		background: var(--bg-deep);
		border-top: 1px solid var(--line-strong);
		z-index: 900;
		padding: 24px;
		overflow-y: auto;
	}

	body.mobile-menu-open .site-nav {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.site-nav a {
		padding: 16px 8px;
		border-bottom: 1px solid var(--line);
		font-size: 1.2rem;
	}

	.news-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

@media (max-width: 560px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.mod-grid {
		grid-template-columns: 1fr;
	}

	.filter-bar .filter-sep {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * Contact form (lazy loaded)
 * ------------------------------------------------------------------------ */

.contact-loader {
	margin-top: 32px;
}

.contact-hint {
	margin: 12px 0 0;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.contact-form {
	margin-top: 24px;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	padding: 26px 28px 28px;
}

.contact-form p {
	margin: 0 0 18px;
}

.contact-form label {
	display: block;
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	background: var(--bg-deep);
	border: 1px solid var(--line-strong);
	color: var(--text);
	font-family: var(--body);
	font-size: 0.98rem;
	padding: 11px 13px;
	outline: none;
	transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--amber);
}

.contact-form textarea {
	resize: vertical;
	min-height: 140px;
}

/* honeypot — visually removed, still in the DOM for bots */
.contact-form .contact-extra {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-status {
	display: inline-block;
	margin-left: 14px;
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	color: var(--ready);
}

/* ---------------------------------------------------------------------------
 * Image lightbox
 * ------------------------------------------------------------------------ */

body.wmp-lightbox-open {
	overflow: hidden;
}

.wmp-zoomable {
	cursor: zoom-in;
}

.wmp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: rgba(10, 12, 8, 0.93);
	backdrop-filter: blur(7px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wmp-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.wmp-lightbox figure {
	margin: 0;
	position: relative;
	max-width: min(1100px, 100%);
}

.wmp-lightbox figure::before,
.wmp-lightbox figure::after {
	content: "";
	position: absolute;
	width: 26px;
	height: 26px;
	border: 3px solid var(--amber);
	pointer-events: none;
}

.wmp-lightbox figure::before {
	top: -10px;
	left: -10px;
	border-right: 0;
	border-bottom: 0;
}

.wmp-lightbox figure::after {
	bottom: 26px;
	right: -10px;
	border-left: 0;
	border-top: 0;
}

.wmp-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	border: 1px solid var(--line-strong);
	background: var(--bg-deep);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.wmp-lightbox figcaption {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	min-height: 1em;
}

.wmp-lb-count {
	color: var(--amber);
	white-space: nowrap;
}

.wmp-lb-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: var(--surface-2);
	border: 1px solid var(--line-strong);
	color: var(--text);
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 9px 14px;
	cursor: pointer;
}

.wmp-lb-close:hover {
	border-color: var(--amber);
	color: var(--amber);
}

.wmp-lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 64px;
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--surface-2);
	border: 1px solid var(--line-strong);
	color: var(--amber);
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
}

.wmp-lightbox.has-nav .wmp-lb-nav {
	display: flex;
}

.wmp-lb-prev {
	left: 18px;
}

.wmp-lb-next {
	right: 18px;
}

.wmp-lb-nav:hover {
	background: var(--amber);
	color: var(--bg-deep);
}

@media (max-width: 560px) {
	.wmp-lb-nav {
		width: 42px;
		height: 52px;
	}

	.wmp-lightbox {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}
