/**
 * [team_info] — team hub (ICC-inspired tabs, beautified).
 */

.isp-team-info-embed-row {
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.isp-team-info {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow-x: hidden;
	overflow-y: visible;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%);
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
	isolation: isolate;
}

/* Avoid stacking / focus-ring bleed when ICC rankings sit on the same page (sibling embeds). */
.isp-team-info-embed-row + [data-isp-icc-tabbed],
[data-isp-icc-tabbed] + .isp-team-info-embed-row {
	margin-top: 1rem;
}

.isp-team-info__hero {
	padding: 14px 16px 12px;
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
	color: #fff;
}

.isp-team-info__title {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.isp-team-info__subtitle {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.92;
	line-height: 1.35;
	color:#ffff;
}

.isp-team-info__teams {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 14px 10px;
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
}

.isp-team-info__team-pill {
	cursor: pointer;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #0f172a;
	font-size: 12px;
	font-weight: 700;
	padding: 7px 12px;
	border-radius: 999px;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.isp-team-info__team-pill:hover {
	border-color: #2563eb;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.isp-team-info__team-pill[aria-pressed='true'] {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff;
	border-color: #1d4ed8;
	box-shadow: 0 2px 10px rgba(29, 78, 216, 0.35);
}

.isp-team-info__detail {
	padding: 0 0 10px;
	background: #fff;
	min-height: 8rem;
}

.isp-team-info__squad-notice {
	margin: 8px 10px 0;
	font-size: 13px;
}

.isp-team-info__err {
	margin: 10px 12px;
	font-size: 13px;
	color: #b91c1c;
}

.isp-team-info__loading {
	margin: 0;
	padding: 8px 14px 6px;
	font-size: 13px;
	color: #64748b;
}

.isp-team-info__tablist--sub + .isp-team-info__loading {
	background: #fff;
}

.isp-team-info__loading:not([hidden]) {
	font-weight: 600;
	color: #475569;
}

/* All-teams mode: while a new team is loading, do not show the previous team’s panels. */
.isp-team-info__panels[data-isp-team-info-panels-busy] {
	display: none;
}

.isp-team-info__tablist--sub {
	display: flex;
	gap: 6px;
	padding: 10px 12px 0;
	flex-wrap: wrap;
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
}

.isp-team-info__tab {
	cursor: pointer;
	border: none;
	background: #e2e8f0;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 8px 8px 0 0;
	line-height: 1.2;
	margin-bottom: -1px;
	transition: background 0.15s ease, color 0.15s ease;
}

.isp-team-info__tab[aria-selected='true'] {
	background: #fff;
	color: #1e40af;
	box-shadow: 0 -1px 0 #fff;
	border: 1px solid #e2e8f0;
	border-bottom-color: #fff;
}

.isp-team-info__panels {
	padding: 0 8px 8px;
}

.isp-team-info__panel[hidden] {
	display: none !important;
}

.isp-team-info .isp-team-info__panel-inner--fixtures .isp-tournament-fixtures--shell,
.isp-team-info .isp-team-info__panel-inner--squad .isp-squad-shell {
	border-radius: 0 0 8px 8px;
	border: 1px solid #e2e8f0;
	margin-top: 0;
	max-width: 100%;
}

.isp-team-info .isp-team-info__panel-inner--squad .isp-squad-body--cards {
	min-height: 0;
}

.isp-team-info .isp-team-info__tab[role='tab'],
.isp-team-info .isp-team-info__team-pill[role='button'] {
	font-family: inherit;
}

@media (max-width: 480px) {
	.isp-team-info__teams {
		padding: 10px;
	}
}
