.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	max-width: 1264px;
	padding-left: 24px;
	padding-right: 24px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	padding-top: 16px;
	padding-bottom: 16px;
}

.site-header__logo img { width: 179px; height: 40px; }

.site-header__nav { flex: 1; margin-left: 40px; }

.site-header__menu {
	display: flex;
	align-items: center;
	gap: 48px;
}

/* Nav links sit inside <li> (list-item, an inline formatting context) and
   Login is a bare flex item — two different layout contexts that kept
   producing mismatched heights no matter how precisely padding/line-height
   were matched (inline-block's baseline strut behaves differently per
   context, and an explicit height fought with padding under
   box-sizing:border-box, which is what caused the border-bottom to render
   through the middle of the text instead of under it). display:flex on
   both the <li> and the <a> itself sidesteps all of that: flexbox sizes
   and centers purely by box geometry, not text baseline/struts, so it's
   identical regardless of markup context or font metrics. No explicit
   height needed — line-height + padding + border determine it naturally. */
.site-header__menu li {
	display: flex;
	align-items: center;
}
.site-header__menu a {
	display: flex;
	align-items: center;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	color: #151516;
	padding: 12px 0;
	border-bottom: 2px solid transparent;
}
.site-header__menu a:hover { color: var(--color-purple); border-bottom-color: var(--color-purple); }

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-header__login {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #000000;
	padding: 12px 0;
	border-bottom: 2px solid transparent;
}
.site-header__login:hover { color: var(--color-purple); border-bottom-color: var(--color-purple); }

.site-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	color: #ffffff;
	background: var(--color-purple);
	border-radius: var(--radius-pill);
	padding: 10px 20px;
}
.site-header__cta:hover { background: var(--color-purple-dark); }
.site-header__cta-chevron {
	width: 11px;
	height: 11px;
	fill: currentColor;
}

/* Mobile-only group: small CTA + hamburger, pushed to the right edge of
   the header row so the hamburger isn't sitting right next to the logo. */
.site-header__mobile-actions { display: none; }
.site-header__mobile-cta {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	color: #ffffff;
	background: var(--color-purple);
	border-radius: var(--radius-pill);
	padding: 8px 14px;
}
.site-header__mobile-cta:hover { background: var(--color-purple-dark); }

.site-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 44px;
	height: 44px;
}
.site-header__toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: var(--color-ink);
}

/* Slide down/up as an overlay, not in normal flow: position:absolute
   (anchored to .site-header, which is already a positioned element via
   position:sticky) takes it out of the document so expanding it can
   never push the page content below the header down — it floats over
   whatever's underneath instead, closer to how most mobile nav drawers
   behave. max-height is an arbitrary upper bound comfortably above the
   menu's real content height (nav items + login + CTA); overflow:hidden
   clips it to 0 when collapsed and the transition animates toward its
   natural height when opened. border-top-width is animated alongside so
   the divider line doesn't sit there as a stray 1px sliver while the
   panel is collapsed. */
.mobile-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	padding: 0 24px;
	border-top: 0 solid var(--color-border);
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.18);
	transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease, border-top-width 0.3s ease;
}
.mobile-menu.is-open {
	max-height: 600px;
	opacity: 1;
	padding: 8px 24px 24px;
	border-top-width: 1px;
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mobile-menu__list a {
	display: block;
	padding: 12px 0;
	font-weight: 500;
	font-size: 16px;
	border-bottom: 1px solid var(--color-border);
}

.mobile-menu__login,
.mobile-menu__cta {
	display: block;
	text-align: center;
	margin-top: 16px;
	padding: 12px;
	border-radius: var(--radius-pill);
	font-weight: 600;
}
.mobile-menu__login { border: 1px solid var(--color-border); }
.mobile-menu__cta { background: var(--color-purple); color: #ffffff; }

@media (max-width: 900px) {
	.site-header__nav,
	.site-header__actions {
		display: none;
	}
	.site-header__mobile-actions {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
	}
	.site-header__toggle { display: flex; }
	.site-header__inner { padding-top: 12px; padding-bottom: 12px; }
}
