/* =========================================================
   Tutor pay report (the plugin's /tutor-pay/ and /tutor-pay/{year}/,
   templates/seo/pay-report.php): a page head with the CSV download,
   the headline tiles, one ruled table per breakdown, then the method
   and citation cards. Built on the shared primitives (.tr-page-head,
   .tr-kpi, .tr-section-card, .tr-ruled-table, .tr-note); this sheet
   adds the page's spacing and the tables' number columns. Nothing
   scrolls sideways: on phones the range moves under the median.
   ========================================================= */

.tr-pay-report {
	display: grid;
	gap: 28px;
	padding-bottom: 72px;
	font-family: var(--tr-font-sans);
	color: var(--tr-ink);
}

.tr-pay-report > * {
	min-width: 0;
}

.tr-pay-report__kpis {
	margin-top: 4px;
}

/* A tile whose figure is a name ("Further Maths"), not a number. */
.tr-pay-report__kpi--text .tr-kpi__value {
	font-size: 30px;
	letter-spacing: -0.02em;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

/* The salaried figures open like a new section of the page. */
.tr-pay-report__band {
	display: grid;
	gap: 8px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 3px solid var(--tr-ink);
}

.tr-pay-report .tr-pay-report__band-title {
	margin: 0;
	font-family: var(--tr-font-display);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.1;
	color: var(--tr-ink);
}

.tr-pay-report__table {
	border-top: 0;
}

.tr-pay-report__table .tr-pay-report__num {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: lining-nums tabular-nums;
}

.tr-pay-report__table .tr-pay-report__name {
	padding: 16px 16px 16px 0;
	border-top: 1px solid var(--tr-line);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.tr-pay-report__table tbody tr:last-child .tr-pay-report__name {
	border-bottom: 1px solid var(--tr-line);
}

.tr-pay-report__name a {
	color: var(--tr-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tr-pay-report__name a:hover,
.tr-pay-report__name a:focus-visible {
	color: var(--tr-ink);
}

.tr-pay-report__table .tr-num {
	font-size: 19px;
}

.tr-pay-report__range-inline {
	display: none;
	font-size: 13px;
	color: var(--tr-ink-3);
}

.tr-pay-report__hidden {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--tr-ink-3);
}

.tr-pay-report__points {
	display: grid;
	gap: 10px;
	max-width: 76ch;
	margin: 0;
	padding-left: 20px;
	font-size: 15.5px;
	line-height: 1.6;
}

.tr-pay-report__cite p {
	max-width: 76ch;
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

.tr-pay-report__cite a {
	color: var(--tr-deep);
	font-weight: 700;
	text-underline-offset: 3px;
}

/* The ready-made citation: set apart so it can be copied whole. */
.tr-pay-report__cite .tr-pay-report__citation {
	padding: 14px 16px;
	border-left: 3px solid var(--tr-deep);
	border-radius: 4px;
	background: var(--tr-paper);
	overflow-wrap: anywhere;
}

.tr-pay-report .tr-pay-report__years-title {
	margin: 6px 0 0;
}

.tr-pay-report__years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15.5px;
}

.tr-pay-report__more {
	margin: 0;
}

@media (max-width: 1080px) {
	.tr-pay-report__kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tr-pay-report {
		gap: 20px;
		padding-bottom: 48px;
	}

	.tr-pay-report__kpis {
		grid-template-columns: minmax(0, 1fr);
	}

	.tr-pay-report__table .tr-pay-report__range {
		display: none;
	}

	.tr-pay-report__range-inline {
		display: block;
	}

	.tr-pay-report__table .tr-pay-report__name {
		padding-right: 10px;
		overflow-wrap: anywhere;
	}

	.tr-pay-report__table td {
		padding-right: 10px;
	}
}
