/* Cartographic finish: forest glass, ivory type and a quiet geographic grid. */
.home-page .atlas-console .map-shell {
	background:
		radial-gradient(ellipse at 48% 42%, #23466c52, transparent 64%),
		linear-gradient(155deg, #102d55, #0b2445 70%);
	border: 1px solid #bdd8ff55;
	box-shadow:
		inset 0 1px 0 #d3e3fc0a,
		inset 0 0 90px #0b244526;
}
.home-page .atlas-console .map-stage::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid #bdd8ff0b;
	border-radius: 9px;
	pointer-events: none;
}
.home-page .atlas-console .cartographic-reference,
.home-page .atlas-console .cartographic-districts {
	pointer-events: none;
}
.home-page .atlas-console .map-graticule {
	stroke: #bdd8ff;
	stroke-width: 0.6;
	opacity: 0.13;
	stroke-dasharray: 2 6;
}
.home-page .atlas-console .context-district {
	stroke: #e6efff;
	stroke-width: 0.5;
	opacity: 0.24;
	pointer-events: none;
}
.home-page .atlas-console .svg-region {
	filter: none;
	stroke-linejoin: round;
	transition:
		fill 0.2s,
		opacity 0.2s;
	cursor: pointer;
}
.home-page .atlas-console .svg-region:hover {
	filter: none;
	stroke: #f0f5ff;
	stroke-width: 1.8px;
}
.home-page .atlas-console .map-labels {
	z-index: 3;
}
.home-page .atlas-console .map-labels .division-leaders {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}
.division-leaders path {
	fill: none;
	stroke: #d3e3fc;
	stroke-width: 1;
	stroke-linecap: round;
	opacity: 0.8;
}
.division-leaders circle {
	fill: #e6efff;
	stroke: #102d55;
	stroke-width: 1;
}
.division-leaders .is-hovered path {
	stroke: #e6efff;
	stroke-width: 1.5;
	opacity: 1;
}
.division-leaders .is-offscreen path {
	stroke-dasharray: 3 4;
	opacity: 0.55;
}
.home-page .atlas-console a.division-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	padding: 7px 9px;
	font-family: Jakarta, Arial, sans-serif;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.01em;
	line-height: 1;
	background: #0b2445f5;
	border: 1px solid #bdd8ff79;
	border-radius: 7px;
	color: #f0f5ff;
	box-shadow:
		0 4px 15px #0b244533,
		inset 0 1px 0 #ffffff0c;
	text-decoration: none;
	backdrop-filter: blur(10px);
	pointer-events: auto;
	cursor: pointer;
	text-shadow: none;
	white-space: nowrap;
}
.home-page .atlas-console a.division-label .division-tag-dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--division-color, #bdd8ff);
	box-shadow: 0 0 0 3px #bdd8ff15;
	flex-shrink: 0;
}
.home-page .atlas-console a.division-label .pill {
	display: inline-block;
	margin: 0 0 0 2px;
	border-left: 1px solid #bdd8ff33;
	background: transparent;
	color: #d3e3fc;
	padding: 0 0 0 7px;
	font-size: 9px;
	line-height: 1;
	font-weight: 500;
}
.home-page .atlas-console a.division-label.selected,
.home-page .atlas-console a.division-label.hovered {
	background: #d3e3fc;
	border-color: #f0f5ff;
	color: #102d55;
	box-shadow: 0 5px 18px #0b244544;
}
.home-page .atlas-console a.division-label:is(.selected, .hovered) .pill {
	color: #23466c;
	border-color: #23466c33;
}
.home-page .atlas-console a.division-label:focus-visible {
	outline: 3px solid #d3e3fc;
	outline-offset: 3px;
	z-index: 5;
}
.home-page .atlas-console a.division-label[data-offscreen="true"] {
	border-style: dashed;
}
.home-page .atlas-console .map-reference {
	position: absolute;
	left: 20px;
	bottom: 103px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 9px;
	line-height: 1.4;
	letter-spacing: 0.01em;
	color: #bdd8ff;
	pointer-events: none;
}
.map-ground-scale {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: #d3e3fc;
	font-size: 10px;
	width: 100px;
}
.map-ground-scale i {
	height: 6px;
	border: 1px solid #d3e3fc;
	border-top: 0;
	display: block;
	box-sizing: border-box;
}
.map-ground-scale[hidden],
.map-reference[data-view="3d"] .map-ground-scale,
.map-reference[data-view="2d"] .map-depth-note {
	display: none;
}
.home-page .atlas-console .map-depth-note {
	font-size: 8px;
	color: #9bb9dd;
}
.home-page .atlas-console .map-tooltip {
	z-index: 10;
	left: 20px;
	top: 98px;
	background: #f0f5ff;
	border-radius: 10px;
}
.home-page .atlas-console .map-context {
	font-size: 9px;
	letter-spacing: 0.1em;
	color: #bdd8ff;
}
.home-page .atlas-console .bay {
	bottom: 167px;
	color: #9bb9dd;
	font-size: 9px;
	letter-spacing: 0.24em;
}
.home-page .atlas-console .map-compass {
	border: 0;
	font-size: 12px;
	color: #e6efff;
}
.home-page .atlas-console .map-hint b {
	color: #bdd8ff;
}
.home-page .atlas-console .map-legend {
	gap: 10px;
	font-size: 9px;
	color: #bdd8ff;
}
@media (max-width: 1100px) {
	.home-page .atlas-console .map-reference {
		bottom: 104px;
	}
}
@media (max-width: 900px) {
	.home-page .atlas-console .map-tooltip {
		top: 92px;
	}
}
@media (max-width: 600px) {
	.home-page .atlas-console a.division-label {
		font-size: 10px;
		gap: 5px;
		padding: 7px;
		min-height: 32px;
		border-radius: 6px;
	}
	.home-page .atlas-console a.division-label .pill {
		display: none;
	}
	.home-page .atlas-console .map-reference {
		left: 15px;
		bottom: 139px;
		gap: 8px;
		font-size: 8px;
		max-width: 110px;
	}
	.home-page .atlas-console .map-ground-scale {
		font-size: 9px;
	}
	.home-page .atlas-console .map-depth-note {
		max-width: 110px;
		line-height: 1.5;
	}
	.home-page .atlas-console .bay {
		bottom: 195px;
		left: 30%;
		font-size: 8px;
	}
	.home-page .atlas-console .map-tooltip {
		left: 12px;
		top: 95px;
		width: 210px;
	}
}
@media (max-width: 370px) {
	.home-page .atlas-console a.division-label {
		font-size: 9px;
		padding: 7px 6px;
		gap: 5px;
	}
	.home-page .atlas-console .map-reference {
		left: 10px;
		bottom: 145px;
		font-size: 8px;
		max-width: 95px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.home-page .atlas-console .svg-region {
		transition: none;
	}
}
@media (forced-colors: active) {
	.division-leaders path {
		stroke: CanvasText;
	}
	.division-leaders circle {
		fill: CanvasText;
	}
	.home-page .atlas-console a.division-label {
		border: 1px solid CanvasText;
		background: Canvas;
		color: CanvasText;
	}
	.home-page .atlas-console .map-reference {
		color: CanvasText;
	}
}

/* 3D Spatial Map Loader & Seamless Fade-In */
.home-page .atlas-console .spatial-map-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 4;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 50%, #13335b 0%, #0c2547 65%, #071932 100%);
}
.home-page .atlas-console .spatial-radar-rings {
	position: relative;
	width: 320px;
	height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.home-page .atlas-console .spatial-ring {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(189, 216, 255, 0.14);
	box-sizing: border-box;
}
.home-page .atlas-console .spatial-ring-outer {
	width: 300px;
	height: 300px;
	border-style: dashed;
	animation: spatialRotate 28s linear infinite;
}
.home-page .atlas-console .spatial-ring-mid {
	width: 200px;
	height: 200px;
	border-color: rgba(189, 216, 255, 0.18);
}
.home-page .atlas-console .spatial-ring-inner {
	width: 110px;
	height: 110px;
	border-color: rgba(189, 216, 255, 0.25);
}
.home-page .atlas-console .spatial-radar-grid-line {
	position: absolute;
	background: rgba(189, 216, 255, 0.07);
	pointer-events: none;
}
.home-page .atlas-console .spatial-radar-grid-line.h-line {
	width: 100%;
	height: 1px;
}
.home-page .atlas-console .spatial-radar-grid-line.v-line {
	height: 100%;
	width: 1px;
}
.home-page .atlas-console .spatial-radar-pulse {
	position: absolute;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(68, 125, 224, 0.4) 0%, transparent 70%);
	animation: spatialPulse 2.4s ease-out infinite;
}
@keyframes spatialPulse {
	0% {
		transform: scale(0.5);
		opacity: 0.9;
	}
	100% {
		transform: scale(3.2);
		opacity: 0;
	}
}
@keyframes spatialRotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
.home-page .atlas-console .spatial-loader-badge {
	position: absolute;
	bottom: 22%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 9px 18px;
	border-radius: 24px;
	background: rgba(11, 36, 69, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(189, 216, 255, 0.28);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.home-page .atlas-console .spatial-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #447de0;
	box-shadow: 0 0 8px #447de0;
	animation: spatialBlink 1.4s ease-in-out infinite;
	margin-bottom: 2px;
}
@keyframes spatialBlink {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 1;
	}
}
.home-page .atlas-console .spatial-badge-title {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #f0f5ff;
	font-family: Jakarta, Arial, sans-serif;
}
.home-page .atlas-console .spatial-badge-status {
	font-size: 9px;
	color: #bdd8ff;
	opacity: 0.85;
	font-family: Jakarta, Arial, sans-serif;
}
.home-page .atlas-console .spatial-canvas-fadein {
	animation: spatialCanvasFade 0.4s ease-out forwards;
}
@keyframes spatialCanvasFade {
	from {
		opacity: 0;
		transform: scale(0.985);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
