:root {
  --navy-950: #050b15;
  --navy-900: #071427;
  --navy-850: #0a1b31;
  --navy-800: #0d223d;
  --navy-700: #15304f;
  --blue: #0758b5;
  --blue-bright: #0b8ed8;
  --red: #e21d2b;
  --white: #ffffff;
  --off-white: #f3f6f9;
  --ink: #101827;
  --muted: #66758a;
  --line: #d7e0e9;
  --dark-line: rgba(255,255,255,.14);
  --shadow: 0 18px 50px rgba(4,12,25,.18);
  --shell: min(1180px, calc(100% - 40px));
  --heading: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; transform: translateY(-150%); background: white; color: black; padding: 10px 14px; font-weight: 800; }
.skip-link:focus { transform: none; }
.shell { width: var(--shell); margin-inline: auto; }
.race-stripe { height: 4px; background: linear-gradient(90deg, var(--red) 0 32%, var(--white) 32% 36%, var(--blue) 36% 70%, var(--blue-bright) 70% 100%); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(5,11,21,.96); color: white; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-width: max-content; }
.brand-wordmark { display: inline-flex; align-items: baseline; gap: .32em; white-space: nowrap; text-transform: uppercase; }
.brand-wordmark strong, .brand-wordmark small { font-family: var(--heading); font-style: italic; font-weight: 900; line-height: 1; letter-spacing: .025em; }
.brand-wordmark strong { font-size: 22px; color: var(--white); }
.brand-wordmark small { font-size: 22px; color: #69afe7; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { position: relative; color: #dbe7f3; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 29px 0 25px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 3px; background: var(--red); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: white; }
.menu-toggle { display: none; width: 46px; height: 42px; background: transparent; border: 1px solid var(--dark-line); padding: 9px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: white; margin: 5px 0; }
.home-hero { position: relative; min-height: calc(100vh - 82px); min-height: 720px; display: grid; align-items: center; background: url('../images/hero.webp') center center/cover no-repeat; color: white; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: auto 0 0; height: 11px; background: linear-gradient(90deg,var(--red) 0 33%,white 33% 36%,var(--blue) 36% 70%,var(--blue-bright) 70%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,11,21,.12) 0 34%, rgba(5,11,21,.72) 61%, rgba(5,11,21,.96) 100%); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; width: min(590px, 48%); margin-right: max(20px, calc((100vw - 1180px)/2)); margin-left: auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .21em; text-transform: uppercase; }
.eyebrow span { width: 38px; height: 3px; background: linear-gradient(90deg,var(--red) 0 45%,var(--blue) 45%); }
.eyebrow.light { color: #bad5ef; }
.hero-content .eyebrow { color: #c7daee; }
h1,h2,h3 { margin: 0; font-family: var(--heading); line-height: .98; text-transform: uppercase; }
h1 { font-size: clamp(56px, 7.3vw, 104px); font-style: italic; letter-spacing: -.045em; }
h1 em { color: transparent; -webkit-text-stroke: 2px white; font-style: inherit; }
h2 { font-size: clamp(36px, 4.2vw, 62px); font-style: italic; letter-spacing: -.035em; }
h3 { font-size: 24px; font-style: italic; letter-spacing: -.02em; }
.hero-lead { max-width: 600px; margin: 24px 0 30px; color: #e1ebf4; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 13px 23px; border: 2px solid transparent; font-size: 13px; font-weight: 900; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--red); color: white; border-color: var(--red); }
.button.primary:hover { background: #bd1420; border-color: #bd1420; }
.button.secondary { background: transparent; color: white; border-color: rgba(255,255,255,.72); }
.button.secondary:hover { background: white; color: var(--navy-900); }
.button.secondary.dark { color: var(--navy-900); border-color: var(--navy-900); }
.button.secondary.dark:hover { background: var(--navy-900); color: white; }
.hero-partners { display: flex; align-items: center; gap: 16px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-partners span { color: #9fb4c9; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero-partners img { width: 210px; max-height: 54px; object-fit: contain; object-position: left center; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 30px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: white; animation: scroll 1.8s infinite; }
@keyframes scroll { 0%{opacity:0;transform:translateY(0)}30%{opacity:1}100%{opacity:0;transform:translateY(15px)} }
.section { padding: 92px 0; }
.muted-section { background: var(--off-white); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { color: var(--navy-900); }
.section-heading p { max-width: 690px; color: var(--muted); font-size: 18px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.split-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.text-link { display: inline-flex; gap: 9px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.text-link.light { color: white; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.race-center-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.next-race-card, .latest-result-card { position: relative; min-height: 330px; padding: 40px; color: white; overflow: hidden; box-shadow: var(--shadow); }
.next-race-card { background: var(--navy-900); }
.next-race-card::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 50%; height: 100%; background: url('../images/front-action.webp') center/cover; opacity: .23; mask-image: linear-gradient(90deg,transparent,black); }
.latest-result-card { background: var(--blue); }
.card-kicker { position: relative; z-index: 1; display: inline-block; color: #bfd7f0; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.next-race-card h3, .latest-result-card h3 { position: relative; z-index: 1; max-width: 540px; margin: 18px 0 14px; font-size: clamp(31px,3.4vw,48px); }
.race-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 22px 0; }
.race-meta div { display: flex; flex-direction: column; }
.race-meta small { color: #9fb7cf; font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.race-meta strong { font-size: 15px; }
.result-line { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 28px; }
.result-line div { padding: 15px 12px; border: 1px solid rgba(255,255,255,.22); }
.result-line small { display: block; color: #c4d9eb; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.result-line strong { display: block; margin-top: 4px; font: italic 900 26px/1 var(--heading); }
.card-note { position: relative; z-index: 1; max-width: 550px; color: #d9e7f4; }
.stats-band { padding: 52px 0; background: var(--navy-900); color: white; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { position: relative; padding: 8px 26px; border-left: 1px solid rgba(255,255,255,.16); }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-item strong { display: block; font: italic 900 clamp(48px,5vw,76px)/.9 var(--heading); letter-spacing: -.05em; }
.stat-item span { display: block; margin-top: 8px; color: #a9c0d7; font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.stats-row.large { color: var(--navy-900); }
.stats-row.large .stat-item { border-color: var(--line); }
.stats-row.large .stat-item span { color: var(--muted); }
.story-section { background: white; }
.story-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(40px,7vw,90px); }
.story-image { position: relative; }
.story-image::before { content: ""; position: absolute; left: -18px; bottom: -18px; width: 45%; height: 45%; background: var(--blue); z-index: 0; }
.story-image::after { content: ""; position: absolute; right: -18px; top: -18px; width: 120px; height: 7px; background: linear-gradient(90deg,var(--red) 0 42%,var(--white) 42% 48%,var(--blue) 48% 100%); opacity: .85; }
.story-image img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-copy h2 { margin-bottom: 28px; color: var(--navy-900); }
.story-copy p { color: var(--muted); font-size: 17px; }
.story-copy .button { margin-top: 16px; }
.feature-highlight { padding: 0; background: var(--navy-900); color: white; }
.highlight-layout { min-height: 620px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.highlight-layout > div { padding: 75px 0; }
.highlight-layout img { align-self: stretch; width: 100%; height: 100%; object-fit: cover; }
.big-year { margin: 0; color: var(--red); font: italic 900 clamp(74px,10vw,148px)/.8 var(--heading); letter-spacing: -.06em; }
.highlight-layout h2 { max-width: 630px; margin: 20px 0 22px; }
.highlight-layout p:not(.big-year) { max-width: 630px; color: #b7c8d9; font-size: 18px; }
.partner-logo-row { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; margin: 38px 0 30px; }
.partner-logo { min-height: 240px; display: grid; place-items: center; padding: 34px; background: var(--navy-900); color: white; border-bottom: 6px solid var(--blue); transition: transform .2s ease; }
.partner-logo:hover { transform: translateY(-4px); }
.partner-logo.primary-partner { border-bottom-color: var(--red); }
.partner-logo img { max-width: 78%; max-height: 105px; object-fit: contain; }
.partner-logo span { align-self: end; color: #a9bfd4; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.center-action { text-align: center; }
.photo-ribbon { padding: 0; display: grid; grid-template-columns: repeat(4,1fr); }
.photo-ribbon a { display: block; overflow: hidden; }
.photo-ribbon img { width: 100%; height: 280px; object-fit: cover; transition: transform .35s ease; }
.photo-ribbon a:hover img { transform: scale(1.045); }
.page-hero { position: relative; min-height: 500px; display: flex; align-items: flex-end; padding: 120px 0 76px; background: var(--navy-900) url('../images/interior-hero.webp') center 48%/cover no-repeat; color: white; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,11,21,.96) 0,rgba(5,11,21,.77) 49%,rgba(5,11,21,.36) 100%); }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: linear-gradient(90deg,var(--red) 0 34%,white 34% 37%,var(--blue) 37% 72%,var(--blue-bright) 72%); }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero.compact h1 { font-size: clamp(56px,8vw,104px); }
.page-hero p { max-width: 720px; margin: 22px 0 0; color: #c9d8e7; font-size: 19px; }
.profile-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(45px,8vw,95px); }
.portrait-frame { position: relative; background: var(--navy-900); padding: 12px; box-shadow: var(--shadow); }
.portrait-frame::before { content: ""; position: absolute; left: -16px; top: 28px; width: 16px; height: 55%; background: linear-gradient(var(--red) 0 48%,var(--blue) 48%); }
.portrait-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 68% center; }
.profile-grid h2 { margin-bottom: 25px; color: var(--navy-900); }
.profile-grid p { color: var(--muted); font-size: 17px; }
.profile-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.profile-facts-three { grid-template-columns: repeat(3,1fr); }
.profile-facts div { padding: 17px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-facts strong { display: block; color: var(--navy-900); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.profile-facts span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.timeline-section { background: var(--off-white); }
.timeline { position: relative; margin-top: 60px; }
.timeline::before { content: ""; position: absolute; left: 126px; top: 0; bottom: 0; width: 2px; background: #b8c7d5; }
.timeline article { position: relative; display: grid; grid-template-columns: 105px 1fr 280px; gap: 44px; align-items: center; min-height: 220px; padding: 25px 0; }
.timeline article::before { content: ""; position: absolute; left: 120px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--red); border: 4px solid var(--off-white); box-shadow: 0 0 0 2px var(--red); }
.timeline-year { color: var(--blue); font: italic 900 25px/1 var(--heading); text-align: right; }
.timeline h3 { margin-bottom: 12px; color: var(--navy-900); }
.timeline p { margin: 0; color: var(--muted); }
.timeline img { width: 100%; height: 195px; object-fit: cover; object-position: var(--photo-position, 50% 50%); border-radius: 3px; box-shadow: 0 14px 30px rgba(7, 20, 39, .14); }
.two-column-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.highlight-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 28px; }
.highlight-list div { position: relative; padding: 17px 0 17px 30px; border-bottom: 1px solid var(--line); color: var(--muted); }
.highlight-list div::before { content: ""; position: absolute; left: 0; top: 26px; width: 15px; height: 4px; background: linear-gradient(90deg,var(--red) 0 45%,var(--blue) 45%); }
.versatility-section { background: var(--navy-900); color: white; }
.versatility-section .section-heading h2 { color: white; }
.versatility-section .section-heading p { color: #aebfd0; }
.experience-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.12); }
.experience-grid div { min-height: 120px; display: flex; align-items: flex-end; padding: 22px; background: var(--navy-850); border-top: 4px solid transparent; font-weight: 800; }
.experience-grid div:nth-child(3n+1) { border-color: var(--red); }
.experience-grid div:nth-child(3n+2) { border-color: var(--blue); }
.experience-grid div:nth-child(3n) { border-color: var(--blue-bright); }
.schedule-note { color: var(--muted); font-size: 13px; }
.schedule-feature .next-race-card { min-height: 390px; }
.filter-bar { display: flex; gap: 18px; margin-bottom: 28px; }
.filter-bar label, .search-field { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
select, input, textarea { width: 100%; border: 1px solid #c8d3df; background: white; color: var(--ink); padding: 12px 14px; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,88,181,.12); }
.schedule-list { display: grid; gap: 12px; }
.schedule-item { display: grid; grid-template-columns: 170px 1fr 165px; align-items: center; gap: 25px; padding: 22px 24px; background: white; border-left: 5px solid var(--blue); box-shadow: 0 8px 24px rgba(7,20,39,.06); }
.schedule-item.upcoming { border-left-color: var(--red); }
.schedule-date strong { display: block; color: var(--navy-900); font: italic 900 22px/1 var(--heading); }
.schedule-class { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.schedule-main h3 { margin-bottom: 6px; color: var(--navy-900); font-size: 22px; }
.schedule-main p { margin: 0; color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; box-shadow: 0 10px 28px rgba(7,20,39,.08); }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; background: white; }
.data-table th { padding: 15px 17px; background: var(--navy-900); color: white; font-size: 11px; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); color: #45556a; font-size: 14px; vertical-align: top; }
.data-table tbody tr:hover { background: #f5f8fb; }
.results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.year-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.year-tab { border: 1px solid var(--line); background: white; color: var(--navy-900); padding: 10px 16px; font-weight: 900; cursor: pointer; }
.year-tab.active { background: var(--navy-900); color: white; border-color: var(--navy-900); }
.search-field { min-width: min(360px,100%); }
.season-summary { display: grid; grid-template-columns: repeat(5,1fr); margin-bottom: 36px; background: var(--off-white); border-top: 4px solid var(--blue); }
.season-summary div { padding: 19px 20px; border-right: 1px solid var(--line); }
.season-summary div:last-child { border-right: 0; }
.season-summary strong { display: block; color: var(--navy-900); font: italic 900 29px/1 var(--heading); }
.season-summary span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.track-results { margin-bottom: 42px; }
.track-results h2 { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; color: var(--navy-900); font-size: 30px; }
.track-results h2::before { content: ""; width: 36px; height: 4px; background: linear-gradient(90deg,var(--red) 0 45%,var(--blue) 45%); }
.result-finish { font-weight: 900; color: var(--navy-900); }
.result-finish.win { color: var(--red); }
.no-results { padding: 45px; background: var(--off-white); color: var(--muted); text-align: center; }
.class-stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.class-stat-card { background: white; border-top: 7px solid var(--blue); box-shadow: var(--shadow); overflow: hidden; }
.class-stat-card:nth-child(2) { border-top-color: var(--red); }
.class-stat-head { padding: 30px 34px; background: var(--navy-900); color: white; }
.class-stat-head span { color: #a8bdd1; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.class-stat-head h2 { margin-top: 7px; font-size: 45px; }
.class-stat-body { display: grid; grid-template-columns: repeat(2,1fr); }
.stat-group { padding: 30px 34px; border-right: 1px solid var(--line); }
.stat-group:last-child { border-right: 0; }
.stat-group h3 { margin-bottom: 17px; color: var(--navy-900); font-size: 19px; }
.stat-pair { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.stat-pair strong { color: var(--navy-900); }
.season-card-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.season-card { padding: 24px 20px; border: 1px solid var(--line); border-top: 5px solid var(--blue); }
.season-card:nth-child(even) { border-top-color: var(--red); }
.season-card h3 { color: var(--navy-900); font-size: 32px; }
.season-card .class-label { display: block; margin: 6px 0 18px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.season-card dl { margin: 0; }
.season-card dl div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.season-card dt { color: var(--muted); font-size: 12px; }
.season-card dd { margin: 0; font-weight: 900; }
.stat-callout { background: var(--blue); color: white; }
.callout-grid { display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 55px; }
.callout-grid > div { display: flex; flex-direction: column; }
.big-number { font: italic 900 105px/.75 var(--heading); }
.callout-grid > div span:last-child { margin-top: 12px; font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.callout-grid p { font-size: 21px; line-height: 1.5; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery-item { position: relative; border: 0; padding: 0; background: var(--navy-900); cursor: zoom-in; overflow: hidden; }
.gallery-item:nth-child(7n+1), .gallery-item:nth-child(7n+5) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 330px; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.gallery-item:nth-child(7n+1) img, .gallery-item:nth-child(7n+5) img { height: 430px; }
.gallery-item::after { content: "View"; position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; background: rgba(5,11,21,.82); color: white; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateY(5px); transition: .25s ease; }
.gallery-item:hover img { transform: scale(1.035); opacity: .85; }
.gallery-item:hover::after { opacity: 1; transform: none; }
.lightbox { width: min(1180px, calc(100% - 36px)); max-width: none; border: 0; padding: 0; background: transparent; color: white; overflow: visible; }
.lightbox::backdrop { background: rgba(2,6,12,.94); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 22px 70px rgba(0,0,0,.45); }
.lightbox figcaption { margin-top: 12px; color: #c5d4e3; }
.lightbox-close, .lightbox-nav { position: fixed; border: 1px solid rgba(255,255,255,.35); background: rgba(5,11,21,.78); color: white; cursor: pointer; }
.lightbox-close { right: 24px; top: 18px; width: 46px; height: 46px; font-size: 30px; }
.lightbox-nav { top: 50%; width: 50px; height: 70px; margin-top: -35px; font-size: 48px; line-height: 1; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.primary-partner-section { background: white; }
.partner-feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(45px,8vw,100px); }
.partner-feature-grid.reverse { grid-template-columns: 1.1fr .9fr; }
.partner-feature-grid.reverse .partner-feature-logo { order: 2; }
.partner-feature-logo { min-height: 360px; display: grid; place-items: center; position: relative; padding: 60px; background: var(--navy-900); border-bottom: 8px solid var(--red); }
.partner-feature-logo.white-card { background: white; border: 1px solid var(--line); border-bottom: 8px solid var(--blue); }
.partner-feature-logo img { max-width: 90%; max-height: 150px; object-fit: contain; }
.partner-tier { position: absolute; left: 22px; top: 18px; color: #a7bcd1; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.white-card .partner-tier { color: var(--muted); }
.partner-feature-grid h2 { margin-bottom: 24px; color: var(--navy-900); }
.partner-feature-grid p { color: var(--muted); font-size: 17px; }
.partner-feature-grid .button { margin-top: 18px; }
.sponsorship-section { background: var(--navy-900); color: white; }
.sponsorship-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.sponsorship-grid h2 { margin-bottom: 24px; }
.sponsorship-grid p { color: #b6c7d8; font-size: 18px; }
.sponsorship-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.contact-info h2 { margin-bottom: 22px; color: var(--navy-900); }
.contact-info > p { color: var(--muted); }
.contact-method { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-method span { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.contact-method a, .contact-method strong { display: block; margin-top: 3px; color: var(--navy-900); font-size: 20px; font-weight: 900; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.social-links a { padding: 8px 11px; border: 1px solid var(--line); color: var(--navy-900); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.social-links a:hover { background: var(--navy-900); color: white; }
.contact-form { padding: 38px; background: var(--off-white); border-top: 6px solid var(--blue); }
.contact-form label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.contact-form label span { color: var(--navy-900); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
textarea { resize: vertical; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.site-footer { background: var(--navy-950); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 70px; padding: 65px 0 48px; }
.footer-brand { margin-bottom: 20px; }
.footer-grid p { max-width: 470px; color: #9db0c3; }
.footer-grid h2 { margin: 4px 0 19px; color: white; font-size: 15px; letter-spacing: .1em; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid > div:not(:first-child) a { color: #aebed0; font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding: 19px 0 24px; border-top: 1px solid rgba(255,255,255,.11); color: #71869b; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

.thr-brand-art {
  width: min(100%, 470px);
  margin: 0 0 28px;
  mix-blend-mode: multiply;
}
.footer-brand .brand-wordmark strong,
.footer-brand .brand-wordmark small { font-size: 25px; }
.completed-schedule-table { min-width: 920px; }
.completed-schedule-table td:nth-child(1) { white-space: nowrap; }
.completed-schedule-table td:nth-child(2) strong { color: var(--navy-900); }
.schedule-position { width: 92px; text-align: center; }
.schedule-position strong { color: var(--navy-900); font: italic 900 22px/1 var(--heading); }
.deck-availability p { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 1050px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 82px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 25px 24px; background: var(--navy-950); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  body.menu-open .site-nav { transform: none; }
  .site-nav a { padding: 16px 5px; border-bottom: 1px solid var(--dark-line); font-size: 17px; }
  .site-nav a::after { bottom: 11px; right: 100%; }
  .hero-content { width: min(600px, 58%); }
  .season-card-grid { grid-template-columns: repeat(3,1fr); }
  .schedule-item { grid-template-columns: 145px 1fr 140px; }
  .experience-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 720px); }
  .section { padding: 70px 0; }
  .home-hero { min-height: 680px; background-position: 38% center; }
  .hero-shade { background: linear-gradient(0deg,rgba(5,11,21,.96),rgba(5,11,21,.36)); }
  .hero-content { width: var(--shell); margin: auto auto 60px; align-self: end; }
  .hero-partners { margin-top: 26px; }
  .scroll-cue { display: none; }
  .race-center-grid, .story-grid, .highlight-layout, .profile-grid, .two-column-section, .partner-feature-grid, .partner-feature-grid.reverse, .sponsorship-grid, .contact-grid { grid-template-columns: 1fr; }
  .highlight-layout { gap: 0; }
  .highlight-layout img { max-height: 580px; }
  .stats-row { grid-template-columns: repeat(2,1fr); row-gap: 30px; }
  .stat-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .partner-logo-row { grid-template-columns: 1fr; }
  .photo-ribbon { grid-template-columns: repeat(2,1fr); }
  .page-hero { min-height: 410px; padding-bottom: 55px; }
  .timeline::before { left: 18px; }
  .timeline article { grid-template-columns: 1fr; gap: 14px; padding: 30px 0 30px 56px; }
  .timeline article::before { left: 12px; top: 49px; }
  .timeline-year { text-align: left; }
  .timeline img { max-width: 420px; }
  .highlight-list { grid-template-columns: 1fr; }
  .class-stats-grid { grid-template-columns: 1fr; }
  .season-card-grid { grid-template-columns: repeat(2,1fr); }
  .callout-grid { grid-template-columns: 150px 1fr; gap: 30px; }
  .callout-grid .button { grid-column: 1 / -1; justify-self: start; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item:nth-child(n) { grid-column: auto; }
  .gallery-item img, .gallery-item:nth-child(n) img { height: 300px; }
  .partner-feature-grid.reverse .partner-feature-logo { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .header-inner { height: 68px; }
  .brand-wordmark strong, .brand-wordmark small { font-size: 18px; }
  .site-nav { inset: 72px 0 0; }
  h1 { font-size: 54px; }
  h2 { font-size: 39px; }
  .home-hero { min-height: 650px; background-position: 42% center; }
  .hero-content { margin-bottom: 42px; }
  .hero-lead { font-size: 17px; }
  .button-row, .button { width: 100%; }
  .hero-partners img { width: 175px; }
  .split-heading, .results-toolbar { align-items: flex-start; flex-direction: column; }
  .next-race-card, .latest-result-card { min-height: 0; padding: 28px 24px; }
  .result-line { grid-template-columns: repeat(3,1fr); }
  .result-line div { padding: 12px 8px; }
  .result-line strong { font-size: 21px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 8px 14px; }
  .stat-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .photo-ribbon img { height: 190px; }
  .profile-facts, .form-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: repeat(2,1fr); }
  .schedule-item { grid-template-columns: 1fr; gap: 10px; }
  .results-toolbar .search-field { min-width: 100%; }
  .season-summary { grid-template-columns: repeat(2,1fr); }
  .season-summary div { border-bottom: 1px solid var(--line); }
  .season-summary div:last-child { grid-column: 1 / -1; }
  .class-stat-body { grid-template-columns: 1fr; }
  .stat-group { border-right: 0; border-bottom: 1px solid var(--line); }
  .season-card-grid { grid-template-columns: 1fr; }
  .callout-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img, .gallery-item:nth-child(n) img { height: 300px; }
  .lightbox-nav { top: auto; bottom: 14px; }
  .partner-feature-logo { min-height: 260px; padding: 35px; }
  .contact-form { padding: 25px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

/* Updated identity and mixed-class season data */
.event-tag {
  display: inline-flex;
  width: max-content;
  margin-top: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.28);
  color: #c7daee;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.schedule-item.planned { border-left-color: var(--red); }
.table-status {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.table-status.planned { color: var(--red); border-color: rgba(226,29,43,.35); background: rgba(226,29,43,.04); }
.season-summary-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.season-summary-card {
  background: var(--off-white);
  border-top: 5px solid var(--blue);
  box-shadow: 0 8px 24px rgba(7,20,39,.06);
}
.season-summary-card.class-604 { border-top-color: var(--red); }
.season-summary-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  background: var(--navy-900);
  color: white;
}
.season-summary-card > header span {
  color: #b9ccde;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.season-summary-card > header strong {
  font: italic 900 25px/1 var(--heading);
}
.season-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.season-summary-metrics div {
  padding: 17px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.season-summary-metrics div:nth-child(3n) { border-right: 0; }
.season-summary-metrics div:nth-last-child(-n+3) { border-bottom: 0; }
.season-summary-metrics strong {
  display: block;
  color: var(--navy-900);
  font: italic 900 27px/1 var(--heading);
}
.season-summary-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.results-table { min-width: 1280px; }
.result-class-badge {
  display: inline-flex;
  white-space: nowrap;
  padding: 5px 8px;
  border: 1px solid rgba(7,88,181,.24);
  background: rgba(7,88,181,.05);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.result-class-badge.class-604 { color: var(--red); border-color: rgba(226,29,43,.25); background: rgba(226,29,43,.04); }
.result-class-badge.class-other { color: #6b7280; border-color: #d4dae1; background: #f7f8fa; }
.season-card-grid { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.season-card.class-602 { border-top-color: var(--blue); }
.season-card.class-604 { border-top-color: var(--red); }
.season-card .class-label { min-height: 24px; }

@media (max-width: 600px) {
  .season-summary-wrap { grid-template-columns: 1fr; }
  .season-summary-metrics { grid-template-columns: repeat(2, 1fr); }
  .season-summary-metrics div:nth-child(3n) { border-right: 1px solid var(--line); }
  .season-summary-metrics div:nth-child(2n) { border-right: 0; }
  .season-summary-metrics div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .season-summary-metrics div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (min-width: 1051px) {
  .season-card-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 821px) and (max-width: 1050px) {
  .season-card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 601px) and (max-width: 820px) {
  .season-card-grid { grid-template-columns: repeat(2, 1fr); }
}


/* Version 7: program-specific race car imagery in career-stat headers */
.class-stat-head { position:relative; isolation:isolate; min-height:190px; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; background-color:var(--navy-900); background-image:linear-gradient(90deg,rgba(5,11,21,.97) 0%,rgba(5,11,21,.84) 43%,rgba(5,11,21,.46) 100%),var(--class-stat-image); background-size:cover; background-position:center 55%; }
.class-stat-card[data-class-stats="602"] { --class-stat-image:url('../images/stats-602.webp'); }
.class-stat-card[data-class-stats="604"] { --class-stat-image:url('../images/stats-604.webp'); }
.class-stat-card[data-class-stats="602"] .class-stat-head { background-position:center 52%; }
.class-stat-card[data-class-stats="604"] .class-stat-head { background-position:center 56%; }
.class-stat-head::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,rgba(5,11,21,.34),transparent 62%); }
.class-stat-head span,.class-stat-head h2 { position:relative; z-index:1; text-shadow:0 2px 14px rgba(0,0,0,.7); }
@media(max-width:600px){.class-stat-head{min-height:165px;padding:25px 26px}.class-stat-head h2{font-size:39px}}


/* Site-wide social links */
.footer-grid {
  grid-template-columns: 1.2fr .65fr .85fr .95fr;
  gap: 44px;
}
.footer-social-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-social-group h2 { margin-bottom: 10px; }
.social-icon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.social-icon-link {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.045);
  color: #dce7f2;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.social-icon-link:hover,
.social-icon-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.social-icon-link:nth-child(even):hover,
.social-icon-link:nth-child(even):focus-visible {
  border-color: var(--red);
  background: var(--red);
}
.social-icon-link svg,
.contact-social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Contact page keeps the direct links, now with platform icons and handles. */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}
.social-links a.contact-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy-900);
  text-transform: none;
}
.social-links a.contact-social-link:hover,
.social-links a.contact-social-link:focus-visible {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: white;
}
.contact-social-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  background: var(--off-white);
  color: var(--navy-900);
}
.contact-social-link:hover .contact-social-icon,
.contact-social-link:focus-visible .contact-social-icon {
  background: rgba(255,255,255,.12);
  color: white;
}
.contact-social-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}
.contact-social-copy strong {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-social-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-social-link:hover .contact-social-copy span,
.contact-social-link:focus-visible .contact-social-copy span { color: #c8d5e2; }

@media (max-width: 1120px) {
  .footer-grid { grid-template-columns: 1.25fr .7fr .9fr; }
  .footer-social-group { grid-column: 2 / -1; }
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-social-group { grid-column: auto; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid > div:first-child,
  .footer-social-group { grid-column: auto; }
  .social-links { grid-template-columns: 1fr; }
  .social-icon-link { width: 44px; height: 44px; }
}


/* Full racing archive gallery */
.gallery-archive-section { background: #fff; }
.gallery-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -34px 0 38px;
  position: relative;
  z-index: 2;
  background: var(--navy-900);
  border-bottom: 6px solid var(--red);
  box-shadow: 0 16px 42px rgba(7,20,39,.16);
  color: #fff;
}
.gallery-overview > div { padding: 25px 30px; border-right: 1px solid rgba(255,255,255,.13); }
.gallery-overview > div:last-child { border-right: 0; }
.gallery-overview strong { display: block; font: italic 900 34px/1 var(--heading); }
.gallery-overview span { display: block; margin-top: 7px; color: #afc4d8; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.gallery-toolbar { margin-bottom: 54px; padding: 25px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-filter-label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--navy-900); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.gallery-filter-label span { width: 30px; height: 3px; background: var(--red); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-filter { border: 1px solid var(--line); padding: 10px 14px; background: #fff; color: var(--navy-900); cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.gallery-filter:hover { border-color: var(--blue); color: var(--blue); }
.gallery-filter.is-active { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.gallery-filter-status { margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 800; }
.gallery-season-group { margin-top: 62px; }
.gallery-season-group:first-child { margin-top: 0; }
.gallery-season-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 21px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.gallery-season-heading > div { display: flex; align-items: baseline; gap: 15px; }
.gallery-season-year { color: var(--red); font: italic 900 39px/1 var(--heading); }
.gallery-season-heading h2 { margin: 0; color: var(--navy-900); font-size: 28px; }
.gallery-season-count { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.gallery-grid { display: block; columns: 3 320px; column-gap: 18px; }
.gallery-item,
.gallery-item:nth-child(n) { display: block; width: 100%; margin: 0 0 18px; position: relative; break-inside: avoid; border: 0; padding: 0; background: var(--navy-900); cursor: zoom-in; overflow: hidden; }
.gallery-item img,
.gallery-item:nth-child(n) img { display: block; width: 100%; height: auto; min-height: 0; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.gallery-item-overlay { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 42px 15px 13px; background: linear-gradient(0deg,rgba(3,9,18,.9),rgba(3,9,18,0)); color: #fff; opacity: 0; transform: translateY(6px); transition: .25s ease; text-align: left; }
.gallery-item-overlay strong { font: italic 900 22px/1 var(--heading); }
.gallery-item-overlay span { color: #c6d6e6; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.gallery-item::after { display: none; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.025); opacity: .84; }
.gallery-item:hover .gallery-item-overlay, .gallery-item:focus-visible .gallery-item-overlay { opacity: 1; transform: none; }
.gallery-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery-empty { padding: 60px 0; color: var(--muted); text-align: center; }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; width: min(100%, 900px); gap: 24px; }
.lightbox figcaption span { color: #e2ebf4; }
.lightbox figcaption small { color: #8ea5bc; font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 820px) {
  .gallery-overview { margin-top: -18px; }
  .gallery-overview > div { padding: 20px 18px; }
  .gallery-overview strong { font-size: 27px; }
  .gallery-grid { columns: 2 260px; }
  .gallery-season-heading { align-items: flex-start; }
  .gallery-season-heading > div { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  .gallery-overview { grid-template-columns: 1fr; margin-top: 0; }
  .gallery-overview > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .gallery-overview > div:last-child { border-bottom: 0; }
  .gallery-toolbar { margin-bottom: 42px; }
  .gallery-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
  .gallery-filter { flex: 0 0 auto; }
  .gallery-season-group { margin-top: 48px; }
  .gallery-season-heading { gap: 12px; }
  .gallery-season-heading h2 { font-size: 23px; }
  .gallery-season-year { font-size: 33px; }
  .gallery-grid { columns: 1; }
  .gallery-item-overlay { opacity: 1; transform: none; }
  .lightbox figcaption { align-items: flex-start; flex-direction: column; gap: 5px; padding: 0 12px; }
}


/* Clickable detailed race results */
.latest-result-card { padding: 0; }
.latest-result-trigger { position: relative; z-index: 1; display: flex; width: 100%; min-height: 330px; padding: 40px; border: 0; background: transparent; color: white; cursor: pointer; flex-direction: column; justify-content: center; text-align: left; }
.latest-result-action { display: inline-flex; align-self: flex-start; margin-top: 25px; padding-top: 12px; border-top: 2px solid rgba(255,255,255,.38); font-family: var(--heading); font-size: 13px; font-style: italic; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.latest-result-action::after { content: "→"; margin-left: 8px; }
.latest-result-trigger:hover .latest-result-action, .latest-result-trigger:focus-visible .latest-result-action { border-color: white; }
.latest-result-trigger:focus-visible { outline: 3px solid white; outline-offset: -7px; }
.results-instruction { display: flex; align-items: center; gap: 11px; margin: 0 0 24px; padding: 14px 17px; border-left: 4px solid var(--blue); background: #edf5ff; color: #29425f; font-size: 14px; }
.results-instruction::before { content: "↗"; display: grid; width: 27px; height: 27px; border-radius: 50%; background: var(--blue); color: white; font-weight: 900; place-items: center; }
.data-table tbody tr.has-race-detail { cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.data-table tbody tr.has-race-detail:hover, .data-table tbody tr.has-race-detail:focus-visible { background: #eef5ff; box-shadow: inset 5px 0 0 var(--red); outline: 0; }
.data-table tbody tr.has-race-detail:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.race-detail-link { color: var(--blue); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(0,86,181,.28); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .18s ease, text-decoration-color .18s ease; }
.race-detail-link-event::after { content: " →"; white-space: nowrap; }
.data-table tbody tr.has-race-detail:hover .race-detail-link,
.data-table tbody tr.has-race-detail:focus-visible .race-detail-link { color: #00458f; text-decoration-color: currentColor; }
.data-table tbody tr.has-race-detail:hover .race-detail-link-event::after,
.data-table tbody tr.has-race-detail:focus-visible .race-detail-link-event::after { transform: translateX(2px); }

/* Race result popup */
body.race-modal-open { overflow: hidden; }
.race-results-modal { position: fixed; inset: 0; z-index: 1000; display: grid; padding: 28px; place-items: center; opacity: 0; transition: opacity .18s ease; }
.race-results-modal[hidden] { display: none; }
.race-results-modal.is-open { opacity: 1; }
.race-results-backdrop { position: absolute; inset: 0; background: rgba(3,10,20,.82); backdrop-filter: blur(4px); }
.race-results-dialog { position: relative; width: min(100%, 980px); max-height: calc(100vh - 56px); overflow: auto; background: #eef1f4; box-shadow: 0 28px 80px rgba(0,0,0,.45); transform: translateY(14px) scale(.985); transition: transform .18s ease; }
.race-results-modal.is-open .race-results-dialog { transform: none; }
.race-results-close { position: sticky; top: 14px; z-index: 5; float: right; width: 42px; height: 42px; margin: 14px 14px -56px 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(4,13,25,.48); color: white; cursor: pointer; font-size: 29px; line-height: 1; }
.race-results-close:hover, .race-results-close:focus-visible { background: white; color: var(--navy-950); outline: 0; }
.race-results-modal-header { position: relative; clear: both; overflow: hidden; padding: 34px 34px 30px; background: #071427; color: white; }
.race-results-modal-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 10, 18, .96) 0%, rgba(7, 20, 39, .88) 28%, rgba(7, 20, 39, .56) 58%, rgba(4, 10, 18, .90) 100%), url("../images/race-modal-watermark.webp") center center / cover no-repeat; pointer-events: none; }
.race-results-modal-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(32, 91, 182, .56), rgba(66, 139, 245, .18) 42%, rgba(7, 20, 39, .08) 100%); mix-blend-mode: screen; opacity: .52; pointer-events: none; }
.race-results-modal-header > * { position: relative; z-index: 1; }
.race-modal-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; }
.race-modal-heading h2 { margin: 3px 0 0; color: white; font-size: clamp(38px,5vw,61px); line-height: .95; }
.race-modal-heading p { margin: 10px 0 0; color: rgba(255,255,255,.82); }
.race-detail-date { font-family: var(--heading); font-size: 18px; font-style: italic; font-weight: 900; letter-spacing: .05em; }
.race-detail-status { align-self: center; padding: 9px 13px; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.12); font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.race-detail-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 26px; }
.race-detail-summary article { padding: 15px 17px; background: rgba(5,11,21,.28); border-left: 4px solid white; }
.race-detail-summary span, .race-detail-summary small { display: block; }
.race-detail-summary span { color: rgba(255,255,255,.74); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.race-detail-summary strong { display: block; margin-top: 2px; font-family: var(--heading); font-size: 31px; font-style: italic; line-height: 1; }
.race-detail-summary small { margin-top: 5px; color: rgba(255,255,255,.7); }
.race-detail-card { overflow: hidden; margin: 22px; background: white; box-shadow: var(--shadow); }
.race-session-tabs { display: flex; background: var(--navy-950); }
.race-session-tab { flex: 1; padding: 16px 22px; border: 0; border-bottom: 4px solid transparent; background: transparent; color: #aab8c8; cursor: pointer; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.race-session-tab.is-active { border-color: var(--red); background: rgba(255,255,255,.06); color: white; }
.race-session-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 23px 26px 17px; border-bottom: 1px solid var(--line); }
.race-session-head h3 { margin: 0; font-size: 31px; }
.race-session-head p { margin: 2px 0 0; color: var(--muted); }
.race-session-meta { text-align: right; font-family: var(--heading); font-size: 17px; font-style: italic; font-weight: 900; }
.race-timing-table { width: 100%; border-collapse: collapse; }
.race-timing-table th { padding: 13px 18px; background: #f2f4f6; color: #273140; font-size: 13px; text-align: left; }
.race-timing-table th:nth-child(1), .race-timing-table td:nth-child(1) { width: 72px; text-align: center; }
.race-timing-table th:nth-child(3), .race-timing-table td:nth-child(3), .race-timing-table th:nth-child(4), .race-timing-table td:nth-child(4) { text-align: right; }
.race-timing-table td { padding: 17px 18px; border-top: 1px solid #d9dde2; font-size: 17px; }
.race-timing-table tbody tr:first-child td { border-top: 0; }
.race-timing-table tbody tr.is-driver { background: #eaf3ff; box-shadow: inset 5px 0 0 var(--blue); }
.race-timing-table tbody tr.is-driver td { font-weight: 800; }
.race-competitor { display: flex; align-items: center; gap: 9px; }
.race-car-number { min-width: 38px; font-weight: 900; }
.race-you-badge { padding: 3px 7px; border-radius: 999px; background: var(--red); color: white; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.race-fast-lap { color: #078617; font-weight: 800; }
.race-timing-note { margin: 0; padding: 17px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 760px) {
  .latest-result-trigger { min-height: 0; padding: 28px 24px; }
  .results-instruction { align-items: flex-start; }
  .race-results-modal { padding: 0; place-items: stretch; }
  .race-results-dialog { width: 100%; max-height: 100vh; min-height: 100vh; }
  .race-results-modal-header { padding: 28px 20px 24px; }
  .race-results-modal-header::before { background-position: 62% center; }
  .race-results-modal-header::after { opacity: .50; }
  .race-modal-heading { grid-template-columns: 1fr; gap: 14px; }
  .race-detail-status { justify-self: start; }
  .race-detail-summary { grid-template-columns: 1fr; }
  .race-detail-card { margin: 14px 0 0; box-shadow: none; }
  .race-session-head { grid-template-columns: 1fr; }
  .race-session-meta { text-align: left; }
  .race-timing-table th, .race-timing-table td { padding: 13px 9px; font-size: 14px; }
  .race-timing-table th:nth-child(1), .race-timing-table td:nth-child(1) { width: 46px; }
  .race-car-number { min-width: 31px; }
  .race-you-badge { display: none; }
}


/* News archive and article templates */
@media (min-width: 1051px) {
  .site-nav { gap: 17px; }
  .site-nav a { font-size: 12px; }
}
.latest-news-home { background: var(--off-white); }
.latest-news-home .section-heading p { margin-bottom: 0; }
.news-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.news-card { display: flex; min-width: 0; overflow: hidden; background: white; box-shadow: 0 14px 35px rgba(7,20,39,.11); flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 22px 45px rgba(7,20,39,.16); }
.news-card-image { position: relative; display: block; overflow: hidden; background: var(--navy-900); }
.news-card-image::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent,rgba(5,11,21,.62)); pointer-events: none; }
.news-card-image img { width: 100%; height: 225px; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.news-card:hover .news-card-image img { transform: scale(1.035); opacity: .92; }
.news-card-category { position: absolute; z-index: 2; left: 18px; bottom: 16px; padding: 7px 10px; background: var(--red); color: white; font-size: 10px; font-weight: 900; letter-spacing: .11em; line-height: 1; text-transform: uppercase; }
.news-card-body { display: flex; padding: 25px 25px 27px; flex: 1; flex-direction: column; }
.news-card-body time { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.news-card-body h3 { margin: 10px 0 13px; color: var(--navy-900); font-size: 27px; line-height: 1.03; }
.news-card-body h3 a:hover { color: var(--blue); }
.news-card-body p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.news-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.news-card-link span { transition: transform .2s ease; }
.news-card-link:hover span { transform: translateX(4px); }
.news-archive-section { background: #f7f9fb; }
.news-archive-intro { display: grid; grid-template-columns: 1fr minmax(260px,420px); align-items: end; gap: 42px; margin-bottom: 42px; }
.news-archive-intro h2 { color: var(--navy-900); }
.news-archive-intro p { margin: 0; color: var(--muted); }
.news-archive-grid .news-card-image img { height: 255px; }
.article-hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; background-color: var(--navy-900); background-position: center; background-size: cover; background-repeat: no-repeat; color: white; overflow: hidden; }
.article-hero-greenville { background-image: url('../images/gallery/2026-604/05.webp'); }
.article-hero-jackson-august { background-image: url('../images/news/jackson-aug-1-recap.webp'); background-position: 50% 45%; }
.article-hero-pine-ridge { background-image: url('../images/news/pine-ridge-preview-card.webp'); background-position: 50% 50%; }
.article-hero-pine-ridge-recap { background-image: url('../images/news/pine-ridge-aug-14-15-recap.webp'); background-position: 50% 48%; }
.article-hero-greenville-august-preview { background-image: url('../images/news/greenville-aug-22-preview-full.webp'); background-position: 50% 50%; }
.article-hero-launch { background-image: url('../images/hero.webp'); }
.article-hero-world { background-image: url('../images/gallery/2026-602/05.webp'); }
.article-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: linear-gradient(90deg,var(--red) 0 33%,white 33% 36%,var(--blue) 36% 70%,var(--blue-bright) 70%); }
.article-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,11,21,.92),rgba(5,11,21,.62) 58%,rgba(5,11,21,.3)), linear-gradient(0deg,rgba(5,11,21,.85),transparent 65%); }
.article-hero-content { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 72px; }
.article-back-link { display: inline-flex; margin-bottom: 38px; color: #dbe8f4; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.article-back-link:hover { color: white; }
.article-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 17px; }
.article-meta span { padding: 7px 10px; background: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.article-meta time { color: #c8d8e8; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.article-hero h1 { max-width: 900px; font-size: clamp(48px,6.3vw,88px); line-height: .92; }
.article-hero-content > p { max-width: 780px; margin: 24px 0 0; color: #e3edf6; font-size: clamp(18px,1.5vw,23px); line-height: 1.55; }
.article-section { padding-top: 80px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: clamp(45px,7vw,90px); }
.article-copy { min-width: 0; }
.article-copy p { margin: 0 0 24px; color: #425168; font-size: 18px; line-height: 1.8; }
.article-copy .article-lead { color: var(--navy-900); font-size: 23px; font-weight: 650; line-height: 1.65; }
.article-copy h2 { margin: 46px 0 18px; color: var(--navy-900); font-size: clamp(30px,3.2vw,44px); }
.article-inline-image { margin: 42px 0; }
.article-inline-image img { width: 100%; max-height: 560px; object-fit: cover; }
.article-inline-image figcaption { margin-top: 11px; color: var(--muted); font-size: 13px; }
.article-inline-image.split-photo { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.article-inline-image.split-photo img { height: 330px; }
.article-inline-image.split-photo figcaption { grid-column: 1/-1; }
.article-callout { display: flex; margin: 40px 0; padding: 25px 28px; border-left: 6px solid var(--red); background: var(--navy-900); color: white; flex-direction: column; }
.article-callout strong { font-family: var(--heading); font-size: 29px; font-style: italic; line-height: 1; text-transform: uppercase; }
.article-callout span { margin-top: 8px; color: #b7c9da; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.article-sidebar { position: sticky; top: 118px; display: grid; gap: 22px; }
.article-summary-card { overflow: hidden; background: white; border-top: 6px solid var(--blue); box-shadow: var(--shadow); }
.article-summary-card > span, .article-summary-card > h2, .article-summary-card > dl, .article-summary-card > ul { margin-left: 27px; margin-right: 27px; }
.sidebar-kicker { display: block; margin-top: 27px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.article-summary-card h2 { margin-top: 7px; margin-bottom: 24px; color: var(--navy-900); font-size: 35px; }
.article-summary-card dl { margin-bottom: 27px; }
.article-summary-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
.article-summary-card dt { color: var(--muted); }
.article-summary-card dd { margin: 0; color: var(--navy-900); font-weight: 900; text-align: right; }
.article-sidebar-list { margin-top: 0; margin-bottom: 27px; padding: 0; list-style: none; }
.article-sidebar-list li { position: relative; padding: 11px 0 11px 20px; border-top: 1px solid var(--line); color: #4d5c70; }
.article-sidebar-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 3px; background: linear-gradient(90deg,var(--red) 0 45%,var(--blue) 45%); }
.article-sidebar-note { padding: 23px 25px; background: #edf5ff; border-left: 4px solid var(--blue); }
.article-sidebar-note strong { color: var(--navy-900); }
.article-sidebar-note p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.news-related-section .news-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.news-related-section .news-card { display: grid; grid-template-columns: 210px 1fr; }
.news-related-section .news-card-image img { height: 100%; min-height: 250px; }
.news-related-section .news-card-body h3 { font-size: 24px; }
@media (max-width: 980px) {
  .news-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-card:last-child:nth-child(odd) { grid-column: 1/-1; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .latest-news-home .split-heading, .news-related-section .split-heading { align-items: flex-start; flex-direction: column; }
  .news-card-grid, .news-related-section .news-card-grid { grid-template-columns: 1fr; }
  .news-card:last-child:nth-child(odd) { grid-column: auto; }
  .news-archive-intro { grid-template-columns: 1fr; gap: 14px; }
  .article-hero { min-height: 540px; }
  .article-hero-content { padding-top: 80px; padding-bottom: 55px; }
  .article-hero h1 { font-size: clamp(43px,13vw,66px); }
  .article-layout { gap: 45px; }
  .article-copy p { font-size: 17px; }
  .article-copy .article-lead { font-size: 20px; }
  .article-inline-image.split-photo { grid-template-columns: 1fr; }
  .article-inline-image.split-photo img { height: 270px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .news-related-section .news-card { grid-template-columns: 1fr; }
  .news-related-section .news-card-image img { height: 220px; min-height: 0; }
}


/* Event preview story components */
.article-quote { position: relative; margin: 38px 0 44px; padding: 30px 34px 28px 38px; border-left: 6px solid var(--blue); background: #edf5ff; }
.article-quote::before { content: "“"; position: absolute; top: 6px; left: 14px; color: rgba(7,88,181,.18); font-family: Georgia,serif; font-size: 82px; line-height: 1; }
.article-quote p { position: relative; margin: 0; color: var(--navy-900); font-size: 21px; font-weight: 700; font-style: italic; line-height: 1.65; }
.article-quote cite { display: block; margin-top: 16px; color: var(--red); font-size: 12px; font-style: normal; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.event-schedule-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 30px 0 46px; }
.event-schedule-grid > div { padding: 25px 26px; border-top: 5px solid var(--blue); background: var(--navy-900); color: white; box-shadow: var(--shadow); }
.event-schedule-grid > div:nth-child(2) { border-top-color: var(--red); }
.event-schedule-grid span { display: block; color: #9eb6cc; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.event-schedule-grid strong { display: block; margin-top: 5px; font-family: var(--heading); font-size: 31px; font-style: italic; text-transform: uppercase; }
.event-schedule-grid p { margin: 10px 0 0; color: #d6e2ee; font-size: 15px; line-height: 1.45; }
.article-promo-image { max-width: 820px; margin-left: auto; margin-right: auto; }
.article-promo-image img { max-height: none; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sponsorship-details { margin: 34px 0; padding: 28px 30px; background: #f7f9fc; border: 1px solid var(--line); }
.sponsorship-details h3 { margin: 0 0 16px; color: var(--navy-900); font-family: var(--heading); font-size: 28px; font-style: italic; text-transform: uppercase; }
.sponsorship-details ul { margin: 0; padding-left: 22px; color: #425168; }
.sponsorship-details li { margin: 10px 0; line-height: 1.65; }
.sponsorship-callout { border-left-color: var(--blue); }
@media (max-width: 650px) {
  .article-quote { padding: 26px 23px 24px 28px; }
  .article-quote p { font-size: 18px; }
  .event-schedule-grid { grid-template-columns: 1fr; }
  .event-schedule-grid strong { font-size: 27px; }
}

/* The Car — black studio showcase */
.car-dark-page { background: #020407; color: #fff; }
.car-black-hero { position: relative; min-height: 790px; overflow: hidden; display: grid; align-items: center; background: #020407; }
.car-black-hero-art { position: absolute; inset: 0; background: #020407 url('../images/car-front-dark.webp') center 58% / cover no-repeat; }
.car-black-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,4,7,.98) 0%, rgba(2,4,7,.88) 29%, rgba(2,4,7,.36) 52%, rgba(2,4,7,.10) 72%, rgba(2,4,7,.45) 100%), linear-gradient(0deg, rgba(2,4,7,.72) 0%, transparent 42%); }
.car-black-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg,var(--red) 0 32%,white 32% 36%,var(--blue) 36% 70%,var(--blue-bright) 70%); }
.car-black-hero-content { position: relative; z-index: 2; width: var(--shell); }
.car-black-copy { width: min(530px, 44vw); padding: 72px 0 64px; }
.car-black-copy h1 { color: #fff; font-size: clamp(72px, 9vw, 142px); line-height: .78; text-shadow: 0 12px 34px rgba(0,0,0,.5); }
.car-black-kicker { margin: 25px 0 17px; color: #8dc8f3; font-family: var(--heading); font-size: clamp(22px,2.3vw,35px); font-style: italic; font-weight: 900; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.car-black-lead { margin: 0; color: #d7e2ec; font-size: 17px; line-height: 1.8; }
.car-black-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin-top: 32px; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.car-black-facts div { padding: 15px 17px; background: rgba(5,14,25,.76); }
.car-black-facts span,.car-black-facts strong { display: block; }
.car-black-facts span { color: #7fbbe9; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.car-black-facts strong { margin-top: 3px; color: #fff; font-family: var(--heading); font-size: 19px; font-style: italic; text-transform: uppercase; }

.car-black-spec-stage { position: relative; min-height: 900px; overflow: hidden; background: #020407; }
.car-black-side-art { position: absolute; inset: 0; background: #020407 url('../images/car-side-dark.webp') center center / cover no-repeat; }
.car-black-stage-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,4,7,.22) 0%, rgba(2,4,7,.06) 46%, rgba(2,4,7,.38) 68%, rgba(2,4,7,.82) 100%), linear-gradient(0deg, rgba(2,4,7,.76) 0%, transparent 34%, rgba(2,4,7,.42) 100%); }
.car-black-stage-content { position: relative; z-index: 2; min-height: 900px; }
.car-black-stage-copy { position: absolute; z-index: 3; left: 0; top: 64px; max-width: 530px; padding: 27px 30px 29px; background: rgba(2,8,15,.76); border-left: 4px solid var(--red); backdrop-filter: blur(9px); }
.car-black-stage-copy h2 { margin: 6px 0 11px; color: #fff; font-size: clamp(38px,4.6vw,64px); }
.car-black-stage-copy p { margin: 0; color: #cddae6; }
.car-black-spec-card { position: absolute; z-index: 4; top: 76px; right: 0; width: min(430px, 36vw); overflow: hidden; background: rgba(255,255,255,.965); color: var(--ink); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 28px 75px rgba(0,0,0,.48); backdrop-filter: blur(14px); }
.car-black-spec-head { position: relative; padding: 24px 27px 21px; background: linear-gradient(110deg,var(--navy-900),#0d2e55); color: #fff; }
.car-black-spec-head::after { content: ''; position: absolute; top: 0; right: -20px; width: 98px; height: 100%; background: var(--red); transform: skewX(-28deg); }
.car-black-spec-head span,.car-black-spec-head h2 { position: relative; z-index: 1; }
.car-black-spec-head span { color: #8fc8f4; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.car-black-spec-head h2 { margin: 2px 0 0; color: #fff; font-size: 31px; }
.car-black-spec-card dl { margin: 0; padding: 8px 27px 20px; }
.car-black-spec-card dl div { display: grid; grid-template-columns: minmax(112px,.72fr) minmax(0,1.28fr); gap: 18px; padding: 12px 0; border-bottom: 1px solid #dfe6ed; }
.car-black-spec-card dl div:last-child { border-bottom: 0; }
.car-black-spec-card dt { color: var(--navy-700); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.car-black-spec-card dt::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; background: var(--red); transform: rotate(45deg); }
.car-black-spec-card dd { margin: 0; color: var(--ink); font-family: var(--heading); font-size: 15px; font-style: italic; font-weight: 900; line-height: 1.25; text-transform: uppercase; }

.car-black-partners { padding: 90px 0 104px; background: linear-gradient(180deg,#06111f,#020407); }
.car-black-partner-heading { max-width: 760px; margin-bottom: 37px; }
.car-black-partner-heading h2 { color: #fff; }
.car-black-partner-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.car-black-partner-card { display: flex; min-height: 230px; padding: 28px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.055); box-shadow: 0 18px 45px rgba(0,0,0,.24); flex-direction: column; justify-content: center; transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.car-black-partner-card:hover { transform: translateY(-4px); border-color: rgba(105,175,231,.58); background: rgba(255,255,255,.08); }
.car-black-partner-card span { color: #7fbbe9; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.car-black-partner-card img { max-width: 245px; max-height: 72px; margin: 22px 0 16px; object-fit: contain; object-position: left center; }
.car-black-partner-card strong { color: #fff; font-family: var(--heading); font-size: 24px; font-style: italic; line-height: 1.05; text-transform: uppercase; }
.car-black-partner-card p { margin: 10px 0 0; color: #9fb3c6; }
.car-black-24 { margin: 12px 0 7px; color: #fff; font-family: var(--heading); font-size: 82px; font-style: italic; font-weight: 900; line-height: .85; text-shadow: 4px 4px 0 var(--red); }
.car-dark-page .site-footer { border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 1040px) {
  .car-black-hero { min-height: 760px; }
  .car-black-hero-art { background-position: 63% 58%; }
  .car-black-copy { width: min(500px,55vw); }
  .car-black-spec-stage,.car-black-stage-content { min-height: 990px; }
  .car-black-side-art { background-size: auto 100%; background-position: 42% center; }
  .car-black-spec-card { width: 405px; max-width: 43vw; }
}
@media (max-width: 820px) {
  .car-black-hero { min-height: 880px; align-items: end; }
  .car-black-hero-art { background-size: auto 65%; background-position: center top 40px; }
  .car-black-hero-shade { background: linear-gradient(0deg,rgba(2,4,7,.99) 0%,rgba(2,4,7,.92) 44%,rgba(2,4,7,.18) 77%,rgba(2,4,7,.28) 100%); }
  .car-black-copy { width: 100%; padding-top: 450px; }
  .car-black-copy h1 { font-size: 82px; }
  .car-black-spec-stage { min-height: auto; padding: 55px 0 68px; background: #020407; }
  .car-black-side-art { position: relative; inset: auto; height: 480px; background-size: cover; background-position: center; }
  .car-black-stage-shade { display: none; }
  .car-black-stage-content { min-height: 0; display: grid; gap: 24px; }
  .car-black-stage-copy,.car-black-spec-card { position: relative; inset: auto; width: 100%; max-width: none; }
  .car-black-stage-copy { order: 1; margin-top: -135px; }
  .car-black-spec-card { order: 2; }
  .car-black-partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .car-black-hero { min-height: 820px; }
  .car-black-hero-art { background-size: auto 54%; background-position: center 45px; }
  .car-black-copy { padding-top: 365px; padding-bottom: 45px; }
  .car-black-copy h1 { font-size: 66px; }
  .car-black-facts { grid-template-columns: 1fr 1fr; }
  .car-black-side-art { height: 350px; }
  .car-black-stage-copy { margin-top: -70px; padding: 24px 23px; }
  .car-black-spec-card dl div { grid-template-columns: 1fr; gap: 4px; }
}


/* Version 34: explicit result / recap actions */
.result-action-cell { text-align: center; white-space: nowrap; }
.result-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 32px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.result-view-link { color: var(--blue); text-decoration-color: rgba(7,88,181,.3); }
.recap-view-link { color: var(--red); text-decoration-color: rgba(226,29,43,.3); }
.result-view-link:hover, .result-view-link:focus-visible { color: #00458f; text-decoration-color: currentColor; outline: none; }
.recap-view-link:hover, .recap-view-link:focus-visible { color: #b61521; text-decoration-color: currentColor; outline: none; }
.result-action-empty { color: #a7b2bd; }

/* Greenville event preview */
.greenville-history-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin: 30px 0 42px;
}
.greenville-history-card {
  position: relative;
  overflow: hidden;
  padding: 24px 25px 23px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  background: white;
  box-shadow: 0 12px 34px rgba(4,12,25,.09);
}
.greenville-history-card:nth-child(even) { border-top-color: var(--red); }
.greenville-history-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.greenville-history-card strong { display: block; margin-top: 5px; color: var(--navy-900); font-family: var(--heading); font-size: 34px; font-style: italic; line-height: 1; text-transform: uppercase; }
.greenville-history-card p { margin: 12px 0 0; color: #4f6073; font-size: 15px; line-height: 1.55; }

.article-video-block { margin: 42px 0 44px; }
.article-video-block > h2 { margin-bottom: 8px; }
.article-video-block > p { margin-top: 0; }
.youtube-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 22px;
  overflow: hidden;
  background: var(--navy-950);
  box-shadow: var(--shadow);
}
.youtube-shell::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,11,21,.72),rgba(5,11,21,.28)); pointer-events: none; }
.youtube-shell img { width: 100%; height: 100%; object-fit: cover; }
.youtube-shell iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.youtube-shell.is-playing::after { display: none; }
.youtube-play {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid white;
  background: rgba(5,11,21,.84);
  color: white;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
}
.youtube-play::before { content: '▶'; color: var(--red); font-size: 18px; }
.youtube-play:hover, .youtube-play:focus-visible { background: white; color: var(--navy-900); outline: none; }

@media (max-width: 760px) {
  .greenville-history-grid { grid-template-columns: 1fr; }
  .greenville-history-card strong { font-size: 30px; }
  .youtube-play { left: 18px; bottom: 18px; right: 18px; justify-content: center; padding: 0 16px; font-size: 12px; }
}


/* Version 35: Results + Schedule information architecture */
.season-summary-wrap {
  display: block;
  margin-bottom: 36px;
}
.year-stats-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  background: white;
  box-shadow: 0 10px 30px rgba(7,20,39,.07);
}
.year-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  background: var(--navy-900);
  color: white;
}
.year-stats-head span {
  color: #b9ccde;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.year-stats-head strong {
  font: italic 900 25px/1 var(--heading);
}
.year-stats-table-wrap { overflow: hidden; }
.year-stats-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.year-stats-table th {
  padding: 10px 15px;
  background: #eef2f6;
  color: #66758a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.year-stats-table th:first-child { width: 25%; text-align: left; }
.year-stats-table td {
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  color: var(--navy-900);
  font-size: 15px;
  text-align: center;
}
.year-stats-table td:first-child { text-align: left; }
.year-stats-table td strong {
  font: italic 900 20px/1 var(--heading);
}

/* Results table: no desktop horizontal scroll. */
.results-table {
  min-width: 0 !important;
  width: 100%;
  table-layout: fixed;
}
.results-table-wrap { overflow-x: visible; }
.results-table th,
.results-table td {
  padding: 12px 9px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.results-table th { font-size: 9px; letter-spacing: .075em; }
.results-table .result-class-badge {
  white-space: normal;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}
.results-table-2026 th:nth-child(1) { width: 4%; }
.results-table-2026 th:nth-child(2) { width: 8%; }
.results-table-2026 th:nth-child(3) { width: 14%; }
.results-table-2026 th:nth-child(4) { width: 11%; }
.results-table-2026 th:nth-child(5) { width: 6%; }
.results-table-2026 th:nth-child(6) { width: 7%; }
.results-table-2026 th:nth-child(7),
.results-table-2026 th:nth-child(8),
.results-table-2026 th:nth-child(9),
.results-table-2026 th:nth-child(10) { width: 7%; }
.results-table-2026 th:nth-child(11),
.results-table-2026 th:nth-child(12) { width: 8%; }
.results-table-2026 td:nth-child(1),
.results-table-2026 td:nth-child(5),
.results-table-2026 td:nth-child(n+6):nth-child(-n+12) { text-align: center; }
.results-table-2026 td:nth-child(2) { white-space: normal; }
.chronological-results h2 { margin-bottom: 18px; }

.results-table-legacy th:nth-child(1) { width: 8%; }
.results-table-legacy th:nth-child(2) { width: 10%; }
.results-table-legacy th:nth-child(3) { width: 13%; }
.results-table-legacy th:nth-child(4) { width: 7%; }
.results-table-legacy th:nth-child(5) { width: 9%; }
.results-table-legacy th:nth-child(6),
.results-table-legacy th:nth-child(7),
.results-table-legacy th:nth-child(8),
.results-table-legacy th:nth-child(9) { width: 8%; }
.results-table-legacy th:nth-child(10) { width: 21%; }

/* Recap-first rows use the same strong hover cue as detailed timing rows. */
.data-table tbody tr.has-race-recap {
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.data-table tbody tr.has-race-recap:hover,
.data-table tbody tr.has-race-recap:focus-visible {
  background: #eef5ff;
  box-shadow: inset 5px 0 0 var(--red);
  outline: 0;
}
.data-table tbody tr.has-race-recap:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.data-table tbody tr.has-race-recap:hover .race-detail-link,
.data-table tbody tr.has-race-recap:focus-visible .race-detail-link {
  color: #00458f;
  text-decoration-color: currentColor;
}

/* Upcoming event preview action. */
.schedule-item {
  grid-template-columns: 155px minmax(0,1fr) 155px auto;
}
.schedule-story-action { display: flex; justify-content: flex-end; }
.schedule-story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(7,88,181,.25);
  background: rgba(7,88,181,.05);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.schedule-story-link:hover,
.schedule-story-link:focus-visible {
  background: var(--blue);
  color: white;
  outline: none;
}
.schedule-item.has-preview { border-left-color: var(--blue); }

/* Completed schedule actions without desktop scrolling. */
.completed-schedule-table {
  min-width: 0 !important;
  width: 100%;
  table-layout: fixed;
}
.completed-schedule-wrap { overflow-x: visible; }
.completed-schedule-table th,
.completed-schedule-table td {
  padding: 12px 10px;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.completed-schedule-table th { font-size: 9px; letter-spacing: .075em; }
.completed-schedule-table th:nth-child(1) { width: 10%; }
.completed-schedule-table th:nth-child(2) { width: 17%; }
.completed-schedule-table th:nth-child(3) { width: 22%; }
.completed-schedule-table th:nth-child(4) { width: 14%; }
.completed-schedule-table th:nth-child(5),
.completed-schedule-table th:nth-child(6) { width: 7%; }
.completed-schedule-table th:nth-child(7),
.completed-schedule-table th:nth-child(8) { width: 11.5%; }
.completed-schedule-table td:nth-child(n+5) { text-align: center; }

/* Compact action links so Results/Recap stay visible. */
.result-action-link {
  min-width: 44px;
  min-height: 28px;
  padding: 0 3px;
  font-size: 10px;
}

@media (max-width: 900px) {
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { min-width: 0; width: 100%; }

  .year-stats-table thead { display: none; }
  .year-stats-table,
  .year-stats-table tbody,
  .year-stats-table tr,
  .year-stats-table td { display: block; width: 100%; }
  .year-stats-table tr { display: grid; grid-template-columns: repeat(3,1fr); padding: 12px 14px; border-top: 1px solid var(--line); }
  .year-stats-table tr:first-child { border-top: 0; }
  .year-stats-table td { padding: 8px; border: 0; text-align: left; }
  .year-stats-table td:first-child { grid-column: 1 / -1; padding-bottom: 10px; }
  .year-stats-table td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

  .results-table-wrap,
  .completed-schedule-wrap { overflow: visible; box-shadow: none; }
  .results-table thead,
  .completed-schedule-table thead { display: none; }
  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td,
  .completed-schedule-table,
  .completed-schedule-table tbody,
  .completed-schedule-table tr,
  .completed-schedule-table td { display: block; width: 100%; }
  .results-table tbody,
  .completed-schedule-table tbody { display: grid; gap: 12px; }
  .results-table tr,
  .completed-schedule-table tr {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    background: white;
    box-shadow: 0 8px 24px rgba(7,20,39,.06);
  }
  .results-table td,
  .completed-schedule-table td {
    min-height: 58px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left !important;
  }
  .results-table td::before,
  .completed-schedule-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .results-table-2026 td:nth-child(3),
  .results-table-legacy td:last-child,
  .completed-schedule-table td:nth-child(2),
  .completed-schedule-table td:nth-child(3) { grid-column: 1 / -1; }
  .results-table td .result-class-badge,
  .completed-schedule-table td .result-class-badge { white-space: nowrap; }
  .result-action-cell { display: flex !important; flex-direction: column; align-items: flex-start; justify-content: center; }
  .result-action-link { min-width: 0; justify-content: flex-start; }

  .schedule-item { grid-template-columns: 1fr; gap: 10px; }
  .schedule-story-action { justify-content: flex-start; padding-top: 4px; }
}

@media (max-width: 540px) {
  .year-stats-table tr { grid-template-columns: repeat(2,1fr); }
  .results-table tr,
  .completed-schedule-table tr { grid-template-columns: 1fr; }
  .results-table td,
  .completed-schedule-table td { min-height: 0; }
  .results-table-2026 td:nth-child(3),
  .results-table-legacy td:last-child,
  .completed-schedule-table td:nth-child(2),
  .completed-schedule-table td:nth-child(3) { grid-column: auto; }
}

.next-race-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.schedule-feature .next-race-actions { margin-top: 24px; }


/* Version 36: alignment cleanup for Results and Schedule */
/* Keep short/stat columns centered under their headers. */
.results-table-2026 th:nth-child(1),
.results-table-2026 td:nth-child(1),
.results-table-2026 th:nth-child(n+4):nth-child(-n+12),
.results-table-2026 td:nth-child(n+4):nth-child(-n+12) {
  text-align: center;
}

.completed-schedule-table th:nth-child(n+4):nth-child(-n+8),
.completed-schedule-table td:nth-child(n+4):nth-child(-n+8) {
  text-align: center;
}

/* Give every upcoming schedule row the same four-column grid, even when
   a row does not have an Event Preview link. This keeps class and action
   content vertically aligned from race to race. */
.schedule-item {
  grid-template-columns: 155px minmax(0, 1fr) 170px 165px;
}
.schedule-class {
  justify-self: stretch;
  text-align: center;
}
.schedule-story-action {
  width: 165px;
  justify-content: center;
}

@media (max-width: 900px) {
  .schedule-item { grid-template-columns: 1fr; }
  .schedule-class { justify-self: start; text-align: left; }
  .schedule-story-action { width: auto; justify-content: flex-start; }
}


/* Version 38: denser timing popup + full Results/Recap action labels */
.race-results-dialog { width: min(100%, 1040px); }
.race-results-modal-header { padding: 25px 28px 21px; }
.race-modal-heading { gap: 20px; }
.race-modal-heading h2 { margin-top: 2px; font-size: clamp(32px,4.25vw,50px); }
.race-modal-heading p { margin-top: 7px; font-size: 13px; }
.race-detail-date { font-size: 15px; }
.race-detail-status { padding: 7px 10px; font-size: 9px; }
.race-detail-summary { gap: 9px; margin-top: 17px; }
.race-detail-summary article { padding: 10px 13px; border-left-width: 3px; }
.race-detail-summary span { font-size: 9px; }
.race-detail-summary strong { font-size: 25px; }
.race-detail-summary small { margin-top: 3px; font-size: 11px; }
.race-detail-card { margin: 14px; }
.race-session-tab { padding: 11px 16px; border-bottom-width: 3px; font-size: 11px; }
.race-session-head { gap: 14px; padding: 15px 20px 11px; }
.race-session-head h3 { font-size: 25px; }
.race-session-head p { margin-top: 1px; font-size: 12px; }
.race-session-meta { font-size: 14px; }
.race-timing-table th { padding: 8px 13px; font-size: 10px; }
.race-timing-table th:nth-child(1), .race-timing-table td:nth-child(1) { width: 60px; }
.race-timing-table td { padding: 10px 13px; font-size: 14px; }
.race-competitor { gap: 7px; }
.race-car-number { min-width: 34px; }
.race-you-badge { padding: 2px 6px; font-size: 8px; }
.race-timing-note { padding: 10px 18px; font-size: 11px; }

.result-action-link { min-width: 56px; font-size: 9px; letter-spacing: .045em; }

.youtube-shell.is-preview-only .youtube-play[disabled] {
  cursor: default;
  opacity: .96;
  pointer-events: none;
}
.youtube-shell.is-preview-only .youtube-play::before { content: '▶'; }

@media (max-width: 760px) {
  .race-results-modal-header { padding: 21px 18px 18px; }
  .race-modal-heading h2 { font-size: clamp(30px,10vw,43px); }
  .race-modal-heading p { font-size: 12px; }
  .race-detail-summary { gap: 7px; margin-top: 14px; }
  .race-detail-summary article { padding: 9px 11px; }
  .race-detail-summary strong { font-size: 23px; }
  .race-detail-card { margin-top: 10px; }
  .race-session-tab { padding: 10px 8px; font-size: 10px; }
  .race-session-head { padding: 13px 14px 9px; }
  .race-session-head h3 { font-size: 22px; }
  .race-timing-table th, .race-timing-table td { padding: 9px 7px; font-size: 12px; }
  .race-timing-table th { font-size: 9px; }
  .race-timing-note { padding: 9px 12px; font-size: 10px; }
}

/* Version 39: restore original modal proportions while keeping denser timing rows */
.race-results-dialog {
  width: min(100%, 980px);
}

/* Restore the taller, better-composed photo banner from the pre-v38 layout. */
.race-results-modal-header {
  padding: 34px 34px 30px;
}
.race-modal-heading {
  gap: 28px;
}
.race-modal-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(38px,5vw,61px);
  line-height: .95;
}
.race-modal-heading p {
  margin: 10px 0 0;
  font-size: inherit;
}
.race-detail-date {
  font-size: 18px;
}
.race-detail-status {
  padding: 9px 13px;
  font-size: 11px;
}
.race-detail-summary {
  gap: 12px;
  margin-top: 26px;
}
.race-detail-summary article {
  padding: 15px 17px;
  border-left-width: 4px;
}
.race-detail-summary span {
  font-size: 10px;
}
.race-detail-summary strong {
  font-size: 31px;
}
.race-detail-summary small {
  margin-top: 5px;
  font-size: inherit;
}

/* Return the body to the narrower card proportions instead of stretching edge-to-edge. */
.race-detail-card {
  margin: 22px;
}
.race-session-tab {
  padding: 14px 20px;
  border-bottom-width: 4px;
  font-size: 11px;
}
.race-session-head {
  gap: 20px;
  padding: 19px 22px 13px;
}
.race-session-head h3 {
  font-size: 27px;
}
.race-session-head p {
  margin-top: 2px;
  font-size: 12px;
}
.race-session-meta {
  font-size: 15px;
}

/* Keep the denser results presentation: smaller type and tighter rows, not a wider modal. */
.race-timing-table th {
  padding: 7px 12px;
  font-size: 9px;
  line-height: 1.15;
}
.race-timing-table th:nth-child(1),
.race-timing-table td:nth-child(1) {
  width: 56px;
}
.race-timing-table td {
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.2;
}
.race-competitor {
  gap: 6px;
}
.race-car-number {
  min-width: 32px;
}
.race-you-badge {
  padding: 2px 5px;
  font-size: 7px;
}
.race-timing-note {
  padding: 9px 16px;
  font-size: 10px;
}

@media (max-width: 760px) {
  .race-results-modal-header {
    padding: 28px 20px 24px;
  }
  .race-modal-heading h2 {
    font-size: clamp(30px,10vw,43px);
  }
  .race-modal-heading p {
    font-size: 12px;
  }
  .race-detail-summary {
    gap: 7px;
    margin-top: 14px;
  }
  .race-detail-summary article {
    padding: 9px 11px;
  }
  .race-detail-summary strong {
    font-size: 23px;
  }
  .race-detail-card {
    margin: 14px 0 0;
  }
  .race-session-tab {
    padding: 10px 8px;
    border-bottom-width: 3px;
    font-size: 10px;
  }
  .race-session-head {
    padding: 13px 14px 9px;
  }
  .race-session-head h3 {
    font-size: 22px;
  }
  .race-timing-table th,
  .race-timing-table td {
    padding: 7px 6px;
    font-size: 11px;
  }
  .race-timing-table th {
    font-size: 8px;
  }
  .race-timing-note {
    padding: 8px 10px;
    font-size: 9px;
  }
}
