/**
 * CryptoFrame Crypto Markets — asset page styles.
 *
 * The page lives inside whatever the theme's header and footer provide.
 */

/*
 * The container width lives in frontend.css, not here.
 *
 * This stylesheet is only enqueued when an asset page is actually rendered,
 * and that request necessarily arrives after `wp_head` has already printed —
 * the page body renders inside `template_include`, long after the head is
 * closed. WordPress does print late styles in the footer, but relying on that
 * for the page's basic layout puts the container width at the mercy of any
 * caching or optimisation layer that treats footer CSS differently.
 *
 * The width is structural, so it belongs in the stylesheet that is always
 * present. Everything below is asset-page decoration, which is safe to load
 * late.
 */

.cfxcm-asset-page__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.cfxcm-asset-page__identity {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.cfxcm-asset-page__logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.cfxcm-asset-page__name {
	margin: 0;
	font-size: var(--cfx-fs-2xl, 1.875rem);
	line-height: 1.2;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.cfxcm-asset-page__symbol {
	font-size: 0.6em;
	font-weight: 500;
	color: var(--cfxcm-muted, #6b7280);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cfxcm-asset-page__rank {
	margin: 0.25rem 0 0;
	color: var(--cfxcm-muted, #6b7280);
	font-size: var(--cfx-fs-sm, 0.9375rem);
}

.cfxcm-asset-page__quote {
	text-align: right;
	margin-left: auto;
}

.cfxcm-asset-page__quote .cfxcm-price {
	font-size: var(--cfx-fs-2xl, 1.875rem);
}

.cfxcm-asset-page__quote .cfxcm-quote {
	justify-content: flex-end;
}

.cfxcm-asset-page__section {
	margin-bottom: 2rem;
}

.cfxcm-asset-page__heading {
	margin: 0 0 0.75rem;
	font-size: var(--cfx-fs-lg, 1.125rem);
}

.cfxcm-asset-page .cfxcm-disclaimer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--cfxcm-border, rgba(0, 0, 0, 0.08));
	text-align: center;
}

@media (max-width: 600px) {
	.cfxcm-asset-main__inner {
		padding: 1.25rem 1rem;
	}

	.cfxcm-asset-page__header {
		gap: 1rem;
	}

	.cfxcm-asset-page__quote {
		text-align: left;
		margin-left: 0;
		width: 100%;
	}

	.cfxcm-asset-page__quote .cfxcm-quote {
		justify-content: flex-start;
	}
}
