/**
 * Regulation archive sidebar — Global Gambling Regulation Index teaser.
 * Elementor kit sets global text/label colors to white; this widget is a light card.
 */

body.post-type-archive-regulation .cn-ggr-archive-widget.index-widget,
.elementor-591 .cn-ggr-archive-widget.index-widget {
	--cn-ggr-archive-ink: #111827;
	--cn-ggr-archive-muted: #6b7280;
	--cn-ggr-archive-border: #e5e7eb;
	--cn-ggr-archive-surface: #ffffff;
	--cn-ggr-archive-table: #fafafa;
	font-family: "DM Mono", "Courier New", monospace;
	max-width: 100%;
	width: 100%;
	min-width: 0;
	background: var(--cn-ggr-archive-surface) !important;
	border: 1px solid var(--cn-ggr-archive-border) !important;
	border-radius: 4px;
	overflow: hidden;
	font-size: 13px;
	box-sizing: border-box;
	margin-top: 10px;
	color: var(--cn-ggr-archive-ink) !important;
	isolation: isolate;
}

body.post-type-archive-regulation .elementor-element-2996b0a8 .elementor-widget-container,
.elementor-591 .elementor-element-2996b0a8 .elementor-widget-container {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.cn-ggr-archive-widget .index-header {
	background-color: #110a1f;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	color: #ffffff !important;
}

.cn-ggr-archive-widget .index-eyebrow {
	font-size: 10px;
	text-transform: uppercase;
	color: #a78bfa !important;
	margin-bottom: 4px;
	letter-spacing: 0.05em;
}

.cn-ggr-archive-widget .index-title {
	font-family: "Playfair Display", "DM Serif Display", Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff !important;
}

.cn-ggr-archive-widget .index-subtitle {
	font-size: 11px;
	color: #d1d5db !important;
	margin-top: 4px;
	line-height: 1.45;
}

.cn-ggr-archive-widget .index-count {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff !important;
	text-align: right;
	flex-shrink: 0;
}

.cn-ggr-archive-widget .index-count-label {
	font-size: 10px;
	color: #d1d5db !important;
	text-align: right;
	text-transform: uppercase;
}

.cn-ggr-archive-widget .table-responsive-wrapper {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--cn-ggr-archive-table);
}

.cn-ggr-archive-widget .index-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--cn-ggr-archive-table) !important;
	min-width: 420px;
	color: var(--cn-ggr-archive-ink) !important;
}

.cn-ggr-archive-widget .index-table th {
	font-size: 10px;
	text-transform: uppercase;
	color: #9ca3af !important;
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
	background: var(--cn-ggr-archive-table) !important;
}

.cn-ggr-archive-widget .index-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
	color: var(--cn-ggr-archive-ink) !important;
	background: var(--cn-ggr-archive-table) !important;
}

.cn-ggr-archive-widget .mkt-name {
	font-weight: 600;
	color: #111827 !important;
	display: block;
	font-size: 13px;
}

.cn-ggr-archive-widget .mkt-model {
	font-size: 11px;
	color: #6b7280 !important;
	margin-top: 2px;
}

.cn-ggr-archive-widget .status-badge {
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 2px;
	background: #f0fdf4 !important;
	color: #16a34a !important;
	border: 1px solid #dcfce7;
	white-space: nowrap;
}

.cn-ggr-archive-widget .status-badge.partial {
	background: #fffbeb !important;
	color: #d97706 !important;
	border: 1px solid #fde68a;
}

.cn-ggr-archive-widget .status-badge.low {
	background: #fef2f2 !important;
	color: #dc2626 !important;
	border: 1px solid #fecaca;
}

.cn-ggr-archive-widget .reg-bar-bg {
	width: 80px;
	max-width: 100%;
	height: 4px;
	background: #e5e7eb;
	border-radius: 2px;
	overflow: hidden;
}

.cn-ggr-archive-widget .reg-bar {
	height: 100%;
	border-radius: 2px;
}

.cn-ggr-archive-widget .reg-pct {
	font-weight: 700;
	font-size: 13px;
}

.cn-ggr-archive-widget .pct-high {
	color: #16a34a !important;
}

.cn-ggr-archive-widget .pct-mid {
	color: #d97706 !important;
}

.cn-ggr-archive-widget .pct-low {
	color: #dc2626 !important;
}

.cn-ggr-archive-widget .index-footer {
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--cn-ggr-archive-table) !important;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--cn-ggr-archive-muted) !important;
}

.cn-ggr-archive-widget .index-footer-note {
	font-size: 10px;
	color: #9ca3af !important;
	line-height: 1.45;
	flex: 1 1 180px;
	min-width: 0;
}

.cn-ggr-archive-widget .index-cta {
	background: #9333ea !important;
	color: #ffffff !important;
	padding: 6px 12px;
	border-radius: 3px;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.cn-ggr-archive-widget .index-cta:hover,
.cn-ggr-archive-widget .index-cta:focus {
	background: #7e22ce !important;
	color: #ffffff !important;
	text-decoration: none !important;
}

@media (max-width: 860px) {
	body.post-type-archive-regulation .cn-ggr-archive-widget.index-widget,
	.elementor-591 .cn-ggr-archive-widget.index-widget {
		margin-top: 0;
		border-radius: 6px;
	}

	.cn-ggr-archive-widget .index-header {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
		gap: 12px;
	}

	.cn-ggr-archive-widget .index-header > div:last-child {
		display: flex;
		align-items: baseline;
		justify-content: flex-start;
		gap: 6px;
	}

	.cn-ggr-archive-widget .index-count,
	.cn-ggr-archive-widget .index-count-label {
		text-align: left;
	}

	.cn-ggr-archive-widget .index-title {
		font-size: 18px;
	}

	.cn-ggr-archive-widget .index-table {
		min-width: 360px;
	}

	.cn-ggr-archive-widget .index-table th,
	.cn-ggr-archive-widget .index-table td {
		padding: 10px 12px;
	}

	.cn-ggr-archive-widget .index-footer {
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
	}

	.cn-ggr-archive-widget .index-cta {
		display: block;
		text-align: center;
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 480px) {
	.cn-ggr-archive-widget .index-title {
		font-size: 17px;
	}

	.cn-ggr-archive-widget .index-subtitle {
		font-size: 10px;
	}

	.cn-ggr-archive-widget .reg-bar-bg {
		width: 64px;
	}
}
