/* Ecosystem content — Home/Platform feature sections and the Mining, Account, Membership pages */

/* — Feature split: image + copy (Home section 01, Platform section 02) — */
.eco-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}
.eco-split-copy .careers-collab-title {
	margin-bottom: 24px;
}
.eco-split-copy p,
.eco-copy p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--xq-text-secondary);
	margin: 0 0 18px;
	letter-spacing: 0;
}
.eco-split-copy p:last-child,
.eco-copy p:last-child {
	margin-bottom: 0;
}
.eco-split-copy a:not(.eco-link-card),
.eco-copy a {
	color: var(--xq-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.eco-split-copy a:not(.eco-link-card):hover,
.eco-copy a:hover {
	color: var(--xq-link-hover);
}

/* — Illustrations — */
.eco-figure {
	margin: 0;
	border: 1px solid var(--xq-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--xq-card-bg);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 60px rgba(0,0,0,0.35);
}
.eco-figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* — Link cards to the three ecosystem pages — */
.eco-link-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
}
.eco-link-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 22px 20px;
	border: 1px solid var(--xq-border-subtle);
	border-radius: 10px;
	background: var(--xq-card-bg);
	color: var(--xq-text-secondary);
	text-decoration: none;
	transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.eco-link-card:hover,
.eco-link-card:focus-visible {
	border-color: var(--xq-primary);
	background: rgba(0,174,239,0.05);
	box-shadow: 0 10px 40px rgba(0,174,239,0.10);
	color: var(--xq-text-secondary);
	text-decoration: none;
}
.eco-link-card:focus-visible {
	outline: 1px solid var(--xq-primary);
	outline-offset: 3px;
}
.eco-link-card-title {
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--xq-text-primary);
}
.eco-link-card-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--xq-text-muted);
}
.eco-link-card-cta {
	margin-top: auto;
	padding-top: 8px;
	font-size: 13px;
	color: var(--xq-link);
}

/* — Page hero additions — */
.eco-page .careers-hero-banner .hero-subtitle {
	max-width: 760px;
}

/* — Page sub-navigation (cross-links between the three pages) — */
.eco-subnav {
	border-bottom: 1px solid var(--xq-border);
	background: rgba(5,11,20,0.6);
}
.eco-subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 16px 0;
	list-style: none;
}
.eco-subnav a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid var(--xq-border-subtle);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: var(--xq-text-secondary);
	text-decoration: none;
	transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.eco-subnav a:hover,
.eco-subnav a:focus-visible {
	color: var(--xq-primary);
	border-color: var(--xq-primary);
	text-decoration: none;
}
.eco-subnav a[aria-current="page"] {
	color: var(--xq-dark-bg);
	background: var(--xq-primary);
	border-color: var(--xq-primary);
}

/* — Content sections — */
.eco-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 28px;
}
.eco-section-head .careers-collab-title {
	margin: 0;
}
.eco-copy {
	max-width: 780px;
}
.eco-section .eco-figure {
	margin-bottom: 40px;
}

/* — Data tables — */
.eco-table-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	align-items: start;
	gap: 20px;
	margin-top: 32px;
}
.eco-table-card {
	border: 1px solid var(--xq-border-subtle);
	border-radius: 10px;
	background: var(--xq-card-bg);
	overflow: hidden;
}
.eco-table-card h3 {
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid var(--xq-border-subtle);
	font-size: 15px;
	font-weight: 600;
	color: var(--xq-text-primary);
	letter-spacing: 0;
}
.eco-table-scroll {
	overflow-x: auto;
}
.eco-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.eco-table th,
.eco-table td {
	padding: 11px 20px;
	border-bottom: 1px solid rgba(0,174,239,0.08);
	text-align: left;
	color: var(--xq-text-secondary);
}
.eco-table th {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xq-text-muted);
}
.eco-table td.num,
.eco-table th.num {
	text-align: right;
}
.eco-table tbody tr:last-child td {
	border-bottom: none;
}
.eco-table tfoot td {
	border-top: 1px solid var(--xq-border);
	border-bottom: none;
	font-weight: 600;
	color: var(--xq-text-primary);
}
.eco-table-note {
	margin: 0;
	padding: 14px 20px 18px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--xq-text-muted);
}
.eco-footnote {
	max-width: 860px;
	margin: 24px 0 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--xq-text-muted);
}

.eco-footnote a {
	color: var(--xq-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.eco-footnote a:hover {
	color: var(--xq-link-hover);
}

/* — Allocation bar — */
.eco-alloc-bar {
	display: flex;
	height: 10px;
	margin: 0 20px 4px;
	border-radius: 999px;
	overflow: hidden;
	gap: 2px;
}
.eco-alloc-bar span {
	display: block;
	height: 100%;
}
.eco-alloc-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 2px;
	vertical-align: -1px;
}
.eco-c1 { background: #00AEEF; }
.eco-c2 { background: #6BE6FF; }
.eco-c3 { background: #4C7DF0; }
.eco-c4 { background: #8E7CF6; }
.eco-c5 { background: #5D6B82; }

/* — Earn → Move → Redeem steps — */
.eco-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
	counter-reset: eco-step;
}
.eco-step {
	position: relative;
	padding: 22px;
	border: 1px solid var(--xq-border-subtle);
	border-radius: 10px;
	background: var(--xq-card-bg);
}
.eco-step-title {
	margin: 0 0 12px;
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--xq-text-primary);
	letter-spacing: 0;
}
.eco-step p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--xq-text-muted);
}

/* — Highlighted figure (redemption calculation) — */
.eco-callout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	margin-top: 32px;
	padding: 24px 28px;
	border: 1px solid var(--xq-border);
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(0,174,239,0.08), rgba(0,174,239,0.02));
}
.eco-callout-value {
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: var(--xq-text-primary);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.eco-callout p {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--xq-text-secondary);
}

/* — Bullet list — */
.eco-list {
	margin: 0 0 18px;
	padding-left: 20px;
	color: var(--xq-text-secondary);
	font-size: 15px;
	line-height: 1.75;
}

/* — Document / resource row — */
.eco-resource {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 28px;
	border: 1px solid var(--xq-border);
	border-radius: 12px;
	background: var(--xq-card-bg);
}
.eco-resource h2,
.eco-resource h3 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: var(--xq-text-primary);
	letter-spacing: 0;
}
.eco-resource p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--xq-text-muted);
}
.eco-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 24px;
	border: 1px solid var(--xq-primary);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xq-primary);
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.eco-btn:hover,
.eco-btn:focus-visible {
	background: var(--xq-primary);
	color: var(--xq-dark-bg);
	box-shadow: 0 0 20px rgba(0,174,239,0.3);
	text-decoration: none;
}

/* — Related pages & disclosures — */
.eco-related-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.eco-related-links a {
	color: var(--xq-link);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-size: 15px;
}
.eco-related-links a:hover {
	color: var(--xq-link-hover);
}

@media (max-width: 991px) {
	.eco-split {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.eco-link-grid,
	.eco-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.eco-split-copy p,
	.eco-copy p {
		font-size: 15px;
	}
	.eco-link-grid {
		margin-top: 32px;
	}
	/* Site-wide mobile rules centre section titles; keep ecosystem section titles left-aligned with their body copy */
	.eco-section .careers-collab-title,
	.eco-split-copy .careers-collab-title {
		text-align: left;
	}
	.eco-table td {
		font-size: 13px;
	}
	.eco-table th {
		font-size: 11px;
	}
	.eco-section .eco-figure {
		margin-bottom: 28px;
	}
	.eco-table th,
	.eco-table td {
		padding: 10px 14px;
	}
	.eco-table-card h3,
	.eco-table-note {
		padding-left: 14px;
		padding-right: 14px;
	}
	.eco-alloc-bar {
		margin: 0 14px 4px;
	}
	.eco-callout {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		padding: 20px;
	}
	.eco-callout-value {
		font-size: 26px;
	}
	.eco-resource {
		padding: 20px;
	}
}
