/* SportsPress team details — league, season, venue cards */
.sp-section-content-details {
	width: 100%;
	max-width: 100%;
	float: none;
	clear: both;
}

.sp-section-content-details .sp-list-wrapper {
	width: 100%;
}

.sp-section-content-details .sp-team-details {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: auto auto;
	grid-auto-columns: minmax(0, 1fr);
	gap: 16px;
	width: 100%;
	margin: 28px 0 32px;
	padding: 0;
}

.sp-section-content-details .sp-team-details dt,
.sp-section-content-details .sp-team-details dd {
	margin: 0;
	min-width: 0;
}

.sp-section-content-details .sp-team-details dt {
	padding: 16px 18px 6px;
	background: #faf9fb;
	border: 1px solid rgba(55, 0, 60, 0.08);
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
}

.sp-section-content-details .sp-team-details dd {
	padding: 4px 18px 16px;
	background: #faf9fb;
	border: 1px solid rgba(55, 0, 60, 0.08);
	border-top: none;
	border-radius: 0 0 8px 8px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: #37003c;
}

.sp-section-content-details .sp-team-details dd a {
	color: inherit;
	text-decoration: none;
}

.sp-section-content-details .sp-team-details dd a:hover,
.sp-section-content-details .sp-team-details dd a:focus {
	color: #000;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.sp-section-content-details .sp-team-details {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
		grid-auto-columns: unset;
		gap: 12px;
		margin: 20px 0 24px;
	}
}

/* Club biography — readable layout (especially mobile) */
.single-sp_team .stm-single-sp_team {
	margin-left: 0;
	margin-right: 0;
}

.single-sp_team .sp-section-content-excerpt {
	display: none;
}

.single-sp_team .sp-section-content-logo {
	text-align: center;
}

.single-sp_team .sp-section-content-logo .sp-template-logo,
.single-sp_team .sp-section-content-logo .sp-team-logo {
	float: none !important;
	max-width: none;
	margin: 0 auto 12px;
}

.single-sp_team .sp-section-content-logo img {
	width: auto;
	max-width: 96px;
	height: auto;
}

.single-sp_team .sp-section-content-content .sp-post-content {
	clear: both !important;
	overflow: visible;
	margin: 0 0 28px;
	padding: 24px 20px;
	background: #fff;
	border: 1px solid rgba(55, 0, 60, 0.08);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(55, 0, 60, 0.06);
}

.single-sp_team .sp-post-content .vc_row,
.single-sp_team .sp-post-content .vc_column_container,
.single-sp_team .sp-post-content .vc_column-inner,
.single-sp_team .sp-post-content .wpb_wrapper,
.single-sp_team .sp-post-content .wpb_text_column,
.single-sp_team .sp-post-content .wpb_text_column > .wpb_wrapper {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.single-sp_team .sp-post-content h2 {
	margin: 0 0 16px;
	color: #37003c;
	font-size: 22px;
	line-height: 1.25;
}

.single-sp_team .sp-post-content p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.65;
	color: #333;
}

.single-sp_team .sp-post-content p:last-child {
	margin-bottom: 0;
}

@media (max-width: 991px) {
	.single-sp_team .stm-single-sp_team {
		margin: 0;
	}

	.single-sp_team .pl-team-news + .sp-section-content-logo {
		margin-top: 4px;
	}

	.single-sp_team .sp-section-content-logo {
		margin-bottom: 0;
		padding: 20px 16px 0;
		background: #fff;
		border: 1px solid rgba(55, 0, 60, 0.08);
		border-bottom: none;
		border-radius: 8px 8px 0 0;
		box-shadow: 0 8px 24px rgba(55, 0, 60, 0.06);
	}

	.single-sp_team .sp-section-content-content .sp-post-content {
		margin-top: 0;
		padding: 12px 16px 20px;
		border-top: none;
		border-radius: 0 0 8px 8px;
		box-shadow: 0 8px 24px rgba(55, 0, 60, 0.06);
	}

	.single-sp_team .sp-post-content h2 {
		font-size: 20px;
	}
}
