/*
 * HAVEN consent banner and the footer button that reopens it.
 *
 * Deliberately quiet: it uses the existing HAVEN tokens, sits at the bottom of
 * the viewport, does not cover the page, and does not block interaction — the
 * site keeps working while the choice is open. Nothing here changes any
 * existing HAVEN layout or component.
 */

.hvn-consent {
	position: fixed;
	z-index: 9000;
	inset-inline: 0;
	inset-block-end: 0;
	background: var(--hvn-navy, #223A57);
	color: var(--hvn-text-invert, #FDFDFD);
	border-block-start: 3px solid var(--hvn-gold, #C9973F);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .28);
	font-family: var(--hvn-font, system-ui, sans-serif);
}

.hvn-consent__inner {
	max-inline-size: var(--hvn-wrap, 1200px);
	margin-inline: auto;
	padding: 1rem 1.25rem 1.15rem;
	display: grid;
	gap: .45rem;
}

.hvn-consent__title {
	margin: 0;
	font-size: var(--hvn-fs-label, .95rem);
	font-weight: 600;
	letter-spacing: .01em;
}

.hvn-consent__body {
	margin: 0;
	font-size: var(--hvn-fs-small, .875rem);
	line-height: var(--hvn-lh-body, 1.55);
	color: var(--hvn-text-invert-soft, rgba(253, 253, 253, .82));
	max-inline-size: 78ch;
}

.hvn-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-block-start: .35rem;
}

.hvn-consent__btn {
	font: inherit;
	font-size: var(--hvn-fs-small, .875rem);
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--hvn-radius, 6px);
	padding: .6rem 1.15rem;
	min-block-size: var(--hvn-tap, 44px);
	border: 2px solid transparent;
	transition: background var(--hvn-dur, .18s) var(--hvn-ease, ease),
		color var(--hvn-dur, .18s) var(--hvn-ease, ease);
}

.hvn-consent__btn--accept {
	background: var(--hvn-gold, #C9973F);
	color: var(--hvn-navy-deep, #182A3F);
}

.hvn-consent__btn--accept:hover {
	background: var(--hvn-gold-lift, #D8A94E);
}

.hvn-consent__btn--reject {
	background: transparent;
	color: var(--hvn-text-invert, #FDFDFD);
	border-color: rgba(253, 253, 253, .55);
}

.hvn-consent__btn--reject:hover {
	background: rgba(253, 253, 253, .10);
}

.hvn-consent__btn:focus-visible,
.hvn-consent-manage:focus-visible {
	outline: 3px solid var(--hvn-gold, #C9973F);
	outline-offset: 2px;
}

/* The reopen control. Small, muted, out of the way. */
.hvn-consent-manage {
	position: fixed;
	z-index: 8900;
	inset-block-end: .5rem;
	inset-inline-start: .5rem;
	font: inherit;
	font-size: .78rem;
	cursor: pointer;
	padding: .35rem .7rem;
	border-radius: var(--hvn-radius, 6px);
	border: 1px solid var(--hvn-border, rgba(34, 58, 87, .25));
	background: var(--hvn-surface, #FFFFFF);
	color: var(--hvn-text-secondary, #5A6B80);
	opacity: .78;
}

.hvn-consent-manage:hover {
	opacity: 1;
}

@media (max-width: 640px) {
	.hvn-consent__inner { padding: .9rem 1rem 1rem; }
	.hvn-consent__btn { flex: 1 1 auto; }
	.hvn-consent-manage { inset-block-end: .35rem; font-size: .72rem; }
}

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