.phf-map {
	position: relative;
	width: 100%;
}

.phf-map__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.phf-map__svg path,
.phf-map__svg polygon {
	fill: var(--phf-inactive);
	stroke: var(--phf-border);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	transition: fill .15s ease;
}

.phf-map__svg .phf-map__region,
.phf-map__svg .phf-map__region path,
.phf-map__svg .phf-map__region polygon {
	fill: var(--phf-fill);
}

.phf-map__svg .phf-map__region.is-active,
.phf-map__svg .phf-map__region.is-active path,
.phf-map__svg .phf-map__region.is-active polygon {
	fill: var(--phf-hover);
}

.phf-map__link {
	cursor: pointer;
}

.phf-map__link:focus,
.phf-map__region:focus {
	outline: none;
}

.phf-map__link:focus-visible .phf-map__region,
.phf-map__link:focus-visible .phf-map__region path,
.phf-map__region:focus-visible {
	stroke: currentColor;
	stroke-width: 2;
}

.phf-map__tooltip {
	position: absolute;
	z-index: 20;
	max-width: min(320px, 90%);
	padding: .6em .8em;
	background: #fff;
	color: #1d1d1f;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
	font-size: .875rem;
	line-height: 1.45;
	white-space: pre-line;
	pointer-events: none;
}

.phf-map__tooltip[hidden] {
	display: none;
}

.phf-map__tooltip strong {
	display: block;
	margin-bottom: .25em;
}
