.fphs {
	--fphs-primary: var(--wp--preset--color--primary, #018559);
	--fphs-secondary: var(--wp--preset--color--secondary, #02274c);
	--fphs-text: var(--wp--preset--color--bodytext, #2e3337);
	--fphs-max: var(--wp--style--global--wide-size, 1410px);
	position: relative;
	box-sizing: border-box;
	padding: 2.5rem 1rem;
	background-color: #fff;
	background-size: cover;
	background-position: center;
	font-family: inherit;
	color: var(--fphs-text);
}
.fphs *, .fphs *::before, .fphs *::after { box-sizing: border-box; }
.fphs.has-bg { background-image: var(--fphs-bg); }
.fphs.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, .4));
	pointer-events: none;
}
.fphs > * { position: relative; }

.fphs .fphs__header {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	width: 100%;
	max-width: 976px;
	margin: 0 auto 2rem;
	padding: 0;
	text-align: center;
	color: var(--fphs-secondary);
}
.fphs .fphs__header > span { max-width: 80%; padding: 0 1rem; }
.fphs .fphs__header::before, .fphs .fphs__header::after {
	content: "";
	flex: 1 1 0;
	height: .5rem;
	margin: .75rem 0;
	border-top: 2px solid var(--fphs-primary);
	border-bottom: 2px solid var(--fphs-primary);
	opacity: 1;
}

.fphs__box {
	max-width: 976px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.fphs .fphs__tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 1rem 1.25rem;
	border: 0;
	border-radius: 0;
	border-bottom: 4px solid #fff;
	background: var(--fphs-secondary) !important;
	color: #fff;
	font: inherit;
	font-size: 1.125rem;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .3s;
}
.fphs .fphs__tab:hover, .fphs .fphs__tab:focus-visible, .fphs .fphs__item.is-active > .fphs__tab { background: var(--fphs-primary) !important; color: #fff; }
.fphs .fphs__tab:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.fphs__chev {
	flex: none;
	width: .6em;
	height: .6em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .3s;
}
.fphs__item.is-active > .fphs__tab .fphs__chev { transform: rotate(-135deg); }

.fphs__panel { background: #fff; }
.fphs__panel-inner { padding: 1.5rem 1.25rem 2rem; }
.fphs__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.fphs__icon { flex: none; display: block; font-size: 3rem; line-height: 1; color: var(--fphs-primary); }
.fphs__svg { width: 1em; height: 1em; display: block; }
.fphs__title { margin: 0; color: var(--fphs-secondary); font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.15; }
.fphs__content > :first-child { margin-top: 0; }
.fphs__content > :last-child { margin-bottom: 0; }

/* Image hotspot map */
.fphs-map { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.fphs-map__title { margin: 0 0 .5rem; color: var(--fphs-secondary, #02274c); }
.fphs .fphs-map__list { margin: 0; padding: 0; list-style: none; }
.fphs .fphs-map__list li { position: relative; margin: 0; padding: .2em 0 .2em 1.25em; list-style: none; transition: color .2s; }
.fphs-map__list a::after { content: none !important; }
.fphs-map__list li::before { content: "\2022"; position: absolute; left: 0; color: #9ca3af; }
.fphs .fphs-map__list li.is-active a, .fphs .fphs-map__list a:hover { color: var(--fphs-secondary, #02274c); font-weight: inherit; }
.fphs-map__map { position: relative; width: 100%; max-width: 480px; justify-self: end; }
.fphs-map__base { display: block; width: 100%; height: auto; margin: 0; }
.fphs-map .fphs-map__spot {
	position: absolute;
	z-index: 5;
	width: var(--fphs-spot);
	aspect-ratio: 1;
	border-radius: 50%;
	background: transparent;
	transition: background-color .3s;
}
.fphs-map .fphs-map__spot::after { content: none !important; }
.fphs-map__spot img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .5s, transform .5s;
}
.fphs-map__spot:hover, .fphs-map__spot.is-active { z-index: 6; background: #fff; }
.fphs-map__spot:hover img, .fphs-map__spot.is-active img { opacity: 1; transform: scale(1.8); }
@media (min-width: 920px) {
	.fphs-map { grid-template-columns: 4fr 5fr; align-items: start; }
}

/* Tabs layout: headings left, panels stacked in one cell on the right. */
@media (min-width: 1280px) {
	.fphs__box { max-width: var(--fphs-max); padding: 2rem; }
	.fphs__grid {
		display: grid;
		position: relative;
		grid-template-columns: 1fr 2fr;
		grid-template-rows: repeat(var(--fphs-count), auto) 1fr;
	}
	.fphs__item { display: contents; }
	.fphs .fphs__tab { grid-column: 1; grid-row: calc(var(--fphs-i) + 1); padding: 1.25rem 1.5rem; }
	.fphs__chev { transform: rotate(-45deg); }
	.fphs__item.is-active > .fphs__tab .fphs__chev { transform: rotate(-45deg); }
	.fphs__panel, .fphs__panel[hidden] {
		display: block;
		position: absolute;
		inset: 0;
		grid-column: 2;
		grid-row: 1 / -1;
		opacity: 0;
		visibility: hidden;
		transform: translateX(-2rem);
		transition: opacity .7s, transform .7s, visibility 0s .7s;
	}
	.fphs__item.is-active > .fphs__panel {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .7s, transform .7s;
	}
	.fphs__panel-inner { padding: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fphs *, .fphs *::before, .fphs-map__spot img { transition: none !important; }
}
