/* GeopoliticalMaps Core Plate Viewer & Tabular Metrics Styles */
.gpm-plate {
	margin: 1.5rem 0;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	overflow: hidden;
}
.gpm-plate-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 1rem;
	background: #f1f5f9;
	border-bottom: 1px solid #cbd5e1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.gpm-plate-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #0f172a;
}
.gpm-plate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.gpm-btn {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: #0f4c81;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
}
.gpm-btn:hover {
	background: #0f4c81;
	color: #ffffff;
	border-color: #0f4c81;
	text-decoration: none;
}
.gpm-plate-viewport {
	background: #f8fafc;
	text-align: center;
}
.gpm-plate-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 680px;
	object-fit: contain;
	margin: 0 auto;
}
.gpm-maplibre-canvas {
	width: 100%;
	min-height: 360px;
	position: relative;
	text-align: left;
}
.gpm-plate-caption {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	padding: 0.6rem 1rem;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	font-size: 0.8rem;
	color: #475569;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.gpm-legend-disputed {
	color: #991b1b;
	font-weight: 500;
}
.gpm-metrics-table,
.gpm-subdivisions-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	font-size: 0.92rem;
	font-variant-numeric: tabular-nums;
}
.gpm-metrics-table th,
.gpm-metrics-table td,
.gpm-subdivisions-table th,
.gpm-subdivisions-table td {
	padding: 0.55rem 0.75rem;
	border: 1px solid #cbd5e1;
	text-align: left;
}
.gpm-subdivisions-table thead th {
	background: #f1f5f9;
	cursor: pointer;
	user-select: none;
}
.gpm-embed-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}
.gpm-embed-modal {
	background: #ffffff;
	width: min(560px, 92vw);
	border-radius: 8px;
	padding: 1.25rem;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}
.gpm-embed-modal textarea {
	width: 100%;
	min-height: 110px;
	font-family: monospace;
	font-size: 0.85rem;
	margin: 0.75rem 0;
	padding: 0.5rem;
}
