/*
 * SPM Aug26 — shared components, every page and every language.
 *
 * The Copy Trading App screen is the approved reference in the wireframes, so
 * its FAQ list, "Back to …" bar and market grids are defined here once instead
 * of being re-styled per template. Loaded after main.css on all pages.
 */

/* ---------- FAQ (reference: Copy Trading App) ---------- */
html body .sp-faq {
	display: flex !important;
	max-width: none !important;
	flex-direction: column;
	gap: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body .sp-faq__item {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

html body .sp-faq__item summary {
	position: relative;
	display: block !important;
	margin: 0 !important;
	padding: 0 40px 24px 0 !important;
	border-bottom: 1px solid #444 !important;
	background: none !important;
	color: #fff !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: 32px !important;
	letter-spacing: -0.48px !important;
	list-style: none !important;
	cursor: pointer;
	text-box: trim-both cap alphabetic;
}

html body .sp-faq__item summary::-webkit-details-marker {
	display: none;
}

html body .sp-faq__item summary::before {
	display: none !important;
}

html body .sp-faq__item summary::after {
	content: "" !important;
	position: absolute !important;
	top: 1px !important;
	right: 2px !important;
	left: auto !important;
	width: 7px !important;
	height: 7px !important;
	margin: 0 !important;
	border: solid #fff !important;
	border-width: 0 2px 2px 0 !important;
	background: none !important;
	transform: rotate(45deg) !important;
	transition: transform .2s ease;
}

html body .sp-faq__item[open] summary::after {
	top: 5px !important;
	transform: rotate(-135deg) !important;
}

html body .sp-faq__item > p,
html body .sp-faq__item > div,
html body .sp-faq__item > p > p {
	max-width: none !important;
	margin: 24px 0 0 !important;
	padding: 0 !important;
	color: #f4f4f4 !important;
	font-size: 16px !important;
	line-height: 24px !important;
	letter-spacing: -0.32px !important;
	text-box: trim-both cap alphabetic;
}

html body .sp-faq__item > p > p {
	margin: 0 !important;
}

/* ---------- "Back to …" bar (reference: Copy Trading App) ---------- */
html body .sp-back-link {
	position: relative;
	isolation: isolate;
	display: flex !important;
	min-height: 56px;
	align-items: center;
	margin: 80px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #f4f4f4 !important;
	font-size: 12px !important;
	line-height: 18px !important;
	letter-spacing: -0.24px !important;
	text-align: left !important;
}

html body .sp-back-link::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	border-top: 1px solid #444;
	border-bottom: 1px solid #444;
	background: #111;
	transform: translateX(-50%);
}

html body .sp-back-link a {
	color: #f4f4f4 !important;
	font-size: 12px !important;
	line-height: 18px !important;
	text-decoration: none !important;
}

html body .sp-back-link a u {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Market card grids: centre an incomplete last row ---------- */
html body .sp-platmarkets__grid,
html body .sp-markets__grid--center {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px 25px !important;
}

html body .sp-platmarkets__grid > * {
	width: calc((100% - 50px) / 3) !important;
	margin: 0 !important;
}

@media (max-width: 1199.98px) {
	html body .sp-platmarkets__grid > * {
		width: calc((100% - 25px) / 2) !important;
	}
}

@media (max-width: 720px) {
	html body .sp-faq {
		gap: 32px !important;
	}

	html body .sp-faq__item summary {
		font-size: 18px !important;
		line-height: 26px !important;
	}

	html body .sp-back-link {
		margin-top: 56px !important;
	}

	html body .sp-platmarkets__grid > * {
		width: 100% !important;
	}
}

/* ---------- Footer: Axi x Manchester City partner lockup ---------- */
html body .sp-footer__partner {
	margin-top: 32px;
}

html body .sp-footer__partner img {
	display: block;
	width: auto;
	max-width: 180px;
	height: auto;
}
