/* The sign-up pages' top bar, the same as /sign-up's (Thomas, 2026-11-22). It loads from the page's styles list, so it
   is in the server-rendered head. The wrapper keeps the bar's height in the page flow, so the fixed bar on phones
   doesn't cover what is under it. */
.sign-up-bar {
	/* The site nav's height: 45px, 52px below 992px, 48px below 480px (overrides.css has the same; /new-sign-up doesn't load it) */
	--nav-height: 45px;
	width: 100%;
	height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
}

@media (max-width: 991px) {
	.sign-up-bar {
		--nav-height: 52px;
	}
}

@media (max-width: 479px) {
	.sign-up-bar {
		--nav-height: 48px;
	}
}

.sign-up-bar__bar {
	position: relative;
	z-index: var(--z-nav, 200);
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: env(safe-area-inset-top, 0px) 16px 0;
	background-color: var(--palette-gray-25);
}

.sign-up-bar__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1440px;
	box-sizing: border-box;
}

@media (min-width: 1440px) {
	.sign-up-bar__content {
		padding: 0 16px;
	}
}

.sign-up-bar__home {
	display: flex;
}

.sign-up-bar__end {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sign-up-bar__switch {
	display: flex;
}

.sign-up-bar__mark {
	display: none;
}

@media (max-width: 991px) {
	.sign-up-bar__bar {
		padding: env(safe-area-inset-top, 0px) 24px 0;
	}

	.sign-up-bar__logo {
		display: none;
	}

	.sign-up-bar__mark {
		display: block;
	}
}

/* Phones, 767px and under (devices.mobile.down, as /sign-up): fixed to the top, the language strip on its own row above
   the nav-height logo row, as the homepage does on phones (Thomas, 2026-11-22) */
.sign-up-bar__strip {
	display: none;
}

@media (max-width: 767px) {
	.sign-up-bar {
		--lang-strip: 28px;
		height: calc(var(--nav-height) + var(--lang-strip) + env(safe-area-inset-top, 0px));
	}

	.sign-up-bar__bar {
		position: fixed;
		top: 0;
		left: 0;
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		height: calc(var(--nav-height) + var(--lang-strip) + env(safe-area-inset-top, 0px));
		padding: env(safe-area-inset-top, 0px) 0 0;
	}

	.sign-up-bar__strip {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		box-sizing: border-box;
		height: var(--lang-strip);
		padding: 0 16px;
		background-color: var(--palette-gray-25);
		border-bottom: 1px solid var(--palette-black-a6);
	}

	.sign-up-bar__strip-label {
		font-size: 0.75rem;
		line-height: var(--type-caption-line, 14.5px);
		font-weight: 400;
		color: var(--palette-black-a65);
	}

	.sign-up-bar__content {
		height: var(--nav-height);
		padding: 0 24px;
	}

	/* The nav-size switch moves into the strip */
	.sign-up-bar__switch--nav {
		display: none;
	}
}

@media (max-width: 479px) {
	.sign-up-bar__content {
		padding: 0 16px;
	}
}

/* The clear bar (Thomas, 2026-11-22): no fill above 767px, so the page's background runs up behind it. On phones it has the
   gray-25 fill again, as /sign-up's bar, so the language row stays clear of the map under it (Thomas, 2026-11-22). */
@media (min-width: 768px) {
	.sign-up-bar--clear .sign-up-bar__bar {
		background-color: transparent;
	}
}

/* An extra control after the switch (the close button on /new-sign-up) shows on phones only, 767px and under */
@media (min-width: 768px) {
	.sign-up-bar__end > .sign-up-bar__phone-only {
		display: none;
	}
}

/* Already have an account and Log in, as /new-sign-up's (.su-login and .su-pill): the homepage nav's gray 5% fill, 1px
   clear border, 4px corners, 12px 600 type and the user icon at an 8px gap; 32px high and 14px on phones, with only Log in */
.sign-up-bar__login {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--palette-blue-625);
	font-size: 12px;
	line-height: 16px;
}

.sign-up-bar__pill {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	gap: 8px;
	height: 26px;
	padding: 4px 12px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: rgba(9, 10, 12, 0.05);
	color: rgb(9, 10, 12);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.28571;
	text-decoration: none;
	/* Hover and focus match the new sign-up nav pill (.su-root .su-pill) and the live site-nav
	   Log in: grey 10% fill, transparent border, no glow. Thomas, 8:16 PM 2026-11-27. */
	transition:
		background-color 0.2s cubic-bezier(0.65, 0, 0.35, 1),
		border-color 0.2s cubic-bezier(0.65, 0, 0.35, 1),
		box-shadow 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.sign-up-bar__pill:hover {
	border-color: transparent;
	background: rgba(9, 10, 12, 0.1);
	box-shadow: none;
	color: var(--palette-ink);
}

.sign-up-bar__pill:focus-visible {
	border-color: transparent;
	box-shadow: none;
}

.sign-up-bar__pill svg {
	width: 12.8px;
	height: 12.8px;
}

@media (max-width: 767px) {
	.sign-up-bar__login > span {
		display: none;
	}

	.sign-up-bar__pill {
		height: 32px;
		padding: 0 10px;
		font-size: 14px;
	}
}
