.standings-hero {
    min-height: 330px; position: relative; display: flex; align-items: center; overflow: hidden; color: #fff;
    background: #032e21 url('/images/standings-hero-2026.jpg') center/cover no-repeat; border-bottom: 4px solid var(--gold);
}
.standings-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(1,25,18,.94) 0%,rgba(2,41,29,.76) 37%,rgba(1,28,19,.10) 72%); }
.standings-hero-content { position: relative; z-index: 1; }
.standings-eyebrow { font-size: 13px; font-weight: 900; letter-spacing: 8px; color: #fff; }
.standings-hero h1 { max-width: 760px; margin: 10px 0 18px; font: 800 clamp(48px,6vw,82px)/.88 'Barlow Condensed'; letter-spacing: -2px; text-shadow: 0 4px 14px #0008; }
.standings-hero h1 em { display: block; color: var(--gold); font-style: normal; }
.season-badges { display: flex; gap: 10px; align-items: center; }
.season-badges strong,.season-badges span { padding: 11px 20px; border-radius: 5px; font-size: 15px; font-weight: 900; letter-spacing: 1px; }
.season-badges strong { color: #102c21; background: linear-gradient(135deg,#ffd558,#e9a900); box-shadow: 0 5px 20px #0004; }
.season-badges span { border: 1px solid var(--gold); background: #052d22dd; }
.standings-page { padding-top: 34px; background: radial-gradient(circle at top,#fff 0,#f2f6f4 52%,#e7efeb 100%); }
.standings-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 22px; }
.standings-heading h2 { font: 800 38px 'Barlow Condensed'; color: var(--green); margin: 3px 0 0; }
.standings-heading small { color: #66746d; }
.standings-heading small i { color: var(--gold); margin-right: 5px; }
.official-standing-card { overflow: hidden; background: #fff; border: 1px solid #d3ded8; border-radius: 14px; box-shadow: 0 16px 38px #11352519; }
.official-standing-card > header { min-height: 76px; display: flex; align-items: center; gap: 15px; color: #fff; border-bottom: 4px solid var(--gold); padding: 13px 20px; position: relative; overflow: hidden; }
.official-standing-card > header:after { content: ''; position: absolute; right: -25px; top: -55px; width: 230px; height: 170px; opacity: .16; border: 22px solid #fff; border-radius: 50%; transform: rotate(-15deg); }
.standing-theme-jockey > header { background: linear-gradient(115deg,#00653e,#003f2c); }
.standing-theme-trainer > header { background: linear-gradient(115deg,#b21d22,#6f090d); }
.standing-theme-owner > header { background: linear-gradient(115deg,#796000,#c38c00 52%,#443700); }
.standing-icon { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #17291f; background: var(--gold); font-size: 22px; box-shadow: 0 6px 18px #0004; }
.official-standing-card > header div { position: relative; z-index: 1; }
.official-standing-card > header small { display: block; margin-bottom: 1px; color: #ffffffb8; font-size: 8px; font-weight: 800; letter-spacing: 1.7px; }
.official-standing-card > header h2 { margin: 0; font: 800 29px 'Barlow Condensed'; text-transform: uppercase; letter-spacing: .3px; }
.standings-table { --bs-table-bg: transparent; }
.standings-table th { padding: 10px 9px; background: #e9efec; color: #425149; border: 0; font-size: 9px; font-weight: 900; letter-spacing: .7px; white-space: nowrap; }
.standings-table td { height: 34px; padding: 5px 9px; border-color: #e7ece9; vertical-align: middle; font-size: 11px; }
.standings-table tbody tr:nth-child(even) { background: #f3f6f4; }
.standings-table tbody tr:hover { background: #fff7d9; }
.standings-table td:not(:nth-child(2)),.standings-table th:not(:nth-child(2)) { text-align: center; }
.standings-table td:nth-child(2) { min-width: 180px; }
.standings-table td strong,.standings-table td small { display: block; }
.standings-table td strong { color: #15241d; font-weight: 800; }
.standings-table td small { color: #75827c; font-size: 9px; margin-top: 1px; }
.standing-rank { min-width: 24px; height: 24px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 50%; color: #4b5a53; font-weight: 900; }
.podium-row { background: linear-gradient(90deg,#fff7d9,#fffdf5)!important; }
.podium-2 { background: linear-gradient(90deg,#edf1f3,#fff)!important; }
.podium-3 { background: linear-gradient(90deg,#fde8db,#fff)!important; }
.rank-1,.rank-2,.rank-3 { color: #fff; box-shadow: inset 0 0 0 1px #fff8,0 2px 5px #0003; }
.rank-1 { background: linear-gradient(145deg,#ffd64d,#b88100); color: #3a2a00; }
.rank-2 { background: linear-gradient(145deg,#dce2e5,#7e898f); }
.rank-3 { background: linear-gradient(145deg,#d88348,#8e3d13); }
.standings-table .place-first { color: #8b6500; font-weight: 900; }
.standing-theme-owner { margin-top: 2px; }
.standing-theme-owner .standings-table td:nth-child(2) { width: 52%; }
@media (max-width: 991px) {
    .standings-hero { min-height: 290px; background-position: 62% center; }
    .standings-hero-shade { background: linear-gradient(90deg,rgba(1,25,18,.94),rgba(2,41,29,.78) 55%,rgba(1,28,19,.26)); }
}
@media (max-width: 767px) {
    .standings-hero { min-height: 270px; background-position: 67% center; }
    .standings-hero h1 { font-size: 49px; }
    .standings-eyebrow { letter-spacing: 5px; }
    .season-badges strong,.season-badges span { padding: 9px 12px; font-size: 11px; }
    .standings-heading { display: block; }
    .standings-heading small { display: block; margin-top: 7px; }
    .official-standing-card > header h2 { font-size: 25px; }
    .standings-table td:nth-child(2) { min-width: 150px; }
}

.stable-standings-hero { min-height: 185px; }
.stable-standings-hero h1 { font-size: clamp(2.75rem, 5vw, 4.25rem); }
.stable-standings-page .standings-heading h2 { font-size: clamp(2.65rem, 5vw, 3.5rem); }
.stable-standings-page .standings-heading form, .stable-standings-page .form-select,
.stable-standings-page nav .btn { font-size: 1.15rem; }
.stable-standings-page .standings-heading form { margin-top: .75rem; width: fit-content; }
.stable-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stable-leaders li { display: flex; align-items: center; gap: .75rem; min-height: 88px; padding: .75rem; background: #fff; border-left: 4px solid var(--gold); border-radius: 10px; box-shadow: 0 5px 14px #112e2112; }
.stable-leaders a { color: #073d29; font-weight: 800; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.stable-leader-wins { margin-left: auto; border-left: 1px solid #d3ded8; padding-left: .7rem; text-align: center; font-weight: 700; }
.stable-leader-wins strong { display: block; font-size: 1.65rem; line-height: 1.15; color: #073d29; }
.stable-rankings > header { flex-wrap: wrap; background: linear-gradient(115deg,#624900,#775500 52%,#443700); }
.stable-rankings-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-left: auto; }
.stable-rankings-tools input[type="search"] { width: min(100%, 14rem); }
.stable-rankings-tools label { white-space: nowrap; font-weight: 700; }
.stable-rankings-tools label input { margin-right: .3rem; }
.stable-rankings .standings-table th { font-size: 1rem; }
.stable-rankings .standings-table td { height: 60px; font-size: clamp(1.1rem, 1.65vw, 1.5rem); }
.stable-rankings .standings-table td:nth-child(2) { width: auto; min-width: 200px; }
.stable-rankings .standings-table .text-success { color: #07583b !important; }
.stable-rankings .standings-table a:hover { text-decoration: underline !important; }
.stable-leaders .standing-rank, .stable-rankings .standing-rank { min-width: 36px; height: 36px; flex: 0 0 auto; }
.stable-rankings-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem; }
.stable-rankings [hidden], .stable-rankings.compact-places .stable-extra-place { display: none !important; }

.stable-profile-hero { min-height: 225px; padding-block: 1.75rem; }
.stable-profile-hero h1 { font-size: clamp(3rem, 6vw, 5rem); overflow-wrap: anywhere; }
.stable-profile-hero .season-badges { flex-wrap: wrap; }
.stable-back { color: #fff; background: #062e22; border: 1px solid var(--gold); font-weight: 700; }
.stable-back:hover, .stable-back:focus-visible { color: #102c21; background: var(--gold); }
.stable-profile-stats .display-6 { color: #073d29; font-size: clamp(2rem, 4vw, 3.25rem); }
.stable-finish-summary { display: flex; flex-wrap: wrap; overflow: hidden; border: 1px solid #d9bd75; border-radius: .8rem; background: #fff9e9; }
.stable-finish-summary h2 { display: flex; align-items: center; margin: 0; padding: .9rem 1.2rem; background: #064430; color: #fff; font: 800 1.8rem 'Barlow Condensed', sans-serif; }
.stable-finish-summary dl { display: flex; flex: 1; flex-wrap: wrap; margin: 0; }
.stable-finish-summary dl div { flex: 1 0 4.5rem; padding: .55rem; text-align: center; }
.stable-finish-summary dd { margin: 0; font-size: 1.65rem; font-weight: 800; color: #073d29; }
.stable-history-heading, .stable-history-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.stable-history-heading { justify-content: space-between; margin-bottom: 1rem; }
.stable-history-heading h2 { margin: 0; color: #073d29; font: 800 clamp(2.25rem, 4vw, 3.25rem) 'Barlow Condensed', sans-serif; }
.stable-history-filters > * { width: auto; max-width: 100%; }
.stable-meeting { margin-bottom: 1.25rem; overflow: hidden; border: 1px solid #d3ded8; border-radius: .8rem; background: #fff; box-shadow: 0 5px 14px #112e2112; }
.stable-meeting > header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .85rem 1rem; background: #dcece2; color: #073d29; }
.stable-meeting h3 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.stable-meeting time { font-weight: 700; }
.stable-meeting table { min-width: 570px; table-layout: fixed; }
.stable-meeting th, .stable-meeting td { padding: .7rem .95rem; overflow-wrap: anywhere; }
.stable-meeting th { background: #eef2ef; }
.stable-meeting td { font-size: 1.15rem; }
.stable-meeting th:last-child { width: 8rem; }
.stable-meeting th:nth-child(2) { width: 35%; }
.stable-meeting small { font-size: .9rem; }
#stable-history [hidden] { display: none !important; }
