/* ============================================================
   NOSN State Map Block – Shared Styles (frontend + editor)
   ============================================================ */

/* ── Block wrapper ── */
.nosn-state-map-block {
	box-sizing: border-box;
	width: 100%;
	font-family: inherit;
}

/* ── Two-column flex layout ── */
.nosn-map-inner {
	display: grid;
	grid-template-columns: 2fr 1fr;
	align-items: start;
	gap: 2rem;
	/*display: flex;
	flex-wrap: wrap;
	align-items: flex-start;*/
}

/* ── Map column ── */
.nosn-map-column, .nosn-info-column {
	/*flex: 2 1 420px;*/
	min-width: 0;
}

/* ── SVG wrapper ── */
.nosn-map-svg-wrap {
	width: 100%;
	line-height: 0;
}

.nosn-map-svg-wrap svg.nosn-us-map {
	width: 100%;
	height: auto;
	display: block;
}

.nosn-map-svg-wrap svg.nosn-us-map .sm_label{
	text-anchor: middle;
	stroke: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	text-anchor: middle;
	font: bold 22px Arial;
	cursor: pointer;
	fill: #D5DDEC;
	opacity: 1;
	/*color: #D5DDEC;*/
	-webkit-text-fill-color: #D5DDEC;
}

.nosn-map-svg-wrap svg.nosn-us-map .state_abbr_back{
	width: 45px;
	height: 28.75px;
	r: 5.75px;
	rx: 5.75px;
	ry: 5.75px;
	stroke-width:1.875px;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	opacity: 1;
	cursor: pointer;
	stroke-opacity: 1;
	stroke-linejoin: round;
	fill-opacity: 1;
	fill: #003C71; /*black*/
}

/* Prevent hover effects from the path element from disappearing when hovering over a state label. The mouse pointer simply falls through to the path.*/
.nosn-map-svg-wrap svg.nosn-us-map text {
	pointer-events: none;
}

/* State paths – base styles applied via JS; these are fallback */
.nosn-us-map path[data-state] {
	fill:   var( --nosn-fill,   #003C71 ); /*#CBD5E1*/
	stroke: var( --nosn-border, #707372 ); /*#FFFFFF*/
	stroke-width: 1px;
	transition: fill 0.15s ease, transform 0.15s ease;
	transform-box: fill-box;
	transform-origin: center;
	cursor: default;
	outline: none;
}

.nosn-us-map path[data-state]:focus-visible {
	outline: 2px dashed var( --nosn-hover, #0071A0 ); /*3B82F6*/
	outline-offset: 2px;
}

/* ── Mobile dropdown ── */
.nosn-msp-dropdown-wrap {
	display: none; /* shown via media query */
	margin-bottom: 1rem;
}

.nosn-map-select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #CBD5E1;
	border-radius: 6px;
	background: #fff;
	color: #1E293B;
	cursor: pointer;
}

.nosn-map-select:focus {
	outline: 2px solid var( --nosn-hover, #0071A0 ); /*3B82F6*/
	outline-offset: 2px;
}

.nosn-map-dropdown-note {
	margin-top: 0.4rem;
	font-size: 0.8rem;
	color: #64748B;
}

/* ── Info column ── */
.nosn-info-column {
	flex: 1 1 280px;
	min-width: 0;
}

.nosn-info-content {
	padding: 1.5rem;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	min-height: 160px;
	color: #1E293B;
	line-height: 1.6;
}

.nosn-info-content, .nosn-info-state-content, .nosn-info-no-rep {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.nosn-info-default {
	color: #64748B;
	font-style: italic;
	margin: 0;
}

.nosn-info-state-name {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #0F172A;
}

.nosn-info-state-content p {
	margin: 0 0 0.75rem;
}

.nosn-info-state-content p:last-child {
	margin-bottom: 0;
}

.nosn-info-no-rep {
	margin: 0;
	color: #475569;
}

.nosn-info-no-rep a {
	color: var( --nosn-active, #1D4ED8 );
	text-decoration: underline;
}

.nosn-info-no-rep a:hover {
	text-decoration: none;
}

/* ── Responsive ── */
@media ( max-width: 640px ) {
	.nosn-map-dropdown-wrap {
		display: block;
	}

	.nosn-map-svg-wrap {
		display: none; /* Replace SVG with dropdown on mobile */
	}

	.nosn-map-inner {
		/*flex-direction: column;*/
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.nosn-map-column,
	.nosn-info-column {
		flex-basis: 100%;
	}
}