.ba-market-page {
	--ba-accent: #ff6a00;
	--ba-accent-soft: rgba(255, 106, 0, 0.14);
	--ba-accent-glow: rgba(255, 106, 0, 0.28);
	--ba-ink: #121212;
	--ba-ink-2: #1c1d1f;
	--ba-ink-3: #2b2c2f;
	--ba-paper: #f4f0e8;
	--ba-paper-2: #fbf8f3;
	--ba-paper-3: #e7dfd4;
	--ba-copy: #3d3a38;
	--ba-copy-soft: #7b736c;
	--ba-line: rgba(18, 18, 18, 0.1);
	--ba-line-light: rgba(255, 255, 255, 0.14);
	--ba-shell: 1160px;
	--ba-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
	position: relative;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	overflow: hidden;
	color: var(--ba-copy);
	font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	background:
		radial-gradient(circle at top right, rgba(255, 106, 0, 0.08), transparent 32%),
		linear-gradient(180deg, #fbf8f3 0%, #f6f0e7 100%);
}

.ba-market-page *,
.ba-market-page *::before,
.ba-market-page *::after {
	box-sizing: border-box;
}

.ba-market-shell {
	width: min(100% - 40px, var(--ba-shell));
	margin: 0 auto;
}

.ba-market-page .ba-oxy-slot,
.ba-market-page .ba-oxy-slot-inner,
.ba-market-page .ba-oxy-shortcode {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.ba-market-bleed {
	margin-inline: 0;
	padding-inline: max(20px, calc((100% - var(--ba-shell)) / 2));
}

.ba-market-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(72px, 12vw, 132px) 44px;
	color: #fff;
	background:
		radial-gradient(circle at 84% 16%, rgba(255, 106, 0, 0.25), transparent 18%),
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 26%),
		linear-gradient(140deg, #0f0f10 0%, #18191b 44%, #232426 100%);
}

.ba-market-hero::before {
	content: "";
	position: absolute;
	inset: auto -10% -20% 54%;
	height: 420px;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(255, 106, 0, 0.22), transparent 70%);
	filter: blur(12px);
	pointer-events: none;
}

.ba-market-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: end;
}

.ba-market-kicker,
.ba-market-section-label,
.ba-market-signal-topline,
.ba-market-side-label,
.ba-market-story-meta {
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ba-market-kicker,
.ba-market-section-label,
.ba-market-story-meta {
	color: var(--ba-accent);
}

.ba-market-title {
	max-width: 11ch;
	margin: 14px 0 0;
	font-size: clamp(2.8rem, 5vw, 4rem);
	line-height: 0.94;
	letter-spacing: -0.05em;
	font-weight: 500;
	text-wrap: balance;
}

.ba-market-summary {
	max-width: 640px;
	margin: 22px 0 0;
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	color: rgba(255, 255, 255, 0.82);
}

.ba-market-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.ba-market-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.ba-market-button:hover {
	transform: translateY(-2px);
}

.ba-market-button-primary {
	color: #151515;
	background: var(--ba-accent);
	box-shadow: 0 18px 40px rgba(255, 106, 0, 0.22);
}

.ba-market-button-primary:hover {
	background: #ff7a24;
}

.ba-market-button-secondary {
	color: #fff;
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.18);
}

.ba-market-button-secondary:hover {
	border-color: rgba(255, 255, 255, 0.34);
	background: rgba(255, 255, 255, 0.08);
}

.ba-market-signal {
	padding: 26px 0 0 28px;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.ba-market-signal-topline {
	color: rgba(255, 255, 255, 0.64);
}

.ba-market-rank-mark {
	margin-top: 14px;
	font-size: clamp(4.8rem, 11vw, 7.6rem);
	font-weight: 700;
	line-height: 0.88;
	letter-spacing: -0.08em;
	color: rgba(255, 255, 255, 0.98);
}

.ba-market-signal-name {
	max-width: 12ch;
	margin-top: 12px;
	font-size: clamp(1.4rem, 2vw, 2rem);
	font-weight: 600;
	line-height: 1.05;
}

.ba-market-signal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 12px;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.68);
}

.ba-market-signal-note {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.82);
}

.ba-market-signal-note strong {
	margin-right: 8px;
	color: #fff;
}

.ba-market-stat-rail {
	display: grid;
	grid-template-columns: repeat(var(--ba-hero-columns, 5), minmax(0, 1fr));
	gap: 14px;
	margin-top: 38px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	animation: baFadeUp 480ms ease both;
	animation-delay: 120ms;
}

.ba-market-stat {
	min-width: 0;
}

.ba-market-stat-label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.54);
}

.ba-market-stat-value {
	margin-top: 6px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.ba-market-main {
	padding-top: clamp(24px, 4vw, 44px);
}

.ba-market-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgba(18, 18, 18, 0.08);
	background: rgba(250, 246, 239, 0.82);
	backdrop-filter: blur(14px);
}

.ba-market-nav-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 0;
}

.ba-market-nav-link {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid rgba(18, 18, 18, 0.08);
	border-radius: 999px;
	color: #1e1e1e;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.55);
	transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.ba-market-nav-link:hover {
	transform: translateY(-1px);
	color: var(--ba-accent);
	border-color: rgba(255, 106, 0, 0.28);
	background: rgba(255, 255, 255, 0.84);
}

.ba-market-section,
.ba-market-cta {
	padding-block: clamp(42px, 7vw, 84px);
}

.ba-market-section-header {
	max-width: 720px;
	margin-bottom: 30px;
}

.ba-market-section-header h2,
.ba-market-cta h2 {
	margin: 10px 0 0;
	font-size: clamp(1.95rem, 3.2vw, 2.4rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
	font-weight: 400;
	color: var(--ba-ink);
	text-wrap: balance;
}

.ba-market-page h3 {
	font-size: clamp(1.05rem, 1.8vw, 1.2rem);
	font-weight: 400;
}

.ba-market-section-header-light h2 {
	color: #fff;
}

.ba-market-overview-grid,
.ba-market-context-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
	gap: clamp(28px, 4vw, 52px);
	align-items: start;
}

.ba-market-copy p,
.ba-market-context-copy p,
.ba-market-editorial-copy p,
.ba-market-story-copy p,
.ba-market-cta p {
	margin: 0 0 1.15em;
}

.ba-market-copy p:last-child,
.ba-market-context-copy p:last-child,
.ba-market-editorial-copy p:last-child,
.ba-market-story-copy p:last-child,
.ba-market-cta p:last-child {
	margin-bottom: 0;
}

.ba-market-facts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--ba-line);
}

.ba-market-fact {
	padding: 18px 0;
	border-bottom: 1px solid var(--ba-line);
}

.ba-market-fact:nth-child(odd) {
	padding-right: 16px;
}

.ba-market-fact:nth-child(even) {
	padding-left: 16px;
	border-left: 1px solid var(--ba-line);
}

.ba-market-fact-label,
.ba-market-side-row span {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ba-copy-soft);
}

.ba-market-fact-value {
	margin-top: 8px;
	font-size: 1.24rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ba-ink);
}

.ba-market-editorial {
	padding: 28px 34px;
	border: 1px solid rgba(255, 106, 0, 0.2);
	border-radius: 26px;
	background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 255, 255, 0.74));
	box-shadow: var(--ba-shadow);
}

.ba-market-rankings-section {
	padding-block: clamp(48px, 8vw, 88px);
	background:
		radial-gradient(circle at 12% 8%, rgba(255, 106, 0, 0.16), transparent 18%),
		linear-gradient(180deg, #171719 0%, #111112 100%);
}

.ba-market-ranking-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ba-ranking-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1.2fr) minmax(240px, 0.8fr);
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid var(--ba-line-light);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.03);
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ba-ranking-row:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 106, 0, 0.38);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.ba-ranking-rank {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.06em;
	color: var(--ba-accent);
}

.ba-ranking-main h3 {
	margin: 0;
	font-size: clamp(1.05rem, 1.8vw, 1.2rem);
	line-height: 1.02;
	letter-spacing: -0.04em;
	font-weight: 400;
	color: #fff;
}

.ba-ranking-brokerage {
	margin-top: 8px;
	font-size: 0.98rem;
	color: rgba(255, 255, 255, 0.72);
}

.ba-ranking-quote {
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.86);
}

.ba-ranking-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	align-content: start;
}

.ba-ranking-metrics div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--ba-line-light);
}

.ba-ranking-metrics strong {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.56);
}

.ba-ranking-metrics span,
.ba-ranking-metrics a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.ba-ranking-metrics a:hover {
	color: var(--ba-accent);
}

.ba-market-side-panel {
	padding: 24px;
	border: 1px solid var(--ba-line);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.64);
	backdrop-filter: blur(10px);
	box-shadow: var(--ba-shadow);
}

.ba-market-side-row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--ba-line);
}

.ba-market-side-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ba-market-side-row strong {
	text-align: right;
	font-size: 1rem;
	line-height: 1.2;
	color: var(--ba-ink);
}

.ba-market-page-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ba-market-story-card {
	padding: 24px;
	border: 1px solid var(--ba-line);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: var(--ba-shadow);
}

.ba-market-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ba-market-faq {
	border: 1px solid var(--ba-line);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.74);
	overflow: hidden;
}

.ba-market-faq summary {
	padding: 18px 20px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ba-ink);
	cursor: pointer;
	list-style: none;
}

.ba-market-faq summary::-webkit-details-marker {
	display: none;
}

.ba-market-faq summary::after {
	content: "+";
	float: right;
	font-size: 1.1rem;
	color: var(--ba-accent);
}

.ba-market-faq[open] summary::after {
	content: "-";
}

.ba-market-faq-answer {
	padding: 0 20px 18px;
	color: var(--ba-copy);
}

.ba-market-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	margin-top: 10px;
	padding: 34px;
	border-radius: 28px;
	color: #fff;
	background:
		radial-gradient(circle at top right, var(--ba-accent-glow), transparent 24%),
		linear-gradient(135deg, #171719 0%, #212224 100%);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.ba-market-cta h2 {
	color: #fff;
}

.ba-market-cta p {
	max-width: 52ch;
	color: rgba(255, 255, 255, 0.78);
}

.ba-market-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: flex-end;
}

.ba-market-empty {
	padding: 18px 20px;
	border: 1px dashed rgba(18, 18, 18, 0.16);
	border-radius: 18px;
	color: var(--ba-copy-soft);
	background: rgba(255, 255, 255, 0.54);
}

.ba-market-empty-dark {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.68);
}

.ba-market-debug {
	padding-bottom: 96px;
}

.ba-market-debug-toggles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	margin-bottom: 28px;
}

.ba-market-debug-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--ba-line);
}

.ba-market-debug-block {
	margin-bottom: 14px;
	border: 1px solid var(--ba-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.74);
	overflow: hidden;
}

.ba-market-debug-block summary {
	padding: 14px 18px;
	font-weight: 600;
	cursor: pointer;
}

.ba-market-debug-block pre {
	margin: 0;
	padding: 0 18px 18px;
	font-size: 0.84rem;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}

@keyframes baFadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ba-market-hero-copy,
.ba-market-signal,
.ba-market-overview-section,
.ba-market-editorial,
.ba-market-context-grid,
.ba-market-cta {
	animation: baFadeUp 520ms ease both;
}

.ba-market-signal {
	animation-delay: 100ms;
}

.ba-market-overview-section {
	animation-delay: 140ms;
}

.ba-market-editorial {
	animation-delay: 170ms;
}

.ba-market-context-grid {
	animation-delay: 210ms;
}

.ba-market-cta {
	animation-delay: 240ms;
}

@media (max-width: 1100px) {
	.ba-market-stat-rail {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ba-ranking-row {
		grid-template-columns: 60px minmax(0, 1fr);
	}

	.ba-ranking-metrics {
		grid-column: 2 / -1;
	}
}

@media (max-width: 860px) {
	.ba-market-hero-grid,
	.ba-market-overview-grid,
	.ba-market-context-grid,
	.ba-market-cta,
	.ba-market-page-grid {
		grid-template-columns: 1fr;
	}

	.ba-market-signal {
		padding: 22px 0 0;
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
	}

	.ba-market-stat-rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ba-market-facts-grid,
	.ba-market-debug-toggles {
		grid-template-columns: 1fr;
	}

	.ba-market-fact:nth-child(even) {
		padding-left: 0;
		border-left: 0;
	}

	.ba-market-cta-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.ba-market-shell {
		width: min(100% - 28px, var(--ba-shell));
	}

	.ba-market-title {
		max-width: 12ch;
	}

	.ba-market-button {
		width: 100%;
	}

	.ba-market-nav-inner {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 12px;
	}

	.ba-market-nav-link {
		white-space: nowrap;
	}

	.ba-ranking-row {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.ba-ranking-metrics {
		grid-column: auto;
		grid-template-columns: 1fr;
	}

	.ba-market-editorial,
	.ba-market-cta,
	.ba-market-story-card {
		padding: 22px 20px;
	}
}
