/* clip keeps wide carousels from causing a horizontal scrollbar
   without turning the body into a scroll container, which would
   stop the header from sticking. */
html,
body {
	overflow-x: clip;
}

:root {
	--logo-width: 118px;
	--logo-pad: 28px;
	--logo-radius: 20px;
	--logo-hang: 0px;
	--logo-inset: 0px;
}

@media (max-width: 1279.98px) {
	:root {
		--logo-width: 96px;
	}
}

@media (min-width: 992px) and (max-width: 1279.98px) {
	.site-header #navbarSupportedContentDesktop .nav-link {
		font-size: 13px;
		margin-left: 4px;
		margin-right: 4px;
	}

	.site-header #searchpc {
		min-width: 0;
	}

	.site-header #searchinput {
		width: 108px;
	}
}

@media (min-width: 992px) and (max-width: 1049.98px) {
	.site-header #searchinput {
		width: 72px;
	}
}

@media (min-width: 1280px) {
	.site-header #navbarSupportedContentDesktop .nav-link {
		margin-left: 6px;
		margin-right: 6px;
	}

	.site-header #searchpc {
		min-width: 0;
	}

	.site-header #searchinput {
		width: 108px;
	}
}

@media (max-width: 991.98px) {
	:root {
		/* Keep the hanging tab compact so it does not cover hero copy. */
		--logo-width: 48px;
		--logo-pad: 10px;
		--logo-radius: 12px;
		--logo-inset: 12px;
		/* Tab hangs below the 45px top bar. 454/640 is the lockup's aspect ratio. */
		--logo-hang: calc((var(--logo-width) * 454 / 640) + (var(--logo-pad) * 2) - 45px);
	}
}

@media (max-width: 399.98px) {
	:root {
		--logo-width: 42px;
		--logo-pad: 8px;
		--logo-inset: 12px;
	}

	.site-header #shortcuts p {
		padding-left: 4px;
	}
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1030;
}

.site-header .topbar {
	background: #fff;
	margin-top: 0;
	position: relative;
	z-index: 2;
}

.site-header .topbar .row {
	align-items: stretch;
	flex-wrap: nowrap;
}

.site-header #homelogo {
	align-self: stretch;
	flex: 0 0 auto;
	left: 0;
	margin: 0;
	max-width: none;
	padding: 0;
	position: relative;
	width: calc(var(--logo-width) + (var(--logo-pad) * 2));
	z-index: 3;
}

.site-header #shortcuts {
	flex: 1 1 auto;
	max-width: none;
	min-width: 0;
	width: auto;
}

.nav-logo-tab {
	background: #fff;
	border-radius: 0 0 var(--logo-radius) var(--logo-radius);
	display: block;
	left: var(--logo-inset);
	line-height: 0;
	padding: var(--logo-pad);
	position: absolute;
	text-decoration: none;
	top: 0;
}

.site-header #homelogo .nav-logo-tab img {
	display: block;
	height: auto;
	max-width: none;
	width: var(--logo-width);
}

.site-header .navbar {
	position: relative;
	z-index: 1;
}

@media (min-width: 992px) {
	.site-header #navbarSupportedContentDesktop {
		box-sizing: border-box;
		padding-left: calc(var(--logo-width) + (var(--logo-pad) * 2) + 16px);
	}
}

@media (max-width: 991.98px) {
	.site-header #navbarSupportedContentMobile.show,
	.site-header #navbarSupportedContentMobile.collapsing {
		padding-top: calc(var(--logo-hang) + 8px);
	}
}

@media (max-width: 575.98px) {
	.site-header .topbar > .container {
		margin-left: 0;
		margin-right: 0;
	}

	.site-header #shortcuts p {
		gap: 4px;
	}

	.site-header #login,
	.site-header #signup,
	.site-header #apibutton {
		margin: 0;
		padding-left: 6px;
		padding-right: 6px;
	}
}

/* Lisa's fixes, Oct 2026 */

/* Even nav spacing now the search box is gone. */
@media (min-width: 992px) {
	.site-header #navbarSupportedContentDesktop .navbar-nav {
		flex: 1 1 auto;
		justify-content: space-between;
	}
}

/* Dropdowns: as wide as their text, never narrower than the toggle,
   left edge lined up with the toggle. */
.site-header .dropdown-menu {
	left: 0;
	min-width: 100%;
	width: max-content;
}

.site-header .dropdown-menu .dropdown-item {
	margin: 0;
	padding: 8px 20px;
	white-space: nowrap;
}

@media (max-width: 991.98px) {
	.site-header .dropdown-menu {
		width: 100%;
	}
}

/* Logo tab stays visible on white pages. */
.nav-logo-tab {
	box-shadow: 0 4px 14px rgba(42, 68, 81, 0.18);
}

/* Compact header after scrolling: the bar stays, the logo shrinks into it. */
:root {
	--logo-transition: 0.25s ease;
}

.nav-logo-tab,
.site-header #homelogo,
.site-header #homelogo .nav-logo-tab img,
.site-header #navbarSupportedContentDesktop {
	transition: padding var(--logo-transition), width var(--logo-transition), border-radius var(--logo-transition);
}

.site-header.is-compact {
	--logo-width: 54px;
	--logo-pad: 8px;
	--logo-radius: 10px;
	--logo-hang: 0px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header.is-compact .nav-logo-tab {
	box-shadow: none;
}

/* Keep nav items still while the logo shrinks. Resolved on :root,
   so the compact logo size does not change it. */
:root {
	--nav-offset: calc(var(--logo-width) + (var(--logo-pad) * 2) + 16px);
}

@media (min-width: 992px) {
	.site-header #navbarSupportedContentDesktop {
		padding-left: var(--nav-offset);
	}
}

/* The homepage hero is dark, so the logo tab needs no shadow there. */
body.page-homepage .nav-logo-tab {
	box-shadow: none;
}

/* Dropdown items fill the menu edge to edge, and the menu lines up
   with the left edge of its nav item's highlight. */
.site-header #navbarSupportedContentDesktop .dropdown-menu {
	border: 0;
	left: 0;
	margin-left: 0;
	right: auto;
}

.site-header #navbarSupportedContentDesktop .dropdown-menu .dropdown-item {
	box-sizing: border-box;
	display: block;
	margin: 0;
	padding: 8px 20px;
	text-align: left;
	width: 100%;
}

/* Collapsed header after scrolling: the white contact bar goes away and
   a single blue bar remains, with a small logo chip on the left. */
.site-header .topbar {
	max-height: 200px;
	transition: max-height 0.3s ease, background-color 0.3s ease;
}

.site-header #shortcuts p > *:not(#mobile-menu-button):not(#mobile-talk-to-us) {
	transition: opacity 0.2s ease;
}

/* Compact-bar CTA: hidden until mobile scroll collapses the header. */
#mobile-talk-to-us {
	align-items: center;
	background: #a3bd3d;
	border-radius: 25px;
	color: #ffffff;
	display: none;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	margin: 0;
	padding: 9px 14px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

#mobile-talk-to-us:hover,
#mobile-talk-to-us:focus {
	background: #89a22a;
	color: #ffffff;
}

.site-header.is-compact {
	--logo-width: 46px;
	--logo-pad: 5px;
	--logo-radius: 6px;
	--logo-hang: 0px;
}

.site-header.is-compact .nav-logo-tab {
	box-shadow: none;
	padding: 5px 9px;
	top: 4px;
}

/* Desktop: hide the contact bar completely. */
@media (min-width: 992px) {
	.site-header.is-compact .topbar {
		max-height: 0;
		overflow: visible;
	}

	.site-header.is-compact #shortcuts {
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
	}
}

/* Mobile: the bar turns blue and keeps the logo, Talk to us, and menu button. */
@media (max-width: 991.98px) {
	.site-header.is-compact .topbar {
		background: #2a4451;
	}

	.site-header.is-compact #shortcuts p > *:not(#mobile-menu-button):not(#mobile-talk-to-us) {
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
	}

	.site-header.is-compact #mobile-talk-to-us {
		display: inline-flex;
	}
}

@media (max-width: 399.98px) {
	.site-header.is-compact #mobile-talk-to-us {
		font-size: 11px;
		padding: 8px 12px;
	}
}

/* Dropdown sits flush under its tab and never jumps, whether opened by
   hover or by click (Bootstrap's positioning is overridden). */
@media (min-width: 992px) {
	.site-header #navbarSupportedContentDesktop .dropdown-menu {
		inset: 100% auto auto 0 !important;
		margin: 0 !important;
		position: absolute !important;
		transform: none !important;
	}
}

/* Tabs fill the blue bar exactly, so the open menu starts at the bar's
   bottom edge with no strip of tab colour hanging below it. */
@media (min-width: 992px) {
	.site-header #navbarSupportedContentDesktop .navbar-nav {
		align-items: stretch;
	}

	.site-header #navbarSupportedContentDesktop .navbar-nav > .nav-item {
		padding-bottom: 0;
		padding-top: 0;
	}

	.site-header #navbarSupportedContentDesktop .navbar-nav > .nav-item > .nav-link {
		padding-bottom: 10px;
		padding-top: 10px;
	}
}

/* Collapsed bar: logo chip touches the top edge and is a bit bigger. */
.site-header.is-compact {
	--logo-width: 58px;
}

.site-header.is-compact .nav-logo-tab {
	border-radius: 0 0 8px 8px;
	padding: 5px 10px 6px;
	top: 0;
}

/* Mobile: keep the same logo size on scroll — only the bar changes. */
@media (max-width: 991.98px) {
	.site-header.is-compact {
		--logo-width: 48px;
		--logo-pad: 10px;
		--logo-radius: 12px;
		--logo-inset: 12px;
	}

	.site-header.is-compact .nav-logo-tab {
		border-radius: 0 0 var(--logo-radius) var(--logo-radius);
		padding: var(--logo-pad);
		top: 0;
	}
}

@media (max-width: 399.98px) {
	.site-header.is-compact {
		--logo-width: 42px;
		--logo-pad: 8px;
		--logo-radius: 12px;
		--logo-inset: 12px;
	}
}

/* The hidden contact bar must not sit over the nav and catch clicks. */
@media (min-width: 992px) {
	.site-header.is-compact .topbar {
		pointer-events: none;
	}

	.site-header.is-compact .nav-logo-tab {
		pointer-events: auto;
	}
}

/* Dropdown items share the .nav-link class, which paints a 4px tab
   strip above the link on hover. That strip is the bar that showed
   between the tab and the first item, so turn it off inside menus. */
.site-header .dropdown-menu .dropdown-item::before,
.site-header .dropdown-menu .dropdown-item:hover::before {
	content: none;
	display: none;
}
