/* Racing pages (schedule, event, stats, boost) in the Iron Range look. Shared parts: site.css. */

.band-p { margin: 6px 0 0; font-size: 15px; opacity: .9; }
.wx-plate { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 14px; background: rgba(12,13,12,.78); border: 1px solid var(--seam); font-size: 14px; color: var(--ink-hi); }
.wx-plate .wx-k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); }
.wx-plate b { font-family: var(--f-iron); font-weight: 400; font-size: 20px; }

/* Schedule on steel: each month opens on a full-width photo band with the month struck
   over it; nights run as seam-ruled rows with door-plate dates; the next night is a
   raised plate with a red date. The printed full season follows on program stock. */
.sched { display: grid; border-bottom: 2px solid var(--steel-5); }
.sched-band { position: relative; display: flex; align-items: flex-end; min-height: 220px; margin-top: 64px; padding: 0 28px 20px; overflow: hidden; background: var(--steel-0) center / cover no-repeat; border-bottom: 4px solid var(--red); }
.sched-band:first-child { margin-top: 0; }
.sched-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,12,.88) 0%, rgba(12,13,12,.35) 55%, rgba(12,13,12,.1) 100%), linear-gradient(0deg, rgba(12,13,12,.7), rgba(12,13,12,0) 60%); }
.sched-mo { position: relative; margin: 0; font-family: var(--f-iron); font-weight: 400; font-size: clamp(72px, 8vw, 132px); line-height: .8; text-transform: uppercase; color: var(--mineral); text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.mo-april, .mo-may { background-image: url(/assets/iron/photos/pits-tower.jpg); }
.mo-june { background-image: url(/assets/iron/photos/grandstand-race.jpg); }
.mo-july { background-image: url(/assets/iron/photos/crowd.jpg); }
.mo-august { background-image: url(/assets/iron/photos/flagstand.jpg); }
.mo-september { background-image: url(/assets/iron/photos/track-dusk.jpg); }
.mo-october, .mo-november, .mo-march { background-image: url(/assets/iron/photos/daisies.jpg); }
.mo-may { background-position: center 35%; }
.mo-june { background-position: center 60%; }

.sched-card { position: relative; display: flex; gap: 28px; align-items: center; padding: 26px 0; border-top: 1px solid var(--seam); color: var(--ink-hi); }
.sched-band + .sched-card { border-top: 0; }
.sched-card.is-off { opacity: .62; }
.sched-date { flex: none; display: grid; justify-items: center; align-content: center; gap: 2px; width: 96px; height: 104px; background: var(--mineral); color: var(--black); text-decoration: none; box-shadow: inset 0 0 0 2px var(--black), inset 0 0 0 5px var(--mineral), inset 0 0 0 6px rgba(19,20,19,.3); transition: background-color .2s ease-out, color .2s ease-out; }
.sched-card:hover .sched-date { background: var(--red); color: var(--mineral); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -3px 0 var(--red-deep); }
.sched-date b { font-family: var(--f-iron); font-weight: 400; font-size: 54px; line-height: .86; }
.sched-date i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.sched-media { flex: none; display: flex; gap: 10px; }
.sched-info { flex: 1 1 auto; min-width: 0; }
.sched-ph, .sched-logo { display: grid; place-items: center; width: 104px; height: 104px; border: 1px solid var(--steel-5); background: var(--steel-3); overflow: hidden; }
.sched-ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); }
.sched-logo { padding: 8px; background: var(--stock-0); }
.sched-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sched-title { margin: 0; font-family: var(--f-steel); font-weight: 700; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; color: var(--mineral); }
.sched-title a { color: inherit; text-decoration: none; }
.sched-title a:hover { color: var(--red-hot); }
.sched-title .tag { vertical-align: 6px; margin-left: 6px; }
.is-off .sched-title a, .is-off .sched-day { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-lo); }
.sched-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 10px 0 0; font-size: 15px; font-weight: 500; color: var(--ink-mid); }
.sched-time { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--ink-hi); }
.sched-time b { font-family: var(--f-iron); font-weight: 400; font-size: 28px; letter-spacing: .01em; line-height: 1; color: var(--mineral); }
.sched-time .ico { width: 16px; height: 16px; align-self: center; color: var(--ink-mid); }
.sched-why { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--red-hot); }
.sched-desc { margin: 8px 0 0; max-width: 66ch; font-size: 15px; color: var(--ink-mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sched-cls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sched-purse { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 14px; padding: 8px 14px; background: var(--steel-0); border: 1px solid var(--seam); color: var(--mineral); text-decoration: none; }
.sched-purse .k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); }
.sched-purse b { font-family: var(--f-iron); font-weight: 400; font-size: 26px; line-height: 1; color: var(--sodium); }
.sched-purse small { font-size: 12px; color: var(--ink-mid); }
.sched-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sched-links:empty { display: none; }
.sched-cal { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 13px; }
.sched-cal span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-lo); }
.sched-cal a, .sched-cal button { padding: 0; background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink-hi); text-decoration: underline; text-decoration-color: rgba(220,229,217,.3); text-underline-offset: 3px; cursor: pointer; }
.sched-cal a:hover, .sched-cal button:hover { color: var(--red-hot); text-decoration-color: var(--red-hot); }
.sched-act { flex: none; display: grid; gap: 8px; }

/* The next night: a raised steel plate, red date, sodium start time. */
.sched-card.is-next:not(.is-off) { margin: 28px 0 12px; padding: 36px 36px 40px; background: var(--steel-2); border: 1px solid var(--seam); box-shadow: inset 0 1px 0 rgba(220,229,217,.07), inset 0 -1px 0 rgba(0,0,0,.55), 0 18px 32px -18px rgba(0,0,0,.7); }
.sched-card.is-next:not(.is-off)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.sched-card.is-next:not(.is-off) .sched-date { width: 124px; height: 136px; background: var(--red); color: var(--mineral); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -3px 0 var(--red-deep); }
.sched-card.is-next:not(.is-off) .sched-date b { font-size: 74px; }
.sched-card.is-next:not(.is-off) .sched-title { font-size: clamp(38px, 3.6vw, 56px); }
.sched-card.is-next:not(.is-off) .sched-time b { font-size: 36px; color: var(--sodium); }
.sched-card.is-next:not(.is-off) + .sched-card { border-top: 0; }

/* Schedule: full season table, printed on program stock after the steel run. */
.season-band { border-top: 4px solid var(--red); }
.season-table th, .season-table td { padding-left: 16px; padding-right: 16px; }
.season-table th { padding-top: 14px; }
.season-date { font-family: var(--f-iron); font-size: 24px; white-space: nowrap; width: 120px; }
.season-ev { font-family: var(--f-steel); font-weight: 700; font-size: 21px; color: inherit; text-decoration: none; }
.season-ev:hover { color: var(--red); }
.season-cls { margin-left: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-dark-mid); }
.season-res { display: none; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; }
.season-res .ico { width: 14px; height: 14px; vertical-align: -2px; }
.season-st { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dark-lo); }
.season-st--up { color: var(--ink-dark); }
.season-table tr.is-past td { color: var(--ink-dark-lo); }
.season-table tr.is-off td { background: rgba(166,30,47,.06); }
.season-table tr.is-off .season-ev, .season-table tr.is-off .season-date { text-decoration: line-through; color: var(--red); }
.season-table a.tag { text-decoration: none; }

@media (max-width: 1100px) {
  .sched-card { flex-wrap: wrap; }
  .sched-media { display: none; }
  .sched-info { flex-basis: calc(100% - 130px); }
  .sched-act { flex-basis: 100%; grid-auto-flow: column; justify-content: start; }
  .sched-card.is-next:not(.is-off) .sched-info { flex-basis: calc(100% - 160px); }
}
@media (max-width: 760px) {
  .sched-band { min-height: 150px; margin-top: 40px; margin-left: -20px; margin-right: -20px; padding: 0 20px 14px; }
  .sched-mo { font-size: 64px; }
  .sched-card { gap: 14px; padding: 20px 0; align-items: flex-start; }
  .sched-info { flex-basis: calc(100% - 80px); }
  .sched-date { width: 66px; height: 74px; }
  .sched-date b { font-size: 36px; }
  .sched-date i { font-size: 10px; letter-spacing: .12em; }
  .sched-title { font-size: 24px; }
  .sched-time b { font-size: 22px; }
  .sched-desc, .sched-cal { display: none; }
  .sched-act { margin-left: 80px; flex-basis: calc(100% - 80px); min-width: 0; }
  .sched-act .btn { min-height: 44px; padding: 0 16px; font-size: 12px; }
  .sched-card.is-next:not(.is-off) { margin: 20px -20px 8px; padding: 26px 20px 28px; }
  .sched-card.is-next:not(.is-off) .sched-date { width: 78px; height: 88px; }
  .sched-card.is-next:not(.is-off) .sched-date b { font-size: 46px; }
  .sched-card.is-next:not(.is-off) .sched-title { font-size: 30px; }
  .sched-card.is-next:not(.is-off) .sched-info { flex-basis: calc(100% - 94px); }
  .sched-card.is-next:not(.is-off) .sched-act { margin-left: 92px; flex-basis: calc(100% - 92px); }
  .hide-sm { display: none; }
  .season-res.show-sm { display: block; }
  .season-date { width: auto; font-size: 19px; }
  .season-ev { font-size: 18px; }
}

/* ==========================================================================
   Shared helpers for the racing pages (event, days, stats, boost)
   ========================================================================== */
.hidden { display: none !important; }

/* ==========================================================================
   Event page (racing_event.html): same sections as views/schedule/detail.php
   ========================================================================== */
.ed-wrap { max-width: 1040px; }
.ed-off { margin-bottom: 24px; padding: 22px 26px; background: var(--red); color: var(--mineral); }
.ed-off-h { margin: 0; font-family: var(--f-iron); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: .92; text-transform: uppercase; }
.ed-off-why { margin: 10px 0 0; font-size: 16px; }
.ed-off-why b { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-right: 4px; }

.ed-gal { margin-bottom: 24px; }
.ed-gal-main { display: block; border: 1.5px solid var(--black); background: var(--black); }
.ed-gal-main img { width: 100%; height: auto; }
.ed-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.evgal-thumb { width: 80px; height: 80px; padding: 0; overflow: hidden; background: transparent; border: 2px solid var(--stock-3); }
.evgal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.evgal-thumb.is-on { border-color: var(--red); }
.ed-flyer { margin-bottom: 32px; border: 1.5px solid var(--black); background: var(--black); box-shadow: 0 14px 28px -20px rgba(19,20,19,.45); }
.ed-flyer img { width: 100%; height: auto; }

.ed-card { position: relative; background: var(--stock-0); border: 1.5px solid var(--black); box-shadow: 0 14px 28px -20px rgba(19,20,19,.45); }
.ed-card.is-off { border-style: dashed; }
.ed-card.is-off .ed-body { opacity: .8; }
.ed-stamp { position: absolute; top: 18px; right: 18px; z-index: 3; padding: 8px 14px; background: var(--red); color: var(--mineral); font-family: var(--f-iron); font-size: 24px; line-height: 1; text-transform: uppercase; transform: rotate(3deg); box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }
.ed-head { display: flex; gap: 28px; align-items: flex-start; padding: 32px 36px; }
.ed-date { flex: none; display: grid; place-items: center; align-content: center; width: 116px; min-height: 116px; padding: 12px 6px; background: var(--red); color: var(--mineral); text-align: center; }
.ed-date b { font-family: var(--f-iron); font-weight: 400; font-size: 64px; line-height: .85; }
.ed-date i { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .14em; margin-top: 8px; }
.ed-head-main { flex: 1; min-width: 0; }
.ed-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ed-logo { flex: none; display: grid; place-items: center; width: 96px; height: 96px; padding: 8px; background: #fff; border: 1px solid var(--seam); }
.ed-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ed-title { margin: 0; font-family: var(--f-iron); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: .88; text-transform: uppercase; color: var(--mineral); text-wrap: balance; overflow-wrap: anywhere; }
.ed-special { margin-top: 10px; }
.ed-when { margin: 14px 0 0; font-family: var(--f-steel); font-weight: 600; font-size: 22px; color: var(--ink-hi); }
.is-off .ed-title, .is-off .ed-when { text-decoration: line-through; text-decoration-thickness: 3px; color: var(--ink-lo); }

.ed-body { padding: 32px 36px 36px; }
.ed-k { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dark-mid); }
.ed-classes { margin-bottom: 32px; }
.ed-cls { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-cl { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 0; border: 1.5px solid var(--black); font-size: 13px; font-weight: 600; color: var(--ink-dark-mid); }
.stock .ed-cl .cls { border: 0; background: var(--black); color: var(--mineral); height: 28px; }

.ed-box { margin: 28px 0; border: 1.5px solid var(--black); background: var(--stock-1); }
.ed-box-h { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; background: var(--black); color: var(--mineral); font-family: var(--f-steel); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.ed-box-h .ico { width: 18px; height: 18px; color: var(--red-hot); }
.ed-box-b { padding: 20px; }
.ed-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.ed-price { padding: 16px 18px; background: var(--stock-0); border: 1.5px solid var(--black); }
.ed-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; font-family: var(--f-steel); font-weight: 700; font-size: 21px; line-height: 1.1; }
.ed-sub .ico { width: 17px; height: 17px; color: var(--red); align-self: center; }
.ed-sub small { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--ink-dark-lo); }
.ed-pr { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(19,20,19,.3); font-size: 15px; }
.ed-pr:last-child { border-bottom: 0; }
.ed-pr span { min-width: 0; overflow-wrap: anywhere; }
.ed-pr b { margin-left: auto; flex: none; font-family: var(--f-iron); font-weight: 400; font-size: 22px; line-height: 1; color: var(--red); }
.ed-prices-text { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.ed-list-block + .ed-list-block { margin-top: 20px; }
.ed-list-block--rule { padding-top: 18px; border-top: 1px solid rgba(19,20,19,.22); }
.ed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.ed-list li { position: relative; padding-left: 18px; overflow-wrap: anywhere; }
.ed-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--red); }
.ed-list strong { font-weight: 700; }

.ed-res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ed-res-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--stock-0); border: 1.5px solid var(--black); }
.ed-res-item.is-out { opacity: .6; border-style: dashed; }
.ed-res-main { flex: 1; min-width: 0; }
.ed-res-nm { font-family: var(--f-steel); font-weight: 700; font-size: 20px; line-height: 1.05; }
.ed-res-note { margin-top: 4px; font-size: 13px; color: var(--ink-dark-mid); }
.ed-res-pr { flex: none; text-align: right; }
.ed-res-pr small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dark-lo); }
.ed-res-pr b { font-family: var(--f-iron); font-weight: 400; font-size: 26px; line-height: 1; color: var(--red); }
.ed-res-na { flex: none; padding: 8px 12px; background: var(--stock-2); color: var(--ink-dark-mid); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ed-res-item .btn { flex: none; }

/* Purse panel */
.pp { margin: 28px 0; border: 1.5px solid var(--black); background: var(--stock-0); }
.pp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; padding: 24px 26px; }
.pp-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); }
.pp-total { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-family: var(--f-iron); font-size: clamp(52px, 6vw, 76px); line-height: .9; color: var(--mineral); font-variant-numeric: tabular-nums; }
.pp-arrow { font-family: var(--f-body); font-size: 30px; color: var(--flag-green); }
.pp-split { margin-top: 10px; font-size: 14px; color: var(--ink-hi); }
.pp-upd { margin-top: 4px; font-size: 12px; color: var(--ink-lo); }
.pp-cta { display: grid; justify-items: end; gap: 8px; }
.pp-safe { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-mid); }
.pp-safe .ico { width: 14px; height: 14px; }
.pp-pop { position: absolute; left: 26px; top: 64px; font-family: var(--f-iron); font-size: 28px; color: var(--sodium); pointer-events: none; animation: pxpop 1.6s ease forwards; }
@keyframes pxpop { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
.px-tape { overflow: hidden; white-space: nowrap; padding: 9px 0; background: var(--steel-0); border-top: 1px solid var(--seam); }
.px-tape-track { display: inline-block; white-space: nowrap; animation: pxscroll 14s linear infinite; }
.px-tape .tk { display: inline-block; padding: 0 22px; font-size: 13px; color: var(--ink-mid); letter-spacing: .02em; }
.px-tape .tk b { color: var(--mineral); font-weight: 700; }
.px-tape .up { color: var(--flag-green); font-weight: 700; }
@keyframes pxscroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.pp-table { background: var(--stock-0); }
.pp-table th { padding-top: 14px; }
.pp-table th, .pp-table td { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
.pp-table td { padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.pp-table th.num { text-align: right; font-family: var(--f-steel); font-size: 17px; letter-spacing: .04em; }
.pp-table .pp-pos { font-family: var(--f-iron); font-size: 20px; line-height: 1; }
.pp-table tr.win td { background: rgba(232,163,61,.14); }
.pp-tot td { background: var(--stock-1); font-weight: 800; border-top: 2px solid var(--black); }
.pp-tot .pp-pos { text-transform: uppercase; }
.pp-cell { text-decoration: none; }
.pp-cell:hover { color: var(--red); text-decoration: underline; }
.pp-up { color: #1E7A45 !important; font-weight: 700; }
.pp-none { color: var(--stock-3); }
.pp-zero { color: var(--ink-dark-lo); }
.pp-desk { overflow-x: auto; }
.pp-mobile { display: none; }
.pp-mtabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--stock-1); border-bottom: 1.5px solid var(--black); }
.pp-mtabs .mtab { min-height: 38px; padding: 0 12px; background: var(--stock-0); border: 1.5px solid var(--black); font-family: var(--f-steel); font-weight: 700; font-size: 17px; color: var(--black); }
.pp-mtabs .mtab[aria-selected="true"] { background: var(--black); color: var(--mineral); }
.pp-mname { padding: 8px 14px; font-size: 13px; color: var(--ink-dark-mid); border-bottom: 1px solid rgba(19,20,19,.15); }
.pp-sec { padding: 20px 22px; border-top: 1.5px solid var(--black); }
.pp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; font-family: var(--f-steel); font-weight: 700; font-size: 21px; line-height: 1.1; }
.pp-h .ico { width: 17px; height: 17px; color: var(--red); }
.pp-h small { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--ink-dark-lo); }
.pp-scroll { overflow-x: auto; }
.pp-star { color: var(--red); font-weight: 800; }
.pp-note { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--red); background: rgba(166,30,47,.07); font-size: 13px; }
.pp-fine { margin: 12px 0 0; font-size: 12px; color: var(--ink-dark-lo); }
.pp-empty { margin: 0; padding: 22px; font-size: 15px; color: var(--ink-dark-mid); }
.pp-bonus { display: grid; gap: 16px; }
.pp-bcls { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dark-mid); }
.pp-bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid rgba(19,20,19,.3); background: var(--stock-0); color: inherit; text-decoration: none; font-size: 15px; transition: border-color .2s; }
.pp-b b { font-family: var(--f-iron); font-weight: 400; font-size: 20px; line-height: 1; white-space: nowrap; }
.pp-b--go:hover { border-color: var(--red); }
.pp-feed { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-feed td { padding: 8px 12px 8px 0; border-bottom: 1px solid rgba(19,20,19,.15); }
.pp-feed tr:last-child td { border-bottom: 0; }
.pp-feed .num { text-align: right; padding-right: 0; white-space: nowrap; }
.pp-fd { font-size: 12px; color: var(--ink-dark-lo); white-space: nowrap; }
.pp-fw { font-weight: 700; }
.pp-ft { color: var(--ink-dark-mid); white-space: nowrap; }
.pp-credit { padding: 16px 22px; border-top: 1.5px solid var(--black); background: rgba(47,163,95,.1); }
.pp-credit-h { display: flex; align-items: center; gap: 10px; }
.pp-credit-h .ico { width: 20px; height: 20px; color: #1E7A45; flex: none; }
.pp-credit-who { font-family: var(--f-steel); font-weight: 700; font-size: 20px; color: #14532F; }
.pp-credit-amt { margin-left: auto; font-family: var(--f-iron); font-size: 24px; line-height: 1; color: #1E7A45; white-space: nowrap; }
.pp-credit-cls { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; padding-left: 30px; font-size: 13px; color: var(--ink-dark-mid); }
.pp-credit-cls b { color: #1E7A45; }
.pp-track { display: flex; align-items: flex-start; gap: 10px; padding: 14px 22px; border-top: 1.5px solid var(--black); background: var(--stock-1); font-size: 14px; color: var(--ink-dark-mid); }
.pp-track .ico { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--red); }
.pp-track b { color: var(--ink-dark); }

.ed-desc { margin: 0 0 32px; font-size: 17px; line-height: 1.6; max-width: 70ch; }
.ed-acts { margin-bottom: 32px; padding-top: 24px; border-top: 4px double var(--black); }
.ed-acts-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ed-acts-row + .ed-acts-row { margin-top: 12px; }
.ed-acts-row:empty { display: none; }
.ed-wx { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--stock-1); border: 1px solid rgba(19,20,19,.3); }
.ed-wx-sky { flex: none; padding: 6px 10px; background: var(--black); color: var(--mineral); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ed-wx-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dark-mid); }
#wx-detail #wx-data { font-family: var(--f-steel); font-weight: 700; font-size: 20px; }
.ed-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-family: var(--f-iron); font-size: 30px; line-height: 1; text-transform: uppercase; text-decoration: none; color: var(--ink-dark); }
.ed-back .ico { width: 22px; height: 22px; }
.ed-back:hover { color: var(--red); }

@media (max-width: 760px) {
  .ed-head { flex-direction: column; gap: 18px; padding: 22px 20px; }
  .ed-date { width: auto; min-height: 0; display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; }
  .ed-date b { font-size: 44px; }
  .ed-date i { margin-top: 0; }
  .ed-logo { width: 72px; height: 72px; }
  .ed-when { font-size: 18px; }
  .ed-body { padding: 22px 16px 24px; }
  .ed-stamp { top: 12px; right: 12px; font-size: 18px; }
  .ed-box-b { padding: 14px; }
  .ed-prices, .ed-res, .pp-bgrid { grid-template-columns: 1fr; }
  .ed-res-item { flex-wrap: wrap; }
  .ed-res-main { flex-basis: 100%; }
  .pp-head { padding: 20px 16px; }
  .pp-cta { justify-items: start; }
  .pp-sec { padding: 16px 14px; }
  .ed-back { font-size: 24px; }
}
@media (max-width: 639px) {
  .pp-mobile { display: block; }
  .pp-desk { display: none; }
  .pp-mobile table.ptable { display: table; }
}
.pp table.ptable { display: table; }

/* ==========================================================================
   Multi-day picker (racing_days.html): same sections as views/schedule/days.php
   ========================================================================== */
.dy-h1 { max-width: 14ch !important; }
.dy-sub { gap: 10px 16px; }
.dy-sub .tag { font-size: 12px; padding: 5px 10px; }
.dy-range { font-family: var(--f-steel); font-weight: 600; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-hi); }
.dy-pick { margin: 14px 0 0; font-size: 15px; color: var(--ink-mid); }
.dy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; }
.dy-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.dy-card { display: flex; flex-direction: column; background: var(--stock-0); border: 1.5px solid var(--black); color: inherit; text-decoration: none; box-shadow: 0 14px 28px -20px rgba(19,20,19,.45); transition: border-color .2s; }
.dy-card:hover { border-color: var(--red); }
.dy-card.is-past { opacity: .6; }
.dy-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--black); color: var(--mineral); }
.dy-bar b { font-family: var(--f-iron); font-weight: 400; font-size: 38px; line-height: .9; text-transform: uppercase; }
.dy-bar span { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dy-img { aspect-ratio: 4 / 5; background: var(--black); overflow: hidden; }
.dy-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease-out); }
.dy-card:hover .dy-img img { transform: scale(1.02); }
.dy-body { padding: 18px; }
.dy-title { font-family: var(--f-steel); font-weight: 700; font-size: 26px; line-height: 1.05; }
.dy-meta { margin-top: 6px; font-size: 15px; color: var(--ink-dark-mid); }
.dy-special { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--red); }
.dy-special .ico { width: 14px; height: 14px; }
.dy-off { font-weight: 800; color: var(--red); }
.dy-done { color: var(--ink-dark-lo); }
.dy-go { margin-top: 16px; }
.dy-card:hover .dy-go { --bg: var(--black); }
.dy-back { margin-top: 40px; text-align: center; }
.dy-back a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dark-mid); text-decoration: none; }
.dy-back a .ico { width: 16px; height: 16px; }
.dy-back a:hover { color: var(--red); }
@media (max-width: 900px) { .dy-grid, .dy-grid--3 { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
@media (max-width: 760px) { .dy-range { font-size: 19px; } .dy-bar b { font-size: 30px; } }

/* ==========================================================================
   Track Stats (racing_stats.html): same sections as views/stats/index.php
   ========================================================================== */
.st-mast .mast-body { padding-bottom: 104px; }
.st-mast .subnav a { font-size: 22px; }
.st-rail { display: grid; }
@media (max-width: 1023px) { .st-rail { display: none; } }
.st-main { min-width: 0; }
.st-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 32px; }
.st-filter .field-label { margin-right: 0; }
.st-filter--inline { margin-bottom: 0; }
.st-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 0; padding: 22px 24px 18px; border-bottom: 4px solid var(--red); box-shadow: inset 0 1px 0 rgba(220,229,217,.07), 0 18px 32px -18px rgba(0,0,0,.7); }
.st-bar h2, .st-bar h3 { margin: 0; font-family: var(--f-iron); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: .95; text-transform: uppercase; color: var(--mineral); }
.st-bar > span, .st-bar-r { font-size: 14px; color: var(--ink-mid); }
.st-bar-r { display: grid; gap: 4px; text-align: right; }
.st-bar--sm { margin-bottom: 0; padding: 10px 16px; }
.st-bar--sm h3 { font-family: var(--f-steel); font-weight: 700; font-size: 24px; text-transform: none; }
.st-bar .st-money { font-family: var(--f-iron); font-weight: 400; font-size: 22px; color: var(--sodium); }
.st-money { color: var(--ink-dark); font-weight: 800; }
.st-stack { display: grid; gap: 0; border-bottom: 2px solid var(--black); }
.st-stack--wide { gap: 24px; }
.st-det { border-top: 1px solid rgba(19,20,19,.22); }
.st-det:first-child { border-top: 0; }
.st-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding: 14px 0; color: var(--ink-dark); cursor: pointer; list-style: none; user-select: none; transition: color .2s ease-out; }
.st-sum::-webkit-details-marker { display: none; }
.st-sum:hover { color: var(--red); }
.st-det[open] > .st-sum { padding: 14px 20px; background: var(--black); color: var(--mineral); }
.st-sum h3 { display: flex; align-items: center; gap: 18px; margin: 0; font-family: var(--f-iron); font-weight: 400; font-size: clamp(32px, 3.2vw, 46px); line-height: .9; text-transform: uppercase; color: inherit; }
.st-sum h3 .ico { flex: none; width: 40px; height: 40px; padding: 10px; background: var(--black); color: var(--mineral); transition: transform .2s var(--ease-out), background-color .2s; }
.st-sum:hover h3 .ico, .st-det[open] > .st-sum h3 .ico { background: var(--red); }
.st-det[open] > .st-sum h3 .ico { transform: rotate(90deg); }
.st-sum > span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: inherit; opacity: .7; white-space: nowrap; }
.st-scroll { overflow-x: auto; }
.st-table th { padding-top: 14px; }
.st-table td, .st-table th { padding-left: 12px; padding-right: 12px; }
.st-table td { font-size: 15px; }
.st-table tbody tr:hover td { background: rgba(166,30,47,.05); }
.st-c { text-align: center !important; }
.st-table .st-pos { font-family: var(--f-iron); font-size: 22px; line-height: 1; width: 56px; color: var(--ink-dark-mid); }
.st-car { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 6px; font-family: var(--f-iron); font-size: 19px; line-height: 1; background: var(--stock-1); box-shadow: inset 0 0 0 1.5px var(--black); }
.st-table .st-drv { font-family: var(--f-steel); font-weight: 700; font-size: 20px; line-height: 1.05; }
.st-table .st-drv--win { font-size: 22px; }
.st-town { color: var(--ink-dark-mid); }
.st-table .st-pts { font-family: var(--f-iron); font-size: 26px; line-height: 1; color: var(--ink-dark); }
.st-det .st-table tbody tr:first-child td { background: rgba(166,30,47,.08); }
.st-det .st-table tbody tr:first-child .st-pos { color: var(--red); }
.st-cup { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
.st-cup .ico { width: 17px; height: 17px; }
.st-cup--1, .st-medal--1 { color: #B7791F; }
.st-cup--2, .st-medal--2 { color: #6B726A; }
.st-cup--3, .st-medal--3 { color: var(--taconite); }
.st-table .st-medal { font-size: 26px; }
.st-medal .ico { width: 18px; height: 18px; vertical-align: -1px; margin-right: 4px; }
.st-start { color: var(--ink-dark-lo); }
.st-empty { padding: 56px 24px; border: 1.5px dashed var(--black); text-align: center; background: var(--stock-0); }
.st-empty p { margin: 0; font-family: var(--f-steel); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--ink-dark-mid); }
.st-empty small { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-dark-lo); }
.st-sheet { padding: 28px 30px 32px; background: var(--stock-0); border: 1.5px solid var(--black); box-shadow: 0 14px 28px -20px rgba(19,20,19,.45); }
.st-res-form { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.st-field { display: grid; gap: 8px; min-width: 0; }
.st-field--grow { flex: 1 1 300px; }
.st-field .select, .st-field select { width: 100%; }
.st-field:not(.st-field--grow) { flex: 0 1 260px; }
.st-res-head { margin-bottom: 28px; text-align: center; }
.st-res-head p { margin: 10px 0 0; font-family: var(--f-steel); font-weight: 600; font-size: 22px; color: var(--ink-dark-mid); }
.st-races { border-top: 0; }
.st-race-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--steel-4); color: var(--mineral); }
.st-race-h.is-feature { background: var(--red); }
.st-race-h.is-bmain { background: var(--taconite); }
.st-race-h h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.st-race-h h4 .ico { width: 16px; height: 16px; }
.st-race-h span { font-size: 12px; opacity: .75; }
.st-race .ptable tr:last-child td { border-bottom: 0; }
.st-race + .st-race { border-top: 1.5px solid var(--black); }

.st-win-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 24px; }
.st-mode a { min-height: 46px; font-size: 18px; }
.st-wins { display: grid; gap: 6px; }
.st-win { background: var(--stock-0); border: 1px solid rgba(19,20,19,.3); }
.st-win[open] { border-color: var(--black); }
.st-win > summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; user-select: none; transition: background-color .2s; }
.st-win > summary::-webkit-details-marker { display: none; }
.st-win > summary:hover { background: rgba(19,20,19,.04); }
.st-rank { flex: none; width: 40px; text-align: center; font-family: var(--f-iron); font-size: 30px; line-height: 1; color: var(--ink-dark-lo); }
.st-rank.is-top { color: var(--red); }
.st-rank--sm { width: 32px; font-size: 22px; }
.st-who { flex: 1; min-width: 0; }
.st-who b { font-family: var(--f-steel); font-weight: 700; font-size: 21px; line-height: 1.05; }
.st-no { margin-left: 8px; font-family: var(--f-iron); font-size: 16px; color: var(--ink-dark-lo); }
.st-fin { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-dark-lo); }
.st-amt { flex: none; font-family: var(--f-iron); font-size: 30px; line-height: 1; color: var(--ink-dark); }
.st-amt--sm { font-size: 22px; }
.st-chev { flex: none; display: inline-flex; color: var(--ink-dark-lo); transition: transform .2s var(--ease-out); }
.st-chev .ico { width: 18px; height: 18px; }
.st-win[open] .st-chev { transform: rotate(180deg); }
.st-win-b { padding: 6px 16px 12px; border-top: 1px solid rgba(19,20,19,.15); background: var(--stock-1); overflow-x: auto; }
.st-mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-mini th { padding: 8px 10px 6px 0; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: left; color: var(--ink-dark-lo); border-bottom: 2px solid var(--black); }
.st-mini td { padding: 7px 10px 7px 0; border-bottom: 1px solid rgba(19,20,19,.12); }
.st-mini tr:last-child td { border-bottom: 0; }
.st-mini .num { text-align: right; padding-right: 0; white-space: nowrap; }
.st-dim { color: var(--ink-dark-lo); white-space: nowrap; }
.st-fine { margin: 18px 0 0; font-size: 12px; color: var(--ink-dark-lo); }
.st-fine--lead { margin: 10px 0 24px; }
.st-div { margin-top: 64px; }
.st-div-list { display: grid; gap: 28px; }
.st-div-rows { border: 1px solid rgba(19,20,19,.3); border-top: 0; }
.st-div-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--stock-0); border-top: 1px solid rgba(19,20,19,.12); }
.st-div-row:nth-child(even) { background: var(--stock-1); }
.st-div-row:first-child { border-top: 0; }
.st-div-row .st-who b { font-size: 19px; }

@media (max-width: 767px) { .st-hmd { display: none; } }
@media (max-width: 639px) { .st-hsm { display: none; } }
@media (max-width: 760px) {
  .st-mast .mast-body { padding-bottom: 92px; }
  .st-mast .subnav a { font-size: 18px; }
  .st-bar h2 { font-size: 26px; }
  .st-bar-r { text-align: left; }
  .st-sum h3 { font-size: 21px; }
  .st-sheet { padding: 18px 14px 22px; }
  .st-filter--inline { flex-direction: row !important; }
  .st-win > summary { gap: 10px; padding: 10px 12px; }
  .st-rank { width: 30px; font-size: 24px; }
  .st-who b { font-size: 18px; }
  .st-amt { font-size: 24px; }
  .st-table .st-drv { font-size: 18px; }
  table.ptable.st-table { display: table; }
}

/* ==========================================================================
   Boost the Purse (racing_boost*.html): same sections as views/donate/*.php
   ========================================================================== */
.bs-lede { margin: 18px 0 0; font-size: 18px; max-width: 52ch; color: var(--ink-hi); }
.bs-wrap { max-width: 860px; }
.bs-flash { margin-bottom: 24px; padding: 12px 16px; background: rgba(232,163,61,.18); border: 1.5px solid var(--sodium); border-left-width: 6px; font-size: 15px; font-weight: 600; text-align: center; }
.bs-purse { margin-bottom: 28px; padding: 26px 24px; text-align: center; }
.bs-purse-k { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mid); }
.bs-purse-total { margin-top: 8px; font-family: var(--f-iron); font-size: clamp(56px, 7vw, 80px); line-height: .9; color: var(--sodium); font-variant-numeric: tabular-nums; }
.bs-purse-sub { margin-top: 8px; font-size: 14px; color: var(--ink-hi); }
.bs-card { padding: 32px; background: var(--stock-0); border: 1.5px solid var(--black); box-shadow: 0 14px 28px -20px rgba(19,20,19,.45); }
.bs-form { display: grid; gap: 22px; }
.bs-step { display: grid; gap: 10px; }
.bs-label { font-family: var(--f-steel); font-weight: 700; font-size: 24px; line-height: 1.05; }
.bs-select, .bs-select select { width: 100%; }
.bs-select select { padding-right: 44px; }
.bs-tgts { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-tgts .tgt, .bs-presets .preset { min-height: 46px; padding: 0 16px; background: var(--stock-0); border: 1.5px solid var(--black); color: var(--black); font-weight: 700; font-size: 15px; transition: background-color .2s, color .2s; }
.bs-tgts .tgt:hover, .bs-presets .preset:hover { background: var(--stock-1); }
.bs-tgts .tgt[aria-pressed="true"], .bs-presets .preset[aria-pressed="true"] { background: var(--black); color: var(--mineral); }
.bs-tgts .tgt:disabled, .bs-tgts .tgt.is-dim { opacity: .4; cursor: not-allowed; }
.bs-presets .preset { min-width: 76px; font-family: var(--f-iron); font-weight: 400; font-size: 24px; }
.bs-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bs-pick-wrap { display: grid; gap: 8px; }
.bs-pick.hidden, .bs-pick-wrap.hidden { display: none !important; }
.bs-help { margin: 0; font-size: 13px; color: var(--ink-dark-mid); }
.bs-warn { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; font-size: 13px; color: var(--taconite); }
.bs-warn .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.bs-amt { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 14px; background: var(--stock-0); border: 1.5px solid var(--black); }
.bs-amt span { font-family: var(--f-iron); font-size: 28px; color: var(--ink-dark-mid); }
.bs-amt input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--f-iron); font-size: 28px; color: var(--black); }
.bs-amt:focus-within { outline: 3px solid var(--black); outline-offset: 3px; }
.bs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bs-two > div { display: grid; gap: 8px; align-content: start; }
.bs-flabel { margin-right: 0; }
.bs-req { color: var(--red); letter-spacing: .06em; }
.bs-opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-dark-lo); }
.bs-input { width: 100%; min-height: 46px; padding: 0 14px; background: var(--stock-0); border: 1.5px solid var(--black); font-weight: 600; font-size: 15px; color: var(--black); }
.bs-input::placeholder { color: var(--ink-dark-lo); font-weight: 500; }
.bs-input.is-anon { background: var(--stock-2); color: var(--ink-dark-lo); }
.bs-input.is-err { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.bs-err { margin: 0; font-size: 13px; font-weight: 600; color: var(--red); }
.bs-anon { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--stock-1); border: 1px solid rgba(19,20,19,.3); font-size: 14px; cursor: pointer; }
.bs-anon input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.bs-pay { display: grid; justify-items: center; gap: 12px; padding-top: 22px; border-top: 4px double var(--black); }
.bs-pay-h { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dark-mid); text-align: center; }
.bs-pay-btn { width: 100%; max-width: 380px; }
.bs-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; }
.bs-brands span { padding: 4px 8px; border: 1px solid rgba(19,20,19,.3); background: var(--stock-0); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-dark-mid); }
.bs-secure { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--ink-dark-lo); }
.bs-secure .ico { width: 14px; height: 14px; }
.bs-nocard { padding: 12px 16px; background: var(--stock-1); border: 1px dashed rgba(19,20,19,.4); font-size: 14px; color: var(--ink-dark-mid); text-align: center; }
.bs-apps { display: grid; justify-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(19,20,19,.25); }
.bs-app-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bs-app { min-width: 120px; }
.bs-app:hover { color: var(--red); }
.bs-handles { margin: 0; max-width: 46ch; font-size: 12px; color: var(--ink-dark-lo); text-align: center; }
.bs-handles b { font-weight: 700; color: var(--ink-dark-mid); }
.bs-pledge { display: grid; gap: 8px; width: 100%; max-width: 380px; }
.bs-pledge-btn { width: 100%; }

.bs-done-wrap { max-width: 720px; }
.bs-done-card { padding: 48px 32px; background: var(--stock-0); border: 1.5px solid var(--black); text-align: center; box-shadow: 0 14px 28px -20px rgba(19,20,19,.45); }
.bs-done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; background: var(--black); color: var(--mineral); }
.bs-done-ico--ok { background: var(--red); }
.bs-done-ico .ico { width: 32px; height: 32px; }
.bs-done-p { margin: 18px auto 0; max-width: 46ch; font-size: 17px; color: var(--ink-dark-mid); }
.bs-done-p strong { color: var(--ink-dark); }
.bs-done-note { margin: 24px auto 0; max-width: 52ch; padding: 14px 16px; background: rgba(232,163,61,.16); border: 1.5px solid var(--sodium); font-size: 14px; text-align: left; }
.bs-done-small { margin: 10px 0 0; font-size: 13px; color: var(--ink-dark-lo); }
.bs-done-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

@media (max-width: 760px) {
  .bs-lede { font-size: 16px; }
  .bs-card { padding: 20px 16px; }
  .bs-two, .bs-pick { grid-template-columns: 1fr; }
  .bs-done-card { padding: 36px 18px; }
}
.pp-tot td { border-bottom-color: var(--black) !important; }
.bs-amt input::placeholder { font-family: var(--f-body); font-size: 16px; font-weight: 500; text-transform: none; color: var(--ink-dark-lo); }
.st-table tr:last-child td { border-bottom-color: var(--black) !important; }
.bs-form, .bs-step, .bs-pick-wrap, .bs-two > div { grid-template-columns: minmax(0, 1fr); }
.bs-card { min-width: 0; }
.bs-select select { min-width: 0; text-overflow: ellipsis; }

/* Stats, Season Points: the scoring board on steel. Class rows are struck in
   Ironware on the dark ground; an opened class drops its standings onto the plate. */
.st-board .st-bar { background: var(--steel-0); border: 1px solid var(--seam); border-bottom: 4px solid var(--red); }
.st-board .st-stack { border-bottom-color: var(--steel-5); }
.st-board .st-det { border-top-color: var(--seam); }
.st-board .st-sum { color: var(--mineral); }
.st-board .st-sum:hover { color: var(--red-hot); }
.st-board .st-sum h3 .ico { background: var(--steel-3); box-shadow: inset 0 0 0 1px var(--steel-5); }
.st-board .st-det[open] { background: var(--steel-2); box-shadow: inset 0 1px 0 rgba(220,229,217,.07), 0 18px 32px -18px rgba(0,0,0,.7); }
.st-board .st-det[open] > .st-sum { background: var(--steel-3); color: var(--mineral); border-bottom: 4px solid var(--red); }
.st-board .st-det[open] > .st-sum h3 .ico { background: var(--red); box-shadow: none; }
.st-board .st-table { color: var(--ink-hi); }
.st-board .st-table .st-pos { color: var(--ink-mid); }
.st-board .st-car { color: var(--black); background: var(--mineral); box-shadow: inset 0 0 0 2px var(--black), inset 0 0 0 4px var(--mineral), inset 0 0 0 5px rgba(19,20,19,.35); height: 34px; min-width: 50px; }
.st-board .st-town { color: var(--ink-mid); }
.st-board .st-table .st-pts { color: var(--mineral); font-size: 28px; }
.st-board .st-table tbody tr:hover td { background: rgba(220,229,217,.04); }
.st-board .st-det .st-table tbody tr:first-child td { background: rgba(166,30,47,.22); }
.st-board .st-det .st-table tbody tr:first-child .st-pos { color: var(--red-hot); }
.st-board .st-det .st-table tbody tr:first-child .st-pts { color: var(--sodium); }
.st-board .st-det .st-table tbody tr:first-child .st-car { background: var(--red); color: var(--mineral); box-shadow: inset 0 0 0 2px var(--red-deep); }
.st-board .st-cup--2 { color: var(--ink-mid); }
.st-board .st-table th { color: var(--ink-mid); }
.st-board .st-empty { background: transparent; border-color: var(--steel-5); }
.st-board .st-empty p { color: var(--ink-hi); }
.st-board .st-scroll { padding: 0 8px 8px; }

/* Stats on steel for every tab. Race Results keeps its printed results sheet (stock on
   steel); $Winnings runs as steel rows. */
.st-page .st-bar { background: var(--steel-0); border: 1px solid var(--seam); border-bottom: 4px solid var(--red); }
.st-page .st-sheet { background: var(--stock-0); box-shadow: 0 24px 40px -22px rgba(0,0,0,.8); }
.st-page .st-money { color: var(--mineral); }
.st-page .st-bar .st-money { color: var(--sodium); }
.st-page .st-sheet .st-money { color: var(--ink-dark); }
.st-page .st-wins { gap: 0; border-top: 1px solid var(--seam); border-bottom: 2px solid var(--steel-5); }
.st-page .st-win { background: transparent; border: 0; border-bottom: 1px solid var(--seam); }
.st-page .st-win[open] { background: var(--steel-2); border-color: var(--seam); box-shadow: inset 0 1px 0 rgba(220,229,217,.07); }
.st-page .st-win > summary { min-height: 72px; padding: 14px 16px; }
.st-page .st-win > summary:hover { background: rgba(220,229,217,.04); }
.st-page .st-rank { font-size: 34px; color: var(--ink-lo); }
.st-page .st-rank.is-top { color: var(--red-hot); }
.st-page .st-who b { font-size: 24px; color: var(--mineral); }
.st-page .st-no { color: var(--ink-lo); }
.st-page .st-fin { color: var(--ink-mid); }
.st-page .st-amt { font-size: 34px; color: var(--mineral); }
.st-page .st-win:nth-child(-n+3) .st-amt, .st-page .st-div-row:nth-child(-n+3) .st-amt { color: var(--sodium); }
.st-page .st-chev { color: var(--ink-mid); }
.st-page .st-win-b { background: var(--steel-1); border-top: 1px solid var(--seam); }
.st-page .st-mini th { color: var(--ink-mid); border-bottom-color: var(--steel-5); }
.st-page .st-mini td { border-bottom-color: var(--seam); }
.st-page .st-dim { color: var(--ink-lo); }
.st-page .st-fine { color: var(--ink-lo); }
.st-page .st-div-rows { border-color: var(--seam); }
.st-page .st-div-row { background: var(--steel-2); border-top-color: var(--seam); }
.st-page .st-div-row:nth-child(even) { background: var(--steel-1); }
.st-page .st-empty { background: transparent; border-color: var(--steel-5); }
.st-page .st-empty p { color: var(--ink-hi); }
.st-page .st-empty small { color: var(--ink-lo); }
.st-page .st-sheet .st-empty { background: var(--stock-0); border-color: var(--black); }
.st-page .st-sheet .st-empty p { color: var(--ink-dark-mid); }
.st-page .st-bar:not(.st-bar--sm) { min-height: 200px; align-items: flex-end; padding: 28px 28px 22px; background: linear-gradient(90deg, rgba(12,13,12,.92) 0%, rgba(12,13,12,.55) 55%, rgba(12,13,12,.2) 100%), url(/assets/iron/photos/victory-lane.jpg) center 40% / cover; }
.st-board .st-bar:not(.st-bar--sm) { background: linear-gradient(90deg, rgba(12,13,12,.92) 0%, rgba(12,13,12,.55) 55%, rgba(12,13,12,.2) 100%), url(/assets/iron/photos/crowd.jpg) center 45% / cover; }
.st-page .st-bar:not(.st-bar--sm) h2 { font-size: clamp(56px, 6vw, 96px); line-height: .84; }
.st-page .st-bar > span, .st-page .st-bar-r { color: var(--ink-hi); }

/* Event page on steel: the event card opens on a full-width photo header (title struck
   over the grandstand); its body stays a program-stock sheet for reserving and reading. */
.ed-page .ed-wrap { max-width: 1200px; }
.ed-page .ed-card { border: 0; box-shadow: 0 30px 50px -24px rgba(0,0,0,.9); }
.ed-page .ed-head { position: relative; isolation: isolate; min-height: 420px; align-items: flex-end; padding: 48px 44px 40px; border-bottom: 4px solid var(--red); overflow: hidden; }
.ed-page .ed-head::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/assets/iron/photos/grandstand-race.jpg) center 45% / cover; filter: saturate(.78); transform-origin: 60% 50%; animation: drift 38s var(--ease-io) infinite alternate; }
.ed-page .ed-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,12,.94) 0%, rgba(12,13,12,.55) 45%, rgba(12,13,12,.15) 100%), linear-gradient(90deg, rgba(12,13,12,.6), rgba(12,13,12,0) 60%); }
@media (prefers-reduced-motion: reduce) { .ed-page .ed-head::before { animation: none; } }
.ed-page .ed-date { width: 140px; min-height: 140px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -3px 0 var(--red-deep); }
.ed-page .ed-date b { font-size: 84px; }
.ed-page .ed-title { font-size: clamp(56px, 6.6vw, 104px); line-height: .84; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.ed-page .ed-when { font-size: 26px; color: var(--mineral); }
.ed-page .ed-body { padding: 40px 44px 44px; }
.ed-page .ed-off { border-bottom: 4px solid var(--red-deep); }
.ed-page .ed-gal-main, .ed-page .ed-flyer { border-color: var(--seam); }
.ed-page .ed-back { color: var(--mineral); }
.ed-page .ed-back:hover { color: var(--red-hot); }
@media (max-width: 760px) {
  .ed-page .ed-head { min-height: 340px; padding: 28px 20px 24px; }
  .ed-page .ed-date { width: 92px; min-height: 92px; }
  .ed-page .ed-date b { font-size: 54px; }
  .ed-page .ed-title { font-size: 48px; }
  .ed-page .ed-when { font-size: 19px; }
  .ed-page .ed-body { padding: 24px 20px 28px; }
}
.ed-page .ed-body { color: var(--ink-dark); --focus: var(--black); }
.ed-page .ed-body .select select { background: var(--stock-0); border-color: var(--black); color: var(--ink-dark); }

/* ==========================================================================
   Race Night Live (/live, racing_live.html): the night's board on steel, each class
   a program sheet on stock, Listen & Watch as a riveted panel of tiles. Flag colours
   appear only in the race-state marks (green = on track, checkered = final).
   ========================================================================== */
.lv-lede { margin: 18px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.45; color: var(--ink-hi); }
.lv-page { padding-top: 56px; }
.lv-board { min-height: 120px; }
.lv-chk { display: inline-block; flex: none; width: 12px; height: 12px; background: var(--flag-white); color: var(--ink-dark); box-shadow: 0 0 0 1px rgba(19,20,19,.45); }

/* the night: title, date, state */
.lv-night { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 26px 30px; }
.lv-night-h { margin: 0; font-family: var(--f-steel); font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1; color: var(--mineral); text-wrap: balance; }
.lv-night-w { margin: 8px 0 0; font-size: 16px; font-weight: 500; color: var(--ink-mid); }
.lv-night-s { display: grid; justify-items: end; gap: 8px; }
.lv-state { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-hi); background: var(--steel-0); border: 1.5px solid var(--steel-5); }
.lv-state--live { border-color: var(--flag-green); }
.lv-state .flagdot { width: 12px; height: 12px; }
.lv-upd { font-size: 13px; color: var(--ink-mid); }

/* classes: tabs (live.js) over one program sheet per class */
.lv-tabs { margin-top: 32px; }
.lv-classes { display: grid; gap: 24px; margin-top: 24px; }
.lv-cls { padding: 6px 28px 10px; border: 1.5px solid var(--black); }
.lv-cls[hidden] { display: none; }
.lv-cls-h { display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px 0 14px; font-family: var(--f-steel); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; color: var(--ink-dark); border-bottom: 4px double var(--ink-dark); }
.lv-race { border-bottom: 1px solid rgba(19,20,19,.22); }
.lv-race:last-child { border-bottom: 0; }
.lv-race-s { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 0; cursor: pointer; list-style: none; color: var(--ink-dark); }
.lv-race-s::-webkit-details-marker { display: none; }
.lv-race-t { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.lv-race-n { font-family: var(--f-steel); font-weight: 700; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.lv-race-m { font-size: 14px; color: var(--ink-dark-lo); }
.lv-race-s:hover .lv-race-n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.lv-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stock-0); background: var(--ink-dark); }
.lv-pill--on { background: var(--red); }
.lv-pill--later { color: var(--ink-dark-mid); background: transparent; box-shadow: inset 0 0 0 1px var(--ink-dark-lo); }
.lv-race-chev { flex: none; width: 22px; height: 22px; color: var(--ink-dark-mid); transition: transform .2s var(--ease-out); }
.lv-race[open] .lv-race-chev { transform: rotate(180deg); }
.lv-race-empty { margin: 0; padding: 2px 0 20px; font-size: 15px; color: var(--ink-dark-mid); }

/* the running order / lineup: a printed program table */
.lv-table { margin: 6px 0 22px; color: var(--ink-dark); }
.lv-table th { padding: 0 10px 8px; }
.lv-table td { padding: 9px 10px; }
.lv-c { text-align: center !important; width: 1%; white-space: nowrap; }
.lv-pos { font-family: var(--f-iron); font-size: 26px; line-height: 1; }
.lv-pos--dim { color: var(--ink-dark-mid); }
.lv-car { display: inline-grid; place-items: center; min-width: 46px; height: 32px; padding: 0 6px; font-family: var(--f-iron); font-size: 20px; line-height: 1; background: var(--stock-0); box-shadow: inset 0 0 0 1.5px var(--ink-dark); }
.lv-drv { font-family: var(--f-steel); font-weight: 700; font-size: 19px; text-transform: uppercase; }
.lv-table tr.win .lv-drv, .lv-table tr.win .lv-pos { color: var(--red); }
.lv-town, .lv-start { font-size: 14px; color: var(--ink-dark-mid); }

/* off nights: the next race night, or the schedule to come */
.lv-off { padding: 26px 30px; }
.lv-off-h { margin: 0; font-family: var(--f-steel); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--mineral); }
.lv-off-h .tag { vertical-align: 5px; margin-left: 6px; }
.lv-off p { margin: 8px 0 0; color: var(--ink-mid); }
.lv-next-h { margin: 72px 0 0; }
.lv-in > .lv-next-h:first-child { margin-top: 0; }
.lv-next-note { margin: 14px 0 0; max-width: 52ch; font-size: 15px; color: var(--ink-mid); }
.lv-empty { display: grid; justify-items: center; gap: 16px; }
.lv-empty small { font-size: 15px; color: var(--ink-mid); }
.lv-last { margin: 20px 0 0; }
.lv-last a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink-hi); }
.lv-last a:hover { color: var(--red-hot); }
.lv-last .ico { width: 16px; height: 16px; }

/* Listen & Watch */
.lv-follow { margin-top: 96px; }
.lv-air { padding: 28px 30px; margin-bottom: 24px; }
.lv-air-h { display: flex; align-items: center; gap: 20px; }
.lv-air-ico { flex: none; display: grid; place-items: center; width: 60px; height: 60px; background: var(--steel-0); border: 1px solid var(--seam); color: var(--sodium); }
.lv-air-ico .ico { width: 30px; height: 30px; }
.lv-air-t { margin: 0; font-family: var(--f-steel); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; color: var(--mineral); }
.lv-air-t .tag { vertical-align: 6px; margin-left: 6px; }
.lv-air-h p { margin: 6px 0 0; color: var(--ink-mid); }
.lv-audio { display: block; width: 100%; margin-top: 22px; color-scheme: dark; }
html[data-theme="day"] .lv-audio { color-scheme: light; }
.lv-air-alt { margin: 12px 0 0; font-size: 13px; color: var(--ink-mid); }
.lv-air-alt a { color: var(--ink-hi); }
.lv-ways { display: flex; flex-wrap: wrap; gap: 1px; background: var(--seam); border: 1px solid var(--seam); }
.lv-way { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; background: var(--steel-2); }
.lv-way-k { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-steel); font-weight: 700; font-size: 20px; line-height: 1.1; color: var(--ink-hi); }
.lv-way-k .ico { flex: none; width: 22px; height: 22px; color: var(--ink-mid); }
.lv-way-v { margin: 4px 0 0; font-family: var(--f-iron); font-size: clamp(28px, 2.4vw, 34px); line-height: 1; text-transform: uppercase; color: var(--sodium); overflow-wrap: anywhere; }
.lv-way-v--big { font-size: clamp(52px, 5vw, 72px); line-height: .9; }
.lv-way-v--sm { font-family: var(--f-body); font-weight: 700; font-size: 17px; line-height: 1.3; text-transform: none; color: var(--mineral); }
.lv-way-v a { color: inherit; text-decoration-thickness: 1.5px; }
.lv-way-v a:hover { color: var(--red-hot); }
.lv-way-d { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-mid); }
.lv-way .btn { align-self: flex-start; margin-top: auto; }
.lv-way .btn .ico { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .lv-lede { font-size: 16px; }
  .lv-page { padding-top: 32px; }
  .lv-night { padding: 20px; }
  .lv-night-s { justify-items: start; }
  .lv-tabs { margin-top: 24px; }
  .lv-tabs button { font-size: 17px; padding: 0 12px; }
  .lv-cls { margin: 0 -20px; padding: 4px 16px 6px; border-left: 0; border-right: 0; }
  .lv-race-t { flex-direction: column; align-items: flex-start; }
  .lv-race-n { font-size: 21px; }
  .lv-hsm { display: none; }
  .lv-table th, .lv-table td { padding-left: 6px; padding-right: 6px; }
  .lv-drv { font-size: 17px; }
  .lv-next-h { margin-top: 56px; }
  .lv-off { padding: 20px; }
  .lv-follow { margin-top: 72px; }
  .lv-air { padding: 22px 20px; }
  .lv-air-h { align-items: flex-start; gap: 14px; }
  .lv-air-ico { width: 48px; height: 48px; }
  .lv-way { padding: 22px 20px; }
}
