/* Pro Mech – Conquip Announcement Banner */

.cqb {
	/* Navy is the default scheme: the whole banner in Conquip blue (#01426a) */
	--cqb-bg: #01426a;
	--cqb-fg: #ffffff;
	--cqb-muted: rgba(255, 255, 255, 0.84);
	--cqb-accent: #2096c8;
	--cqb-cta-bg: #01426a;
	--cqb-focus: #ffffff;
	--cqb-pad-left: 50px;     /* Lines the logo up with the Pro Mech logo below */
	--cqb-cta-pad: 88px;      /* Room for the 45° slope before the buttons */
	--cqb-head-font: Montserrat, "Hind", "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--cqb-body-font: "PT Sans", "Hind", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Below the site's sticky header, which should cover the banner as it scrolls away */
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--cqb-bg);
	color: var(--cqb-fg);
	font-family: var(--cqb-body-font);
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.cqb *,
.cqb *::before,
.cqb *::after {
	box-sizing: border-box;
}

.cqb[hidden] {
	display: none !important;
}

.cqb--light {
	--cqb-bg: #eaf3f9;
	--cqb-fg: #01426a;
	--cqb-muted: #2f4558;
	--cqb-accent: #2096c8;
	--cqb-cta-bg: #01426a;
	--cqb-focus: #01426a;
}

.cqb--dark {
	--cqb-bg: #2b2a29;
	--cqb-fg: #ffffff;
	--cqb-muted: rgba(255, 255, 255, 0.8);
	--cqb-accent: #0091d3;
	--cqb-cta-bg: #01426a;
	--cqb-focus: #ffffff;
}

/* Accent rule on the edge facing the page */
.cqb--top {
	border-bottom: 3px solid var(--cqb-accent);
}

.cqb--bottom {
	border-top: 3px solid var(--cqb-accent);
}

.cqb--bottom:not(.cqb--inline) {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.22);
}

/* ---- Layout: [logo] [headline + text] / [buttons] ---- */

.cqb .cqb__inner {
	display: flex;
	align-items: stretch;
	min-height: 72px;
	overflow: hidden;
}

.cqb .cqb__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 10px 30px 10px var(--cqb-pad-left);
}

.cqb .cqb__logo {
	display: block;
	width: auto;
	height: 42px;
	max-width: none;
	margin: 0;
	border: 0;
	box-shadow: none;
}

/* The logo should be white (reversed). On the light style, tint the left-hand one Conquip navy (#01426a). */
.cqb--light .cqb__brand .cqb__logo {
	filter: brightness(0) saturate(100%) invert(15%) sepia(69%) saturate(2175%) hue-rotate(182deg) brightness(98%) contrast(100%);
}

.cqb .cqb__copy {
	flex: 1 1 auto;
	min-width: 0;
	align-self: center;
	padding: 11px 24px 11px 0;
}

.cqb .cqb__inner > .cqb__copy:first-child {
	padding-left: var(--cqb-pad-left);
}

.cqb .cqb__headline {
	margin: 0;
	padding: 0;
	font-family: var(--cqb-head-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.005em;
	text-transform: none;
	color: var(--cqb-fg);
}

.cqb .cqb__text {
	margin: 3px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--cqb-muted);
}

.cqb .cqb__text a {
	color: inherit !important;
	text-decoration: underline !important;
}

/*
 * Button panel. In the Light and Charcoal styles it is navy, with a 45° left
 * edge drawn by skewing the background by exactly 45°, so the angle holds
 * however tall the banner is. In the Navy style it is the same colour as the
 * rest of the banner.
 */
.cqb .cqb__cta {
	--cqb-btn-bg: #ffffff;
	--cqb-btn-fg: #01426a;
	--cqb-btn-hover-bg: #e3f1f9;
	--cqb-link: #ffffff;
	--cqb-focus: #ffffff;

	position: relative;
	isolation: isolate;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 6px 10px var(--cqb-cta-pad);
	color: #ffffff;
}

.cqb .cqb__cta::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	background: var(--cqb-cta-bg);
	transform: skewX(-45deg);
	transform-origin: 0 100%;
}

/* Navy: one colour throughout, so no diagonal panel and no room needed for it */
.cqb.cqb--navy {
	--cqb-cta-pad: 24px;
}

.cqb--navy .cqb__cta::before {
	display: none;
}

/* Second copy of the logo, on the right after the buttons (decorative) */
.cqb .cqb__brand-end {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	margin-left: 30px;
}

/* Mirror the left-hand logo's inset (the panel already has 6px of right padding) */
.cqb .cqb__brand-end {
	margin-right: calc(var(--cqb-pad-left) - 6px);
}

.cqb .cqb__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
}

/* ---- Buttons and links (defensive against theme styles) ---- */

.cqb .cqb__btn,
.cqb .cqb__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--cqb-head-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: none;
	transition: background-color 0.15s ease, color 0.15s ease, text-decoration-color 0.15s ease;
}

.cqb .cqb__btn {
	padding: 11px 18px;
	border: 0;
	border-radius: 0;
	background: var(--cqb-btn-bg);
	color: var(--cqb-btn-fg) !important;
	text-decoration: none !important;
}

.cqb .cqb__btn:hover,
.cqb .cqb__btn:focus-visible {
	background: var(--cqb-btn-hover-bg);
	color: var(--cqb-btn-fg) !important;
}

.cqb .cqb__link {
	padding: 6px 0;
	background: none;
	color: var(--cqb-link) !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 4px;
}

.cqb .cqb__link:hover {
	text-decoration-thickness: 2px !important;
}

.cqb .cqb__icon {
	display: inline-block;
	flex: 0 0 auto;
	vertical-align: middle;
}

.cqb a:focus-visible {
	outline: 2px solid var(--cqb-focus) !important;
	outline-offset: 3px;
}

.cqb .cqb__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---- Compact layout: one slim line ---- */

.cqb--compact {
	--cqb-cta-pad: 62px;
}

.cqb--compact .cqb__inner {
	min-height: 48px;
}

.cqb--compact .cqb__brand {
	padding-top: 7px;
	padding-bottom: 7px;
}

.cqb--compact .cqb__logo {
	height: 28px;
}

.cqb--compact .cqb__copy {
	padding-top: 7px;
	padding-bottom: 7px;
}

.cqb--compact .cqb__headline {
	font-size: 15px;
}

.cqb--compact .cqb__cta {
	padding-top: 6px;
	padding-bottom: 6px;
}

.cqb--compact .cqb__btn {
	padding: 7px 14px;
	font-size: 12px;
}

.cqb--compact .cqb__link {
	font-size: 12px;
}


/* ---- Laptops and tablets: stack the two links so the text has room ---- */

@media (max-width: 1279px) {
	.cqb--full {
		--cqb-cta-pad: 108px;
	}

	.cqb--full .cqb__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}

@media (max-width: 1199px) {
	.cqb {
		--cqb-pad-left: 24px;
	}

	.cqb .cqb__brand-end {
		display: none;
	}

	/* No right-hand logo here, so give the links the same inset as the left */
	.cqb .cqb__cta {
		padding-right: var(--cqb-pad-left);
	}
}

@media (max-width: 1023px) {
	.cqb--full .cqb__text {
		display: none;
	}
}

/* ---- Phones: logo and text on top, buttons in a strip underneath ---- */

@media (max-width: 782px) {
	.cqb {
		--cqb-pad-left: 16px;
	}

	.cqb .cqb__inner {
		flex-wrap: wrap;
	}

	.cqb .cqb__brand {
		flex: 0 0 100%;
		padding: 12px 16px 0;
	}

	.cqb .cqb__logo {
		height: 26px;
	}

	.cqb .cqb__copy {
		flex: 1 1 100%;
		padding: 8px 16px 12px;
	}

	.cqb .cqb__inner > .cqb__copy:first-child {
		padding-top: 12px;
	}

	.cqb .cqb__headline {
		font-size: 17px;
	}

	.cqb--full .cqb__text {
		display: block;
		font-size: 14.5px;
	}

	/* Keep a bottom bar short on phones */
	.cqb--bottom .cqb__text {
		display: none !important;
	}

	.cqb .cqb__cta {
		flex: 1 1 100%;
		padding: 10px 16px;
	}

	.cqb .cqb__cta::before {
		transform: none;
	}

	.cqb .cqb__actions,
	.cqb--full .cqb__actions {
		flex: 1 1 auto;
		flex-direction: row;
		align-items: center;
		gap: 8px 20px;
	}



	.cqb--compact .cqb__brand {
		display: none;
	}

	.cqb--compact .cqb__copy {
		padding: 9px 16px 8px;
	}

	.cqb--compact .cqb__headline {
		font-size: 14.5px;
	}

	.cqb--compact .cqb__cta {
		padding-top: 4px;
		padding-bottom: 4px;
	}

	.cqb--compact .cqb__btn {
		padding: 0;
		background: none;
		color: var(--cqb-link) !important;
		text-decoration: underline !important;
		text-underline-offset: 4px;
	}
}

/* Keep Google's reCAPTCHA badge above a bottom banner */
.cqb-has-bottom .grecaptcha-badge {
	bottom: calc(14px + var(--cqb-h, 0px)) !important;
}

.cqb-spacer {
	display: block;
	height: var(--cqb-h, 0px);
}

@media (prefers-reduced-motion: reduce) {
	.cqb .cqb__btn,
	.cqb .cqb__link {
		transition: none;
	}
}

@media print {
	.cqb,
	.cqb-pt,
	.cqb-spacer {
		display: none !important;
	}
}

/* ---- Preview panel (only for people with the preview link) ---- */

.cqb-pt {
	position: fixed;
	left: 16px;
	bottom: calc(16px + var(--cqb-pt-offset, 0px));
	z-index: 99999;
	width: 300px;
	max-width: calc(100vw - 32px);
	background: #ffffff;
	color: #1d2327;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
	font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	text-align: left;
	box-sizing: border-box;
}

.cqb-pt *,
.cqb-pt *::before,
.cqb-pt *::after {
	box-sizing: border-box;
}

.cqb-pt .cqb-pt__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 8px 10px 14px;
	border-bottom: 1px solid #e6e8ea;
}

.cqb-pt.is-collapsed .cqb-pt__head {
	border-bottom: 0;
}

.cqb-pt .cqb-pt__head strong {
	flex: 1 1 auto;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.cqb-pt .cqb-pt__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #dba617;
	box-shadow: 0 0 0 3px rgba(219, 166, 23, 0.22);
}

.cqb-pt .cqb-pt__dot.is-live {
	background: #00a32a;
	box-shadow: 0 0 0 3px rgba(0, 163, 42, 0.2);
}

.cqb-pt .cqb-pt__toggle {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #50575e;
	box-shadow: none;
	cursor: pointer;
}

.cqb-pt .cqb-pt__toggle:hover {
	background: #f0f0f1;
}

.cqb-pt.is-collapsed .cqb-pt__toggle svg {
	transform: rotate(180deg);
}

.cqb-pt .cqb-pt__body {
	padding: 10px 14px 12px;
}

.cqb-pt.is-collapsed .cqb-pt__body {
	display: none;
}

.cqb-pt p {
	margin: 0 0 10px;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: #50575e;
}

.cqb-pt .cqb-pt__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

.cqb-pt .cqb-pt__label {
	flex: 0 0 64px;
	font-weight: 600;
	color: #1d2327;
}

.cqb-pt .cqb-pt__opts {
	display: inline-flex;
	flex-wrap: wrap;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: hidden;
}

.cqb-pt .cqb-pt__opts a {
	display: inline-block;
	padding: 4px 9px;
	border-left: 1px solid #c3c4c7;
	background: #ffffff;
	color: #1d2327 !important;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
}

.cqb-pt .cqb-pt__opts a:first-child {
	border-left: 0;
}

.cqb-pt .cqb-pt__opts a:hover {
	background: #f0f6fc;
}

.cqb-pt .cqb-pt__opts a[aria-current] {
	background: #01426a;
	color: #ffffff !important;
}

.cqb-pt .cqb-pt__tip {
	margin-top: 10px;
}

.cqb-pt .cqb-pt__foot {
	margin: 0;
}

.cqb-pt .cqb-pt__foot a {
	color: #2271b1 !important;
	text-decoration: underline !important;
	font-size: 12.5px;
}

.cqb-pt a:focus-visible,
.cqb-pt button:focus-visible {
	outline: 2px solid #2271b1 !important;
	outline-offset: 1px;
}

.cqb-pt .cqb__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}

@media (max-width: 600px) {
	.cqb-pt {
		left: 8px;
		bottom: calc(8px + var(--cqb-pt-offset, 0px));
	}
}
