/* Header search: suggestions from the third character, grouped by Horses, Jockeys and Trainers. */
.site-search{position:relative;overflow:visible}
.site-search input{border-radius:.7rem 0 0 .7rem}
.site-search input::-webkit-search-cancel-button{cursor:pointer}
.site-search button{cursor:pointer;border-radius:0 .7rem .7rem 0}
.site-search:focus-within{box-shadow:0 0 0 3px rgba(37,99,168,.28)}
.site-search-panel{position:absolute;top:calc(100% + .5rem);right:0;z-index:300;width:min(46rem,calc(100vw - 2rem));max-height:min(32rem,calc(100dvh - 7rem));overflow:auto;padding:.85rem;border:1px solid #dfe6ef;border-radius:16px;background:#fff;box-shadow:0 22px 50px rgba(15,23,42,.2);color:#0f172a;font-family:Inter,system-ui,sans-serif;text-align:left}
.site-search-panel[hidden]{display:none}
.ssp-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.ssp-group{min-width:0;padding:.35rem;border-radius:12px;background:#f6f8fb}
.ssp-group h3{display:flex;align-items:center;justify-content:space-between;gap:.4rem;margin:0 0 .3rem;padding:.25rem .4rem;color:#475569;font-size:.68rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.ssp-group h3 span{min-width:1.5rem;padding:.1rem .45rem;border-radius:999px;background:#e2e8f0;color:#334155;font-size:.68rem;letter-spacing:0;text-align:center}
.ssp-group[data-kind="horse"] h3 span{background:#dcfce7;color:#166534}
.ssp-group[data-kind="jockey"] h3 span{background:#dbeafe;color:#1e40af}
.ssp-group[data-kind="trainer"] h3 span{background:#fde8e8;color:#9b1c1c}
.ssp-item{display:block;padding:.45rem .5rem;border-radius:9px;color:inherit;text-decoration:none}
.ssp-item strong{display:block;overflow:hidden;font-size:.84rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.ssp-item span{display:block;overflow:hidden;color:#64748b;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}
.ssp-item mark{background:#fef08a;color:inherit;border-radius:2px}
.ssp-item:hover{background:#fff;box-shadow:inset 0 0 0 1px #c7d6ea}
.ssp-item[aria-selected="true"]{background:#fff;box-shadow:inset 3px 0 0 #2563a8,inset 0 0 0 1px #c7d6ea}
.ssp-none{margin:.2rem .5rem .5rem;color:#94a3b8;font-size:.76rem}
.ssp-all{display:block;margin-top:.2rem;padding:.4rem .5rem;border-radius:9px;color:#2563a8;font-size:.74rem;font-weight:700;text-decoration:none}
.ssp-all:hover,.ssp-all[aria-selected="true"]{background:#fff;text-decoration:underline}
.ssp-state{display:flex;align-items:center;gap:.6rem;margin:0;padding:.6rem .4rem;color:#475569;font-size:.84rem}
.ssp-spinner{width:1rem;height:1rem;border:2px solid #cbd5e1;border-top-color:#2563a8;border-radius:50%;animation:ssp-spin .8s linear infinite}
@keyframes ssp-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ssp-spinner{animation:none}}
.racecard-page .site-header .header-search.site-search{display:flex;flex:0 1 18rem;min-width:9rem;height:2.6rem;margin-left:auto;border-color:rgba(255,255,255,.55)}
.racecard-page .site-header .site-search+.primary-nav{margin-left:.4rem}
@media(max-width:1200px){.racecard-page .site-header .header-search.site-search{order:1;flex:1 1 14rem;max-width:22rem}}
@media(max-width:760px){
  .ssp-groups{grid-template-columns:1fr}
  .site-search-panel{position:fixed;top:4.6rem;right:.75rem;left:.75rem;width:auto;max-height:calc(100dvh - 5.5rem)}
  .racecard-page .site-header .header-search.site-search{flex:1 1 auto;min-width:0;max-width:none;height:2.5rem;border-color:#d8e0e7}
  .racecard-page .site-header .brand{flex:0 0 auto;max-width:34vw}
  .racecard-page .site-header .brand-mark img{max-width:34vw;height:auto;max-height:46px}
}
.ss-page{background:radial-gradient(1200px 500px at 8% -8%,#dbeafe 0%,transparent 50%),#eef2f7;color:#0f172a}
.ss-main{padding:28px 12px 48px}
.ss-shell{max-width:1100px;margin:0 auto}
.ss-page h1,.ss-page h2{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.ss-shell h1{margin:0 0 14px;font-size:28px;font-weight:800;letter-spacing:-.02em}
.ss-form{display:flex;height:3.1rem;border:1px solid #cbd5e1;border-radius:14px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.06)}
.ss-form input{flex:1;min-width:0;padding:0 1rem;border:0;border-radius:14px 0 0 14px;outline:0;background:transparent;color:#0f172a;font:500 1rem Inter,system-ui,sans-serif}
.ss-form button{padding:0 1.2rem;border:0;border-radius:0 14px 14px 0;background:#0f172a;color:#fff;font:700 .9rem Inter,system-ui,sans-serif;cursor:pointer}
.ss-form .site-search-panel{left:0;right:auto;width:100%}
.ss-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}
.ss-tabs a{padding:7px 14px;border:1px solid #dbe3ee;border-radius:999px;background:#fff;color:#475569;font-size:13px;font-weight:700;text-decoration:none}
.ss-tabs a[aria-current="page"]{border-color:#0f172a;background:#0f172a;color:#fff}
.ss-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.ss-group{padding:14px;border:1px solid #e4eaf3;border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.05)}
.ss-group h2{display:flex;justify-content:space-between;margin:0 0 8px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#475569}
.ss-group h2 span{padding:1px 9px;border-radius:999px;background:#e2e8f0;color:#334155;letter-spacing:0}
.ss-group ul{margin:0;padding:0;list-style:none}
.ss-group li a{display:block;padding:8px 10px;border-radius:10px;color:inherit;text-decoration:none}
.ss-group li a:hover,.ss-group li a:focus-visible{background:#f1f5f9}
.ss-group li strong{display:block;font-size:14px}
.ss-group li span{display:block;color:#64748b;font-size:12px}
.ss-more,.ss-none{margin:8px 10px 0;color:#64748b;font-size:12.5px}
.ss-more a{color:#1d4ed8;font-weight:700}
.ss-state{padding:20px;border:1px dashed #cbd5e1;border-radius:16px;background:#fff;color:#475569}

/* Look A (owner pick, 5 Nov 2026): the search page and the header's suggestion panel in the
   site's colours: light grey page, white cards, black title in the tall sign letters, wine for
   the search button, the selected suggestion and the chosen tab. No blue. */
.site-search-panel{border-color:#e5e7eb;border-radius:12px;color:#18181b;font-family:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  box-shadow:0 24px 48px -12px rgb(24 24 27/.22)}
.ssp-group{border-radius:10px;background:#fafafa}
.ssp-group h3{color:#52525b;font:700 13px/1 "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.1em}
.ssp-group h3 span,.ssp-group[data-kind="horse"] h3 span,.ssp-group[data-kind="jockey"] h3 span,.ssp-group[data-kind="trainer"] h3 span{
  background:#e4e4e7;color:#18181b;font-family:"Source Sans 3",sans-serif}
.ssp-item span{color:#6b7280}
.ssp-item mark{background:#f8eced;color:#8f1721;font-weight:700}
.ssp-item:hover{box-shadow:inset 0 0 0 1px #e4e4e7}
.ssp-item[aria-selected="true"]{box-shadow:inset 3px 0 0 #8f1721,inset 0 0 0 1px #e4e4e7}
.ssp-all{color:#8f1721}
.ssp-spinner{border-top-color:#8f1721}
.ss-page{background:#f3f4f6;color:#18181b;font-family:"Source Sans 3","Segoe UI",system-ui,sans-serif}
.ss-main{padding:28px 16px 56px}
.ss-shell h1{color:#18181b;font:700 44px/1 "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.02em;text-transform:uppercase}
.ss-form{height:3rem;border-color:#d4d4d8;border-radius:8px;box-shadow:none}
.ss-form:focus-within{border-color:#18181b;box-shadow:0 0 0 3px rgb(24 24 27/.08)}
.ss-form input{border-radius:8px 0 0 8px;color:#18181b;font-family:"Source Sans 3",sans-serif}
.ss-form button{border-radius:0 8px 8px 0;background:#8f1721;font:700 15px "Source Sans 3",sans-serif}
.ss-form button:hover{background:#7a121b}
.ss-tabs{gap:4px;border-bottom:1px solid #e5e7eb}
.ss-tabs a{position:relative;padding:12px 14px;border:0;border-radius:0;background:none;color:#6b7280;
  font:700 17px/1 "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.06em;text-transform:uppercase}
.ss-tabs a:hover{color:#18181b}
.ss-tabs a[aria-current="page"]{border:0;background:none;color:#18181b}
.ss-tabs a[aria-current="page"]::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:3px;border-radius:2px;background:#8f1721}
.ss-group{border-color:#e5e7eb;border-radius:12px;box-shadow:0 1px 2px rgb(24 24 27/.04)}
.ss-group h2{color:#52525b;font:700 15px/1 "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.1em}
.ss-group h2 span{background:#e4e4e7;color:#18181b;font-family:"Source Sans 3",sans-serif}
.ss-group li a:hover,.ss-group li a:focus-visible{background:#fafafa}
.ss-group li strong{color:#18181b}.ss-group li span,.ss-more,.ss-none{color:#6b7280}
.ss-more a{color:#8f1721}
.ss-state{border-color:#d4d4d8;border-radius:12px;color:#3f3f46}
@media(max-width:760px){.ss-shell h1{font-size:34px}.ss-tabs a{padding:12px 10px;font-size:15px}}
