/**
 * 三位一体サマリーカード [trainee_summary_card]
 * チッケムトラッカーUIのトーン（白ベース・ピンク系アクセント）を踏襲・コンパクト化
 */

.tsa-summary-card {
	margin: 1em 0;
	background: #fff;
	border: 1px solid #fce7f3;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(131, 24, 67, 0.08);
	overflow: hidden;
}

.tsa-summary-card-header {
	padding: 0.5em 0.75em;
	background: #fdf2f8;
	border-bottom: 1px solid #fce7f3;
}

.tsa-summary-card-title {
	margin: 0;
	font-size: 1.05em;
	font-weight: 600;
	color: #831843;
}

.tsa-summary-card-date {
	margin: 0.15em 0 0;
	font-size: 0.8em;
	color: #555;
}

.tsa-summary-card-body {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	padding: 0;
}

/* スマホ: 1pick・推し選抜を横並び、累計動画再生数は下で横幅いっぱい。区切りは1本の線のみにする */
@media (max-width: 640px) {
	.tsa-summary-card-body {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: minmax(0, auto);
		gap: 0;
		column-gap: 0;
		row-gap: 0;
	}
	.tsa-metric-fancam {
		grid-column: 1 / -1;
	}
}

.tsa-summary-metric {
	padding: 0.6em 0.5em;
	border-right: 1px solid #fce7f3;
	text-align: center;
}

.tsa-summary-metric:last-child {
	border-right: none;
}

@media (max-width: 640px) {
	/* 上段（1pick・推し選抜）: 下線はつけない。左右の罫線のみ */
	.tsa-summary-metric {
		border-right: 1px solid #fce7f3;
		border-bottom: none;
		border-top: none;
		padding: 0.5em 0.5em;
		margin: 0;
	}
	.tsa-summary-metric:nth-child(2) {
		border-right: none;
	}
	/* 下段（累計動画再生数）: 上線1本だけで上段と分割。二重線・空箱に見えないようにする */
	.tsa-metric-fancam {
		border-right: none;
		border-left: none;
		border-top: 1px solid #fce7f3;
		border-bottom: none;
		margin: 0;
		padding-top: 0.5em;
	}
	.tsa-metric-title {
		min-height: 1.5em;
	}
}

/* 3カラムのヘッダー高さを揃える（1行タイトル統一） */
.tsa-metric-title {
	margin: 0 0 0.35em;
	font-size: 0.85em;
	font-weight: 600;
	color: #831843;
	min-height: 1.6em;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 第〇位: 大きく太字で強調 */
.tsa-metric-rank {
	margin-bottom: 0.2em;
	font-size: 1.15em;
}

.tsa-rank-num {
	font-weight: bold;
	font-size: 1.05em;
	color: #333;
}

.tsa-rank-na {
	color: #999;
	font-size: 0.95em;
}

/* 数値は大きく・単位は小さく */
.tsa-metric-value {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 0.3em;
	line-height: 1.3;
}

.tsa-value-num {
	font-weight: bold;
	font-size: 1.15em;
	color: #1f2937;
}

.tsa-value-unit {
	font-size: 0.85em;
	color: #6b7280;
}

/* トレンドバッジ: 独立したラベルとして目立たせる */
.tsa-metric-trend {
	min-height: 1.4em;
	font-size: 0.8em;
	margin-top: 0.2em;
}

/* 各指標下の導線リンク */
.tsa-metric-action {
	margin-top: 0.35em;
	font-size: 0.75em;
}

.tsa-metric-link {
	color: #831843;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tsa-metric-link:hover {
	color: #9d174d;
	text-decoration: underline;
}

/* カード直下の注釈（箇条書き） */
.tsa-summary-disclaimer {
	margin: 0.35em 0 1em;
	padding-left: 1.2em;
	font-size: 0.7em;
	color: #6b7280;
	line-height: 1.5;
	list-style: disc;
}

.tsa-trend-badge {
	display: inline-block;
	padding: 0.25em 0.5em;
	border-radius: 6px;
	font-weight: 600;
	white-space: nowrap;
}

.tsa-trend-up {
	background: #fee2e2;
	color: #991b1b;
}

.tsa-trend-down {
	background: #dbeafe;
	color: #1e40af;
}

.tsa-trend-stay {
	background: #f3f4f6;
	color: #4b5563;
}

.tsa-trend-new {
	background: #f3f4f6;
	color: #374151;
}

