/* ==========================================================================
   CommerceShop Mega Menu v3
   Matches the "CommerceShop Mega Menu" reference design.
   Every rule is scoped to body.tcs-mm3-on (added by includes/mega-menu-v3.php),
   so pages render exactly as before when v2 is switched off.
   ========================================================================== */

body.tcs-mm3-on {
	--tcs-mm3-navy: #01056A;
	--tcs-mm3-ink: #0B0D2E;
	--tcs-mm3-blue: #343BED;
	--tcs-mm3-blue-dark: #2A30C9;
	--tcs-mm3-muted: #5A6080;
	--tcs-mm3-body: #3A3F5C;
	--tcs-mm3-line: #E1E3F0;
	--tcs-mm3-soft: #F4F5FB;
	--tcs-mm3-gold: #FFC24B;
	--tcs-mm3-promo-text: #D5D7FA;
	--tcs-mm3-font: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tcs-mm3-max: 1160px; /* reference: 1200px wrapper with 20px padding */
	--tcs-mm3-gutter: 20px;
	--tcs-mm3-bar-h: 72px;
}

/* --------------------------------------------------------------------------
   Header shell (existing markup: .headerInner > .top-menu-section + .container)
   -------------------------------------------------------------------------- */
body.tcs-mm3-on #menu-header .headerInner,
body.tcs-mm3-on #menu-header .headerInner.scrolled {
	background: #FFFFFF !important;
	padding: 0 !important;
	border-bottom: 1px solid var(--tcs-mm3-line);
	font-family: var(--tcs-mm3-font);
}
body.tcs-mm3-on #menu-header .headerInner.scrolled {
	box-shadow: 0 6px 24px -12px rgba(1, 5, 106, 0.25);
}

/* Both header containers share the 1200px reference width */
body.tcs-mm3-on #menu-header .headerInner > .container,
body.tcs-mm3-on #menu-header .headerInner > .top-menu-section > .container {
	width: 100% !important;
	max-width: calc(var(--tcs-mm3-max) + var(--tcs-mm3-gutter) * 2) !important;
	padding-left: var(--tcs-mm3-gutter) !important;
	padding-right: var(--tcs-mm3-gutter) !important;
	margin-left: auto;
	margin-right: auto;
}
body.tcs-mm3-on #menu-header .headerInner > .container > .row,
body.tcs-mm3-on #menu-header .headerInner.scrolled > .container > .row {
	margin: 0 !important;
	padding: 0 !important;
}
body.tcs-mm3-on #menu-header .headerInner > .container > .row > .col-md-12 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--tcs-mm3-bar-h);
	padding: 0 !important;
	flex: 1 1 100%;
	max-width: 100%;
	position: static;
}

/* Logo (existing image asset) */
body.tcs-mm3-on #menu-header .headerInner .logo {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
body.tcs-mm3-on #menu-header .headerInner .logo a {
	display: block;
	line-height: 0;
}
body.tcs-mm3-on #menu-header .headerInner .logo img,
body.tcs-mm3-on #menu-header .headerInner.scrolled .logo img {
	width: 180px !important;
	max-width: 100%;
	height: auto;
	/* logo stays identical on scroll (page scripts fade/swap it for the old navy header) */
	opacity: 1 !important;
	visibility: visible !important;
	filter: none !important;
	transform: none !important;
	transition: none !important;
}
body.tcs-mm3-on #menu-header .headerInner .logo::before,
body.tcs-mm3-on #menu-header .headerInner .logo::after,
body.tcs-mm3-on #menu-header .headerInner.scrolled .logo::before,
body.tcs-mm3-on #menu-header .headerInner.scrolled .logo::after {
	display: none !important;
}

/* Wrapper that used to hold the Max Mega Menu */
body.tcs-mm3-on #menu-header .headerInner .menu,
body.tcs-mm3-on #menu-header .headerInner.scrolled .menu {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: 100%;
	flex: 0 1 auto;
	display: flex;
	align-items: stretch;
	font-family: var(--tcs-mm3-font) !important;
}
body.tcs-mm3-on #menu-header .headerInner .menu > .clearfix {
	display: none;
}

/* "Talk to Us" CTA (existing markup, restyled) */
body.tcs-mm3-on #menu-header .headerInner .header-cta {
	float: none !important;
	margin: 0 !important;
	flex: 0 0 auto;
	display: block;
}
body.tcs-mm3-on #menu-header .header-cta .header-cta-btn {
	display: inline-flex !important;
	align-items: center !important;
	min-height: 46px;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--tcs-mm3-blue) !important;
	box-shadow: none !important;
	color: #FFFFFF !important;
	font-family: var(--tcs-mm3-font) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	transform: none !important;
	transition: background-color .15s ease !important;
}
body.tcs-mm3-on #menu-header .header-cta .header-cta-btn:hover,
body.tcs-mm3-on #menu-header .header-cta .header-cta-btn:focus-visible {
	background: var(--tcs-mm3-navy) !important;
	color: #FFFFFF !important;
}
body.tcs-mm3-on #menu-header .header-cta .header-cta-btn span {
	display: inline !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}
body.tcs-mm3-on #menu-header .header-cta .header-cta-btn svg {
	display: none;
}

/* --------------------------------------------------------------------------
   Utility bar (existing "top-menu" wp_nav_menu, restyled)
   -------------------------------------------------------------------------- */
body.tcs-mm3-on #menu-header .top-menu-section {
	background: var(--tcs-mm3-soft) !important;
	border-bottom: 1px solid var(--tcs-mm3-line);
	color: var(--tcs-mm3-body);
	font-family: var(--tcs-mm3-font);
	font-size: 13px;
	font-weight: 500;
}
body.tcs-mm3-on #menu-header .headerInner .top-menu-section .row,
body.tcs-mm3-on #menu-header .headerInner.scrolled .top-menu-section .row {
	margin: 0 !important;
	padding: 8px 0 !important;
}
body.tcs-mm3-on #menu-header .top-menu-section .col-md-12 {
	padding: 0 !important;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}
body.tcs-mm3-on #menu-header .top-menu-section .left-side:empty {
	display: none;
}
body.tcs-mm3-on #menu-header .top-menu-section .right-side {
	float: none !important;
	margin: 0 !important;
}
body.tcs-mm3-on #menu-header .top-menu-section ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
/* clearfix pseudo-elements would become extra flex items */
body.tcs-mm3-on #menu-header .top-menu-section ul::before,
body.tcs-mm3-on #menu-header .top-menu-section ul::after,
body.tcs-mm3-on #menu-header .headerInner .row::before,
body.tcs-mm3-on #menu-header .headerInner .row::after,
body.tcs-mm3-on #menu-header .headerInner .col-md-12::before,
body.tcs-mm3-on #menu-header .headerInner .col-md-12::after {
	display: none !important;
}
body.tcs-mm3-on #menu-header .top-menu-section ul li {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	line-height: 1.2 !important;
}
body.tcs-mm3-on #menu-header .top-menu-section ul li a {
	color: var(--tcs-mm3-body) !important;
	font-size: 13px !important;
	font-weight: 500;
	text-decoration: none;
}
body.tcs-mm3-on #menu-header .top-menu-section ul li a:hover,
body.tcs-mm3-on #menu-header .top-menu-section ul li a:focus-visible {
	color: var(--tcs-mm3-blue) !important;
}

/* --------------------------------------------------------------------------
   v2 navigation – resets (protect against theme/bootstrap globals)
   -------------------------------------------------------------------------- */
body.tcs-mm3-on .tcs-mm3,
body.tcs-mm3-on .tcs-mm3 * {
	box-sizing: border-box;
}
body.tcs-mm3-on .tcs-mm3 {
	display: flex;
	align-items: stretch;
	height: 100%;
	font-family: var(--tcs-mm3-font);
	color: var(--tcs-mm3-ink);
	-webkit-font-smoothing: antialiased;
}
body.tcs-mm3-on .tcs-mm3 ul,
body.tcs-mm3-on .tcs-mm3 li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	float: none;
	background: none;
}
body.tcs-mm3-on .tcs-mm3 a {
	color: var(--tcs-mm3-ink);
	text-decoration: none !important;
	transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
body.tcs-mm3-on .tcs-mm3 a:hover {
	color: var(--tcs-mm3-blue);
}
body.tcs-mm3-on .tcs-mm3 button {
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	box-shadow: none;
}
body.tcs-mm3-on .tcs-mm3 :focus-visible {
	outline: 2px solid var(--tcs-mm3-blue);
	outline-offset: 2px;
	border-radius: 4px;
}
body.tcs-mm3-on .tcs-mm3-panel[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Desktop bar
   -------------------------------------------------------------------------- */
body.tcs-mm3-on .tcs-mm3-burger,
body.tcs-mm3-on .tcs-mm3-drawer-cta {
	display: none;
}
body.tcs-mm3-on .tcs-mm3-nav {
	display: flex;
	align-items: stretch;
	height: 100%;
}
body.tcs-mm3-on .tcs-mm3-bar {
	display: flex;
	align-items: stretch;
	gap: 4px;
	height: 100%;
}
body.tcs-mm3-on .tcs-mm3-item {
	display: flex;
	align-items: stretch;
}
body.tcs-mm3-on .tcs-mm3-trigger {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 14px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--tcs-mm3-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}
body.tcs-mm3-on .tcs-mm3-trigger:hover {
	color: var(--tcs-mm3-blue);
}
body.tcs-mm3-on .tcs-mm3-trigger[aria-expanded="true"] {
	color: var(--tcs-mm3-blue);
	border-bottom-color: var(--tcs-mm3-blue);
}
/* top-level item without sub-items (plain link) */
body.tcs-mm3-on .tcs-mm3 .tcs-mm3-item--link .tcs-mm3-trigger[aria-current="page"] {
	color: var(--tcs-mm3-blue);
	border-bottom-color: var(--tcs-mm3-blue);
}
body.tcs-mm3-on .tcs-mm3 .tcs-mm3-trigger:focus-visible {
	outline-offset: -4px;
}
body.tcs-mm3-on .tcs-mm3-chevron {
	flex: 0 0 auto;
	transition: transform .2s ease;
}
body.tcs-mm3-on .tcs-mm3-trigger[aria-expanded="true"] .tcs-mm3-chevron {
	transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Desktop mega panel
   --tcs-mm3-top is the header's bottom edge, kept current by mega-menu-v3.js
   -------------------------------------------------------------------------- */
body.tcs-mm3-on .tcs-mm3-panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--tcs-mm3-top, 106px);
	z-index: 2;
	max-height: calc(100vh - var(--tcs-mm3-top, 106px));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #FFFFFF;
	border-top: 1px solid var(--tcs-mm3-line);
	border-bottom: 1px solid var(--tcs-mm3-line);
	box-shadow: 0 30px 60px -30px rgba(1, 5, 106, 0.35);
	text-align: left;
	animation: tcsMm3In .18s ease-out;
}
@keyframes tcsMm3In {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}
body.tcs-mm3-on .tcs-mm3-panel__inner {
	max-width: calc(var(--tcs-mm3-max) + var(--tcs-mm3-gutter) * 2);
	margin: 0 auto;
	padding: 36px var(--tcs-mm3-gutter) 40px;
	display: grid;
	grid-template-columns: var(--tcs-mm3-cols, repeat(3, minmax(0, 1fr)) var(--tcs-mm3-card-w, 340px));
	gap: 40px;
}
/* card column always sits in the last track (empty tracks may pad before it) */
@media (min-width: 1100px) {
	body.tcs-mm3-on .tcs-mm3-panel__inner > .tcs-mm3-col--card:last-child {
		grid-column: -2 / -1;
	}
}
/* 5+ columns (e.g. 4 link columns + card) */
body.tcs-mm3-on .tcs-mm3-panel__inner--dense {
	gap: 28px;
	--tcs-mm3-card-w: 300px;
}
body.tcs-mm3-on .tcs-mm3-col {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}
body.tcs-mm3-on .tcs-mm3-group {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Column heading */
body.tcs-mm3-on .tcs-mm3-heading {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--tcs-mm3-muted);
	letter-spacing: 0;
	text-transform: none;
}
/* subtitle under a column heading (the heading item's Description) */
body.tcs-mm3-on .tcs-mm3-heading-desc {
	display: block;
	margin-top: -10px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--tcs-mm3-muted);
}

/* Link lists */
body.tcs-mm3-on .tcs-mm3-links {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
body.tcs-mm3-on .tcs-mm3-group--tight {
	gap: 12px;
}
body.tcs-mm3-on .tcs-mm3-links--tight {
	gap: 12px;
}
body.tcs-mm3-on .tcs-mm3-links--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
}
/* Wide column (Services › B2B Ecommerce): divider, links | sub-heading + links */
body.tcs-mm3-on .tcs-mm3-panel__inner > .tcs-mm3-col--wide {
	padding-left: 40px;
	border-left: 1px solid var(--tcs-mm3-line);
}
body.tcs-mm3-on .tcs-mm3-wide {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
	align-content: start;
}
body.tcs-mm3-on .tcs-mm3-wide__col,
body.tcs-mm3-on .tcs-mm3-subgroup {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
body.tcs-mm3-on .tcs-mm3-wide__col + .tcs-mm3-wide__col { gap: 24px; }
body.tcs-mm3-on #menu-header .tcs-mm3 .tcs-mm3-subheading {
	display: block !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 18.2px;
	color: var(--tcs-mm3-muted);
	letter-spacing: .06em;
}
body.tcs-mm3-on .tcs-mm3-links--grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.tcs-mm3-on .tcs-mm3-links--grid.tcs-mm3-links--desc {
	gap: 16px 28px;
}
body.tcs-mm3-on .tcs-mm3-link {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}
body.tcs-mm3-on .tcs-mm3-link--accent {
	color: var(--tcs-mm3-blue) !important;
	font-weight: 700;
}
body.tcs-mm3-on .tcs-mm3-link[aria-current="page"] {
	color: var(--tcs-mm3-blue);
}
body.tcs-mm3-on .tcs-mm3-links--desc .tcs-mm3-link {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
body.tcs-mm3-on .tcs-mm3-link__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}
body.tcs-mm3-on .tcs-mm3-link__desc {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--tcs-mm3-muted);
}

/* Widgets placed in a Max Mega Menu grid column */
body.tcs-mm3-on .tcs-mm3-widget {
	font-size: 14px;
	line-height: 1.55;
	color: var(--tcs-mm3-body);
}
body.tcs-mm3-on .tcs-mm3-widget__item + .tcs-mm3-widget__item { margin-top: 14px; }
body.tcs-mm3-on .tcs-mm3-widget .tcs-mm3-heading { margin-bottom: 10px; }
body.tcs-mm3-on .tcs-mm3-widget p { margin: 0 0 8px; }
body.tcs-mm3-on .tcs-mm3-widget img { max-width: 100%; height: auto; border-radius: 12px; }
body.tcs-mm3-on .tcs-mm3-widget a { color: var(--tcs-mm3-blue); font-weight: 600; }

/* Guard: theme/plugin rules for spans inside menu links must not hide titles or subtitles */
body.tcs-mm3-on #menu-header .tcs-mm3 .tcs-mm3-link__title,
body.tcs-mm3-on #menu-header .tcs-mm3 .tcs-mm3-link__desc,
body.tcs-mm3-on #menu-header .tcs-mm3 .tcs-mm3-stat > span,
body.tcs-mm3-on #menu-header .tcs-mm3 .tcs-mm3-heading,
body.tcs-mm3-on #menu-header .tcs-mm3 .tcs-mm3-heading-desc {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	clip: auto !important;
	overflow: visible !important;
	text-indent: 0 !important;
}
body.tcs-mm3-on #menu-header .tcs-mm3 .tcs-mm3-link__title {
	font-size: 15px !important;
	color: inherit !important;
}
body.tcs-mm3-on #menu-header .tcs-mm3 .tcs-mm3-link__desc {
	font-size: 13px !important;
	color: var(--tcs-mm3-muted) !important;
}

/* Pills (ERP platforms) */
body.tcs-mm3-on .tcs-mm3-group--pills {
	margin-top: -14px; /* reference: heading sits 10px below previous list */
	padding-top: 10px;
}
body.tcs-mm3-on .tcs-mm3-links--pills {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}
body.tcs-mm3-on .tcs-mm3-links--pills .tcs-mm3-link {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	padding: 6px 12px;
	border: 1px solid var(--tcs-mm3-line);
	border-radius: 999px;
}
body.tcs-mm3-on .tcs-mm3-links--pills .tcs-mm3-link:hover {
	border-color: var(--tcs-mm3-blue);
}

/* Promo / CTA cards */
body.tcs-mm3-on .tcs-mm3-promo {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 26px;
	border-radius: 16px;
}
body.tcs-mm3-on .tcs-mm3-promo--dark {
	background: var(--tcs-mm3-navy);
	color: #FFFFFF;
}
body.tcs-mm3-on .tcs-mm3-promo--light {
	background: var(--tcs-mm3-soft);
	border: 1px solid var(--tcs-mm3-line);
	color: var(--tcs-mm3-ink);
}
body.tcs-mm3-on .tcs-mm3-promo__eyebrow {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tcs-mm3-gold);
}
body.tcs-mm3-on .tcs-mm3-promo--light .tcs-mm3-promo__eyebrow {
	color: var(--tcs-mm3-blue);
}
body.tcs-mm3-on .tcs-mm3-promo__title {
	font-size: 21px;
	font-weight: 750;
	line-height: 1.25;
	color: #FFFFFF;
}
body.tcs-mm3-on .tcs-mm3-promo--light .tcs-mm3-promo__title {
	font-size: 19px;
	line-height: 1.3;
	color: var(--tcs-mm3-ink);
}
body.tcs-mm3-on .tcs-mm3-promo__text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--tcs-mm3-promo-text);
}
body.tcs-mm3-on .tcs-mm3-promo--light .tcs-mm3-promo__text {
	color: var(--tcs-mm3-body);
}
body.tcs-mm3-on .tcs-mm3 .tcs-mm3-promo__cta {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--tcs-mm3-navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}
body.tcs-mm3-on .tcs-mm3 .tcs-mm3-promo--dark .tcs-mm3-promo__cta:hover {
	background: var(--tcs-mm3-soft);
	color: var(--tcs-mm3-blue);
}
body.tcs-mm3-on .tcs-mm3 .tcs-mm3-promo--light .tcs-mm3-promo__cta {
	min-height: 0;
	padding: 0;
	background: none;
	color: var(--tcs-mm3-blue);
}
body.tcs-mm3-on .tcs-mm3 .tcs-mm3-promo--light .tcs-mm3-promo__cta:hover {
	color: var(--tcs-mm3-navy);
}

/* Case-study stat cards */
body.tcs-mm3-on .tcs-mm3 .tcs-mm3-stat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 26px;
	border: 1px solid var(--tcs-mm3-line);
	border-radius: 16px;
	background: var(--tcs-mm3-soft);
	color: var(--tcs-mm3-ink);
}
body.tcs-mm3-on .tcs-mm3 .tcs-mm3-stat:hover {
	border-color: var(--tcs-mm3-blue);
	color: var(--tcs-mm3-ink);
}
body.tcs-mm3-on .tcs-mm3-stat__meta {
	font-size: 13px;
	font-weight: 700;
	color: var(--tcs-mm3-muted);
}
body.tcs-mm3-on .tcs-mm3-stat__value {
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--tcs-mm3-navy);
}
body.tcs-mm3-on .tcs-mm3-stat__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}
body.tcs-mm3-on .tcs-mm3-stat__link {
	margin-top: auto;
	font-size: 14px;
	font-weight: 700;
	color: var(--tcs-mm3-blue);
}

/* Page dim overlay (element added by mega-menu-v3.js) */
.tcs-mm3-overlay {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: var(--tcs-mm3-top, 106px);
	z-index: 998; /* just below .headerInner (999) */
	background: rgba(11, 13, 46, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility 0s linear .18s;
}
.tcs-mm3-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	transition: opacity .18s ease;
}

/* --------------------------------------------------------------------------
   Compact desktop (1100–1279px)
   -------------------------------------------------------------------------- */
@media (max-width: 1279.98px) {
	body.tcs-mm3-on { --tcs-mm3-gutter: 20px; }
	body.tcs-mm3-on #menu-header .headerInner > .container > .row > .col-md-12 { gap: 16px; }
	body.tcs-mm3-on #menu-header .headerInner .logo img,
	body.tcs-mm3-on #menu-header .headerInner.scrolled .logo img { width: 156px !important; }
	body.tcs-mm3-on .tcs-mm3-bar { gap: 0; }
	body.tcs-mm3-on .tcs-mm3-trigger { padding: 0 10px; font-size: 14px; }
	body.tcs-mm3-on #menu-header .header-cta .header-cta-btn { padding: 0 16px !important; font-size: 14px !important; min-height: 42px; }
	body.tcs-mm3-on .tcs-mm3-panel__inner { gap: 28px; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) {
	/* narrower card column so 4-column panels still fit (column template comes from PHP) */
	body.tcs-mm3-on .tcs-mm3-panel__inner { --tcs-mm3-card-w: 290px; }
	body.tcs-mm3-on .tcs-mm3-panel__inner--dense { --tcs-mm3-card-w: 250px; gap: 22px; }
}

/* --------------------------------------------------------------------------
   Mobile & tablet (< 1100px): hamburger + accordion drawer
   -------------------------------------------------------------------------- */
@media (max-width: 1099.98px) {
	body.tcs-mm3-on { --tcs-mm3-bar-h: 64px; --tcs-mm3-gutter: 16px; }

	body.tcs-mm3-on #menu-header .headerInner > .container > .row > .col-md-12 { gap: 12px; }
	body.tcs-mm3-on #menu-header .headerInner .logo { margin-right: auto !important; }
	body.tcs-mm3-on #menu-header .headerInner .logo img,
	body.tcs-mm3-on #menu-header .headerInner.scrolled .logo img { width: 150px !important; }
	body.tcs-mm3-on #menu-header .headerInner .header-cta { order: 2; display: block !important; }
	body.tcs-mm3-on #menu-header .headerInner .menu { order: 3; }

	body.tcs-mm3-on .tcs-mm3-burger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		align-self: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--tcs-mm3-line);
		border-radius: 10px;
		background: #FFFFFF;
		color: var(--tcs-mm3-ink);
		cursor: pointer;
	}
	body.tcs-mm3-on .tcs-mm3-burger__box {
		position: relative;
		display: block;
		width: 20px;
		height: 14px;
	}
	body.tcs-mm3-on .tcs-mm3-burger__box span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform .2s ease, opacity .2s ease, top .2s ease;
	}
	body.tcs-mm3-on .tcs-mm3-burger__box span:nth-child(1) { top: 0; }
	body.tcs-mm3-on .tcs-mm3-burger__box span:nth-child(2) { top: 6px; }
	body.tcs-mm3-on .tcs-mm3-burger__box span:nth-child(3) { top: 12px; }
	body.tcs-mm3-on .tcs-mm3.is-open .tcs-mm3-burger__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
	body.tcs-mm3-on .tcs-mm3.is-open .tcs-mm3-burger__box span:nth-child(2) { opacity: 0; }
	body.tcs-mm3-on .tcs-mm3.is-open .tcs-mm3-burger__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

	/* Drawer */
	body.tcs-mm3-on .tcs-mm3-nav {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: var(--tcs-mm3-top, 98px);
		height: auto;
		z-index: 3;
		flex-direction: column;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		background: #FFFFFF;
		border-top: 1px solid var(--tcs-mm3-line);
		padding: 4px var(--tcs-mm3-gutter) 32px;
	}
	body.tcs-mm3-on .tcs-mm3.is-open .tcs-mm3-nav {
		display: flex;
		animation: tcsMm3In .18s ease-out;
	}
	body.tcs-mm3-on .tcs-mm3-bar {
		display: block;
		height: auto;
	}
	body.tcs-mm3-on .tcs-mm3-item {
		display: block;
		border-bottom: 1px solid var(--tcs-mm3-line);
	}
	body.tcs-mm3-on .tcs-mm3-trigger {
		width: 100%;
		height: 56px;
		justify-content: space-between;
		padding: 0;
		border-bottom: 0;
		font-size: 16px;
	}
	body.tcs-mm3-on .tcs-mm3-trigger[aria-expanded="true"] { border-bottom: 0; }

	/* Panels become inline accordion sections */
	body.tcs-mm3-on .tcs-mm3-panel {
		position: static;
		max-height: none;
		overflow: visible;
		border: 0;
		box-shadow: none;
		animation: none;
	}
	body.tcs-mm3-on .tcs-mm3-panel__inner,
	body.tcs-mm3-on .tcs-mm3-panel__inner[style] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 24px 28px;
		padding: 4px 0 24px;
		max-width: none;
	}
	body.tcs-mm3-on .tcs-mm3-col:has(.tcs-mm3-promo),
	body.tcs-mm3-on .tcs-mm3-col:has(.tcs-mm3-links--grid) {
		grid-column: 1 / -1;
	}
	body.tcs-mm3-on .tcs-mm3-promo,
	body.tcs-mm3-on .tcs-mm3 .tcs-mm3-stat { padding: 20px; }
	body.tcs-mm3-on .tcs-mm3-promo__title { font-size: 19px; }
	body.tcs-mm3-on .tcs-mm3-stat__value { font-size: 32px; }

	body.tcs-mm3-on .tcs-mm3-drawer-cta {
		padding-top: 24px;
	}
	body.tcs-mm3-on .tcs-mm3 .tcs-mm3-drawer-cta a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border-radius: 10px;
		background: var(--tcs-mm3-blue);
		color: #FFFFFF;
		font-size: 16px;
		font-weight: 600;
	}
	body.tcs-mm3-on .tcs-mm3 .tcs-mm3-drawer-cta a:hover { background: var(--tcs-mm3-blue-dark); color: #FFFFFF; }

	.tcs-mm3-overlay { display: none; }

	/* utility bar */
	body.tcs-mm3-on #menu-header .headerInner .top-menu-section .row,
	body.tcs-mm3-on #menu-header .headerInner.scrolled .top-menu-section .row { padding: 7px 0 !important; }
	body.tcs-mm3-on #menu-header .top-menu-section .col-md-12,
	body.tcs-mm3-on #menu-header .top-menu-section ul { justify-content: center; }
	body.tcs-mm3-on #menu-header .top-menu-section ul { gap: 4px 18px; }
	body.tcs-mm3-on #menu-header .top-menu-section ul li a { font-size: 12px !important; }
}

/* Phones */
@media (max-width: 1099.98px) {
	body.tcs-mm3-on .tcs-mm3-panel__inner > .tcs-mm3-col--wide {
		grid-column: 1 / -1;
		padding-left: 0;
		border-left: 0;
	}
}
@media (max-width: 639.98px) {
	body.tcs-mm3-on .tcs-mm3-wide { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	body.tcs-mm3-on .tcs-mm3-panel__inner,
	body.tcs-mm3-on .tcs-mm3-panel__inner[style] { grid-template-columns: minmax(0, 1fr) !important; gap: 22px; }
	body.tcs-mm3-on .tcs-mm3-links--grid,
	body.tcs-mm3-on .tcs-mm3-links--grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479.98px) {
	/* the drawer carries its own CTA; free the bar for logo + burger */
	body.tcs-mm3-on #menu-header .headerInner .header-cta { display: none !important; }
	body.tcs-mm3-on .tcs-mm3-drawer-cta { display: block; }
	body.tcs-mm3-on #menu-header .headerInner .logo img,
	body.tcs-mm3-on #menu-header .headerInner.scrolled .logo img { width: 140px !important; }
}

/* Lock page scroll while the mobile drawer is open */
html.tcs-mm3-lock,
html.tcs-mm3-lock body {
	overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
	body.tcs-mm3-on .tcs-mm3-panel,
	body.tcs-mm3-on .tcs-mm3-nav,
	body.tcs-mm3-on .tcs-mm3-chevron,
	.tcs-mm3-overlay { animation: none !important; transition: none !important; }
}
