/*
 * Valley Raceway theme (customer layer): motocross, cross-country (hare scrambles), snocross and open practice in
 * Crystal Falls, Michigan. Brand blue #0342BB (legacy navbar and logo banner), ink navy, signal yellow for the one
 * call to action per screen. Light is the default theme (js/site.js, storedTheme); dark is a full design of its own.
 * Fonts: Barlow Condensed (display) and Barlow (text), loaded from Google Fonts in every page head.
 * The colour tokens come first: .tools/generate-public.mjs reads --primary and --foreground from the first :root and
 * .dark blocks to derive the racing pages' theme (css/public.css).
 */
:root {
  --background: #f2f5fb;
  --foreground: #0a1230;
  --card: #ffffff;
  --card-foreground: #0a1230;
  --popover: #ffffff;
  --popover-foreground: #0a1230;
  --primary: #0342bb;
  --primary-foreground: #ffffff;
  --secondary: #e3e9f7;
  --secondary-foreground: #0a1230;
  --muted: #e8edf8;
  --muted-foreground: #46526f;
  --accent: #dbe6ff;
  --accent-foreground: #0a1230;
  --destructive: #c4122f;
  --destructive-foreground: #ffffff;
  --border: #c9d3ea;
  --input: #c9d3ea;
  --ring: #0342bb;
  --chart-1: #0342bb;
  --chart-2: #f5b800;
  --chart-3: #1f9d6b;
  --chart-4: #e8590c;
  --chart-5: #7a3ff2;
  --sidebar: #e8edf8;
  --sidebar-foreground: #0a1230;
  --sidebar-primary: #0342bb;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #dbe6ff;
  --sidebar-accent-foreground: #0a1230;
  --sidebar-border: #c9d3ea;
  --sidebar-ring: #0342bb;
  --font-sans: 'Barlow', 'Barlow Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow Condensed Fallback Narrow', 'Barlow Condensed Fallback Arial', 'Arial Narrow', 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif;
  --tracking-normal: 0em;
  --radius: 0.5rem;
  --spacing: 0.25rem;
  --vr-navy: #060b1f;
  --vr-navy-2: #0b1640;
  --vr-blue: #0342bb;
  --vr-blue-bright: #3d7bff;
  --vr-yellow: #ffc300;
  --vr-yellow-hover: #ffd23d;
  --shadow-sm: 0 1px 2px rgb(10 18 48 / 0.12);
  --shadow: 0 2px 8px rgb(10 18 48 / 0.14);
  --shadow-md: 0 8px 24px rgb(10 18 48 / 0.16);
  --shadow-lg: 0 16px 40px rgb(10 18 48 / 0.2);
}

.dark {
  --background: #060b1f;
  --foreground: #eef2ff;
  --card: #0d1738;
  --card-foreground: #eef2ff;
  --popover: #101c44;
  --popover-foreground: #eef2ff;
  --primary: #6b9bff;
  --primary-foreground: #050a1c;
  --secondary: #16224f;
  --secondary-foreground: #eef2ff;
  --muted: #101b42;
  --muted-foreground: #a9b7e0;
  --accent: #1a2a63;
  --accent-foreground: #eef2ff;
  --destructive: #ff6b81;
  --destructive-foreground: #1c0309;
  --border: #22306a;
  --input: #22306a;
  --ring: #6b9bff;
  --chart-1: #6b9bff;
  --chart-2: #ffc300;
  --chart-3: #3ddc97;
  --chart-4: #ff8a3d;
  --chart-5: #b38bff;
  --sidebar: #0a1330;
  --sidebar-foreground: #eef2ff;
  --sidebar-primary: #6b9bff;
  --sidebar-primary-foreground: #050a1c;
  --sidebar-accent: #1a2a63;
  --sidebar-accent-foreground: #eef2ff;
  --sidebar-border: #22306a;
  --sidebar-ring: #6b9bff;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow: 0 2px 8px rgb(0 0 0 / 0.45);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 16px 40px rgb(0 0 0 / 0.55);
}

/* Metric-adjusted local fallbacks: the text barely moves when the web fonts arrive (font-display: swap). */
@font-face {
  font-family: 'Barlow Condensed Fallback Narrow';
  src: local('Arial Narrow'), local('ArialNarrow'), local('Liberation Sans Narrow');
  size-adjust: 104%;
  ascent-override: 96%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Condensed Fallback Arial';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 83%;
  ascent-override: 120%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Fallback';
  src: local('Arial');
  size-adjust: 96%;
  ascent-override: 101%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ base */
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  background: var(--background);
}
/* Focus: brand blue on light surfaces (3:1 or better), yellow only on the dark ones. */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
[data-site-header] :focus-visible,
[data-theme-region='footer'] :focus-visible,
.vr-hero :focus-visible,
.dark :focus-visible { outline-color: var(--vr-yellow); }
/* Menus and sheets have their own (light or dark) panel, even when they sit inside the header. */
.imported-menu-popup :focus-visible,
.imported-sheet-panel :focus-visible { outline-color: var(--vr-blue); }
.dark .imported-menu-popup :focus-visible,
.dark .imported-sheet-panel :focus-visible { outline-color: var(--vr-yellow); }
::selection { background: var(--vr-blue); color: #fff; }

/* Display headings: condensed, heavy, upper case. The racing data pages ([data-live-page]) keep their own. */
main h1:not([data-live-page] *),
main h2:not([data-live-page] *),
main h3:not([data-live-page] *),
.vr-display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
main h1:not([data-live-page] *) { font-size: clamp(2.5rem, 1.6rem + 4.6vw, 4.75rem); font-style: italic; }
main h2:not([data-live-page] *) { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
main h3:not([data-live-page] *) { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
main .prose :is(h4, h5) { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose :where(a) { text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.prose :where(img) { border-radius: 0.75rem; box-shadow: var(--shadow-md); }
.prose :where(ul > li)::marker { color: var(--primary); }

/* ------------------------------------------------------------------ header and footer: always dark */
[data-site-header],
[data-theme-region='footer'] {
  --background: var(--vr-navy);
  --foreground: #ffffff;
  --card: #0d1738;
  --muted: rgb(255 255 255 / 0.1);
  --muted-foreground: #aebbe6;
  --accent: rgb(255 255 255 / 0.14);
  --accent-foreground: #ffffff;
  --border: #1d2c66;
  --primary: #8fb2ff;
  --ring: #ffc300;
  background: var(--vr-navy);
  color: #fff;
}
[data-site-header] {
  border-bottom: 0;
  box-shadow: 0 3px 0 var(--vr-blue), 0 10px 24px rgb(2 6 23 / 0.35);
}
[data-site-header] [data-header-brand] img { filter: invert(1) brightness(1.2); }
[data-site-header] [data-nav-item] > a,
[data-site-header] [data-nav-item] > button,
[data-site-header] [data-more-item] > button {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
}
[data-site-header] [data-nav-item] > a:hover,
[data-site-header] [data-nav-item] > button:hover,
[data-site-header] [data-more-item] > button:hover { color: var(--vr-yellow); background: rgb(255 255 255 / 0.08); }
[data-site-header] [data-nav-item] > a[data-active='true'],
[data-site-header] [data-nav-item] > a[aria-current='page'] { color: var(--vr-yellow); }
[data-site-header] [data-nav-item] > a::after { height: 3px; background: var(--vr-yellow); }
[data-site-header] button { color: #fff; }
[data-site-header] button:hover:not(:disabled) { background: rgb(255 255 255 / 0.12); }
[data-site-header] [data-header-actions] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--vr-yellow);
  color: #0a1230;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: skewX(-10deg);
  box-shadow: 0 0 0 0 rgb(255 195 0 / 0);
  transition: background-color 0.15s, box-shadow 0.15s;
}
[data-site-header] [data-header-actions] a:hover { background: var(--vr-yellow-hover); box-shadow: 0 4px 16px rgb(255 195 0 / 0.35); color: #0a1230; }
[data-site-header] [data-header-actions] a:focus-visible { outline-color: #fff; }

[data-theme-region='footer'] {
  border-top: 4px solid var(--vr-blue);
  background:
    linear-gradient(135deg, transparent 0 60%, rgb(3 66 187 / 0.28) 60% 62%, transparent 62% 70%, rgb(3 66 187 / 0.16) 70% 71%, transparent 71%),
    var(--vr-navy);
}
[data-theme-region='footer'] a:hover { color: var(--vr-yellow); }
[data-theme-region='footer'] [data-cms^='footer-en-1'] span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}
[data-theme-region='footer'] ul a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ page title band */
main { overflow-x: clip; }
main > section:first-child:not(.vr-hero) { position: relative; padding-top: 0; }
main > section:first-child:not(.vr-hero) > .container { padding-top: 0; padding-bottom: 0; }
main > section:first-child:not(.vr-hero) > .container:has(.prose) { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
main > section:first-child:not(.vr-hero):not(:has(.prose)) { border-bottom: 0; }
main > section:first-child:not(.vr-hero) [data-cms='public-intro'] { padding-top: 1.25rem; }
main > section:first-child:not(.vr-hero) + * { margin-top: 0.5rem; }
main > section:first-child:not(.vr-hero) h1:not([data-live-page] *) {
  position: relative;
  isolation: isolate;
  margin-bottom: 0.5rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  clip-path: inset(0 -100vmax);
}
main > section:first-child:not(.vr-hero) h1:not([data-live-page] *)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -100vmax;
  background:
    linear-gradient(120deg, transparent 0 72%, rgb(61 123 255 / 0.28) 72% 76%, transparent 76% 80%, rgb(61 123 255 / 0.16) 80% 82%, transparent 82%),
    linear-gradient(100deg, var(--vr-navy) 0%, var(--vr-navy-2) 55%, #0a2a85 100%);
}
main > section:first-child:not(.vr-hero) h1:not([data-live-page] *)::after {
  content: '';
  position: absolute;
  left: -100vmax;
  right: -100vmax;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(115deg, var(--vr-yellow) 0 22px, var(--vr-blue) 22px 44px);
}
@media (min-width: 1024px) {
  main > section:first-child:not(.vr-hero) h1:not([data-live-page] *) {
    padding-left: 0;
  }
}

/* ------------------------------------------------------------------ home hero */
.vr-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: var(--vr-navy);
  isolation: isolate;
}
.vr-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 38%;
  border-radius: 0;
  box-shadow: none;
}
.vr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgb(4 9 32 / 0.93) 0%, rgb(4 18 78 / 0.72) 42%, rgb(3 66 187 / 0.06) 100%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgb(255 255 255 / 0.025) 46px 48px),
    linear-gradient(180deg, transparent 60%, rgb(4 9 32 / 0.65));
}
.vr-hero__inner {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 640px) { .vr-hero__inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .vr-hero__inner { padding-inline: 2rem; } }
.vr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vr-yellow);
}
.vr-hero__eyebrow::before {
  content: '';
  width: 2.75rem;
  height: 4px;
  background: var(--vr-yellow);
  transform: skewX(-30deg);
}
.vr-hero__title {
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 1.5rem + 10vw, 8.5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgb(0 0 0 / 0.45);
}
.vr-hero__text {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.55;
  color: #e4ebff;
}
.vr-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vr-hero__tags li {
  padding: 0.3rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(4px);
}
.vr-hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.vr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.6rem 2rem;
  border: 2px solid var(--vr-yellow);
  border-radius: 0.25rem;
  background: var(--vr-yellow);
  color: #0a1230;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transform: skewX(-10deg);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.vr-btn:hover { background: var(--vr-yellow-hover); border-color: var(--vr-yellow-hover); box-shadow: 0 8px 26px rgb(255 195 0 / 0.35); color: #0a1230; }
@media (prefers-reduced-motion: no-preference) { .vr-btn:hover { transform: skewX(-10deg) translateY(-2px); } }
.vr-btn--ghost { background: rgb(255 255 255 / 0.06); border-color: #fff; color: #fff; }
.vr-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--vr-navy); box-shadow: 0 8px 26px rgb(255 255 255 / 0.2); }
.vr-hero__credit {
  position: absolute;
  right: 1rem;
  bottom: 0.6rem;
  z-index: 1;
  margin: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  background: rgb(4 9 32 / 0.78);
  color: #eef2ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 640px) { .vr-hero__photo { object-position: 52% 38%; } }
.vr-hero__banner { position: relative; line-height: 0; border-top: 4px solid var(--vr-yellow); }
.vr-hero__banner img { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .vr-hero__inner > * { animation: vr-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .vr-hero__inner > :nth-child(2) { animation-delay: 0.08s; }
  .vr-hero__inner > :nth-child(3) { animation-delay: 0.16s; }
  .vr-hero__inner > :nth-child(4) { animation-delay: 0.24s; }
  .vr-hero__inner > :nth-child(5) { animation-delay: 0.32s; }
}
@keyframes vr-rise { from { opacity: 0; transform: translateY(18px); } }

/* ------------------------------------------------------------------ content sections */
main > section.border-b { border-color: var(--border); }
main > section:not(:first-child).border-b:nth-of-type(even) { background: var(--card); }
main > section:not(:first-child) h2:not([data-live-page] *) {
  position: relative;
  padding-left: 1.1rem;
  color: var(--foreground);
}
main > section:not(:first-child) h2:not([data-live-page] *)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.08em;
  width: 0.4rem;
  background: linear-gradient(180deg, var(--vr-yellow), var(--vr-blue));
  transform: skewX(-12deg);
}
.prose :is(h2, h3) { color: var(--foreground); }
.prose h2 { margin-top: 1.75em; }
.prose h3 { color: var(--primary); }

/* ------------------------------------------------------------------ sponsors grid */
[data-vr-sponsors] .grid > .rounded-lg.border {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
[data-vr-sponsors] .grid > .rounded-lg.border::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--vr-blue), var(--vr-blue-bright) 60%, var(--vr-yellow));
}
@media (prefers-reduced-motion: no-preference) { [data-vr-sponsors] .grid > .rounded-lg.border:hover { transform: translateY(-4px); } }
[data-vr-sponsors] .grid > .rounded-lg.border:hover { box-shadow: var(--shadow-lg); border-color: var(--vr-blue-bright); }
[data-vr-sponsors] .grid > .rounded-lg.border > img {
  width: calc(100% + 2.5rem);
  max-width: none;
  height: 11rem;
  margin: -1.25rem -1.25rem 0.25rem;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
}
[data-vr-sponsors] .grid > .rounded-lg.border h2 { font-size: 1.75rem; }
[data-vr-sponsors] .grid > .rounded-lg.border > div:last-child { margin-top: auto; }
[data-vr-sponsors] .grid > .rounded-lg.border > div:last-child > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s;
}
[data-vr-sponsors] .grid > .rounded-lg.border > div:last-child > a::after { content: '\2192'; }
[data-vr-sponsors] .grid > .rounded-lg.border > div:last-child > a:hover { background: var(--vr-blue-bright); color: #050a1c; }
@media (min-width: 1024px) {
  [data-vr-sponsors] .grid.md\:grid-cols-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ rules accordions */
details[data-rules-group] {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
details[data-rules-group] > summary {
  position: relative;
  display: block;
  padding: 1.1rem 4rem 1.1rem 1.5rem;
  list-style: none;
  color: #fff;
  background: linear-gradient(100deg, var(--vr-navy) 0%, var(--vr-navy-2) 65%, #0a2a85 100%);
  border-left: 8px solid var(--vr-yellow);
  cursor: pointer;
}
details[data-rules-group] > summary::-webkit-details-marker { display: none; }
details[data-rules-group] > summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border-radius: 50%;
  background: var(--vr-yellow);
  color: #0a1230;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
details[data-rules-group][open] > summary::after { content: '\2212'; }
details[data-rules-group] > summary h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem) !important;
  line-height: 1.05;
}
main details[data-rules-group] > summary h2:not([data-live-page] *) { padding-left: 0; color: #fff; }
main details[data-rules-group] > summary h2:not([data-live-page] *)::before { display: none; }
details[data-rules-group] > summary:focus-visible { outline-offset: -4px; }
details[data-rules-group] > div { padding-top: 1.5rem; }
details[data-rules-group] > div > .flex.flex-col.gap-2 {
  padding: 1rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 0.5rem;
  background: var(--background);
}
details[data-rules-group] > div > .flex.flex-col.gap-2 > h3 {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-size: 1.6rem;
}
details[data-rules-group] .prose { font-size: 1rem; }
details[data-rules-group] .prose :where(img) { max-width: 100%; height: auto; border: 1px solid var(--border); }
details[data-rules-group] .prose :where(p) { margin-block: 0.2em; }

/* ------------------------------------------------------------------ contact card */
.prose:has(a[href^='mailto:']):has(a[href^='tel:']) {
  max-width: 34rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-left: 8px solid var(--vr-yellow);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
}
.prose:has(a[href^='mailto:']):has(a[href^='tel:']) > p:first-child {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}
.prose:has(a[href^='mailto:']):has(a[href^='tel:']) > p { margin-block: 0.7em; }
.prose:has(a[href^='mailto:']):has(a[href^='tel:']) > p:nth-child(2) { margin-top: 0; color: var(--muted-foreground); font-weight: 600; }

/* ------------------------------------------------------------------ racing data pages: same family, same shape */
[data-live-page] { font-family: var(--font-sans); }
[data-live-page] :is(h1, h2, h3):not(.no-display) { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; }

@media (max-width: 640px) {
  .vr-btn { width: 100%; font-size: 1.35rem; }
  [data-vr-sponsors] .grid > .rounded-lg.border > img { height: 9rem; }
}

/* The compiled Tailwind CSS has no lg:grid-cols-12 / lg:col-span-* / lg:justify-end: the footer columns are laid out here. */
@media (min-width: 1024px) {
  [data-theme-region='footer'] .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  [data-theme-region='footer'] .lg\:col-span-4 { grid-column: span 4 / span 4; }
  [data-theme-region='footer'] .lg\:col-span-8 { grid-column: span 8 / span 8; }
  [data-theme-region='footer'] ul.lg\:justify-end { justify-content: flex-end; }
}
