.nsc-shs-widget {
	font-family: inherit;
	margin: 1.5em 0;
}

.nsc-shs-heading {
	margin: 0 0 0.6em;
	font-size: 1.15em;
	border-bottom: 2px solid #1a1a1a;
	padding-bottom: 0.3em;
}

.nsc-shs-game-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nsc-shs-game-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 14px;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}

/* Bound-style date-group headings (added when scores/schedule lists
   started grouping by day instead of repeating the date on every row).
   Zebra-striping on .nsc-shs-game-row was dropped here since these
   headings are siblings within the same <ul>, which would otherwise
   throw off nth-child(odd) parity every time a heading appears. */
.nsc-shs-date-group-heading {
	list-style: none;
	font-weight: 700;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #b91c1c;
	padding: 14px 12px 4px;
	border-bottom: 2px solid #1a1a1a;
}

.nsc-shs-date-group-heading:first-child {
	padding-top: 4px;
}

.nsc-shs-game-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 0.78em;
	color: #666;
	width: 100%;
}

.nsc-shs-sport-tag {
	background: #b91c1c;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.9em;
}

.nsc-shs-sport-icon {
	margin-right: 2px;
}

.nsc-shs-matchup {
	font-weight: 600;
	font-size: 1em;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
}

.nsc-shs-row-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
	margin-right: 6px;
	border-radius: 3px;
	vertical-align: middle;
}

.nsc-shs-team-record {
	font-weight: 400;
	color: #888;
	font-size: 0.85em;
}

.nsc-shs-at,
.nsc-shs-vs {
	color: #999;
	font-weight: 400;
	font-size: 0.85em;
	margin: 0 4px;
}

.nsc-shs-final-score {
	font-weight: 700;
	font-size: 1.05em;
	white-space: nowrap;
}

.nsc-shs-venue {
	font-size: 0.85em;
	color: #666;
	white-space: nowrap;
}

.nsc-shs-venue-label {
	text-transform: uppercase;
	font-size: 0.85em;
	color: #999;
}

.nsc-shs-badge {
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 3px;
}

.nsc-shs-badge-postponed {
	background: #fef3c7;
	color: #92400e;
}

.nsc-shs-badge-cancelled {
	background: #fee2e2;
	color: #b91c1c;
}

.nsc-shs-badge-final {
	background: #1a1a1a;
	color: #fff;
}

.nsc-shs-badge-live {
	background: #dc2626;
	color: #fff;
	animation: nsc-shs-pulse 1.6s ease-in-out infinite;
}

@keyframes nsc-shs-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.nsc-shs-live-score {
	font-weight: 700;
	font-size: 1.1em;
	color: #dc2626;
	white-space: nowrap;
}

.nsc-shs-login-notice {
	color: #666;
	font-style: italic;
}

.nsc-shs-score-submit form {
	max-width: 360px;
}

.nsc-shs-score-submit select,
.nsc-shs-score-submit input[type="number"] {
	width: 100%;
	padding: 6px 8px;
	margin-top: 4px;
}

.nsc-shs-submit-score-row {
	display: flex;
	gap: 16px;
}

.nsc-shs-submit-score-row label {
	flex: 1;
}

.nsc-shs-submit-status {
	font-weight: 600;
	min-height: 1.2em;
}

.nsc-shs-recap-link {
	font-size: 0.85em;
	white-space: nowrap;
}

.nsc-shs-empty {
	color: #777;
	font-style: italic;
}

.nsc-shs-standings-table {
	width: 100%;
	border-collapse: collapse;
}

.nsc-shs-standings-table th,
.nsc-shs-standings-table td {
	text-align: left;
	padding: 6px 10px;
	border-bottom: 1px solid #e5e5e5;
}

.nsc-shs-standings-table th {
	font-size: 0.8em;
	text-transform: uppercase;
	color: #666;
}

.nsc-shs-school-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nsc-shs-school-link-list li {
	padding: 8px 0;
	border-bottom: 1px solid #e5e5e5;
}

.nsc-shs-school-link-list a {
	font-weight: 600;
	text-decoration: none;
}

.nsc-shs-page-title {
	margin-bottom: 0.8em;
}

.nsc-shs-sport-heading {
	margin: 1.6em 0 0.5em;
	padding-top: 0.6em;
	border-top: 1px solid #ddd;
	font-size: 1.3em;
}

.nsc-shs-sport-heading:first-of-type {
	border-top: none;
	padding-top: 0;
	margin-top: 0.4em;
}

.nsc-shs-division-heading {
	margin: 1.2em 0 0.4em;
	font-size: 1.05em;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 700;
}

.nsc-shs-home-venue {
	text-align: center;
	color: #555;
	margin: 0 0 1.2em;
}

.nsc-shs-school-logo {
	max-width: 180px;
	height: auto;
	display: block;
	margin: 0 auto 14px;
}

.nsc-shs-school-link-logo {
	width: 28px;
	height: 28px;
	object-fit: contain;
	vertical-align: middle;
	margin-right: 8px;
}

.nsc-shs-school-header {
	text-align: center;
	margin-bottom: 0.5em;
}

.nsc-shs-back-link {
	text-align: center;
	font-size: 0.9em;
	color: #666;
	margin: 0 0 1.6em;
}

.nsc-shs-sport-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0 0 1.8em;
	padding-bottom: 1.2em;
	border-bottom: 1px solid #e5e5e5;
}

.nsc-shs-sport-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f2f2f2;
	color: #1a1a1a;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.nsc-shs-sport-pill:hover {
	background: #b91c1c;
	color: #fff;
}

/* Sport tabs — added 1.12.0. Distinct from .nsc-shs-sport-nav/-pill above
   (those remain in use as anchor-jump links on the single-sport and
   single-league pages, which don't have the "too many sports stacked on
   one page" problem tabs solve on the archive and school pages). */

.nsc-shs-tabs-wrap {
	margin-bottom: 1.5em;
}

.nsc-shs-sport-tabs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 4px;
	margin: 0 0 1.4em;
	padding-bottom: 2px;
	border-bottom: 2px solid #1a1a1a;
	-webkit-overflow-scrolling: touch;
}

.nsc-shs-sport-tab {
	flex: 0 0 auto;
	appearance: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px 14px;
	font-size: 0.88em;
	font-weight: 600;
	color: #666;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.nsc-shs-sport-tab:hover {
	color: #1a1a1a;
}

.nsc-shs-sport-tab.is-active {
	color: #b91c1c;
	border-bottom-color: #b91c1c;
}

.nsc-shs-sport-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 18px 20px 8px;
	margin-bottom: 24px;
	background: #fff;
	scroll-margin-top: 20px;
}

.nsc-shs-sport-card .nsc-shs-sport-heading {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.nsc-shs-roster-details {
	margin: 0.5em 0 1.2em;
}

.nsc-shs-roster-details summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 1.05em;
	padding: 6px 0;
}

.nsc-shs-roster-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
}

.nsc-shs-roster-table th,
.nsc-shs-roster-table td {
	text-align: left;
	padding: 6px 10px;
	border-bottom: 1px solid #e5e5e5;
}

.nsc-shs-roster-table th {
	font-size: 0.8em;
	text-transform: uppercase;
	color: #666;
}

@media (max-width: 480px) {
	.nsc-shs-game-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Front-end auth (register/login) and dashboard — added 1.8.0 */

.nsc-shs-auth-form {
	max-width: 480px;
}

.nsc-shs-auth-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.nsc-shs-auth-form input[type="text"],
.nsc-shs-auth-form input[type="email"],
.nsc-shs-auth-form input[type="password"],
.nsc-shs-auth-form select {
	width: 100%;
	padding: 8px;
	box-sizing: border-box;
	margin-bottom: 2px;
}

.nsc-shs-auth-errors {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 1em;
}

.nsc-shs-auth-errors ul {
	margin: 0;
	padding-left: 1.1em;
}

.nsc-shs-auth-intro {
	color: #555;
	font-size: 0.92em;
}

.nsc-shs-auth-switch {
	font-size: 0.9em;
	margin-top: 1em;
}

.nsc-shs-dashboard-header {
	margin-bottom: 1em;
	padding-bottom: 0.6em;
	border-bottom: 2px solid #1a1a1a;
}

.nsc-shs-dashboard-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 1em;
	font-weight: 600;
}

.nsc-shs-dashboard-notice-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.nsc-shs-dashboard-notice-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.nsc-shs-school-switcher {
	margin-bottom: 1em;
}

.nsc-shs-dashboard-scope {
	font-size: 0.95em;
	color: #555;
}

.nsc-shs-dashboard-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #e5e5e5;
	margin-bottom: 1em;
}

.nsc-shs-dashboard-tabs a {
	padding: 8px 16px;
	text-decoration: none;
	color: #555;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.nsc-shs-dashboard-tabs a.active {
	color: #b91c1c;
	border-bottom-color: #b91c1c;
	font-weight: 600;
}

.nsc-shs-dashboard-add {
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 10px 14px;
	margin-bottom: 1em;
}

.nsc-shs-dashboard-add > summary {
	font-weight: 600;
	cursor: pointer;
}

.nsc-shs-dashboard-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nsc-shs-dashboard-row {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 10px 14px;
}

.nsc-shs-dashboard-row > summary {
	cursor: pointer;
	font-weight: 600;
}

.nsc-shs-dashboard-status {
	font-weight: 400;
	color: #666;
	font-size: 0.9em;
}

.nsc-shs-dashboard-form {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e5e5;
}

.nsc-shs-dashboard-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9em;
}

.nsc-shs-dashboard-form input,
.nsc-shs-dashboard-form select {
	width: 100%;
	max-width: 320px;
	padding: 6px 8px;
	box-sizing: border-box;
	margin-bottom: 10px;
}

/* Rankings — added when standings gained rank numbers */

.nsc-shs-rankings-list {
	margin: 0;
	padding-left: 1.6em;
}

.nsc-shs-rankings-list li {
	padding: 4px 0;
	font-size: 1.02em;
}

.nsc-shs-rank-school {
	font-weight: 600;
}

.nsc-shs-rank-record {
	color: #666;
	font-size: 0.9em;
}

.nsc-shs-athlete-ranking {
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 8px 14px;
	margin: 0.6em 0 1.2em;
	font-size: 0.95em;
}
