.vo2-events-page.events-page-v1 {
    --events-ink: var(--fg-1, #1a1f2b);
    --events-muted: #596474;
    --events-accent: var(--vo2-pink-600, #be1553);
    --events-border: #e0e5ee;
    --events-header-offset: 0px;
    color: var(--events-ink);
    text-align: right;
}
.events-page-v1 > .main-layout { max-width: 1120px; padding-top: 32px; }
.events-page-intro { margin: 0 0 24px; }
.events-page-intro h1 { margin: 0 0 8px; color: var(--events-ink); font-size: clamp(30px, 5vw, 40px); font-weight: 850; line-height: 1.5; }
.events-page-intro p { margin: 0; color: var(--events-muted); font-size: 16px; line-height: 1.9; }
.events-section-nav { position: sticky; top: var(--events-header-offset); z-index: 1020; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--events-border); background: var(--surface-1, #eef1f6); }
.events-section-nav a { display: flex; align-items: center; justify-content: center; position: relative; min-height: 52px; padding: 8px 4px 14px; color: var(--events-muted); font-size: 16px; font-weight: 650; text-decoration: none; }
.events-section-nav a[aria-current] { color: var(--events-accent); font-weight: 800; }
.events-section-nav a[aria-current]::after { content: ''; position: absolute; bottom: -1px; right: 12%; left: 12%; height: 3px; background: currentColor; border-radius: 3px; }
.events-first-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; margin-bottom: 28px; padding: 16px; border-radius: 12px; background: #faeaf1; color: var(--events-accent); text-decoration: none; font-size: 14px; line-height: 1.8; }
.events-first-time > span { display: flex; align-items: center; gap: 8px; }
.events-first-time strong { color: var(--events-ink); font-size: 16px; }
.events-first-time i { font-size: 20px; flex-shrink: 0; }
.events-page-section { scroll-margin-top: calc(var(--events-header-offset) + 76px); }
.events-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.events-section-heading h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.6; color: var(--events-ink); }
.events-section-heading > span { color: var(--events-muted); font-size: 13px; white-space: nowrap; }
.events-race-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.events-race-card { min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--events-border); border-inline-start: 3px solid var(--events-accent); border-radius: 16px; box-shadow: 0 2px 8px rgb(26 31 43 / 3%); }
.events-race-card--with-backdrop { --events-ink:#1a1f2b; position:relative; isolation:isolate; overflow:hidden; color:var(--events-ink); }
.events-race-card--with-backdrop .events-race-backdrop { position:absolute; inset:0; width:100%; height:100%; max-height:380px; object-fit:cover; object-position:left center; pointer-events:none; z-index:-2; }
.events-race-card--with-backdrop::before { content:''; position:absolute; inset:0; height:380px; max-height:100%; background:linear-gradient(to bottom,transparent 62%,#fff 100%),linear-gradient(to right,rgb(255 255 255 / 55%) 0%,rgb(255 255 255 / 94%) 48%,#fff 78%); pointer-events:none; z-index:-1; }
.events-race-card--with-backdrop .events-race-details-body { background:#fff; }
.events-race-discipline { display: flex; align-items: center; gap: 8px; color: var(--events-muted); font-size: 14px; line-height: 1.8; }
.events-race-discipline i { font-size: 20px; }
.events-race-card h3 { margin: 12px 0 18px; font-size: 23px; font-weight: 800; line-height: 1.7; color: var(--events-ink); overflow-wrap: anywhere; }
.events-race-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; font-size: 15px; line-height: 1.8; }
.events-race-meta > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.events-race-meta dt { display: flex; font-size: 19px; font-weight: 400; }
.events-race-meta dd { margin: 0; overflow-wrap: anywhere; }
.events-race-status { display: flex; align-items: center; gap: 7px; margin: 0 0 18px; font-size: 14px; font-weight: 650; line-height: 1.8; }
.events-race-status--open { color: #167444; }
.events-race-status--upcoming { color: #8b5707; }
.events-race-status--closed { color: var(--events-muted); }
.events-race-status i { font-size: 18px; }
.events-race-countdown { margin: 0 0 18px; padding: 12px; border-radius: 10px; background: #faeaf1; }
.events-race-countdown-label { margin: 0 0 8px; color: var(--events-ink); font-size: 14px; line-height: 1.8; font-weight: 650; }
.events-race-countdown-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.events-race-countdown-units > span { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.events-race-countdown-units strong { color: var(--events-accent); font-size: 22px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.events-race-countdown-units > span > span { color: var(--events-muted); font-size: 13px; line-height: 1.7; }
.events-race-countdown-deadline { margin: 8px 0 0; color: var(--events-muted); font-size: 13px; line-height: 1.9; }
.events-race-cta { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--events-accent); border-radius: 10px; background: var(--events-accent); color: #fff; font-size: 16px; font-weight: 750; line-height: 1.7; text-align: center; cursor: pointer; list-style: none; }
.events-race-cta::-webkit-details-marker { display: none; }
.events-race-cta::marker { content: ''; }
.events-race-cta i { font-size: 13px; }
.events-race-details[open] > .events-race-cta i { transform: rotate(180deg); }
.events-race-cta--secondary { background: #f5f7fa; border-color: var(--events-border); color: var(--events-ink); }
.events-race-details-body { padding-top: 18px; }
.events-race-details-hint { margin: 0 0 12px; font-size: 14px; color: var(--events-muted); line-height: 1.8; }
.events-race-categories { margin: 0; padding: 0; list-style: none; }
.events-race-categories li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-top: 1px solid var(--events-border); }
.events-race-category { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; min-height: 44px; color: var(--events-ink); text-decoration: none; font-size: 14px; line-height: 1.8; }
.events-race-category strong { font-size: 15px; font-weight: 700; }
.events-race-category-count { color: var(--events-muted); font-size: 12px; }
.vo2-events-page.events-page-v1 .events-race-action { min-height: 44px; padding: 9px 12px; border: 1px solid var(--events-accent) !important; border-radius: 8px !important; background: var(--events-accent) !important; background-image: none !important; color: #fff !important; box-shadow: none !important; font: inherit; font-size: 13px; line-height: 1.8; font-weight: 650; cursor: pointer; }
.vo2-events-page.events-page-v1 .events-race-action:hover { background: var(--vo2-pink-500, #df2063) !important; }
.vo2-events-page.events-page-v1 .events-race-action--cancel,
.vo2-events-page.events-page-v1 .events-race-action--cancel:hover { background: #fff !important; color: #b42318 !important; border-color: #b42318 !important; }
.events-race-unavailable { color: var(--events-muted); font-size: 13px; }
.events-race-documents { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--events-border); padding-top: 10px; }
.events-race-documents a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; line-height: 1.8; color: var(--events-accent); }
.events-race-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 8px 0; border: 0; background: transparent; color: var(--events-muted); font: inherit; font-size: 13px; cursor: pointer; }
.events-race-empty { grid-column: 1 / -1; padding: 32px 20px; text-align: center; background: #fff; border: 1px solid var(--events-border); border-radius: 16px; }
.events-race-empty > i { font-size: 32px; color: var(--events-muted); }
.events-race-empty h3 { margin-top: 16px; font-size: 20px; }
.events-race-empty p { color: var(--events-muted); font-size: 15px; line-height: 1.9; }
.events-race-empty a { display: inline-flex; align-items: center; min-height: 44px; color: var(--events-accent); }
.events-page-v1 #team, .events-page-v1 #events-archive, .events-page-v1 #events-calendar { padding-top: 28px; margin-top: 24px; border-top: 1px solid var(--events-border); }
.events-page-v1 #events-archive .form-label { display: block !important; text-align: right; font-size: 14px; }
.events-page-v1 #events-archive select, .events-page-v1 #events-archive .btn { min-height: 44px; }
.events-results-empty { padding: 24px; border: 1px solid var(--events-border); border-radius: 12px; background: #fff; color: var(--events-muted); font-size: 15px; line-height: 1.9; text-align: center; }
.events-page-v1 :is(.events-section-nav a, .events-first-time, .events-race-cta, .events-race-action, .events-race-category, .events-race-share):focus-visible { outline: 3px solid var(--events-accent); outline-offset: 4px; }
@media (max-width: 991.98px) {
    .vo2-events-page.events-page-v1 { --events-header-offset: 52px; }
    .events-page-v1 > .main-layout { margin-top: 0 !important; padding-top: 68px; }
}
@media (max-width: 767px) {
    .events-page-v1 > .main-layout { padding: 68px 16px 0; }
    .events-page-intro { margin-bottom: 16px; }
    .events-page-intro h1 { margin-bottom: 4px; line-height: 1.35; }
    .events-page-intro p { line-height: 1.75; }
    .events-section-nav { margin-bottom: 16px; }
    .events-section-nav a { min-height: 48px; padding-bottom: 10px; }
    .events-race-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .events-race-card { padding: 20px; }
    .events-race-card h3 { font-size: 22px; line-height: 1.6; margin: 10px 0 14px; }
    .events-race-meta { margin-bottom: 10px; }
    .events-race-status { margin-bottom: 14px; }
    .events-first-time { flex-wrap: wrap; gap: 6px 12px; min-height: 52px; padding: 12px; margin-bottom: 20px; }
    .events-section-heading { margin-bottom: 12px; }
    .events-section-heading h2 { font-size: 20px; }
}
@media (max-width: 359px) {
    .events-page-v1 > .main-layout { padding-inline: 12px; }
    .events-race-card { padding: 18px 16px; }
    .events-race-card h3 { font-size: 20px; }
    .events-section-nav a { font-size: 14px; }
    .events-first-time strong { font-size: 15px; }
}

/* Public age-category start lists. Dialog uses the top layer, above the site navigation. */
.events-race-startlist-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--events-border); }
.events-race-startlist-trigger { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--events-accent); border-radius: 10px; background: #fff; color: var(--events-accent); font-size: 15px; font-weight: 700; text-decoration: none; }
.events-race-startlist-trigger:hover { color: var(--events-accent); background: #fff5f9; }
.events-race-startlist-trigger > i:last-child { margin-inline-start: auto; font-size: 12px; }
.events-race-startlist-trigger > i:first-child { font-size: 20px; }
html.events-startlist-open, html.events-startlist-open body { overflow: hidden; }
dialog.events-startlist-sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: min(640px, calc(100% - 24px)); max-width: none; max-height: 82vh; max-height: 82dvh; padding: 12px 24px max(24px, env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; border: 1px solid #e0e5ee; border-bottom: 0; border-radius: 22px 22px 0 0; background: #fff; color: #1a1f2b; text-align: right; box-shadow: 0 -8px 40px rgb(26 31 43 / 12%); }
dialog.events-startlist-sheet:not([open]) { display: none; }
.events-startlist-sheet::backdrop { background: rgb(15 23 42 / 48%); }
.events-startlist-sheet__handle { width: 42px; height: 4px; margin: 0 auto 18px; border-radius: 8px; background: #cbd2dc; }
.events-startlist-sheet__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.events-startlist-sheet__header > div { min-width: 0; }
.events-startlist-sheet__header h2 { margin: 0 0 6px; color: #1a1f2b; font-size: 21px; font-weight: 800; line-height: 1.7; }
.events-startlist-sheet__header p { margin: 0; color: #596474; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.events-startlist-sheet__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #e0e5ee; border-radius: 10px; background: #f5f7fa; color: #344054; font-size: 16px; box-shadow: none; }
.events-startlist-sheet__hint { margin: 18px 0 4px; color: #596474; font-size: 13px; line-height: 2; }
.events-startlist-sheet__categories { margin: 0; padding: 0; list-style: none; }
.events-startlist-sheet__categories li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0; border-bottom: 1px solid #e0e5ee; }
.events-startlist-sheet__categories li:last-child { border-bottom: 0; padding-bottom: 4px; }
.events-startlist-sheet__categories li > div { flex: 1 1 160px; min-width: 0; }
.events-startlist-sheet__categories h3 { margin: 0 0 4px; color: #1a1f2b; font-size: 16px; font-weight: 750; line-height: 1.8; overflow-wrap: anywhere; }
.events-startlist-sheet__categories p { margin: 0 0 4px; color: #596474; font-size: 13px; line-height: 1.8; }
.events-startlist-sheet__categories span { color: #596474; font-size: 12px; }
.events-startlist-sheet__link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #be1553; border-radius: 8px; background: #fff; color: #be1553; font-size: 14px; font-weight: 700; text-decoration: none; }
.events-startlist-sheet__link:hover { color: #a10e43; background: #fff5f9; }
.events-startlist-sheet :is(a,button):focus-visible, .events-race-startlist-trigger:focus-visible { outline: 3px solid #be1553; outline-offset: 3px; }
@media (max-width: 575.98px) {
    dialog.events-startlist-sheet { width: 100%; padding-inline: 20px; }
    .events-startlist-sheet__categories li > div { flex-basis: 140px; }
}
