/**
 * [squads] — Team info grid + news cards (optional tabs).
 * Team info: card grid on a soft panel (optional header styles kept for future use).
 * Typography matches {@code .isp-squad-shell} (13px system stack).
 *
 * @package ISPV2
 */

.isp-tteam-info,
.isp-tteam-news {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 13px;
	color: #0f172a;
	line-height: 1.35;
}

.isp-tteam-info {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.isp-tteam-info__header {
	margin: 0;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	min-height: 40px;
	box-sizing: border-box;
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 52%, #1d4ed8 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.isp-tteam-info__header-title {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.2;
}

.isp-tteam-info__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
	padding: 14px 16px 16px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.isp-tteam-info__cell {
	padding: 11px 13px 12px;
	min-height: 0;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.isp-tteam-info__cell:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
	transform: translateY(-1px);
}

.isp-tteam-info__label {
	margin: 0 0 5px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #64748b;
	line-height: 1.2;
}

.isp-tteam-info__value {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.45;
	word-break: break-word;
}

.isp-tteam-news {
	margin: 20px 0 0;
}

.isp-tteam-news__empty {
	margin: 0;
	padding: 12px 0;
	color: #64748b;
	font-size: 0.9rem;
}

.isp-tteam-news__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 560px) {
	.isp-tteam-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.isp-tteam-news__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.isp-tteam-news__card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	max-width: 100%;
}

.isp-tteam-news__card:hover {
	border-color: #3b82f6;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}

.isp-tteam-news__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	width: 100%;
	background: #0f172a;
	overflow: hidden;
	flex-shrink: 0;
}

.isp-tteam-news__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.isp-tteam-news__thumb--placeholder {
	background: linear-gradient(160deg, #1e3a8a 0%, #0f172a 55%, #1e293b 100%);
	min-height: 0;
}

.isp-tteam-news__body {
	padding: 6px 8px 8px;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	gap: 4px;
}

.isp-tteam-news__cat {
	margin: 0;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #2563eb;
	line-height: 1.2;
}

.isp-tteam-news__card:hover .isp-tteam-news__cat {
	color: #1d4ed8;
}

.isp-tteam-news__title {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	min-height: 0;
}

.isp-tteam-news__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: #0f172a;
	text-decoration: none;
	word-break: break-word;
}

.isp-tteam-news__title a:hover {
	color: #2563eb;
	text-decoration: none;
}

.isp-tteam-news__meta {
	margin: 0;
	margin-top: auto;
	padding-top: 2px;
	font-size: 0.625rem;
	color: #94a3b8;
	line-height: 1.25;
}

/* Stack team info to one column on narrow panes */
@media (max-width: 520px) {
	.isp-tteam-info__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.isp-tteam-info__cell {
		transition: none;
	}

	.isp-tteam-info__cell:hover {
		transform: none;
	}
}
