/* ===========================================================================
 * Shared phosphor nav — case study pages
 *
 * The case-study layout (app/views/layouts/case_study.html.haml) loads only
 * the per-study stylesheet, not phosphor_page.css where the nav component
 * normally lives. This self-contained sheet provides the central nav
 * (shared/_phosphor_nav.haml) with the navy treatment used on the homepage,
 * and is linked only by the case-study layout. The homepage and inner
 * phosphor pages render the same partial styled from phosphor_page.css.
 * ========================================================================= */

.phosphorPage__nav {
	--nav-border: #16263F;
	--nav-link-primary: #F2EFE6;
	--nav-link-muted: #8FA3BD;
	--phosphor-bright: #9F9AFF;
	--font-nav: "Inter Tight", system-ui, sans-serif;
	--font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

	position: relative;
	z-index: 10;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 88px;
	padding: 0 64px;
	border-bottom: 1px solid var(--nav-border);
	box-sizing: border-box;
}

.phosphorPage__nav *,
.phosphorPage__nav *::before,
.phosphorPage__nav *::after { box-sizing: border-box; }

.phosphorPage__brand {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	height: 52px;
	text-decoration: none;
}

.phosphorPage__brandLogo {
	display: block;
	width: 123px;
	height: 39px;
	object-fit: contain;
	object-position: left center;
}

.phosphorPage__navRight {
	display: flex;
	align-items: center;
	gap: 40px;
}

.phosphorPage__links {
	display: flex;
	align-items: center;
	gap: 40px;
}

.phosphorPage__navLink {
	font-family: var(--font-nav);
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	text-decoration: none;
	transition: color 180ms ease;
}

.phosphorPage__navLink--primary { color: var(--nav-link-primary); }
.phosphorPage__navLink--muted { color: var(--nav-link-muted); }

.phosphorPage__navLink:hover,
.phosphorPage__navLink:focus-visible {
	color: var(--nav-link-primary);
	outline: none;
}

.phosphorPage__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	padding: 10px 20px 10px 16px;
	border: 1px solid color-mix(in srgb, var(--phosphor-bright) 45%, transparent);
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--phosphor-bright) 6%, transparent);
	color: var(--nav-link-primary);
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.phosphorPage__cta:hover,
.phosphorPage__cta:focus-visible {
	background-color: color-mix(in srgb, var(--phosphor-bright) 12%, transparent);
	border-color: color-mix(in srgb, var(--phosphor-bright) 66%, transparent);
	outline: none;
}

.phosphorPage__ctaDot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--phosphor-bright);
	box-shadow: 0 0 8px color-mix(in srgb, var(--phosphor-bright) 90%, transparent);
	animation: phosphorNavDot 2.6s ease-in-out infinite;
}

@keyframes phosphorNavDot {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
	.phosphorPage__ctaDot { animation: none; }
}

@media (max-width: 960px) {
	.phosphorPage__nav { height: 72px; padding: 0 24px; }
	.phosphorPage__links { gap: 24px; }
}

@media (max-width: 560px) {
	.phosphorPage__nav {
		flex-wrap: wrap;
		height: auto;
		min-height: 72px;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.phosphorPage__navRight {
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 16px 24px;
	}

	.phosphorPage__links {
		order: 3;
		width: 100%;
		padding-top: 12px;
	}
}
