/* clean-code-exception:magic_number stylesheet -- CSS geometry literals are measured figma values, not registry values */
.redesign_nav {
	position: sticky;
	top: var(--nav_bar_sticky_top_STICKY_not_fixed_so_the_bar_keeps_its_60px_of_flow);
	width: 100%;
	padding-top: var(--android_safe_top, 0px);
	z-index: 2;
}

.redesign_nav_backdrop {
	position: absolute;
	top: -50px;
	right: 0;
	left: 0;
	height: calc(110px + var(--android_safe_top, 0px));
	background: var(--color_menu_surface);
	z-index: 0;
}

.redesign_nav_bar {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 60px;
	padding: 0 20px;
	box-sizing: border-box;
	direction: ltr;
}

.redesign_nav_logo {
	z-index: 11;
	position: relative;
}

.redesign_nav_logo img {
	display: block;
	width: 96.6px;
	height: 28px;
}

.redesign_nav_toggle_group {
	position: relative;
	width: 40px;
	height: 40px;
}

.redesign_nav_toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--nav_toggle_line_gap_that_puts_the_drawn_6px_between_line_CENTRES);
	width: 40px;
	height: 40px;
	border: 2px solid var(--color_nav_toggle_edge);
	border-radius: 300px;
}

.redesign_nav_toggle_line {
	display: block;
	width: 16.5px;
	height: var(--nav_toggle_line_thickness);
	background: var(--color_white_900);
}

.redesign_menu_wrap {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: var(--color_menu_surface);
	overflow: hidden;
	z-index: 10;
}

.redesign_menu_inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: min(var(--reading_column_max_width), 100% - 2 * var(--column_gutter_narrow));
	height: 100%;
	margin: 0 auto;
	padding: 104px 20px 80px;
	box-sizing: border-box;
	gap: 60px;
	overflow-y: auto;
}

.redesign_menu_close {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 2px solid var(--color_nav_toggle_edge);
	border-radius: 300px;
	cursor: pointer;
	z-index: 11;
}

.redesign_nav_toggle_group:has(.redesign_menu_wrap[aria-hidden="false"]) .redesign_menu_close {
	display: flex;
}

.redesign_menu_close_icon {
	display: block;
	width: 24px;
	height: 24px;
}

.redesign_menu_primary {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 300px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.redesign_menu_primary a,
.redesign_menu_secondary a {
	display: block;
}

.redesign_menu_primary a {
	padding: 16px 0;
	font-size: 24px;
	font-weight: var(--font_weight_regular);
	line-height: 24px;
	color: var(--color_white_900);
	text-align: center;
}

.redesign_menu_secondary {
	list-style: none;
	margin: var(--menu_slack_is_the_ONE_gap_the_frame_stretches_so_the_other_three_stay_at_120_60_80) 0 0;
	padding: 0;
	width: 170px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.redesign_menu_secondary a {
	padding: 8px 0;
	font-size: 16px;
	font-weight: var(--font_weight_regular);
	line-height: 24px;
	color: var(--color_menu_muted);
	text-align: center;
}

.redesign_menu_social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.redesign_nav_desktop,
.redesign_nav_login {
	display: none;
}

@media (min-width: 1024px) {
	.redesign_nav_bar {
		direction: rtl;
		height: var(--desktop_nav_bar_height);
		padding: 0;
		max-width: calc(100% - 2 * var(--desktop_nav_row_side_gutter));
		margin: 0 auto;
	}

	.redesign_nav_backdrop {
		top: 0;
		height: var(--desktop_nav_bar_height);
		background: var(--desktop_nav_bar_background);
	}

	.redesign_nav_toggle_group {
		display: none;
	}

	.redesign_nav_desktop {
		display: block;
	}

	/* The 20px Alexander drew between a word and the separator is now 8 of gap + 12 of link
	   padding, so every glyph stays on its measured x while the hit box grows to the pill's
	   full 48. Changing one without the other moves the words. */
	.redesign_nav_desktop_links {
		--metallic_edge_angle_primary: 282deg;
		--metallic_edge_angle_secondary: 104deg;
		display: flex;
		align-items: center;
		gap: 8px;
		width: 380px;
		height: 48px;
		margin: 0;
		padding: 0;
		list-style: none;
		justify-content: center;
		border-radius: 12px;
	}

	.redesign_nav_desktop_separator {
		width: 1px;
		height: 8px;
		background: var(--color_button_ghost_edge_wash);
	}

	.redesign_nav_desktop_links a {
		display: flex;
		align-items: center;
		height: 48px;
		padding: 0 12px;
		font-size: var(--font_size_h7);
		line-height: var(--line_height_body_md);
		font-weight: var(--font_weight_regular);
		color: var(--color_white_900);
	}

	.redesign_nav_login {
		--metallic_edge_angle_primary: 306deg;
		--metallic_edge_angle_secondary: 130deg;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 108px;
		height: 48px;
		padding: 0 16px 0 12px;
		border-radius: 300px;
	}

	.redesign_nav_login_glyph {
		flex: none;
		width: 24px;
		height: 24px;
	}

	.redesign_nav_login_label {
		font-size: var(--font_size_h7);
		line-height: var(--line_height_body_md);
		color: var(--color_white_900);
	}

	.redesign_nav_logo img {
		width: 138px;
		height: 40px;
	}
}

