/**
 * Single de evento — padrão visual Eduardo (.velorun-evpage)
 * Carrega somente em is_singular('tc_events').
 */

/* ---------- Tokens (escopo single) ---------- */
.velorun-single-event-page {
	--bg: #eceee8;
	--surface: #ffffff;
	--surface-2: #f5f7f2;
	--line: rgba(13, 22, 16, 0.1);
	--line-2: rgba(13, 22, 16, 0.16);
	--text: #0c1410;
	--text-muted: #56615a;
	--text-faint: #8b948c;
	--green-fill: #2ecf3e;
	--green: #138a26;
	--green-soft: rgba(46, 207, 62, 0.12);
	--green-line: rgba(19, 138, 38, 0.32);
	--forest: #143625;
	--ink: #07090a;
	--display: 'Hanken Grotesk', 'Arial Narrow', Arial, sans-serif;
	--sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--maxw: 1240px;
	position: relative;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.velorun-single-event-page *,
.velorun-single-event-page *::before,
.velorun-single-event-page *::after {
	box-sizing: border-box;
}

.velorun-single-event-page img {
	max-width: 100%;
	display: block;
}

.velorun-single-event-page a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Header Eduardo (shell stage) — legado; header agora via wp_body_open ---------- */
body.single-tc_events,
body.single-tc_events .wp-site-blocks,
body.single-tc_events .site,
body.single-tc_events main.velorun-single-event-main {
	width: 100%;
	max-width: none;
}

body.single-tc_events .wp-block-group.is-layout-constrained,
body.single-tc_events .wp-block-group.has-global-padding,
body.single-tc_events .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: none !important;
	width: 100%;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.single-tc_events .wp-site-blocks > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

body.single-tc_events .velorun-single-event-main {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}

body.single-tc_events .velorun-single-event-main > .entry-content,
body.single-tc_events .velorun-single-event-main .wp-block-shortcode {
	margin: 0;
	padding: 0;
	max-width: none;
}

body.single-tc_events .velorun-single-event-page {
	width: 100%;
	max-width: none;
}

body.single-tc_events .velorun-single-event-page .velorun-evpage__wrap {
	width: 100%;
	max-width: none;
	padding: 0;
}

/* Ocultar resíduos Tickera/Cyclorama fora da landing */
body.single-tc_events main .tickera,
body.single-tc_events main table.event_tickets,
body.single-tc_events main .tc_the_content_pre,
body.single-tc_events .site-footer-container,
body.single-tc_events footer.site-footer-container {
	display: none !important;
}

/* ---------- Evpage full-bleed (fundo/hero ponta a ponta) ---------- */
/* velorun-core.css aplica .vr-event-page { max-width:72rem; padding:0 1rem } — causa gutter branco na hero */
body.single-tc_events .velorun-single-event-page .velorun-evpage.vr-event-page,
body.single-tc_events .velorun-single-event-page section.vr-event-page {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.velorun-single-event-page .velorun-evpage {
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	border-left: 0;
	border-right: 0;
	box-shadow: none;
	background: var(--surface);
}

.velorun-single-event-page .velorun-evpage__hero {
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
}

.velorun-single-event-page .velorun-evpage__htext {
	max-width: var(--maxw);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
	padding-left: clamp(20px, 3vw, 32px);
	padding-right: clamp(20px, 3vw, 32px);
}

.velorun-single-event-page .velorun-evpage__body {
	max-width: var(--maxw);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
	padding-left: clamp(20px, 3vw, 32px);
	padding-right: clamp(20px, 3vw, 32px);
}

.velorun-single-event-page .velorun-evpage__wrap {
	padding: 0;
}

/* ---------- Hero ---------- */
.velorun-single-event-page .velorun-evpage__hero {
	position: relative;
	min-height: clamp(280px, 38vw, 380px);
	background: #0d120c;
	overflow: hidden;
}

.velorun-single-event-page .velorun-evpage__hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(115deg, rgba(7, 9, 10, 0.72) 0%, rgba(7, 9, 10, 0.2) 52%, rgba(7, 9, 10, 0.55) 100%),
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(46, 207, 62, 0.14), transparent 55%);
	pointer-events: none;
}

.velorun-single-event-page .velorun-evpage__hero--has-cover .velorun-ph {
	background-size: cover;
	background-position: center;
}

.velorun-single-event-page .velorun-evpage__hero .velorun-ph {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(125deg, #11160f 0 14px, #0d120c 14px 28px);
}

.velorun-single-event-page .velorun-evpage__hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, transparent 18%, rgba(7, 9, 10, 0.98));
	pointer-events: none;
}

.velorun-single-event-page .velorun-evpage__htext {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 24px;
	flex-wrap: wrap;
	padding-top: clamp(28px, 4vw, 44px);
	padding-bottom: clamp(22px, 3vw, 32px);
}

.velorun-single-event-page .velorun-evpage__subtitle {
	margin: -6px 0 14px;
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.5;
	color: #c5cdc6;
	max-width: 52ch;
}

.velorun-single-event-page .velorun-evpage__htext > div:first-child {
	max-width: 560px;
	flex: 1 1 280px;
}

.velorun-single-event-page .velorun-evpage__htext h1 {
	font-family: var(--display);
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(26px, 3.4vw, 40px);
	margin: 12px 0 14px;
	color: #fff;
	line-height: 0.96;
	letter-spacing: -0.02em;
}

.velorun-single-event-page .velorun-evpage__htext h1.velorun-evpage__title--long {
	font-size: clamp(22px, 2.8vw, 34px);
}

.velorun-single-event-page .velorun-evmeta {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #b9c1ba;
}

.velorun-single-event-page .velorun-evmeta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.velorun-single-event-page .velorun-evmeta svg {
	width: 15px;
	height: 15px;
	color: #46e85a;
	flex: none;
}

.velorun-single-event-page .velorun-evpage__hactions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
	min-width: 200px;
}

/* ---------- Tags / buttons ---------- */
.velorun-single-event-page .velorun-tag {
	display: inline-flex;
	align-items: center;
	font-family: var(--sans);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 11.5px;
	padding: 5px 11px;
	border-radius: 7px;
}

.velorun-single-event-page .velorun-tag--open {
	background: var(--green-fill);
	color: #04140a;
}

.velorun-single-event-page .velorun-tag--soon {
	background: rgba(125, 184, 255, 0.18);
	color: #9cc6ff;
}

.velorun-single-event-page .velorun-tag--closed,
.velorun-single-event-page .velorun-tag--sold-out {
	background: rgba(255, 255, 255, 0.12);
	color: #b9c1ba;
}

.velorun-single-event-page .velorun-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-family: var(--sans);
	font-weight: 800;
	letter-spacing: -0.01em;
	font-size: 15.5px;
	padding: 14px 24px;
	border-radius: 12px;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
	white-space: nowrap;
	border: 0;
	cursor: pointer;
}

.velorun-single-event-page .velorun-btn--primary {
	background: var(--green-fill);
	color: #04140a;
	box-shadow: 0 10px 26px -12px rgba(46, 207, 62, 0.7);
}

.velorun-single-event-page .velorun-btn--primary:hover {
	background: #3ee04e;
	transform: translateY(-2px);
	box-shadow: 0 16px 34px -12px rgba(46, 207, 62, 0.85);
}

.velorun-single-event-page .velorun-btn--ghost {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.velorun-single-event-page .velorun-btn--ghost:hover {
	border-color: #46e85a;
	color: #46e85a;
}

.velorun-single-event-page .velorun-btn--outline {
	background: transparent;
	color: var(--text);
	border: 1.5px solid var(--line-2);
}

.velorun-single-event-page .velorun-btn--outline:hover {
	border-color: var(--green);
	color: var(--green);
	background: var(--green-soft);
}

.velorun-single-event-page .velorun-btn--block {
	width: 100%;
}

.velorun-single-event-page .velorun-btn--sm {
	padding: 10px 16px;
	font-size: 14px;
	border-radius: 10px;
}

.velorun-single-event-page .velorun-btn:focus-visible,
.velorun-single-event-page a:focus-visible {
	outline: 2px solid var(--green-fill);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---------- Body grid ---------- */
.velorun-single-event-page .velorun-evpage__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 0;
	background: var(--surface);
}

.velorun-single-event-page .velorun-evpage__main {
	padding: clamp(22px, 3vw, 30px);
	border-right: 1px solid var(--line);
	min-width: 0;
}

.velorun-single-event-page .velorun-evtabs {
	display: flex;
	gap: 6px;
	border-bottom: 1px solid var(--line);
	margin: -4px 0 24px;
	flex-wrap: wrap;
	position: static;
	background: var(--surface);
	padding: 8px 0 0;
}

.velorun-single-event-page .velorun-evtabs a,
.velorun-single-event-page .velorun-evtabs span {
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	border-radius: 10px 10px 0 0;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.velorun-single-event-page .velorun-evtabs a.is-on,
.velorun-single-event-page .velorun-evtabs a:hover {
	color: var(--green);
	border-bottom-color: var(--green);
	background: var(--green-soft);
}

.velorun-single-event-page .velorun-evblock {
	margin-bottom: clamp(24px, 3vw, 32px);
	scroll-margin-top: 24px;
	padding-bottom: 4px;
}

.velorun-single-event-page .velorun-evblock h2,
.velorun-single-event-page .velorun-evblock h5 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-faint);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 7px;
}

.velorun-single-event-page .velorun-evblock h2 {
	font-size: clamp(20px, 2.4vw, 28px);
	color: var(--text);
	font-family: var(--display);
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.velorun-single-event-page .velorun-evblock h5 svg {
	width: 14px;
	height: 14px;
	color: var(--green);
	flex: none;
}

.velorun-single-event-page .velorun-event-landing__description {
	font-size: 15px;
	color: var(--text-muted);
	line-height: 1.65;
}

.velorun-single-event-page .velorun-event-landing__description p {
	margin: 0 0 1em;
}

.velorun-single-event-page .velorun-event-landing__description .tickera,
.velorun-single-event-page .velorun-event-landing__description table.event_tickets,
.velorun-single-event-page .velorun-event-landing__description .add_to_cart_inline {
	display: none !important;
}

.velorun-single-event-page .velorun-evdocuments__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
}

.velorun-single-event-page .velorun-evdocuments__list a {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.velorun-single-event-page .velorun-evdocuments__list a:hover {
	border-color: rgba(70, 232, 90, 0.45);
	color: var(--green);
	background: rgba(70, 232, 90, 0.06);
}

/* ---------- Routes ---------- */
.velorun-single-event-page .velorun-route-card {
	position: relative;
	padding: 20px 20px 18px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
	margin-bottom: 14px;
	overflow: hidden;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
}

.velorun-single-event-page .velorun-route-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--green-fill);
	transform: scaleY(0.65);
	transform-origin: center;
	transition: transform 0.25s;
}

.velorun-single-event-page .velorun-route-card:hover {
	transform: translateY(-2px);
	border-color: var(--green-line);
	box-shadow: 0 18px 40px -28px rgba(13, 30, 18, 0.45);
}

.velorun-single-event-page .velorun-route-card:hover::before {
	transform: scaleY(1);
}

.velorun-single-event-page .velorun-route-card__head {
	margin-bottom: 10px;
}

.velorun-single-event-page .velorun-route-card__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.velorun-single-event-page .velorun-route-card__name {
	font-family: var(--display);
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(17px, 2vw, 20px);
	letter-spacing: -0.02em;
}

.velorun-single-event-page .velorun-route-card__distance {
	font-weight: 800;
	color: var(--green);
	font-size: 13px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--green-soft);
	border: 1px solid var(--green-line);
}

.velorun-single-event-page .velorun-route-card__desc {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0 0 12px;
}

.velorun-single-event-page .velorun-route-card__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.velorun-single-event-page .velorun-route-card__stats strong {
	color: var(--text);
	margin-right: 4px;
}

.velorun-single-event-page .velorun-route-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 12px;
}

.velorun-single-event-page .velorun-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.velorun-single-event-page .velorun-chip {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	color: var(--text-muted);
	background: var(--surface);
}

.velorun-single-event-page .velorun-cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.velorun-single-event-page .velorun-cat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-size: 13px;
	transition: border-color 0.2s, background 0.2s;
}

.velorun-single-event-page .velorun-cat:hover {
	border-color: var(--green-line);
	background: var(--surface);
}

.velorun-single-event-page .velorun-cat b {
	color: var(--text);
	font-weight: 700;
}

.velorun-single-event-page .velorun-cat__hint {
	color: var(--text-faint);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* ---------- Strava / Inscritos cards ---------- */
.velorun-single-event-page .velorun-strava-card,
.velorun-single-event-page .velorun-inscritos-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 18px 20px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.velorun-single-event-page .velorun-strava-card p,
.velorun-single-event-page .velorun-inscritos-card p {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.55;
	max-width: 52ch;
}

.velorun-single-event-page .velorun-evblock--inscritos .velorun-inscritos-card h2 {
	margin: 0;
	font-size: clamp(18px, 2.2vw, 24px);
}

.velorun-single-event-page .velorun-btn--strava {
	border-color: rgba(252, 76, 2, 0.35);
}

.velorun-single-event-page .velorun-btn--strava:hover {
	border-color: #fc4c02;
	color: #fc4c02;
	background: rgba(252, 76, 2, 0.08);
}

/* ---------- Sidebar ---------- */
.velorun-single-event-page .velorun-evpage__side {
	padding: clamp(20px, 3vw, 28px);
	background: var(--surface-2);
	position: sticky;
	top: 72px;
	align-self: start;
}

.velorun-single-event-page .velorun-side-panel {
	padding: 18px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--line-2);
	box-shadow: 0 24px 60px -40px rgba(13, 30, 18, 0.35);
}

.velorun-single-event-page .velorun-pricebox {
	text-align: center;
	padding: 20px 16px;
	border-radius: 14px;
	background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
	border: 1px solid var(--green-line);
	margin-bottom: 16px;
}

.velorun-single-event-page .velorun-pricebox small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-faint);
	display: block;
}

.velorun-single-event-page .velorun-pricebox b {
	display: block;
	font-family: var(--display);
	font-weight: 900;
	font-size: 42px;
	color: var(--text);
	line-height: 1;
	margin: 6px 0 2px;
	letter-spacing: -0.02em;
}

.velorun-single-event-page .velorun-pricebox em {
	font-style: normal;
	font-size: 12px;
	color: var(--green);
	font-weight: 700;
}

.velorun-single-event-page .velorun-side-note {
	font-size: 13px;
	color: var(--text-muted);
	margin: 14px 0 0;
	line-height: 1.5;
}

.velorun-single-event-page .velorun-side-link {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--green);
}

.velorun-single-event-page .velorun-side-link:hover {
	text-decoration: underline;
}

.velorun-single-event-page .velorun-sidelist {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
	display: grid;
	gap: 10px;
}

.velorun-single-event-page .velorun-sidelist li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--text-muted);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.velorun-single-event-page .velorun-sidelist b {
	color: var(--text);
	font-weight: 800;
	font-size: 15px;
}

/* ---------- Mobile sticky CTA ---------- */
.velorun-single-event-page .velorun-evpage__mobile-cta {
	display: none;
}

/* ---------- Inscrição anchor (G.4) ---------- */
.velorun-single-event-page #velorun-inscricao {
	scroll-margin-top: 96px;
	height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.velorun-single-event-page .velorun-evpage__body {
		grid-template-columns: 1fr;
	}

	.velorun-single-event-page .velorun-evpage__main {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.velorun-single-event-page .velorun-evpage__side {
		position: static;
	}

	.velorun-single-event-page .velorun-evtabs {
		position: static;
		top: auto;
	}
}

@media (max-width: 640px) {
	.velorun-single-event-page .velorun-evpage__htext,
	.velorun-single-event-page .velorun-evpage__body {
		padding-left: clamp(16px, 4vw, 20px);
		padding-right: clamp(16px, 4vw, 20px);
	}

	.velorun-single-event-page .velorun-evpage__htext {
		flex-direction: column;
		align-items: stretch;
		padding-top: 22px;
		padding-bottom: 18px;
	}

	.velorun-single-event-page .velorun-evpage__hactions {
		width: 100%;
		min-width: 0;
	}

	.velorun-single-event-page .velorun-evpage__main,
	.velorun-single-event-page .velorun-evpage__side {
		padding: 18px;
	}

	.velorun-single-event-page .velorun-cats {
		grid-template-columns: 1fr;
	}

	.velorun-single-event-page .velorun-evtabs a,
	.velorun-single-event-page .velorun-evtabs span {
		padding: 8px 10px;
		font-size: 12px;
	}

	.velorun-single-event-page .velorun-strava-card,
	.velorun-single-event-page .velorun-inscritos-card {
		flex-direction: column;
		align-items: stretch;
	}

	.velorun-single-event-page .velorun-route-card__actions .velorun-btn {
		width: 100%;
	}

	.velorun-single-event-page .velorun-evpage__mobile-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: rgba(236, 238, 232, 0.94);
		border-top: 1px solid var(--line-2);
		backdrop-filter: blur(10px);
		box-shadow: 0 -12px 30px -18px rgba(7, 9, 10, 0.45);
	}

	body.single-tc_events {
		padding-bottom: 84px;
	}
}
