/* ==========================================================================
   SLY — global header tweaks (menu centred in the desktop header)
   ========================================================================== */

@media (min-width: 922px) {
	#masthead .ast-primary-header .ast-builder-grid-row {
		position: relative;
	}

	#masthead .ast-primary-header .ast-builder-menu-1 {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		margin: 0;
		z-index: 6;
	}

	#masthead .ast-primary-header .ast-builder-menu-1 .main-header-menu,
	#masthead .ast-primary-header .ast-builder-menu-1 .main-navigation {
		justify-content: center;
	}

	#masthead .ast-primary-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ---------- blog covers are authored at 2:1 everywhere ---------- */
.sly-bcard__img {
	aspect-ratio: 2 / 1 !important;
}
.sly-bcard__img img {
	object-position: center;
}
.sly-bcard__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(135deg, #e8eff7, #e8eff7 10px, #eff5fb 10px, #eff5fb 20px);
}

/* category cards on the home page: kicker + title stacked */
.sly-card__txt {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.sly-card__k {
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #0b6bb3;
	line-height: 1.2;
}

/* home category grid: 8 cards on a 4x2 grid */
.sly-cats .sly-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sly-cats .sly-card__body {
	display: block;
	padding: 14px 16px 16px;
}
.sly-cats .sly-card__t {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.32;
	color: #0b1b2b;
	margin: 0 0 5px;
}
.sly-cats .sly-card__m {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #7d8a9c;
}
@media (max-width: 1100px) {
	.sly-cats .sly-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.sly-cats .sly-card__body {
		padding: 12px 12px 14px;
	}
	.sly-cats .sly-card__m {
		font-size: 9.5px;
		letter-spacing: .05em;
		line-height: 1.35;
	}
	.sly-cats .sly-card__t {
		font-size: 13.5px;
	}
}

/* ==========================================================================
   Products mega menu
   ========================================================================== */
.sly-mega {
	position: fixed;
	left: 50%;
	top: 80px;
	width: min(1240px, calc(100vw - 48px));
	transform: translateX(-50%) translateY(-8px);
	background: #fff;
	border: 1px solid #e3eaf2;
	border-radius: 14px;
	box-shadow: 0 26px 64px rgba(11, 27, 43, .18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .16s ease, transform .16s ease;
	z-index: 99990;
}
.sly-mega.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
.sly-mega,
.sly-mega li,
.sly-mega a,
.sly-mega span,
.sly-mega em,
.sly-mega p {
	text-transform: none !important;
	letter-spacing: normal;
	text-decoration: none !important;
}
.sly-mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr) minmax(170px, .82fr);
	gap: 30px;
	padding: 26px 30px 20px;
}
.sly-mega__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid #eef2f7;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
	color: #0b1b2b;
}
.sly-mega__head:hover {
	color: #0b6bb3;
}
.sly-mega__head span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	color: #93a2b5;
}
.sly-mega__desc {
	margin: 0 0 10px;
	font-size: 11.5px;
	line-height: 1.5;
	color: #7d8a9c;
}
.sly-mega__gt {
	margin: 14px 0 5px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .09em !important;
	text-transform: uppercase !important;
	color: #a8b4c4;
}
.sly-mega__list,
.sly-mega__sub,
.sly-mega__brands {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sly-mega__item > a,
.sly-mega__brands a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	align-items: flex-start;
	padding: 5px 8px;
	margin-left: -8px;
	border-radius: 6px;
	font-size: 13.5px;
	color: #22364d;
	text-decoration: none;
	line-height: 1.35;
}
.sly-mega__item > a:hover,
.sly-mega__brands a:hover {
	background: #f2f7fc;
	color: #0b6bb3;
}
.sly-mega__item em,
.sly-mega__sub em,
.sly-mega__brands em {
	flex: 0 0 auto;
	white-space: nowrap;
	font-style: normal;
	font-size: 11px;
	font-weight: 600;
	color: #93a2b5;
	font-variant-numeric: tabular-nums;
	padding-top: 2px;
}
.sly-mega__item > a > span,
.sly-mega__brands a > span,
.sly-mega__sub a {
	flex: 1 1 auto;
	min-width: 0;
}
.sly-mega__sub {
	margin: 2px 0 6px;
	padding-left: 6px;
	border-left: 1px solid #eef2f7;
}
.sly-mega__sub a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 3px 8px;
	margin-left: 2px;
	border-radius: 5px;
	font-size: 12.5px;
	color: #5b6b82;
	text-decoration: none;
}
.sly-mega__sub a:hover {
	background: #f2f7fc;
	color: #0b6bb3;
}
.sly-mega__brands {
	margin-bottom: 14px;
}
.sly-mega__brands a {
	font-size: 13px;
	padding: 6px 8px;
}
.sly-mega__cta {
	display: block;
	margin-top: 18px;
	padding: 12px 14px;
	border-radius: 10px;
	background: linear-gradient(135deg, #0b1b2b 0%, #16324f 100%);
	color: #fff;
	text-decoration: none;
	font-size: 11.5px;
	line-height: 1.45;
}
.sly-mega__cta strong {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: #8ed0f8;
}
.sly-mega__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 11px 30px;
	border-top: 1px solid #eef2f7;
	background: #fafcfe;
	border-radius: 0 0 14px 14px;
}
.sly-mega__foot-note {
	font-size: 11.5px;
	color: #8b98a9;
}
.sly-mega__all {
	font-size: 12.5px;
	font-weight: 700;
	color: #0b6bb3;
	text-decoration: none;
	white-space: nowrap;
}
.sly-mega__all:hover {
	color: #0b1b2b;
}
.sly-mega-caret {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 6px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translate(-1px, -2px);
	transition: transform .16s ease;
}
.sly-mega-parent.is-active .sly-mega-caret {
	transform: rotate(-135deg) translate(-2px, 1px);
}
@media (max-width: 1180px) {
	.sly-mega__inner {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}
@media (max-width: 921px) {
	.sly-mega {
		display: none !important;
	}
}
.sly-mega__brands a {
	align-items: center;
	gap: 9px;
	padding-top: 7px;
	padding-bottom: 7px;
}
.sly-mega__logo {
	flex: 0 0 auto;
	height: 26px;
	width: auto;
	max-width: 112px;
	object-fit: contain;
	object-position: left center;
	display: block;
}
.sly-mega__brands a > span {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* brand column: logos on top, enquiry card pinned to the bottom */
.sly-mega__col--brands {
	display: flex;
	flex-direction: column;
}
.sly-mega__col--brands .sly-mega__cta {
	margin-top: auto;
}
