/*
 * RTC Lao Lottery. Builds on goproject-lottery's lottery.css (same gpl-* markup);
 * only the Lao differences live here. Everything is scoped under .rtc-lao.
 */

/* Five cells: 6 / 5 / 4 / 3 / 2 digits. */
.rtc-lao .rtc-lao-board__grid {
	grid-template-columns: 1.5fr 1fr 1fr 1fr .85fr;
}

@media (max-width: 900px) {
	/* 6 digits full width, the other four in a 2 x 2 grid. */
	.rtc-lao .rtc-lao-board__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	/* Keep the 2 x 2 grid on phones; only the 6-digit cell spans the row. */
	.rtc-lao .rtc-lao-board__grid {
		grid-template-columns: 1fr 1fr;
	}
	.rtc-lao .rtc-lao-board__grid .gpl-official-board__cell {
		padding: .85rem .25rem;
	}
	.rtc-lao .rtc-lao-board__grid .gpl-official-board__cell--first {
		grid-column: 1 / -1;
	}
	.rtc-lao .rtc-lao-board__grid .gpl-official-board__cell:nth-last-child(-n+2) {
		border-bottom: none;
	}
}

/* Category page block: sits inside the theme's content box, above the posts. */
.rtc-lao-block {
	margin: 0 0 2rem;
}
.rtc-lao-block .gpl-official-board {
	margin-bottom: 1.25rem;
}
.rtc-lao-block .rtc-lao-history {
	margin-top: 1.5rem;
}
.rtc-lao-history__more {
	display: flex;
	justify-content: center;
	margin-top: 1.25rem;
}

/* Page numbers under the history list on /laolotto/results/. */
.rtc-lao-pager {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: center;
	margin-top: 1.5rem;
}
.rtc-lao-pager .gpl-btn {
	min-width: 2.75rem;
	text-align: center;
}

/* ตรวจหวยลาว form (markup/styles from RTC Lottery Checker). */
.rtc-lao .rtc-lao-lc {
	margin: 1.75rem 0;
}
.rtc-lao .rtc-lao-lc__draw {
	text-align: left;
	font-weight: 600;
	opacity: .85;
}

.rtc-lao-links {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
	margin-top: 1.5rem;
}

.rtc-lao .gpl-official-board__number--empty {
	opacity: .55;
}
