.psypact-map-wrap {
	--pm-height: 540px;
	position: relative;
	background: var(--pm-bg, #1A1816);
	border-radius: 8px;
	padding: clamp(16px, 3vw, 40px);
	box-sizing: border-box;
	font-family: var(--pm-font-body, 'Jost', sans-serif);
	color: var(--pm-cream, #F5F0E6);
}

.psypact-map-stage {
	position: relative;
	width: 100%;
	max-height: var(--pm-height);
}

.psypact-map-svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: var(--pm-height);
	margin: 0 auto;
	overflow: visible;
}

/* Status fill colors, controlled by data-status so a single class system
   drives both the SVG paths and the legend swatches */
.psypact-state {
	stroke: var(--pm-stroke, #F5F0E6);
	stroke-width: 0.75;
	cursor: default;
	transition: fill 0.15s ease, opacity 0.15s ease, stroke-width 0.15s ease;
	outline: none;
}

.psypact-state[data-link]:not([data-link=""]) {
	cursor: pointer;
}

.psypact-state[data-status="participating"] { fill: var(--pm-participating, #C9A84C); }
.psypact-state[data-status="enacted_pending"] { fill: var(--pm-enacted, #8C9A6E); }
.psypact-state[data-status="introduced"] { fill: var(--pm-introduced, #6E7B8C); }
.psypact-state[data-status="non_participating"] { fill: var(--pm-non, #3A3632); }

.psypact-state:hover,
.psypact-state:focus-visible,
.psypact-state.is-active {
	opacity: 0.85;
	stroke-width: 1.75;
}

.psypact-state-dc {
	stroke-width: 1;
}

.psypact-inset-bg {
	fill: rgba(245, 240, 230, 0.06);
	stroke: var(--pm-stroke, #F5F0E6);
	stroke-width: 0.5;
}

.psypact-inset-label {
	font-family: var(--pm-font-body, 'Jost', sans-serif);
	font-size: 9px;
	fill: var(--pm-cream, #F5F0E6);
	dominant-baseline: middle;
}

/* Tooltip — purely informational. pointer-events:none ensures it can never
   sit on top of and block a click on a neighboring state (e.g. the crowded
   Northeast). Navigation happens via direct click/tap on the state shape,
   not via this tooltip's link, which is now a secondary/visual cue. */
.psypact-tooltip {
	position: absolute;
	top: 12px;
	right: 12px;
	max-width: 260px;
	background: var(--pm-cream, #F5F0E6);
	color: var(--pm-bg, #1A1816);
	border-radius: 6px;
	padding: 14px 16px;
	pointer-events: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	z-index: 5;
}

.psypact-tooltip[hidden] {
	display: none;
}

.psypact-tooltip-name {
	font-family: var(--pm-font-display, 'Cormorant Garamond', serif);
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 4px;
}

.psypact-tooltip-status {
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	opacity: 0.75;
	margin-bottom: 6px;
}

.psypact-tooltip-note {
	font-size: 13px;
	margin-bottom: 8px;
	line-height: 1.4;
}

.psypact-tooltip-note:empty {
	display: none;
}

.psypact-tooltip-cue {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--pm-gold, #C9A84C);
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
}

.psypact-tooltip-cue[hidden] {
	display: none;
}

/* Legend */
.psypact-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	margin-top: 20px;
	font-size: 13px;
}

.psypact-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.psypact-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
}

.psypact-swatch[data-swatch="participating"] { background: var(--pm-participating, #C9A84C); }
.psypact-swatch[data-swatch="enacted_pending"] { background: var(--pm-enacted, #8C9A6E); }
.psypact-swatch[data-swatch="introduced"] { background: var(--pm-introduced, #6E7B8C); }
.psypact-swatch[data-swatch="non_participating"] { background: var(--pm-non, #3A3632); }

@media (max-width: 640px) {
	.psypact-tooltip {
		position: static;
		max-width: none;
		margin-top: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psypact-state {
		transition: none;
	}
}
