.pbt-fantasy-results {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	background: #fafafa;
}

.pbt-fantasy-results__heading {
	margin: 0 0 0.25rem;
}

.pbt-fantasy-results__season {
	margin: 0 0 1rem;
	color: #666;
	font-size: 0.9rem;
}

.pbt-fantasy-results__empty {
	color: #666;
	margin: 0;
}

.pbt-fantasy-results__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.pbt-fantasy-results__table th,
.pbt-fantasy-results__table td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid #e2e2e2;
	text-align: left;
}

.pbt-fantasy-results__table th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666;
}

.pbt-fantasy-results__rank {
	width: 4rem;
	font-variant-numeric: tabular-nums;
	color: #666;
}

.pbt-fantasy-results__name {
	font-weight: 600;
}

.pbt-fantasy-results__location {
	display: block;
	font-weight: 400;
	font-size: 0.8rem;
	color: #666;
}

.pbt-fantasy-results__score {
	width: 5rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Both selectors are compound (class *and* element) so they outrank the
   blanket `text-align: left` on `.pbt-fantasy-results__table td`, which is
   itself class-plus-element and would otherwise win on specificity and drag
   the score cells left while the header stayed right. */
.pbt-fantasy-results__table th.pbt-fantasy-results__score-col,
.pbt-fantasy-results__table td.pbt-fantasy-results__score {
	text-align: right;
}

/* Expandable rows. The panel markup is always rendered; frontend.js adds
   --enhanced and collapses it, so with JavaScript off every panel simply
   stays open instead of becoming unreachable. */
.pbt-fantasy-results__toggle {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: default;
}

.pbt-fantasy-results--enhanced .pbt-fantasy-results__toggle {
	cursor: pointer;
}

.pbt-fantasy-results--enhanced .pbt-fantasy-results__row {
	cursor: pointer;
}

.pbt-fantasy-results--enhanced .pbt-fantasy-results__row:hover {
	background: #f6f7f7;
}

.pbt-fantasy-results__toggle-icon {
	display: none;
	flex: 0 0 auto;
	width: 0;
	height: 0;
	margin-top: 0.35em;
	border-left: 0.35em solid currentColor;
	border-top: 0.3em solid transparent;
	border-bottom: 0.3em solid transparent;
	transition: transform 0.15s ease;
}

.pbt-fantasy-results--enhanced .pbt-fantasy-results__toggle-icon {
	display: block;
}

.pbt-fantasy-results__row--open .pbt-fantasy-results__toggle-icon {
	transform: rotate(90deg);
}

.pbt-fantasy-results__toggle:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* Belt and braces: a theme styling `tr` with display can otherwise beat the
   browser's own [hidden] rule and leave collapsed panels visible. */
.pbt-fantasy-results__picks-row[hidden] {
	display: none;
}

.pbt-fantasy-results__picks-cell {
	background: #fbfbfb;
}

.pbt-fantasy-results__picks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 2rem;
}

.pbt-fantasy-results__picks-title {
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666;
}

.pbt-fantasy-results__picks-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pbt-fantasy-results__pick {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.2rem 0;
	font-size: 0.9rem;
	color: #666;
}

.pbt-fantasy-results__pick--scored {
	color: #1e1e1e;
	font-weight: 600;
}

.pbt-fantasy-results__pick-tag,
.pbt-fantasy-results__pick-slot {
	font-weight: 400;
	font-size: 0.75rem;
	color: #787c82;
}

.pbt-fantasy-results__pick-points {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
	.pbt-fantasy-results__picks {
		grid-template-columns: 1fr;
	}
}

.pbt-fantasy-results__empty-hint {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: #787c82;
}
