/* ==========================================================================
   Inner rivalry pages (Head-to-Head, History, Scoreboard, Prediction).
   Everything else on these pages uses the homepage components from
   match-center.css; this file only adds what the homepage has no class for.
   ========================================================================== */

/* Page header on the stadium card */
.rv-page-hero-content {
	padding: 28px 28px 26px;
	text-align: center;
}
.rv-page-crumbs {
	margin-block-end: 14px;
}
.rv-page-crumbs .breadcrumbs-list {
	justify-content: center;
	color: rgba(255, 255, 255, 0.7);
}
.rv-page-crumbs .breadcrumbs-list a { color: rgba(255, 255, 255, 0.7); }
.rv-page-crumbs .breadcrumbs-list a:hover { color: #FFFFFF; }
.rv-page-crumbs .current { color: #FBBF24; }
.rv-page-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FBBF24;
	margin-block-end: 8px;
}
.rv-page-title {
	font-size: clamp(24px, 3.6vw, 34px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.5px;
	color: #FFFFFF;
	margin: 0 auto 10px;
	max-width: 760px;
}
.rv-page-lead {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 auto;
	max-width: 720px;
}
.rv-page-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-width: 720px;
	margin: 20px auto 0;
}
.rv-page-stats div {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	padding: 10px 12px;
}
.rv-page-stats dt {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}
.rv-page-stats dd {
	margin: 2px 0 0;
	font-size: 20px;
	font-weight: 700;
	color: #FFFFFF;
	font-variant-numeric: tabular-nums;
}

/* Section intro line under a rivalry-header-row */
.rv-section-lead {
	font-size: 14.5px;
	line-height: 1.7;
	color: #475569;
	margin: -10px 0 18px;
}

/* Number columns in the homepage tables */
.editorial-records-table .rv-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.editorial-records-table th.rv-num { text-align: right; }
.editorial-records-table tr.rv-total-row td { font-weight: 600; background: #F8FAFC; }
.editorial-records-table .rv-sub { display: block; font-size: 12px; color: #64748B; }

/* Filters (match list, scorecard picker) */
.rv-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-end: 14px;
}
.rv-filters input,
.rv-filters select {
	font: inherit;
	font-size: 13.5px;
	color: #0F172A;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 8px 12px;
	min-height: 38px;
}
.rv-filters input { flex: 1 1 220px; }
.rv-filters select { flex: 0 1 auto; max-width: 100%; }
.rv-filters input:focus,
.rv-filters select:focus { outline: 2px solid #FDE68A; border-color: #D97706; }
.rv-filter-count { align-self: center; font-size: 12.5px; color: #64748B; }

/* Probability bar labels (reuses .rivalry-visual-bar) */
.rv-prob-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-block-end: 8px;
	font-size: 14px;
	color: #475569;
}
.rv-prob-row strong { font-size: 22px; font-weight: 700; }
.rv-prob-row .csk-text, .rv-prob-row .rcb-text { font-variant-numeric: tabular-nums; }
.rv-prob-block { margin-block-end: 22px; }
.rv-prob-block .rivalry-visual-bar { margin-block-end: 6px; }

/* Season blocks on the history page */
.rv-season-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

@media (max-width: 760px) {
	.rv-page-hero-content { padding: 22px 16px 20px; }
	.rv-page-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rv-page-stats dd { font-size: 18px; }
}

/* Sticky header + subnav offset for every section reached from the pills */
.csk-main-content section[id] {
	scroll-margin-top: calc(var(--csk-header-height, 65px) + var(--csk-subnav-height, 47px) + 20px);
}
