/*
 * A sport's Scores page, /cfb/scores/ (inc/scores-day.php, template-parts/views/scores.php). Loaded on that page
 * only, after main.css. The games are the boxes of a conference page (main.css, "Schedule / Results"); here they
 * stand three across in a wide box, two in a middle one and one on a phone.
 */

/* ---------- The days row and the two forms ---------- */

.syn-scores__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 18px;
}

/* On a phone the row slides sideways in its own box; the page itself never does. */
.syn-scores__days {
	position: relative;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.syn-scores__daylist {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0 0 4px;
	list-style: none;
}

.syn-scores__daylist > li {
	flex: none;
}

.syn-scores__daylist a {
	display: block;
	padding: 8px 11px 7px;
	color: var(--syn-ink-2);
	font: 600 13px/1.1 var(--syn-body);
	white-space: nowrap;
	text-decoration: none;
	background: var(--syn-surface);
	border: 1px solid var(--syn-line);
	border-radius: var(--syn-radius);
}

.syn-scores__daylist a:hover {
	border-color: var(--syn-line-2);
	color: var(--syn-ink);
}

.syn-scores__date.is-current {
	color: var(--syn-surface);
	background: var(--syn-ink);
	border-color: var(--syn-ink);
}

.syn-scores__date.is-current:hover {
	color: var(--syn-surface);
}

.syn-scores__step a {
	color: var(--syn-muted);
	background: transparent;
}

.syn-scores__daylist a:focus-visible {
	outline: 2px solid var(--syn-ink);
	outline-offset: 2px;
}

.syn-scores__forms {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.syn-scores__form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.syn-scores__form label {
	color: var(--syn-muted);
	font: 600 11px/1 var(--syn-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.syn-scores__form input,
.syn-scores__form select,
.syn-scores__form button {
	min-height: 34px;
	padding: 6px 9px;
	color: var(--syn-ink);
	font: 500 13px/1.2 var(--syn-body);
	background: var(--syn-surface);
	border: 1px solid var(--syn-line-2);
	border-radius: var(--syn-radius);
}

.syn-scores__form select {
	max-width: 220px;
}

.syn-scores__form button {
	font-weight: 600;
	cursor: pointer;
}

.syn-scores__form :focus-visible {
	outline: 2px solid var(--syn-ink);
	outline-offset: 1px;
}

/* ---------- The games ---------- */

.syn-scores__none {
	margin: 0 0 18px;
}

.syn-scores__none a {
	color: var(--syn-accent-text);
	font-weight: 600;
}

.syn-scores .syn-slate__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 32px;
	columns: auto;
}

@container (min-width: 620px) {
	.syn-scores .syn-slate__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (min-width: 1040px) {
	.syn-scores .syn-slate__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/*
 * Each game is one card (syn_slate_card_html(), 25 Oct 2026): with a page, the whole card is one link to it; the
 * schools' names are plain text. The card takes the row's two columns (the schools, where the game stands).
 */
.syn-slate__game--card {
	display: block;
	padding: 0;
}

.syn-slate__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
	align-items: center;
	margin: 0 -6px;
	padding: 7px 6px;
	color: inherit;
	text-decoration: none;
	border-radius: var(--syn-radius);
}

a.syn-slate__card:hover {
	background: var(--syn-bg);
}

a.syn-slate__card:hover .syn-slate__state {
	text-decoration: underline;
	text-underline-offset: 3px;
}

a.syn-slate__card:focus-visible {
	outline: 2px solid var(--syn-ink);
	outline-offset: 0;
}

.syn-scores__note {
	margin: 10px 0 0;
	color: var(--syn-muted);
	font-size: 12px;
}

@media (max-width: 600px) {
	.syn-scores__bar {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.syn-scores__forms {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.syn-scores__form input,
	.syn-scores__form select {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
	}
}
