/* CIRES Announcement Banner — sitewide top bar promoting the survey.
   Self-contained (like cires-survey's own CSS): hardcoded brand hex rather
   than relying on the theme stylesheet's --cires-* variables, since this
   loads on every page regardless of load order. */

:root {
	--cires-banner-height: 44px;
}

.cires-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001; /* just above .site-header's 1000; below any modal's 10000 */
	height: var(--cires-banner-height);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 0 44px; /* room for the close button on the right without overlapping centered text */
	background: #003975;
	color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
}

.cires-banner__message {
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cires-banner__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 14px;
	border: 1px solid #ffffff;
	border-radius: 999px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
}

.cires-banner__cta:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.cires-banner__close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	appearance: none;
	border: none;
	background: transparent;
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.85;
}

.cires-banner__close:hover {
	opacity: 1;
}

/* ─── Push the fixed header + page content down while the banner shows ─── */

body.has-cires-banner .site-header {
	top: var(--cires-banner-height);
}

body.has-cires-banner .site-main {
	padding-top: calc(var(--cires-header-height) + var(--cires-banner-height));
}

/* The theme zeroes .site-main's padding-top on the homepage for its
   full-bleed hero (style.css: ".home .site-main { padding-top: 0; }") — with
   the banner showing, it still needs the banner's own height so the hero
   doesn't start underneath it. */
body.has-cires-banner.home .site-main {
	padding-top: var(--cires-banner-height);
}

@media (max-width: 48em) {
	:root {
		--cires-banner-height: 40px;
	}
	.cires-banner {
		gap: 10px;
		padding: 0 40px;
		font-size: 12px;
	}
	.cires-banner__message {
		max-width: 55vw;
	}
	.cires-banner__cta {
		height: 24px;
		padding: 0 10px;
		font-size: 12px;
	}
}
