body:not([data-page]) .mobile-nav,
body[data-page="racing"] .mobile-nav:not(.rc-mobile-nav),
body:not([data-page="racing"]) .rc-mobile-nav { display:none; }
body[data-page="racing"] .brand-subtitle,.rc-mobile-nav.mobile-nav a:not([aria-current="page"]) { color:#60656b; }
body[data-page="racing"] .mobile-nav.rc-mobile-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media (max-width:374px) {
  .rc-mobile-nav a { padding-inline:0; }
  .rc-mobile-nav .nav-label { text-wrap:balance; }
}
#main[data-page="racing"] { width:100%; max-width:1360px; margin:0 auto; padding:0 clamp(14px,3vw,42px) 40px; }
.rc-page {
  --rc-ink:#20262a; --rc-muted:#65645d; --rc-rule:#d7d4cb; --rc-orange:#e65416; --rc-link:#aa360b; --rc-paper:#fff;
  --rc-control-bg:#efeee9; --rc-table-head:#f1f0ec; --rc-table-ink:#535750; --rc-row-rule:#e6e4de; --rc-selected-bg:#fff6ec;
  color:var(--rc-ink); font-variant-numeric:tabular-nums;
}
.rc-page * { box-sizing:border-box; }
.rc-header { margin-bottom:clamp(18px,2vw,30px); padding:25px 0 0; }
.rc-header-home { position:relative; isolation:isolate; display:flex; align-items:center; overflow:hidden; min-height:clamp(108px,11vw,154px); padding:20px clamp(12px,2vw,32px); background:#f1efe8; border-bottom:1px solid var(--rc-rule); }
.rc-track-photo { position:absolute; inset:0 0 0 auto; width:46%; z-index:-1; background:linear-gradient(90deg,#f1efe8,rgba(241,239,232,.04) 44%),url('./design-assets/images/racing-course.webp') center 56% / cover no-repeat; }
.rc-header-home .rc-heading { display:flex; align-items:center; flex-wrap:wrap; gap:7px clamp(18px,2vw,32px); max-width:72%; }
#main .rc-page h1 { margin:0; color:var(--rc-ink); font-size:clamp(2rem,3.5vw,3.25rem); letter-spacing:-.055em; line-height:1.18; }
.rc-header-home .rc-heading p:not(:empty) { margin:0; padding-left:clamp(12px,1.5vw,20px); border-left:1px solid #8d8e84; color:var(--rc-ink); font-size:clamp(.9rem,1.35vw,1.1rem); font-weight:600; }
.rc-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(14px,2vw,24px); }
.rc-card,.rc-gate,.rc-panel { border:1px solid var(--rc-rule); background:var(--rc-paper); border-radius:16px; }
.rc-card { min-width:0; overflow:hidden; }
.rc-race-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; padding:clamp(14px,2vw,28px); color:white; background:linear-gradient(120deg,#293033,#202426); }
.rc-flag { grid-area:1/1; justify-self:start; align-self:center; padding:3px 12px; background:#a73509; color:white; border-radius:4px; font-size:.91rem; font-weight:700; }
#main .rc-race-head h2,#main .rc-detail-title h2 { color:inherit; margin:0; line-height:1.25; font-size:clamp(1.3rem,2vw,1.85rem); font-weight:750; letter-spacing:-.025em; }
.rc-race-head h2 { grid-area:2/1; }
.rc-race-head h2 span { display:inline-block; max-width:100%; }
.rc-race-head p { grid-area:3/1; margin:0; font-size:clamp(.875rem,1.15vw,1rem); color:#d5d9d8; }
.rc-start { grid-area:1/2/span 3; align-self:center; border-left:1px solid #6e7272; padding-left:clamp(8px,1.5vw,21px); white-space:nowrap; font-size:clamp(1.13rem,1.6vw,1.45rem); font-weight:600; line-height:1.4; }
.rc-next-racecard { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); text-decoration:none; color:var(--rc-ink); }
.rc-next-action { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:6rem; padding:16px clamp(16px,2.2vw,32px); background:#fff2e7; }
.rc-next-action strong { display:block; font-size:clamp(1.8rem,3vw,2.6rem); line-height:1.2; font-weight:750; }
.rc-next-action div>span { display:block; margin-top:4px; font-size:1rem; line-height:1.4; color:#575048; }
.rc-next-arrow { display:grid; flex:none; place-items:center; width:3rem; height:3rem; border-radius:50%; color:white; background:var(--rc-link); }
.rc-next-racecard:focus-visible { outline-offset:-3px; }
.rc-next-racecard:focus-visible .rc-next-arrow { outline:2px solid var(--rc-ink); outline-offset:3px; }
@media(hover:hover) {
  .rc-next-racecard:hover .rc-next-action { background:#e9550b; color:#fff; }
  .rc-next-racecard:hover .rc-next-arrow { background:var(--rc-ink); }
}
.rc-horse-link { color:var(--rc-ink); font-weight:650; }
.rc-horse-link:hover,.rc-gate:hover strong { color:var(--rc-link); }
.rc-horse-link:focus-visible { outline-offset:1px; }
.rc-move { display:block; color:var(--rc-muted); font-size:.8rem; }
.rc-race-foot { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; padding:8px clamp(12px,1.5vw,22px); gap:4px 10px; }
.rc-choice span,.rc-detail-title :is(small,p),.rc-aux,.rc-data small,.rc-method { color:var(--rc-muted); }
.rc-action,.rc-back,.rc-source { color:var(--rc-link); }
.rc-race-foot .rc-action { display:inline-flex; align-items:center; min-height:44px; margin-inline-start:auto; font-size:.98rem; font-weight:650; }
.rc-gateways { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(8px,1vw,15px); }
.rc-gate { position:relative; display:flex; align-items:center; width:100%; gap:clamp(10px,1.4vw,22px); color:var(--rc-ink); text-decoration:none; padding:clamp(14px,1.75vw,25px); min-height:86px; }
.rc-gate strong { display:block; color:var(--rc-ink); font-size:clamp(1.2rem,2vw,1.75rem); font-weight:750; line-height:1.25; letter-spacing:-.025em; }
.rc-gate small { display:block; font-size:.94rem; color:var(--rc-muted); margin-top:4px; line-height:1.5; }
.rc-page .rc-arrow { flex:none; margin-left:auto; color:var(--rc-link); font-size:1.65rem; font-weight:600; }
.rc-stairs { flex:none; display:grid; place-items:center; width:2.75rem; height:2.75rem; color:var(--rc-ink); border-left:2px solid; border-bottom:2px solid; border-radius:1px; font-size:1.65rem; line-height:1; }
.rc-gate-compare { background:#ffe3ce; border-color:#efd2bc; isolation:isolate; overflow:hidden; }
.rc-gate-compare::after { content:""; position:absolute; right:-95px; bottom:-116px; z-index:-1; width:210px; height:170px; border:3px solid #bb886b; border-radius:52%; box-shadow:0 0 0 9px #fddcc5,0 0 0 11px #c99272,0 0 0 22px #fddcc5,0 0 0 24px #d1aa87; transform:rotate(-22deg); }
.rc-home-search > [role="status"] { margin:0; color:var(--rc-muted); }
.rc-home-search > [role="status"]:not(:empty) { margin-top:8px; }
.rc-search { position:relative; display:flex; width:100%; border:1px solid #908f87; border-radius:8px; background:white; align-items:stretch; }
.rc-search:focus-within { outline:2px solid var(--rc-link); outline-offset:2px; }
.rc-search input { width:100%; flex:1; border:0; background:transparent; min-width:0; min-height:44px; font-size:1rem; padding:8px 12px; }
.rc-search input::placeholder { color:var(--rc-muted); opacity:1; }
.rc-search input:focus-visible { outline:none; }
.rc-search button { display:grid; place-items:center; flex:none; width:46px; min-height:44px; padding:0; border:0; border-radius:8px; background:transparent; color:var(--rc-ink); }
.rc-suggestions { position:absolute; z-index:5; inset-block-start:calc(100% + 5px); inset-inline-start:-1px; width:min(calc(100% + 2px),28rem); overflow:hidden; border:1px solid var(--rc-rule); border-radius:8px; background:var(--rc-paper); }
.rc-suggestion-label { padding:8px 12px; color:var(--rc-muted); background:var(--rc-table-head); font-size:.85rem; }
.rc-suggestions ul { list-style:none; margin:0; padding:0; max-height:min(15rem,34dvh); overflow-y:auto; overscroll-behavior:contain; }
.rc-suggestions [role="option"] { display:flex; align-items:center; gap:12px; padding:8px 12px; min-height:44px; border-top:1px solid var(--rc-row-rule); cursor:pointer; }
.rc-suggestions strong { overflow-wrap:anywhere; }
.rc-suggestions small { margin-inline-start:auto; color:var(--rc-muted); }
.rc-suggestions [aria-selected="true"] { color:var(--rc-link); background:var(--rc-selected-bg); }
@media (hover:hover) {
  .rc-suggestions [role="option"]:hover { background:var(--rc-control-bg); }
}
.rc-magnifier { position:relative; border:2px solid currentColor; border-radius:100%; width:15px; height:15px; transform:translate(-2px,-2px); }
.rc-magnifier::after { content:""; position:absolute; width:8px; height:2px; background:currentColor; top:11px; left:10px; transform:rotate(45deg); transform-origin:left; }
.rc-back { display:inline-block; font-size:1rem; margin-bottom:5px; }
.rc-panel { padding:clamp(14px,2.4vw,32px); }
.rc-stables { max-width:1100px; margin-inline:auto; }
.rc-stables .rc-header { margin-bottom:8px; }
.rc-stables > .rc-panel { padding:0; border:0; background:transparent; }
.rs-sheet { --rs-pad:clamp(10px,2.4vw,28px); color:var(--rc-ink); }
.rs-through { margin:0 0 12px; color:var(--rc-muted); font-size:.94rem; }
.rs-controls,.rs-segments { display:flex; align-items:center; gap:9px; }
.rs-controls { justify-content:space-between; flex-wrap:wrap; margin-bottom:12px; }
.rs-controls .rc-choice { display:flex; flex-wrap:wrap; align-items:center; gap:7px; min-width:0; }
.rs-controls .rc-choice select { min-width:0; max-width:100%; }
.rs-segments div { display:inline-flex; gap:2px; padding:2px; border:1px solid var(--rc-rule); background:var(--rc-paper); border-radius:99px; }
.rs-segments button { min-height:44px; padding:5px 13px; color:var(--rc-muted); background:transparent; border:0; border-radius:99px; font-weight:650; }
.rs-segments button[aria-pressed="true"] { color:white; background:var(--rc-ink); }
.rs-segments > span { color:var(--rc-muted); font-size:.9rem; }
.rs-controls .rs-season { display:none; }
.rs-results { border:1px solid var(--rc-rule); border-radius:12px; background:var(--rc-paper); overflow:hidden; }
.rs-results table { width:100%; margin:0; border:0; border-collapse:collapse; table-layout:fixed; }
.rs-results col:first-child { width:36%; }
.rs-results :is(th,td) { padding:8px var(--rs-pad); border:0; text-align:end; vertical-align:middle; }
.rs-results th:first-child { text-align:start; }
.rs-results thead th { font-size:.92rem; background:#f2f1ec; color:var(--rc-muted); text-wrap:balance; }
.rs-results thead th span { display:inline-block; }
.rs-results tbody tr:not(.rs-total):not(:last-child) > * { border-bottom:1px solid var(--rc-rule); }
.rs-results tbody th { overflow-wrap:anywhere; font-weight:650; }
.rs-results tbody td strong { display:block; font-size:1.32rem; line-height:1.15; }
.rs-results .rs-total > * { padding-block:13px; color:white; background:#252b2d; }
.rs-results .rs-total strong { font-size:1.6rem; }
.rs-results small { display:block; margin-top:3px; color:var(--rc-muted); font-size:.82rem; line-height:1.35; font-weight:450; }
.rs-results .rs-total small { color:#e3e2db; }
.rs-method { margin-top:8px; }
.rs-method summary { width:fit-content; margin-inline-start:auto; min-height:44px; padding-block:10px; cursor:pointer; color:var(--rc-link); font-size:.9rem; }
.rs-method dl { display:grid; grid-template-columns:max-content 1fr; gap:5px 18px; margin:0; padding:10px 0; border-top:1px solid var(--rc-rule); font-size:.94rem; }
.rs-method :is(dt,dd) { margin:0; }
.rs-method dt { font-weight:650; }
@media(max-width:760px) {
  .rs-segments { display:none; }
  .rs-controls .rs-season { display:grid; }
  .rs-controls .rc-choice { display:grid; gap:3px; }
  .rs-controls { display:grid; grid-template-columns:6.45rem minmax(0,1fr); gap:10px; }
  .rs-controls .rs-sort { justify-self:end; width:fit-content; max-width:100%; }
  .rs-controls .rc-choice select { width:100%; font-size:1rem; padding-inline-start:9px; }
  #main .rs-controls select { padding-right:32px!important; background-position:right 8px center!important; background-size:20px 20px!important; }
}
@media(max-width:480px) {
  .rs-sheet { --rs-pad:7px; }
  .rs-results col:first-child { width:32%; }
  .rs-results thead th { font-size:.83rem; }
  .rs-results tbody td strong { font-size:1.15rem; }
  .rs-results .rs-total strong { font-size:1.32rem; }
  .rs-method dl { grid-template-columns:1fr; gap:2px; }
  .rs-method dt:not(:first-child) { margin-top:6px; }
  html[lang="en"] .rs-controls { grid-template-columns:1fr; }
  html[lang="en"] .rs-controls .rs-sort { width:100%; }
}
.rc-panel>.rc-card { max-width:780px; margin-top:12px; }
.rc-page-race { --rc-card-inset:clamp(12px,2.1vw,28px); max-width:1100px; margin-inline:auto; }
.rc-page-race .rc-header { padding-top:15px; margin-bottom:16px; }
#main .rc-page-race h1 { font-size:clamp(1.8rem,3vw,2.4rem); letter-spacing:-.035em; }
.rc-page-race .rc-panel { padding:0; border:0; background:transparent; }
.rc-page-race .rc-full-card { max-width:none; margin:0; }
.rc-race-nav {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(2rem,100%),1fr));
  margin:0 0 8px; padding:2px; background:var(--rc-control-bg); border-radius:8px;
}
.rc-race-nav a {
  display:grid; place-items:center; min-width:0; min-height:44px;
  padding:0 2px; border-radius:5px; text-decoration:none; color:var(--rc-ink); font-size:.91rem; font-weight:650; line-height:1.15;
}
.rc-race-nav a:hover { background:#fff; color:var(--rc-link); }
.rc-race-nav a[aria-current=page] { background:var(--brand-orange); color:#fff; }
.rc-page-race .rc-race-nav a:focus-visible { outline-offset:-3px; }
.rc-page-race .rc-race-nav a[aria-current=page]:focus-visible { outline-color:#fff; }
.rc-card-summary { padding:14px var(--rc-card-inset) 18px; color:#fff; background:#252b2d; }
.rc-card-summary-line { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:3px 12px; }
.rc-card-time { margin-inline-start:auto; color:inherit; font-size:clamp(1rem,1.7vw,1.3rem); font-weight:650; }
#main .rc-card-summary h2 { margin:9px 0 3px; color:inherit; font-size:clamp(1.2rem,2.6vw,1.85rem); font-weight:750; line-height:1.25; letter-spacing:-.025em; }
.rc-card-summary h2 span { display:inline-block; }
.rc-card-summary p { margin:0; color:#d5dada; font-size:.92rem; line-height:1.5; }
.rc-field-bar { display:flex; align-items:center; flex-wrap:wrap; gap:0 clamp(9px,1.6vw,22px); padding:0 var(--rc-card-inset); }
.rc-field-count { margin-inline-end:auto; color:var(--rc-ink); font-size:.94rem; font-weight:650; }
.rc-market-stamp,.rc-body-status { color:var(--rc-muted); font-size:.85rem; }
.rc-field-bar .rc-action { display:inline-flex; align-items:center; min-height:44px; font-size:.9rem; font-weight:600; text-underline-offset:3px; }
.rc-card-table-wrap { overflow-x:auto; }
.rc-card-table { width:100%; border-collapse:collapse; color:var(--rc-ink); font-size:1rem; line-height:1.35; }
.rc-card-table :is(th,td) { padding:5px clamp(4px,.85vw,12px); text-align:start; vertical-align:middle; }
.rc-card-table tr>:where([data-col=identity]) { padding-inline-start:var(--rc-card-inset); }
.rc-card-table tr>:where(:last-child) { padding-inline-end:var(--rc-card-inset); }
.rc-card-table thead th { padding-block:9px; border-block:1px solid #e3e1d9; background:var(--rc-table-head); color:var(--rc-table-ink); font-size:.85rem; font-weight:650; }
.rc-card-table tbody tr+tr { border-top:1px solid var(--rc-row-rule); }
.rc-card-table :is([data-col=draw],[data-col=weight],[data-col=bodyWeight],[data-col=win],[data-col=place]) { text-align:end; font-variant-numeric:tabular-nums; }
.rc-card-table [data-col=weight] small { font-size:.85em; white-space:nowrap; }
.rc-weight-unit { display:none; }
.rc-body-label { display:none; }
.rc-body-value,.rc-body-change { white-space:nowrap; }
.rc-body-unit,.rc-body-sub,.rc-body-change { font-size:.78rem; font-weight:450; color:var(--rc-muted); }
.rc-body-sub,.rc-body-change { display:block; }
.rc-card-table .rc-horse-link { display:inline-flex; align-items:center; gap:clamp(5px,.8vw,12px); min-height:44px; max-width:100%; text-decoration:none; }
.rc-runner-identity { display:inline-flex; max-width:100%; align-items:center; gap:4px; }
.rc-runner-identity .rc-horse-link { min-width:0; }
.rc-card-table .rc-card-grade { flex:none; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; min-width:25px; min-height:24px; padding:2px 3px; border:1px solid var(--rc-rule); border-radius:4px; background:var(--rc-paper); color:var(--rc-muted); font-size:.75rem; font-weight:650; line-height:1; text-decoration:none; }
.rc-card-grade small { font-size:.6875rem; font-weight:450; white-space:nowrap; }
.rc-card-table .rc-card-grade:is(.rc-grade-a,:hover) { color:var(--rc-link); background:var(--rc-selected-bg); }
.rc-card-grade:focus-visible { outline:2px solid var(--rc-link); outline-offset:1px; }
.rc-card-table .rc-horse-link:hover .rc-name { color:var(--rc-link); text-decoration:underline; text-underline-offset:3px; }
.rc-bib { flex:none; display:inline-grid; place-items:center; min-width:1.7rem; min-height:1.6rem; border-radius:4px; font-size:.88rem; font-weight:650; }
.rc-bib,.rc-field-bib { background:#f0efea; color:#444941; }
.rc-name { min-width:0; font-size:1rem; font-weight:700; overflow-wrap:anywhere; }
.rc-card-table tbody :is([data-col=win],[data-col=place]) { font-weight:650; }
.rc-placings { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.rc-placings span { white-space:nowrap; }
.rc-selected-runner { background:var(--rc-selected-bg); }
.rc-selected-runner .rc-bib { color:#fff; background:var(--rc-link); }
.rc-page-race :is(button,select,a):focus-visible { outline:2px solid var(--rc-link); outline-offset:2px; }
.rc-control-row,.rc-sources { display:flex; align-items:end; flex-wrap:wrap; gap:10px 18px; }
.rc-control-row { margin-bottom:18px; }
.rc-choice { display:grid; gap:4px; max-width:100%; }
.rc-choice span { font-size:.9rem; }
.rc-choice select { max-width:100%; font-size:1rem; width:auto; min-width:110px; }
.rc-detail-title { margin:20px 0 8px; }
.rc-detail-title h2 small { font-size:1rem; font-weight:500; }
.rc-detail-title p,.rc-method { margin:6px 0 14px; line-height:1.55; }
.rc-method { font-size:.96rem; }
.rc-message { padding:clamp(14px,2vw,24px); color:var(--rc-muted); }
.rc-message button { margin-top:10px; }
.rc-status:empty,.rc-race-foot:empty { display:none; }
.rc-table-scroll { overflow-x:auto; }
.rc-data { border-collapse:collapse; width:100%; color:inherit; margin:12px 0; font-size:.96rem; line-height:1.4; }
.rc-data caption { padding:3px 0 8px; text-align:left; color:var(--rc-muted); }
.rc-data th,.rc-data td { padding:9px 7px; text-align:left; border-bottom:1px solid var(--rc-rule); }
.rc-data th { background:#f2f1ec; }
.rc-data .rc-compared-runner { background:#fff0e3; }
.rc-compared-runner td:first-child { box-shadow:inset 3px 0 var(--rc-link); font-weight:700; padding-inline-start:8px; }
.rc-compared-runner a { display:inline-block; padding-block:4px; }
.rc-compared-runner a small { color:var(--rc-link); text-decoration:underline; text-underline-offset:3px; }
.rc-data small { display:block; font-size:.84rem; }
.rc-data .rc-horse-link { display:inline-flex; flex-direction:column; justify-content:center; min-height:44px; white-space:nowrap; }
.rc-grade-method { margin-block:8px; color:var(--rc-ink); font-size:.9rem; }
.rc-grade-method summary { width:fit-content; padding-block:9px; color:var(--rc-link); font-weight:650; cursor:pointer; }
.rc-grade-method :is(p,ul) { margin:4px 0 8px; line-height:1.55; }
.rc-grade-method ul { padding-inline-start:1.5em; }
.rc-comparison .rc-compact-meta { display:none; }
.rc-comparison .rc-grade-col { width:1%; text-align:end; white-space:nowrap; }
.rc-comparison [data-run-grade] { display:inline-flex; gap:6px; align-items:center; justify-content:center; min-width:42px; min-height:38px; padding:4px 7px; border:1px solid var(--rc-rule); border-radius:6px; color:var(--rc-ink); background:var(--rc-paper); font-weight:700; }
.rc-comparison [data-run-grade="A"] { color:var(--rc-link); border-color:#e6b99a; background:#fff0e3; }
.rc-comparison [data-run-grade]::after { content:''; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg) translateY(-2px); }
.rc-comparison [data-run-grade][aria-expanded=true]::after { transform:rotate(225deg) translate(-1px,-1px); }
.rc-comparison [data-run-grade]:focus-visible,.rc-grade-method summary:focus-visible { outline:2px solid var(--rc-link); outline-offset:2px; }
.rc-comparison .rc-grade-row td { padding:12px; background:#faf8f4; }
.rc-grade-row p { margin:4px 0; }
.rc-grade-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); gap:8px 16px; margin:8px 0 0; }
.rc-grade-facts dt { color:var(--rc-muted); font-size:.84rem; }
.rc-grade-facts dd { margin:2px 0; font-size:.9rem; }
@media(max-width:650px) {
  .rc-comparison .rc-wide-col { display:none; }
  .rc-comparison .rc-compact-meta { display:block; font-size:.75rem; }
  .rc-comparison .rc-horse-link { min-height:30px; }
  .rc-comparison [data-run-grade] { min-height:44px; }
}
.rc-follow-button,.rc-follow-remove { min-height:44px; padding:0 5px; border:0; background:transparent; color:var(--rc-link); font:inherit; font-size:.88rem; font-weight:650; cursor:pointer; white-space:nowrap; }
.rc-follow-button[aria-pressed=true] { color:#4c534c; }
.rc-follow-button:hover,.rc-follow-remove:hover,.rc-follow-note summary:hover strong { text-decoration:underline; text-underline-offset:3px; }
.rc-follow-button:focus-visible,.rc-follow-note :is(button,summary,a):focus-visible { outline:2px solid var(--rc-link); outline-offset:-2px; }
.rc-card-table .rc-follow-row>td { padding:0; text-align:start; }
.rc-follow-note { margin:0; border-inline-start:3px solid var(--rc-link); background:#fbf4eb; color:var(--rc-ink); }
.rc-follow-note summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 12px; min-height:44px; cursor:pointer; list-style:none; }
.rc-follow-note summary::-webkit-details-marker { display:none; }
.rc-follow-note summary::after { content:''; flex:0 0 7px; height:7px; margin-inline-end:4px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.rc-follow-note[open] summary::after { transform:rotate(225deg); }
.rc-follow-label { display:inline-block; margin-inline-end:9px; color:var(--rc-link); font-size:.78rem; font-weight:650; }
.rc-follow-note summary strong { font-size:.94rem; }
.rc-follow-note summary small { display:block; margin-top:3px; color:#5b5c54; font-size:.78rem; }
.rc-follow-evidence { padding:2px 12px 7px; }
.rc-follow-evidence dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:6px 18px; margin:0; padding:8px 0; border-top:1px solid var(--rc-rule); }
.rc-follow-evidence dt { color:#55584f; font-size:.8rem; }
.rc-follow-evidence dd { margin:0; font-size:.9rem; }
.rc-follow-actions { display:flex; align-items:center; flex-wrap:wrap; gap:0 14px; }
.rc-follow-actions .rc-source { display:inline-flex; align-items:center; min-height:44px; color:var(--rc-link); font-size:.85rem; }
.rc-follow-error { color:#842f11; white-space:normal; }
.rc-page-odds [data-rc-navigation] { position:sticky; top:0; z-index:3; background:var(--bg,#f7f6f3); }
.rc-page-odds .rc-race-nav { margin-bottom:4px; }
.rc-page-odds { max-width:1280px; }
.rc-field {
  container-type:inline-size;
  --rc-horse-1:#785843; --rc-horse-2:#ae3a0e; --rc-horse-3:#296f9f; --rc-horse-4:#66508e;
  --rc-horse-5:#7c6c22; --rc-horse-6:#407764; --rc-horse-7:#944a68; --rc-horse-8:#376382;
  --rc-horse-9:#76609a; --rc-horse-10:#087e82; --rc-horse-11:#60743f; --rc-horse-12:#a35239;
  --rc-horse-13:#63688f; --rc-horse-14:#725845;
}
.rc-field button { color:inherit; border:0; padding:0; min-width:0; min-height:0; background:transparent; font:inherit; cursor:pointer; box-shadow:none; }
.rc-field [hidden] { display:none!important; }
.rc-field-tools,.rc-field-inspect,.rc-field-table-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.rc-field-tools { flex-wrap:wrap; padding:7px var(--rc-card-inset); border-bottom:1px solid var(--rc-rule); }
.rc-field-segment { display:inline-flex; gap:2px; align-items:stretch; padding:2px; border-radius:7px; background:var(--rc-control-bg); }
.rc-field-segment button { padding:5px 10px; border-radius:5px; min-height:32px; font-size:.86rem; line-height:1.2; font-weight:620; }
.rc-field-segment button[aria-pressed=true] { color:var(--rc-paper); background:var(--rc-ink); }
.rc-field-ranges button[aria-pressed=true] { color:var(--rc-ink); background:var(--rc-paper); }
.rc-field-pane { min-width:0; padding:9px var(--rc-card-inset) 10px; }
.rc-field-heading { display:flex; align-items:center; flex-wrap:wrap; gap:2px 5px; min-height:25px; font-size:.9rem; }
.rc-field-heading small,.rc-field-heading [data-field-hint],.rc-field-note,.rc-field-status,.rc-field-table-head span { font-size:.75rem; color:var(--rc-muted); }
.rc-field-heading :is([data-field-hint],[data-unpin]) { margin-inline-start:auto; }
.rc-field-heading [data-unpin],.rc-field-status button { color:var(--rc-link); font-weight:640; font-size:.8rem; }
.rc-field-plot { position:relative; height:246px; touch-action:pan-y; user-select:none; }
.rc-field-plot>svg { display:block; width:100%; height:100%; cursor:crosshair; }
.rc-field-plot>p { display:grid; place-items:center; height:100%; margin:0; font-size:.9rem; color:var(--rc-muted); }
.rc-field-tick { fill:var(--rc-muted); font-size:11px; font-variant-numeric:tabular-nums; }
.rc-field-grid { stroke:var(--rc-row-rule); stroke-width:1; }
.rc-field-gap { fill:var(--rc-control-bg); }
.rc-field-cursor { stroke:var(--rc-ink); stroke-width:1; stroke-dasharray:3 4; pointer-events:none; }
.rc-line-numbers { position:absolute; inset:0; pointer-events:none; }
.rc-field .rc-line-number {
  position:absolute; transform:translate(-50%,-50%); display:grid; place-items:center; pointer-events:auto; touch-action:pan-y;
  background:var(--rc-paper); border:1.5px solid var(--horse); border-radius:5px; color:var(--rc-ink);
  font-size:12px; font-weight:700; line-height:1; font-variant-numeric:tabular-nums;
}
.rc-field .rc-line-number[data-emphasis=dim] { color:var(--rc-muted); border-color:var(--rc-row-rule); }
.rc-field .rc-line-number[data-emphasis=active] { color:var(--rc-paper); background:var(--horse); z-index:1; }
.rc-field-inspect { border-top:1px solid var(--rc-row-rule); margin-top:3px; font-size:.82rem; color:var(--rc-muted); }
.rc-field-inspect output { margin-left:5px; font-weight:650; color:var(--rc-ink); }
.rc-field-inspect button,.rc-field-detail { width:33px; min-height:32px; font-size:1.35rem; }
.rc-field-inspect button:disabled { opacity:.35; cursor:default; }
.rc-field-note { display:flex; flex-wrap:wrap; gap:2px 12px; }
.rc-field-status:has(button[hidden]):has(span:empty) { display:none; }
.rc-field-roster { min-width:0; border-top:1px solid var(--rc-rule); }
.rc-field-table-head { padding:9px var(--rc-card-inset); }
#main .rc-field-table-head h2 { margin:0; color:var(--rc-ink); font-size:1rem; }
.rc-field-roster table { width:100%; border-collapse:collapse; color:inherit; font-size:.88rem; }
.rc-field-roster :is(td,th) { border:0; padding:0 4px; background:transparent; text-align:end; white-space:nowrap; }
.rc-field-roster thead th { height:28px; background:var(--rc-table-head); color:var(--rc-table-ink); font-size:.76rem; }
.rc-field-roster tbody tr { border-top:1px solid var(--rc-row-rule); }
.rc-field-roster :is(td,th):first-child { text-align:start; padding-inline-start:var(--rc-card-inset); }
.rc-field-roster :is(td,th):last-child { width:29px; padding-inline:0 2px; }
.rc-field-roster [data-bib] { display:inline-flex; align-items:center; gap:6px; min-height:40px; width:100%; font-weight:650; text-align:start; white-space:normal; }
.rc-field-bib { flex:none; position:relative; display:grid; place-items:center; width:21px; height:22px; border-radius:4px; font-size:.78rem; }
.rc-field-bib::after { content:''; position:absolute; bottom:1px; left:4px; right:4px; border-bottom:2px solid var(--horse); }
.rc-field [data-pattern=broken] .rc-field-bib::after { border-bottom-style:dashed; }
.rc-field [data-price] { font-weight:720; }
.rc-field [data-change] { color:var(--rc-muted); font-size:.79rem; }
.rc-field tr.rc-emphasised { background:var(--rc-selected-bg); }
.rc-field .rc-field-detail { display:grid; place-items:center; width:100%; color:var(--rc-muted); text-decoration:none; }
@media (pointer:coarse) {
  .rc-field .rc-line-number::before { content:''; position:absolute; inset:calc(0px - var(--hit-y)) calc(0px - var(--hit-x)); }
  .rc-field-inspect button,.rc-field-roster [data-bib],.rc-field .rc-field-detail,.rc-field-segment button { min-height:44px; }
}
@container (min-width:735px) {
  .rc-field-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,32%); }
  .rc-field-pane { padding-block:13px 16px; }
  .rc-field-plot { height:clamp(335px,32cqw,367px); }
  .rc-field-roster { border-top:0; border-inline-start:1px solid var(--rc-rule); }
  .rc-field-roster [data-bib] { min-height:32px; }
  .rc-field-table-head span { display:none; }
}
.rc-odds-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:3px 10px; padding:9px var(--rc-card-inset); background:#252b2d; color:#fff; }
.rc-odds-summary>div { display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 10px; font-weight:650; }
.rc-odds-summary>div>span>span { display:inline-block; }
.rc-odds-summary time { font-weight:650; }
.rc-odds-summary p { grid-column:1/-1; margin:0; color:#d5dada; font-size:.83rem; }
.rc-quote-foot { display:flex; align-items:center; flex-wrap:wrap; gap:3px 12px; padding:6px var(--rc-card-inset); color:var(--rc-muted); font-size:.84rem; }
.rc-quote-foot button,.rc-quote-foot .rc-action { color:var(--rc-link); }
.rc-quote-foot { border-top:1px solid var(--rc-rule); padding-block:9px; }
.rc-quote-foot span { margin-inline-end:auto; }
.rc-quote-horse { display:flex; align-items:center; gap:6px; width:fit-content; max-width:100%; min-height:32px; color:var(--rc-ink); text-decoration:none; line-height:1.2; }
.rc-quote-horse:hover { color:var(--rc-link); }
.rc-quote-horse:focus-visible { outline-offset:0; }
html:has(.rc-odds-dialog[open]) { overflow:hidden; }
.rc-odds-dialog { position:fixed; inset:0; margin:auto; padding:0; width:min(680px,calc(100% - 24px)); max-width:none; max-height:85vh; max-height:85dvh; color:var(--rc-ink); background:var(--rc-paper); border:1px solid var(--rc-rule); border-radius:14px; overflow:hidden; }
.rc-odds-dialog[open] { display:flex; flex-direction:column; }
.rc-odds-dialog::backdrop { background:rgb(26 31 33 / .55); }
.rc-history-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--rc-rule); }
#main .rc-history-head h2 { margin:0; font-size:1.13rem; line-height:1.35; }
.rc-history-head p { margin:3px 0 0; color:var(--rc-muted); font-size:.85rem; }
.rc-history-head button { flex:none; min-height:44px; padding:5px 12px; }
.rc-history-body { overflow:auto; overscroll-behavior:contain; padding:0 16px; }
.rc-history-body .rc-message { padding:20px 0; }
.rc-history-body .rc-message p { margin:0; }
.rc-market-switch { flex:none; display:flex; align-self:flex-start; gap:2px; min-width:0; margin:0; padding:2px; border:0; border-radius:8px; background:var(--rc-control-bg); }
.rc-odds-dialog .rc-market-switch { margin:12px 16px 0; }
.rc-market-switch label { display:block; position:relative; margin:0; cursor:pointer; }
.rc-market-switch span { display:grid; place-items:center; min-width:4.5rem; min-height:40px; padding:0 12px; border-radius:6px; color:var(--rc-ink); font-weight:650; }
.rc-market-switch input:checked + span { background:var(--rc-ink); color:#fff; }
.rc-market-switch input:focus-visible + span { outline:2px solid var(--rc-link); outline-offset:2px; }
.rc-chart { margin:18px 0; }
.rc-chart figcaption { margin-bottom:7px; font-weight:650; }
.rc-chart>div { position:relative; display:flex; flex-direction:column; justify-content:space-between; height:120px; font-size:.85rem; color:var(--rc-muted); }
.rc-chart svg { position:absolute; top:0; left:3em; height:100%; width:calc(100% - 3em); color:var(--rc-orange); background:repeating-linear-gradient(to bottom,transparent 0 calc(25% - 1px),#e9e6dd calc(25% - 1px) 25%); }
.rc-chart footer { display:flex; justify-content:space-between; margin-left:2.65em; font-size:.85rem; color:var(--rc-muted); }
.rc-sources { font-size:.92rem; }
@media(max-width:800px) {
  .rc-card-table tr.rc-follow-row { display:block; padding:0; }
  .rc-card-table tr.rc-follow-row>td { display:block; padding:0; }
  .rc-page-race { --rc-card-inset:clamp(9px,2.2vw,16px); }
  .rc-page-race .rc-header { padding-top:8px; margin-bottom:12px; }
  .rc-card-summary { padding:10px 13px 12px; }
  .rc-field-count { font-size:.86rem; }
  .rc-market-stamp,.rc-body-status,.rc-field-bar .rc-action { font-size:.8rem; }
  .rc-card-table,.rc-card-table :is(thead,tbody) { display:block; }
  .rc-card-table { --rc-grid:minmax(var(--rc-identity-min,0px),1.75fr) minmax(0,.72fr) minmax(0,1.05fr) minmax(0,.72fr); }
  .rc-card-table:has(.rc-card-grade) { --rc-identity-min:8.5rem; }
  .rc-card-table tr { display:grid; grid-template-columns:var(--rc-grid); align-items:center; gap:2px clamp(4px,1.4vw,12px); padding:7px var(--rc-card-inset); }
  .rc-card-table thead { border-block:1px solid #e3e1d9; background:var(--rc-table-head); }
  .rc-card-table thead tr { padding-block:7px; }
  .rc-card-table tr>:is(th,td) { min-width:0; border:0; padding:0; overflow-wrap:anywhere; }
  .rc-card-table thead th { background:transparent; font-size:.82rem; }
  .rc-card-table [data-col=identity] { grid-area:1/1; }
  .rc-card-table [data-col=form] { grid-area:2/1; }
  .rc-card-table [data-col=draw] { grid-area:1/2; text-align:center; }
  .rc-card-table [data-col=weight] { grid-area:2/2; text-align:center; }
  .rc-card-table [data-col=jockey] { grid-area:1/3; }
  .rc-card-table [data-col=trainer] { grid-area:2/3; }
  .rc-card-table [data-col=win] { grid-area:1/4; }
  .rc-card-table [data-col=place] { grid-area:2/4; }
  .rc-card-table tbody td { font-size:.93rem; }
  .rc-card-table tbody :is([data-col=form],[data-col=weight],[data-col=trainer],[data-col=place]) { font-size:.85rem; color:#4e534f; }
  .rc-card-table .rc-horse-link { position:relative; min-height:26px; gap:5px; }
  .rc-card-table .rc-card-grade { position:relative; white-space:nowrap; }
  .rc-card-table .rc-horse-link::after { content:""; position:absolute; inset:-8px 0 -10px; }
  .rc-name { font-size:.94rem; }
  .rc-bib { min-width:1.48rem; min-height:1.5rem; font-size:.82rem; }
  .rc-weight-unit { display:inline; margin-inline-start:2px; font-size:.85em; }
  .rc-card-table .rc-move { display:inline-block; font-size:.74rem; white-space:nowrap; }
}
@media(max-width:359px) {
  .rc-runner-identity:has(.rc-card-grade),.rc-card-table .rc-runner-identity:has(.rc-card-grade) .rc-horse-link { gap:2px; }
  .rc-runner-identity:has(.rc-card-grade) .rc-bib { min-width:18px; }
  .rc-card-table .rc-card-grade { min-width:24px; }
}
@media(min-width:460px) and (max-width:800px) {
  .rc-card-table[data-has-body-weight] { --rc-grid:minmax(var(--rc-identity-min,0px),1.7fr) minmax(0,.64fr) minmax(0,.92fr) minmax(0,1fr) minmax(0,.7fr); }
  .rc-card-table [data-col=bodyWeight] { grid-area:1/3/span 2; align-self:stretch; display:flex; flex-direction:column; justify-content:space-around; align-items:center; text-align:center; }
  .rc-card-table[data-has-body-weight] :is([data-col=jockey],[data-col=trainer]) { grid-column:4; }
  .rc-card-table[data-has-body-weight] :is([data-col=win],[data-col=place]) { grid-column:5; }
}
@media(max-width:459px) {
  .rc-card-table thead [data-col=bodyWeight] { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .rc-card-table tbody [data-col=bodyWeight] { grid-area:3/1/auto/-1; display:flex; align-items:baseline; gap:6px; margin-top:2px; font-size:.85rem; text-align:start; }
  .rc-body-label { display:inline; color:var(--rc-muted); font-size:.8rem; }
}
@media(max-width:760px) {
  #main[data-page="racing"] { padding-left:12px; padding-right:12px; }
  .rc-header-home { min-height:100px; }
  .rc-header-home .rc-heading { display:block; max-width:83%; }
  .rc-header-home .rc-heading p:not(:empty) { margin-top:5px; border:0; padding:0; }
  .rc-track-photo { width:38%; }
  .rc-next-racecard { grid-template-columns:minmax(0,1fr); }
  .rc-card,.rc-panel,.rc-gate { border-radius:12px; }
  .rc-gate { min-height:72px; }
}
@media(max-width:420px) {
  .rc-header-home { padding:14px 6px; }
  .rc-header-home .rc-heading { max-width:100%; }
  .rc-track-photo { width:28%; opacity:.42; }
  .rc-start { grid-area:1/2; border:0; padding:0; font-size:1.05rem; }
  .rc-race-head h2,.rc-race-head p { grid-column:1/-1; }
  .rc-race-head { padding:12px; }
  .rc-data th,.rc-data td { padding:7px 3px; font-size:.84rem; }
}
@media(max-width:900px) {
  .rc-layout .rc-gateways { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:6px; }
  .rc-gate-stables { grid-column:1/-1; }
  .rc-gateways .rc-gate { min-height:46px; padding:8px 9px; gap:4px; }
  .rc-gateways .rc-gate strong { font-size:1.04rem; }
  .rc-gateways .rc-gate small,.rc-gateways .rc-stairs { display:none; }
  .rc-gateways .rc-gate-compare::after { right:-150px; bottom:-138px; opacity:.35; }
  .rc-gateways .rc-arrow { font-size:1.1rem; }

}
@media(max-width:360px) {
  .rc-gateways .rc-arrow { display:none; }
}

.rc-page-horses { --rh-inset:clamp(14px,2.4vw,30px); max-width:1080px; margin-inline:auto; }
.rc-page-horses>.rc-panel { padding:0; border:0; background:transparent; }
.rc-horse-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 14px; }
.rc-horse-tools .rc-back { flex-shrink:0; display:inline-flex; align-items:center; min-height:44px; margin:0; font-weight:600; }
.rc-horse-tools .rc-search { width:min(310px,55%); }
.rc-page-horses :is(button,a,select,summary):focus-visible { outline:2px solid var(--rc-link); outline-offset:2px; }
.rh-profile { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:12px 28px; padding:clamp(22px,3.4vw,42px) var(--rh-inset); border-radius:14px 14px 0 0; color:#fff; background:#242a2c; }
#main .rh-identity h1 { color:#fff; font-size:clamp(2rem,4.4vw,3.45rem); font-weight:800; line-height:1.16; letter-spacing:-.035em; }
.rh-names { margin:6px 0 0; color:#f3bd98; font-weight:650; font-size:.86rem; letter-spacing:.045em; overflow-wrap:anywhere; }
.rh-bio { margin:10px 0 0; font-size:.92rem; color:#e0e3df; }
.rh-totals { display:grid; grid-template-columns:minmax(max-content,1.65fr) repeat(3,minmax(0,1fr)); align-items:end; gap:5px; margin:0; }
.rh-totals>div { display:flex; flex-direction:column-reverse; align-items:center; }
.rh-totals>div:first-child { align-items:flex-start; }
.rh-totals dt { color:#e3e1da; line-height:1.4; font-size:.86rem; }
.rh-totals dd { margin:0 0 2px; font-weight:700; font-size:clamp(1.4rem,2.3vw,2.1rem); line-height:1.15; }
.rh-coverage { margin:12px 0 0; color:#d0d6d3; font-size:.81rem; }
.rh-coverage small { display:inline-block; font-size:inherit; }
.rh-form { display:flex; flex-wrap:wrap; align-items:center; gap:6px clamp(10px,2.6vw,32px); padding:10px var(--rh-inset); background:#fff; border:1px solid var(--rc-rule); border-top:0; border-radius:0 0 14px 14px; }
.rh-form>div:first-child { flex:none; }
.rh-form strong { display:block; font-size:.93rem; }
.rh-form small { display:block; color:var(--rc-muted); font-size:.76rem; }
.rh-form-places { flex:1 1 185px; min-width:0; display:flex; gap:clamp(3px,1vw,10px); }
.rh-form-places button { display:grid; place-items:center; padding:0; width:clamp(30px,5vw,44px); min-width:0; min-height:40px; border:0; border-radius:5px; color:var(--rc-ink); background:#f2f1eb; font-size:1.06rem; font-weight:700; font-variant-numeric:tabular-nums; }
.rh-form-places .rh-placed { color:#8a310a; background:#ffead7; }
.rh-form-places button:hover { background:#deddd3; color:var(--rc-ink); }
.rh-declared { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; margin:8px 0 0; color:#50544e; font-size:.85rem; }
.rh-declared strong { margin-inline-end:6px; color:var(--rc-ink); }
.rh-declared>div>span { display:inline-block; margin-inline-start:5px; }
.rh-declared button { padding:0; min-height:36px; border:0; background:transparent; color:var(--rc-link); font-size:inherit; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.rh-trackwork { margin-top:clamp(14px,2.2vw,24px); padding:12px var(--rh-inset) 5px; border:1px solid var(--rc-rule); border-radius:12px; background:var(--rc-paper); }
.rh-trackwork-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:3px 10px; }
#main .rh-trackwork h2 { margin:0; font-size:clamp(1.15rem,2.2vw,1.45rem); line-height:1.35; }
.rh-trackwork small,.rh-trackwork-summary dt { color:var(--rc-muted); font-size:.85rem; }
.rh-trackwork-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:10px 0 0; }
.rh-trackwork-summary>div+div { padding-inline-start:14px; border-inline-start:1px solid var(--rc-rule); }
.rh-trackwork-summary dd { margin:0; }
.rh-trackwork-summary strong { font-size:1.16rem; }
.rh-trackwork :is(dd,li) small { display:block; }
.rh-trackwork-details>summary { width:fit-content; min-height:44px; padding-block:10px; color:var(--rc-link); font-weight:600; cursor:pointer; }
.rh-trackwork-details:not([open]) .rh-trackwork-hide,.rh-trackwork-details[open] .rh-trackwork-show { display:none; }
.rh-trackwork-list { margin:0; padding:0; list-style:none; }
.rh-trackwork-list li { display:grid; grid-template-columns:minmax(92px,.44fr) minmax(0,1fr) auto; gap:4px 12px; padding-block:8px; border-top:1px solid var(--rc-rule); }
.rh-trackwork-list time { color:var(--rc-muted); font-size:.88rem; }
.rh-trackwork-time { text-align:right; }
.rh-trackwork-source { display:block; margin:4px 0 9px; }
.rh-trackwork>.rh-notice { margin:8px 0 10px; }
@media(max-width:520px) {
  .rh-trackwork-list li { grid-template-columns:5.4rem minmax(0,1fr); gap:3px 6px; }
  .rh-trackwork-time { grid-column:2; text-align:left; }
}
#rh-history-title { scroll-margin-top:12px; }
.rh-profile:not(:has(+.rh-form)) { border-radius:14px; }
.rh-history { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; margin-top:clamp(24px,4vw,44px); }
.rh-history-title { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; padding-block:4px; }
#main .rh-history h2 { margin:0; font-size:clamp(1.35rem,2.3vw,1.85rem); line-height:1.32; letter-spacing:-.025em; }
.rh-history-title>span { color:var(--rc-muted); font-size:.94rem; }
.rh-history-title .rh-rank-method { margin:0; font-size:.85rem; }
.rh-rank-method[open] { flex-basis:100%; }
.rh-rank-method summary { padding-block:3px; min-height:24px; }
.rh-history-title>[data-filter-description] { flex-basis:100%; font-size:.86rem; color:var(--rc-ink); }
.rh-history-title>[data-filter-description]:empty { display:none; }
.rh-run summary { list-style:none; cursor:pointer; }
.rh-run summary::-webkit-details-marker { display:none; }
.rh-filter-toggle { grid-column:2; grid-row:1; cursor:pointer; color:var(--rc-ink); display:flex; align-items:center; gap:6px; align-self:start; justify-self:end; padding:4px 10px; min-height:44px; border:1px solid var(--rc-rule); border-radius:7px; background:#fff; font-weight:600; font-size:.88rem; }
.rh-filter-count:empty { display:none; }
.rh-filter-grid { grid-column:1/-1; width:100%; min-width:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; align-items:end; gap:8px 12px; margin-top:8px; padding:12px var(--rh-inset); border:1px solid var(--rc-rule); border-radius:8px; background:#fff; }
.rh-filter-grid[hidden],[data-run-peek][hidden],[data-run-list][hidden] { display:none; }
.rh-filter-grid label { display:grid; gap:3px; min-width:0; font-size:.83rem; color:var(--rc-muted); }
#main .rh-filter-grid select { width:100%; min-width:0; min-height:44px; padding:6px 28px 6px 10px; padding-right:28px!important; background-position:right 5px center!important; background-size:19px 19px!important; font-size:1rem; color:var(--rc-ink); }
.rh-filter-grid button,.rh-notice button { width:fit-content; min-height:40px; padding:0 6px; border:0; background:transparent; color:var(--rc-link); font-weight:600; }
.rh-history>[data-run-list],.rh-history>.rh-peek,.rh-history>.rh-notice { grid-column:1/-1; min-width:0; }
.rh-peek { margin-top:10px; scroll-margin-top:12px; border:1px solid #cda88d; border-radius:12px; background:#fff; overflow:clip; }
.rh-peek-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 10px; padding:3px var(--rh-inset); font-size:.88rem; }
.rh-peek-head button { padding:0; min-height:44px; border:0; color:var(--rc-link); background:transparent; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.rh-history>[data-run-list] { margin-top:10px; border:1px solid var(--rc-rule); background:#fff; border-radius:12px; overflow:clip; }
.rh-columns,.rh-run>summary { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.85fr) minmax(62px,.58fr) 13px; align-items:center; gap:6px 14px; padding-inline:var(--rh-inset); }
.rh-columns { padding-block:9px; background:#eeede7; color:#51554e; font-size:.81rem; font-weight:650; }
.rh-run { margin:0; padding:0; border-top:1px solid #e0ded6; }
.rh-run>summary { min-height:62px; padding-block:8px; color:var(--rc-ink); }
.rh-run>summary:hover { background:#f5f4ef; }
.rh-run[open]>summary { background:#fff0e3; }
.rc-page-horses .rh-run>summary:focus-visible { outline-offset:-3px; }
.rh-when,.rh-where { display:grid; gap:1px; min-width:0; }
.rh-when time,.rh-where strong { font-size:1rem; line-height:1.35; font-weight:650; }
.rh-when small,.rh-where small,.rh-place small { color:#565951; font-size:.82rem; font-weight:500; }
.rh-place { line-height:1.2; }
.rh-run-grade-label { display:block; margin-top:2px; white-space:nowrap; }
.rh-place b { font-size:1.22rem; }
.rh-place.rh-placed b { color:var(--rc-link); }
.rh-chevron { display:inline-block; justify-self:center; width:8px; height:8px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
.rh-filter-toggle[aria-expanded="true"]>.rh-chevron,details[open]>summary>.rh-chevron { transform:translateY(2px) rotate(225deg); }
.rh-run summary { scroll-margin-top:12px; }
.rh-run-body { padding:12px var(--rh-inset) 16px; background:#fcfaf5; border-top:1px solid #e9ded0; }
.rh-run-grade { margin:10px 0 12px; font-size:.88rem; line-height:1.45; }
#main .rh-run-grade h3 { margin:0 0 3px; font-size:1rem; }
.rh-run-grade p,.rh-run-grade ul { margin:2px 0; }
.rh-run-grade ul { padding-inline-start:1.3em; color:var(--rc-muted); }
.rh-run-follow { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:0 6px; margin-bottom:12px; padding-inline-end:6px; border-inline-start:3px solid var(--rc-link); border-radius:3px; background:#fbf4eb; }
.rh-run-follow .rc-follow-note { border:0; background:transparent; }
.rh-run-follow .rc-follow-label { display:block; margin:0 0 2px; }
.rh-run-follow>.rc-follow-button { align-self:start; margin-block:4px; }
.rh-run-follow .rc-follow-error { grid-column:1/-1; padding:4px 8px; }
.rh-conditions,.rh-running { margin:0; color:#51544e; font-size:.85rem; line-height:1.55; }
.rh-conditions:empty { display:none; }
.rh-measures { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 10px; margin:12px 0; }
.rh-measures.rh-benchmarks { grid-template-columns:repeat(2,minmax(0,1fr)); padding-top:10px; border-top:1px solid #e7e2d9; }
.rh-measures dt { color:#5c6058; font-size:.81rem; line-height:1.4; }
.rh-measures dd { margin:3px 0 0; font-size:clamp(.98rem,1.55vw,1.18rem); font-weight:650; line-height:1.35; }
.rh-measures dd small { display:block; margin-top:2px; color:#52564e; font-size:.81rem; font-weight:450; }
.rh-running strong { margin-inline-start:5px; color:var(--rc-ink); }
.rh-cross { margin-top:12px; padding-top:12px; border-top:1px solid var(--rc-rule); font-size:.88rem; }
#main .rh-cross h3 { margin:0 0 4px; font-size:.9rem; font-weight:650; }
.rh-cross strong { display:block; color:var(--rc-ink); font-size:1.12rem; }
.rh-cross p { margin:3px 0; color:#50544e; line-height:1.5; }
.rh-cross .rh-text-link { display:inline-flex; align-items:center; min-height:40px; }
.rh-text-link { color:var(--rc-link); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.rh-notice { color:var(--rc-muted); font-size:.9rem; }
.rh-record .rh-notice,.rh-record .rh-notice button { color:#fff; }
[data-run-list]>.rh-notice { padding:0 var(--rh-inset); }
.rh-directory { padding:var(--rh-inset); border:1px solid var(--rc-rule); background:#fff; border-radius:14px; }
#main .rh-directory h1 { font-size:clamp(1.8rem,3vw,2.6rem); letter-spacing:-.035em; }
.rh-directory p { margin:8px 0; color:var(--rc-muted); }
.rh-horse-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr)); column-gap:20px; max-height:min(18rem,40vh); overflow:auto; padding:0; margin:8px 0 0; list-style:none; }
.rh-horse-list:empty { display:none; }
.rh-horse-list li { border-top:1px solid var(--rc-rule); }
.rh-horse-list a { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:7px 2px; min-height:44px; color:var(--rc-ink); text-decoration:none; }
.rh-horse-list a:hover { color:var(--rc-link); }
.rh-horse-list a:focus-visible { outline-offset:-2px; }
.rh-horse-list small { color:var(--rc-muted); }
@media(max-width:700px) {
  .rc-horse-tools { flex-wrap:wrap; gap:6px; margin-block:6px 10px; }
  .rc-horse-tools .rc-back { font-size:.88rem; }
  .rc-horse-tools .rc-search { flex:1 0 min(15.5rem,100%); max-width:100%; }
  .rc-horse-tools .rc-search input { padding-inline:8px 0; font-size:.89rem; }
  .rc-horse-tools .rc-search button { width:34px; }
  .rh-profile { grid-template-columns:1fr; gap:14px; padding-block:18px 14px; }
  .rh-record { border-top:1px solid #515957; padding-top:12px; }
  .rh-totals { grid-template-columns:1.7fr repeat(3,1fr); }
  .rh-coverage { margin-top:8px; }
  .rh-form { gap:12px; }
  .rh-form-places { justify-content:space-between; }
  .rh-form-places button { flex:1; max-width:42px; }
  .rh-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rh-columns,.rh-run>summary { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(45px,.65fr) 10px; column-gap:8px; }
  .rh-table-time { display:none; }
  .rh-measures { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rh-measures:not(.rh-benchmarks)>div:last-child { grid-column:1/-1; }
  .rh-measures:not(.rh-benchmarks)>div:last-child dd small { display:inline-block; margin-inline-start:8px; }
}
@media(max-width:430px) {
  html[lang="en"] .rh-filter-grid { grid-template-columns:1fr; }
}
@media(max-width:370px) {
  .rc-page-horses { --rh-inset:11px; }
  .rh-where strong,.rh-when time { font-size:.92rem; }
  .rh-form { gap:8px; }
}

/* Paper racing artwork: desktop only; retain the compact mobile interface. */
.rc-desktop-start,.rc-desktop-races { display:none; }
@media (min-width:1000px) {
  .rc-header-home { margin-top:24px; margin-bottom:24px; min-height:0; aspect-ratio:2132/574; overflow:visible; border:0; border-radius:28px; padding:5% 5% 2%; background:transparent; }
  .rc-header-home .rc-track-photo { inset:0; width:100%; background:url('./design-assets/racing-paper/hero-racing-transparent.webp') center/100% 100% no-repeat; }
  .rc-header-home .rc-heading { display:block; max-width:64%; }
  #main .rc-header-home h1 { color:white; font-size:clamp(48px,5.6vw,82px); letter-spacing:.01em; }
  .rc-header-home h1::after { content:''; display:block; width:54px; height:5px; border-radius:5px; margin:18px 0; background:#ff671b; }
  .rc-header-home .rc-heading p:not(:empty) { padding:0; border:0; color:white; font-size:clamp(16px,1.5vw,22px); line-height:1.6; }
  .rc-layout { gap:24px; }
  .rc-layout>.rc-card { border:0; border-radius:22px; background:#eae7e0; }
  .rc-next-racecard { grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr); }
  .rc-race-head { grid-template-columns:auto minmax(0,1fr) auto; gap:6px 22px; padding:24px 28px; color:var(--rc-ink); background:linear-gradient(115deg,#e5e1d8,#f0ede7); }
  .rc-race-head .rc-flag { grid-area:1/1/3/2; background:#c44206; padding:7px 12px; }
  .rc-race-head h2 { grid-area:1/2; align-self:end; }
  .rc-race-head p { grid-area:2/2; color:#605d57; }
  .rc-race-head .rc-start { grid-area:1/3/3/4; border-color:#b5aea3; font-size:28px; }
  .rc-next-action { border-radius:22px; color:white; background:linear-gradient(110deg,#f95307,#f69d65); padding:20px 32px; }
  .rc-next-action div>span { color:white; }
  .rc-next-arrow { background:transparent; font-size:28px; }
  .rc-next-racecard:hover .rc-next-action { background:linear-gradient(110deg,#da4300,#f18b4f); }
  .rc-gateways { gap:16px; }
  .rc-gateways .rc-gate { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; min-height:290px; aspect-ratio:1.1; padding:24px; background:#f3eee7 url('./design-assets/racing-paper/card-odds-trend.webp') center/cover; border:1px solid #e1d9cf; border-radius:22px; box-shadow:inset 0 0 0 2px #ffffffa0,0 5px 10px #38302412; }
  .rc-gateways .rc-gate-compare { background-image:url('./design-assets/racing-paper/card-class-comparison.webp'); }
  .rc-gateways .rc-gate-horse { background-image:url('./design-assets/racing-paper/card-horse-record.webp'); }
  .rc-gateways .rc-gate-stables { background-image:url('./design-assets/racing-paper/card-stable-statistics.webp'); }
  .rc-gate-compare::after,.rc-gateways .rc-stairs { display:none; }
  .rc-gateways strong { font-size:clamp(22px,2vw,29px); padding-right:30px; }
  .rc-gateways small { color:#343735; font-size:16px; line-height:1.5; max-width:95%; margin-top:8px; }
  .rc-gateways .rc-arrow { position:absolute; right:18px; top:24px; display:grid; place-items:center; margin:0; width:30px; height:30px; font-size:22px; line-height:1; color:white; background:linear-gradient(#ff8c29,#ed5000); border-radius:50%; box-shadow:0 1px 3px #9e48184d; }
  .rc-gate-heading { display:block; position:static; }
  .rc-gate-horse .rc-search { margin-top:auto; box-shadow:0 3px 8px #51453525; }
  .rc-gate:focus-visible { outline:3px solid var(--rc-link); outline-offset:4px; }
  .rc-page-race { max-width:none; }
  .rc-page-race>.rc-panel>.rc-full-card { border:0; border-radius:0; background:transparent; overflow:visible; }
  .rc-page-race:not(.rc-page-odds)>[data-rc-navigation] { display:none; }
  .rc-card-overview { display:grid; grid-template-columns:minmax(0,2.45fr) minmax(240px,1fr); gap:24px; margin:20px 0 24px; }
  .rc-card-summary { display:flex; flex-direction:column; justify-content:center; min-height:190px; border-radius:24px; padding:28px 36px; background:#292d2e url('./design-assets/racing-paper/race-summary.jpg') center/cover; }
  .rc-card-summary-line strong { background:#ff620d; color:white; padding:7px 16px; border-radius:7px; }
  .rc-card-summary .rc-card-time { display:none; }
  #main .rc-card-summary h2 { margin-top:18px; font-size:30px; }
  .rc-card-summary p { margin-top:8px; font-size:18px; color:white; }
  .rc-desktop-start { display:flex; flex-direction:column; justify-content:center; gap:12px; padding:28px 40px; border:1px solid var(--rc-rule); border-radius:24px; font-size:21px; background:#ffffff60; }
  .rc-desktop-start time { color:#ff6215; font-weight:750; font-size:clamp(44px,4.7vw,66px); line-height:1.1; }
  .rc-desktop-races { display:block; margin:0 0 24px; }
  .rc-desktop-races .rc-race-nav { gap:8px; padding:0 0 10px; background:none; }
  .rc-desktop-races .rc-race-nav a { position:relative; min-height:46px; border:1px solid #ddd6cd; border-radius:12px; background:#fff; font-size:18px; font-weight:650; }
  .rc-desktop-races .rc-race-nav a[aria-current=page] { background:var(--brand-orange); border-color:var(--brand-orange); color:white; font-weight:750; }

  .rc-page-race .rc-field-bar { padding:0 2px 12px; }
  .rc-page-race .rc-field-count { font-size:20px; }
  .rc-page-race .rc-card-table { font-size:18px; }
  .rc-page-race .rc-card-table :is(th,td) { padding-block:16px; }
  .rc-page-race .rc-card-table thead th { font-size:16px; font-weight:500; border:0; }
  .rc-page-race .rc-card-table tbody tr:nth-child(even) { background:#eeece780; }
  .rc-page-race .rc-card-table tbody tr+tr { border:0; }
}
.rc-desktop-chart-title { display:none; }
@media (min-width:1000px) {
  .rc-page-odds { max-width:none; }
  .rc-page-odds .rc-race-nav { gap:8px; padding:0; margin:16px 0 24px; background:none; border:0; border-radius:0; }
  .rc-page-odds .rc-race-nav a { min-height:46px; border:1px solid #ddd6cd; background:#fff; font-size:18px; border-radius:12px; }
  .rc-page-odds .rc-race-nav a[aria-current=page] { background:var(--brand-orange); border-color:var(--brand-orange); color:white; }

  .rc-page-odds .rc-odds-summary { position:relative; isolation:isolate; overflow:hidden; grid-template-columns:minmax(0,1fr) auto minmax(180px,.75fr); align-items:center; padding:24px 32px; margin-bottom:28px; border-radius:18px; color:#20262a; background:#e8e2d9; }
  .rc-page-odds .rc-odds-summary::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#e8e2d9 35%,#e8e2d9dd 60%,#e8e2d955),url('./design-assets/racing-paper/race-summary.jpg') right center/cover; }
  .rc-page-odds .rc-odds-summary>div { font-size:26px; grid-column:1; }
  .rc-page-odds .rc-odds-summary>p { grid-column:1; grid-row:2; color:#373b3b; font-size:18px; }
  .rc-page-odds .rc-odds-summary>time { grid-column:2; grid-row:1/3; border-left:1px solid #b3a99e; padding-left:30px; margin-left:20px; font-size:36px; }
  .rc-page-odds .rc-field { position:relative; }
  .rc-page-odds .rc-field-layout { display:grid; grid-template-columns:minmax(340px,39%) minmax(0,1fr); align-items:stretch; gap:20px; }
  .rc-page-odds .rc-field-roster { grid-column:1; grid-row:1; padding:12px; border:1px solid #e1dcd5; border-radius:16px; background:#fff9; }
  .rc-page-odds .rc-field-table-head { padding:4px 8px 16px; }
  #main .rc-page-odds .rc-field-table-head h2 { font-size:26px; }
  .rc-page-odds .rc-field-roster table { font-size:17px; }
  .rc-page-odds .rc-field-roster thead th { height:38px; font-size:15px; }
  .rc-page-odds .rc-field-roster [data-bib] { min-height:40px; gap:10px; }
  .rc-page-odds .rc-field-roster tbody tr { border:0; }
  .rc-page-odds .rc-field-roster tbody tr:nth-child(even) { background:#eeebe680; }
  .rc-page-odds .rc-field-roster :is(td,th):first-child { padding-left:8px; }
  .rc-page-odds .rc-field-bib { width:28px; height:30px; font-size:20px; background:#efede7; }
  .rc-page-odds .rc-field-pane { position:relative; grid-column:2; grid-row:1; display:flex; flex-direction:column; padding:20px 22px; border:10px solid #fff; border-top-width:60px; border-radius:16px; background:linear-gradient(125deg,#202a2e,#293235); color:#f6f5f2; --rc-muted:#bec5c5; --rc-row-rule:#536065; --rc-ink:#f6f5f2; --rc-control-bg:#394449; --rc-paper:#263238; box-shadow:0 0 0 1px #e1dcd5; }
  #main .rc-desktop-chart-title { display:block; position:absolute; top:-48px; left:12px; margin:0; color:#20262a; font-size:26px; line-height:36px; }
  .rc-page-odds .rc-field-heading { margin-bottom:76px; font-size:18px; }
  .rc-page-odds .rc-field-heading small { font-size:15px; }
  .rc-page-odds .rc-field-tools { position:absolute; z-index:1; top:110px; left:calc(39% + 42px); right:32px; padding:0 0 14px; border-bottom:1px solid #a0a9aa; }
  .rc-page-odds .rc-field-segment { background:#edeae4; }
  .rc-page-odds .rc-field-segment button { padding:8px 18px; font-size:16px; color:#20262a; }
  .rc-page-odds .rc-field-segment button[aria-pressed=true] { background:var(--brand-orange); color:white; }
  .rc-page-odds .rc-field-plot { flex:1; min-height:330px; height:380px; }
  .rc-page-odds .rc-field-plot>p { color:#f6f5f2; font-size:19px; text-align:center; background:repeating-linear-gradient(0deg,transparent 0 49px,#ffffff15 49px 50px); border:1px dashed #ffffff30; }
  .rc-page-odds .rc-field-inspect { padding-top:12px; font-size:16px; }
  .rc-page-odds .rc-field-note { font-size:14px; }
  .rc-page-odds .rc-quote-foot { border:0; justify-content:center; gap:12px 30px; padding:22px; font-size:17px; }
}
.rc-desktop-time-label { display:none; }
@media (min-width:1000px) {
  .rc-page-odds .rc-desktop-time-label { display:block; font-size:17px; line-height:1.5; font-weight:500; }
  .rc-page-odds .rc-field {
    --rc-horse-1:#b58a52; --rc-horse-2:#ef743a; --rc-horse-3:#48a8d2; --rc-horse-4:#a68bd7;
    --rc-horse-5:#b4b458; --rc-horse-6:#65b799; --rc-horse-7:#dd81a2; --rc-horse-8:#61a2bc;
    --rc-horse-9:#ae97ce; --rc-horse-10:#51c0bc; --rc-horse-11:#99b46a; --rc-horse-12:#dc9a65;
    --rc-horse-13:#9da5d0; --rc-horse-14:#c6a389;
  }
}

/* Touch-first racing pages: clear single-column reading order, generous targets. */
@media (max-width:999px) {
  #main[data-page="racing"] { padding-inline:16px; padding-bottom:20px; }
  .rc-header-home { min-height:208px; padding:32px 22px 24px; margin:16px 0 20px; border:0; border-radius:22px; background:#202729; overflow:hidden; }
  .rc-header-home .rc-track-photo { inset:0; width:100%; opacity:1; background:linear-gradient(90deg,#202729e8 5%,#20272970 65%,#20272920),url('./design-assets/racing-paper/hero-racing-transparent.webp') 62% center/auto 100% no-repeat; }
  .rc-header-home .rc-heading { display:block; max-width:100%; }
  #main .rc-header-home h1 { color:#fff; font-size:36px; letter-spacing:.02em; }
  .rc-header-home h1::after { content:''; display:block; width:40px; height:4px; margin:16px 0; background:#ff671b; border-radius:4px; }
  .rc-header-home .rc-heading p:not(:empty) { border:0; padding:0; margin:0; max-width:240px; color:#fff; font-size:15px; line-height:1.7; }
  .rc-layout { gap:20px; }
  .rc-layout>.rc-card { border:1px solid #ddd6cd; border-radius:20px; }
  .rc-next-racecard { grid-template-columns:1fr; }
  .rc-race-head { padding:20px; gap:12px; background:#ede9e1; color:#20262a; }
  .rc-race-head .rc-flag { font-size:14px; padding:6px 10px; background:#bc420d; border-radius:6px; }
  .rc-race-head .rc-start { grid-area:1/2; padding:0; border:0; font-size:24px; }
  #main .rc-race-head h2 { grid-column:1/-1; font-size:23px; line-height:1.5; }
  .rc-race-head p { grid-column:1/-1; font-size:15px; color:#625a52; }
  .rc-next-action { min-height:78px; padding:16px 20px; color:#fff; background:linear-gradient(110deg,#f35406,#f18a46); }
  .rc-next-action strong { font-size:26px; }
  .rc-next-action div>span { color:#fff; font-size:15px; }
  .rc-next-arrow { background:#ffffff20; width:44px; height:44px; }
  .rc-layout .rc-gateways { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .rc-gateways .rc-gate { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; grid-column:auto; min-height:216px; padding:16px 14px; border-radius:18px; border:1px solid #ddd5cb; gap:8px; background:#f2ece4 url('./design-assets/racing-paper/card-odds-trend.webp') center/cover; box-shadow:inset 0 0 0 2px #ffffff80,0 3px 8px #342a1d0c; }
  .rc-gateways .rc-gate-compare { background-image:url('./design-assets/racing-paper/card-class-comparison.webp'); }
  .rc-gateways .rc-gate-horse { background-image:url('./design-assets/racing-paper/card-horse-record.webp'); }
  .rc-gateways .rc-gate-stables { background-image:url('./design-assets/racing-paper/card-stable-statistics.webp'); }
  .rc-gateways .rc-gate strong { font-size:20px; line-height:1.4; padding-right:0; }
  .rc-gateways .rc-gate small { display:none; }
  .rc-gateways .rc-stairs,.rc-gate-compare::after { display:none; }
  .rc-gateways .rc-arrow { display:grid; place-items:center; width:32px; height:32px; margin:0; background:#f56812; color:#fff; border-radius:50%; font-size:22px; }
  .rc-gate-horse .rc-gate-heading { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:0; }
  .rc-gate-horse .rc-search { margin-top:auto; }
  .rc-gate-horse .rc-search input { font-size:16px; padding:8px; }
  .rc-gate-horse .rc-search button { width:44px; }
  .rc-page-race .rc-header { margin:8px 0 16px; }
  .rc-page-race .rc-back { min-height:36px; display:inline-flex; align-items:center; }
  .rc-page-race [data-rc-navigation] { position:sticky; top:0; z-index:5; background:var(--bg,#f7f6f3); padding-block:6px; }
  .rc-page-race .rc-race-nav { display:flex; gap:8px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; padding:4px 2px 10px; margin:0; border-radius:0; background:none; }
  .rc-page-race .rc-race-nav a { flex:0 0 52px; min-height:46px; border:1px solid #ddd6cd; border-radius:12px; font-size:16px; background:#fff; }
  .rc-page-race .rc-race-nav a[aria-current=page] { color:white; background:var(--brand-orange); border-color:var(--brand-orange); }
  .rc-page-race .rc-full-card { border-radius:18px; }
  .rc-card-summary { padding:20px; background:#292d2e url('./design-assets/racing-paper/race-summary.jpg') center/cover; }
  .rc-card-summary-line { gap:12px; font-size:15px; }
  .rc-card-time { font-size:24px; }
  #main .rc-card-summary h2 { font-size:23px; line-height:1.45; margin:14px 0 8px; }
  .rc-card-summary p { font-size:15px; line-height:1.6; }
  .rc-page-race .rc-field-bar { padding:12px 14px; gap:4px 12px; }
  .rc-field-count { font-size:16px; }
  .rc-field-bar .rc-action { min-height:44px; font-size:15px; }
  .rc-card-table tr { padding-block:14px; row-gap:8px; }
  .rc-card-table tbody tr:nth-child(even) { background:#f5f3ef; }
  .rc-card-table .rc-horse-link { min-height:34px; }
  .rc-card-table .rc-horse-link::after { inset:-5px 0; }
  .rc-card-table tbody [data-col=bodyWeight] { margin-top:5px; }
  .rc-page-odds .rc-odds-summary { padding:20px 16px; gap:10px; background:#ece5db; color:#20262a; }
  .rc-page-odds .rc-odds-summary>div { font-size:19px; line-height:1.5; }
  .rc-page-odds .rc-odds-summary time { font-size:24px; }
  .rc-page-odds .rc-odds-summary p { color:#625a52; font-size:15px; }
  .rc-page-odds .rc-field-layout { display:block; }
  .rc-page-odds .rc-field-tools { display:grid; grid-template-columns:1fr; gap:10px; padding:16px; }
  .rc-page-odds .rc-field-segment { display:flex; width:100%; border-radius:12px; padding:3px; }
  .rc-page-odds .rc-field-segment button { flex:1; min-height:44px; padding:8px 12px; border-radius:9px; font-size:16px; }
  .rc-page-odds .rc-field-segment button[aria-pressed=true] { background:var(--brand-orange); color:white; }
  .rc-page-odds .rc-field-pane { padding:16px 12px; }
  .rc-page-odds .rc-field-heading { font-size:17px; gap:6px; }
  .rc-page-odds [data-field-hint] { flex-basis:100%; margin:0; font-size:13px; }
  .rc-page-odds .rc-field-plot { height:310px; }
  .rc-page-odds .rc-field-plot>p { font-size:16px; text-align:center; line-height:1.6; padding:18px; }
  .rc-page-odds .rc-field-inspect { font-size:14px; padding-block:8px; gap:4px; }
  .rc-page-odds .rc-field-inspect>div:last-child { display:flex; gap:8px; }
  .rc-page-odds .rc-field-inspect button { width:44px; min-height:44px; background:#efede7; border-radius:10px; font-size:25px; }
  .rc-page-odds .rc-field-roster { border-inline-start:0; }
  .rc-page-odds .rc-field-table-head { padding:20px 14px 12px; }
  #main .rc-page-odds .rc-field-table-head h2 { font-size:22px; }
  .rc-page-odds .rc-field-table-head span { display:none; }
  .rc-page-odds .rc-field-roster table { font-size:15px; }
  .rc-page-odds .rc-field-roster thead th { font-size:13px; height:40px; }
  .rc-page-odds .rc-field-roster [data-bib] { min-height:54px; gap:7px; }
  .rc-page-odds .rc-field-bib { width:24px; height:28px; font-size:16px; }
  .rc-page-odds .rc-field-detail { min-width:44px; min-height:54px; }
  .rc-page-odds .rc-field-roster tbody tr:nth-child(even) { background:#f5f3ef; }
  .rc-page-odds .rc-quote-foot { padding:12px 16px; gap:8px; }
  .rc-page-odds .rc-quote-foot .rc-action { display:flex; align-items:center; min-height:44px; font-size:15px; }
}
@media (min-width:600px) and (max-width:999px) {
  .rc-gateways .rc-gate { min-height:260px; }
  .rc-header-home { min-height:260px; }
}
@media (max-width:359px) {
  #main[data-page="racing"] { padding-inline:12px; }
  .rc-gateways .rc-gate { padding:14px 10px; min-height:206px; }
  .rc-gateways .rc-gate strong { font-size:18px; }
  .rc-page-odds .rc-field-roster :is(th,td) { padding-inline:2px; }
  .rc-page-odds .rc-field-roster :is(th,td):first-child { padding-left:6px; }
}
@media (max-width:999px) {
  .rc-gateways .rc-gate strong { text-wrap:balance; }
  .rc-gateways .rc-gate:not(.rc-gate-stables)>span:not(.rc-arrow):not(.rc-stairs) { min-height:2.8em; font-size:20px; }
  .rc-gateways .rc-gate-stables { grid-column:1 / -1; min-height:96px; aspect-ratio:auto; flex-direction:row; align-items:center; justify-content:space-between; background-image:linear-gradient(90deg,#f2ece4 20%,#f2ece4e8 58%,#f2ece430),url('./design-assets/racing-paper/card-stable-statistics.webp'); background-size:cover,180px auto; background-position:center,right 48%; background-repeat:no-repeat; }
  .rc-gateways .rc-gate-stables .rc-arrow { flex:none; }
  .rc-page-race .rc-card-table thead { position:sticky; top:72px; z-index:2; }
}
/* Keep a readable orange action area during hover, keyboard focus and touch. */
.rc-page .rc-next-racecard:is(:hover,:focus-visible,:active) .rc-next-action { background:linear-gradient(110deg,#dc4b08,#bb420d); color:#fff; }
.rc-page .rc-next-racecard:is(:hover,:focus-visible,:active) .rc-next-action :is(strong,div>span) { color:#fff; }
/* Market and time-range choices use the same capsule treatment on both sizes. */
.rc-page-odds .rc-field-segment { border-radius:999px; padding:4px; gap:4px; background:#eeece7; }
.rc-page-odds .rc-field-segment button { border-radius:999px; min-height:44px; padding:8px 16px; }
.rc-market-switch { border-radius:999px; padding:4px; gap:4px; background:#eeece7; }
.rc-market-switch label span { border-radius:999px; min-height:44px; padding:8px 16px; }
.rc-market-switch input:checked + span { background:var(--brand-orange); color:#fff; }

/* Shared racing return link: circular arrow with a separate text label. */
.rc-page .rc-back { display:inline-flex; align-items:center; gap:12px; min-height:44px; max-width:100%; margin-bottom:12px; color:var(--rc-ink); text-decoration:none; line-height:1.4; }
.rc-back-icon { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; border:1px solid var(--rc-rule); border-radius:50%; background:var(--rc-paper); color:var(--brand-orange); }
.rc-back-icon .ob-icon { width:20px; height:20px; }
.rc-page .rc-back:focus-visible { outline:2px solid var(--brand-orange); outline-offset:4px; border-radius:24px; }
@media (hover:hover) { .rc-page .rc-back:hover .rc-back-icon { border-color:var(--brand-orange); background:var(--rc-selected-bg); } }

/* Horse quote selection stays aligned with the whole row. */
.rc-page .rc-field-roster [data-bib],.rc-page .rc-field-roster [data-bib][aria-pressed=true] { background:transparent; color:var(--rc-ink); border:0; border-radius:0; box-shadow:none; padding:8px 0; min-height:48px; gap:8px; }
.rc-page .rc-field-roster tr.rc-emphasised { background:#eeece7; }
.rc-page .rc-field-roster tr.rc-emphasised>th { box-shadow:inset 3px 0 var(--brand-orange); }
.rc-page .rc-field-roster .rc-field-bib { width:26px; height:28px; background:var(--rc-paper); border-radius:5px; }
/* Comparison: controls, rankings, and contextual inline evidence. */
.rc-page-compare>[data-rc-output] { padding:0; border:0; background:transparent; }
.rc-compare-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:24px; align-items:start; }
.rc-compare-settings,.rc-compare-results,.rc-compare-method { border:1px solid var(--rc-rule); border-radius:20px; background:var(--rc-paper); overflow:hidden; }
.rc-compare-settings { padding:24px; }
#main .rc-compare-settings h2 { margin:0 0 20px; font-size:1.2rem; border-left:4px solid var(--brand-orange); padding-left:12px; }
.rc-compare-settings .rc-control-row { display:grid; gap:20px; }
.rc-compare-settings select { width:100%; min-width:0; min-height:48px; }
.rc-compare-results .rc-detail-title { margin:0; padding:24px; background:#eeece7 url('./design-assets/racing-paper/race-summary.jpg') right center/cover; color:white; }
#main .rc-compare-results .rc-detail-title h2 { color:inherit; font-size:1.4rem; }
.rc-compare-results .rc-detail-title p { margin:8px 0 0; }
.rc-compare-results .rc-data { margin:0; }
.rc-compare-results .rc-data td,.rc-compare-results .rc-data th { padding:16px 12px; }
.rc-comparison .rc-insight-trigger[data-run-grade] { display:flex; width:100%; justify-content:space-between; gap:12px; padding:0; min-height:44px; border:0; border-radius:0; background:transparent; color:var(--rc-ink); text-align:left; font:inherit; font-weight:700; }
.rc-comparison .rc-insight-trigger::after { display:none; }
.rc-expand-chevron { flex:0 0 8px; height:8px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.rc-insight-trigger[aria-expanded=true] .rc-expand-chevron { transform:rotate(225deg); }
.rc-grade-badge { display:inline-grid; place-items:center; width:36px; height:36px; border:1px solid var(--rc-rule); border-radius:8px; font-weight:700; }
.rc-grade-badge[data-grade=A] { color:var(--rc-link); border-color:var(--brand-orange); }
.rc-insight-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
#main .rc-insight-head h3 { margin:0; font-size:1.05rem; }
.rc-insight-head a { color:var(--rc-link); min-height:44px; display:inline-flex; align-items:center; white-space:nowrap; }
.rc-run-insights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.rc-run-insights>div+div { border-left:1px solid var(--rc-rule); padding-left:20px; }
#main .rc-run-insights h4 { margin:0 0 8px; font-size:1rem; }
.rc-run-insights strong { display:block; font-size:1.25rem; margin-bottom:8px; }
.rc-run-insights p { font-size:1rem; line-height:1.6; margin:4px 0; }
.rc-compare-method { grid-column:1/-1; padding:20px 24px; line-height:1.65; }
.rc-compare-method>summary { cursor:pointer; font-weight:700; min-height:44px; align-content:center; }
.rc-compare-method .rc-grade-method { font-size:1rem; }
@media(max-width:999px) {
 .rc-compare-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
 .rc-compare-settings { padding:20px; }
 .rc-compare-settings .rc-control-row { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:12px; }
 .rc-compare-results .rc-detail-title { padding:20px; }
 .rc-run-insights { grid-template-columns:1fr; gap:16px; }
 .rc-run-insights>div+div { border-left:0; border-top:1px solid var(--rc-rule); padding:16px 0 0; }
}
@media(max-width:650px) {
 .rc-page-compare .rc-comparison thead { display:none; }
 .rc-page-compare .rc-comparison,.rc-page-compare .rc-comparison tbody { display:block; }
 .rc-page-compare .rc-run-summary { display:grid; grid-template-columns:1fr auto; padding:16px 20px; gap:4px 12px; border-bottom:1px solid var(--rc-rule); }
 .rc-page-compare .rc-run-summary td { border:0; padding:0; font-size:1rem; }
 .rc-page-compare .rc-run-summary td:first-child { grid-column:1; grid-row:1; color:var(--rc-muted); }
 .rc-page-compare .rc-run-summary td:first-child::before { content:attr(data-label) ' '; }
 .rc-page-compare .rc-run-summary td:nth-child(2) { grid-column:1/-1; grid-row:2; }
 .rc-page-compare .rc-run-summary td:nth-child(3) { grid-column:1/-1; grid-row:3; }
 .rc-page-compare .rc-run-summary td:nth-child(5) { grid-column:1/-1; grid-row:4; }
 .rc-page-compare .rc-run-summary td:nth-child(5)::before { content:attr(data-label) '：'; }
 .rc-page-compare .rc-run-summary .rc-grade-col { grid-column:2; grid-row:1; width:auto; }
 .rc-page-compare .rc-grade-col::before { content:'評級 '; }
 .rc-page-compare .rc-grade-badge { width:28px; height:28px; }
 .rc-page-compare .rc-grade-row:not([hidden]) { display:block; }
 .rc-page-compare .rc-grade-row>td { display:block; padding:20px; border-bottom:1px solid var(--rc-rule); }
 .rc-page-compare .rc-insight-trigger[data-run-grade] { font-size:1.2rem; }
 .rc-page-compare .rc-wide-col { display:none; }
}

.rc-page-compare .rc-compare-results .rc-detail-title p { color:white; }
@media(max-width:650px) { .rc-compare-settings .rc-control-row { grid-template-columns:minmax(0,1fr); } }

/* Stable overview: lead with the metric, keep scope secondary. */
.rs-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:24px 0 36px; }
.rs-summary-card { position:relative; isolation:isolate; overflow:hidden; padding:28px; border:1px solid #e0dbd2; border-radius:24px; background:linear-gradient(125deg,#fffaf3,#eee9e1); }
.rs-summary-transfer { background:linear-gradient(125deg,#fff9f1,#f8e4ce); }
.rs-summary-card::after { content:''; position:absolute; z-index:-1; width:240px; height:160px; right:-140px; bottom:-110px; border:1px solid #ffffffb0; border-radius:50%; box-shadow:0 0 0 30px #ffffff18,0 0 0 31px #ffffff80,0 0 0 62px #ffffff18; transform:rotate(-25deg); }
#main .rs-summary-card h2 { margin:0; font-size:clamp(1.25rem,2vw,1.65rem); font-weight:750; line-height:1.4; }
.rs-summary-scope { margin:8px 0 20px; color:#65645d; font-size:1rem; }
.rs-summary-value { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; }
.rs-summary-value strong { font-size:clamp(2.4rem,4vw,3.5rem); font-weight:750; line-height:1.15; }
.rs-summary-transfer .rs-summary-value strong { color:#bc420d; }
.rs-summary-value>span { padding-left:20px; border-left:1px solid #b8b1a6; font-size:1.05rem; }
.rs-individual-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
#main .rs-individual-head h2 { border-left:5px solid var(--brand-orange); padding-left:14px; font-size:1.5rem; }
.rs-individual-head .rs-sort { display:flex; align-items:center; gap:10px; }
.rs-individual-head select { width:auto; min-height:44px; }
.rs-results { border-radius:20px; }
.rs-results :is(th,td) { padding-block:16px; }
.rs-results th:not(:first-child),.rs-results td { text-align:center; }
.rs-results tbody td strong { font-size:1.5rem; }
.rs-results small { font-size:.95rem; }
.rs-sorted-transfer :is(th,td):nth-child(2),.rs-sorted-debut :is(th,td):nth-child(3) { background:#eeece7; }
.rs-sorted-transfer thead th:nth-child(2),.rs-sorted-debut thead th:nth-child(3) { color:var(--rc-link); box-shadow:inset 0 -3px var(--brand-orange); }
.rs-method { margin-top:24px; padding:12px 24px; border:1px solid var(--rc-rule); border-radius:20px; background:#fff; }
.rs-method summary { width:auto; margin:0; color:var(--rc-ink); font-size:1rem; font-weight:650; }
@media(max-width:760px) {
 .rs-controls { display:flex; justify-content:flex-end; }
 .rs-overview { gap:14px; margin:20px 0 28px; }
 .rs-summary-card { padding:20px; border-radius:20px; }
 .rs-individual-head { align-items:flex-start; flex-direction:column; gap:14px; }
 .rs-individual-head .rs-sort { width:100%; }
 .rs-individual-head select { flex:1; min-width:0; }
 .rs-results tbody td strong { font-size:1.25rem; }
}
@media(max-width:540px) {
 .rs-overview { grid-template-columns:1fr; }
 .rs-summary-value strong { font-size:2.6rem; }
 .rs-summary-scope { margin-bottom:14px; }
 .rs-results :is(th,td) { padding-block:14px; }
}

/* Keep season choices visible on mobile as a single segmented control. */
@media(max-width:760px) {
 .rc-stables .rs-controls { display:block; }
 .rc-stables .rs-controls .rs-season { display:none; }
 .rc-stables .rs-segments { display:flex; width:100%; gap:12px; }
 .rc-stables .rs-segments>span { flex:none; font-size:1rem; }
 .rc-stables .rs-segments>div { display:flex; flex:1; min-width:0; padding:4px; gap:4px; border-radius:999px; }
 .rc-stables .rs-segments button { flex:1 1 0; min-width:0; min-height:44px; padding:8px 4px; font-size:.9375rem; white-space:nowrap; }
}

.rc-field-method { margin:24px 0 0; padding:12px 20px; border:1px solid var(--rc-rule); border-radius:20px; background:var(--rc-paper); color:var(--rc-ink); line-height:1.6; }
.rc-field-method summary { min-height:44px; font-weight:650; }
.rc-field-method li+li { margin-top:8px; }
.rc-field-method [data-field-gap]:empty { display:none; }
.rc-field-roster thead [data-selected-head] { white-space:normal; max-width:5em; line-height:1.35; }
html[lang=en] .rc-page-compare .rc-grade-col::before { content:'Grade '; }

@media(max-width:650px) {
 .rc-page .rc-field-roster table { table-layout:fixed; }
 .rc-roster-horse-col { width:40%; } .rc-roster-first-col { width:14%; } .rc-roster-price-col { width:16%; } .rc-roster-change-col { width:23%; } .rc-roster-action-col { width:7%; }
 .rc-page .rc-field-roster :is(th,td) { padding:12px 4px; vertical-align:middle; }
 .rc-page .rc-field-roster :is(th,td):first-child { padding-left:12px; }
 .rc-page .rc-field-roster :is(th,td):last-child { padding:0 4px 0 0; }
 .rc-page .rc-field-roster thead th { font-size:12px; line-height:1.45; height:54px; white-space:normal; }
 .rc-page .rc-field-roster [data-bib],.rc-page .rc-field-roster [data-bib][aria-pressed=true] { padding:0; min-height:44px; gap:8px; }
 .rc-page .rc-field-roster [data-bib]>span:last-child { word-break:normal; overflow-wrap:anywhere; font-size:14px; line-height:1.5; }
 .rc-page .rc-field-roster .rc-field-bib { flex:0 0 24px; width:24px; height:28px; font-size:14px; }
 .rc-page .rc-field-roster td { font-size:14px; }
 .rc-page .rc-field-roster [data-change] { font-size:12px; }
}

/* Compact mobile hero: left-aligned meeting details and a fuller jockey crop. */
.rc-meeting-mobile { display:none; }
@media(max-width:999px) {
 .rc-header-home { min-height:190px; padding:20px; align-items:flex-start; }
 .rc-header-home .rc-track-photo { background:linear-gradient(90deg,#202729f0 0%,#202729bf 40%,#20272915 78%),url('./design-assets/racing-paper/hero-racing-transparent.webp') 82% center/auto 100% no-repeat; }
 .rc-header-home .rc-heading { max-width:72%; }
 #main .rc-header-home h1 { font-size:28px; line-height:1.3; letter-spacing:0; }
 .rc-header-home h1::after { display:none; }
 .rc-header-home .rc-heading p:not(:empty) { margin-top:20px; max-width:none; }
 .rc-meeting-desktop { display:none; }
 .rc-meeting-mobile { display:grid; gap:3px; }
 .rc-meeting-label { font-size:13px; font-weight:400; color:#e1dcd3; }
 .rc-meeting-mobile>strong { font-size:20px; line-height:1.5; font-weight:700; white-space:nowrap; }
 .rc-meeting-location { font-size:14px; line-height:1.5; font-weight:400; }
 .rc-meeting-location>span { padding-inline:7px; color:#ff9b62; }
}
@media(min-width:600px) and (max-width:999px) {
 .rc-header-home { min-height:210px; }
}
