/* Public race cards, race filtering, and accessible race detail dialogs. */
.status-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:3px;line-height:1;font-size:9px;letter-spacing:.8px;font-weight:800;white-space:nowrap}.status-chip i,.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.status-chip.live{color:#0a0a0a;background:var(--accent)}.status-chip.upcoming{background:#eaf0ff;color:#194fc2}.status-chip.ended{background:#eaeae8;color:#555}.orange{background:var(--accent)}.blue{background:var(--blue)}.race-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);margin-bottom:27px}.filter-group{display:flex;gap:24px}.filter-group button{display:flex;align-items:center;gap:8px;background:none;border:0;border-bottom:2px solid transparent;min-height:51px;padding:12px 2px;color:var(--sub);font-size:12px;font-weight:650;white-space:nowrap}.filter-group button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--ink)}.filter-group button>span{font-size:9px;border-radius:4px;background:var(--surface);padding:2px 5px;color:var(--sub)}.feed-state{display:flex;gap:8px;align-items:center;color:var(--sub);font-size:9px}.refresh-button{min-height:40px;min-width:36px;border:0;background:none;font-size:21px}.race-grid{display:grid;grid-template-columns:1fr 1fr .8fr;gap:22px}.race-card{min-width:0;border:1px solid var(--line);border-radius:4px;overflow:hidden;background:#fff}.race-photo{height:255px;position:relative;overflow:hidden;background:var(--navy)}.race-photo>img{width:100%;height:100%;object-fit:cover;transition:transform 500ms var(--ease)}.race-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 15%,#0009 100%);pointer-events:none}.race-photo .status-chip{position:absolute;top:17px;left:17px;z-index:1}.photo-round{position:absolute;top:19px;right:17px;font-size:8px;font-weight:700;letter-spacing:1px;color:#fff;z-index:1}.race-photo h3{position:absolute;bottom:22px;left:22px;right:20px;z-index:1;color:#fff;font-family:Anton;font-size:35px;font-weight:400;line-height:1.15}.race-body{padding:21px}.race-dates{font-size:10px;color:var(--sub);display:flex;justify-content:space-between;gap:8px;line-height:1.5}.race-stats{display:grid;grid-template-columns:1fr 1fr 1fr;margin:23px 0 18px;gap:12px}.race-stats div{border-right:1px solid var(--line)}.race-stats div:last-child{border-right:0}.race-stats dt{font-size:8px;color:var(--sub);font-weight:700;letter-spacing:1px;margin-bottom:7px}.race-stats dd{font-family:Anton;font-size:28px;line-height:1.2;margin:0}.race-stats dd small{font:650 10px -apple-system,BlinkMacSystemFont,sans-serif}.gradient-money{background:linear-gradient(125deg,#be3504,#fc4c02);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.race-detail-button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:13px 0 0;min-height:42px;border:0;border-top:1px solid var(--line);background:transparent;text-align:left;font-size:12px;font-weight:700}.race-detail-button span{font-size:19px}.crew-card{position:relative;overflow:hidden;border-radius:4px;padding:29px 25px;background:#f0f0ed;display:flex;flex-direction:column;justify-content:space-between;min-height:468px}.crew-card .eyebrow{color:var(--sub);font-size:8px}.crew-card h3{font-family:Anton;font-size:40px;line-height:1.09;font-weight:400;margin-top:18px;letter-spacing:-.5px}.crew-card p:not(.eyebrow){font-size:12px;line-height:1.7;color:var(--sub);margin-top:18px;max-width:210px}.crew-icon{width:55px;height:55px;background:var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:24px;font-size:37px;line-height:1}.crew-card>a{border-top:1px solid #d1d1ce;padding-top:15px;margin-top:30px;justify-content:space-between}.empty-state{grid-column:1 / -1;padding:50px 28px;background:#f3f3f0;text-align:center;border-radius:4px}.empty-state h3{font-size:22px;margin-bottom:10px}.empty-state p{font-size:14px;color:var(--sub);line-height:1.7}.empty-state a{margin-top:20px}
dialog{padding:0;border:0;border-radius:8px;width:min(600px,calc(100% - 32px));max-height:90dvh;background:#fff;color:var(--ink);box-shadow:0 25px 100px #0005;overflow-y:auto;overscroll-behavior:contain}dialog::backdrop{background:rgba(7,15,28,.65);backdrop-filter:blur(4px)}body:has(dialog[open]){overflow:hidden}.dialog-close{position:absolute;z-index:3;top:14px;right:14px;border:0;width:44px;height:44px;border-radius:50%;font-size:29px;background:#fff;box-shadow:0 2px 15px #0001}.dialog-photo{position:relative;height:210px;overflow:hidden;background:var(--navy)}.dialog-photo img{width:100%;height:100%;object-fit:cover}.dialog-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#0009)}.dialog-photo .status-chip{position:absolute;top:24px;left:26px;z-index:1}.dialog-photo h2{font-size:43px;color:#fff;position:absolute;left:26px;bottom:23px;z-index:1;right:55px}.dialog-body{padding:26px}.dialog-date{font-size:12px;color:var(--sub);line-height:1.6}.dialog-body .race-stats{margin:24px 0}.dialog-summary{font-size:14px;font-weight:600;line-height:1.6;margin:0 0 22px}.dialog-action{width:100%;justify-content:space-between}.dialog-note{font-size:10px;color:var(--sub);line-height:1.7;margin-top:13px;text-align:center}.dialog-note a{text-decoration:underline;text-underline-offset:3px}.source-note{font-size:9px;color:var(--sub);margin-bottom:15px;line-height:1.5}
@media(hover:hover) and (pointer:fine){.race-card:hover .race-photo>img{transform:scale(1.035)}.race-detail-button:hover{color:#be3504}.filter-group button:hover{color:var(--ink)}}
