/**
 * LCT Modules — Announcement banner (front).
 * The banner is moved into Salient's #header-secondary-outer by JS so it
 * belongs to the fixed header: no top offset juggling, no layout gap.
 * @since 2.0.0
 */

#lct-banner {
	width: 100%;
	overflow: hidden;
	max-height: 200px;
	opacity: 1;
	transition:
		max-height .38s cubic-bezier(.4, 0, .2, 1),
		opacity    .28s ease;
}

#lct-banner.lct-banner--hidden {
	max-height: 0 !important;
	opacity: 0;
	pointer-events: none;
}

#lct-banner.lct-banner--no-transition {
	transition: none !important;
}

.lct-banner__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 12px 56px 12px 20px;
	position: relative;
	min-height: 46px;
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lct-banner__message {
	line-height: 1.5;
	color: inherit;
	letter-spacing: 0.01em;
}

.lct-banner__message a {
	color: inherit;
	text-decoration: underline;
}

/* Mirrors the site's .btn1 proportions (flat, radius 10, weight 600) */
.lct-banner__btn {
	padding: 10px 24px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
	display: inline-block;
	line-height: 1.3;
	transition: filter .3s cubic-bezier(.25, 1, .33, 1), transform .1s ease;
}

.lct-banner__btn:hover { filter: brightness(1.06); }
.lct-banner__btn:active { transform: scale(.98); }

.lct-banner__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	color: inherit;
	width: 40px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: .65;
	transition: opacity .18s, background .18s;
	border-radius: 8px;
}

.lct-banner__close:hover,
.lct-banner__close:focus-visible {
	opacity: 1;
	background: rgba(21, 46, 73, 0.08);
}
.lct-banner__close svg { width: 14px; height: 9px; display: block; }

/* Reopen tab — fixed because the banner (and its header slot) is collapsed */
#lct-banner-reopen {
	display: none;
	position: fixed;
	top: 0;
	left: 24px;
	z-index: 1000001;
	background: #fff;
	border: none;
	border-radius: 0 0 8px 8px;
	width: 26px;
	height: 24px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(21, 46, 73, .18);
	opacity: .95;
	transition: opacity .18s, height .18s;
	padding: 0;
}

#lct-banner-reopen:hover { height: 28px; }

#lct-banner-reopen:hover,
#lct-banner-reopen:focus-visible { opacity: 1; }
#lct-banner-reopen svg { width: 14px; height: 9px; display: block; }

.admin-bar #lct-banner-reopen { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar #lct-banner-reopen { top: 46px; }
}

@media screen and (max-width: 600px) {
	.lct-banner__inner {
		gap: 10px;
		padding: 10px 48px 10px 14px;
	}
	.lct-banner__btn { padding: 8px 14px; }
}
