/* ==========================================================================
   HIBBING SPEEDWAY — WEBSITE
   The track's printed program, rebuilt for the web: steel for race night,
   program stock for reading, a broadcast lower-third for the thing you came for.
   ========================================================================== */

body.web { overflow-x: clip; background: var(--steel-1); color: var(--ink-hi); font-size: 17px; line-height: 1.55; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 900px) { .wrap { padding: 0 20px; } }

/* ---------- Race-day strip (top of every page) ---------- */
.strip {
  display: flex; align-items: center; gap: 28px; height: 36px; padding: 0 48px; overflow: hidden;
  background: var(--red); color: var(--mineral);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.strip b { font-weight: 800; }
.strip .sep { width: 5px; height: 5px; background: rgba(220,229,217,.55); flex: none; }
.strip a { margin-left: auto; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.strip a .ico { width: 14px; height: 14px; }
@media (max-width: 900px) { .strip { padding: 0 20px; gap: 16px; } .strip .hide-sm { display: none; } }

/* ---------- Site header ---------- */
.head { position: sticky; top: 40px; z-index: 50; background: var(--steel-0); color: var(--ink-hi); }
body.no-sc .head { top: 0; }
.head-in { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.nav a {
  position: relative; display: flex; align-items: center; padding: 0 15px;
  font-family: var(--f-steel); font-weight: 600; font-size: 21px; letter-spacing: .03em; text-decoration: none; color: var(--ink-mid);
  transition: color .2s;
}
.nav a:hover { color: var(--mineral); }
.nav a[aria-current="page"] { color: var(--mineral); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 4px; background: var(--red); }
.head-act { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--seam); color: var(--ink-hi); position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--steel-3); }
.icon-btn .ico { width: 20px; height: 20px; }
.icon-btn .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--red); color: var(--mineral); font-size: 11px; font-weight: 800; }
.head .truss { color: var(--steel-4); height: 12px; -webkit-mask-size: 24px 12px; mask-size: 24px 12px; }
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .head-act { margin-left: auto; }
}

/* ---------- Section rhythm ---------- */
.sec { padding: 112px 0; }
.sec--tight { padding: 80px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 4px double currentColor; }
.sec-head h2 { margin: 0; }
.sec-head .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; padding-bottom: 6px; }
.sec-head .more .ico { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.sec-head .more:hover .ico { transform: translateX(4px); }
.sec-head .aside { font-size: 15px; color: var(--ink-mid); max-width: 44ch; text-align: right; padding-bottom: 6px; }
.stock .sec-head .aside { color: var(--ink-dark-mid); }

.h-xl { font-family: var(--f-iron); font-size: clamp(56px, 7vw, 96px); line-height: .88; text-transform: uppercase; letter-spacing: 0; margin: 0; text-wrap: balance; }
.h-lg { font-family: var(--f-iron); font-size: clamp(40px, 4.6vw, 64px); line-height: .9; text-transform: uppercase; margin: 0; text-wrap: balance; }
.h-md { font-family: var(--f-steel); font-weight: 700; font-size: clamp(30px, 2.6vw, 40px); line-height: 1; margin: 0; text-wrap: balance; }
.h-sm { font-family: var(--f-steel); font-weight: 700; font-size: 26px; line-height: 1.05; margin: 0; }
.lede { font-size: 20px; line-height: 1.5; max-width: 58ch; color: var(--ink-mid); margin: 0; }
.stock .lede { color: var(--ink-dark-mid); }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.1em; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: clamp(680px, calc(100vh - 152px), 940px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--black); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform-origin: 60% 50%; animation: drift 38s var(--ease-io) infinite alternate; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.14) translateX(-1.5%); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,12,.55) 0%, rgba(12,13,12,0) 26%, rgba(12,13,12,.1) 48%, rgba(12,13,12,.86) 78%, rgba(12,13,12,.96) 100%), linear-gradient(90deg, rgba(12,13,12,.6) 0%, rgba(12,13,12,0) 55%); }
.hero-body { position: relative; z-index: 2; padding-bottom: 36px; }
.hero h1 { font-family: var(--f-iron); font-weight: 400; font-size: clamp(56px, 6.6vw, 96px); line-height: .86; letter-spacing: 0; text-transform: uppercase; margin: 0 0 22px; max-width: 11.5ch; color: var(--mineral); text-wrap: balance; }
.hero h1 .r { color: var(--mineral); -webkit-text-stroke: 0; }
.hero-sub { display: flex; align-items: center; gap: 18px; font-family: var(--f-steel); font-size: 30px; font-weight: 500; color: var(--ink-hi); }
.hero-sub .truss { width: 120px; color: var(--red); }
.hero-wx { position: absolute; z-index: 2; top: 32px; right: 48px; display: flex; gap: 0; background: rgba(12,13,12,.78); border: 1px solid var(--seam); }
.wx { display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; min-width: 96px; border-right: 1px solid var(--seam); }
.wx:last-child { border-right: 0; }
.wx b { font-family: var(--f-iron); font-weight: 400; font-size: 28px; line-height: 1; }
.wx span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); margin-top: 6px; }

/* Broadcast lower-third: the race card */
.racecard { position: relative; z-index: 3; display: grid; grid-template-columns: auto minmax(260px, 1.25fr) auto auto auto; align-items: stretch; }
.racecard > * { display: flex; flex-direction: column; justify-content: center; padding: 18px 26px; }
.rc-date { background: var(--red); color: var(--mineral); align-items: center; padding: 14px 26px; min-width: 120px; }
.rc-date .dow { font-weight: 800; font-size: 12px; letter-spacing: .2em; }
.rc-date .d { font-family: var(--f-iron); font-size: 64px; line-height: .86; }
.rc-date .m { font-family: var(--f-steel); font-weight: 700; font-size: 22px; letter-spacing: .1em; }
.rc-main { border-right: 1px solid var(--seam); }
.rc-main .presented { font-size: 13px; color: var(--ink-mid); margin-top: 6px; }
.rc-main .presented b { color: var(--ink-hi); font-weight: 700; }
.rc-main .name { font-family: var(--f-steel); font-weight: 700; font-size: 38px; line-height: 1; }
.rc-main .when { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 15px; color: var(--ink-hi); }
.rc-main .when span { display: inline-flex; align-items: center; gap: 6px; }
.rc-main .when .ico { width: 16px; height: 16px; color: var(--ink-mid); }
.rc-classes { border-right: 1px solid var(--seam); gap: 8px; }
.rc-classes .chips { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
.rc-k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); }
.rc-count { border-right: 1px solid var(--seam); gap: 6px; min-width: 250px; }
.count { display: flex; align-items: flex-end; gap: 6px; font-variant-numeric: tabular-nums; }
.count .seg { display: flex; flex-direction: column; align-items: center; }
.count .seg b { font-family: var(--f-iron); font-weight: 400; font-size: 46px; line-height: .9; min-width: 1.3em; text-align: center; }
.count .seg i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--ink-mid); margin-top: 4px; }
.count .colon { font-family: var(--f-iron); font-size: 34px; line-height: 1; color: var(--ink-lo); padding-bottom: 18px; }
.rc-act { gap: 10px; padding-right: 0; }
@media (max-width: 1280px) { .racecard { grid-template-columns: auto 1fr auto; } .rc-classes, .rc-count { display: none; } }

/* ---------- Program (order of events) ---------- */
.program { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; }
.oe { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.oe li { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(19,20,19,.22); }
.oe li:first-child { padding-top: 0; }
.oe .t { font-family: var(--f-iron); font-size: 34px; line-height: 1; white-space: nowrap; }
.oe .t small { font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; margin-left: 4px; }
.oe .w { font-family: var(--f-steel); font-weight: 700; font-size: 30px; line-height: 1; }
.oe .n { display: block; margin-top: 6px; font-family: var(--f-body); font-weight: 500; font-size: 15px; color: var(--ink-dark-mid); }
.oe li.hl .t, .oe li.hl .w { color: var(--red); }
.oe li.hl { border-bottom: 2px solid var(--red); }

.pricebox { padding: 26px 28px 22px; }
.pricebox h3 { margin: 0 0 14px; }
.pricebox dl { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.pricebox dt, .pricebox dd { margin: 0; padding: 10px 0; border-bottom: 1px dashed rgba(19,20,19,.3); }
.pricebox dd { font-family: var(--f-iron); font-size: 24px; text-align: right; }
.pricebox dl > :nth-last-child(-n+2) { border-bottom: 0; }

.reserve { display: grid; gap: 12px; }
.res { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; background: var(--stock-0); border: 1.5px solid var(--black); }
.res .nm { font-family: var(--f-steel); font-weight: 700; font-size: 22px; line-height: 1.05; }
.res .note { font-size: 14px; color: var(--ink-dark-mid); margin-top: 4px; }
.res .avail { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.res .slots { display: flex; gap: 3px; }
.res .slots i { width: 10px; height: 14px; background: var(--black); }
.res .slots i.open { background: transparent; box-shadow: inset 0 0 0 1.5px var(--black); }
.res .low { color: var(--red); }
.res .pr { font-family: var(--f-iron); font-size: 30px; line-height: 1; text-align: right; }
.res .pr small { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dark-mid); margin-top: 4px; }

/* ---------- The Wire (editorial) ---------- */
.wire { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; }
.lead-story { display: block; text-decoration: none; color: inherit; }
.lead-story .photo { aspect-ratio: 16 / 10; }
.lead-story .photo img { transition: transform .9s var(--ease-out); }
.lead-story:hover .photo img { transform: scale(1.035); }
.lead-story .meta { display: flex; gap: 14px; align-items: center; margin: 18px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mid); }
.lead-story .meta .cat { color: var(--mineral); background: var(--red); padding: 4px 8px; letter-spacing: .14em; }
.lead-story h3 { font-family: var(--f-iron); font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); line-height: .94; text-transform: uppercase; margin: 26px 0 14px; text-wrap: balance; }
.lead-story p { margin: 0; color: var(--ink-mid); font-size: 18px; max-width: 60ch; }
.wire-list { list-style: none; margin: 0; padding: 0; }
.wire-list li { border-bottom: 1px solid var(--seam); }
.wire-list li:first-child { border-top: 4px double var(--seam); }
.wire-list a { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 20px 0; text-decoration: none; color: inherit; }
.wire-list .th { aspect-ratio: 1; }
.wire-list .d { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mid); }
.wire-list .d .c { color: var(--red-hot); }
.wire-list h4 { margin: 0 0 8px; font-family: var(--f-steel); font-weight: 700; font-size: 25px; line-height: 1.02; transition: color .2s; }
.wire-list a:hover h4 { color: var(--red-hot); }
.stock .wire-list li { border-color: rgba(19,20,19,.25); }
.stock .wire-list .d { color: var(--ink-dark-mid); }
.stock .wire-list .d .c { color: var(--red); }
.stock .wire-list a:hover h4 { color: var(--red); }

/* ---------- Standings ---------- */
.standings { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1.5px solid currentColor; width: max-content; max-width: 100%; }
.tabs button, .tabs a { min-height: 44px; padding: 0 16px; background: transparent; border: 0; border-right: 1.5px solid currentColor; font-family: var(--f-steel); font-weight: 700; font-size: 19px; letter-spacing: .02em; color: inherit; text-decoration: none; display: inline-flex; align-items: center; transition: background-color .2s, color .2s; }
.tabs > :last-child { border-right: 0; }
.tabs button:hover, .tabs a:hover { background: rgba(220,229,217,.08); }
.stock .tabs button:hover, .stock .tabs a:hover { background: rgba(19,20,19,.06); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { background: var(--red) !important; color: var(--mineral); }
.pylon { margin-top: 28px; }
.pylon-row { display: grid; grid-template-columns: 54px 64px 1fr auto auto; align-items: center; gap: 18px; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--seam); }
.pylon-row .pos { font-family: var(--f-iron); font-size: 32px; line-height: 1; text-align: center; color: var(--ink-mid); }
.pylon-row:first-child .pos { color: var(--mineral); }
.pylon-row .who { min-width: 0; }
.pylon-row .who b { display: block; font-family: var(--f-steel); font-weight: 700; font-size: 26px; line-height: 1; }
.pylon-row .who b span { font-weight: 400; color: var(--ink-mid); }
.pylon-row .who small { display: block; font-size: 13px; color: var(--ink-mid); margin-top: 3px; }
.pylon-row .pts { font-family: var(--f-iron); font-size: 30px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.pylon-row .pts small, .pylon-row .wins small { display: block; font-family: var(--f-body); font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--ink-mid); text-align: right; margin-top: 3px; }
.pylon-row .wins { font-family: var(--f-iron); font-size: 30px; line-height: 1; text-align: right; min-width: 52px; }
.pylon-row:first-child { background: linear-gradient(90deg, rgba(166,30,47,.22), rgba(166,30,47,0) 70%); }
.presented-by { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13px; color: var(--ink-mid); }
.presented-by b { color: var(--ink-hi); font-weight: 700; }
.presented-by .truss { flex: 1; color: var(--steel-4); }

/* Season leaders panel */
.leaders { display: grid; gap: 0; border: 1px solid var(--seam); }
.leader { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; padding: 22px 24px; border-bottom: 1px solid var(--seam); }
.leader:last-child { border-bottom: 0; }
.leader .k { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); }
.leader .nm { font-family: var(--f-steel); font-weight: 700; font-size: 30px; line-height: 1; }
.leader .nm small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 14px; color: var(--ink-mid); margin-top: 5px; }
.leader .v { font-family: var(--f-iron); font-size: 44px; line-height: .9; text-align: right; }

/* ---------- Then & Now ---------- */
.thennow { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--black); user-select: none; --x: 50%; }
.thennow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thennow .now img { object-position: 50% 40%; }
.thennow .then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.thennow .then img { filter: grayscale(1) contrast(1.2) sepia(.12); object-position: 50% 60%; }
.thennow .handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 18px; transform: translateX(-50%); pointer-events: none; display: flex; justify-content: center; }
.thennow .handle::before { content: ""; position: absolute; inset: 0; background: var(--mineral); -webkit-mask: var(--truss) repeat-y center / 18px 36px; mask: var(--truss) repeat-y center / 18px 36px; transform: rotate(0deg); }
.thennow .handle .grip { position: absolute; top: 50%; transform: translateY(-50%); width: 72px; height: 56px; display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--red); color: var(--mineral); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.thennow .handle .grip .ico { width: 26px; height: 26px; }
.thennow .tag { position: absolute; bottom: 24px; z-index: 2; padding: 8px 12px; background: rgba(12,13,12,.82); color: var(--mineral); font-family: var(--f-steel); font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.thennow .tag.l { left: 24px; }
.thennow .tag.r { right: 24px; }
.thennow input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.thennow input[type="range"]:focus-visible + .handle .grip { outline: 3px solid var(--sodium); outline-offset: 3px; }

.heritage { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: end; margin-top: 64px; }
.hof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hof-card { display: block; text-decoration: none; color: inherit; }
.hof-card .duo { aspect-ratio: 4 / 5; }
.hof-card .duo img { transition: transform .8s var(--ease-out); }
.hof-card:hover .duo img { transform: scale(1.04); }
.hof-card b { display: block; margin-top: 12px; font-family: var(--f-steel); font-weight: 700; font-size: 23px; line-height: 1; }
.hof-card small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-mid); line-height: 1.35; }
.stock .hof-card small { color: var(--ink-dark-mid); }

/* ---------- Menu board ---------- */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.board-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(19,20,19,.22); }
.board-item .th { width: 88px; height: 88px; }
.board-item b { font-family: var(--f-steel); font-weight: 700; font-size: 25px; line-height: 1; display: block; }
.board-item p { margin: 5px 0 0; font-size: 14px; color: var(--ink-dark-mid); line-height: 1.4; }
.board-item .pr { font-family: var(--f-iron); font-size: 30px; line-height: 1; }
.board-item .tag { display: inline-block; margin-left: 8px; padding: 2px 6px; font-family: var(--f-body); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mineral); background: var(--red); vertical-align: 4px; }
.steel .board-item { border-color: var(--seam); }
.steel .board-item p { color: var(--ink-mid); }

/* ---------- Purse board (Boost) ---------- */
.purse { display: flex; align-items: stretch; gap: 0; }
.purse .cell { padding: 22px 28px; border-right: 1px solid var(--seam); }
.purse .cell:last-child { border-right: 0; }
.purse .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); }
.digits { display: flex; gap: 4px; margin-top: 10px; }
.digits span { display: grid; place-items: center; min-width: 46px; height: 68px; padding: 0 4px; font-family: var(--f-iron); font-size: 52px; line-height: 1; background: var(--steel-0); border: 1px solid var(--seam); box-shadow: inset 0 -34px 0 rgba(255,255,255,.025), inset 0 1px 0 rgba(255,255,255,.04); color: var(--mineral); }
.digits span.p { min-width: 0; background: none; border: 0; box-shadow: none; font-size: 40px; color: var(--ink-mid); padding: 0 2px; }
.digits.hot span:not(.p) { color: var(--sodium); }
.digits.total span:not(.p) { background: var(--red); border-color: var(--red-deep); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amounts button { min-width: 72px; min-height: 48px; padding: 0 16px; background: transparent; border: 1.5px solid var(--ink-mid); color: var(--ink-hi); font-family: var(--f-iron); font-size: 24px; transition: background-color .2s, border-color .2s; }
.amounts button:hover { border-color: var(--mineral); }
.amounts button[aria-pressed="true"] { background: var(--mineral); color: var(--black); border-color: var(--mineral); }

/* ---------- Partners ---------- */
.partner-ad { position: relative; display: block; text-decoration: none; color: inherit; }
.partner-ad .frame { padding: 14px; background: var(--steel-2); border: 1px solid var(--seam); }
.partner-ad .frame img { width: 100%; height: auto; }
.partner-ad .cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 12px; }
.partner-ad .cap b { font-family: var(--f-steel); font-weight: 700; font-size: 22px; line-height: 1.05; }
.partner-ad .cap small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mid); white-space: nowrap; }
.community { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--seam); }
.community span { flex: 1 1 auto; padding: 22px 24px; border-right: 1px solid var(--seam); border-bottom: 1px solid var(--seam); font-family: var(--f-steel); font-weight: 700; font-size: 24px; color: var(--ink-mid); text-align: center; }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--steel-0); color: var(--ink-mid); padding: 0 0 32px; overflow: hidden; }
.foot::before { content: ""; position: absolute; inset: 0; background-image: var(--mottle); background-size: cover; opacity: .55; pointer-events: none; }
.foot > * { position: relative; }
.foot .truss { color: var(--red); }
.foot-top { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 40px; padding: 72px 0 56px; }
.foot-brand img { width: 200px; height: auto; }
.foot-brand p { margin: 22px 0 0; font-family: var(--f-steel); font-size: 24px; line-height: 1.1; color: var(--ink-hi); max-width: 22ch; }
.foot h5 { margin: 0 0 16px; font-family: var(--f-steel); font-weight: 700; font-size: 22px; color: var(--mineral); letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--mineral); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--seam); font-size: 12px; letter-spacing: .04em; color: var(--ink-lo); }
@media (max-width: 1000px) { .foot-top { grid-template-columns: 1fr 1fr; } }

/* ---------- Inner-page masthead ---------- */
.mast { position: relative; overflow: hidden; background: var(--steel-1); min-height: 420px; display: flex; align-items: flex-end; }
.mast-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.mast-photo img { width: 100%; height: 100%; object-fit: cover; }
.mast-photo.duo img { filter: grayscale(1) contrast(1.15) brightness(.85); }
.mast-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(19,20,19,.75), rgba(19,20,19,0) 45%); }
.mast-body { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 52px; width: 100%; }
.mast h1 { font-family: var(--f-iron); font-weight: 400; font-size: clamp(64px, 8vw, 96px); line-height: .84; text-transform: uppercase; margin: 0; max-width: 9ch; }
.mast .sub { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 16px; color: var(--ink-hi); max-width: 54ch; }
.mast .sub span { display: inline-flex; align-items: center; gap: 8px; }
.mast .sub .ico { width: 17px; height: 17px; color: var(--ink-mid); }
.mast-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.mast .truss { color: var(--steel-4); }
.subnav { display: flex; gap: 0; }
.mast-foot:has(.subnav) { background: var(--steel-0); border-top: 1px solid var(--seam); }
.subnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 24px; white-space: nowrap; flex: none; font-family: var(--f-steel); font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink-mid); border-right: 1px solid var(--seam); position: relative; }
.subnav a:first-child { border-left: 1px solid var(--seam); }
.subnav a:hover { color: var(--mineral); }
.subnav a[aria-current="page"] { color: var(--mineral); background: var(--steel-2); }
.subnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }

/* ---------- Filters / controls on stock ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 36px; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; min-height: 46px; padding: 0 44px 0 16px; background: var(--stock-0); border: 1.5px solid var(--black); font-weight: 600; font-size: 15px; color: var(--black); }
.steel .select select { background: var(--steel-2); border-color: var(--steel-5); color: var(--ink-hi); }
.select .ico { position: absolute; right: 14px; width: 18px; height: 18px; pointer-events: none; }
.field-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-right: 8px; }
.search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1.5px solid currentColor; min-width: 280px; }
.search input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 15px; }
.search .ico { width: 18px; height: 18px; }

/* ---------- Results sheet ---------- */
.sheet { background: var(--stock-0); border: 1.5px solid var(--black); padding: 30px 32px 32px; }
.sheet + .sheet { margin-top: 32px; }
.sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sheet-head .h-md { display: flex; align-items: center; gap: 14px; }
.sheet-head .facts { display: flex; gap: 22px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dark-mid); }
.ptable .drv b { font-family: var(--f-steel); font-weight: 700; font-size: 22px; line-height: 1; }
.ptable .drv small { display: block; font-size: 13px; color: var(--ink-dark-mid); margin-top: 2px; }
.ptable .pos { font-family: var(--f-iron); font-size: 28px; line-height: 1; width: 64px; }
.ptable .big { font-family: var(--f-iron); font-size: 24px; line-height: 1; }
.ptable tr.win td { background: rgba(166,30,47,.08); }
.ptable tr.win .pos { color: var(--red); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; }
.delta .ico { width: 14px; height: 14px; }
.delta.up { color: #1E7A45; }
.delta.dn { color: var(--red); }
.delta.eq { color: var(--ink-dark-lo); }

/* ---------- Generic two-col layout with rail ---------- */
.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.rail { position: sticky; top: 150px; display: grid; gap: 24px; }
.rail-ad .k { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dark-mid); padding: 8px 0; border-top: 4px double var(--black); }
.rail-ad img { width: 100%; border: 1.5px solid var(--black); }
@media (max-width: 1100px) { .with-rail { grid-template-columns: 1fr; } .rail { position: static; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 30px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--mineral); color: var(--black); font-weight: 700; box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: transform .45s var(--ease-out), opacity .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ico { width: 20px; height: 20px; color: var(--red); }

/* ---------- Reveal (content visible by default; enhancement only) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } .hero-photo img { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .program, .wire, .standings, .heritage { grid-template-columns: 1fr; gap: 48px; }
  .board { grid-template-columns: 1fr; }
  .hof-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .sec { padding: 72px 0; }
  .racecard { grid-template-columns: auto 1fr; }
  .rc-act { grid-column: 1 / -1; flex-direction: row !important; padding: 0 0 18px 0 !important; }
  .hero-wx { display: none; }
  .mast-photo { width: 100%; clip-path: none; opacity: .45; }
  .thennow { aspect-ratio: 4 / 3; }
}

/* ---------- Phone-width hero and race card ---------- */
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: 200px; }
  .hero h1 { font-size: 46px; line-height: .9; max-width: none; }
  .hero-sub { font-size: 20px; gap: 12px; align-items: flex-start; }
  .hero-sub .truss { width: 48px; flex: none; margin-top: 6px; }
  .racecard { grid-template-columns: auto 1fr; }
  .racecard > * { padding: 16px 18px; }
  .rc-date { min-width: 88px; padding: 12px 14px; }
  .rc-date .d { font-size: 52px; }
  .rc-main .name { font-size: 30px; }
  .rc-act { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 0 16px !important; }
  .rc-act .btn { padding: 0 10px; font-size: 12px; letter-spacing: .08em; }
  .sc-bar .sc-home { font-size: 0; gap: 0; }
  .res .slots { flex-wrap: wrap; max-width: 140px; }
}
@media (max-width: 760px) {
  .mast h1 { font-size: 52px; }
  .sec-head { flex-wrap: wrap; align-items: flex-start; }
  .sec-head .aside { text-align: left; }
  .h-xl { font-size: 52px; }
  .h-lg { font-size: 40px; }
  .subnav { overflow-x: auto; }
  .subnav a { font-size: 18px; padding: 0 16px; white-space: nowrap; }
}
@media (max-width: 760px) {
  .head-in { gap: 12px; height: 64px; }
  .head { top: 40px; }
  .logo img { height: 22px; }
  .head-act { gap: 8px; }
  .head-act .btn { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .tabs button, .tabs a { white-space: nowrap; flex: none; }
  table.ptable, table.matrix { display: block; overflow-x: auto; }
  .with-rail { grid-template-columns: minmax(0, 1fr); }
  .controls, .sched-tools { flex-direction: column; align-items: stretch !important; }
  .search { min-width: 0; }
}
@media (max-width: 1100px) {
  .program, .wire, .standings, .heritage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pylon-row { grid-template-columns: 34px 52px minmax(0, 1fr) auto auto; gap: 10px; padding-right: 8px; }
  .pylon-row .who b { font-size: 21px; }
  .pylon-row .carno { min-width: 48px; font-size: 20px; height: 34px; }
  .pylon-row .pts, .pylon-row .wins { font-size: 24px; min-width: 0; }
}
/* Phone hero: headline sits on its own scrim below the roof line */
@media (max-width: 600px) {
  .hero { padding-top: 260px; }
  .hero-photo img { object-position: 62% 30%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(12,13,12,.35) 0%, rgba(12,13,12,.1) 22%, rgba(12,13,12,.82) 46%, rgba(12,13,12,.96) 72%); }
}
