/* Progressive two-competition standings switcher. The theme still owns the
   base card/table design; these rules only add the control, Europa viewport,
   qualification markers and the pre-season waiting state. */
.kmd-standings-card__title--switchable {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.kmd-standings-switcher__toggle {
	min-width: 76px;
	height: 25px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font: inherit;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.055em;
	line-height: 1;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.kmd-standings-switcher__toggle[hidden],
.kmd-standings-panel[hidden] {
	display: none !important;
}

.kmd-standings-switcher__toggle:hover,
.kmd-standings-switcher__toggle:focus-visible {
	border-color: var(--wp--preset--color--kartal-red, #e31b36);
	background: var(--wp--preset--color--kartal-red, #e31b36);
	color: #fff;
}

.kmd-standings-switcher__toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.kmd-standings-switcher__arrow {
	font-size: 18px;
	font-weight: 500;
	line-height: 0.8;
}

.kmd-standings-switcher__toggle.is-back .kmd-standings-switcher__arrow {
	order: -1;
}

.kmd-standings-panel {
	margin: 0;
}

.kmd-standings-panel--europa {
	height: var(--kmd-standings-panel-height, 552px);
	overflow: hidden;
}

.kmd-standings-panel--europa.is-active {
	display: flex;
	flex-direction: column;
}

.kmd-standings-panel--europa .kmd-standings--europa {
	min-height: 0;
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(35, 35, 35, 0.32) transparent;
}

.kmd-standings-panel--europa .kmd-standings__table th {
	position: sticky;
	top: 0;
	z-index: 2;
}

.kmd-standings-panel--europa .kmd-rank--uel-direct {
	box-shadow: inset 3px 0 0 #21854b;
	color: #176a3b;
	font-weight: 800;
}

.kmd-standings-panel--europa .kmd-rank--uel-playoff {
	box-shadow: inset 3px 0 0 #d78b13;
	color: #9a5d00;
	font-weight: 800;
}

.kmd-standings-panel--europa .kmd-rank--uel-out {
	box-shadow: inset 3px 0 0 #9b9b9b;
	color: #747474;
	font-weight: 800;
}

.kmd-standings-legend {
	flex: 0 0 auto;
	padding: 8px 0 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px 10px;
	color: #777;
	font-size: 8px;
	font-weight: 700;
	line-height: 1.25;
}

.kmd-standings-legend span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.kmd-legend-dot {
	width: 6px;
	height: 6px;
	display: inline-block;
	border-radius: 50%;
	background: #9b9b9b;
}

.kmd-legend-dot--direct { background: #21854b; }
.kmd-legend-dot--playoff { background: #d78b13; }
.kmd-legend-dot--out { background: #9b9b9b; }

.kmd-standings-empty {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 34px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 11px;
	text-align: center;
	color: var(--wp--preset--color--ink, #181818);
}

.kmd-standings-empty__eyebrow {
	color: var(--wp--preset--color--kartal-red, #e31b36);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.kmd-standings-empty__trophy {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(227, 27, 54, 0.28);
	border-radius: 50%;
	background: rgba(227, 27, 54, 0.07);
	color: var(--wp--preset--color--kartal-red, #e31b36);
}

.kmd-standings-empty__trophy svg {
	width: 23px;
	height: 31px;
	display: block;
	fill: currentColor;
}

.kmd-standings-empty__trophy-detail {
	fill: none;
	stroke: #fff;
	stroke-linecap: round;
	stroke-width: 2;
}

.kmd-standings-empty strong {
	max-width: 210px;
	font-size: 14px;
	line-height: 1.35;
}

html[data-theme="dark"] .kmd-standings-switcher__toggle {
	background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .kmd-standings-empty {
	color: var(--k-text-primary, #f2f2f2);
}

html[data-theme="dark"] .kmd-standings-legend {
	color: var(--k-text-muted, #a7a7a7);
}

html[data-theme="dark"] .kmd-standings-panel--europa .kmd-rank--uel-direct { color: #78d39b; }
html[data-theme="dark"] .kmd-standings-panel--europa .kmd-rank--uel-playoff { color: #f0b45a; }
html[data-theme="dark"] .kmd-standings-panel--europa .kmd-rank--uel-out { color: #aaa; }

@media (prefers-reduced-motion: reduce) {
	.kmd-standings-switcher__toggle {
		transition: none;
	}
}
