@font-face {
    font-family: "Barlow Race";
    src: url("race-display.woff") format("woff");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}
body:has(.rh-home) {
    --race-ink: #171a18;
    --race-red: #ce3027;
    --race-coral: #ff6453;
    --race-page: #f7f6f2;
    --race-gutter: clamp(22px, 5.8vw, 100px);
    background: var(--race-page);
    color: var(--race-ink);
}
body:has(.rh-home) .site-header { background: #151816; border: 0; color: #fff; }
body:has(.rh-home) .header-inner { width: min(100%, 1632px); max-width: none; padding: 15px var(--race-gutter); min-height: 73px; }
body:has(.rh-home) .brand-mark { background: #cb3027; }
body:has(.rh-home) .brand-word, body:has(.rh-home) .staff-access { color: #fff; }
body:has(.rh-home) .public-nav > a:hover { color: var(--race-coral); }
body:has(.rh-home) .language-switch { border: 1px solid #626862; border-radius: 3px; }
body:has(.rh-home) .language-switch a[aria-current] { color: #171a18; background: #f4f1e9; }
body:has(.rh-home) .site-footer { background: #171a18; margin: 0; }
body:has(.rh-home) .footer-inner { width: min(calc(100% - 2 * var(--race-gutter)), 1432px); color: #c1c2b9; }
.rh-home { font-family: Arial, "ORS Thai", Tahoma, sans-serif; }
.rh-wrap { width: min(calc(100% - 2 * var(--race-gutter)), 1432px); margin-inline: auto; }
.rh-stage { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #1b211d; }
.rh-stage::before {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background: radial-gradient(ellipse at 26% 30%, #343b30 0%, transparent 57%),
                linear-gradient(110deg, #191e1c, #252a22 53%, #272b23);
}
.rh-stage::after {
    content: ""; position: absolute; inset: 0 50% 0 0; pointer-events: none; z-index: -1;
    opacity: .43; background: url("race-contours.png") center / cover no-repeat;
    mask-image: linear-gradient(90deg, #000 50%, transparent);
}
.rh-landscape { position: absolute; z-index: -1; inset: 0 0 0 37%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.rh-landscape picture, .rh-landscape img { display: block; width: 100%; height: 100%; }
.rh-landscape img { object-fit: cover; object-position: 47% 52%; }
.rh-landscape::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #161a16aa, transparent 23%), linear-gradient(100deg,#16201c56,transparent 36%); }
.rh-stage-inner { position: relative; width: min(100%, 1632px); margin-inline: auto; padding: clamp(40px, 4.4vw, 72px) var(--race-gutter); min-height: clamp(420px, 36vw, 565px); display: flex; align-items: center; }
.rh-intro { width: 43%; }
.rh-overline, .rh-location { font: 700 11px/1.3 Arial,sans-serif; letter-spacing: .17em; }
.rh-overline { display: flex; align-items: center; gap: 12px; margin: 0 0 21px; color: #f1f1e9; }
.rh-stripes { flex: none; display: inline-block; width: 23px; height: 11px; transform: skewX(-22deg); background: repeating-linear-gradient(90deg,var(--race-coral) 0 5px,transparent 5px 8px); }
.rh-intro h1 { margin: 0 0 21px; font: 800 clamp(88px,8.5vw,138px)/.80 "Barlow Race","Arial Narrow",Impact,sans-serif; letter-spacing: -.025em; color: #faf8ef; }
.rh-intro h1 span { color: var(--race-coral); }
.rh-summary { max-width: 340px; margin: 0 0 24px; font-size: clamp(15px,1.1vw,18px); color: #eeeee6; line-height: 1.65; text-wrap: pretty; }
.rh-cta { display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 48px; padding: 10px 21px; background: #c82c23; color: #fff; border-radius: 2px; font-size: 15px; font-weight: 700; }
.rh-cta:hover { background: #ab241e; }
.rh-arrow, .rh-sport-arrow { display: inline-block; width: 16px; height: 16px; position: relative; flex: none; color: #fff; }
.rh-arrow::before, .rh-sport-arrow::before { content: ""; position: absolute; right: 2px; top: 2px; width: 9px; height: 9px; border-top: 2px solid; border-right: 2px solid; }
.rh-arrow::after, .rh-sport-arrow::after { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 2px; background: currentColor; transform: rotate(-45deg); }
.rh-location { display: flex; align-items: center; gap: 9px; position: absolute; bottom: 20px; right: var(--race-gutter); color: #fff; font-size: 10px; text-shadow: 0 1px 6px #000; }
.rh-location i { color: #ff8b79; font-style: normal; }
.rh-pin { position: relative; display: inline-block; width: 10px; height: 10px; margin-right: 3px; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.rh-pin::after { content: ""; position: absolute; width: 2px; height: 2px; inset: 2.5px; border-radius: 50%; background: currentColor; }
.rh-sports { background: #232622; padding-block: 16px; }
.rh-sport-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.rh-sport { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; min-height: clamp(94px,9.2vw,148px); padding: 16px 20px; color: #fff; background: #252a25; }
.rh-sport img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 46%; z-index: -2; transition: transform .35s ease; }
.rh-sport::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#0e130ff0 2%,#11151270 56%,#11161115),linear-gradient(0deg,#10120eb0,transparent 78%); }
.rh-sport:hover img { transform: scale(1.04); }
.rh-sport-label { display: grid; line-height: 1.4; }
.rh-sport-label strong { font: 800 clamp(24px,2.3vw,37px)/.98 "Barlow Race","Arial Narrow",Impact,sans-serif; letter-spacing: .012em; }
.rh-sport-label > span { color: #f1f0eb; margin-top: 4px; font-size: 12px; }
.rh-sport-arrow { align-self: flex-end; font: 20px/1 Arial,sans-serif; color: white; }
.rh-directory { padding-block: clamp(32px,4.3vw,72px) 26px; scroll-margin-top: 12px; }
.rh-directory-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.rh-directory-head h2 { margin: 0 0 4px; color: var(--race-ink); font-size: clamp(30px,3.25vw,51px); letter-spacing: -.04em; line-height: 1.24; font-weight: 800; }
html[lang="en"] .rh-directory-head h2 { font-family: "Barlow Race","Arial Narrow",sans-serif; font-size: clamp(40px,4vw,60px); text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.rh-directory-head p, .rh-empty p { margin: 0; color: #54594f; font-size: 15px; }
.rh-search { position: relative; width: min(32%,330px); }
.rh-search input { width: 100%; height: 45px; padding: 9px 14px 9px 40px; border: 1px solid #c9cdc2; border-radius: 3px; background: #fff; color: var(--race-ink); font-size: 14px; }
.rh-search > span { position: absolute; left: 16px; top: 15px; width: 12px; height: 12px; border: 1.7px solid #576052; border-radius: 50%; pointer-events: none; }
.rh-search > span::after { content: ""; position: absolute; width: 7px; height: 1.5px; background: #576052; top: 10px; left: 8px; transform: rotate(46deg); }
.rh-directory .filter-bar { margin: 21px 0; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; }
.rh-directory .filter-chip { border: 1px solid #c8cdc3; background: transparent; border-radius: 24px; color: #41483f; min-height: 38px; font-weight: 600; }
.rh-directory .filter-chip.is-selected { background: #242b25; border-color: #242b25; color: white; }
.rh-directory .filter-chip:hover { border-color: #434d42; }
.rh-directory .event-card { border-radius: 4px; border-color: #d2d5cb; }
.rh-empty { position: relative; grid-column: 1/-1; display: flex; align-items: center; gap: 18px; padding: 26px; border: 1px solid #d6d9cf; border-left: 3px solid #bb3025; background: #eeefe8; }
.rh-empty h3 { margin: 0 0 2px; font-size: 19px; }
.rh-calendar { flex: none; display: block; position: relative; width: 32px; height: 29px; border: 2px solid #687361; border-radius: 3px; background: linear-gradient(#687361,#687361) 0 6px / 100% 2px no-repeat; }
.rh-calendar::before { content: ""; position: absolute; left: 6px; right: 6px; top: -5px; height: 6px; border-inline: 2px solid #687361; }
.rh-calendar::after { content: ""; position: absolute; left: 7px; top: 13px; width: 4px; height: 4px; background:#687361; box-shadow: 8px 0 #687361; }
.rh-credits { text-align: right; padding-top: 18px; color: #5b6156; font-size: 12px; }
.rh-credits a { text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:850px) {
    .rh-stage-inner { min-height: 405px; }
    .rh-intro { width: 45%; }
    .rh-intro h1 { font-size: clamp(80px,11vw,94px); }
    .rh-summary { max-width: 265px; }
    .rh-sport { padding: 14px; }
    .rh-sport-grid { gap: 8px; }
}
@media(max-width:600px) {
    body:has(.rh-home) { --race-gutter: 20px; }
    body:has(.rh-home) .header-inner { min-height: 57px; padding: 9px var(--race-gutter); gap: 10px; }
    body:has(.rh-home) .brand-mark { font-size: 1.48rem; padding: 8px 8px 8px 6px; }
    body:has(.rh-home) .brand-word { font-size: 1.33rem; }
    body:has(.rh-home) .brand-word small { font-size: .37rem; margin-top: 4px; }
    body:has(.rh-home) .public-nav { gap: 10px; }
    body:has(.rh-home) .language-switch a { min-width: 34px; padding: 6px 7px; }
    .rh-stage-inner { min-height: 465px; align-items: flex-end; padding: 0 var(--race-gutter) 26px; }
    .rh-stage::after { inset: 44% 34% 0 0; opacity: .23; }
    .rh-landscape { inset: 0 0 0 0; clip-path: none; }
    .rh-landscape img { object-position: 52% 35%; height: 72%; }
    .rh-landscape::after { background: linear-gradient(0deg,#1a201c 15%,#1a201cf4 27%,#1a201cc9 39%,#161b155c 53%,transparent 72%); }
    .rh-intro { width: 100%; position: relative; }
    .rh-overline { font-size: 9px; margin-bottom: 10px; gap: 8px; }
    .rh-stripes { width: 17px; height: 8px; background-size: 7px 100%; }
    .rh-intro h1 { margin-bottom: 9px; font-size: clamp(52px,15.5vw,81px); line-height: .95; white-space: nowrap; }
    .rh-intro h1 br { display: none; }
    .rh-intro h1 br::after { content: " "; }
    .rh-summary { max-width: 330px; font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
    .rh-cta { min-height: 44px; font-size: 14px; }
    .rh-location { top: 14px; bottom: auto; right: var(--race-gutter); background: #141a15bf; padding: 5px 8px; font-size: 8px; }
    .rh-sports { padding-block: 10px; }
    .rh-sport-grid { width: calc(100% - 20px); gap: 4px; }
    .rh-sport { min-height: 100px; padding: 9px; }
    .rh-sport::before { background: linear-gradient(0deg, #0e1310ef 0%,#10151096 41%,#11151226 100%); }
    .rh-sport-arrow { display: none; }
    .rh-sport-label strong { font-size: clamp(18px,4.7vw,25px); }
    .rh-sport-label > span { font-size: 10px; }
    .rh-directory-head { flex-direction: column; align-items: stretch; gap: 15px; }
    .rh-search { width: 100%; }
    .rh-directory .filter-bar { gap: 5px; margin: 14px 0; }
    .rh-directory .filter-chip { padding: 5px 12px; }
    .rh-empty { gap: 13px; padding: 19px 15px; }
    .rh-empty p { font-size: 13px; }
    .rh-credits { padding-top: 14px; }
}
@media(prefers-reduced-motion:reduce) {
    html:has(.rh-home) { scroll-behavior: auto; }
    .rh-sport img { transition: none; }
}
