/* ══════════════════════════════════════════════════════════════════════
   Global Maternity Leave Comparison Page
   Prefix: gml-
   ══════════════════════════════════════════════════════════════════════ */

:root {
	--gml-primary: #8B7BB8;
	--gml-accent: #7BC8B8;
	--gml-text: #3D2F50;
	--gml-text-muted: #695A80;
	--gml-us-red: #e74c3c;
	--gml-us-bg: #fdf2f0;
	--gml-best-green: #27ae60;
	--gml-best-bg: #eafaf1;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────── */

.mls-breadcrumbs {
	font-size: 13px;
	color: var(--gml-text-muted);
	margin: 12px auto 20px;
	max-width: 900px;
	padding: 0 16px;
}

.mls-breadcrumbs a {
	color: var(--gml-primary);
	text-decoration: none;
}

.mls-breadcrumbs a:hover {
	text-decoration: underline;
}

.mls-breadcrumbs span {
	margin: 0 6px;
	color: #ccc;
}

/* ── Stats Bar ────────────────────────────────────────────────────── */

.gml-stats-bar {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin: -12px auto 24px;
	padding: 0 16px;
	max-width: 700px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.gml-stat-pill {
	background: #fff;
	border-radius: 12px;
	padding: 14px 20px;
	text-align: center;
	box-shadow: 0 4px 16px rgba(61, 47, 80, 0.08);
	flex: 1;
	min-width: 140px;
}

.gml-stat-num {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: var(--gml-primary);
}

.gml-stat-us .gml-stat-num {
	color: var(--gml-us-red);
}

.gml-stat-best .gml-stat-num {
	color: var(--gml-best-green);
}

.gml-stat-text {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--gml-text-muted);
	margin-top: 2px;
}

/* ── Sections ─────────────────────────────────────────────────────── */

.gml-section {
	max-width: 900px;
	margin: 0 auto 32px;
	padding: 0 16px;
}

.gml-section-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--gml-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 14px;
}

.gml-section-title .section-icon {
	margin-right: 6px;
}

/* ── Outlier Card ─────────────────────────────────────────────────── */

.gml-outlier-card {
	background: #fff;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
	border-radius: 14px;
	padding: 24px;
}

.gml-outlier-card p {
	color: var(--gml-text);
	line-height: 1.7;
	margin: 0 0 14px;
}

.gml-outlier-card a {
	color: var(--gml-primary);
	font-weight: 700;
}

/* ── Bar Chart ────────────────────────────────────────────────────── */

.gml-bar-chart {
	margin: 20px 0 12px;
}

.gml-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.gml-bar-label {
	flex: 0 0 130px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gml-text);
	text-align: right;
	white-space: nowrap;
}

.gml-bar-track {
	flex: 1;
	height: 22px;
	background: #f0edf5;
	border-radius: 11px;
	overflow: hidden;
}

.gml-bar-fill {
	height: 100%;
	background: linear-gradient(135deg, var(--gml-primary), #a48ed4);
	border-radius: 11px;
	min-width: 2px;
	transition: width 0.4s ease;
}

.gml-bar-us .gml-bar-fill {
	background: var(--gml-us-red);
}

.gml-bar-value {
	flex: 0 0 55px;
	font-size: 14px;
	font-weight: 700;
	color: var(--gml-text-muted);
}

.gml-bar-us .gml-bar-label,
.gml-bar-us .gml-bar-value {
	color: var(--gml-us-red);
	font-weight: 800;
}

.gml-source {
	font-size: 12px;
	color: var(--gml-text-muted);
	margin: 8px 0 0;
}

/* ── Filter Chips ─────────────────────────────────────────────────── */

.gml-table-intro {
	color: var(--gml-text-muted);
	font-size: 15px;
	margin: 0 0 14px;
}

.gml-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.gml-chip {
	padding: 6px 14px;
	border: 1.5px solid rgba(139, 123, 184, 0.25);
	border-radius: 20px;
	background: #fff;
	color: var(--gml-text-muted);
	font-size: 13px;
	font-weight: 600;
	font-family: 'Nunito', sans-serif;
	cursor: pointer;
	transition: all 0.15s;
}

.gml-chip:hover {
	border-color: var(--gml-primary);
	color: var(--gml-primary);
}

.gml-chip-active {
	background: var(--gml-primary);
	border-color: var(--gml-primary);
	color: #fff;
}

.gml-chip-active:hover {
	color: #fff;
}

/* ── Comparison Table ─────────────────────────────────────────────── */

.gml-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
	border-radius: 14px;
}

.gml-comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.gml-comparison-table thead {
	background: #faf9fc;
}

.gml-comparison-table th {
	padding: 10px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gml-text-muted);
	text-align: left;
	border-bottom: 2px solid rgba(139, 123, 184, 0.12);
	white-space: nowrap;
}

.gml-sortable {
	cursor: pointer;
	user-select: none;
}

.gml-sortable:hover {
	color: var(--gml-primary);
}

.gml-sort-arrow {
	font-size: 10px;
	opacity: 0.4;
}

.gml-sortable[data-active] .gml-sort-arrow {
	opacity: 1;
	color: var(--gml-primary);
}

.gml-comparison-table td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(139, 123, 184, 0.08);
	color: var(--gml-text);
}

.gml-comparison-table tbody tr:hover {
	background: #faf9fc;
}

.gml-rank {
	font-weight: 700;
	color: var(--gml-text-muted);
	width: 36px;
	text-align: center;
}

.gml-country {
	font-weight: 700;
	white-space: nowrap;
}

.gml-flag {
	margin-right: 4px;
}

.gml-region-cell {
	font-size: 12px;
	color: var(--gml-text-muted);
}

.gml-weeks {
	font-weight: 700;
	text-align: center;
}

.gml-pct {
	text-align: center;
}

.gml-pays {
	font-size: 12px;
	color: var(--gml-text-muted);
}

/* US row highlight */
.gml-us-row {
	background: var(--gml-us-bg) !important;
}

.gml-us-row td {
	color: var(--gml-us-red);
	font-weight: 700;
}

.gml-us-row .gml-region-cell,
.gml-us-row .gml-pays {
	color: var(--gml-us-red);
	opacity: 0.8;
}

/* ── Regional Breakdown ───────────────────────────────────────────── */

.gml-region-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.gml-region-card {
	background: #fff;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
	border-radius: 14px;
	padding: 20px;
}

.gml-region-name {
	font-size: 15px;
	font-weight: 800;
	color: var(--gml-text);
	margin: 0 0 12px;
}

.gml-region-best {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--gml-best-bg);
	border-radius: 8px;
	padding: 8px 12px;
	margin-bottom: 12px;
}

.gml-region-flag {
	font-size: 20px;
}

.gml-region-best-name {
	font-weight: 700;
	color: var(--gml-text);
	flex: 1;
}

.gml-region-best-weeks {
	font-weight: 800;
	color: var(--gml-best-green);
	font-size: 15px;
}

.gml-region-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gml-region-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid rgba(139, 123, 184, 0.06);
	font-size: 14px;
}

.gml-region-list li:last-child {
	border-bottom: none;
}

.gml-region-country {
	color: var(--gml-text);
}

.gml-region-data {
	font-weight: 600;
	color: var(--gml-text-muted);
	font-size: 13px;
	white-space: nowrap;
}

/* ── Key Facts ────────────────────────────────────────────────────── */

.gml-facts-card {
	background: #fff;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
	border-radius: 14px;
	padding: 24px;
}

.gml-facts-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gml-facts-list li {
	list-style: none;
	padding: 10px 0 10px 28px;
	border-bottom: 1px solid rgba(139, 123, 184, 0.06);
	color: var(--gml-text);
	line-height: 1.6;
	position: relative;
}

.gml-facts-list li:last-child {
	border-bottom: none;
}

.gml-facts-list li::before {
	content: '•';
	position: absolute;
	left: 8px;
	color: var(--gml-primary);
	font-weight: 800;
	font-size: 18px;
}

.gml-fact-source {
	font-size: 12px;
	color: var(--gml-text-muted);
}

/* ── FAQ ──────────────────────────────────────────────────────────── */

.gml-faq-item {
	border-bottom: 1px solid #f0edf5;
	padding: 12px 0;
}

.gml-faq-item:last-child {
	border-bottom: none;
}

.gml-faq-q {
	font-size: 15px;
	font-weight: 700;
	color: var(--gml-text);
	margin: 0 0 6px;
	text-transform: none;
	letter-spacing: 0;
}

.gml-faq-a {
	font-size: 15px;
	color: var(--gml-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* ── CTA Section ──────────────────────────────────────────────────── */

.gml-cta-section {
	max-width: 600px;
	margin: 0 auto 32px;
	padding: 32px 24px;
	text-align: center;
	background: #fff;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
	border-radius: 16px;
}

.gml-cta-heading {
	font-size: 20px;
	font-weight: 800;
	color: var(--gml-text);
	margin: 0 0 8px;
}

.gml-cta-text {
	color: var(--gml-text-muted);
	line-height: 1.6;
	margin: 0 0 20px;
}

.gml-cta-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.gml-cta-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 24px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.gml-cta-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.gml-cta-primary {
	background: linear-gradient(135deg, var(--gml-accent), #5aa898);
	color: #fff;
	box-shadow: 0 4px 16px rgba(123, 200, 184, 0.3);
}

.gml-cta-primary:hover {
	color: #fff;
	box-shadow: 0 6px 24px rgba(123, 200, 184, 0.4);
}

.gml-cta-secondary {
	background: #fff;
	color: var(--gml-primary);
	border: 1.5px solid var(--gml-primary);
}

.gml-cta-secondary:hover {
	background: var(--gml-primary);
	color: #fff;
}

/* ── Sources ──────────────────────────────────────────────────────── */

.gml-sources-card {
	background: #faf9fc;
	border-radius: 14px;
	padding: 20px 24px;
}

.gml-sources-list {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
}

.gml-sources-list li {
	padding: 6px 0;
	font-size: 13px;
	border-bottom: 1px solid rgba(139, 123, 184, 0.06);
}

.gml-sources-list li:last-child {
	border-bottom: none;
}

.gml-sources-list a {
	color: var(--gml-primary);
	text-decoration: none;
}

.gml-sources-list a:hover {
	text-decoration: underline;
}

/* ── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.gml-stats-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: -8px;
	}

	.gml-stat-pill {
		padding: 10px 16px;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.gml-stat-num {
		font-size: 18px;
	}

	.gml-stat-text {
		font-size: 11px;
	}

	.gml-bar-label {
		flex: 0 0 90px;
		font-size: 12px;
	}

	.gml-bar-value {
		flex: 0 0 45px;
		font-size: 12px;
	}

	.gml-bar-track {
		height: 18px;
	}

	.gml-region-grid {
		grid-template-columns: 1fr;
	}

	.gml-comparison-table th,
	.gml-comparison-table td {
		padding: 8px;
	}

	.gml-th-region {
		display: none;
	}

	.gml-region-cell {
		display: none;
	}

	.gml-th-pays {
		display: none;
	}

	.gml-pays {
		display: none;
	}

	.gml-cta-buttons {
		flex-direction: column;
	}

}
