/* HL2GO — Half-Life lambda orange + live green */
:root {
	--bg: #060a0e;
	--panel: #0c1218;
	--panel-2: #101820;
	--accent: #2ecc71;
	--accent-bright: #58f5a3;
	--lambda: #e8952e;
	--lambda-bright: #f5b041;
	--text: #eef1f5;
	--muted: #8b98a8;
	--nav-h: 72px;
	--font-display: "Orbitron", system-ui, sans-serif;
	--font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	font-family: var(--font-body);
	background-color: var(--bg);
	background-image:
		radial-gradient(ellipse 85% 55% at 50% -15%, rgba(46, 204, 113, 0.11), transparent 62%),
		radial-gradient(ellipse 45% 30% at 85% 20%, rgba(232, 149, 46, 0.07), transparent 55%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.011) 0 2px, transparent 2px 16px);
	background-attachment: fixed;
	color: var(--text);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.nav-links li { list-style: none; }

/* ---------- Nav ---------- */
.nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--nav-h);
	background: rgba(4, 7, 9, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(46, 204, 113, 0.22);
	z-index: 100;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav.scrolled {
	background: rgba(4, 7, 9, 0.97);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.nav-inner {
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	padding: 0 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.brand-wordmark {
	height: 32px;
	width: auto;
	flex-shrink: 0;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
}

.nav-links a {
	position: relative;
	display: block;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.nav-links a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 4px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s ease;
}

.nav-links a:hover { color: var(--accent-bright); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.highlight {
	color: var(--lambda-bright);
}

.nav-links a.highlight::after {
	background: var(--lambda);
}

.nav-links a.highlight:hover { color: #ffd68a; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 8px;
	background: none;
	border: 1px solid rgba(232, 149, 46, 0.45);
	border-radius: 6px;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--lambda-bright);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.nav-links {
		position: fixed;
		top: var(--nav-h);
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: rgba(4, 7, 9, 0.98);
		border-bottom: 1px solid rgba(46, 204, 113, 0.22);
		display: none;
	}
	.nav.open .nav-links { display: flex; }
	.nav-links a {
		padding: 16px 26px;
		border-top: 1px solid rgba(255, 255, 255, 0.05);
	}
	.nav-links a::after { display: none; }
}

/* ---------- Page ---------- */
.page { flex: 1; width: 100%; }
#content { width: 100%; }

.page-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: calc(var(--nav-h) + 44px) 22px 60px;
}

.page-basic h1 {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 900;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.page-basic .body-copy { color: var(--muted); line-height: 1.7; max-width: 48rem; }

/* ---------- Contact form ---------- */
.page-contact .body-copy { margin-bottom: 1.25rem; }
.contact-form {
	display: grid;
	gap: 0.85rem;
	max-width: 32rem;
	margin: 1rem 0 1.5rem;
}
.contact-form label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text);
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(255,255,255,0.12);
	background: var(--panel);
	color: var(--text);
	font: inherit;
	border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 1px solid var(--accent);
	border-color: var(--accent);
}
.contact-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-flash { color: var(--accent-bright); margin: 0.75rem 0; font-weight: 600; }
.contact-error { color: #ff6b6b; margin: 0.75rem 0; font-weight: 600; }
.contact-alt { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.contact-alt a { color: var(--lambda); text-decoration: underline; text-underline-offset: 3px; }
.page-contact .cf-turnstile { margin: 0.25rem 0; }

/* ---------- Hero ---------- */
.hero {
	text-align: center;
	padding: calc(var(--nav-h) + 56px) 22px 56px;
}

.wordmark {
	display: flex;
	justify-content: center;
}

.wordmark-img {
	width: min(300px, 88vw);
	height: auto;
	display: block;
}

.hero-tagline {
	margin-top: 18px;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	font-size: clamp(0.78rem, 2vw, 0.95rem);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	line-height: 1.5;
}

.hero-actions {
	margin-top: 34px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.btn {
	display: inline-block;
	padding: 14px 32px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
	border: none;
	cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: linear-gradient(180deg, var(--accent-bright), var(--accent));
	color: #041510;
}

.btn-primary:hover { box-shadow: 0 6px 26px rgba(46, 204, 113, 0.42); }

.btn-vip {
	background: linear-gradient(180deg, var(--lambda-bright), var(--lambda));
	color: #1a0f00;
}

.btn-vip:hover { box-shadow: 0 6px 26px rgba(232, 149, 46, 0.45); }

.btn-outline {
	position: relative;
	isolation: isolate;
	background: transparent;
	color: var(--accent-bright);
	border: none;
}

/* Full chamfered stroke — clip-path eats normal borders, so paint via layers */
.btn-outline::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: rgba(46, 204, 113, 0.55);
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.btn-outline::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(6, 10, 14, 0.92);
	clip-path: polygon(
		15px 1px,
		calc(100% - 1px) 1px,
		calc(100% - 1px) calc(100% - 15px),
		calc(100% - 15px) calc(100% - 1px),
		1px calc(100% - 1px),
		1px 15px
	);
}

.btn-outline:hover {
	color: #9fffd0;
}

.btn-outline:hover::before {
	background: rgba(88, 245, 163, 0.75);
}

.btn-outline:hover::after {
	background: rgba(12, 22, 18, 0.95);
}

.hero-stats {
	margin-top: 38px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 22px;
	background: rgba(12, 18, 24, 0.85);
	border: 1px solid rgba(46, 204, 113, 0.2);
	border-radius: 6px;
}

.stat-live strong { color: var(--accent-bright); }

.stat strong {
	font-size: 20px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--lambda-bright);
}

.stat .stat-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted);
}

.stat .dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #3ddc68;
	box-shadow: 0 0 9px rgba(61, 220, 104, 0.8);
	animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.stat-value.is-loading,
.is-loading strong { animation: live-pulse 1.2s ease-in-out infinite; color: var(--muted); }

/* ---------- Servers ---------- */
.servers-section {
	padding: 0 22px 64px;
	max-width: 1200px;
	margin: 0 auto;
}

.section-head {
	text-align: center;
	margin-bottom: 24px;
}

.section-head h2 {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3.5vw, 1.9rem);
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.section-head h2 span { color: var(--lambda-bright); }

.section-head p {
	margin-top: 10px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.filters-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.filters {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: min(100%, 920px);
	padding: 5px;
	background: rgba(12, 18, 24, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	gap: 4px;
}

@media (max-width: 720px) {
	.filters {
		border-radius: 12px;
		width: 100%;
	}
}

@media (max-width: 520px) {
	.filters .chip {
		flex: 1 1 calc(50% - 4px);
		min-width: 0;
		white-space: normal;
		line-height: 1.25;
	}
}

.chip {
	padding: 9px 14px;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
	text-align: center;
	color: var(--muted);
	background: transparent;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	white-space: nowrap;
}

.chip:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

.chip.active {
	background: linear-gradient(180deg, var(--lambda-bright), var(--lambda));
	color: #1a0f00;
	box-shadow: 0 2px 12px rgba(232, 149, 46, 0.35);
}

.chip-cs16:not(.active):hover { border-color: rgba(245, 200, 66, 0.45); color: #f5c842; }
.chip-css:not(.active):hover { border-color: rgba(110, 181, 255, 0.45); color: #6eb5ff; }
.chip-hl1:not(.active):hover { border-color: rgba(232, 149, 46, 0.5); color: var(--lambda-bright); }
.chip-kf:not(.active):hover { border-color: rgba(255, 123, 114, 0.45); color: #ff7b72; }

.server-table {
	background: rgba(12, 18, 24, 0.82);
	border: 1px solid rgba(46, 204, 113, 0.18);
	border-radius: 8px;
	overflow: hidden;
}

.server-thead,
.server-row {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(158px, auto) minmax(80px, 1fr) 88px 76px;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
}

.server-thead {
	height: 42px;
	background: rgba(255, 255, 255, 0.025);
	border-bottom: 1px solid rgba(232, 149, 46, 0.2);
}

.server-th {
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.server-th.sortable {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	text-align: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.14s ease;
}

.server-th.sortable:hover,
.server-th.sortable:focus-visible {
	color: #c8f5dc;
	outline: none;
}

.server-th.sortable::after {
	content: '↕';
	font-size: 8px;
	opacity: 0.35;
	letter-spacing: 0;
}

.server-th.sortable.is-sorted-asc::after {
	content: '↑';
	opacity: 0.9;
	color: var(--accent);
}

.server-th.sortable.is-sorted-desc::after {
	content: '↓';
	opacity: 0.9;
	color: var(--accent);
}

.server-th.num.sortable {
	justify-content: flex-end;
	width: 100%;
}

.server-th.num { text-align: right; }

.server-th.col-connect {
	justify-content: center;
	width: 100%;
	text-align: center;
}

.col-connect { text-align: center; }

.server-row {
	min-height: 62px;
	border-top: 1px solid rgba(255, 255, 255, 0.055);
	transition: background 0.14s ease, opacity 0.14s ease;
}

.server-row:first-of-type { border-top: 0; }
.server-row:hover { background: rgba(46, 204, 113, 0.045); }
.server-row.offline { opacity: 0.55; }
.server-row.is-loading { opacity: 0.72; }
.server-row.is-hidden { display: none; }

.cell-name {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.row-name {
	font-size: 14px;
	font-weight: 800;
	color: var(--accent-bright);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.server-row:hover .row-name { color: #9fffd0; }

.row-address-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.row-address-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	min-width: 0;
}

.row-address {
	font-size: 11px;
	font-weight: 600;
	font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
	letter-spacing: 0.02em;
	color: var(--lambda-bright);
	opacity: 0.92;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.row-status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 8.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.row-status .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #3ddc68;
	box-shadow: 0 0 6px rgba(61, 220, 104, 0.8);
}

.server-row.offline .row-status .dot {
	background: #e2564c;
	box-shadow: 0 0 6px rgba(226, 86, 76, 0.8);
}

.badge-game {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 4px 8px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
	border-radius: 3px;
	white-space: nowrap;
	line-height: 1.25;
}

.row-address-ip {
	display: block;
	margin-top: 1px;
	font-size: 10px;
	opacity: 0.65;
}

.cell-game {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}

.badge-region {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 2px 8px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	border-radius: 3px;
	white-space: nowrap;
	color: #94a3b8;
	background: rgba(100, 116, 139, 0.12);
	border: 1px solid rgba(100, 116, 139, 0.28);
}

.badge-region-us {
	color: #93c5fd;
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.35);
}

.badge-region-eu {
	color: #6ee7b7;
	background: rgba(52, 211, 153, 0.1);
	border-color: rgba(52, 211, 153, 0.3);
}

.col-game { text-align: center; justify-content: center; }

.server-th.col-game.sortable { width: 100%; }

.badge-cs16 { color: #f5c842; background: rgba(245, 200, 66, 0.1); border: 1px solid rgba(245, 200, 66, 0.35); }
.badge-css { color: #6eb5ff; background: rgba(110, 181, 255, 0.1); border: 1px solid rgba(110, 181, 255, 0.35); }
.badge-hl1 { color: var(--lambda-bright); background: rgba(232, 149, 46, 0.1); border: 1px solid rgba(232, 149, 46, 0.4); }
.badge-kf { color: #ff7b72; background: rgba(255, 123, 114, 0.1); border: 1px solid rgba(255, 123, 114, 0.35); }

.cell-map {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cell-players-wrap { min-width: 0; }

.cell-players {
	display: block;
	text-align: right;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	margin-bottom: 4px;
}

.cell-players b {
	font-size: 15px;
	font-weight: 800;
	color: var(--accent-bright);
}

.player-bar {
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.player-bar-fill {
	height: 100%;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent), var(--accent-bright));
	transition: width 0.35s ease;
}

.server-row.offline .player-bar-fill {
	background: linear-gradient(90deg, #555, #777);
}

.cell-connect {
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-connect {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	padding: 5px 10px;
	font-family: inherit;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-bright);
	background: rgba(46, 204, 113, 0.1);
	border: 1px solid rgba(46, 204, 113, 0.38);
	border-radius: 4px;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-connect:hover {
	background: rgba(46, 204, 113, 0.2);
	border-color: rgba(46, 204, 113, 0.58);
	color: #b8ffd4;
}

.copy-btn {
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	padding: 7px 10px;
	border-radius: 4px;
	border: 1px solid rgba(232, 149, 46, 0.35);
	background: rgba(232, 149, 46, 0.08);
	color: var(--lambda-bright);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
	background: rgba(232, 149, 46, 0.16);
	border-color: rgba(232, 149, 46, 0.55);
}

.copy-btn-inline {
	flex-shrink: 0;
	padding: 2px 7px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.is-loading [data-server-field="map"],
.is-loading .cell-players b {
	animation: live-pulse 1.2s ease-in-out infinite;
	color: var(--muted);
}

.table-foot {
	margin-top: 12px;
	text-align: center;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (max-width: 900px) {
	.server-thead { display: none; }
	.server-row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto auto auto;
		gap: 8px 12px;
		padding: 14px 16px;
	}
	.cell-name { grid-column: 1 / -1; grid-row: 1; }
	.cell-game {
		grid-column: 1;
		grid-row: 2;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
	}
	.cell-game .badge-game { flex-shrink: 0; }
	.cell-map {
		grid-column: 1;
		grid-row: 3;
		font-size: 11px;
		text-align: left;
	}
	.cell-players-wrap {
		grid-column: 2;
		grid-row: 2 / 4;
		align-self: center;
	}
	.cell-connect {
		grid-column: 1 / -1;
		grid-row: 4;
		justify-content: stretch;
	}
	.btn-connect { flex: 1; max-width: none; }
}

/* ---------- News ---------- */
.news-section {
	padding: 0 22px 48px;
	max-width: 1200px;
	margin: 0 auto;
}

.page-news {
	padding: calc(var(--nav-h) + 28px) 22px 48px;
	max-width: 1200px;
	margin: 0 auto;
}

.page-news-article {
	padding: calc(var(--nav-h) + 28px) 22px 72px;
	max-width: 760px;
	margin: 0 auto;
}

.news-section { padding-top: 8px; }

.news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 720px) {
	.news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.news-grid-home { grid-template-columns: repeat(3, 1fr); }
	.page-news .news-grid-list { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.page-news .section-head { margin-bottom: 32px; }

.news-count {
	margin-top: 8px !important;
	font-size: 11px !important;
	color: var(--accent-bright) !important;
	letter-spacing: 0.12em !important;
}

.news-grid-list {
	align-items: stretch;
}

.news-grid-list .news-card {
	display: flex;
	height: 100%;
}

.news-card-img.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(135deg, rgba(232, 149, 46, 0.12), rgba(46, 204, 113, 0.08)),
		var(--panel-2);
}

.news-card-placeholder {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.35);
}

.page-news .news-card-title {
	font-size: 14px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}

.page-news .news-card-excerpt {
	-webkit-line-clamp: 2;
	flex: 1;
}

.page-news .news-card-body {
	padding: 14px 16px 16px;
	gap: 6px;
}

.news-pager {
	margin-top: 28px;
	display: flex;
	justify-content: center;
}

.news-pager ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.news-pager li {
	list-style: none;
}

.news-pager a,
.news-pager strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 6px;
	border: 1px solid rgba(46, 204, 113, 0.2);
	background: rgba(12, 18, 24, 0.8);
	color: var(--text);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.news-pager a:hover {
	border-color: rgba(46, 204, 113, 0.45);
	background: rgba(46, 204, 113, 0.08);
	color: var(--accent-bright);
}

.news-pager strong {
	border-color: rgba(46, 204, 113, 0.5);
	background: rgba(46, 204, 113, 0.15);
	color: var(--accent-bright);
}

@media (max-width: 719px) {
	.page-news .news-grid-list { gap: 16px; }
}

.news-card {
	background: rgba(12, 18, 24, 0.82);
	border: 1px solid rgba(46, 204, 113, 0.16);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
	border-color: rgba(46, 204, 113, 0.38);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.news-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.news-card-img {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--panel-2);
}

.news-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.news-card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.news-meta {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lambda-bright);
}

.news-author::before {
	content: "·";
	margin: 0 6px;
	opacity: 0.6;
}

.news-card-title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--text);
}

.news-card-excerpt {
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-read-more {
	margin-top: auto;
	padding-top: 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-bright);
}

.news-more,
.news-back,
.news-back-top {
	margin-top: 20px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
}

.news-back-top {
	text-align: left;
	margin-top: 0;
	margin-bottom: 16px;
}

.news-more a,
.news-back a,
.news-back-top a {
	color: var(--accent-bright);
}

.news-empty {
	color: var(--muted);
	text-align: center;
	padding: 32px 0;
}

.news-article-panel {
	background: rgba(12, 18, 24, 0.88);
	border: 1px solid rgba(46, 204, 113, 0.18);
	border-radius: 12px;
	padding: 28px 28px 36px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
	.news-article-panel { padding: 20px 18px 28px; }
}

.news-article-head {
	margin-bottom: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(46, 204, 113, 0.12);
}

.news-published {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--accent-bright);
}

.news-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-bottom: 12px;
}

.news-article-meta time,
.news-article-meta .news-author {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lambda-bright);
}

.news-article-meta .news-author::before {
	content: "·";
	margin-right: 10px;
	opacity: 0.55;
}

.news-article-head h1 {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.8vw, 1.75rem);
	line-height: 1.3;
	font-weight: 900;
	color: var(--text);
}

.news-lead {
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	font-weight: 500;
}

.news-featured {
	margin: 0 0 28px;
}

.news-featured-btn {
	display: block;
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	padding: 0;
	border: 1px solid rgba(46, 204, 113, 0.2);
	border-radius: 10px;
	overflow: hidden;
	background: var(--panel-2);
	cursor: zoom-in;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.news-featured-btn:hover {
	border-color: rgba(46, 204, 113, 0.45);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.news-featured-btn img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: cover;
}

.news-featured-hint {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(4, 7, 9, 0.78);
	border-radius: 6px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.news-featured-btn:hover .news-featured-hint,
.news-featured-btn:focus-visible .news-featured-hint {
	opacity: 1;
}

.news-body {
	color: var(--text);
	line-height: 1.75;
}

.news-body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 16px 0;
	border: 1px solid rgba(46, 204, 113, 0.12);
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.news-body img:hover {
	border-color: rgba(46, 204, 113, 0.35);
	opacity: 0.92;
}

/* Lightbox */
body.news-lightbox-open { overflow: hidden; }

.news-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.news-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 4, 6, 0.92);
	backdrop-filter: blur(6px);
	cursor: zoom-out;
}

.news-lightbox-frame {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: min(96vw, 1100px);
	max-height: 90vh;
}

.news-lightbox-frame img {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.news-lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background: rgba(4, 7, 9, 0.85);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.news-lightbox-close:hover {
	background: rgba(46, 204, 113, 0.2);
	border-color: rgba(46, 204, 113, 0.45);
}

.news-body p { margin: 0 0 1em; }

.news-body h2,
.news-body h3 {
	font-family: var(--font-display);
	margin: 1.4em 0 0.6em;
	color: var(--accent-bright);
}

.news-body a {
	color: var(--lambda-bright);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.news-body ul,
.news-body ol {
	margin: 0 0 1em 1.25em;
}

/* WP-imported tables: override inline light backgrounds on dark theme */
.news-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 14px;
}

.news-body table th,
.news-body table td {
	padding: 10px 12px !important;
	text-align: left;
	vertical-align: top;
	border: 1px solid rgba(46, 204, 113, 0.18) !important;
	color: var(--text) !important;
	background: rgba(12, 18, 24, 0.92) !important;
}

.news-body table thead th {
	background: rgba(34, 113, 177, 0.88) !important;
	color: #fff !important;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 12px;
}

.news-body table tbody tr:nth-child(even) td {
	background: rgba(16, 24, 32, 0.98) !important;
}

.news-body table tbody tr:nth-child(odd) td {
	background: rgba(10, 14, 20, 0.88) !important;
}

.news-body table strong {
	color: var(--accent-bright);
}

.news-body code {
	font-family: ui-monospace, "Cascadia Code", monospace;
	font-size: 0.9em;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(46, 204, 113, 0.12);
	color: var(--accent-bright);
}

.nav-links a.active {
	color: var(--accent-bright);
}

/* ---------- Links ---------- */
.links-section {
	padding: 0 22px 72px;
	max-width: 1200px;
	margin: 0 auto;
}

.links-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 640px) {
	.links-grid { grid-template-columns: repeat(4, 1fr); }
}

.link-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 22px 16px;
	text-align: center;
	background: rgba(12, 18, 24, 0.72);
	border: 1px solid rgba(46, 204, 113, 0.16);
	border-radius: 8px;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.link-tile:hover {
	border-color: rgba(46, 204, 113, 0.4);
	background: rgba(46, 204, 113, 0.06);
	transform: translateY(-2px);
}

.link-tile strong {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-bright);
}

.link-tile-vip {
	border-color: rgba(232, 149, 46, 0.28);
}

.link-tile-vip strong { color: var(--lambda-bright); }

.link-tile-vip:hover {
	border-color: rgba(232, 149, 46, 0.5);
	background: rgba(232, 149, 46, 0.08);
}

.link-tile span {
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
	border-top: 1px solid rgba(232, 149, 46, 0.16);
	background: rgba(4, 7, 9, 0.65);
	padding: 28px 22px;
	text-align: center;
	margin-top: auto;
}

.footer .site {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.12em;
	color: var(--lambda-bright);
	text-transform: uppercase;
}

.footer .copy {
	margin-top: 6px;
	font-size: 12px;
	color: var(--muted);
}
