/* ============================================
   Field Staff Shortcode — field-staff.css
   ============================================ */

.fss-wrapper {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ============================================
   LEFT: Map Panel
   ============================================ */
.fss-map-panel {
	flex: 0 0 auto;
	width: 460px;
}

.fss-map-container {
	background: #eef2f8;
	border-radius: 16px;
	padding: 16px;
	overflow: hidden;
}

.fss-australia-svg {
	width: 100%;
	height: auto;
	display: block;
}

/* SVG State paths */
.fss-state-path {
	stroke: #ffffff;
	stroke-width: 0.7;
	stroke-linejoin: round;
}

/* Count bubbles */
.fss-state-count-bubble {
	pointer-events: none;
}

.fss-bubble-circle {
	fill: #ffffff;
	opacity: 0.92;
}

.fss-bubble-text {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 700;
	fill: #1a5299;
	text-anchor: middle;
	dominant-baseline: central;
}

/* State pills below map */
.fss-state-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.fss-state-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 13px;
	border-radius: 20px;
	border: 1.5px solid #c5d5e8;
	background: #ffffff;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #2c3e50;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	line-height: 1;
}

.fss-state-pill:hover,
.fss-state-pill.fss-hovered {
	background: #e8f0fb;
	border-color: #2568b0;
	color: #2568b0;
}

.fss-state-pill.fss-active {
	background: #2568b0;
	border-color: #2568b0;
	color: #ffffff;
}

.fss-pill-abbr {
	font-weight: 700;
}

.fss-pill-count {
	font-weight: 400;
	opacity: 0.75;
}

.fss-state-pill.fss-active .fss-pill-count {
	opacity: 0.85;
}

/* ============================================
   RIGHT: List Panel
   ============================================ */
.fss-list-panel {
	flex: 1 1 0;
	min-width: 0;
}

.fss-list-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 16px;
}

.fss-list-title-wrap {
	min-width: 0;
}

.fss-list-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a2e4a;
	margin: 0 0 4px;
	line-height: 1.2;
}

.fss-list-count {
	font-size: 13px;
	color: #6b7c93;
	margin: 0;
}

/* Reset button */
.fss-reset-btn {
	flex-shrink: 0;
	margin-left: 16px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1.5px solid #c5d5e8;
	background: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #2c3e50;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.fss-reset-btn:hover {
	background: #f0f4f9;
	border-color: #2568b0;
	color: #2568b0;
}

/* Scrollable people list */
.fss-people-list {
	display: flex;
	flex-direction: column;
	max-height: 580px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #c5d5e8 transparent;
}

.fss-people-list::-webkit-scrollbar { width: 5px; }
.fss-people-list::-webkit-scrollbar-track { background: transparent; }
.fss-people-list::-webkit-scrollbar-thumb { background-color: #c5d5e8; border-radius: 4px; }

/* Person card */
.fss-person-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 8px;
	border-bottom: 1px solid #edf1f7;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	transition: background 0.12s;
}

.fss-person-card:last-child {
	border-bottom: none;
}

.fss-person-card:hover {
	background: #f4f7fd;
	text-decoration: none;
}

/* Avatar */
.fss-person-avatar {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	background: #ffffff;
	border: 2px solid #edf1f7;
}

.fss-person-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fss-avatar-placeholder {
	width: 100%;
	height: 100%;
	background: #ffffff;
}

/* Person info */
.fss-person-info {
	flex: 1 1 0;
	min-width: 0;
}

.fss-person-name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #1a2e4a;
	line-height: 1.3;
}

.fss-person-role {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #2568b0;
	margin-top: 2px;
}

/* Location */
.fss-person-location {
	flex-shrink: 0;
	font-size: 12.5px;
	color: #6b7c93;
	text-align: right;
	max-width: 150px;
	line-height: 1.4;
}

/* Hidden / no-results */
.fss-person-card.fss-hidden {
	display: none;
}

.fss-no-results {
	padding: 40px 0;
	text-align: center;
	color: #6b7c93;
	font-size: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
	.fss-wrapper {
		flex-direction: column;
		gap: 20px;
	}
	.fss-map-panel {
		width: 100%;
	}
	.fss-people-list {
		max-height: 500px;
	}
}

@media (max-width: 520px) {
	.fss-person-location {
		display: none;
	}
	.fss-list-title {
		font-size: 18px;
	}
	.fss-person-avatar {
		width: 40px;
		height: 40px;
	}
}

/* ============================================
   State group colours — all fill controlled here, never inline
   ============================================ */

/* All paths inside a state group inherit fill from the group */
.fss-state-group path,
.fss-state-group polygon {
	fill: inherit;
	stroke: #ffffff;
	stroke-width: 0.7;
	stroke-linejoin: round;
	transition: fill 0.18s ease;
}

/* Kill the browser focus rectangle */
.fss-state-group:focus,
.fss-state-group:focus-visible {
	outline: none !important;
}

.fss-state-group.has-people {
	fill: #2568b0;
	cursor: pointer;
}

.fss-state-group.no-people {
	fill: #c4d4e8;
	cursor: default;
	pointer-events: none;
}

.fss-state-group.has-people:hover,
.fss-state-group.has-people.fss-hovered {
	fill: #1a5299;
}

.fss-state-group.has-people.fss-active {
	fill: #0d3668;
}
