/* ==========================================================================
   Race Events – front-end styles (fabRunning theme)

   Colours and fonts follow Avada's global options when present
   (--primary_color, --awb-typography1/4-font-family) and fall back to the
   fabRunning brand: orange #f56600, blue #198fd9, ink #202321, paper #f7f7f4.
   Override anything in your theme:  .re-events { --re-accent: #f56600; }
   ========================================================================== */

.re-events {
	--re-accent: var(--primary_color, #f56600);
	--re-accent-ink: #202321;
	--re-ink: #202321;
	--re-ink-2: #434549;
	--re-blue: #198fd9;
	--re-paper: #f7f7f4;
	--re-bg: transparent;
	--re-surface: #ffffff;
	--re-surface-2: #f2f3f0;
	--re-text: #202321;
	--re-muted: #5d6066;
	--re-border: #e3e3dd;
	--re-shadow: 0 1px 2px rgba(32, 35, 33, .04), 0 6px 20px -10px rgba(32, 35, 33, .18);
	--re-shadow-hover: 0 2px 4px rgba(32, 35, 33, .05), 0 22px 40px -18px rgba(32, 35, 33, .35);
	--re-radius: 12px;
	--re-radius-sm: 6px;
	--re-btn-radius: 4px;
	--re-cols: 3;
	--re-font-head: var(--awb-typography1-font-family, Montserrat, "Helvetica Neue", Arial, sans-serif);
	--re-font-body: var(--awb-typography4-font-family, Inter, "Helvetica Neue", Arial, sans-serif);
	--re-swim: #198fd9;
	--re-bike: #434549;
	--re-run: #f56600;
	--re-trail: #3a7d44;
	--re-paddle: #0f9d8a;
	--re-obstacle: #b54708;

	background: var(--re-bg);
	color: var(--re-text);
	font-family: var(--re-font-body);
	font-feature-settings: "tnum" 1;
	-webkit-font-smoothing: antialiased;
	margin: 2.5rem 0;
	container-type: inline-size;
}

.re-events.re-theme-dark {
	--re-surface: #2a2c30;
	--re-surface-2: #33363a;
	--re-text: #f4f4f1;
	--re-muted: #a7aab0;
	--re-border: rgba(255, 255, 255, .09);
	--re-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .6);
	--re-shadow-hover: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px -16px rgba(0, 0, 0, .8);
	--re-bg: #212326;
	padding: clamp(20px, 4vw, 48px);
	border-radius: var(--re-radius);
	border-top: 4px solid var(--re-accent);
}
@media (prefers-color-scheme: dark) {
	.re-events.re-theme-auto {
		--re-surface: #2a2c30; --re-surface-2: #33363a; --re-text: #f4f4f1; --re-muted: #a7aab0;
		--re-border: rgba(255, 255, 255, .09); --re-bg: #212326;
	}
}

.re-events *, .re-events *::before, .re-events *::after { box-sizing: border-box; }
.re-events a { text-decoration: none; color: inherit; }
.re-events .re-icon { flex: none; display: block; }
.re-events .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.re-events h1, .re-events h2, .re-events h3 { font-family: var(--re-font-head); color: inherit; }

/* ---------- Section heading ---------- */
.re-head { margin-bottom: 1.75rem; }
.re-head__title { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin: 0 0 .35em; }
.re-head__title::after, .re-sp-h::before {
	content: ""; display: block; width: 46px; height: 6px; margin-top: .4em;
	background: var(--re-accent); transform: skewX(-24deg); transform-origin: left;
}
.re-head__sub { color: var(--re-muted); font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 62ch; }

/* ---------- Eyebrow (like "REAL RUNS. HONEST REVIEWS.") ---------- */
.re-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.re-eyebrow__sport { color: var(--re-accent); }

/* ---------- Filters ---------- */
.re-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 1.5rem; }
.re-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.re-chip {
	--re-sport: var(--re-accent);
	appearance: none; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 600;
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
	border-radius: var(--re-btn-radius); background: var(--re-surface); color: var(--re-text);
	border: 1px solid var(--re-border); transition: background .2s, color .2s, border-color .2s;
}
.re-chip:hover { border-color: var(--re-text); }
.re-chip:focus-visible { outline: 2px solid var(--re-accent); outline-offset: 2px; }
.re-chip__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--re-sport); transform: skewX(-20deg); }
.re-chip.is-active { background: var(--re-text); border-color: var(--re-text); color: var(--re-surface); }
.re-chip.is-active .re-chip__dot { background: var(--re-accent); }

.re-filters__right { display: flex; gap: 8px; flex-wrap: wrap; }
.re-search, .re-select {
	display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
	background: var(--re-surface); border: 1px solid var(--re-border); border-radius: var(--re-btn-radius); color: var(--re-muted);
}
.re-search:focus-within, .re-select:focus-within { border-color: var(--re-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--re-accent) 18%, transparent); }
.re-search input, .re-select select {
	border: 0 !important; background: transparent !important; outline: 0; box-shadow: none !important;
	font: inherit; font-size: .9rem; color: var(--re-text); padding: 0 !important; margin: 0; min-width: 0; height: 100% !important;
}
.re-search input { width: 190px; }
.re-select select { cursor: pointer; }

/* ---------- Shared bits ---------- */
.re-date {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 62px; padding: 8px 10px 9px; border-radius: var(--re-radius-sm); line-height: 1;
	background: var(--re-surface); color: var(--re-text); text-transform: uppercase; text-align: center;
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); font-family: var(--re-font-head);
}
.re-date__wd { font-size: .62rem; font-weight: 700; letter-spacing: .12em; color: var(--re-muted); font-family: var(--re-font-body); }
.re-date__d { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 3px 0 2px; white-space: nowrap; }
.re-date__m { font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: var(--re-accent); }

.re-status {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--re-btn-radius);
	font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: none; white-space: nowrap;
	background: #e6f4ea; color: #1e6b34;
}
.re-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.re-status--early_bird { background: #e5f2fb; color: #0f6aa3; }
.re-status--few_spots { background: #fff0e5; color: #b84c00; }
.re-status--few_spots::before { animation: re-pulse 1.4s infinite; }
.re-status--sold_out { background: #202321; color: #fff; }
.re-status--coming_soon { background: #f2f3f0; color: #434549; }
/* Race-day statuses */
.re-status--completed { background: #202321; color: #fff; }
.re-status--completed::before { background: var(--re-accent); }
.re-status--rescheduled { background: #198fd9; color: #fff; }
.re-status--rescheduled::before { background: #fff; }
.re-status--postponed { background: #fff0e5; color: #b84c00; box-shadow: inset 0 0 0 1px #f5b98a; }
.re-status--cancelled { background: #c92a2a; color: #fff; }
.re-status--cancelled::before { content: "\00d7"; width: auto; height: auto; background: none; font-size: 1.05em; line-height: 1; }
@keyframes re-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.6); } }

.re-sport { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--re-text); }
.re-sport__icons { display: inline-flex; align-items: center; gap: 1px; padding: 4px 6px; border-radius: 4px; color: #fff; background: var(--re-sport, var(--re-accent)); }

.re-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--re-muted); font-size: .9rem; }
.re-meta__item { display: inline-flex; align-items: center; gap: 6px; }

/* Multisport legs strip: Swim → Bike → Run */
.re-legs { list-style: none; margin: 0; padding: 0; display: flex; border-radius: var(--re-radius-sm); overflow: hidden; }
.re-leg {
	--leg: var(--re-run);
	position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px;
	padding: 8px 10px 8px 18px; margin: 0; font-size: .8rem; line-height: 1.2;
	background: color-mix(in srgb, var(--leg) 11%, var(--re-surface)); color: var(--re-text);
}
.re-leg:first-child { padding-left: 11px; }
.re-leg:not(:last-child)::after {
	content: ""; position: absolute; z-index: 1; right: -9px; top: 50%; width: 18px; height: 18px;
	transform: translateY(-50%) rotate(45deg); background: color-mix(in srgb, var(--leg) 11%, var(--re-surface));
	border-top: 2px solid var(--re-surface); border-right: 2px solid var(--re-surface);
}
.re-leg .re-icon { color: var(--leg); position: absolute; top: 8px; right: 10px; }
.re-leg__name { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; color: var(--leg); }
.re-leg__dist { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-leg--swim { --leg: var(--re-swim); }
.re-leg--bike { --leg: var(--re-bike); }
.re-leg--run { --leg: var(--re-run); }
.re-leg--trail { --leg: var(--re-trail); }
.re-leg--paddle { --leg: var(--re-paddle); }
.re-leg--obstacle { --leg: var(--re-obstacle); }

.re-dist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.re-dist li { margin: 0; padding: 4px 9px; border-radius: 4px; font-size: .8rem; font-weight: 700; background: var(--re-surface-2); color: var(--re-text); }
.re-dist__more { color: var(--re-muted) !important; }

.re-countdown { font-size: .8rem; font-weight: 600; color: var(--re-muted); display: inline-flex; align-items: center; gap: 6px; }
.re-countdown:empty { display: none; }
.re-countdown.is-soon { color: #b84c00; }
.re-countdown.is-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--re-accent); animation: re-pulse 1.4s infinite; }
.re-price { font-weight: 800; font-size: .98rem; color: var(--re-text); font-family: var(--re-font-head); }

/* Buttons – match Avada: square-ish, orange, dark on hover */
.re-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none;
	padding: 11px 20px; border-radius: var(--re-btn-radius); border: 1.5px solid var(--re-accent);
	font-family: var(--re-font-body); font-size: .9rem; font-weight: 600; line-height: 1.2; cursor: pointer;
	background: var(--re-accent); color: var(--re-accent-ink) !important;
	transition: background .2s, border-color .2s, color .2s;
}
.re-btn .re-icon { transition: transform .2s; }
.re-btn:hover { background: var(--re-ink); border-color: var(--re-ink); color: #fff !important; }
.re-btn:hover .re-icon { transform: translateX(3px); }
.re-btn:focus-visible { outline: 2px solid var(--re-accent); outline-offset: 3px; }
.re-btn--ghost { background: transparent; color: var(--re-text) !important; border-color: var(--re-text); }
.re-btn--ghost:hover { background: var(--re-text); color: var(--re-surface) !important; }
.re-btn--outline { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .7); }
.re-btn--outline:hover { background: #fff; color: var(--re-ink) !important; border-color: #fff; }
.re-btn--outline:hover .re-icon { transform: none; }
.re-btn--lg { padding: 14px 24px; font-size: 1rem; }
.re-btn--block { display: flex; width: 100%; }
.re-btn--disabled, .re-btn--disabled:hover { background: var(--re-surface-2); border-color: var(--re-border); color: var(--re-muted) !important; cursor: not-allowed; }

/* ---------- Grid cards ---------- */
.re-items--grid { display: grid; gap: clamp(16px, 2.2vw, 28px); grid-template-columns: repeat(var(--re-cols), minmax(0, 1fr)); }
@container (max-width: 960px) { .re-items--grid { grid-template-columns: repeat(min(var(--re-cols), 2), minmax(0, 1fr)); } }
@container (max-width: 600px) { .re-items--grid { grid-template-columns: 1fr; } }

.re-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
	background: var(--re-surface); border-radius: var(--re-radius); border: 1px solid var(--re-border); box-shadow: var(--re-shadow);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
	animation: re-in .6s cubic-bezier(.2, .8, .2, 1) both;
}
.re-card:hover { transform: translateY(-5px); box-shadow: var(--re-shadow-hover); border-color: transparent; }
.re-card:nth-child(2) { animation-delay: .06s; } .re-card:nth-child(3) { animation-delay: .12s; }
.re-card:nth-child(4) { animation-delay: .18s; } .re-card:nth-child(5) { animation-delay: .24s; } .re-card:nth-child(6) { animation-delay: .3s; }
@keyframes re-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.re-card.is-featured { box-shadow: inset 0 4px 0 var(--re-accent), var(--re-shadow); }

.re-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--re-surface-2); }
.re-media__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.re-card:hover .re-media__img, .re-card:hover .re-media__art .re-icon { transform: scale(1.06); }
.re-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .22), transparent 38%); }
.re-media__art {
	position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: rgba(255, 255, 255, .92);
	background:
		linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, .12) 58% 66%, transparent 66%),
		linear-gradient(135deg, var(--re-sport, var(--re-accent)), color-mix(in srgb, var(--re-sport, var(--re-accent)) 50%, #202321));
}
.re-media__art .re-icon { width: 44%; height: auto; max-width: 140px; stroke-width: 1.3; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.re-card .re-date { position: absolute; z-index: 2; left: 14px; top: 14px; }
.re-card .re-status { position: absolute; z-index: 2; right: 14px; top: 14px; }

.re-card__body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.re-card__title { margin: 0; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.re-card__title a { transition: color .2s; }
.re-card:hover .re-card__title a { color: var(--re-accent); }
.re-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.re-card__excerpt { margin: 0; color: var(--re-muted); font-size: .92rem; line-height: 1.55; }
.re-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--re-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.re-card__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.re-card .re-btn { position: relative; z-index: 2; padding: 9px 16px; }
.re-card.is-cancelled .re-media__img, .re-card.is-cancelled .re-media__art { filter: grayscale(1); opacity: .55; }
.re-date--tba .re-date__d { font-size: 1.25rem; margin: 5px 0 3px; color: #b84c00; }
.re-card.is-cancelled .re-card__title { text-decoration: line-through; text-decoration-color: rgba(201, 42, 42, .6); }

/* ---------- List rows ---------- */
.re-items--list { display: flex; flex-direction: column; gap: 12px; }
.re-row {
	position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
	padding: 16px 20px 16px 18px; overflow: hidden;
	background: var(--re-surface); border: 1px solid var(--re-border); border-radius: var(--re-radius); box-shadow: var(--re-shadow);
	transition: box-shadow .25s, border-color .25s;
}
.re-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--re-sport, var(--re-accent)); }
.re-row:hover { box-shadow: var(--re-shadow-hover); }
.re-row:hover .re-row__title a { color: var(--re-accent); }
.re-row .re-date { background: var(--re-surface-2); box-shadow: none; min-width: 72px; padding: 12px 10px; }
.re-row__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.re-row__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.re-row__title { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.re-row__title a { transition: color .2s; }
.re-row__title a::before { content: ""; position: absolute; inset: 0; }
.re-row .re-legs { max-width: 520px; }
.re-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.re-row__side .re-btn { position: relative; z-index: 1; padding: 9px 16px; }
.re-row.is-cancelled { opacity: .65; }
@container (max-width: 640px) {
	.re-row { grid-template-columns: auto 1fr; gap: 14px; padding: 14px; }
	.re-row__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
	.re-row .re-date { min-width: 60px; }
}

/* ---------- Timeline ---------- */
.re-timeline { display: flex; flex-direction: column; gap: 32px; }
.re-tl-month { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; font-size: 1.3rem; font-weight: 800; }
.re-tl-month small { font-family: var(--re-font-body); font-size: .8rem; font-weight: 600; color: var(--re-muted); }
.re-tl-list { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.re-tl-list::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--re-border); }
.re-tl-item { position: relative; margin: 0; }
.re-tl-dot { position: absolute; left: -29px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--re-surface); border: 4px solid var(--re-sport, var(--re-accent)); }

/* ---------- Listing hero (featured race) ---------- */
.re-hero {
	position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
	min-height: 440px; margin-bottom: 2rem; border-radius: var(--re-radius); color: #fff; background: #212326;
	border-bottom: 4px solid var(--re-accent);
}
.re-hero__bg { position: absolute; inset: 0; z-index: -1; }
.re-hero__bg .re-media__img { width: 100%; height: 100%; object-fit: cover; }
.re-hero__bg .re-media__art .re-icon { width: 38%; max-width: 380px; opacity: .25; transform: translateX(32%) rotate(-8deg); }
.re-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32, 35, 38, .95) 0%, rgba(32, 35, 38, .75) 45%, rgba(32, 35, 38, .1) 100%); }
.re-hero__content { position: relative; padding: clamp(24px, 5vw, 56px); max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.re-hero__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.re-hero__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--re-accent); }
.re-hero .re-sport { color: #fff; }
.re-hero__title { margin: 0; font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; }
.re-hero__title a { color: #fff !important; }
.re-meta--hero { color: rgba(255, 255, 255, .85); font-size: 1rem; }
.re-hero .re-legs { max-width: 560px; }
.re-hero .re-leg { background: rgba(255, 255, 255, .1); color: #fff; }
.re-hero .re-leg:not(:last-child)::after { background: transparent; border-color: rgba(255, 255, 255, .3); }
.re-hero .re-leg__name, .re-hero .re-leg .re-icon { color: color-mix(in srgb, var(--leg) 55%, #fff); }
.re-hero .re-dist li { background: rgba(255, 255, 255, .12); color: #fff; }
.re-hero__actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.re-hero .re-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .7); }
.re-price--hero { color: #fff; font-size: 1.1rem; }

/* Countdown clock */
.re-clock { display: flex; gap: 8px; }
.re-clock__unit {
	display: flex; flex-direction: column; align-items: center; min-width: 66px; flex: 1; padding: 12px 6px 10px;
	border-radius: var(--re-radius-sm); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
}
.re-clock__unit b { font-family: var(--re-font-head); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.re-clock__unit small { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; opacity: .7; margin-top: 6px; }
.re-clock--light .re-clock__unit { background: var(--re-paper); border-color: var(--re-border); color: var(--re-ink); }
.re-clock--light .re-clock__unit b { font-size: 1.5rem; }

/* ==========================================================================
   Single event page
   ========================================================================== */
.re-sp { margin: 0 0 2rem; }
.re-sp-page { margin: 0; }
.re-sp-wrap--hero { margin-bottom: 0; }

/* Hero */
.re-sp-hero {
	position: relative; isolation: isolate; overflow: hidden; min-height: 520px;
	display: flex; align-items: flex-end; color: #fff; background: #212326;
	border-bottom: 5px solid var(--re-accent);
}
.re-sp-hero__bg { position: absolute; inset: 0; z-index: -1; }
.re-sp-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-sp-hero__bg .re-media__art .re-icon { width: 34%; max-width: 420px; opacity: .2; transform: translateX(45%) rotate(-8deg); }
.re-sp-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(32, 35, 38, .94) 0%, rgba(32, 35, 38, .72) 48%, rgba(32, 35, 38, .2) 100%),
		linear-gradient(0deg, rgba(32, 35, 38, .7), transparent 55%);
}
.re-sp-hero__inner {
	width: 100%; max-width: var(--site_width, 1200px); margin: 0 auto;
	padding: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 40px) clamp(64px, 8vw, 96px);
	display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end;
}
.re-sp-hero__main { display: flex; flex-direction: column; gap: 18px; }
.re-sp-hero .re-eyebrow { color: rgba(255, 255, 255, .9); }
.re-sp-hero__title { margin: 0; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; color: #fff; }
.re-sp-hero__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 1.02rem; color: rgba(255, 255, 255, .88); }
.re-sp-hero__meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.re-sp-hero__meta .re-icon { color: var(--re-accent); }
.re-sp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.re-sp-hero__count {
	display: flex; flex-direction: column; gap: 12px; padding: 20px;
	border-radius: var(--re-radius); background: rgba(32, 35, 38, .55); border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.re-sp-hero__count-label { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.re-sp-hero__count .re-clock__unit { min-width: 0; }
.re-sp-hero__price { font-family: var(--re-font-head); font-weight: 800; font-size: 1.35rem; }
.re-sp-hero__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.re-sp-hero__poster {
	position: relative; display: block; border-radius: var(--re-radius); overflow: hidden;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
	box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7); transform: rotate(1.2deg); transition: transform .25s ease;
}
.re-sp-hero__poster:hover, .re-sp-hero__poster:focus-visible { transform: rotate(0) translateY(-4px); }
.re-sp-hero__poster img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; margin: 0 auto; }
.re-sp-hero__poster-zoom {
	position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 10px; border-radius: var(--re-radius); background: rgba(32, 35, 38, .82); color: #fff;
	font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .2s;
}
.re-sp-hero__poster:hover .re-sp-hero__poster-zoom, .re-sp-hero__poster:focus-visible .re-sp-hero__poster-zoom { opacity: 1; }
.re-sp-hero__poster-zoom .re-icon { color: var(--re-accent); }
.re-sp-hero--poster .re-sp-hero__bg img { filter: blur(18px) saturate(1.1); transform: scale(1.12); }
.re-sp-hero--poster .re-sp-hero__inner { align-items: center; }

/* Quick facts */
.re-sp-body { max-width: var(--site_width, 1200px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 30px); }
.re-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0;
	background: var(--re-surface); border: 1px solid var(--re-border); border-radius: var(--re-radius); box-shadow: var(--re-shadow); overflow: hidden;
}
.re-sp-page .re-facts { position: relative; z-index: 2; margin-top: -44px; }
.re-fact { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-right: 1px solid var(--re-border); margin: 0; }
.re-fact:last-child { border-right: 0; }
.re-fact__icon { width: 36px; height: 36px; margin-bottom: 8px; border-radius: 8px; display: grid; place-items: center; color: var(--re-accent); background: color-mix(in srgb, var(--re-accent) 11%, transparent); }
.re-fact dt { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--re-muted); margin: 0; }
.re-fact dd { margin: 2px 0 0; font-family: var(--re-font-head); font-size: .94rem; font-weight: 700; line-height: 1.3; }

/* Two-column body */
.re-sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(32px, 5vw, 56px); }
.re-sp-aside { position: sticky; top: calc(var(--re-sticky-offset, 100px)); }
.re-sp-sec { margin: 0 0 clamp(32px, 5vw, 48px); }
.re-sp-h { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 18px; display: flex; flex-direction: column-reverse; gap: 10px; }
.re-sp-h::before { margin-top: 0; width: 34px; height: 5px; }
.re-sp-prose { font-size: 1.02rem; line-height: 1.75; color: var(--re-ink-2); }
.re-sp-prose > :first-child { margin-top: 0; }
.re-sp-prose p { margin: 0 0 1em; }
.re-sp-prose a { color: var(--re-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Race format */
.re-format { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; counter-reset: leg; }
.re-format__leg {
	--leg: var(--re-run);
	position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 18px 18px 16px;
	border-radius: var(--re-radius-sm); background: var(--re-surface); border: 1px solid var(--re-border); border-top: 4px solid var(--leg);
}
.re-format__leg:not(:last-child)::after {
	content: ""; position: absolute; right: -9px; top: 50%; z-index: 1; width: 8px; height: 8px;
	border-top: 2px solid var(--re-muted); border-right: 2px solid var(--re-muted); transform: translate(0, -50%) rotate(45deg);
}
.re-format__num { position: absolute; top: 14px; right: 16px; font-family: var(--re-font-head); font-weight: 800; font-size: .8rem; color: var(--re-muted); opacity: .6; }
.re-format__icon { color: var(--leg); margin-bottom: 6px; }
.re-format__name { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--leg); }
.re-format__dist { font-family: var(--re-font-head); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
@container (max-width: 560px) { .re-format { grid-auto-flow: row; } .re-format__leg:not(:last-child)::after { display: none; } }

/* Categories table */
.re-cats-wrap { border: 1px solid var(--re-border); border-radius: var(--re-radius); overflow: hidden; background: var(--re-surface); }
.re-cats { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; border: 0; }
.re-cats thead th { background: var(--re-ink); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: left; padding: 13px 18px; border: 0; }
.re-cats tbody th, .re-cats td { padding: 15px 18px; text-align: left; border: 0; border-top: 1px solid var(--re-border); vertical-align: middle; background: transparent; }
.re-cats tbody tr:first-child th, .re-cats tbody tr:first-child td { border-top: 0; }
.re-cats tbody tr:hover { background: var(--re-paper); }
.re-cats__name { display: block; font-family: var(--re-font-head); font-weight: 800; font-size: 1.15rem; }
.re-cats__note { display: block; font-size: .8rem; color: var(--re-muted); font-weight: 500; margin-top: 2px; }
.re-cats__fee { font-family: var(--re-font-head); font-weight: 800; font-size: 1.05rem; color: var(--re-text); }
@container (max-width: 520px) {
	.re-cats thead { display: none; }
	.re-cats, .re-cats tbody, .re-cats tr, .re-cats th, .re-cats td { display: block; width: 100%; }
	.re-cats tr { padding: 14px 16px; border-top: 1px solid var(--re-border); }
	.re-cats tbody tr:first-child { border-top: 0; }
	.re-cats tbody th, .re-cats td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; }
	.re-cats tbody th { display: block; margin-bottom: 6px; }
	.re-cats td::before { content: attr(data-label); color: var(--re-muted); font-family: var(--re-font-body); font-weight: 500; font-size: .85rem; }
}

/* Inclusions */
.re-incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.re-incl li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; background: var(--re-surface); border: 1px solid var(--re-border); border-radius: var(--re-radius-sm); font-weight: 600; font-size: .95rem; }
.re-incl svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; color: var(--re-accent-ink); background: var(--re-accent); }

/* Registration card */
.re-reg {
	display: flex; flex-direction: column; gap: 18px; padding: 24px;
	background: var(--re-surface); border: 1px solid var(--re-border); border-top: 5px solid var(--re-accent);
	border-radius: var(--re-radius); box-shadow: var(--re-shadow);
}
.re-reg__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.re-reg__price { display: flex; flex-direction: column; font-family: var(--re-font-head); font-size: 1.6rem; font-weight: 800; line-height: 1.05; }
.re-reg__price small { font-family: var(--re-font-body); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--re-muted); margin-bottom: 4px; }
.re-reg__list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--re-border); display: flex; flex-direction: column; gap: 10px; font-size: .92rem; color: var(--re-ink-2); }
.re-reg__list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.re-reg__list .re-icon { color: var(--re-accent); margin-top: 2px; }
.re-reg__list a { color: var(--re-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.re-reg__cal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.re-reg__cal a { padding: 9px 8px; text-align: center; font-size: .8rem; font-weight: 600; border: 1px solid var(--re-border); border-radius: var(--re-btn-radius); transition: border-color .2s; }
.re-reg__cal a:hover { border-color: var(--re-text); }
.re-reg__share { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--re-muted); }
.re-reg__share span { margin-right: auto; }
.re-reg__share a, .re-reg__share button {
	appearance: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
	border-radius: 50%; border: 1px solid var(--re-border); background: transparent; color: var(--re-text); transition: background .2s, color .2s;
}
.re-reg__share a:hover, .re-reg__share button:hover { background: var(--re-ink); color: #fff; border-color: var(--re-ink); }
.re-reg__share button.is-copied { background: var(--re-accent); border-color: var(--re-accent); }

/* "Originally Nov 28" for rescheduled / postponed races */
.re-was { display: block; margin-top: 3px; font-family: var(--re-font-body); font-size: .8rem; font-weight: 500; color: var(--re-muted); }
.re-was s { text-decoration-thickness: 1.5px; }
.re-sp-hero__meta .re-was { display: inline; margin: 0 0 0 10px; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.re-reg__was { margin: -6px 0 0; text-align: center; }

/* Announcement box (typhoon delays, venue changes…) */
.re-notice { display: flex; gap: 12px; align-items: flex-start; max-width: 640px; padding: 14px 16px; border-radius: var(--re-radius-sm); font-size: .95rem; line-height: 1.5;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-left: 4px solid var(--re-accent); color: #fff; }
.re-notice p { margin: 0; }
.re-notice .re-icon { margin-top: 1px; color: var(--re-accent); }
.re-notice--cancelled { border-left-color: #ff6b6b; } .re-notice--cancelled .re-icon { color: #ff6b6b; }
.re-notice--rescheduled { border-left-color: #4fb3f0; } .re-notice--rescheduled .re-icon { color: #4fb3f0; }

/* Results card (after the race) */
.re-res__icon { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--re-accent-ink); background: var(--re-accent); }
.re-res__text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--re-ink-2); }
.re-res__links { display: flex; flex-direction: column; gap: 10px; }
.re-btn--soon, .re-btn--soon:hover {
	background: repeating-linear-gradient(-45deg, var(--re-surface-2) 0 10px, var(--re-surface) 10px 20px);
	border: 1.5px dashed var(--re-muted); color: var(--re-ink-2) !important;
	text-transform: uppercase; letter-spacing: .14em; font-weight: 700; cursor: default;
}
.re-btn--soon:hover .re-icon { transform: none; }
.re-sp-hero .re-btn--soon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.re-card .re-btn--soon, .re-row .re-btn--soon { letter-spacing: .08em; font-size: .78rem; }

/* Map */
.re-map { border-radius: var(--re-radius); overflow: hidden; border: 1px solid var(--re-border); background: var(--re-surface-2); }
.re-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25); }

.re-sp-related { max-width: var(--site_width, 1200px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 30px); }

@container (max-width: 900px) {
	.re-sp-hero__inner { grid-template-columns: 1fr; gap: 24px; }
	.re-sp-hero__side { max-width: 420px; }
	.re-sp-hero__poster { transform: none; max-width: 320px; }
	.re-sp-hero__poster-zoom { opacity: 1; }
	.re-sp-grid { grid-template-columns: 1fr; }
	.re-sp-aside { position: static; order: -1; }
}
@container (max-width: 600px) {
	.re-facts { grid-template-columns: 1fr 1fr; }
	.re-sp-hero { min-height: 0 !important; }
	.re-sp-hero__inner { padding-bottom: 72px; }
	.re-sp-hero__actions .re-btn { flex: 1 1 100%; }
	.re-fact { border-right: 0; border-bottom: 1px solid var(--re-border); }
	.re-fact:nth-child(odd) { border-right: 1px solid var(--re-border); }
	.re-clock__unit b { font-size: 1.4rem; }
	.re-hero { min-height: 0; }
	.re-hero__bg::after { background: linear-gradient(0deg, rgba(32, 35, 38, .96) 30%, rgba(32, 35, 38, .6)); }
	.re-search input { width: 100%; }
	.re-filters__right, .re-search { flex: 1 1 100%; }
}

/* ---------- Empty ---------- */
.re-empty { text-align: center; padding: 48px 20px; border-radius: var(--re-radius); border: 2px dashed var(--re-border); color: var(--re-muted); font-weight: 600; margin: 0; }
.re-empty--filtered { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
	.re-events *, .re-events *::before, .re-events *::after { animation: none !important; transition: none !important; }
}
