/* Real Gameplay Board: what the board markup needs on top of the ticket rules of the theme (section 7 of the
   theme stylesheet draws the grid, the plate, the figures, the stub and the bar under the band at every width). */

.rg-board {
	margin-block-end: 2rem;
	font-variant-numeric: tabular-nums;
}

/* the word before the rank number is for screen readers only */
.rg-board .rgb-rank-t {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* name above the offer line */
.rg-board .rgb-id-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-inline-size: 0;
}

/* the first figure may be a long sum such as the Elite Spin one, so it takes a little more of the pair,
   and the figures column of the wide layout is a little wider than the theme sets it */
.rg-board .rgb-fig:first-child {
	flex-grow: 1.3;
}

@media (min-width: 1181px) {
	.rg-board .rgb-row {
		grid-template-columns: 44px minmax(0, 1fr) 284px var(--stub);
	}
}

/* the Tweedbet wordmark is a thin line about twelve times wider than it is tall, so the logo plate of every row is a little wider than
   the theme sets it: the letters come out 11 px tall instead of under 10, and the text of all five rows still starts at the same place */
.rg-board .rgb-row img.rgb-plate {
	inline-size: 160px;
}

/* nothing of a shut expander is laid out */
.rg-board .rgb-more:not([open]) > *:not(summary) {
	display: none;
}
