/* ============================================================
   New look - header, European sites (de, fr, it, se)
   Loaded after master's new-look/header.css, which stays as it is. The European product names are the local
   search terms of each country (Barrierefreiheitstest-Plattform, Plateforme de test d'accessibilité web...),
   longer than the English ones, so the bar and menus get a little more room here. Nothing wraps or overlaps
   at any width.
   ============================================================ */

/* ---------- The bar ---------- */
/* Master's logo (the full tabnav wordmark), at master's size */
.tnv-new .site-header__logo-svg {
	height: 22px;
	width: auto;
}

.tnv-new .site-header__nav-link,
.tnv-new .site-header__login,
.tnv-new .site-header__btn {
	white-space: nowrap;
}

/* Narrow desktops: tighter gaps and a slightly smaller label size, so the menu, Login, the quote link, the
   trial button and the language switcher keep clear of each other */
@media (min-width: 971px) and (max-width: 1199px) {
	.tnv-new .site-header__nav-list {
		gap: 22px;
	}

	.tnv-new .site-header__nav-link,
	.tnv-new .site-header__login,
	.tnv-new .site-header__btn {
		font-size: 14px;
	}

	.tnv-new .site-header__actions {
		gap: 10px;
	}

	.tnv-new .site-header__login {
		padding-inline: 4px;
	}

	.tnv-new .site-header__btn--outline {
		padding-inline: 4px;
	}

	.tnv-new .site-header__btn--outline .site-header__btn-arrow {
		display: none;
	}

	.tnv-new .site-header__btn--primary {
		padding-inline: 14px;
	}
}

@media (min-width: 971px) and (max-width: 1099px) {
	.tnv-new .site-header__inner {
		padding-inline: 16px;
	}

	.tnv-new .site-header__nav-list {
		gap: 16px;
	}

	.tnv-new .site-header__nav-link,
	.tnv-new .site-header__login,
	.tnv-new .site-header__btn {
		font-size: 13.5px;
	}

	.tnv-new .site-header__actions {
		gap: 8px;
	}
}

/* ---------- Solutions mega menu: two columns of items at every desktop width ---------- */
@media (min-width: 971px) {
	.tnv-new .site-header__mega-content {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.tnv-new .site-header__mega-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tnv-new .site-header__mega-item {
		padding: 20px 24px;
	}

	.tnv-new .site-header__mega-item:nth-child(n) {
		border-bottom: 1px solid #e6e7ea;
		border-inline-start: 1px solid #e6e7ea;
	}

	.tnv-new .site-header__mega-item:nth-child(2n + 1) {
		border-inline-start: 0;
	}

	.tnv-new .site-header__mega-item:nth-last-child(-n + 2) {
		border-bottom: 0;
	}

	.tnv-new .site-header__mega-item-title {
		white-space: nowrap;
	}

	.tnv-new .site-header__mega-promo {
		padding-inline: 24px;
	}

	.tnv-new .site-header__mega-cta-text {
		white-space: nowrap;
	}
}

/* Below 1200px the items take the whole width; the Explore promo (a contact link) steps aside */
@media (min-width: 971px) and (max-width: 1199px) {
	.tnv-new .site-header__mega-content {
		grid-template-columns: minmax(0, 1fr);
	}

	.tnv-new .site-header__mega-right {
		display: none;
	}

	.tnv-new .site-header__mega-item-title {
		font-size: 0.9375rem;
	}
}

/* ---------- Pricing menu, in the new look of the Solutions menu ----------
   A flat white panel hanging straight from the bar's bottom line (no gap, no shadow, thin lines only),
   the products in ruled rows with quiet icon tiles, and the custom-quote strip along the foot.
   Wide enough for the local product names on one line; descriptions on one line, two at most. */
@media (min-width: 971px) {
	/* The menu is placed from its nav item, which sits centred in the 68px bar: half the item plus 35px
	   lands it on the bar's bottom line at any label size */
	.tnv-new .site-header__dropdown.site-header__pricing-menu {
		top: calc(50% + 35px);
		width: 480px;
		margin-top: 0;
		overflow: hidden;
		border: 1px solid #e6e7ea;
		border-top: 0;
		border-radius: 0 0 16px 16px;
		background: #ffffff;
		box-shadow: none;
		font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	}

	.tnv-new .site-header__pricing-title {
		margin: 0;
		padding: 22px 28px 16px;
		border-bottom: 1px solid #e6e7ea;
		color: #66656f;
		font-size: 0.9375rem;
		font-weight: 400;
	}

	.tnv-new .site-header__pricing-list {
		gap: 0;
		padding: 0;
	}

	.tnv-new .site-header__pricing-item {
		align-items: center;
		gap: 14px;
		padding: 18px 28px;
		border-radius: 0;
		transition: background-color 0.15s ease;
	}

	.tnv-new .site-header__pricing-item + .site-header__pricing-item {
		border-top: 1px solid #e6e7ea;
	}

	.tnv-new .site-header__pricing-item:hover,
	.tnv-new .site-header__pricing-item:focus-visible {
		background-color: #f8f8fb;
	}

	.tnv-new .site-header__pricing-item:focus-visible {
		outline: 3px solid #8e56dc;
		outline-offset: -3px;
	}

	/* Quiet icons, as in the Solutions menu: a light grey tile with a thin line, purple on hover or focus */
	.tnv-new .site-header__pricing-icon {
		width: 40px;
		height: 40px;
		margin-top: 0;
		border: 1px solid #e6e7ea;
		border-radius: 10px;
		background-color: #f8f8fb;
		color: #4a4858;
		transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
	}

	.tnv-new .site-header__pricing-icon svg {
		width: 22px;
		height: 22px;
	}

	.tnv-new .site-header__pricing-icon svg [stroke]:not([stroke="none"]) {
		stroke: currentColor;
	}

	.tnv-new .site-header__pricing-icon svg [fill]:not([fill="none"]):not([fill="white"]):not([fill="#fff"]):not([fill="#FFF"]):not([fill="#ffffff"]) {
		fill: currentColor;
	}

	.tnv-new .site-header__pricing-item:hover .site-header__pricing-icon,
	.tnv-new .site-header__pricing-item:focus-visible .site-header__pricing-icon {
		border-color: #ddd0f3;
		background-color: #f7f2fe;
		color: #7b3bd6;
	}

	.tnv-new .site-header__pricing-text {
		min-width: 0;
		padding-top: 0;
	}

	.tnv-new .site-header__pricing-item-title {
		color: #2c2b36;
		font-size: 1rem;
		font-weight: 500;
		white-space: nowrap;
		transition: color 0.15s ease;
	}

	.tnv-new .site-header__pricing-item:hover .site-header__pricing-item-title {
		color: #7b3bd6;
	}

	.tnv-new .site-header__pricing-item-desc {
		display: -webkit-box;
		margin-top: 2px;
		overflow: hidden;
		color: #66656f;
		font-size: 0.875rem;
		line-height: 1.45;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	/* The custom-quote strip: soft grey, like the scan strip under the Solutions menu */
	.tnv-new .site-header__pricing-cta {
		gap: 16px;
		padding: 14px 28px;
		border-top: 1px solid #e6e7ea;
		border-radius: 0;
		background-color: #f8f8fb;
	}

	.tnv-new .site-header__pricing-cta-icon {
		width: 32px;
		height: 32px;
		border: 1px solid #e6e7ea;
		background-color: #ffffff;
	}

	.tnv-new .site-header__pricing-cta-icon svg {
		width: 18px;
		height: 18px;
	}

	.tnv-new .site-header__pricing-cta-icon svg [stroke]:not([stroke="none"]) {
		stroke: #4a4858;
	}

	.tnv-new .site-header__pricing-cta-icon svg [fill]:not([fill="none"]) {
		fill: #4a4858;
	}

	.tnv-new .site-header__pricing-cta-text {
		color: #2c2b36;
		font-size: 0.875rem;
		font-weight: 500;
		white-space: nowrap;
	}

	.tnv-new .site-header__pricing-cta-btn {
		min-height: 40px;
		padding: 8px 20px;
		border-radius: 48px;
		background-color: #8e56dc;
		color: #ffffff;
		font-size: 0.875rem;
		font-weight: 500;
		white-space: nowrap;
	}

	.tnv-new .site-header__pricing-cta-btn:hover {
		background-color: #7b3bd6;
	}
}

/* ---------- Language menu: kept inside the window ---------- */
@media (min-width: 971px) {
	.tnv-new .site-header__language-dropdown {
		right: 0;
	}
}

/* ---------- Phones and tablets ----------
   (site-header.css switches to the hamburger at 990px, master's header.css restyles from 970px) */
@media (max-width: 990px) {
	/* Room between the quote pill and the hamburger */
	.tnv-new .site-header__actions {
		margin-inline-end: 8px;
	}

	.tnv-new .site-header__btn--outline {
		white-space: nowrap;
	}

	/* The long local product names stay on one line in the phone menu */
	.tnv-new .site-header__mobile-menu-title {
		font-size: 14.5px;
		white-space: nowrap;
	}

	.tnv-new .site-header__mobile-menu-text {
		min-width: 0;
	}
}

/* Small phones: master's wider wordmark, the quote pill and the hamburger keep clear of each other */
@media (max-width: 430px) {
	.tnv-new .site-header__logo-svg {
		height: 19px;
	}

	.tnv-new .site-header__btn--outline {
		padding: 6px 12px;
		font-size: 13.5px;
	}
}

/* ---------- Contact us is the navbar's only button (no free-trial button) ----------
   Login stays small text beside it on desktop; on phones Contact us is the pill in the bar */
@media (max-width: 990px) {
	.tnv-new .site-header__btn--primary {
		display: inline-flex;
		padding: 6px 14px;
		border-radius: 48px;
		font-size: 14px;
		white-space: nowrap;
	}
}

@media (max-width: 430px) {
	.tnv-new .site-header__btn--primary {
		padding: 6px 12px;
		font-size: 13.5px;
	}
}
