/* Progressive tree navigation. A label opens a page; its separate chevron opens one next level. */
.tb2b-header__inner { position: relative; }
.tb2b-mobile-menu-toggle { display: none; }
.tb2b-tree-nav { margin-left: auto; }
.tb2b-tree-nav ul { margin: 0; padding: 0; list-style: none; }
.tb2b-tree-root { display: flex; align-items: stretch; gap: 14px; }
.tb2b-tree-node { position: relative; min-width: 0; }
.tb2b-tree-row { display: flex; align-items: stretch; }
.tb2b-tree-row > a {
	display: flex;
	align-items: center;
	min-height: 76px;
	color: var(--tb2b-navy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
}
.tb2b-tree-row > a:hover,
.tb2b-tree-row > a:focus-visible,
.tb2b-tree-node.is-open > .tb2b-tree-row > a { color: var(--tb2b-blue); }
.tb2b-tree-toggle {
	display: grid;
	width: 27px;
	min-width: 27px;
	min-height: 76px;
	place-items: center;
	margin: 0;
	padding: 0 0 0 5px;
	border: 0;
	background: transparent;
	color: var(--tb2b-navy);
	cursor: pointer;
}
.tb2b-tree-toggle > span[aria-hidden="true"] {
	width: 7px;
	height: 7px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .18s ease;
}
.tb2b-tree-toggle:hover,
.tb2b-tree-toggle:focus-visible,
.tb2b-tree-node.is-open > .tb2b-tree-row > .tb2b-tree-toggle { color: var(--tb2b-blue); }
.tb2b-tree-node.is-open > .tb2b-tree-row > .tb2b-tree-toggle > span[aria-hidden="true"] { transform: rotate(225deg) translate(-1px, -2px); }

.tb2b-tree-root > .tb2b-tree-node > .tb2b-tree-branch {
	position: absolute;
	z-index: 80;
	top: 66px;
	left: 0;
	width: 326px;
	padding: 10px;
	border: 1px solid #d5e5f0;
	border-radius: 0 0 10px 10px;
	background: rgba(255,255,255,.985);
	box-shadow: 0 18px 40px rgba(31, 88, 139, .17);
}
.tb2b-tree-root > .tb2b-tree-node:nth-last-child(-n+2) > .tb2b-tree-branch { right: 0; left: auto; }
.tb2b-tree-children { display: grid; gap: 3px; }
.tb2b-tree-children.is-drilled > .tb2b-tree-node:not(.is-open) { display: none; }
.tb2b-tree-children > .tb2b-tree-node > .tb2b-tree-row { min-height: 43px; border-radius: 6px; }
.tb2b-tree-children > .tb2b-tree-node > .tb2b-tree-row:hover { background: #f0f5ff; }
.tb2b-tree-children > .tb2b-tree-node > .tb2b-tree-row > a {
	flex: 1;
	min-width: 0;
	min-height: 43px;
	padding: 8px 9px 8px 11px;
	color: #1a467a;
	font-size: 13px;
	font-weight: 700;
	white-space: normal;
}
.tb2b-tree-children > .tb2b-tree-node > .tb2b-tree-row > .tb2b-tree-toggle {
	min-height: 43px;
	padding-right: 10px;
	padding-left: 5px;
}
.tb2b-tree-children > .tb2b-tree-node > .tb2b-tree-row > a:hover,
.tb2b-tree-children > .tb2b-tree-node > .tb2b-tree-row > a:focus-visible,
.tb2b-tree-children > .tb2b-tree-node.is-open > .tb2b-tree-row > a { color: #2a2cb2; }
.tb2b-tree-branch > .tb2b-tree-children { margin: 4px 0 5px 14px; padding-left: 12px; border-left: 1px solid #cfddff; }
.tb2b-tree-branch > .tb2b-tree-children .tb2b-tree-branch > .tb2b-tree-children { margin-left: 11px; }
.tb2b-tree-level-3 > .tb2b-tree-node > .tb2b-tree-row > a { color: #1f5da7; font-size: 12px; }
.tb2b-tree-level-4 > .tb2b-tree-node > .tb2b-tree-row > a { color: #496682; font-size: 12px; font-weight: 650; }
.tb2b-tree-level-4 > .tb2b-tree-node > .tb2b-tree-row > a::before { width: 4px; height: 4px; flex: 0 0 4px; margin-right: 8px; border-radius: 50%; background: #2a2cb2; content: ""; }

/* Unified desktop mega panels use the TOKNAV navy, blue and aqua tokens.
 * Products, Solutions, Resources and About share the same interaction and
 * visual rhythm so visitors do not have to relearn the header. */
.tb2b-tree-root > .tb2b-tree-node--unified-mega > .tb2b-unified-mega {
	position: fixed;
	z-index: 80;
	top: 76px;
	left: 50%;
	width: min(1180px, calc(100vw - 48px));
	padding: 0;
	border: 1px solid var(--tb2b-line);
	border-radius: 0 0 10px 10px;
	background: var(--tb2b-white);
	box-shadow: 0 22px 48px rgba(6, 37, 62, .2);
	transform: translateX(-50%);
}
/* Keep the last two top-level panels centered; the legacy right-alignment
 * selector for compact dropdowns must not reposition a unified mega panel. */
.tb2b-tree-root > .tb2b-tree-node--unified-mega:nth-last-child(-n+2) > .tb2b-unified-mega {
	left: 50%;
	right: auto;
}
.tb2b-unified-mega__grid {
	display: grid;
	grid-template-columns: 1.08fr 1.08fr 1.08fr .96fr;
	min-height: 314px;
}
.tb2b-unified-mega__group {
	padding: 28px 25px 23px;
	border-right: 1px solid var(--tb2b-line);
}
.tb2b-unified-mega__group > p,
.tb2b-unified-mega__feature > p {
	margin: 0 0 13px;
	color: var(--tb2b-sky);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.2;
}
.tb2b-unified-mega__group > a {
	position: relative;
	display: block;
	min-height: 68px;
	padding: 9px 25px 9px 0;
	border-top: 1px solid #e8eff4;
	color: var(--tb2b-ink);
}
.tb2b-unified-mega__group > a:first-of-type { border-top: 0; }
.tb2b-unified-mega__group > a:hover,
.tb2b-unified-mega__group > a:focus-visible { color: var(--tb2b-blue); }
.tb2b-unified-mega__group > a strong,
.tb2b-unified-mega__group > a span { display: block; }
.tb2b-unified-mega__group > a strong { font-size: 13px; line-height: 1.25; }
.tb2b-unified-mega__group > a span { margin-top: 4px; color: var(--tb2b-muted); font-size: 11px; font-weight: 500; line-height: 1.35; }
.tb2b-unified-mega__group > a b { position: absolute; top: 50%; right: 3px; color: var(--tb2b-blue); font-size: 18px; font-weight: 400; transform: translateY(-50%); }
.tb2b-unified-mega__feature {
	display: flex;
	flex-direction: column;
	padding: 28px 24px 23px;
	color: #fff;
	background: linear-gradient(145deg, var(--tb2b-navy), #0c5386);
}
.tb2b-unified-mega__feature > p { color: #90e1fa; }
.tb2b-unified-mega__feature > strong { display: block; margin: 0; font-size: 22px; letter-spacing: -.035em; line-height: 1.1; }
.tb2b-unified-mega__feature > span { display: block; margin: 12px 0 auto; color: #d5e9f6; font-size: 12px; line-height: 1.5; }
.tb2b-unified-mega__feature > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
	margin-top: 20px;
	padding: 9px 12px;
	background: var(--tb2b-aqua);
	color: var(--tb2b-navy);
	font-size: 12px;
	font-weight: 800;
}
.tb2b-unified-mega__feature > a:hover,
.tb2b-unified-mega__feature > a:focus-visible { background: #8bdef8; }
.tb2b-unified-mega__feature > .tb2b-unified-mega__text-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-height: auto;
	margin: 13px 0 0;
	padding: 0;
	background: transparent;
	color: #fff;
	font-size: 12px;
}
.tb2b-unified-mega__feature > .tb2b-unified-mega__text-link:hover,
.tb2b-unified-mega__feature > .tb2b-unified-mega__text-link:focus-visible { color: #90e1fa; background: transparent; }

@media (max-width: 1120px) {
	.tb2b-tree-root { gap: 11px; }
	.tb2b-tree-row > a { font-size: 13px; }
	.tb2b-tree-toggle { width: 23px; min-width: 23px; }
}

@media (max-width: 780px) {
	.tb2b-header__inner { flex-wrap: wrap; }
	.tb2b-mobile-menu-toggle { display: inline-flex; width: 42px; height: 40px; align-items: center; justify-content: center; gap: 5px; order: 2; margin-left: auto; padding: 0; border: 1px solid #cfe0eb; border-radius: 6px; background: #f9fcff; color: #173b63; cursor: pointer; font: inherit; font-size: 0; font-weight: 800; }
	.tb2b-header__cta { order: 4; }
	.tb2b-mobile-menu-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
	.tb2b-mobile-menu-toggle:hover, .tb2b-header.is-mobile-menu-open .tb2b-mobile-menu-toggle { border-color: #2a2cb2; color: #2a2cb2; }
	.tb2b-mobile-menu-toggle:focus-visible { outline: 3px solid #25b6e9; outline-offset: 3px; }
	.tb2b-tree-nav { display: none; width: 100%; margin: -1px 0 0; order: 5; border-top: 1px solid #dce8f0; }
	.tb2b-header.is-mobile-menu-open .tb2b-tree-nav { display: block; }
	.tb2b-tree-root { display: block; }
	.tb2b-tree-root > .tb2b-tree-node { border-bottom: 1px solid #dce8f0; }
	.tb2b-tree-row > a { flex: 1; min-height: 50px; font-size: 14px; }
	.tb2b-tree-toggle { min-height: 50px; padding-right: 16px; }
	.tb2b-tree-root > .tb2b-tree-node > .tb2b-tree-branch {
		position: static;
		width: auto;
		margin: 0 0 12px;
		padding: 8px;
		border: 0;
		border-radius: 7px;
		background: #f3f9fd;
		box-shadow: none;
	}
	.tb2b-tree-root > .tb2b-tree-node--unified-mega > .tb2b-unified-mega {
		position: static;
		width: auto;
		margin: 0 0 12px;
		padding: 0;
		border: 0;
		border-radius: 7px;
		box-shadow: none;
		transform: none;
	}
	.tb2b-unified-mega__grid { grid-template-columns: 1fr; }
	.tb2b-unified-mega__group { padding: 18px 16px 10px; border-right: 0; border-bottom: 1px solid var(--tb2b-line); }
	.tb2b-unified-mega__group > a { min-height: 54px; }
	.tb2b-unified-mega__feature { min-height: 205px; padding: 21px 16px; }
	.tb2b-tree-root > .tb2b-tree-node:nth-last-child(-n+2) > .tb2b-tree-branch { right: auto; }
	.tb2b-tree-branch > .tb2b-tree-children { margin-left: 9px; padding-left: 9px; }
	.tb2b-tree-children > .tb2b-tree-node > .tb2b-tree-row > a { min-height: 42px; }
}
