/* Rezilta V8.6.17 accessible racing profile pages */
.rz-v8-profile{width:min(1180px,calc(100% - 32px));margin:22px auto 60px;color:#f4f7fa}
.rz-v8-profile-nav{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 18px}
.rz-v8-profile-nav a,.rz-v8-profile-link{color:#ffda50;text-decoration:underline;text-underline-offset:3px}
.rz-v8-profile-nav a{background:#19212a;border:1px solid #36424e;border-radius:12px;padding:12px 14px}
.rz-v8-profile-hero{background:#121a23;border:1px solid #33404d;border-radius:20px;padding:clamp(20px,4vw,42px)}
.rz-v8-profile-hero span{color:#ffda50;font-weight:700;letter-spacing:.07em;font-size:.76rem}
.rz-v8-profile-hero h1{font-size:clamp(1.65rem,4vw,3.2rem);margin:12px 0}
.rz-v8-profile-hero p{color:#c1cbd6;line-height:1.55}
.rz-v8-profile-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.rz-v8-profile-kpis>div{background:#18232e;border:1px solid #33404d;padding:18px;border-radius:14px;display:grid;gap:6px}
.rz-v8-profile-kpis span{color:#c6d1da}.rz-v8-profile-kpis strong{font-size:1.7rem;color:#ffda50}
.rz-v8-profile-history{background:#121a23;border:1px solid #33404d;padding:18px;border-radius:16px}
.rz-v8-profile-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.rz-v8-profile-history table{border-collapse:collapse;width:100%;min-width:750px}
.rz-v8-profile-history th,.rz-v8-profile-history td{text-align:left;border-bottom:1px solid #34424c;padding:12px 9px;vertical-align:top}
.rz-v8-profile-history th{color:#ecf2f6;font-size:.85rem}.rz-v8-profile-history td{color:#d4dce4}
.rz-v8-profile-notice{color:#bdc9d5;margin-top:20px;line-height:1.5}
.v8-venue-table .rz-v8-profile-link,.v8-result-row .rz-v8-profile-link,.rz-racing-card .rz-v8-profile-link{color:#f5ce48;text-decoration:underline;text-underline-offset:3px}
.rz-v8-profile a:focus-visible,.rz-v8-profile-link:focus-visible{outline:3px solid #ffda50;outline-offset:3px}
@media(max-width:650px){.rz-v8-profile{width:calc(100% - 20px);margin:12px auto 76px}.rz-v8-profile-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.rz-v8-profile-kpis>div{padding:12px}.rz-v8-profile-history{padding:12px}.rz-v8-profile-nav a{flex:1 1 auto;text-align:center}}

/* V8.6.18: profile parity with V7, responsive performance intelligence */
.rz-v8-profile-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:172px;background:linear-gradient(135deg,#1b2733,#0c131d)}
.rz-v8-profile-kicker{display:block;color:#ffda50;text-transform:uppercase;font-weight:800;font-size:.8rem;letter-spacing:.09em}
.rz-v8-profile-hero-mark{font-size:clamp(4rem,12vw,8rem);color:#f5cb48;opacity:.72;line-height:1}
.rz-v8-profile-insights{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
.rz-v8-profile-panel{background:#121a23;border:1px solid #33404d;border-radius:16px;padding:20px;min-width:0}
.rz-v8-profile-panel h2{margin:0 0 16px;font-size:1.22rem}
.rz-v8-profile-panel p{color:#becbd8;font-size:.88rem;margin:12px 0 0;line-height:1.5}
.rz-v8-formline{display:flex;flex-wrap:wrap;gap:10px}
.rz-v8-formline span{min-width:50px;min-height:50px;display:grid;place-items:center;background:#293440;color:#e9eff5;border:1px solid #43505e;border-radius:12px;font-weight:800;font-size:1.3rem}
.rz-v8-formline .rz-good{background:#233e31;border-color:#45966e;color:#aff8cb}
.rz-v8-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.rz-v8-profile-facts div{min-width:0;border-bottom:1px solid #2d3943;padding-bottom:9px}
.rz-v8-profile-facts dt{font-size:.76rem;color:#aebdcc}.rz-v8-profile-facts dd{font-weight:650;overflow-wrap:anywhere;margin:4px 0 0}
.rz-v8-distance{margin-bottom:20px}.rz-v8-distance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.rz-v8-distance-grid>div{display:grid;gap:7px;background:#202d38;border-radius:12px;padding:15px}.rz-v8-distance-grid b{color:#ffda50}
.rz-v8-distance-grid span{font-size:.85rem;color:#ccd8e3}
.rz-v8-profile-mobile-records{display:none}.rz-v8-profile-history h2{margin:0 0 16px}
.rz-v8-profile-history a{color:#ffda50}.rz-v8-profile-history table{min-width:930px}
.rz-v8-profile-mobile-records article{border:1px solid #354451;background:#1b2732;border-radius:14px;padding:14px;display:grid;gap:10px}
.rz-v8-record-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.rz-v8-record-top>span{background:#253c30;color:#adf2c0;border-radius:7px;padding:5px 9px;white-space:nowrap}
.rz-v8-profile-mobile-records p{color:#c5d0dc;font-size:.86rem;margin:0}.rz-v8-record-meta{display:flex;flex-wrap:wrap;gap:9px}.rz-v8-record-meta span{font-size:.78rem;color:#d5e0ea;padding:6px 9px;background:#2c3947;border-radius:7px}
@media(max-width:740px){.rz-v8-profile-insights{grid-template-columns:1fr}.rz-v8-profile-table-wrap{display:none}.rz-v8-profile-mobile-records{display:grid;gap:10px}.rz-v8-profile-hero-mark{font-size:4rem}.rz-v8-profile-panel{padding:15px}.rz-v8-profile-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:375px){.rz-v8-profile-hero-mark{display:none}.rz-v8-profile-facts{grid-template-columns:1fr 1fr}.rz-v8-profile-hero{padding:20px}}
[data-theme="light"] .rz-v8-profile{color:#152333}[data-theme="light"] .rz-v8-profile-hero,[data-theme="light"] .rz-v8-profile-panel,[data-theme="light"] .rz-v8-profile-history{background:#fff;color:#182638;border-color:#d5dee8}[data-theme="light"] .rz-v8-profile-hero p,[data-theme="light"] .rz-v8-profile-panel p{color:#526477}[data-theme="light"] .rz-v8-profile-kpis>div{background:#fff;color:#172536;border-color:#d5dee8}[data-theme="light"] .rz-v8-profile-kpis span{color:#485a6d}[data-theme="light"] .rz-v8-profile-kpis strong{color:#9c6a00}[data-theme="light"] .rz-v8-profile-mobile-records article{background:#fff;color:#172536;border-color:#d5dee8}[data-theme="light"] .rz-v8-profile-mobile-records p{color:#415366}[data-theme="light"] .rz-v8-profile-history td{color:#233549}[data-theme="light"] .rz-v8-profile-nav a{background:#fff;color:#755000;border-color:#bbc8d6}[data-theme="light"] .rz-v8-profile-facts div{border-color:#d5dee8}[data-theme="light"] .rz-v8-profile-facts dt{color:#586c7e}[data-theme="light"] .rz-v8-profile-notice{color:#415366}

/* V8.6.19: compact, accurate race-record presentation */
.rz-v8-profile-quality{margin:0 0 18px;padding:13px 16px;border:1px solid #6b5834;border-radius:12px;background:#272317;color:#f4dfaf;font-size:.9rem;line-height:1.55}
.rz-v8-profile-history .rz-v8-pending,.rz-v8-record-top .rz-v8-pending{color:#ead4a0;background:#3d3325;border:1px solid #6a5837;border-radius:8px;padding:4px 8px;font-size:.76rem;font-weight:650;white-space:normal}
.rz-v8-profile-history th,.rz-v8-profile-history td{overflow-wrap:anywhere}
.rz-v8-profile-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.rz-v8-profile-hero p{max-width:65ch}
.rz-v8-profile-mobile-records article{overflow-wrap:anywhere}
.rz-v8-record-top strong{min-width:0;overflow-wrap:anywhere}
[data-theme="light"] .rz-v8-profile-quality{color:#614713;background:#fff6df;border-color:#ddc591}
[data-theme="light"] .rz-v8-profile-history .rz-v8-pending,[data-theme="light"] .rz-v8-record-top .rz-v8-pending{color:#694916;background:#fff4d9}
@media(max-width:920px){.rz-v8-profile-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.rz-v8-profile-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.rz-v8-profile-kpis strong{font-size:1.4rem}.rz-v8-formline span{min-width:44px;min-height:44px}}

/* V8.6.23 production fine-tuning: profile layout and mobile readability */
.rz-v8-profile{max-width:1160px;min-width:0}.rz-v8-profile-hero{border-radius:16px;min-height:150px}.rz-v8-profile-hero h1{line-height:1.15;overflow-wrap:anywhere}.rz-v8-profile-kicker{letter-spacing:.035em}.rz-v8-profile-kpis{margin:16px 0;gap:10px}.rz-v8-profile-kpis strong{font-variant-numeric:tabular-nums}.rz-v8-profile-history table{min-width:900px}.rz-v8-profile-history th{position:sticky;top:0;background:#1a2530;z-index:1}.rz-v8-profile-history tbody tr:hover{background:#253341}.rz-v8-profile-nav{align-items:center}.rz-v8-profile-legacy{font-size:.8rem;opacity:.8;margin-left:auto}.rz-v8-profile-mobile-records .rz-v8-record-top strong a{display:inline-block;line-height:1.4}.rz-v8-profile-history a{overflow-wrap:anywhere}.rz-v8-profile-notice{font-size:.82rem;line-height:1.6}
@media(max-width:740px){.rz-v8-profile-hero{min-height:0}.rz-v8-profile-hero-mark{opacity:.4}.rz-v8-profile-kpis{gap:8px}.rz-v8-profile-facts{gap:9px}.rz-v8-record-top{align-items:flex-start}.rz-v8-record-top>span{max-width:40%;text-align:right;white-space:normal}.rz-v8-profile-nav a{padding:10px 12px;min-height:44px}.rz-v8-profile-history{padding:12px}.rz-v8-profile-mobile-records article{padding:13px}}
@media(max-width:390px){.rz-v8-profile-hero-mark{display:none}.rz-v8-profile-facts{grid-template-columns:1fr 1fr}.rz-v8-profile-nav{gap:7px}.rz-v8-profile-nav a{flex:1 1 calc(50% - 7px);font-size:.82rem}.rz-v8-profile-kpis>div{padding:11px}.rz-v8-profile-kpis strong{font-size:1.27rem}}
[data-theme="light"] .rz-v8-profile-history th{background:#eaf1f6;color:#203549}[data-theme="light"] .rz-v8-profile-history tbody tr:hover{background:#eef3f8}[data-theme="light"] .rz-v8-profile-legacy{color:#735500}
