/* Beacen Web V3 — canonical Library and SharedRoute detail surface.
   Both route kinds deliberately render through the same page, media aperture,
   handoff and responsive composition. */

.public-secondary.route-detail-v3-page {
	--home-v3-paper: #f3f0e7;
	--home-v3-paper-bright: #fffdf8;
	--home-v3-forest: #17372d;
	--home-v3-forest-deep: #07130f;
	--home-v3-acid: #d7f05a;
	--home-v3-muted: #6c7582;
	--home-v3-keyline: rgba(23, 55, 45, 0.18);
	--home-v3-serif: "Lora Variable", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--home-v3-sans: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--home-v3-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
	--route-detail-v3-tear: polygon(
		0.2% 4.2%, 9% 2.7%, 18% 4.4%, 29% 1.5%, 40% 3.8%, 52% 1.4%,
		65% 3.3%, 78% 1.1%, 89% 3.5%, 99.5% 1.9%, 98.6% 15%, 99.8% 29%,
		98.3% 43%, 99.6% 58%, 98.4% 72%, 99.5% 86%, 98.7% 98%, 89% 96.7%,
		79% 99.1%, 68% 96.9%, 57% 99.3%, 45% 96.7%, 34% 98.8%, 23% 97%,
		12% 98.9%, 0.4% 97.5%, 1.4% 84%, 0% 69%, 1.6% 54%, 0.2% 38%,
		1.4% 23%
	);
	--route-detail-v3-fibre: polygon(
		0.5% 4%, 9% 2.4%, 18% 4.2%, 29% 1.2%, 40% 3.5%, 52% 1.1%,
		65% 3%, 78% 0.8%, 89% 3.2%, 99.1% 1.6%, 98.4% 15%, 99.6% 29%,
		98.1% 43%, 99.4% 58%, 98.2% 72%, 99.3% 86%, 98.5% 98.3%, 89% 97%,
		79% 99.4%, 68% 97.2%, 57% 99.6%, 45% 97%, 34% 99.1%, 23% 97.3%,
		12% 99.2%, 0.7% 97.8%, 1.6% 84%, 0.2% 69%, 1.8% 54%, 0.4% 38%,
		1.6% 23%
	);
	min-width: 320px;
	margin: 0;
	overflow-x: clip;
	background:
		radial-gradient(ellipse at 9% 22%, transparent 0 28%, rgba(23, 55, 45, 0.026) 28.1% 28.3%, transparent 28.4%),
		radial-gradient(ellipse at 91% 74%, transparent 0 32%, rgba(23, 55, 45, 0.022) 32.1% 32.3%, transparent 32.4%),
		var(--home-v3-paper);
	color: var(--home-v3-forest);
	font-family: var(--home-v3-sans);
	font-weight: 400;
}

.route-detail-v3-page *,
.route-detail-v3-page *::before,
.route-detail-v3-page *::after {
	box-sizing: border-box;
}

.route-detail-v3-page [hidden] {
	display: none !important;
}

.route-detail-v3-page a:focus-visible,
.route-detail-v3-page button:focus-visible,
.route-detail-v3-page [tabindex="0"]:focus-visible {
	outline: 3px solid var(--home-v3-acid);
	outline-offset: 4px;
}

.route-detail-v3-page .route-detail-v3-header {
	position: relative;
	z-index: 20;
}

.route-detail-v3-page .route-detail-v3-library-link {
	border-bottom-color: transparent;
}

.route-detail-v3-page .route-detail-v3-library-link[aria-current="page"] {
	border-bottom-color: var(--home-v3-acid);
}

.public-secondary.route-detail-v3-page .route-detail-canvas,
.public-secondary.route-detail-v3-page.interior-page .route-detail-canvas {
	padding: 16px 0 0;
	background: transparent;
}

.public-secondary.route-detail-v3-page .route-detail-shell {
	width: 100%;
	max-width: none;
	margin: 0;
}

.public-secondary.route-detail-v3-page .route-detail-grid,
.public-secondary.route-detail-v3-page .public-route-grid {
	display: block;
	width: 100%;
	margin: 0;
}

.public-secondary.route-detail-v3-page .route-detail-information-panel,
.public-secondary.route-detail-v3-page.interior-page .route-detail-information-panel {
	display: block;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: transparent;
}

.public-secondary.route-detail-v3-page .route-detail-eyebrow {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 8px;
	margin: 0 24px 4px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(23, 55, 45, 0.7);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.09em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-detail-context-link {
	width: fit-content;
}

.public-secondary.route-detail-v3-page .route-detail-context-link:hover {
	color: var(--home-v3-forest);
}

.public-secondary.route-detail-v3-page .route-detail-context-arrow {
	display: inline-block;
	font-size: 1.1em;
	transition: transform 180ms ease;
}

.public-secondary.route-detail-v3-page .route-detail-context-link:hover .route-detail-context-arrow {
	transform: translateX(-3px);
}

.public-secondary.route-detail-v3-page .route-detail-information-bar,
.public-secondary.route-detail-v3-page .route-detail-information-bar-without-characteristics {
	display: grid;
	width: 100%;
	grid-template-columns: minmax(0, 70%) minmax(0, 30%);
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 12px 24px 13px;
	border-top: 1px solid var(--home-v3-keyline);
	border-bottom: 1px solid var(--home-v3-keyline);
	background: rgba(255, 253, 248, 0.34);
}

.public-secondary.route-detail-v3-page .route-detail-information-bar-without-characteristics {
	grid-template-columns: minmax(0, 1fr);
}

.public-secondary.route-detail-v3-page .route-detail-title-block {
	min-width: 0;
}

.public-secondary.route-detail-v3-page .route-detail-information-panel h1 {
	display: -webkit-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-serif);
	font-size: clamp(20px, 1.75vw, 27px);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.02;
	text-wrap: pretty;
	word-break: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.public-secondary.route-detail-v3-page .route-detail-place {
	margin: 5px 0 0;
	padding: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-detail-characteristics {
	display: flex;
	width: 100%;
	min-width: 0;
	max-width: none;
	align-self: center;
	flex-direction: column;
	justify-self: stretch;
	justify-content: center;
	justify-items: stretch;
	gap: 2px;
	padding: 1px 0 1px clamp(10px, 1.2vw, 18px);
	border: 0;
	text-align: right;
}

.public-secondary.route-detail-v3-page .route-detail-characteristics-line {
	display: block;
	width: 100%;
	margin: 0;
	overflow: hidden;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.055em;
	line-height: 1.25;
	text-align: right;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.public-secondary.route-detail-v3-page .route-detail-characteristics-line i {
	margin-inline: 0.35em;
	color: var(--home-v3-muted);
	font-style: normal;
}

.public-secondary.route-detail-v3-page .route-facts-inline {
	display: flex;
	width: 100%;
	min-width: 0;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.public-secondary.route-detail-v3-page .route-facts-inline > div {
	display: contents;
}

.public-secondary.route-detail-v3-page .route-facts-inline > div + div dd::before {
	margin-inline: 0.32rem;
	color: rgba(23, 55, 45, 0.38);
	content: "·";
}

.public-secondary.route-detail-v3-page .route-facts-inline dd {
	display: inline-flex;
	align-items: baseline;
	margin: 0;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: clamp(8.5px, 0.68vw, 9.5px);
	font-weight: 400;
	letter-spacing: 0.012em;
	line-height: 1.25;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-facts-inline > div:first-child dd {
	color: var(--home-v3-forest);
}

.public-secondary.route-detail-v3-page .route-facts-inline dd > span[aria-hidden="true"] {
	margin-right: 0.08rem;
	color: var(--home-v3-muted);
}

.public-secondary.route-detail-v3-page .route-detail-hero {
	position: relative;
	width: 100%;
	min-width: 0;
	margin: 20px 0 0;
	padding: 0 24px;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-stage {
	position: relative;
	width: 100%;
	max-width: none;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 12px 12px 16px;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	contain: layout;
	isolation: isolate;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-stage::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: var(--home-v3-paper-bright);
	clip-path: var(--route-detail-v3-fibre);
	content: "";
}

.public-secondary.route-detail-v3-page .route-detail-artwork-stage::after {
	display: none;
}

.public-secondary.route-detail-v3-page .route-detail-tear-edge {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.public-secondary.route-detail-v3-page .route-detail-tear-edge-shadow,
.public-secondary.route-detail-v3-page .route-detail-tear-edge-fibre {
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-detail-tear-edge-shadow {
	fill: #08130f;
	stroke: #08130f;
	stroke-width: 16px;
	opacity: 0.34;
}

.public-secondary.route-detail-v3-page .route-detail-tear-edge-fibre {
	fill: var(--home-v3-paper-bright);
	stroke: var(--home-v3-paper-bright);
	stroke-width: 12px;
	opacity: 0.88;
}

.public-secondary.route-detail-v3-page .route-detail-tear-edge-narrow {
	display: none;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-media {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: none;
	margin: 0;
	overflow: hidden;
	background: var(--home-v3-forest-deep);
	clip-path: var(--route-detail-v3-tear);
	aspect-ratio: 16 / 9;
}

.public-secondary.route-detail-v3-page .is-epoch6-web-artwork .route-detail-artwork-media {
	aspect-ratio: 200 / 109;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-artwork-fallback,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-artwork-placeholder,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-map,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-cinematic-neutral,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-cinematic-opening-picture,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-artwork-picture,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-artwork-transparent,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > canvas,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > [data-route-detail-renderer-surface] {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	transform: none;
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-neutral {
	z-index: 2;
	display: grid;
	align-content: end;
	justify-items: start;
	padding: 0 0 7% 5%;
	background: transparent;
	color: rgba(243, 240, 231, 0.8);
	transition: opacity 260ms ease, visibility 0s linear 0s;
	pointer-events: none;
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-checking {
	margin: 0;
	font: 400 11px/1.2 var(--home-v3-mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* The first painted state of the aperture: the route line itself, drawn from
	server-rendered geometry so the plate is never an empty black box. */
.public-secondary.route-detail-v3-page .route-detail-artwork-placeholder {
	z-index: 1;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 50% 44%, rgba(27, 42, 32, 0.62), transparent 70%),
		var(--home-v3-forest-deep);
	opacity: 1;
	transition: opacity 420ms ease;
	pointer-events: none;
}

.public-secondary.route-detail-v3-page .route-detail-placeholder-trace {
	position: absolute;
	z-index: 1;
	inset: 9% 7% 15%;
	display: block;
	width: 86%;
	height: 76%;
	margin: 0;
	padding: 0;
	overflow: visible;
	filter: drop-shadow(0 0 8px rgba(194, 217, 70, 0.42)) drop-shadow(0 0 26px rgba(194, 217, 70, 0.18));
}

.public-secondary.route-detail-v3-page .route-detail-trace-halo {
	fill: none;
	stroke: rgba(4, 17, 12, 0.6);
	stroke-width: 7;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-detail-trace-line {
	fill: none;
	stroke: #c2d946;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-detail-trace-origin {
	fill: rgba(7, 19, 15, 0.9);
	stroke: #c2d946;
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-detail-placeholder-label {
	position: absolute;
	z-index: 2;
	bottom: 7%;
	left: 5%;
	margin: 0;
	color: rgba(243, 240, 231, 0.8);
	font: 400 11px/1.2 var(--home-v3-mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-artwork-placeholder,
.public-secondary.route-detail-v3-page .has-route-artwork.is-artwork-visible .route-detail-artwork-placeholder {
	opacity: 0;
}

/* TERRAIN / MAP survey switch. Scripting reveals it, so a page without the map
	view never offers a control it cannot honour. */
.public-secondary.route-detail-v3-page .route-detail-view-switch {
	position: absolute;
	z-index: 4;
	top: 6.5%;
	left: 4.5%;
	display: flex;
	gap: 4px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.public-secondary.route-detail-v3-page .route-detail-view-switch[hidden] {
	display: none;
}

.public-secondary.route-detail-v3-page .route-detail-view-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.public-secondary.route-detail-v3-page .route-detail-view-option span {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 11px;
	border: 1px solid rgba(243, 240, 231, 0.34);
	background: rgba(7, 19, 15, 0.78);
	color: rgba(243, 240, 231, 0.78);
	font: 400 11px/1 var(--home-v3-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

/* The switch sits over dark terrain and over pale map tiles, so it stays opaque. */
.public-secondary.route-detail-v3-page .route-detail-view-option input:checked + span {
	border-color: var(--home-v3-acid);
	background: #16281f;
	color: #f8ffe5;
}

.public-secondary.route-detail-v3-page .route-detail-view-option input:focus-visible + span {
	outline: 2px solid var(--home-v3-acid);
	outline-offset: 2px;
}

.public-secondary.route-detail-v3-page .route-detail-map {
	z-index: 5;
	overflow: hidden;
	background: #e9e6dc;
}

.public-secondary.route-detail-v3-page .route-detail-map[hidden] {
	display: none;
}

.public-secondary.route-detail-v3-page .route-detail-map-surface {
	position: absolute;
	inset: 0;
}

.public-secondary.route-detail-v3-page .route-detail-map-status {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 0;
	width: 100%;
	margin: 0;
	color: var(--home-v3-forest);
	font: 400 11px/1.3 var(--home-v3-mono);
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-detail-map-status[hidden] {
	display: none;
}

/* The raster tiles are desaturated into the cream and pine world of the page. */
.public-secondary.route-detail-v3-page .route-detail-map-tiles {
	filter: grayscale(0.84) sepia(0.24) brightness(1.05) contrast(0.92);
}

.public-secondary.route-detail-v3-page .route-detail-map .leaflet-container {
	background: #e9e6dc;
	font-family: var(--home-v3-mono);
}

/* Keeps the map's own controls clear of the torn aperture edge. */
.public-secondary.route-detail-v3-page .route-detail-map .leaflet-bottom.leaflet-left {
	bottom: 3.5%;
	left: 2.5%;
}

.public-secondary.route-detail-v3-page .route-detail-map .leaflet-control-attribution {
	background: rgba(243, 240, 231, 0.88);
	color: var(--home-v3-forest);
	font-size: 11px;
}

.public-secondary.route-detail-v3-page .route-detail-map .leaflet-control-attribution a {
	color: var(--home-v3-forest);
}

.public-secondary.route-detail-v3-page .route-detail-map .leaflet-control-zoom a {
	border-color: var(--home-v3-keyline);
	background: var(--home-v3-paper-bright);
	color: var(--home-v3-forest);
}

.public-secondary.route-detail-v3-page .route-detail-artwork-stage[data-route-view="map"] .route-detail-artwork-media > :not(.route-detail-map) {
	visibility: hidden;
	opacity: 0;
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-opening-picture {
	z-index: 2;
	overflow: hidden;
	opacity: 1;
	transition: opacity 380ms ease, visibility 0s linear 0s;
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-opening-picture[hidden] {
	display: none;
}

/* The contractually identical opening PNG and t=0 canvas exchange without a
	decorative opacity blend, which would briefly dim or ghost matching pixels. */
.public-secondary.route-detail-v3-page .has-cinematic-opening-poster .route-detail-cinematic-opening-picture,
.public-secondary.route-detail-v3-page .has-cinematic-opening-poster .route-detail-artwork-media > [data-route-detail-renderer-surface],
.public-secondary.route-detail-v3-page .has-cinematic-opening-poster.is-renderer-visible .route-detail-cinematic-opening-picture,
.public-secondary.route-detail-v3-page .has-cinematic-opening-poster.is-renderer-visible .route-detail-artwork-media > [data-route-detail-renderer-surface] {
	transition: none;
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-opening-poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 50%;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-artwork-picture {
	z-index: 2;
	overflow: hidden;
	opacity: 0;
	transition: opacity 380ms ease;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-picture > .route-detail-artwork-transparent {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 50%;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-artwork-fallback {
	z-index: 1;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(3, 10, 7, 0.18), transparent 46%, rgba(3, 10, 7, 0.25)),
		linear-gradient(0deg, rgba(3, 10, 7, 0.34), transparent 43%),
		url("/beacen-library-terrain-v3.jpg") center 50% / cover no-repeat,
		var(--home-v3-forest-deep);
	opacity: 1;
	transition: opacity 380ms ease;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-artwork-fallback::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		radial-gradient(circle at 50% 48%, transparent 16%, rgba(1, 7, 5, 0.1) 55%, rgba(1, 7, 5, 0.54) 100%),
		repeating-linear-gradient(112deg, transparent 0 48px, rgba(255, 255, 255, 0.02) 49px, transparent 50px 76px);
	content: "";
}

.public-secondary.route-detail-v3-page .route-detail-artwork-media > .route-detail-artwork-transparent {
	z-index: 2;
	object-fit: contain;
	object-position: 50% 50%;
	opacity: 0;
	transition: opacity 380ms ease;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-media > canvas,
.public-secondary.route-detail-v3-page .route-detail-artwork-media > [data-route-detail-renderer-surface] {
	z-index: 3;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 380ms ease, visibility 0s linear 380ms;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-media > [data-route-detail-renderer-surface] > canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.public-secondary.route-detail-v3-page .route-detail-generation-status {
	position: absolute;
	z-index: 4;
	bottom: clamp(24px, 4vw, 48px);
	left: clamp(24px, 4vw, 52px);
	display: grid;
	width: min(440px, calc(100% - clamp(48px, 8vw, 104px)));
	gap: 7px;
	padding: 15px 18px 16px 20px;
	border-left: 2px solid var(--home-v3-acid);
	background: linear-gradient(102deg, rgba(3, 12, 9, 0.9), rgba(3, 12, 9, 0.66) 72%, rgba(3, 12, 9, 0));
	box-shadow: -12px 18px 42px rgba(0, 0, 0, 0.18);
	color: var(--home-v3-paper-bright);
	pointer-events: none;
	transition: opacity 280ms ease, visibility 280ms ease;
}

.public-secondary.route-detail-v3-page .route-detail-generation-status::before {
	position: absolute;
	top: 0;
	right: 14%;
	left: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(215, 240, 90, 0.76), rgba(243, 240, 231, 0.18), transparent);
	content: "";
}

.public-secondary.route-detail-v3-page .route-detail-generation-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(243, 240, 231, 0.7);
	font: 600 11px/1.2 var(--home-v3-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-detail-generation-kicker i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--home-v3-acid);
	box-shadow: 0 0 0 0 rgba(215, 240, 90, 0.34), 0 0 12px rgba(215, 240, 90, 0.72);
	animation: route-detail-generation-signal 2.8s ease-out infinite;
}

.public-secondary.route-detail-v3-page .route-detail-generation-status strong {
	color: var(--home-v3-paper-bright);
	font: 400 clamp(25px, 3vw, 40px)/0.98 var(--home-v3-serif);
	letter-spacing: -0.045em;
}

.public-secondary.route-detail-v3-page .route-detail-generation-note {
	color: rgba(243, 240, 231, 0.64);
	font: 400 11px/1.45 var(--home-v3-mono);
	letter-spacing: 0.035em;
}

.public-secondary.route-detail-v3-page .is-artwork-visible .route-detail-generation-status,
.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-generation-status {
	visibility: hidden;
	opacity: 0;
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-status {
	position: absolute;
	z-index: 4;
	top: clamp(14px, 2vw, 24px);
	right: clamp(14px, 2vw, 24px);
	margin: 0;
	padding: 8px 10px;
	background: rgba(243, 240, 231, 0.9);
	color: var(--home-v3-forest-deep);
	font: 700 11px/1 var(--home-v3-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	pointer-events: none;
}

.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-artwork-media > canvas,
.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-artwork-media > [data-route-detail-renderer-surface] {
	visibility: visible;
	opacity: 1;
	transition: opacity 380ms ease, visibility 0s linear 0s;
}

.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-cinematic-neutral,
.public-secondary.route-detail-v3-page .is-cinematic-fallback-visible .route-detail-cinematic-neutral,
.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-cinematic-opening-picture,
.public-secondary.route-detail-v3-page .is-cinematic-fallback-visible .route-detail-cinematic-opening-picture {
	visibility: hidden;
	opacity: 0;
}

.public-secondary.route-detail-v3-page .has-route-artwork.is-artwork-visible .route-detail-artwork-transparent {
	opacity: 1;
}

.public-secondary.route-detail-v3-page .has-route-artwork.is-artwork-visible .route-detail-artwork-picture {
	opacity: 1;
}

.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-artwork-transparent,
.public-secondary.route-detail-v3-page .has-route-artwork.is-artwork-visible.is-renderer-visible .route-detail-artwork-transparent,
.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-artwork-picture,
.public-secondary.route-detail-v3-page .has-route-artwork.is-artwork-visible.is-renderer-visible .route-detail-artwork-picture {
	opacity: 0;
}

.public-secondary.route-detail-v3-page .has-route-artwork.is-artwork-visible .route-detail-artwork-fallback {
	opacity: 0;
}

.public-secondary.route-detail-v3-page .is-renderer-visible .route-detail-artwork-fallback {
	opacity: 0;
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-replay {
	position: absolute;
	z-index: 4;
	left: clamp(14px, 2vw, 24px);
	bottom: clamp(14px, 2vw, 24px);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	background: var(--home-v3-paper-bright);
	clip-path: polygon(1% 5%, 98% 0, 100% 94%, 2% 100%);
	color: var(--home-v3-forest-deep);
	font: 700 11px/1 var(--home-v3-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
	cursor: pointer;
	transform: rotate(-0.35deg);
	transition: background-color 180ms ease, transform 180ms ease;
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-replay::before {
	width: 7px;
	height: 7px;
	border-radius: 0;
	background: var(--home-v3-acid);
	content: "";
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-replay:hover {
	background: #f8ffe5;
	transform: rotate(-0.35deg) translateY(-2px);
}

.public-secondary.route-detail-v3-page .route-detail-cinematic-replay:focus-visible {
	outline: 2px solid var(--home-v3-acid);
	outline-offset: 3px;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-fallback > .public-route-preview {
	position: absolute;
	z-index: 1;
	inset: 7% 6% 8%;
	display: block;
	width: 88%;
	height: 85%;
	margin: 0;
	padding: 0;
	aspect-ratio: auto;
	overflow: visible;
}

.public-secondary.route-detail-v3-page .route-preview-contour {
	stroke: rgba(255, 255, 255, 0.035);
	stroke-width: 1;
}

.public-secondary.route-detail-v3-page .route-preview-halo {
	fill: none;
	stroke: rgba(4, 17, 12, 0.58);
	stroke-width: 6;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: none;
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-preview-line {
	fill: none;
	stroke: var(--home-v3-acid);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 0 2.2px rgba(215, 240, 90, 0.48));
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-preview-survey {
	fill: none;
	stroke: #f5ffd2;
	stroke-width: 3.2;
	stroke-dasharray: 0.065 0.935;
	stroke-dashoffset: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
	filter: drop-shadow(0 0 3px rgba(215, 240, 90, 0.9)) drop-shadow(0 0 8px rgba(215, 240, 90, 0.46));
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-preview-origin-field {
	fill: var(--home-v3-acid);
	opacity: 0;
	filter: blur(7px);
	transform-box: fill-box;
	transform-origin: center;
}

.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-line {
	stroke: rgba(215, 240, 90, 0.78);
	filter: drop-shadow(0 0 2px rgba(215, 240, 90, 0.38));
}

.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-survey {
	animation: route-detail-generation-survey 4.8s cubic-bezier(0.4, 0, 0.2, 1) 1 both;
}

.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-origin-field {
	animation: route-detail-generation-origin 3.8s ease-in-out infinite;
}

.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-marker-start,
.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-marker-combined {
	transform-box: fill-box;
	transform-origin: center;
	animation: route-detail-generation-marker 3.8s ease-in-out infinite;
}

@keyframes route-detail-generation-survey {
	0%, 7% {
		stroke-dashoffset: 1;
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	82% {
		stroke-dashoffset: 0;
		opacity: 1;
	}

	100% {
		stroke-dashoffset: 0;
		opacity: 0;
	}
}

@keyframes route-detail-generation-origin {
	0%, 100% {
		opacity: 0.08;
		transform: scale(0.7);
	}

	48% {
		opacity: 0.25;
		transform: scale(1.22);
	}
}

@keyframes route-detail-generation-marker {
	0%, 100% { transform: scale(1); }
	48% { transform: scale(1.08); }
}

@keyframes route-detail-generation-signal {
	0% { box-shadow: 0 0 0 0 rgba(215, 240, 90, 0.34), 0 0 12px rgba(215, 240, 90, 0.72); }
	62%, 100% { box-shadow: 0 0 0 7px rgba(215, 240, 90, 0), 0 0 7px rgba(215, 240, 90, 0.44); }
}

.public-secondary.route-detail-v3-page .route-preview-marker-start {
	fill: var(--home-v3-forest-deep);
	stroke: var(--home-v3-acid);
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-preview-marker-finish,
.public-secondary.route-detail-v3-page .route-preview-marker-combined circle {
	fill: var(--home-v3-acid);
	stroke: var(--home-v3-forest-deep);
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .route-preview-marker-combined path {
	fill: var(--home-v3-forest-deep);
}

.public-secondary.route-detail-v3-page .route-preview-empty {
	fill: var(--home-v3-acid);
}

.public-secondary.route-detail-v3-page .route-preview-unavailable-label {
	fill: rgba(255, 255, 255, 0.72);
	font-family: var(--home-v3-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-detail-artwork-stage figcaption {
	position: absolute;
	z-index: 3;
	top: 6.5%;
	right: 4.5%;
	bottom: auto;
	left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.76);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.09em;
	line-height: 1.2;
	text-transform: uppercase;
	backdrop-filter: none;
}

.public-secondary.route-detail-v3-page .route-preview-compass {
	display: inline-grid;
	width: 25px;
	height: 25px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 50%;
}

.public-secondary.route-detail-v3-page .route-preview-compass b {
	color: var(--home-v3-acid);
	font-size: 11px;
	font-weight: 500;
}

.public-secondary.route-detail-v3-page .route-preview-compass i {
	display: none;
}

.public-secondary.route-detail-v3-page .route-preview-mode {
	display: flex;
	align-items: center;
	gap: 0.42rem;
}

.public-secondary.route-detail-v3-page .route-preview-mode i {
	font-style: normal;
}

.public-secondary.route-detail-v3-page .is-renderer-visible .route-preview-mode-3d {
	display: inline;
}

.public-secondary.route-detail-v3-page .is-renderer-visible .route-preview-mode-fallback {
	display: none;
}

.public-secondary.route-detail-v3-page .is-renderer-visible .route-preview-compass,
.public-secondary.route-detail-v3-page .is-renderer-visible .route-preview-orientation {
	display: none;
}

.public-secondary.route-detail-v3-page .route-detail-hero-action {
	position: absolute;
	z-index: 4;
	right: 24px;
	bottom: clamp(28px, 4vw, 58px);
	display: flex;
	width: min(30%, 280px);
	min-width: 230px;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 10px;
	padding: 0;
}

.public-secondary.route-detail-v3-page .route-detail-hero-action .route-handoff {
	width: 100%;
}

/* A quiet secondary action. Acid is reserved for the primary handoff, never for
	label text sitting on paper. */
.public-secondary.route-detail-v3-page .route-detail-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 15px;
	background: var(--home-v3-paper-bright);
	clip-path: polygon(1% 6%, 98% 0, 100% 93%, 2% 100%);
	color: var(--home-v3-forest);
	font: 400 11px/1 var(--home-v3-mono);
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease;
}

.public-secondary.route-detail-v3-page .route-detail-download:hover {
	background: #f8ffe5;
}

.public-secondary.route-detail-v3-page .route-detail-download:focus-visible {
	outline: 2px solid var(--home-v3-acid);
	outline-offset: 3px;
}

.public-secondary.route-detail-v3-page .route-open-action,
.public-secondary.route-detail-v3-page .route-detail-hero-action .route-open-action {
	display: grid;
	width: 100%;
	min-height: 58px;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	padding: 10px 18px 10px 20px;
	border: 0;
	border-radius: 0;
	background: var(--home-v3-acid);
	color: var(--home-v3-forest-deep);
	box-shadow: none;
	font-family: var(--home-v3-mono);
	text-align: left;
	text-decoration: none;
	transform: rotate(-0.35deg);
	transition: transform 180ms ease, background-color 180ms ease;
}

.public-secondary.route-detail-v3-page .route-open-action::before {
	display: none;
}

.public-secondary.route-detail-v3-page .route-open-action:hover {
	background: #e2f780;
	transform: rotate(-0.35deg) translateY(-2px);
}

.public-secondary.route-detail-v3-page .route-open-action-copy {
	display: grid;
	gap: 2px;
	color: var(--home-v3-forest-deep);
	font-family: var(--home-v3-mono);
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-open-action-copy strong {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.075em;
	line-height: 1.2;
}

.public-secondary.route-detail-v3-page .route-open-action-copy small {
	color: rgba(7, 19, 15, 0.68);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.2;
}

.public-secondary.route-detail-v3-page .route-open-action-arrow {
	color: var(--home-v3-forest-deep);
	font-family: var(--home-v3-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}

/* The shared route handoff keeps one behaviour contract for Library and
   SharedRoute, but presents it as a V3 field-note rather than the legacy dark
   modal. The QR matrix itself remains conventional and untouched. */
.public-secondary.route-detail-v3-page .route-handoff-dialog {
	width: min(calc(100vw - 32px), 780px);
	max-width: none;
	max-height: min(calc(100vh - 32px), 610px);
	max-height: min(calc(100dvh - 32px), 610px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background:
		radial-gradient(ellipse at 108% 14%, transparent 0 34%, rgba(23, 55, 45, 0.035) 34.2% 34.45%, transparent 34.7%),
		var(--home-v3-paper-bright);
	clip-path: polygon(
		0.7% 1.2%, 17% 0.35%, 34% 1.1%, 52% 0.2%, 70% 1%, 86% 0.25%, 99.3% 1.15%,
		98.8% 18%, 99.6% 38%, 98.9% 59%, 99.5% 79%, 98.8% 98.8%,
		82% 99.5%, 64% 98.7%, 47% 99.65%, 29% 98.8%, 13% 99.55%, 0.65% 98.7%,
		1.2% 78%, 0.35% 58%, 1.1% 37%, 0.3% 18%
	);
	color: var(--home-v3-forest);
	filter: drop-shadow(0 28px 46px rgba(7, 19, 15, 0.34));
}

.public-secondary.route-detail-v3-page .route-handoff-dialog[open] {
	animation: route-handoff-v3-enter 220ms cubic-bezier(0.2, 0.78, 0.24, 1);
}

.public-secondary.route-detail-v3-page .route-handoff-dialog::backdrop {
	background: rgba(7, 19, 15, 0.78);
	backdrop-filter: blur(10px) saturate(0.72);
}

.public-secondary.route-detail-v3-page .route-handoff-modal {
	position: relative;
	display: grid;
	max-height: inherit;
	grid-template-columns: minmax(0, 1fr) minmax(248px, 292px);
	grid-template-areas:
		"kicker qr"
		"title qr"
		"instructions qr"
		"failure qr"
		"url qr"
		"actions qr"
		"status caption";
	align-items: start;
	column-gap: clamp(34px, 4.2vw, 54px);
	row-gap: 12px;
	padding: 44px 46px 38px;
	overflow: auto;
}

.public-secondary.route-detail-v3-page .route-handoff-modal::before {
	position: absolute;
	top: 0;
	left: 4%;
	width: 34%;
	height: 3px;
	background: var(--home-v3-acid);
	content: "";
	transform: rotate(-0.4deg);
}

.public-secondary.route-detail-v3-page .route-handoff-modal .kicker {
	grid-area: kicker;
	margin: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-handoff-modal h2 {
	grid-area: title;
	max-width: 7ch;
	margin: 5px 0 3px;
	padding: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-serif);
	font-size: clamp(48px, 5vw, 66px);
	font-weight: 400;
	letter-spacing: -0.06em;
	line-height: 0.84;
}

.public-secondary.route-detail-v3-page #route-handoff-instructions {
	grid-area: instructions;
	max-width: 31ch;
	margin: 0;
	color: rgba(23, 55, 45, 0.72);
	font-family: var(--home-v3-sans);
	font-size: 13px;
	line-height: 1.45;
}

.public-secondary.route-detail-v3-page .route-handoff-close {
	position: absolute;
	z-index: 3;
	top: 17px;
	right: 18px;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--home-v3-forest);
	border-radius: 50%;
	background: var(--home-v3-paper-bright);
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

.public-secondary.route-detail-v3-page .route-handoff-close:hover {
	background: var(--home-v3-acid);
	transform: rotate(6deg);
}

.public-secondary.route-detail-v3-page .route-handoff-qr {
	position: relative;
	grid-area: qr;
	align-self: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 280px;
	aspect-ratio: 1;
	margin: 25px auto 18px;
	padding: 12px;
	border: 1px solid var(--home-v3-forest);
	border-radius: 0;
	background: #fafaf4;
	color: var(--home-v3-forest-deep);
	box-shadow: 9px 9px 0 rgba(215, 240, 90, 0.92);
	transform: rotate(0.65deg);
}

.public-secondary.route-detail-v3-page .route-handoff-qr::before {
	position: absolute;
	top: -22px;
	left: -1px;
	color: var(--home-v3-forest);
	content: "SCAN WITH CAMERA";
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1;
}

.public-secondary.route-detail-v3-page .route-handoff-qr svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 270px;
	max-height: 270px;
	margin: auto;
}

.public-secondary.route-detail-v3-page .route-handoff-qr > p {
	display: grid;
	height: 100%;
	margin: 0;
	place-items: center;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-handoff-qr[data-qr-state="failed"] {
	display: none;
}

.public-secondary.route-detail-v3-page .route-handoff-qr[data-qr-state="failed"] + .route-handoff-qr-caption {
	display: none;
}

.public-secondary.route-detail-v3-page .route-handoff-modal .route-handoff-qr-caption {
	grid-area: caption;
	align-self: start;
	margin: 0;
	padding-left: 9px;
	color: rgba(23, 55, 45, 0.68);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-handoff-qr-failure {
	grid-area: failure;
	margin: 0;
	padding-left: 10px;
	border-left: 3px solid var(--home-v3-acid);
	color: var(--home-v3-forest);
	font-size: 12px;
	line-height: 1.4;
	text-align: left;
}

.public-secondary.route-detail-v3-page .route-handoff-url {
	display: block;
	grid-area: url;
	min-width: 0;
	padding: 10px 0;
	overflow: hidden;
	border: 0;
	border-top: 1px solid var(--home-v3-keyline);
	border-bottom: 1px solid var(--home-v3-keyline);
	border-radius: 0;
	background: transparent;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.public-secondary.route-detail-v3-page .route-handoff-actions {
	display: grid;
	grid-area: actions;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.public-secondary.route-detail-v3-page .route-handoff-actions .route-handoff-primary {
	display: flex;
	width: 100%;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
	border: 1px solid var(--home-v3-forest);
	border-radius: 0;
	background: var(--home-v3-forest);
	color: var(--home-v3-paper-bright);
	box-shadow: none;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.075em;
	text-align: center;
	text-transform: uppercase;
	transform: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.public-secondary.route-detail-v3-page .route-handoff-actions .route-handoff-primary:hover {
	background: var(--home-v3-acid);
	color: var(--home-v3-forest-deep);
	transform: translateY(-1px);
}

.public-secondary.route-detail-v3-page .route-handoff-secondary {
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--home-v3-forest);
	border-radius: 0;
	background: transparent;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.075em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.public-secondary.route-detail-v3-page .route-handoff-secondary:hover {
	background: rgba(23, 55, 45, 0.07);
}

.public-secondary.route-detail-v3-page .route-handoff-status {
	grid-area: status;
	min-height: 16px;
	margin: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	line-height: 1.3;
	text-align: left;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-handoff-status:not(:empty)::before {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--home-v3-acid);
	content: "";
}

.public-secondary.route-detail-v3-page .route-handoff-dialog a:focus-visible,
.public-secondary.route-detail-v3-page .route-handoff-dialog button:focus-visible {
	outline: 2px solid var(--home-v3-forest-deep);
	outline-offset: 3px;
	box-shadow: 0 0 0 5px var(--home-v3-acid);
}

@keyframes route-handoff-v3-enter {
	from { opacity: 0; transform: translateY(14px) rotate(-0.2deg); }
	to { opacity: 1; transform: translateY(0) rotate(0); }
}

.public-secondary.route-detail-v3-page .route-detail-note {
	width: calc(100% - 48px);
	margin: clamp(54px, 6vw, 84px) auto 0;
}

.public-secondary.route-detail-v3-page .route-detail-note h2 {
	margin: 0 0 18px;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-detail-note p {
	max-width: 52ch;
	margin: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-serif);
	font-size: clamp(24px, 2.3vw, 34px);
	font-weight: 400;
	letter-spacing: -0.034em;
	line-height: 1.03;
}

.public-secondary.route-detail-v3-page .public-route-elevation,
.public-secondary.route-detail-v3-page .route-detail-page .public-route-elevation {
	width: calc(100% - 48px);
	margin: clamp(58px, 7vw, 96px) auto 0;
	padding: 0 0 clamp(62px, 7vw, 96px);
	border: 0;
}

.public-secondary.route-detail-v3-page .library-elevation-card,
.public-secondary.route-detail-v3-page .public-route-elevation .library-elevation-card {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--home-v3-forest);
}

.public-secondary.route-detail-v3-page .library-elevation-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 18px;
}

.public-secondary.route-detail-v3-page .library-elevation-heading .kicker {
	margin: 0 0 18px;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .library-elevation-heading h2 {
	margin: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-serif);
	font-size: clamp(34px, 3.8vw, 52px);
	font-weight: 400;
	letter-spacing: -0.05em;
	line-height: 0.94;
}

.public-secondary.route-detail-v3-page .library-elevation-chart {
	position: relative;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--home-v3-keyline);
}

.public-secondary.route-detail-v3-page .library-elevation-chart svg {
	display: block;
	width: 100%;
	max-width: 900px;
	height: auto;
	margin-inline: auto;
	overflow: hidden;
	touch-action: pan-y;
}

.public-secondary.route-detail-v3-page .library-elevation-chart svg:focus-visible {
	border-radius: 0;
	outline: 3px solid var(--home-v3-acid);
	outline-offset: 4px;
}

.public-secondary.route-detail-v3-page .library-elevation-grid {
	fill: none;
	stroke: rgba(23, 55, 45, 0.13);
	stroke-width: 1;
}

.public-secondary.route-detail-v3-page .library-elevation-area {
	fill: url("#route-elevation-fill");
}

.public-secondary.route-detail-v3-page .library-elevation-line {
	fill: none;
	stroke: var(--home-v3-forest);
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: none;
	vector-effect: non-scaling-stroke;
}

.public-secondary.route-detail-v3-page .library-elevation-chart circle.library-elevation-line,
.public-secondary.route-detail-v3-page .library-elevation-cursor-point,
.public-secondary.route-detail-v3-page .library-elevation-endpoint-point {
	fill: var(--home-v3-acid);
	stroke: var(--home-v3-forest);
	stroke-width: 2;
}

.public-secondary.route-detail-v3-page .library-elevation-cursor {
	stroke: rgba(23, 55, 45, 0.42);
	stroke-width: 1;
}

.public-secondary.route-detail-v3-page .library-elevation-endpoint-label {
	fill: var(--home-v3-forest);
	stroke: var(--home-v3-paper-bright);
	stroke-width: 6px;
	stroke-linejoin: round;
	paint-order: stroke fill;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.035em;
}

.public-secondary.route-detail-v3-page .library-elevation-axis-tick {
	stroke: rgba(23, 55, 45, 0.28);
	stroke-width: 1;
}

.public-secondary.route-detail-v3-page .library-elevation-axis-label {
	fill: #60705d;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.06em;
}

.public-secondary.route-detail-v3-page .library-elevation-endpoint-kind {
	fill: var(--home-v3-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .library-elevation-feedback {
	display: grid;
	height: 34px;
	min-height: 34px;
	align-items: center;
	justify-items: center;
	margin-top: 8px;
	text-align: center;
}

.public-secondary.route-detail-v3-page .library-elevation-feedback > p,
.public-secondary.route-detail-v3-page .library-elevation-tooltip {
	grid-area: 1 / 1;
}

.public-secondary.route-detail-v3-page .library-elevation-feedback > p {
	margin: 0;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.04em;
}

.public-secondary.route-detail-v3-page .library-elevation-tooltip {
	display: grid;
	box-sizing: border-box;
	min-height: 30px;
	grid-template-columns: repeat(2, auto);
	justify-content: center;
	gap: 12px;
	padding: 6px 10px;
	border: 1px solid var(--home-v3-keyline);
	border-radius: 999px;
	background: rgba(255, 253, 248, 0.92);
	color: var(--home-v3-forest);
}

.public-secondary.route-detail-v3-page .library-elevation-tooltip strong {
	color: var(--home-v3-forest);
	font-size: 11px;
	font-weight: 500;
}

.public-secondary.route-detail-v3-page .library-elevation-tooltip small {
	color: var(--home-v3-muted);
	font-size: 11px;
	font-weight: 400;
}

.public-secondary.route-detail-v3-page .library-elevation-summary {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 10px;
	margin: -30px 0 0 auto;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.public-secondary.route-detail-v3-page .library-elevation-summary span {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
}

.public-secondary.route-detail-v3-page .library-elevation-summary small {
	color: var(--home-v3-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .library-elevation-summary i {
	color: rgba(23, 55, 45, 0.35);
	font-style: normal;
}

.public-secondary.route-detail-v3-page .library-elevation-unavailable {
	min-height: 160px;
	background: transparent;
}

.public-secondary.route-detail-v3-page .library-elevation-unavailable .library-elevation-heading > p {
	margin: 0;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .shared-route-conversion {
	display: flex;
	width: calc(100% - 48px);
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin: 16px auto 48px;
	padding: 38px 0 0;
	border-top: 1px solid var(--home-v3-keyline);
	border-bottom: 0;
}

.public-secondary.route-detail-v3-page .route-detail-note + .shared-route-conversion {
	margin-top: clamp(58px, 7vw, 96px);
}

.public-secondary.route-detail-v3-page .shared-route-conversion .kicker {
	margin: 0 0 8px;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .shared-route-conversion h2 {
	max-width: 14ch;
	margin: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-serif);
	font-size: clamp(34px, 4.4vw, 66px);
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 0.9;
}

.public-secondary.route-detail-v3-page .shared-route-conversion .conversion-action {
	display: inline-flex;
	min-width: 0;
	min-height: 44px;
	align-items: center;
	padding: 0 17px;
	border: 0;
	border-radius: 0;
	background: var(--home-v3-forest);
	color: var(--home-v3-paper-bright);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.public-secondary.route-detail-v3-page .route-detail-v3-footer {
	width: calc(100% - 48px);
	margin-top: 0;
}

@media (max-width: 1100px) {
	.public-secondary.route-detail-v3-page .library-elevation-endpoint-label {
		font-size: 11px;
	}

	.public-secondary.route-detail-v3-page .library-elevation-endpoint-kind {
		font-size: 11px;
	}
}

@media (max-width: 800px) {
	.public-secondary.route-detail-v3-page .library-elevation-endpoint-label {
		font-size: 14px;
	}

	.public-secondary.route-detail-v3-page .library-elevation-endpoint-kind {
		font-size: 12px;
	}
}

@media (max-width: 600px) {
	.public-secondary.route-detail-v3-page .library-elevation-chart svg {
		height: clamp(144px, 38vw, 160px);
	}

	.public-secondary.route-detail-v3-page .library-elevation-endpoint-label,
	.public-secondary.route-detail-v3-page .library-elevation-endpoint-point {
		display: none;
	}

	.public-secondary.route-detail-v3-page {
		--route-detail-v3-tear: polygon(
			0.8% 3%, 13% 1.5%, 26% 3.5%, 41% 1.1%, 56% 2.9%, 72% 0.8%,
			87% 3.1%, 99.2% 1.5%, 98% 16%, 99.6% 33%, 98.2% 49%, 99.4% 67%,
			98.1% 84%, 99.2% 98%, 84% 96.7%, 69% 99%, 52% 97.1%, 35% 98.8%,
			18% 96.6%, 0.8% 97.7%, 1.9% 82%, 0.3% 65%, 1.8% 47%, 0.1% 30%,
			1.6% 14%
		);
		--route-detail-v3-fibre: polygon(
			1% 2.7%, 13% 1.2%, 26% 3.2%, 41% 0.8%, 56% 2.6%, 72% 0.5%,
			87% 2.8%, 99% 1.2%, 97.8% 16%, 99.4% 33%, 98% 49%, 99.2% 67%,
			97.9% 84%, 99% 98.2%, 84% 97%, 69% 99.3%, 52% 97.4%, 35% 99.1%,
			18% 96.9%, 1% 98%, 2.1% 82%, 0.5% 65%, 2% 47%, 0.3% 30%, 1.8% 14%
		);
	}

	.public-secondary.route-detail-v3-page .route-detail-tear-edge-wide {
		display: none;
	}

	.public-secondary.route-detail-v3-page .route-detail-tear-edge-narrow {
		display: block;
	}

	.public-secondary.route-detail-v3-page .route-detail-canvas,
	.public-secondary.route-detail-v3-page.interior-page .route-detail-canvas {
		padding-top: 10px;
	}

	.public-secondary.route-detail-v3-page .route-detail-eyebrow {
		margin-inline: 14px;
	}

	.public-secondary.route-detail-v3-page .route-detail-information-bar,
	.public-secondary.route-detail-v3-page .route-detail-information-bar-without-characteristics {
		grid-template-columns: minmax(0, 1fr);
		gap: 9px;
		padding: 11px 14px 12px;
	}

	.public-secondary.route-detail-v3-page .route-detail-information-panel h1 {
		font-size: 20px;
	}

	.public-secondary.route-detail-v3-page .route-detail-place {
		font-size: 11px;
	}

	.public-secondary.route-detail-v3-page .route-detail-characteristics {
		display: block;
		padding: 0;
		text-align: left;
	}

	.public-secondary.route-detail-v3-page .route-detail-characteristics-line {
		text-align: left;
	}

	.public-secondary.route-detail-v3-page .route-facts-inline {
		justify-content: flex-start;
	}

	.public-secondary.route-detail-v3-page .route-detail-hero {
		margin-top: 15px;
		padding-inline: 0;
	}

	.public-secondary.route-detail-v3-page .route-detail-artwork-stage {
		margin-inline: -11px;
		padding: 9px 8px 12px;
		width: calc(100% + 22px);
	}

	.public-secondary.route-detail-v3-page .route-detail-artwork-media {
		aspect-ratio: 11 / 10;
	}

	.public-secondary.route-detail-v3-page .is-epoch6-web-artwork .route-detail-artwork-media {
		aspect-ratio: 11 / 10;
	}

	.public-secondary.route-detail-v3-page .route-detail-artwork-fallback > .public-route-preview {
		inset: 8% 8% 13%;
		width: 84%;
		height: 79%;
	}

	.public-secondary.route-detail-v3-page .route-detail-generation-status {
		bottom: 10%;
		left: 8%;
		width: 78%;
		gap: 6px;
		padding: 13px 14px 14px 16px;
	}

	.public-secondary.route-detail-v3-page .route-detail-generation-status strong {
		font-size: clamp(23px, 7.5vw, 31px);
	}

	.public-secondary.route-detail-v3-page .route-detail-generation-note {
		max-width: 31ch;
		font-size: 11px;
	}

	.public-secondary.route-detail-v3-page .route-detail-artwork-stage figcaption {
		top: 7%;
		right: 7%;
		font-size: 11px;
	}

	.public-secondary.route-detail-v3-page .route-preview-compass {
		width: 23px;
		height: 23px;
	}

	/* The view switch already names the mode at this width; only north-up remains. */
	.public-secondary.route-detail-v3-page .route-detail-artwork-stage[data-route-view] .route-preview-mode {
		display: none;
	}

	.public-secondary.route-detail-v3-page .route-detail-hero-action {
		position: static;
		width: calc(100% - 18px);
		min-width: 0;
		margin: -1px 0 0 auto;
		padding: 0;
	}

	.public-secondary.route-detail-v3-page .route-open-action,
	.public-secondary.route-detail-v3-page .route-detail-hero-action .route-open-action {
		min-height: 54px;
	}

	.public-secondary.route-detail-v3-page .route-detail-note,
	.public-secondary.route-detail-v3-page .public-route-elevation,
	.public-secondary.route-detail-v3-page .shared-route-conversion {
		width: calc(100% - 28px);
	}

	.public-secondary.route-detail-v3-page .route-detail-note {
		margin-top: 54px;
	}

	.public-secondary.route-detail-v3-page .route-detail-note p {
		max-width: 31ch;
		font-size: 28px;
	}

	.public-secondary.route-detail-v3-page .public-route-elevation {
		margin-top: 54px;
		padding-bottom: 58px;
	}

	.public-secondary.route-detail-v3-page .library-elevation-heading {
		display: block;
	}

	.public-secondary.route-detail-v3-page .library-elevation-unavailable .library-elevation-heading > p {
		margin-top: 10px;
	}

	.public-secondary.route-detail-v3-page .library-elevation-heading h2 {
		font-size: 43px;
	}

	.public-secondary.route-detail-v3-page .library-elevation-endpoint-label {
		stroke-width: 8px;
		font-size: 18px;
		letter-spacing: 0.025em;
	}

	.public-secondary.route-detail-v3-page .library-elevation-endpoint-kind {
		font-size: 16px;
		letter-spacing: 0.08em;
	}

	.public-secondary.route-detail-v3-page .library-elevation-summary {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
		width: 100%;
		justify-content: stretch;
		margin-top: 10px;
	}

	.public-secondary.route-detail-v3-page .library-elevation-summary span {
		justify-content: space-between;
	}

	.public-secondary.route-detail-v3-page .library-elevation-summary i {
		display: none;
	}

	.public-secondary.route-detail-v3-page .shared-route-conversion {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		margin-bottom: 34px;
	}

	.public-secondary.route-detail-v3-page .shared-route-conversion h2 {
		font-size: 43px;
	}

	.public-secondary.route-detail-v3-page .shared-route-conversion .conversion-action {
		width: fit-content;
	}

	.public-secondary.route-detail-v3-page .route-handoff-dialog {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
		clip-path: polygon(
			0.9% 0.8%, 22% 0.2%, 43% 0.9%, 65% 0.15%, 83% 0.8%, 99.1% 0.25%,
			98.6% 25%, 99.4% 49%, 98.7% 74%, 99.2% 99.1%, 76% 98.5%, 53% 99.5%,
			29% 98.6%, 0.8% 99.3%, 1.4% 73%, 0.4% 47%, 1.3% 23%
		);
	}

	.public-secondary.route-detail-v3-page .route-handoff-modal {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"kicker"
			"title"
			"instructions"
			"qr"
			"caption"
			"failure"
			"url"
			"actions"
			"status";
		gap: 9px;
		padding: 29px 24px 22px;
	}

	.public-secondary.route-detail-v3-page .route-handoff-modal::before {
		left: 5%;
		width: 48%;
	}

	.public-secondary.route-detail-v3-page .route-handoff-modal h2 {
		max-width: none;
		margin-top: 3px;
		font-size: 44px;
		line-height: 0.88;
	}

	.public-secondary.route-detail-v3-page #route-handoff-instructions {
		max-width: 34ch;
		font-size: 12px;
	}

	.public-secondary.route-detail-v3-page .route-handoff-close {
		top: 11px;
		right: 12px;
	}

	.public-secondary.route-detail-v3-page .route-handoff-qr {
		width: min(100%, 218px);
		margin: 17px auto 12px;
		padding: 9px;
		box-shadow: 7px 7px 0 rgba(215, 240, 90, 0.92);
	}

	.public-secondary.route-detail-v3-page .route-handoff-qr::before {
		top: -17px;
		font-size: 11px;
	}

	.public-secondary.route-detail-v3-page .route-handoff-modal .route-handoff-qr-caption {
		padding-left: 7px;
		font-size: 11px;
	}

	.public-secondary.route-detail-v3-page .route-handoff-url {
		padding-block: 9px;
		font-size: 11px;
	}

	.public-secondary.route-detail-v3-page .route-handoff-actions {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.public-secondary.route-detail-v3-page .route-handoff-actions .route-handoff-primary,
	.public-secondary.route-detail-v3-page .route-handoff-secondary {
		min-height: 44px;
	}

	.public-secondary.route-detail-v3-page .route-detail-v3-footer {
		width: calc(100% - 28px);
	}
}

@media (max-width: 420px) {
	.public-secondary.route-detail-v3-page .library-elevation-endpoint-label {
		font-size: 22px;
	}

	.public-secondary.route-detail-v3-page .library-elevation-endpoint-kind {
		font-size: 19px;
	}
}

@media (max-height: 640px) and (min-width: 601px) {
	.public-secondary.route-detail-v3-page .route-handoff-dialog {
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
	}

	.public-secondary.route-detail-v3-page .route-handoff-modal {
		row-gap: 9px;
		padding-block: 30px 26px;
	}

	.public-secondary.route-detail-v3-page .route-handoff-modal h2 {
		font-size: 50px;
	}

	.public-secondary.route-detail-v3-page .route-handoff-qr {
		max-width: 236px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.route-detail-v3-page .route-detail-context-arrow,
	.route-detail-v3-page .route-detail-artwork-fallback,
	.route-detail-v3-page .route-detail-artwork-placeholder,
	.route-detail-v3-page .route-detail-view-option span,
	.route-detail-v3-page .route-detail-artwork-transparent,
	.route-detail-v3-page .route-detail-generation-status,
	.route-detail-v3-page [data-route-detail-renderer-surface],
	.route-detail-v3-page .route-detail-cinematic-replay,
	.route-detail-v3-page .route-open-action,
	.route-detail-v3-page .route-handoff-primary,
	.route-detail-v3-page .route-handoff-close,
	.route-detail-v3-page .route-handoff-secondary {
		transition: none;
	}

	.public-secondary.route-detail-v3-page .route-detail-generation-status {
		transition: none;
	}

	.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-survey {
		display: none;
		animation: none;
	}

	.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-origin-field {
		opacity: 0.12;
		animation: none;
		transform: none;
	}

	.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-marker-start,
	.public-secondary.route-detail-v3-page .is-artwork-generating .route-preview-marker-combined,
	.public-secondary.route-detail-v3-page .route-detail-generation-kicker i {
		animation: none;
		transform: none;
	}

	.route-detail-v3-page .route-handoff-dialog[open] {
		animation: none;
	}

	.route-detail-v3-page .route-open-action:hover {
		transform: rotate(-0.35deg);
	}

	.route-detail-v3-page .route-handoff-primary:hover,
	.route-detail-v3-page .route-handoff-close:hover {
		transform: none;
	}
}
.route-detail-guidance {
	margin-top: clamp(2rem, 5vw, 4.5rem);
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
	border-top: 1px solid color-mix(in srgb, var(--home-v3-forest) 22%, transparent);
}

.route-detail-guidance > header {
	display: grid;
	grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
	gap: 1rem;
	align-items: baseline;
}

.route-detail-guidance h2 {
	margin: 0;
	font: 500 clamp(1.7rem, 3vw, 3rem)/0.98 var(--home-v3-serif);
}

.route-detail-guidance nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1px;
	margin-top: 1.5rem;
	background: color-mix(in srgb, var(--home-v3-forest) 18%, transparent);
}

.route-detail-guidance a {
	position: relative;
	display: grid;
	gap: 0.65rem;
	min-height: 10rem;
	padding: 1.25rem 3rem 1.25rem 1.25rem;
	background: var(--home-v3-paper);
	color: var(--home-v3-forest);
	text-decoration: none;
}

.route-detail-guidance a span { color: var(--home-v3-muted); line-height: 1.45; }
.route-detail-guidance a i { position: absolute; top: 1.25rem; right: 1.25rem; font-style: normal; }

@media (max-width: 600px) {
	.route-detail-guidance > header { grid-template-columns: 1fr; }
}
