/* ==========================================================================
   Consent banner — bottom bar, never blocks the page, both choices equal weight.
   Loaded only when an analytics tag is configured (inc/consent.php).
   ========================================================================== */

.jyx-consent {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 9000;
	background: var(--c-navy-800);
	border-top: 1px solid var(--c-line-strong);
	box-shadow: 0 -14px 42px rgba(6, 20, 39, .5);
	padding: 18px 0;
	padding-bottom: calc(18px + env(safe-area-inset-bottom));
	transform: translateY(102%);
	transition: transform .34s var(--ease);
}

.jyx-consent[hidden] { display: none; }
.jyx-consent.is-open { transform: none; }

.jyx-consent__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: var(--container-wide);
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 40px);
}

.jyx-consent__title {
	margin: 0 0 4px;
	font-size: var(--fs-base);
	font-weight: var(--fw-semibold);
	color: var(--c-text);
}

.jyx-consent__desc {
	margin: 0;
	max-width: 78ch;
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--c-text-2);
}

.jyx-consent__desc a {
	color: var(--c-cyan);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jyx-consent__actions {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
}

/* Same size, same weight, side by side: accepting must not be easier than declining. */
.jyx-consent__btn { min-width: 132px; }

/* Footer control that reopens the bar. */
.site-footer__consent {
	background: none;
	border: 0;
	padding: 0;
	color: var(--c-text-inv-2);
	font: inherit;
	font-size: var(--fs-xs);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.site-footer__consent:hover { color: var(--c-cyan); }

@media (max-width: 820px) {
	.jyx-consent { padding: 12px 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
	.jyx-consent__inner { flex-direction: column; align-items: stretch; gap: 10px; }
	.jyx-consent__desc { line-height: 1.45; }
	.jyx-consent__actions { width: 100%; }
	.jyx-consent__btn { flex: 1; min-width: 0; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	.jyx-consent { transition: none; }
}

@media print {
	.jyx-consent { display: none !important; }
}
