/**
 * Hub /ranking/ — alinhado ao visual do hub /national/ (sportech-event-results).
 */

/* Fallback hero + fundo (quando stu-public-events não carrega o CSS). */
.sportech-event-results-hero-shell {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

.sportech-event-results-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-height: 260px;
	padding: 0;
	background-color: #000;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	margin: 0;
	overflow: hidden;
}

.sportech-event-results-hero--nobg {
	background-color: #000;
}

.sportech-event-results-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.77) 0%, #000 100%);
}

.sportech-event-results-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 1.5em 2em 2.35em;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sportech-event-results-hero__title--stacked {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	color: #fff;
	font-family: "Bebas Neue", sans-serif;
	font-size: clamp(1.5rem, 4.5vw, 2.25rem);
	font-weight: 500;
	font-style: oblique;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

.sportech-event-results-hero__local-sub {
	font-family: "Bebas Neue", sans-serif;
	font-size: clamp(1rem, 3vw, 1.35rem);
	font-weight: 500;
	font-style: oblique;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.72);
}

.sportech-event-results--wrap.stu-ranking-hub__wrap {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 0 3rem;
}

/* Camp selector: mais perto do título "Ranking", mais afastado das pills */
body.stu-ranking-hub-page .stu-ranking-hub-root .sportech-event-results-hero {
	min-height: 200px;
}

body.stu-ranking-hub-page .stu-ranking-hub-root .sportech-event-results-hero__inner {
	padding: 1.15em 2em 0.25em;
}

.stu-ranking-hub-root .stu-ranking-hub__camp {
	margin-top: 0;
	margin-bottom: 2.75rem;
}

@media (max-width: 1024px) {
	body.stu-ranking-hub-page .stu-ranking-hub-root .sportech-event-results-hero__inner {
		padding: 1em 1em 0.2em;
	}
}

@media (max-width: 767px) {
	body.stu-ranking-hub-page .stu-ranking-hub-root .sportech-event-results-hero {
		min-height: 160px;
	}

	body.stu-ranking-hub-page .stu-ranking-hub-root .sportech-event-results-hero__inner {
		padding: 0.75em 0.5rem 0.15em;
	}

	.stu-ranking-hub-root .stu-ranking-hub__camp {
		margin-bottom: 2.25rem;
	}
}

.sportech-event-hub .sportech-hub-tabs__scroller-outer {
	margin: 0 0 1.5rem;
	width: 100%;
	text-align: center;
}

/* Seletor National | Pro Tour (logos + divisor dourado — estilo home STU) */
.stu-ranking-hub__camp {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 0 2.75rem;
	padding: 0 1rem;
}

.stu-ranking-hub__camp-divider {
	display: block;
	flex: 0 0 auto;
	width: 1px;
	height: 1.65rem;
	margin: 0 1.35rem;
	background: #cea761;
	opacity: 0.95;
}

.stu-ranking-hub__camp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: none !important;
	background: transparent !important;
	color: inherit;
	width: auto;
	border-radius: 0;
	box-shadow: none;
	font-weight: inherit;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	opacity: 0.45;
	-webkit-tap-highlight-color: transparent;
}

.stu-ranking-hub__camp-btn[aria-selected="true"] {
	opacity: 1;
}

.stu-ranking-hub__camp-btn:hover,
.stu-ranking-hub__camp-btn:focus,
.stu-ranking-hub__camp-btn:focus-visible,
.stu-ranking-hub__camp-btn:active {
	opacity: inherit;
	outline: none;
	box-shadow: none;
	border: none !important;
	background: transparent !important;
	color: inherit;
}

.stu-ranking-hub__camp-btn[aria-selected="true"]:hover,
.stu-ranking-hub__camp-btn[aria-selected="true"]:focus,
.stu-ranking-hub__camp-btn[aria-selected="true"]:focus-visible,
.stu-ranking-hub__camp-btn[aria-selected="true"]:active {
	opacity: 1;
}

.stu-ranking-hub__camp-btn[aria-selected="false"]:hover,
.stu-ranking-hub__camp-btn[aria-selected="false"]:focus,
.stu-ranking-hub__camp-btn[aria-selected="false"]:focus-visible,
.stu-ranking-hub__camp-btn[aria-selected="false"]:active {
	opacity: 0.45;
}

.stu-ranking-hub__camp-logo {
	display: block;
	width: auto;
	height: 1.65rem;
	max-width: min(11rem, 42vw);
	object-fit: contain;
	object-position: center;
}

.stu-ranking-hub__camp-text {
	font-family: "Bebas Neue", sans-serif;
	font-size: 1.05rem;
	font-weight: 500;
	font-style: oblique;
	letter-spacing: 0.08em;
	color: #fff;
	white-space: nowrap;
}

/* Abas de modalidade — estilo /national/ (underline) ou pills (ver filtros/enqueue).
 * Variante pills: assets/ranking-hub-modality-pills.css (+ filter stu_ranking_hub_modality_pills_style).
 * Variante underline: assets/ranking-hub-modality-underline.css (quando pills desactivadas). */
.stu-ranking-hub .stu-ranking-hub__modality-tab[hidden],
.stu-ranking-hub .stu-ranking-hub__panel[hidden] {
	display: none !important;
}

.stu-ranking-hub .stu-ranking-hub__lazy-loading,
.stu-ranking-hub .stu-ranking-hub__lazy-error {
	margin: 2rem 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
}

@media (max-width: 767px) {
	.stu-ranking-hub__camp-divider {
		margin: 0 0.85rem;
		height: 1.35rem;
	}

	.stu-ranking-hub__camp-logo {
		height: 1.35rem;
		max-width: min(9rem, 44vw);
	}
}

/* Fundo preto global */
html:has(body.stu-ranking-hub-page.sportech-event-results) {
	background-color: #000;
}

body.stu-ranking-hub-page.sportech-event-results {
	background-color: #000 !important;
	color: #ffffff;
	overflow-x: hidden;
}

body.stu-ranking-hub-page.sportech-event-results #content,
body.stu-ranking-hub-page.sportech-event-results .site,
body.stu-ranking-hub-page.sportech-event-results .site-content,
body.stu-ranking-hub-page.sportech-event-results .elementor {
	background-color: #000 !important;
}

/* Header flutuante: não forçar preto nos .e-con (igual /national/). */
body.stu-ranking-hub-page.sportech-event-results .elementor-location-header,
body.stu-ranking-hub-page.sportech-event-results .elementor-location-header .e-con {
	background-color: transparent !important;
}

body.stu-ranking-hub-page.sportech-event-results .elementor-widget-shortcode,
body.stu-ranking-hub-page.sportech-event-results .elementor-widget-html {
	background: transparent !important;
}

/* Abas: botões (mesmo padrão do hub /national/) */

.stu-ranking-hub__empty {
	margin: 2rem 0 0;
	padding: 1.25rem 1.5rem;
	border: 1px dashed rgba(255, 255, 255, 0.25);
	border-radius: 12px;
	color: rgba(255, 255, 255, 0.65);
	font-family: "Bebas Neue", sans-serif;
	letter-spacing: 0.05em;
}

.stu-ranking-hub__panel.sportech-event-results-content {
	padding-bottom: 2rem;
}

.stu-ranking-hub__panel .stu-ranking-shortcode-wrap {
	margin-bottom: 0;
}

/* Tabela legível em fundo escuro (herda do shortcode; reforço no hub). */
body.stu-ranking-hub-page .stu-ranking-shortcode-wrap.stu-ranking-shortcode-ranking {
	--stu-ranking-sc-link-name-text: rgba(255, 255, 255, 0.95);
}

body.stu-ranking-hub-page .stu-ranking-shortcode-wrap.stu-ranking-shortcode-ranking .stu-ranking-sc-name a,
body.stu-ranking-hub-page .stu-ranking-shortcode-wrap.stu-ranking-shortcode-ranking .stu-ranking-sc-name {
	color: var(--stu-ranking-sc-link-name-text) !important;
	-webkit-text-fill-color: var(--stu-ranking-sc-link-name-text) !important;
}

body.stu-ranking-hub-page .stu-ranking-shortcode-wrap.stu-ranking-shortcode-ranking .stu-ranking-sc-tot {
	color: #fece35 !important;
}
