/*
 * TiemposF public application
 * Mobile first, dependency free and intentionally scoped to the standalone app.
 */

:root {
	--tf-bg: #ffffff;
	--tf-bg-soft: #eaf6fc;
	--tf-panel: rgba(255, 255, 255, 0.96);
	--tf-panel-solid: #ffffff;
	--tf-panel-raised: #eef8fd;
	--tf-line: rgba(13, 55, 83, 0.14);
	--tf-line-strong: rgba(13, 55, 83, 0.25);
	--tf-text: #102f46;
	--tf-muted: #536a7a;
	--tf-muted-bright: #3c596d;
	--tf-accent: #0676a8;
	--tf-accent-rgb: 6, 118, 168;
	--tf-sky: #72cff2;
	--tf-sky-rgb: 114, 207, 242;
	--tf-navy: #0b3551;
	--tf-kerb-red: #d32632;
	--tf-kerb-white: #ffffff;
	--tf-hot: #d93651;
	--tf-hot-rgb: 217, 54, 81;
	--tf-cyan: #168fbd;
	--tf-green: #087a4e;
	--tf-amber: #a66100;
	--tf-blue: #276cb2;
	--tf-radius-xs: 8px;
	--tf-radius-sm: 12px;
	--tf-radius: 18px;
	--tf-radius-lg: 26px;
	--tf-shadow: 0 22px 60px rgba(23, 83, 119, 0.14);
	--tf-header-height: 70px;
	--tf-safe-top: env(safe-area-inset-top, 0px);
	--tf-safe-bottom: env(safe-area-inset-bottom, 0px);
	--tf-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--tf-display: "Arial Narrow", "Roboto Condensed", "Aptos Narrow", Impact, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--tf-bg);
	scroll-behavior: smooth;
}

body.tiemposf-public-app {
	margin: 0 !important;
	min-width: 300px;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--tf-bg) !important;
	color: var(--tf-text) !important;
	font-family: var(--tf-font) !important;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	text-rendering: optimizeLegibility;
}

body.tiemposf-public-app button,
body.tiemposf-public-app input,
body.tiemposf-public-app select,
body.tiemposf-public-app textarea {
	font: inherit;
}

body.tiemposf-public-app button,
body.tiemposf-public-app a {
	-webkit-tap-highlight-color: transparent;
}

body.tiemposf-public-app a {
	color: inherit;
	text-decoration: none;
}

body.tiemposf-public-app button {
	color: inherit;
}

body.tiemposf-public-app ::selection {
	background: rgba(var(--tf-accent-rgb), 0.28);
	color: #fff;
}

.tf-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.tf-skip-link {
	position: fixed;
	z-index: 10000;
	top: 8px;
	left: 8px;
	padding: 10px 14px;
	transform: translateY(-150%);
	border-radius: var(--tf-radius-xs);
	background: var(--tf-accent);
	color: #101204 !important;
	font-weight: 900;
}

.tf-skip-link:focus {
	transform: none;
}

.tf-app {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: clip;
	background:
		radial-gradient(circle at 92% 9%, rgba(var(--tf-hot-rgb), 0.1), transparent 27rem),
		radial-gradient(circle at 2% 52%, rgba(69, 219, 255, 0.05), transparent 25rem),
		linear-gradient(145deg, #080a0e 0%, #090c10 48%, #07090c 100%);
}

.tf-atmosphere {
	position: fixed;
	z-index: -1;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.tf-atmosphere::after {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px);
	background-size: 100% 4px;
	content: "";
	mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 70%);
}

.tf-atmosphere__grid {
	position: absolute;
	right: -30%;
	bottom: -36%;
	width: 130%;
	height: 70%;
	transform: perspective(480px) rotateX(63deg) rotateZ(-8deg);
	transform-origin: center;
	background-image:
		linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 80%);
}

.tf-atmosphere__beam {
	position: absolute;
	width: 55vw;
	height: 2px;
	transform: rotate(-19deg);
	background: linear-gradient(90deg, transparent, rgba(var(--tf-hot-rgb), .28), transparent);
	box-shadow: 0 0 24px rgba(var(--tf-hot-rgb), .23);
}

.tf-atmosphere__beam--one {
	top: 18%;
	right: -9%;
}

.tf-atmosphere__beam--two {
	top: 22%;
	right: -18%;
	opacity: .45;
}

.tf-topbar {
	position: relative;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: calc(var(--tf-header-height) + var(--tf-safe-top));
	padding: var(--tf-safe-top) 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .065);
	background: rgba(7, 9, 12, .74);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.tf-brand {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	gap: 10px;
	border-radius: 8px;
}

.tf-brand__mark {
	position: relative;
	display: inline-flex;
	align-items: flex-end;
	width: 30px;
	height: 22px;
	gap: 2px;
	transform: skewX(-16deg);
}

.tf-brand__mark i {
	display: block;
	width: 8px;
	border-radius: 1px;
	background: var(--tf-text);
}

.tf-brand__mark i:nth-child(1) {
	height: 10px;
	opacity: .42;
}

.tf-brand__mark i:nth-child(2) {
	height: 16px;
	opacity: .72;
}

.tf-brand__mark i:nth-child(3) {
	height: 22px;
	background: var(--tf-accent);
	box-shadow: 0 0 16px rgba(var(--tf-accent-rgb), .28);
}

.tf-brand__name {
	font-family: var(--tf-display);
	font-size: 20px;
	font-stretch: condensed;
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1;
}

.tf-brand__name span {
	color: var(--tf-accent);
}

.tf-topbar__status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 11px;
	gap: 7px;
	border: 1px solid var(--tf-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .025);
	color: var(--tf-muted-bright);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .11em;
}

.tf-topbar__status[data-status="live"] {
	border-color: rgba(var(--tf-hot-rgb), .24);
	color: #fff;
}

.tf-topbar__status[data-status="offline"] .tf-status-dot {
	background: var(--tf-amber);
	box-shadow: 0 0 0 4px rgba(255, 196, 91, .1);
}

.tf-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tf-green);
	box-shadow: 0 0 0 4px rgba(82, 228, 155, .09), 0 0 12px rgba(82, 228, 155, .35);
}

.tf-topbar__status[data-status="live"] .tf-status-dot {
	background: var(--tf-hot);
	box-shadow: 0 0 0 4px rgba(var(--tf-hot-rgb), .1), 0 0 12px rgba(var(--tf-hot-rgb), .38);
	animation: tf-live-pulse 1.8s ease-out infinite;
}

.tf-main {
	position: relative;
	z-index: 2;
	width: min(100%, 1120px);
	min-height: calc(100vh - var(--tf-header-height) - 85px);
	min-height: calc(100dvh - var(--tf-header-height) - 85px);
	margin: 0 auto;
	padding: 22px 16px 42px;
	outline: none;
}

.tf-view {
	animation: tf-view-in .28s ease both;
}

.tf-view--home {
	display: flex;
	min-height: calc(100vh - 190px);
	min-height: calc(100dvh - 190px);
	flex-direction: column;
	justify-content: center;
	padding: 10px 0 22px;
}

.tf-kicker,
.tf-section-label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 11px;
	color: var(--tf-accent);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.tf-kicker::before,
.tf-section-label::before {
	display: block;
	width: 22px;
	height: 2px;
	transform: skewX(-20deg);
	background: currentColor;
	box-shadow: 7px 0 0 rgba(var(--tf-accent-rgb), .45);
	content: "";
}

.tf-hero {
	position: relative;
	margin-bottom: 30px;
}

.tf-hero::after {
	position: absolute;
	right: -16px;
	bottom: -9px;
	left: 50%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(var(--tf-accent-rgb), .26));
	content: "";
}

.tf-hero__title {
	max-width: 680px;
	margin: 0;
	font-family: var(--tf-display);
	font-size: clamp(48px, 15vw, 94px);
	font-stretch: condensed;
	font-style: italic;
	font-weight: 900;
	letter-spacing: -.065em;
	line-height: .84;
	text-transform: uppercase;
}

.tf-hero__title span {
	display: block;
	margin-left: .75em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(246, 248, 250, .48);
	text-shadow: 8px 8px 0 rgba(255,255,255,.025);
}

.tf-hero__copy {
	max-width: 440px;
	margin: 23px 0 0;
	color: var(--tf-muted-bright);
	font-size: 15px;
}

.tf-action-grid {
	display: grid;
	gap: 12px;
}

.tf-action-card {
	position: relative;
	display: grid;
	min-height: 105px;
	grid-template-columns: 52px 1fr 28px;
	align-items: center;
	gap: 13px;
	overflow: hidden;
	padding: 18px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	background: linear-gradient(145deg, rgba(24, 30, 37, .96), rgba(14, 18, 23, .96));
	box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
	transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.tf-action-card::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--tf-accent);
	content: "";
}

.tf-action-card--secondary::before {
	background: var(--tf-cyan);
}

.tf-action-card::after {
	position: absolute;
	top: -35px;
	right: -20px;
	width: 110px;
	height: 110px;
	transform: rotate(25deg);
	background: linear-gradient(90deg, transparent, rgba(var(--tf-accent-rgb), .045));
	content: "";
}

.tf-action-card__icon {
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border: 1px solid rgba(var(--tf-accent-rgb), .22);
	border-radius: 15px;
	background: rgba(var(--tf-accent-rgb), .075);
	color: var(--tf-accent);
}

.tf-action-card--secondary .tf-action-card__icon {
	border-color: rgba(69, 219, 255, .2);
	background: rgba(69, 219, 255, .065);
	color: var(--tf-cyan);
}

.tf-action-card__icon svg {
	width: 26px;
	height: 26px;
	stroke: currentColor;
}

.tf-action-card__body strong {
	display: block;
	font-family: var(--tf-display);
	font-size: 19px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: .02em;
	line-height: 1.1;
	text-transform: uppercase;
}

.tf-action-card__body small {
	display: block;
	margin-top: 6px;
	color: var(--tf-muted);
	font-size: 12px;
}

.tf-action-card__arrow,
.tf-event-card__arrow,
.tf-rank-card__arrow {
	position: relative;
	width: 25px;
	height: 25px;
	border: 1px solid var(--tf-line-strong);
	border-radius: 50%;
}

.tf-action-card__arrow::before,
.tf-event-card__arrow::before,
.tf-rank-card__arrow::before {
	position: absolute;
	top: 8px;
	left: 7px;
	width: 7px;
	height: 7px;
	transform: rotate(-45deg);
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	content: "";
}

.tf-page-head {
	margin-bottom: 22px;
}

.tf-back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: -4px 0 11px -5px;
	padding: 0 10px 0 5px;
	gap: 8px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--tf-muted-bright);
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.tf-back__arrow {
	position: relative;
	width: 29px;
	height: 29px;
	border: 1px solid var(--tf-line);
	border-radius: 50%;
}

.tf-back__arrow::before {
	position: absolute;
	top: 9px;
	left: 10px;
	width: 8px;
	height: 8px;
	transform: rotate(45deg);
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
	content: "";
}

.tf-page-title {
	max-width: 100%;
	overflow-wrap: anywhere;
	margin: 0;
	font-family: var(--tf-display);
	font-size: clamp(32px, 10vw, 55px);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -.035em;
	line-height: .98;
	text-wrap: balance;
	text-transform: uppercase;
}

.tf-page-intro {
	max-width: 610px;
	margin: 10px 0 0;
	color: var(--tf-muted);
	font-size: 14px;
}

.tf-catalog-notice {
	display: flex;
	align-items: flex-start;
	margin: 20px 0 0;
	padding: 13px 14px;
	gap: 10px;
	border: 1px solid rgba(var(--tf-accent-rgb), .2);
	border-radius: 12px;
	background: rgba(var(--tf-accent-rgb), .055);
	color: var(--tf-muted-bright);
	font-size: 12px;
	line-height: 1.5;
}

.tf-catalog-notice > i {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin-top: 1px;
	border: 2px solid rgba(255,255,255,.12);
	border-top-color: var(--tf-accent);
	border-radius: 50%;
	animation: tf-spin 1.25s linear infinite;
}

.tf-catalog-notice svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	stroke: currentColor;
}

.tf-catalog-notice strong {
	color: var(--tf-text);
}

.tf-catalog-notice--warning {
	border-color: rgba(255, 196, 91, .24);
	background: rgba(255, 196, 91, .065);
	color: #e9d9b5;
}

.tf-catalog-updated {
	display: flex;
	align-items: center;
	margin: 18px 2px -10px;
	gap: 7px;
	color: var(--tf-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.tf-catalog-updated i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tf-green);
	box-shadow: 0 0 8px rgba(82,228,155,.42);
}

.tf-filter-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 27px 0 12px;
	gap: 12px;
}

.tf-filter-row h2,
.tf-laps-title {
	margin: 0;
	font-family: var(--tf-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tf-count {
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	padding: 0 9px;
	border: 1px solid var(--tf-line);
	border-radius: 999px;
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .1em;
}

.tf-event-list {
	display: grid;
	gap: 11px;
}

.tf-date-list {
	display: grid;
	gap: 11px;
}

.tf-calendar-shell {
	max-width: 560px;
	margin: 26px auto 0;
}

.tf-calendar {
	width: 100%;
	min-width: 0;
	padding: 14px;
	border: 1px solid rgba(var(--tf-accent-rgb), .2);
	border-radius: var(--tf-radius-lg);
	background:
		linear-gradient(145deg, rgba(var(--tf-sky-rgb), .14), transparent 48%),
		#ffffff;
	box-shadow: 0 17px 42px rgba(26, 90, 124, .13);
}

.tf-calendar__nav {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 42px;
	align-items: center;
	gap: 8px;
	margin-bottom: 11px;
}

.tf-calendar__nav h2 {
	min-width: 0;
	margin: 0;
	color: var(--tf-navy);
	font-family: var(--tf-display);
	font-size: clamp(18px, 6vw, 23px);
	font-style: italic;
	font-weight: 900;
	letter-spacing: .01em;
	line-height: 1;
	text-align: center;
	text-transform: capitalize;
}

.tf-calendar__nav-button {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0;
	border: 1px solid #8ca8b8;
	border-radius: 50%;
	background: #f4faff;
	color: var(--tf-navy);
	cursor: pointer;
	font: 900 28px/1 system-ui, sans-serif;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.tf-calendar__nav-button:disabled {
	cursor: not-allowed;
	opacity: .34;
}

.tf-calendar__weekdays,
.tf-calendar__week {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.tf-calendar__weekdays {
	margin-bottom: 5px;
	color: var(--tf-muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	text-align: center;
}

.tf-calendar__grid {
	display: grid;
	gap: 4px;
	transition: opacity .18s ease;
}

.tf-calendar--loading .tf-calendar__grid {
	opacity: .5;
	pointer-events: none;
}

.tf-calendar__day,
.tf-calendar__blank {
	min-width: 0;
	min-height: 38px;
	aspect-ratio: 1;
}

.tf-calendar__day {
	position: relative;
	display: grid;
	width: 100%;
	place-items: center;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: var(--tf-text);
	cursor: pointer;
	font: 750 13px/1 var(--tf-font);
	transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.tf-calendar__day--has-events {
	border-color: rgba(var(--tf-accent-rgb), .3);
	background: rgba(var(--tf-sky-rgb), .23);
	color: var(--tf-navy);
	font-weight: 950;
}

.tf-calendar__day--today {
	box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 0 3px var(--tf-accent);
}

.tf-calendar__day--selected {
	border-color: var(--tf-navy);
	background: var(--tf-accent);
	box-shadow: 0 5px 14px rgba(var(--tf-accent-rgb), .25);
	color: #ffffff;
}

.tf-calendar__day i {
	position: absolute;
	top: 2px;
	right: 2px;
	display: grid;
	min-width: 14px;
	height: 14px;
	place-items: center;
	padding: 0 3px;
	border-radius: 999px;
	background: var(--tf-accent);
	color: #ffffff;
	font: normal 900 8px/1 var(--tf-font);
}

.tf-calendar__day--selected i {
	background: #ffffff;
	color: var(--tf-navy);
}

.tf-calendar__day:disabled {
	cursor: not-allowed;
	opacity: .24;
}

.tf-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-top: 11px;
	gap: 5px 12px;
	color: var(--tf-muted);
	font-size: 10px;
	line-height: 1.4;
}

.tf-calendar__legend span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
}

.tf-calendar__legend i {
	display: block;
	width: 9px;
	height: 9px;
	border: 1px solid rgba(var(--tf-accent-rgb), .4);
	border-radius: 3px;
	background: rgba(var(--tf-sky-rgb), .4);
}

.tf-calendar__status {
	display: flex;
	min-height: 38px;
	align-items: center;
	margin-top: 10px;
	padding: 9px 10px;
	gap: 8px;
	border-radius: 9px;
	background: #eef8fd;
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 650;
	line-height: 1.4;
}

.tf-calendar__status--error {
	justify-content: space-between;
	background: #fff0f3;
	color: #9f253c;
}

.tf-calendar__spinner {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	border: 2px solid rgba(var(--tf-accent-rgb), .18);
	border-top-color: var(--tf-accent);
	border-radius: 50%;
	animation: tf-spin .75s linear infinite;
}

.tf-calendar__retry {
	flex: 0 0 auto;
	padding: 5px 8px;
	border: 1px solid currentColor;
	border-radius: 7px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: 800 10px/1 var(--tf-font);
}

.tf-calendar-field[aria-invalid="true"] .tf-calendar {
	border-color: rgba(var(--tf-hot-rgb), .75);
	box-shadow: 0 0 0 4px rgba(var(--tf-hot-rgb), .08);
}

.tf-date-card {
	position: relative;
	display: grid;
	min-height: 126px;
	grid-template-columns: 46px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 14px;
	overflow: hidden;
	padding: 18px 16px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	background:
		linear-gradient(125deg, rgba(var(--tf-accent-rgb), .035), transparent 46%),
		var(--tf-panel);
	box-shadow: 0 12px 30px rgba(0,0,0,.14);
	transition: transform .2s ease, border-color .2s ease;
}

.tf-date-card--live {
	border-color: rgba(var(--tf-hot-rgb), .32);
	background:
		linear-gradient(110deg, rgba(var(--tf-hot-rgb), .09), transparent 50%),
		var(--tf-panel);
}

.tf-date-card--today:not(.tf-date-card--live) {
	border-color: rgba(var(--tf-accent-rgb), .25);
}

.tf-date-card--live .tf-event-card__date {
	border-color: rgba(var(--tf-hot-rgb), .28);
	background: rgba(var(--tf-hot-rgb), .075);
}

.tf-date-card__main {
	min-width: 0;
}

.tf-date-card__main h3 {
	margin: 0;
	font-family: var(--tf-display);
	font-size: 21px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: .015em;
	line-height: 1.08;
	text-transform: uppercase;
}

.tf-date-card__main p {
	margin: 6px 0 0;
	color: var(--tf-muted);
	font-size: 12px;
}

.tf-date-card__meta {
	display: block;
	margin-top: 10px;
	color: var(--tf-muted-bright);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .075em;
	text-transform: uppercase;
}

.tf-event-card {
	position: relative;
	display: grid;
	min-height: 112px;
	grid-template-columns: 46px 1fr 28px;
	align-items: center;
	gap: 13px;
	overflow: hidden;
	padding: 17px 16px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	background: var(--tf-panel);
	box-shadow: 0 12px 30px rgba(0,0,0,.14);
	transition: transform .2s ease, border-color .2s ease;
}

.tf-event-card--live {
	border-color: rgba(var(--tf-hot-rgb), .3);
	background:
		linear-gradient(110deg, rgba(var(--tf-hot-rgb), .075), transparent 42%),
		var(--tf-panel);
}

.tf-event-card--today:not(.tf-event-card--live) {
	border-color: rgba(var(--tf-accent-rgb), .25);
}

.tf-event-card__date {
	display: flex;
	width: 46px;
	height: 55px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--tf-line);
	border-radius: 11px;
	background: rgba(255,255,255,.025);
	line-height: 1;
}

.tf-event-card__date strong {
	font-family: var(--tf-display);
	font-size: 22px;
	font-weight: 900;
}

.tf-event-card__date small {
	margin-top: 5px;
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.tf-event-card__main {
	min-width: 0;
}

.tf-event-card__badges {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 5px;
	gap: 5px;
}

.tf-badge {
	display: inline-flex;
	align-items: center;
	min-height: 21px;
	padding: 0 7px;
	gap: 5px;
	border: 1px solid var(--tf-line);
	border-radius: 999px;
	color: var(--tf-muted-bright);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .1em;
	line-height: 1;
	text-transform: uppercase;
}

.tf-badge--live {
	border-color: rgba(var(--tf-hot-rgb), .33);
	background: rgba(var(--tf-hot-rgb), .1);
	color: #ff98a8;
}

.tf-badge--live::before {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--tf-hot);
	box-shadow: 0 0 7px var(--tf-hot);
	content: "";
}

.tf-badge--today {
	border-color: rgba(var(--tf-accent-rgb), .23);
	background: rgba(var(--tf-accent-rgb), .065);
	color: var(--tf-accent);
}

.tf-badge--current {
	border-color: rgba(var(--tf-accent-rgb), .3);
	background: rgba(var(--tf-accent-rgb), .1);
	color: var(--tf-accent);
}

.tf-event-card__main h3 {
	overflow: hidden;
	margin: 0;
	font-family: var(--tf-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: .015em;
	line-height: 1.15;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.tf-event-card__main p {
	overflow: hidden;
	margin: 5px 0 0;
	color: var(--tf-muted);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tf-event-card__meta {
	display: flex;
	margin-top: 9px;
	gap: 12px;
	color: var(--tf-muted-bright);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tf-event-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 18px;
	padding: 20px 18px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius-lg);
	background:
		linear-gradient(115deg, rgba(var(--tf-hot-rgb), .065), transparent 42%),
		linear-gradient(145deg, rgba(24,30,37,.98), rgba(13,17,22,.98));
	box-shadow: var(--tf-shadow);
}

.tf-event-hero::after {
	position: absolute;
	right: -35px;
	bottom: -42px;
	width: 160px;
	height: 130px;
	transform: rotate(-18deg);
	background-image:
		linear-gradient(45deg, rgba(255,255,255,.045) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.045) 75%),
		linear-gradient(45deg, rgba(255,255,255,.045) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.045) 75%);
	background-position: 0 0, 10px 10px;
	background-size: 20px 20px;
	content: "";
	mask-image: linear-gradient(to left, #000, transparent);
}

.tf-event-hero__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.tf-event-hero__top > div {
	width: 100%;
	min-width: 0;
}

.tf-event-hero h1,
.tf-rider-identity h1 {
	max-width: 100%;
	overflow-wrap: anywhere;
	margin: 7px 0 0;
	font-family: var(--tf-display);
	font-size: clamp(29px, 9vw, 50px);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -.035em;
	line-height: .96;
	text-wrap: balance;
	text-transform: uppercase;
}

.tf-event-hero__date {
	margin: 10px 0 0;
	color: var(--tf-muted-bright);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tf-event-hero__sync {
	display: flex;
	align-items: center;
	margin-top: 17px;
	padding-top: 14px;
	gap: 8px;
	border-top: 1px solid var(--tf-line);
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.tf-event-hero__sync i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tf-green);
}

.tf-event-hero--compact {
	margin-bottom: 12px;
	padding: 14px 16px;
}

.tf-event-hero--compact h1 {
	margin-top: 4px;
	font-size: clamp(23px, 6.5vw, 36px);
	line-height: 1;
}

.tf-event-hero--compact .tf-event-hero__date {
	margin-top: 6px;
	font-size: 10px;
}

.tf-event-hero--compact .tf-event-hero__sync {
	margin-top: 9px;
	padding-top: 8px;
	font-size: 10px;
}

.tf-event-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 20px 1px 11px;
	gap: 12px;
}

.tf-event-toolbar h2 {
	margin: 0;
	font-family: var(--tf-display);
	font-size: 17px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tf-live-refresh {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--tf-muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .085em;
	text-transform: uppercase;
}

.tf-live-refresh i {
	position: relative;
	width: 12px;
	height: 12px;
	border: 2px solid rgba(255,255,255,.13);
	border-top-color: var(--tf-accent);
	border-radius: 50%;
	animation: tf-spin 1.8s linear infinite;
}

.tf-reader-notice {
	display: flex;
	align-items: flex-start;
	margin: 14px 0 4px;
	padding: 13px 14px;
	gap: 10px;
	border: 1px solid rgba(255, 198, 72, .24);
	border-radius: 12px;
	background: rgba(255, 198, 72, .07);
	color: #e7e9ec;
	font-size: 11px;
	line-height: 1.55;
}

.tf-reader-notice--error {
	border-color: rgba(255, 92, 92, .28);
	background: rgba(255, 92, 92, .08);
}

.tf-reader-notice--updating {
	border-color: rgba(var(--tf-accent-rgb), .22);
	background: rgba(var(--tf-accent-rgb), .055);
}

.tf-reader-notice--updating > i {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	margin-top: 1px;
	border: 2px solid rgba(255,255,255,.13);
	border-top-color: var(--tf-accent);
	border-radius: 50%;
	animation: tf-spin 1.2s linear infinite;
}

.tf-reader-notice svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	stroke: currentColor;
}

.tf-reader-notice strong {
	display: block;
	margin-bottom: 1px;
	color: #fff;
	font-size: 11px;
}

.tf-ranking {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 5px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tf-rank-card {
	position: relative;
	display: grid;
	min-height: 58px;
	grid-template-columns: 30px minmax(58px, 1fr) minmax(142px, 2.2fr) 16px;
	grid-template-rows: minmax(44px, auto);
	align-items: center;
	column-gap: 5px;
	overflow: hidden;
	padding: 5px 7px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	background: linear-gradient(145deg, rgba(22,28,35,.98), rgba(13,17,22,.97));
	box-shadow: 0 11px 28px rgba(0,0,0,.15);
	transition: border-color .2s ease, transform .2s ease;
}

.tf-rank-card--leader {
	border-color: rgba(var(--tf-accent-rgb), .28);
	background:
		linear-gradient(110deg, rgba(var(--tf-accent-rgb), .075), transparent 42%),
		linear-gradient(145deg, rgba(22,28,35,.98), rgba(13,17,22,.97));
}

.tf-rank-card--updated {
	border-color: rgba(var(--tf-accent-rgb), .92);
	background:
		linear-gradient(110deg, rgba(var(--tf-accent-rgb), .19), transparent 58%),
		linear-gradient(145deg, rgba(22,28,35,.98), rgba(13,17,22,.97));
	box-shadow: 0 0 0 2px rgba(var(--tf-accent-rgb), .14), 0 0 28px rgba(var(--tf-accent-rgb), .2);
	animation: tf-rank-updated 1.5s ease-out;
}

.tf-rank-card--updated .tf-rank-card__position,
.tf-rank-card--updated .tf-rank-metric--best strong {
	color: var(--tf-accent);
}

.tf-rank-card--leader::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--tf-accent);
	box-shadow: 0 0 17px rgba(var(--tf-accent-rgb), .35);
	content: "";
}

.tf-rank-card__position {
	display: flex;
	width: 30px;
	height: 38px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--tf-line);
	font-family: var(--tf-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 900;
	line-height: 1;
}

.tf-rank-card__position small {
	margin-bottom: 2px;
	color: var(--tf-muted);
	font-family: var(--tf-font);
	font-size: 8px;
	font-style: normal;
	font-weight: 900;
	letter-spacing: .1em;
}

.tf-rank-card--leader .tf-rank-card__position {
	color: var(--tf-accent);
}

.tf-rank-card__identity {
	min-width: 0;
}

.tf-rank-card__identity h3 {
	overflow: hidden;
	margin: 0;
	font-family: var(--tf-display);
	font-size: 14px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: .01em;
	line-height: 1.1;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.tf-rank-card__identity p {
	overflow: hidden;
	margin: 2px 0 0;
	color: var(--tf-muted);
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tf-source-note {
	display: block;
	overflow: hidden;
	margin-top: 2px;
	color: #ffc648;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .055em;
	line-height: 1.25;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.tf-rank-card__timing {
	display: grid;
	min-width: 0;
	grid-template-columns: 1.15fr .62fr 1.1fr;
	align-items: center;
	margin: 0;
	padding: 0;
}

.tf-rank-card__pending {
	display: flex;
	min-width: 0;
	min-height: 38px;
	align-items: center;
	margin: 0;
	padding: 0 4px;
	color: var(--tf-muted-bright);
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .055em;
	line-height: 1.35;
	text-transform: uppercase;
}

.tf-rank-metric {
	min-width: 0;
	padding: 0 4px;
	border-left: 1px solid var(--tf-line);
}

.tf-rank-metric:first-child {
	padding-left: 2px;
	border-left: 0;
}

.tf-rank-metric:last-child {
	padding-right: 0;
}

.tf-rank-metric span {
	display: block;
	margin-bottom: 2px;
	color: var(--tf-muted);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .045em;
	line-height: 1.2;
	text-transform: uppercase;
}

.tf-rank-metric strong {
	display: block;
	overflow: hidden;
	font-variant-numeric: tabular-nums;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: -.015em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tf-rank-metric--best strong {
	color: #fff;
	font-family: var(--tf-display);
	font-size: 14px;
	font-style: italic;
	font-weight: 900;
}

.tf-rank-card--leader .tf-rank-metric--gap strong {
	color: var(--tf-accent);
	font-size: 9px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tf-rank-metric__lap {
	display: inline;
	font: inherit;
	letter-spacing: inherit;
}

.tf-rank-card__arrow {
	width: 16px;
	height: 16px;
}

.tf-rank-card__arrow::before {
	top: 4px;
	left: 4px;
	width: 5px;
	height: 5px;
	border-width: 0 1.5px 1.5px 0;
}

@media (max-width: 350px) {
	.tf-rank-card {
		grid-template-columns: 30px minmax(44px, .75fr) minmax(174px, 2.7fr);
		column-gap: 4px;
		padding-right: 6px;
		padding-left: 6px;
	}

	.tf-rank-card__identity h3 {
		font-size: 13px;
	}

	.tf-rank-card__timing {
		grid-template-columns: 1.2fr .7fr 1.3fr;
	}

	.tf-rank-metric {
		padding-right: 2px;
		padding-left: 2px;
	}

	.tf-rank-card__arrow {
		display: none;
	}
}

.tf-empty,
.tf-error {
	position: relative;
	display: flex;
	min-height: 350px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 38px 23px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius-lg);
	background: linear-gradient(145deg, rgba(21,27,33,.94), rgba(12,16,20,.94));
	text-align: center;
}

.tf-empty::before {
	position: absolute;
	top: -80px;
	width: 240px;
	height: 160px;
	border: 1px solid rgba(var(--tf-accent-rgb), .08);
	border-radius: 50%;
	box-shadow: 0 0 85px rgba(var(--tf-accent-rgb), .055);
	content: "";
}

.tf-empty__icon,
.tf-error__icon {
	position: relative;
	display: grid;
	width: 72px;
	height: 72px;
	place-items: center;
	margin-bottom: 20px;
	border: 1px solid rgba(var(--tf-accent-rgb), .21);
	border-radius: 22px;
	background: rgba(var(--tf-accent-rgb), .065);
	color: var(--tf-accent);
	transform: rotate(-4deg);
}

.tf-error__icon {
	border-color: rgba(255,196,91,.25);
	background: rgba(255,196,91,.07);
	color: var(--tf-amber);
}

.tf-empty__icon svg,
.tf-error__icon svg {
	width: 35px;
	height: 35px;
	stroke: currentColor;
}

.tf-empty h2,
.tf-error h2 {
	max-width: 430px;
	margin: 0;
	font-family: var(--tf-display);
	font-size: 27px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: -.01em;
	line-height: 1.05;
	text-transform: uppercase;
}

.tf-empty p,
.tf-error p {
	max-width: 430px;
	margin: 12px 0 22px;
	color: var(--tf-muted);
	font-size: 14px;
}

.tf-empty p.tf-empty__eyebrow {
	margin: 0 0 9px;
	color: var(--tf-accent);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.tf-empty__actions {
	display: grid;
	width: min(100%, 360px);
	gap: 9px;
}

.tf-empty__actions .tf-button {
	width: 100%;
}

.tf-button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	padding: 0 21px;
	gap: 9px;
	border: 1px solid transparent;
	border-radius: var(--tf-radius-sm);
	background: var(--tf-accent);
	box-shadow: 0 10px 28px rgba(var(--tf-accent-rgb), .11);
	color: #101304 !important;
	cursor: pointer;
	font-family: var(--tf-display) !important;
	font-size: 14px !important;
	font-style: italic;
	font-weight: 900 !important;
	letter-spacing: .045em;
	line-height: 1;
	text-transform: uppercase;
	transition: filter .2s ease, transform .2s ease, opacity .2s ease;
}

.tf-button--wide {
	width: 100%;
	min-height: 58px;
}

.tf-button--ghost {
	border-color: var(--tf-line-strong);
	background: rgba(255,255,255,.03);
	box-shadow: none;
	color: var(--tf-text) !important;
}

.tf-button:disabled {
	cursor: wait;
	opacity: .6;
}

.tf-button__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(8,10,5,.28);
	border-top-color: #0b0d04;
	border-radius: 50%;
	animation: tf-spin .75s linear infinite;
}

.tf-form-shell {
	position: relative;
	max-width: 690px;
	margin: 0 auto;
	overflow: hidden;
	padding: 20px 17px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius-lg);
	background: linear-gradient(145deg, rgba(21,27,34,.98), rgba(12,16,21,.98));
	box-shadow: var(--tf-shadow);
}

.tf-form-shell::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--tf-accent), transparent 62%);
	content: "";
}

.tf-form-progress {
	display: flex;
	align-items: center;
	margin-bottom: 24px;
	gap: 8px;
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.tf-form-progress i {
	display: block;
	width: 32px;
	height: 3px;
	border-radius: 99px;
	background: var(--tf-accent);
	box-shadow: 0 0 10px rgba(var(--tf-accent-rgb), .2);
}

.tf-field {
	margin-bottom: 18px;
}

.tf-field label,
.tf-field__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 2px 7px;
	gap: 10px;
	color: var(--tf-muted-bright);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .065em;
	text-transform: uppercase;
}

.tf-field label small,
.tf-field__label small {
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0;
	text-transform: none;
}

.tf-input-wrap {
	position: relative;
}

.tf-input-wrap input,
.tf-input-wrap select {
	width: 100%;
	min-height: 55px;
	padding: 0 15px;
	border: 1px solid var(--tf-line-strong);
	border-radius: var(--tf-radius-sm);
	outline: 0;
	background: rgba(5,8,11,.7);
	color: var(--tf-text);
	font-size: 16px;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
	color-scheme: dark;
}

.tf-input-wrap select {
	padding-right: 44px;
	appearance: none;
	-webkit-appearance: none;
}

.tf-input-wrap--select::after {
	position: absolute;
	top: 21px;
	right: 17px;
	width: 8px;
	height: 8px;
	transform: rotate(45deg);
	border-right: 2px solid var(--tf-muted-bright);
	border-bottom: 2px solid var(--tf-muted-bright);
	pointer-events: none;
	content: "";
}

.tf-input-wrap input::placeholder {
	color: #697481;
	opacity: 1;
}

.tf-input-wrap input:focus,
.tf-input-wrap select:focus {
	border-color: rgba(var(--tf-accent-rgb), .65);
	background: rgba(5,8,11,.95);
	box-shadow: 0 0 0 4px rgba(var(--tf-accent-rgb), .08);
}

.tf-input-wrap input[aria-invalid="true"],
.tf-input-wrap select[aria-invalid="true"] {
	border-color: rgba(var(--tf-hot-rgb), .75);
	box-shadow: 0 0 0 4px rgba(var(--tf-hot-rgb), .08);
}

.tf-field__hint,
.tf-field__error {
	display: block;
	margin: 7px 2px 0;
	color: var(--tf-muted);
	font-size: 11px;
}

.tf-field__error {
	color: #ff9baa;
	font-weight: 700;
}

.tf-form-message {
	margin: 0 0 17px;
	padding: 12px 13px;
	border: 1px solid rgba(var(--tf-hot-rgb), .25);
	border-radius: 10px;
	background: rgba(var(--tf-hot-rgb), .07);
	color: #ffc2cb;
	font-size: 12px;
	font-weight: 650;
}

.tf-form-privacy {
	display: flex;
	align-items: flex-start;
	margin: 21px 2px 0;
	gap: 9px;
	color: var(--tf-muted);
	font-size: 11px;
}

.tf-form-privacy svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	stroke: var(--tf-green);
}

.tf-honeypot {
	position: absolute !important;
	top: -10000px !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.tf-rider-head {
	margin-bottom: 14px;
}

.tf-rider-identity {
	position: relative;
	overflow: hidden;
	padding: 21px 18px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius-lg);
	background:
		linear-gradient(115deg, rgba(69,219,255,.055), transparent 48%),
		linear-gradient(145deg, rgba(22,28,35,.98), rgba(12,16,21,.98));
}

.tf-rider-identity::after {
	position: absolute;
	right: -36px;
	bottom: -30px;
	width: 145px;
	height: 100px;
	transform: skewX(-21deg);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.035));
	content: "";
}

.tf-rider-identity__bike {
	margin: 9px 0 0;
	color: var(--tf-muted-bright);
	font-size: 13px;
}

.tf-rider-identity__event {
	display: inline-flex;
	align-items: center;
	margin-top: 14px;
	gap: 7px;
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.tf-rider-identity__event i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--tf-cyan);
	box-shadow: 0 0 8px rgba(69,219,255,.5);
}

.tf-pb-card {
	position: relative;
	overflow: hidden;
	margin: 12px 0;
	padding: 21px 18px 19px;
	border: 1px solid rgba(var(--tf-accent-rgb), .32);
	border-radius: var(--tf-radius-lg);
	background:
		radial-gradient(circle at 90% 15%, rgba(var(--tf-accent-rgb), .12), transparent 9rem),
		linear-gradient(145deg, rgba(28,34,31,.98), rgba(13,18,20,.98));
	box-shadow: 0 17px 48px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.035);
}

.tf-pb-card::before {
	position: absolute;
	top: 0;
	right: 18px;
	left: 18px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--tf-accent), transparent);
	box-shadow: 0 0 16px rgba(var(--tf-accent-rgb), .35);
	content: "";
}

.tf-pb-card__label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tf-accent);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.tf-pb-card__label svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.tf-pb-card__time {
	margin: 7px 0 0;
	font-family: var(--tf-display);
	font-size: clamp(44px, 14vw, 70px);
	font-style: italic;
	font-variant-numeric: tabular-nums;
	font-weight: 900;
	letter-spacing: -.055em;
	line-height: 1;
	text-shadow: 0 0 35px rgba(var(--tf-accent-rgb), .08);
}

.tf-pb-card__sub {
	display: flex;
	align-items: center;
	margin-top: 10px;
	gap: 7px;
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.tf-pb-card__sub strong {
	color: var(--tf-text);
}

.tf-stat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.tf-stat {
	min-height: 89px;
	padding: 14px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius-sm);
	background: rgba(18,23,29,.88);
}

.tf-stat span {
	display: block;
	color: var(--tf-muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.tf-stat strong {
	display: block;
	margin-top: 7px;
	overflow: hidden;
	font-variant-numeric: tabular-nums;
	font-size: 17px;
	font-weight: 850;
	line-height: 1.12;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tf-stat small {
	display: block;
	margin-top: 5px;
	color: var(--tf-muted);
	font-size: 11px;
	line-height: 1.25;
}

.tf-stat--positive strong {
	color: var(--tf-green);
}

.tf-stat--best-five {
	border-color: rgba(var(--tf-sky-rgb), .48);
	background: linear-gradient(145deg, rgba(var(--tf-sky-rgb), .12), rgba(255, 255, 255, .96));
}

.tf-stat--best-five strong {
	color: var(--tf-navy);
}

.tf-laps-section {
	margin-top: 27px;
}

.tf-laps-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 12px;
}

.tf-laps-head p {
	margin: 4px 0 0;
	color: var(--tf-muted);
	font-size: 11px;
}

.tf-lap-table {
	display: grid;
	gap: 8px;
}

.tf-lap-columns {
	display: grid;
	grid-template-columns: 38px minmax(78px, 1.25fr) minmax(63px, .9fr) minmax(68px, .9fr);
	padding: 0 11px;
	gap: 6px;
	color: var(--tf-muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	text-align: right;
	text-transform: uppercase;
}

.tf-lap-columns span:first-child {
	text-align: left;
}

.tf-lap-row {
	position: relative;
	display: grid;
	grid-template-columns: 38px minmax(78px, 1.25fr) minmax(63px, .9fr) minmax(68px, .9fr);
	align-items: center;
	min-height: 69px;
	padding: 10px 11px;
	gap: 6px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius-sm);
	background: rgba(17,22,28,.9);
}

.tf-lap-row--best {
	border-color: rgba(var(--tf-accent-rgb), .34);
	background:
		linear-gradient(90deg, rgba(var(--tf-accent-rgb), .075), transparent 48%),
		rgba(17,22,28,.96);
	box-shadow: inset 3px 0 0 var(--tf-accent);
}

.tf-lap-row--flagged {
	min-height: 69px;
	padding-bottom: 10px;
}

.tf-lap-row__number {
	color: var(--tf-muted);
	font-family: var(--tf-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 900;
	line-height: 1;
}

.tf-lap-row__number small {
	display: block;
	margin-bottom: 3px;
	font-family: var(--tf-font);
	font-size: 9px;
	font-style: normal;
	font-weight: 900;
	letter-spacing: .08em;
}

.tf-lap-row__time,
.tf-lap-row__gap,
.tf-lap-row__delta {
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	font-weight: 780;
	text-align: right;
}

.tf-lap-row__timing {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-end;
	justify-self: stretch;
	gap: 4px;
}

.tf-lap-row__time {
	width: 100%;
	font-family: var(--tf-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 900;
}

.tf-lap-row--best .tf-lap-row__time,
.tf-lap-row--best .tf-lap-row__gap {
	color: var(--tf-accent);
}

.tf-lap-row__gap--best {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.tf-lap-row__delta--gain {
	color: var(--tf-green);
}

.tf-lap-row__delta--loss {
	color: #ff9ba9;
}

.tf-lap-row__delta i {
	display: inline-block;
	width: 0;
	height: 0;
	margin-right: 4px;
	vertical-align: 1px;
	border-right: 3px solid transparent;
	border-left: 3px solid transparent;
}

.tf-lap-row__delta--gain i {
	border-top: 5px solid currentColor;
}

.tf-lap-row__delta--loss i {
	border-bottom: 5px solid currentColor;
}

.tf-lap-tags {
	position: static;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.tf-lap-encouragement {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	gap: 6px;
	color: var(--tf-amber);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .025em;
	line-height: 1.2;
	text-align: left;
	text-overflow: ellipsis;
	white-space: normal;
}

.tf-lap-encouragement::before {
	width: 5px;
	height: 5px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 7px currentColor;
	content: "";
}

.tf-lap-encouragement {
	color: var(--tf-green);
	font-family: var(--tf-display);
	font-style: italic;
	font-weight: 900;
	letter-spacing: .045em;
	text-transform: uppercase;
}

.tf-lap-encouragement--flatout {
	color: var(--tf-accent);
}

.tf-loading {
	display: flex;
	min-height: calc(100vh - 180px);
	min-height: calc(100dvh - 180px);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--tf-muted);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.tf-loading__tach {
	position: relative;
	width: 57px;
	height: 57px;
	margin-bottom: 17px;
	border: 2px solid rgba(255,255,255,.08);
	border-top-color: var(--tf-accent);
	border-right-color: rgba(var(--tf-accent-rgb),.42);
	border-radius: 50%;
	animation: tf-spin 1s linear infinite;
}

.tf-loading__tach::after {
	position: absolute;
	top: 25px;
	left: 17px;
	width: 20px;
	height: 2px;
	transform: rotate(-35deg);
	transform-origin: right;
	background: var(--tf-hot);
	box-shadow: 0 0 8px rgba(var(--tf-hot-rgb),.6);
	content: "";
}

.tf-skeleton-list {
	display: grid;
	gap: 10px;
}

.tf-skeleton {
	position: relative;
	height: 124px;
	overflow: hidden;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	background: rgba(18,23,29,.8);
}

.tf-skeleton::after {
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent);
	animation: tf-shimmer 1.45s infinite;
	content: "";
}

.tf-toast-region,
.tf-pb-region {
	position: fixed;
	z-index: 100;
	right: 13px;
	bottom: calc(15px + var(--tf-safe-bottom));
	left: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.tf-toast {
	display: flex;
	width: min(100%, 520px);
	min-height: 54px;
	align-items: center;
	padding: 12px 15px;
	gap: 10px;
	border: 1px solid var(--tf-line-strong);
	border-radius: 13px;
	background: rgba(22,28,35,.97);
	box-shadow: 0 17px 45px rgba(0,0,0,.45);
	color: var(--tf-text);
	font-size: 12px;
	font-weight: 700;
	animation: tf-toast-in .25s ease both;
	backdrop-filter: blur(15px);
}

.tf-toast--success {
	border-color: rgba(82,228,155,.3);
}

.tf-toast--error {
	border-color: rgba(var(--tf-hot-rgb),.35);
}

.tf-toast__dot {
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--tf-cyan);
	box-shadow: 0 0 9px currentColor;
}

.tf-toast--success .tf-toast__dot {
	background: var(--tf-green);
}

.tf-toast--error .tf-toast__dot {
	background: var(--tf-hot);
}

.tf-pb-region {
	top: calc(var(--tf-header-height) + var(--tf-safe-top) + 10px);
	bottom: auto;
}

.tf-pb-flash {
	position: relative;
	width: min(100%, 520px);
	overflow: hidden;
	padding: 15px 17px;
	border: 1px solid rgba(var(--tf-accent-rgb),.42);
	border-radius: 15px;
	background:
		linear-gradient(115deg, rgba(var(--tf-accent-rgb),.14), transparent 48%),
		rgba(16,21,24,.98);
	box-shadow: 0 18px 50px rgba(0,0,0,.48), 0 0 26px rgba(var(--tf-accent-rgb),.07);
	animation: tf-pb-in .38s cubic-bezier(.2,.8,.2,1) both;
}

.tf-pb-flash::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--tf-accent);
	box-shadow: 0 0 17px rgba(var(--tf-accent-rgb),.55);
	content: "";
}

.tf-pb-flash__label {
	color: var(--tf-accent);
	font-size: 9px;
	font-weight: 950;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.tf-pb-flash__main {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 4px;
	gap: 12px;
}

.tf-pb-flash__main strong {
	overflow: hidden;
	font-family: var(--tf-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 900;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.tf-pb-flash__main time {
	flex: 0 0 auto;
	font-family: var(--tf-display);
	font-size: 24px;
	font-style: italic;
	font-variant-numeric: tabular-nums;
	font-weight: 900;
}

.tf-footer {
	position: relative;
	z-index: 2;
	display: flex;
	width: min(100%, 1120px);
	min-height: 76px;
	align-items: center;
	margin: 0 auto;
	padding: 18px 17px calc(18px + var(--tf-safe-bottom));
	gap: 6px;
	border-top: 1px solid rgba(255,255,255,.045);
	color: #697481;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .11em;
}

.tf-footer__mail {
	color: var(--tf-muted-bright);
}

.tf-footer__dash {
	display: block;
	width: 20px;
	height: 2px;
	margin-left: 5px;
	transform: skewX(-20deg);
	background: var(--tf-accent);
}

.tf-noscript {
	position: fixed;
	z-index: 9999;
	inset: 0;
	display: grid;
	place-content: center;
	padding: 30px;
	background: #080a0d;
	color: #fff;
	font-family: system-ui, sans-serif;
	text-align: center;
}

.tf-noscript strong {
	font-size: 22px;
}

.tf-noscript p {
	max-width: 420px;
	color: #aab4bf;
}

@media (hover: hover) and (pointer: fine) {
	.tf-action-card:hover,
	.tf-date-card:hover,
	.tf-event-card:hover,
	.tf-rank-card:hover {
		transform: translateY(-2px);
		border-color: rgba(var(--tf-accent-rgb), .31);
	}

	.tf-back:hover {
		color: #fff;
		background: rgba(255,255,255,.035);
	}

	.tf-button:hover {
		filter: brightness(1.08);
		transform: translateY(-1px);
	}

	.tf-calendar__nav-button:not(:disabled):hover,
	.tf-calendar__day:not(:disabled):hover {
		transform: translateY(-1px);
		border-color: var(--tf-accent);
		background: rgba(var(--tf-sky-rgb), .3);
	}
}

.tf-brand:focus-visible,
.tf-action-card:focus-visible,
.tf-date-card:focus-visible,
.tf-event-card:focus-visible,
.tf-rank-card:focus-visible,
.tf-back:focus-visible,
.tf-button:focus-visible,
.tf-calendar__nav-button:focus-visible,
.tf-calendar__day:focus-visible,
.tf-calendar__retry:focus-visible {
	outline: 3px solid rgba(var(--tf-accent-rgb), .72);
	outline-offset: 3px;
}

@media (max-width: 350px) {
	.tf-calendar {
		padding: 10px;
	}

	.tf-calendar__nav {
		grid-template-columns: 38px minmax(0, 1fr) 38px;
	}

	.tf-calendar__nav-button {
		width: 38px;
		height: 38px;
	}

	.tf-calendar__weekdays,
	.tf-calendar__week,
	.tf-calendar__grid {
		gap: 2px;
	}

	.tf-calendar__day,
	.tf-calendar__blank {
		min-height: 34px;
	}

	.tf-calendar__day {
		border-radius: 8px;
		font-size: 12px;
	}

	.tf-calendar__day i {
		display: none;
	}

	.tf-calendar__legend {
		display: grid;
	}

	.tf-calendar__status {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (min-width: 620px) {
	.tf-main {
		padding: 32px 24px 52px;
	}

	.tf-topbar {
		padding-right: 25px;
		padding-left: 25px;
	}

	.tf-view--home {
		min-height: calc(100vh - 205px);
		min-height: calc(100dvh - 205px);
	}

	.tf-hero {
		margin-bottom: 38px;
	}

	.tf-action-grid,
	.tf-date-list,
	.tf-event-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tf-action-card {
		min-height: 122px;
	}

	.tf-rank-card {
		min-height: 64px;
		grid-template-columns: 38px minmax(118px, 1.05fr) minmax(260px, 1.75fr) 22px;
		grid-template-rows: minmax(48px, auto);
		column-gap: 9px;
		padding: 6px 11px;
	}

	.tf-rank-card__position {
		width: 38px;
		height: 42px;
		font-size: 22px;
	}

	.tf-rank-card__position small {
		font-size: 8px;
	}

	.tf-rank-card__identity h3 {
		font-size: 16px;
	}

	.tf-rank-card__identity p {
		font-size: 9px;
	}

	.tf-rank-card__timing {
		grid-template-columns: 1.2fr .7fr 1.15fr;
	}

	.tf-rank-card__pending {
		min-height: 42px;
		padding: 0 7px;
		font-size: 9px;
	}

	.tf-rank-metric {
		padding: 0 7px;
	}

	.tf-rank-metric span {
		font-size: 8px;
		letter-spacing: .085em;
	}

	.tf-rank-metric strong {
		font-size: 11px;
	}

	.tf-rank-metric--best strong {
		font-size: 16px;
	}

	.tf-rank-card--leader .tf-rank-metric--gap strong {
		font-size: 9px;
	}

	.tf-rank-card__arrow {
		width: 22px;
		height: 22px;
	}

	.tf-rank-card__arrow::before {
		top: 7px;
		left: 6px;
		width: 7px;
		height: 7px;
		border-width: 0 2px 2px 0;
	}

	.tf-form-shell {
		padding: 28px;
	}

	.tf-stat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tf-stat {
		min-height: 96px;
	}

	.tf-lap-columns,
	.tf-lap-row {
		grid-template-columns: 58px minmax(120px, 1.4fr) minmax(100px, 1fr) minmax(108px, 1fr);
		padding-right: 18px;
		padding-left: 18px;
	}

	.tf-lap-row {
		min-height: 72px;
	}

	.tf-lap-row--flagged {
		min-height: 72px;
		padding-bottom: 10px;
	}

	.tf-lap-tags {
		position: static;
		margin-top: -1px;
	}

}

@media (min-width: 920px) {
	.tf-topbar {
		padding-right: max(32px, calc((100vw - 1120px) / 2));
		padding-left: max(32px, calc((100vw - 1120px) / 2));
	}

	.tf-main {
		padding-top: 44px;
	}

	.tf-view--home {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
		align-items: center;
		gap: 80px;
	}

	.tf-hero {
		margin: 0;
	}

	.tf-hero::after {
		display: none;
	}

	.tf-action-grid {
		grid-template-columns: 1fr;
	}

	.tf-event-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tf-date-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tf-rider-layout {
		display: grid;
		grid-template-columns: minmax(310px, .75fr) minmax(0, 1.25fr);
		align-items: start;
		gap: 18px;
	}

	.tf-rider-summary {
		position: sticky;
		top: 20px;
	}

	.tf-laps-section {
		margin-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}

}

@media (forced-colors: active) {
	.tf-action-card,
	.tf-date-card,
	.tf-event-card,
	.tf-rank-card,
	.tf-event-hero,
	.tf-form-shell,
	.tf-rider-identity,
	.tf-pb-card,
	.tf-lap-row,
	.tf-calendar,
	.tf-calendar__day--has-events {
		border: 1px solid CanvasText;
	}

	.tf-button {
		border: 2px solid ButtonText;
	}

	.tf-rank-card--updated {
		outline: 3px solid Highlight;
		outline-offset: 2px;
	}

	.tf-calendar__day--selected {
		background: Highlight;
		color: HighlightText;
	}
}

/* Commercial pit wall: compact, configurable and outside the SPA content. */
.tf-sponsor-zone {
	position: relative;
	z-index: 2;
	display: grid;
	width: min(100%, 1120px);
	justify-items: end;
	margin: 0 auto;
	padding: 0 16px 20px;
}

.tf-sponsor-zone__eyebrow {
	margin: 0 4px 7px 0;
	color: var(--tf-muted);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .15em;
}

.tf-sponsor-zone__logos,
.tf-sponsor-zone__placeholder {
	position: relative;
	width: min(100%, 620px);
	overflow: hidden;
	border: 1px solid rgba(var(--tf-accent-rgb), .2);
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(var(--tf-sky-rgb), .12), transparent 52%),
		rgba(255, 255, 255, .94);
	box-shadow: 0 10px 28px rgba(24, 83, 114, .08);
}

.tf-sponsor-zone__logos::before,
.tf-sponsor-zone__placeholder::before {
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	left: 0;
	width: 7px;
	background: repeating-linear-gradient(145deg,
		var(--tf-kerb-red) 0 10px,
		var(--tf-kerb-white) 10px 20px,
		var(--tf-kerb-red) 20px 30px,
		var(--tf-kerb-white) 30px 40px);
	content: "";
	pointer-events: none;
}

.tf-sponsor-zone__logos::after,
.tf-sponsor-zone__placeholder::after {
	position: absolute;
	z-index: 0;
	top: -28px;
	right: -22px;
	width: 112px;
	height: 96px;
	transform: rotate(-9deg);
	background-image:
		linear-gradient(45deg, rgba(var(--tf-accent-rgb), .1) 25%, transparent 25%, transparent 75%, rgba(var(--tf-accent-rgb), .1) 75%),
		linear-gradient(45deg, rgba(var(--tf-sky-rgb), .2) 25%, transparent 25%, transparent 75%, rgba(var(--tf-sky-rgb), .2) 75%);
	background-position: 0 0, 9px 9px;
	background-size: 18px 18px;
	content: "";
	opacity: .6;
	pointer-events: none;
}

.tf-sponsor-zone__logos {
	display: grid;
	min-height: 76px;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
	padding: 9px 12px 9px 18px;
}

.tf-sponsor-zone__link {
	position: relative;
	z-index: 1;
	display: grid;
	min-width: 0;
	min-height: 56px;
	place-items: center;
	padding: 6px 10px;
	border: 1px solid rgba(var(--tf-accent-rgb), .12);
	border-radius: 9px;
	background: rgba(255, 255, 255, .76);
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.tf-sponsor-zone__logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 42px;
	object-fit: contain;
}

.tf-sponsor-zone__placeholder {
	display: flex;
	min-height: 82px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 13px 14px 13px 24px;
}

.tf-sponsor-zone__placeholder > * {
	position: relative;
	z-index: 1;
}

.tf-sponsor-zone__placeholder span {
	display: grid;
	gap: 3px;
}

.tf-sponsor-zone__placeholder small {
	color: var(--tf-accent);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .14em;
}

.tf-sponsor-zone__placeholder strong {
	color: var(--tf-navy);
	font-family: var(--tf-display);
	font-size: clamp(17px, 4vw, 23px);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.tf-sponsor-zone__contact {
	display: inline-grid;
	min-height: 44px;
	flex: 0 0 auto;
	place-items: center;
	padding: 0 17px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--tf-sky), #a3e5fa);
	box-shadow: 0 8px 20px rgba(var(--tf-accent-rgb), .16);
	color: var(--tf-navy) !important;
	font-size: 10px;
	font-weight: 950;
	letter-spacing: .11em;
}

.tf-sponsor-zone__link:focus-visible,
.tf-sponsor-zone__contact:focus-visible,
.tf-footer__mail:focus-visible {
	outline: 3px solid var(--tf-accent);
	outline-offset: 3px;
}

.tf-footer__mail {
	border-radius: 5px;
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.tf-sponsor-zone__link:hover {
		border-color: rgba(var(--tf-accent-rgb), .4);
		background: #fff;
		box-shadow: 0 8px 18px rgba(var(--tf-accent-rgb), .1);
	}

	.tf-sponsor-zone__contact:hover,
	.tf-footer__mail:hover {
		filter: saturate(1.08) brightness(.98);
	}
}

@media (max-width: 520px) {
	.tf-sponsor-zone {
		justify-items: stretch;
		padding-right: 14px;
		padding-left: 14px;
	}

	.tf-sponsor-zone__eyebrow {
		justify-self: end;
	}

	.tf-sponsor-zone__placeholder {
		align-items: stretch;
		flex-direction: column;
		gap: 11px;
	}

	.tf-sponsor-zone__contact {
		width: 100%;
	}

	.tf-footer {
		flex-wrap: wrap;
		row-gap: 9px;
	}
}

@media (forced-colors: active) {
	.tf-sponsor-zone__logos::before,
	.tf-sponsor-zone__logos::after,
	.tf-sponsor-zone__placeholder::before,
	.tf-sponsor-zone__placeholder::after {
		display: none;
	}

	.tf-sponsor-zone__logos,
	.tf-sponsor-zone__placeholder,
	.tf-sponsor-zone__link {
		border: 1px solid CanvasText;
	}
}

@keyframes tf-view-in {
	from { opacity: 0; transform: translateY(7px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes tf-live-pulse {
	0% { box-shadow: 0 0 0 0 rgba(var(--tf-hot-rgb), .34); }
	65%, 100% { box-shadow: 0 0 0 7px rgba(var(--tf-hot-rgb), 0); }
}

@keyframes tf-rank-updated {
	0% { box-shadow: 0 0 0 5px rgba(var(--tf-accent-rgb), .24), 0 0 38px rgba(var(--tf-accent-rgb), .28); }
	55% { box-shadow: 0 0 0 3px rgba(var(--tf-accent-rgb), .15), 0 0 26px rgba(var(--tf-accent-rgb), .18); }
	100% { box-shadow: 0 0 0 0 rgba(var(--tf-accent-rgb), 0), 0 10px 28px rgba(var(--tf-accent-rgb), .15); }
}

@keyframes tf-spin {
	to { transform: rotate(360deg); }
}

@keyframes tf-shimmer {
	to { transform: translateX(100%); }
}

@keyframes tf-toast-in {
	from { opacity: 0; transform: translateY(10px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tf-pb-in {
	0% { opacity: 0; transform: translateY(-12px) scale(.96); }
	65% { opacity: 1; transform: translateY(2px) scale(1.01); }
	100% { transform: translateY(0) scale(1); }
}

/*
 * Málaga daylight theme
 * White, albiceleste and navy surfaces keep the original motorsport geometry
 * while improving daylight legibility across every public view.
 */

html,
body.tiemposf-public-app {
	background: var(--tf-bg) !important;
}

body.tiemposf-public-app ::selection {
	background: rgba(var(--tf-sky-rgb), .42);
	color: var(--tf-navy);
}

.tf-app {
	background:
		radial-gradient(circle at 92% 8%, rgba(var(--tf-sky-rgb), .25), transparent 29rem),
		radial-gradient(circle at 2% 54%, rgba(var(--tf-accent-rgb), .09), transparent 27rem),
		linear-gradient(145deg, #ffffff 0%, #f4faff 50%, #eef8fd 100%);
}

.tf-atmosphere::after {
	background-image: linear-gradient(rgba(19, 95, 133, .024) 1px, transparent 1px);
}

.tf-atmosphere__grid {
	background-image:
		linear-gradient(rgba(18, 126, 171, .075) 1px, transparent 1px),
		linear-gradient(90deg, rgba(18, 126, 171, .075) 1px, transparent 1px);
}

.tf-atmosphere__beam {
	background: linear-gradient(90deg, transparent, rgba(var(--tf-accent-rgb), .18), transparent);
	box-shadow: 0 0 24px rgba(var(--tf-accent-rgb), .12);
}

.tf-topbar {
	border-bottom-color: rgba(13, 55, 83, .11);
	background: rgba(255, 255, 255, .88);
	box-shadow: 0 8px 28px rgba(27, 91, 126, .06);
}

.tf-brand__mark i {
	background: var(--tf-navy);
}

.tf-brand__mark i:nth-child(3) {
	background: var(--tf-sky);
	box-shadow: 0 0 16px rgba(var(--tf-sky-rgb), .42);
}

.tf-brand__name span {
	color: var(--tf-accent);
}

.tf-topbar__status {
	background: rgba(235, 247, 253, .78);
}

.tf-topbar__status[data-status="live"] {
	background: rgba(var(--tf-hot-rgb), .065);
	color: #a61f39;
}

.tf-skip-link,
.tf-button {
	background: linear-gradient(135deg, var(--tf-sky), #8ddaf5);
	box-shadow: 0 10px 28px rgba(var(--tf-accent-rgb), .18);
	color: var(--tf-navy) !important;
}

.tf-kicker,
.tf-section-label {
	color: var(--tf-accent);
}

.tf-hero__title {
	color: var(--tf-navy);
}

.tf-hero__title span {
	color: transparent;
	-webkit-text-stroke-color: rgba(8, 91, 128, .62);
	text-shadow: 8px 8px 0 rgba(var(--tf-sky-rgb), .18);
}

.tf-action-card,
.tf-date-card,
.tf-event-card {
	background:
		linear-gradient(135deg, rgba(var(--tf-sky-rgb), .11), transparent 46%),
		var(--tf-panel);
	box-shadow: 0 12px 32px rgba(25, 83, 115, .1);
}

.tf-action-card::before {
	background: var(--tf-sky);
}

.tf-action-card--secondary::before {
	background: var(--tf-accent);
}

.tf-action-card::after {
	background: linear-gradient(90deg, transparent, rgba(var(--tf-sky-rgb), .16));
}

.tf-action-card__icon,
.tf-action-card--secondary .tf-action-card__icon {
	border-color: rgba(var(--tf-accent-rgb), .23);
	background: rgba(var(--tf-sky-rgb), .18);
	color: var(--tf-accent);
}

.tf-action-card__arrow,
.tf-event-card__arrow,
.tf-rank-card__arrow,
.tf-back__arrow {
	background: rgba(var(--tf-sky-rgb), .1);
	color: var(--tf-navy);
}

.tf-back {
	color: var(--tf-muted-bright);
}

.tf-catalog-notice {
	background: #edf9fe;
	color: var(--tf-muted-bright);
}

.tf-catalog-notice > i,
.tf-live-refresh i,
.tf-reader-notice--updating > i,
.tf-loading__tach {
	border-color: rgba(13, 55, 83, .14);
	border-top-color: var(--tf-accent);
}

.tf-catalog-notice--warning,
.tf-reader-notice {
	border-color: rgba(166, 97, 0, .26);
	background: #fff8e8;
	color: #68430e;
}

.tf-reader-notice--error {
	border-color: rgba(var(--tf-hot-rgb), .26);
	background: #fff0f3;
	color: #8e2639;
}

.tf-reader-notice--updating {
	border-color: rgba(var(--tf-accent-rgb), .22);
	background: #edf9fe;
	color: var(--tf-muted-bright);
}

.tf-reader-notice strong {
	color: var(--tf-text);
}

.tf-date-card--live,
.tf-event-card--live {
	background:
		linear-gradient(110deg, rgba(var(--tf-hot-rgb), .075), transparent 50%),
		var(--tf-panel);
}

.tf-date-card--today:not(.tf-date-card--live),
.tf-event-card--today:not(.tf-event-card--live) {
	background:
		linear-gradient(110deg, rgba(var(--tf-sky-rgb), .2), transparent 52%),
		var(--tf-panel);
}

.tf-event-card__date,
.tf-date-card--live .tf-event-card__date {
	background: #eef9fe;
}

.tf-badge {
	background: #f6fafc;
}

.tf-badge--live {
	background: #fff0f3;
	color: #a7213c;
}

.tf-badge--today,
.tf-badge--current {
	background: #eaf8fe;
	color: #086f95;
}

.tf-event-hero,
.tf-rider-identity {
	background:
		linear-gradient(112deg, rgba(var(--tf-sky-rgb), .22), transparent 50%),
		linear-gradient(145deg, #ffffff, #eef8fd);
	box-shadow: var(--tf-shadow);
}

.tf-event-hero::after {
	background-image:
		linear-gradient(45deg, rgba(8, 88, 126, .065) 25%, transparent 25%, transparent 75%, rgba(8, 88, 126, .065) 75%),
		linear-gradient(45deg, rgba(8, 88, 126, .065) 25%, transparent 25%, transparent 75%, rgba(8, 88, 126, .065) 75%);
}

.tf-rider-identity::after {
	background: linear-gradient(90deg, transparent, rgba(var(--tf-sky-rgb), .24));
}

.tf-rank-card {
	background: linear-gradient(145deg, #ffffff, #f2f9fd);
	box-shadow: 0 9px 24px rgba(25, 83, 115, .09);
}

.tf-rank-card--leader {
	background:
		linear-gradient(110deg, rgba(var(--tf-sky-rgb), .2), transparent 45%),
		linear-gradient(145deg, #ffffff, #f2f9fd);
}

.tf-rank-card--updated {
	background:
		linear-gradient(110deg, rgba(var(--tf-sky-rgb), .3), transparent 60%),
		linear-gradient(145deg, #ffffff, #eef9fe);
	box-shadow: 0 0 0 2px rgba(var(--tf-accent-rgb), .13), 0 10px 28px rgba(var(--tf-accent-rgb), .15);
}

.tf-rank-card--leader::before {
	background: linear-gradient(to bottom, var(--tf-sky), var(--tf-accent));
}

.tf-rank-card--leader .tf-rank-card__position,
.tf-rank-card--leader .tf-rank-metric--gap strong,
.tf-rank-card--updated .tf-rank-card__position,
.tf-rank-card--updated .tf-rank-metric--best strong {
	color: #067397;
}

.tf-rank-metric--best strong {
	color: var(--tf-navy);
}

.tf-source-note {
	color: #8f5b00;
}

.tf-empty,
.tf-error,
.tf-form-shell {
	background:
		linear-gradient(140deg, rgba(var(--tf-sky-rgb), .12), transparent 50%),
		#ffffff;
	box-shadow: var(--tf-shadow);
}

.tf-button--ghost {
	border-color: #8096a4;
	background: #f2f8fc;
	box-shadow: none;
	color: var(--tf-navy) !important;
}

.tf-button__spinner {
	border-color: rgba(11, 53, 81, .22);
	border-top-color: var(--tf-navy);
}

.tf-input-wrap input,
.tf-input-wrap select {
	border-color: #8096a4;
	background: #ffffff;
	color: var(--tf-text);
	color-scheme: light;
}

.tf-input-wrap input::placeholder {
	color: var(--tf-muted);
}

.tf-input-wrap input:focus,
.tf-input-wrap select:focus {
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(var(--tf-sky-rgb), .26);
}

.tf-field__error,
.tf-form-message {
	color: #9f253c;
}

.tf-form-message {
	background: #fff0f3;
}

.tf-pb-card {
	background:
		radial-gradient(circle at 90% 15%, rgba(var(--tf-sky-rgb), .32), transparent 10rem),
		linear-gradient(145deg, #ffffff, #eaf7fd);
	box-shadow: 0 17px 42px rgba(26, 90, 124, .13), inset 0 1px 0 #ffffff;
}

.tf-pb-card__label,
.tf-pb-card__time {
	color: var(--tf-navy);
}

.tf-stat,
.tf-lap-row {
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 7px 20px rgba(25, 83, 115, .065);
}

.tf-lap-row--best {
	background:
		linear-gradient(90deg, rgba(var(--tf-sky-rgb), .24), transparent 50%),
		#ffffff;
	box-shadow: inset 3px 0 0 var(--tf-accent), 0 7px 20px rgba(25, 83, 115, .07);
}

.tf-lap-row--best .tf-lap-row__time,
.tf-lap-row--best .tf-lap-row__gap {
	color: #086f95;
}

.tf-lap-row__delta--loss {
	color: #ba2944;
}

.tf-lap-encouragement {
	width: fit-content;
	max-width: 100%;
	min-height: 22px;
	padding: 2px 8px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: #f4fafc;
}

.tf-lap-encouragement--slow {
	border-color: #dfb577;
	background: #fff6e5;
	color: #9b5700;
}

.tf-lap-encouragement--progress {
	border-color: #abd8ee;
	background: #edf9ff;
	color: #246f99;
}

.tf-lap-encouragement--rhythm {
	border-color: #9ad5cf;
	background: #eaf9f6;
	color: #14786f;
}

.tf-lap-encouragement--strong {
	border-color: #93d1ad;
	background: #eaf8f0;
	color: #117544;
}

.tf-lap-encouragement--flatout {
	border-color: #e4c36d;
	background: #fff8dc;
	color: #8f5d00;
}

.tf-lap-encouragement--death {
	border-color: #e8a1ae;
	background: #fff0f3;
	color: #b42540;
}

.tf-skeleton {
	background: #edf6fb;
}

.tf-skeleton::after {
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .82), transparent);
}

.tf-toast {
	background: rgba(255, 255, 255, .98);
	box-shadow: 0 17px 45px rgba(20, 72, 102, .18);
}

.tf-pb-flash {
	background:
		linear-gradient(115deg, rgba(var(--tf-sky-rgb), .28), transparent 50%),
		rgba(255, 255, 255, .98);
	box-shadow: 0 18px 46px rgba(22, 79, 111, .2), 0 0 26px rgba(var(--tf-accent-rgb), .08);
}

.tf-pb-flash__label {
	color: #067397;
}

.tf-footer {
	border-top-color: rgba(13, 55, 83, .1);
	color: var(--tf-muted);
	font-size: 10px;
}

.tf-footer__dash {
	background: var(--tf-sky);
}

.tf-noscript {
	background: var(--tf-bg);
	color: var(--tf-text);
}

.tf-noscript p {
	color: var(--tf-muted);
}

@media (hover: hover) and (pointer: fine) {
	.tf-action-card:hover,
	.tf-date-card:hover,
	.tf-event-card:hover,
	.tf-rank-card:hover {
		border-color: rgba(var(--tf-accent-rgb), .42);
		box-shadow: 0 14px 34px rgba(20, 80, 114, .14);
	}

	.tf-back:hover {
		background: rgba(var(--tf-sky-rgb), .15);
		color: var(--tf-navy);
	}

	.tf-button:hover {
		filter: saturate(1.08) brightness(1.02);
	}
}

.tf-brand:focus-visible,
.tf-action-card:focus-visible,
.tf-date-card:focus-visible,
.tf-event-card:focus-visible,
.tf-rank-card:focus-visible,
.tf-back:focus-visible,
.tf-button:focus-visible,
.tf-input-wrap input:focus-visible,
.tf-input-wrap select:focus-visible {
	outline-color: rgba(var(--tf-accent-rgb), .78);
}

.tf-input-wrap input:focus-visible,
.tf-input-wrap select:focus-visible {
	outline: 3px solid var(--tf-accent);
	outline-offset: 2px;
}

@media (max-width: 380px) {
	.tf-main {
		padding-right: 12px;
		padding-left: 12px;
	}

	.tf-lap-columns,
	.tf-lap-row {
		grid-template-columns: 30px minmax(72px, 1.25fr) minmax(55px, .9fr) minmax(58px, .9fr);
		padding-right: 8px;
		padding-left: 8px;
		gap: 3px;
	}

	.tf-lap-row__number,
	.tf-lap-row__time {
		font-size: 16px;
	}

	.tf-lap-row__gap,
	.tf-lap-row__delta {
		font-size: 10.5px;
	}

	.tf-lap-encouragement {
		font-size: 9.5px;
	}
}

@media (min-width: 920px) {
	.tf-rider-summary .tf-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Fastest-lap treatment: F1-style purple reserved for personal bests. */
.tf-pb-card {
	border: 2px solid rgba(126, 34, 206, .68);
	background:
		linear-gradient(112deg, rgba(126, 34, 206, .24), rgba(217, 70, 239, .08) 42%, rgba(255, 255, 255, .96) 67%, rgba(168, 85, 247, .18)),
		#ffffff;
	background-position: 0% 50%;
	background-size: 190% 100%;
	box-shadow: 0 16px 38px rgba(88, 28, 135, .2), 0 0 0 1px rgba(192, 38, 211, .12);
	animation: tf-fastest-purple-card 2.35s ease-in-out infinite;
}

.tf-pb-card::before {
	height: 4px;
	background: linear-gradient(90deg, #5b21b6, #a855f7 48%, #d946ef 76%, transparent);
	box-shadow: 0 0 16px rgba(168, 85, 247, .62);
}

.tf-pb-card__label,
.tf-pb-card__label svg {
	color: #5b21b6;
}

.tf-pb-card__time {
	color: #3b0764;
	text-shadow: 0 0 11px rgba(168, 85, 247, .26);
}

.tf-pb-card__sub,
.tf-pb-card__sub strong {
	color: #5b217f;
}

.tf-rank-metric.tf-rank-metric--best {
	position: relative;
	isolation: isolate;
	min-width: 0;
	margin: 0 2px;
	padding: 5px 6px;
	border: 1px solid rgba(126, 34, 206, .58);
	border-radius: 9px;
	background: linear-gradient(115deg, rgba(126, 34, 206, .22), rgba(255, 255, 255, .96) 52%, rgba(217, 70, 239, .2));
	background-position: 0% 50%;
	background-size: 190% 100%;
	box-shadow: 0 0 0 1px rgba(168, 85, 247, .08), 0 5px 13px rgba(88, 28, 135, .14);
	animation: tf-fastest-purple-cell 2.05s ease-in-out infinite;
}

.tf-rank-metric.tf-rank-metric--best span {
	color: #5b217f;
}

.tf-rank-card .tf-rank-metric--best strong {
	color: #3b0764;
	text-shadow: 0 0 7px rgba(168, 85, 247, .24);
}

.tf-lap-row.tf-lap-row--best {
	border: 2px solid rgba(126, 34, 206, .62);
	background:
		linear-gradient(105deg, rgba(126, 34, 206, .23), rgba(250, 245, 255, .98) 50%, rgba(217, 70, 239, .17)),
		#ffffff;
	background-position: 0% 50%;
	background-size: 185% 100%;
	box-shadow: inset 5px 0 0 #7e22ce, 0 7px 20px rgba(88, 28, 135, .16), 0 0 0 1px rgba(192, 38, 211, .08);
	animation: tf-fastest-purple-row 2.25s ease-in-out infinite;
}

.tf-lap-row--best .tf-lap-row__number,
.tf-lap-row--best .tf-lap-row__time,
.tf-lap-row--best .tf-lap-row__gap {
	color: #4c1d95;
}

.tf-lap-row--best .tf-lap-row__time {
	text-shadow: 0 0 8px rgba(168, 85, 247, .24);
}

@keyframes tf-fastest-purple-card {
	0%, 100% {
		background-position: 0% 50%;
		box-shadow: 0 16px 38px rgba(88, 28, 135, .2), 0 0 0 1px rgba(192, 38, 211, .12);
	}
	50% {
		background-position: 100% 50%;
		box-shadow: 0 18px 46px rgba(88, 28, 135, .3), 0 0 0 4px rgba(168, 85, 247, .17), 0 0 30px rgba(217, 70, 239, .24);
	}
}

@keyframes tf-fastest-purple-cell {
	0%, 100% {
		background-position: 0% 50%;
		box-shadow: 0 0 0 1px rgba(168, 85, 247, .08), 0 5px 13px rgba(88, 28, 135, .14);
	}
	50% {
		background-position: 100% 50%;
		box-shadow: 0 0 0 3px rgba(168, 85, 247, .2), 0 0 19px rgba(217, 70, 239, .32);
	}
}

@keyframes tf-fastest-purple-row {
	0%, 100% {
		background-position: 0% 50%;
		box-shadow: inset 5px 0 0 #7e22ce, 0 7px 20px rgba(88, 28, 135, .16), 0 0 0 1px rgba(192, 38, 211, .08);
	}
	50% {
		background-position: 100% 50%;
		box-shadow: inset 7px 0 0 #a855f7, 0 9px 26px rgba(88, 28, 135, .25), 0 0 0 3px rgba(168, 85, 247, .16), 0 0 24px rgba(217, 70, 239, .2);
	}
}

@media (max-width: 350px) {
	.tf-rank-metric.tf-rank-metric--best {
		margin: 0;
		padding: 4px 3px;
		border-radius: 7px;
	}

	.tf-rank-card .tf-rank-metric--best strong {
		font-size: 13px;
		letter-spacing: -.025em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tf-pb-card,
	.tf-rank-metric.tf-rank-metric--best,
	.tf-lap-row.tf-lap-row--best {
		animation: none !important;
		background-position: 50% 50%;
	}
}

@media (forced-colors: active) {
	.tf-pb-card,
	.tf-rank-metric.tf-rank-metric--best,
	.tf-lap-row.tf-lap-row--best {
		border: 2px solid CanvasText;
		background: Canvas;
		box-shadow: none;
		animation: none;
	}
}

/* Motorsport details: decorative, quiet and non-interactive. */
.tf-atmosphere::before {
	position: absolute;
	top: clamp(6rem, 12vw, 10rem);
	right: clamp(-5rem, -4vw, -2rem);
	width: clamp(10rem, 28vw, 22rem);
	aspect-ratio: 2 / 1;
	transform: rotate(-9deg) skewX(-8deg);
	background-image:
		linear-gradient(45deg, rgba(var(--tf-accent-rgb), .12) 25%, transparent 25%, transparent 75%, rgba(var(--tf-accent-rgb), .12) 75%),
		linear-gradient(45deg, rgba(var(--tf-sky-rgb), .22) 25%, transparent 25%, transparent 75%, rgba(var(--tf-sky-rgb), .22) 75%);
	background-position: 0 0, 11px 11px;
	background-size: 22px 22px;
	content: "";
	opacity: .55;
	-webkit-mask-image: linear-gradient(105deg, transparent 0, #000 28%, #000 72%, transparent 100%);
	mask-image: linear-gradient(105deg, transparent 0, #000 28%, #000 72%, transparent 100%);
	pointer-events: none;
}

.tf-date-card::after,
.tf-event-card::after {
	position: absolute;
	right: -14px;
	bottom: -17px;
	width: 84px;
	height: 76px;
	transform: rotate(-12deg);
	background-image:
		linear-gradient(45deg, rgba(var(--tf-accent-rgb), .12) 25%, transparent 25%, transparent 75%, rgba(var(--tf-accent-rgb), .12) 75%),
		linear-gradient(45deg, rgba(var(--tf-sky-rgb), .2) 25%, transparent 25%, transparent 75%, rgba(var(--tf-sky-rgb), .2) 75%);
	background-position: 0 0, 8px 8px;
	background-size: 16px 16px;
	content: "";
	-webkit-mask-image: linear-gradient(120deg, transparent 5%, #000 58%, transparent 100%);
	mask-image: linear-gradient(120deg, transparent 5%, #000 58%, transparent 100%);
	pointer-events: none;
}

.tf-footer::before {
	position: absolute;
	top: -2px;
	left: 17px;
	width: min(230px, 58vw);
	height: 4px;
	border-radius: 999px;
	background: repeating-linear-gradient(115deg,
		var(--tf-kerb-red) 0 12px,
		var(--tf-kerb-white) 12px 24px,
		var(--tf-kerb-red) 24px 36px,
		var(--tf-kerb-white) 36px 48px);
	box-shadow: 0 0 0 1px rgba(var(--tf-accent-rgb), .08);
	content: "";
	opacity: .72;
	pointer-events: none;
}

/* Lap-state progression: warning, pace and attack. */
.tf-lap-encouragement--slow {
	border-color: #c86b18;
	background: #fff0d8;
	color: #713400;
}

.tf-lap-encouragement--progress {
	border-color: #d1a000;
	background: #fff4c2;
	color: #614500;
}

.tf-lap-encouragement--rhythm {
	border-color: #7da83d;
	background: #edf6dc;
	color: #2f5e10;
}

.tf-lap-encouragement--strong {
	border-color: #15945b;
	background: #ddf5e7;
	color: #075c35;
}

.tf-lap-encouragement--flatout {
	border-color: #ea5b2a;
	background: #ffe8dd;
	color: #8a2b0e;
}

.tf-lap-encouragement--death {
	border-color: #d11f45;
	background: #ffe1e5;
	color: #8e1028;
}

@media (max-width: 600px) {
	.tf-atmosphere::before {
		top: 5.5rem;
		right: -4.5rem;
		width: 11rem;
		background-position: 0 0, 9px 9px;
		background-size: 18px 18px;
		opacity: .42;
	}

	.tf-footer::before {
		width: 9rem;
		height: 3px;
	}
}

@media (forced-colors: active) {
	.tf-atmosphere::before,
	.tf-date-card::after,
	.tf-event-card::after,
	.tf-footer::before {
		display: none;
	}
}

/* Precision controls: optically centred arrows and event counters. */
body.tiemposf-public-app .tf-calendar__nav-button {
	width: 44px;
	height: 44px;
	appearance: none;
	-webkit-appearance: none;
	font-size: 0;
	line-height: 0;
}

.tf-calendar__nav {
	grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.tf-calendar__nav-button > span {
	display: block;
	width: 9px;
	height: 9px;
	border-style: solid;
	border-color: currentColor;
	font-size: 0;
	line-height: 0;
}

.tf-calendar__nav-button[data-tf-calendar-prev] > span {
	transform: translateX(1px) rotate(45deg);
	border-width: 0 0 2px 2px;
}

.tf-calendar__nav-button[data-tf-calendar-next] > span {
	transform: translateX(-1px) rotate(45deg);
	border-width: 2px 2px 0 0;
}

body.tiemposf-public-app .tf-calendar__day {
	font-family: var(--tf-font);
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
}

.tf-calendar__day--has-events > span {
	transform: translateY(-6px);
}

.tf-calendar__day i {
	top: auto;
	right: auto;
	bottom: 2px;
	left: 50%;
	display: grid;
	min-width: 14px;
	height: 14px;
	place-items: center;
	padding: 0 3px;
	transform: translateX(-50%);
	border: 1px solid rgba(255, 255, 255, .92);
	font-family: var(--tf-font);
	font-size: 8px;
	font-style: normal;
	font-variant-numeric: tabular-nums;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 2px 5px rgba(11, 53, 81, .18);
}

.tf-calendar__day--today.tf-calendar__day--selected {
	box-shadow:
		inset 0 0 0 2px #ffffff,
		inset 0 0 0 4px var(--tf-navy),
		0 5px 14px rgba(var(--tf-accent-rgb), .25);
}

.tf-input-wrap--select::after {
	top: 50%;
	box-sizing: border-box;
	transform: translateY(-65%) rotate(45deg);
}

.tf-action-card__arrow,
.tf-event-card__arrow,
.tf-rank-card__arrow,
.tf-back__arrow {
	display: grid;
	place-items: center;
	justify-self: center;
	flex: 0 0 auto;
}

.tf-action-card__arrow::before,
.tf-event-card__arrow::before,
.tf-rank-card__arrow::before {
	position: static;
	width: 7px;
	height: 7px;
	transform: translateX(-1px) rotate(-45deg);
	border-width: 0 2px 2px 0;
}

.tf-back__arrow::before {
	position: static;
	width: 8px;
	height: 8px;
	transform: translateX(1px) rotate(45deg);
	border-width: 0 0 2px 2px;
}

.tf-action-card::after,
.tf-date-card::after,
.tf-event-card::after {
	z-index: 0;
}

.tf-action-card > *,
.tf-date-card > *,
.tf-event-card > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 350px) {
	.tf-calendar__nav {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 4px;
	}

	body.tiemposf-public-app .tf-calendar__nav-button {
		width: 44px;
		height: 44px;
	}

	.tf-calendar__nav h2 {
		font-size: 16px;
		letter-spacing: 0;
		white-space: nowrap;
	}

	body.tiemposf-public-app .tf-calendar__day {
		font-size: 12px;
	}

	.tf-calendar__day--has-events > span {
		transform: translateY(-5px);
	}

	.tf-calendar__day i {
		display: grid;
		min-width: 12px;
		height: 12px;
		padding: 0 2px;
		font-size: 7px;
	}
}

@media (forced-colors: active) {
	.tf-calendar__day i {
		border: 1px solid CanvasText;
		box-shadow: none;
	}
}

/* Racing identity: flags, asphalt and red-and-white kerbs. */
.tf-kicker::before,
.tf-section-label::before {
	width: 30px;
	height: 12px;
	flex: 0 0 30px;
	transform: skewX(-10deg);
	background-color: #f8fdff;
	background-image:
		linear-gradient(45deg, var(--tf-navy) 25%, transparent 25%, transparent 75%, var(--tf-navy) 75%),
		linear-gradient(45deg, var(--tf-sky) 25%, transparent 25%, transparent 75%, var(--tf-sky) 75%);
	background-position: 0 0, 4px 4px;
	background-size: 8px 8px;
	clip-path: polygon(0 0, 100% 8%, 93% 100%, 0 88%);
	box-shadow: 3px 3px 0 rgba(var(--tf-sky-rgb), .22);
}

.tf-page-head {
	position: relative;
}

.tf-page-head::after {
	display: block;
	width: min(220px, 76%);
	height: 5px;
	margin-top: 16px;
	border-radius: 999px;
	background: repeating-linear-gradient(115deg,
		var(--tf-kerb-red) 0 12px,
		var(--tf-kerb-white) 12px 24px,
		var(--tf-kerb-red) 24px 36px,
		var(--tf-kerb-white) 36px 48px);
	box-shadow: 0 0 0 1px rgba(var(--tf-accent-rgb), .12), 0 4px 12px rgba(var(--tf-accent-rgb), .12);
	content: "";
	opacity: .88;
}

.tf-date-card::before,
.tf-event-card::before {
	position: absolute;
	z-index: 0;
	right: 14px;
	bottom: 0;
	left: 14px;
	height: 4px;
	border-radius: 999px 999px 0 0;
	background: repeating-linear-gradient(115deg,
		var(--tf-kerb-red) 0 10px,
		var(--tf-kerb-white) 10px 20px,
		var(--tf-kerb-red) 20px 30px,
		var(--tf-kerb-white) 30px 40px);
	content: "";
	opacity: .76;
	pointer-events: none;
}

.tf-event-hero::before {
	position: absolute;
	z-index: 0;
	right: -48px;
	bottom: -28px;
	width: clamp(210px, 52%, 370px);
	height: 118px;
	transform: rotate(-7deg) skewX(-7deg);
	background:
		repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .7) 18px 31px, transparent 31px 50px) 50% 53% / 100% 3px no-repeat,
		repeating-linear-gradient(115deg, var(--tf-kerb-red) 0 11px, var(--tf-kerb-white) 11px 22px, var(--tf-kerb-red) 22px 33px, var(--tf-kerb-white) 33px 44px) 0 100% / 100% 6px no-repeat,
		radial-gradient(circle, rgba(255, 255, 255, .15) 0 1px, transparent 1.4px) 0 0 / 8px 8px,
		linear-gradient(155deg, rgba(8, 25, 35, .94), rgba(41, 62, 74, .86));
	content: "";
	opacity: .3;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%, #000 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 34%, #000 100%);
	pointer-events: none;
}

.tf-event-hero::after {
	z-index: 0;
	opacity: .86;
}

.tf-event-hero > * {
	position: relative;
	z-index: 1;
}

.tf-rider-identity::before {
	position: absolute;
	z-index: 0;
	right: 18px;
	bottom: 0;
	left: 18px;
	height: 4px;
	border-radius: 999px 999px 0 0;
	background: repeating-linear-gradient(115deg,
		var(--tf-kerb-red) 0 11px,
		var(--tf-kerb-white) 11px 22px,
		var(--tf-kerb-red) 22px 33px,
		var(--tf-kerb-white) 33px 44px);
	content: "";
	opacity: .82;
}

.tf-rider-identity > * {
	position: relative;
	z-index: 1;
}

.tf-pb-card::after {
	position: absolute;
	z-index: 0;
	right: -22px;
	bottom: -24px;
	width: 124px;
	height: 94px;
	transform: rotate(-13deg) skewX(-8deg);
	background-image:
		linear-gradient(45deg, rgba(76, 29, 149, .5) 25%, transparent 25%, transparent 75%, rgba(76, 29, 149, .5) 75%),
		linear-gradient(45deg, rgba(217, 70, 239, .34) 25%, transparent 25%, transparent 75%, rgba(217, 70, 239, .34) 75%);
	background-position: 0 0, 10px 10px;
	background-size: 20px 20px;
	content: "";
	opacity: .34;
	-webkit-mask-image: linear-gradient(to left, #000 20%, transparent 100%);
	mask-image: linear-gradient(to left, #000 20%, transparent 100%);
	pointer-events: none;
}

.tf-pb-card > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 600px) {
	.tf-page-head::after {
		width: min(176px, 68%);
		height: 4px;
		margin-top: 13px;
	}

	.tf-event-hero::before {
		right: -62px;
		bottom: -31px;
		width: 74%;
		height: 104px;
		opacity: .27;
	}

	.tf-date-card::before,
	.tf-event-card::before {
		right: 12px;
		left: 12px;
		height: 3px;
	}

	.tf-pb-card::after {
		right: -35px;
		width: 112px;
		opacity: .27;
	}
}

@media (forced-colors: active) {
	.tf-page-head::after,
	.tf-date-card::before,
	.tf-event-card::before,
	.tf-event-hero::before,
	.tf-rider-identity::before,
	.tf-pb-card::after {
		display: none;
	}

	.tf-kicker::before,
	.tf-section-label::before {
		width: 22px;
		height: 2px;
		background: CanvasText;
		clip-path: none;
		box-shadow: none;
	}
}

/* Pure white canvas keeps timing, racing states and controls unmistakable. */
html,
body.tiemposf-public-app,
.tf-app,
.tf-atmosphere {
	background: #ffffff !important;
	background-image: none !important;
}

.tf-atmosphere::before,
.tf-atmosphere::after,
.tf-atmosphere__grid,
.tf-atmosphere__beam {
	display: none;
}

.tf-topbar {
	background: #ffffff;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

@media (forced-colors: active) {
	html,
	body.tiemposf-public-app,
	.tf-app,
	.tf-atmosphere {
		background: Canvas !important;
	}
}
