/* EWARNET header + footer — compact, minimal, gaming.
   Loaded site-wide. Variables are self-contained so this works
   on Elementor pages too. */

:root {
	--ew-h-ink: #0C1119;
	--ew-h-panel: #141B29;
	--ew-h-line: #26324a;
	--ew-h-gold: #E8B94A;
	--ew-h-tx: #E9ECF3;
	--ew-h-tx2: #95A0B8;
	--ew-h-tx3: #5F6B84;
	--ew-h-live: #4ADE80;
	--ew-hd-h: 58px;
}

.ew-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--ew-h-gold);
	color: #12151c;
	padding: 10px 16px;
	font-weight: 600;
	border-radius: 0 0 4px 0;
}
.ew-skip:focus { left: 0; }

/* ================= HEADER ================= */
.ew-hd {
	position: sticky;
	top: 0;
	z-index: 500;
	background: linear-gradient(to bottom, rgba(7, 10, 16, .94), rgba(7, 10, 16, .55) 70%, transparent);
	transition: background .22s ease, box-shadow .22s ease;
}
.ew-hd.is-solid {
	background: rgba(9, 13, 20, .97);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 var(--ew-h-line);
}
.ew-hd-in {
	display: flex;
	align-items: center;
	gap: 26px;
	height: var(--ew-hd-h);
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 4vw;
}

/* brand — the angled mark is the only "gaming" flourish */
.ew-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: 0 0 auto; }
.ew-brand-mark {
	width: 15px;
	height: 15px;
	background: var(--ew-h-gold);
	clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.ew-brand-txt {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .13em;
	color: var(--ew-h-tx);
	line-height: 1;
}
.ew-brand-txt b { color: var(--ew-h-gold); font-weight: 700; }

/* nav */
.ew-nav { flex: 1; min-width: 0; }
.ew-nav-list {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ew-nav-list li { position: relative; margin: 0; }
.ew-nav-list > li > a {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--ew-h-tx2);
	text-decoration: none;
	padding: 6px 0;
	white-space: nowrap;
	position: relative;
}
.ew-nav-list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--ew-h-gold);
	transition: right .18s ease;
}
.ew-nav-list > li > a:hover { color: var(--ew-h-tx); }
.ew-nav-list > li > a:hover::after,
.ew-nav-list > li.current-menu-item > a::after { right: 0; }
.ew-nav-list > li.current-menu-item > a { color: var(--ew-h-tx); }

/* submenus */
.ew-nav-list .sub-menu {
	position: absolute;
	top: 100%;
	left: -14px;
	min-width: 190px;
	background: var(--ew-h-panel);
	border: 1px solid var(--ew-h-line);
	border-radius: 5px;
	padding: 6px 0;
	margin: 8px 0 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .16s, transform .16s, visibility .16s;
}
.ew-nav-list > li:hover .sub-menu,
.ew-nav-list > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ew-nav-list .sub-menu a {
	display: block;
	padding: 8px 16px;
	font-size: 13.5px;
	color: var(--ew-h-tx2);
	text-decoration: none;
}
.ew-nav-list .sub-menu a:hover { color: var(--ew-h-gold); background: rgba(232, 185, 74, .06); }

/* actions */
.ew-hd-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ew-ico {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	color: var(--ew-h-tx2);
	cursor: pointer;
	border-radius: 4px;
	text-decoration: none;
}
.ew-ico:hover { color: var(--ew-h-gold); background: rgba(233, 236, 243, .06); }
.ew-login {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--ew-h-tx) !important;
	text-decoration: none;
	border: 1px solid var(--ew-h-line);
	border-radius: 4px;
	padding: 7px 14px;
	white-space: nowrap;
}
.ew-login:hover { border-color: var(--ew-h-gold); color: var(--ew-h-gold) !important; }

/* search drawer */
.ew-search {
	border-top: 1px solid var(--ew-h-line);
	background: rgba(9, 13, 20, .98);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.ew-search[hidden] { display: none; }
.ew-search form {
	display: flex;
	gap: 8px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 4vw;
}
.ew-search input[type="search"] {
	flex: 1;
	background: var(--ew-h-panel);
	border: 1px solid var(--ew-h-line);
	border-radius: 4px;
	padding: 10px 14px;
	color: var(--ew-h-tx);
	font-size: 15px;
}
.ew-search input[type="search"]:focus { outline: none; border-color: var(--ew-h-gold); }
.ew-search button {
	background: var(--ew-h-gold);
	color: #12151c;
	border: 0;
	border-radius: 4px;
	padding: 10px 20px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

/* ================= FOOTER ================= */
.ew-ft {
	background: #090D14;
	border-top: 1px solid var(--ew-h-line);
	margin-top: 40px;
}
.ew-ft-in {
	max-width: 1240px;
	margin: 0 auto;
	padding: 34px 4vw 26px;
	display: flex;
	gap: 46px;
	flex-wrap: wrap;
}
.ew-ft-brand { flex: 1 1 320px; min-width: 0; }
.ew-ft-brand p {
	margin: 12px 0 14px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ew-h-tx3);
	max-width: 46ch;
}
.ew-ft-skaha {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ew-h-gold) !important;
	text-decoration: none;
	border: 1px solid rgba(232, 185, 74, .35);
	border-radius: 4px;
	padding: 8px 14px;
}
.ew-ft-skaha:hover { background: rgba(232, 185, 74, .08); }
.ew-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ew-h-live);
	flex: 0 0 auto;
}

.ew-ft-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.ew-ft-col { min-width: 124px; flex: 0 1 auto; }
.ew-ft-col h3 {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ew-h-tx3);
	margin: 0 0 12px;
}
.ew-ft-col ul { list-style: none; margin: 0; padding: 0; }
.ew-ft-col li { margin: 0 0 8px; }
.ew-ft-col a {
	font-size: 13.5px;
	color: var(--ew-h-tx2);
	text-decoration: none;
}
.ew-ft-col a:hover { color: var(--ew-h-gold); }
.ew-ft-hint {
	margin: 10px 0 0;
	font-size: 10.5px;
	line-height: 1.5;
	color: #3f4a60;
	max-width: 22ch;
}
.ew-ft-hint em { font-style: normal; color: #5F6B84; }

.ew-ft-legal { border-top: 1px solid var(--ew-h-line); }
.ew-ft-legal-in {
	max-width: 1240px;
	margin: 0 auto;
	padding: 16px 4vw;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	align-items: baseline;
	font-size: 11.5px;
	color: var(--ew-h-tx3);
	line-height: 1.55;
}
.ew-ft-credit { flex: 1 1 380px; }

/* ================= MOBILE ================= */
.ew-tabbar { display: none; }

@media (max-width: 860px) {
	:root { --ew-hd-h: 52px; }
	.ew-hd-in { gap: 14px; }
	.ew-nav { display: none; }
	.ew-brand-txt { font-size: 17px; }
	.ew-login { padding: 6px 12px; font-size: 12.5px; }

	.ew-tabbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 600;
		display: flex;
		background: rgba(9, 13, 20, .97);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		border-top: 1px solid var(--ew-h-line);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.ew-tabbar a,
	.ew-tabbar button {
		flex: 1;
		min-width: 0;
		text-align: center;
		padding: 11px 4px;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .07em;
		text-transform: uppercase;
		color: var(--ew-h-tx3);
		text-decoration: none;
		background: none;
		border: 0;
		cursor: pointer;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.ew-tabbar a:active,
	.ew-tabbar button:active { color: var(--ew-h-gold); }
	.ew-tabbar a.is-current { color: var(--ew-h-gold); box-shadow: inset 0 2px 0 var(--ew-h-gold); }

	body.ew-shell { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

	.ew-ft-in { gap: 28px; padding-top: 28px; }
	.ew-ft-cols { gap: 24px 20px; width: 100%; }
	.ew-ft-col { flex: 1 1 28%; min-width: 108px; }
	.ew-ft-legal-in { font-size: 11px; gap: 10px; }
}

@media (max-width: 520px) {
	.ew-ft-col { flex: 1 1 42%; }
	.ew-ft-hint { max-width: none; }
}

@media (max-width: 420px) {
	.ew-tabbar a, .ew-tabbar button { font-size: 10px; letter-spacing: .04em; }
}

@media (prefers-reduced-motion: reduce) {
	.ew-hd, .ew-nav-list > li > a::after, .ew-nav-list .sub-menu { transition: none; }
}
