/*
 * Ascot Park MX: the site's own design (customer layer). Loaded after the LiveLaps layer (css/site.css, css/imported.css)
 * and the theme (css/theme.css). Colours come from the theme tokens plus the few brand constants below, so Studio's design
 * controls keep working. The poster font stack needs no web font and no third party.
 * Navy sections (.gp-dark, .gp-hero, header, footer) are navy in both themes on purpose.
 * Text colours were chosen for WCAG AA: cream (#f5f0e6) and sky-light (#8fbcf0) on navy, white on flag red (#b22234).
 */
:root {
  --gp-night: #0b1f3a;
  --gp-night-2: #12305a;
  --gp-sand: #f5f0e6;
  --gp-red: #b22234;
  --gp-red-hover: #c93046;
  --gp-sky: #3a75c4;
  --gp-sky-light: #8fbcf0;
  --gp-max: 72rem;
  --gp-display: var(--font-display, Impact, 'Arial Narrow Bold', Haettenschweiler, sans-serif);
  --gp-stripes: repeating-linear-gradient(90deg, var(--gp-red) 0 1.5rem, #ffffff 1.5rem 3rem);
}
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { font-family: var(--font-sans, system-ui, sans-serif); background: var(--background); color: var(--foreground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.gp-skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--gp-red); color: #fff; padding: .6rem 1rem; border-radius: .5rem; font-weight: 700; }
.gp-skip:focus { top: .5rem; }
:where(main, footer) a:focus-visible, .gp-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.gp-dark a:focus-visible, .gp-hero a:focus-visible, .gp-footer a:focus-visible, .gp-pagehead a:focus-visible { outline-color: var(--gp-sky-light); }

/* ---- header (navy in both themes) */
header[data-site-header] { background: var(--gp-night) !important; color: var(--gp-sand) !important; border-bottom: 3px solid var(--gp-red); }
header[data-site-header] :is([data-slot="navigation-menu-link"], [data-base-ui-navigation-menu-trigger], [data-slot="dropdown-menu-trigger"], [data-slot="sheet-trigger"], [data-chatwoot-launcher], [data-header-actions] a:first-child) { background: transparent !important; color: var(--gp-sand) !important; }
header[data-site-header] :is([data-slot="navigation-menu-link"], [data-base-ui-navigation-menu-trigger], [data-slot="dropdown-menu-trigger"], [data-slot="sheet-trigger"]):is(:hover, :focus-visible) { background: rgb(245 240 230 / .14) !important; }
header[data-site-header] [data-nav-item] > :is(a, button) { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: .8rem; }
header[data-site-header] [data-header-actions] a:last-child { background: var(--gp-red) !important; color: #fff !important; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
header[data-site-header] [data-header-actions] a:last-child:hover { background: var(--gp-red-hover) !important; }
[data-header-brand] img, [data-probe-brand] img { height: 3rem; width: auto; max-width: none; }
@media (max-width: 40rem) { [data-header-brand] img, [data-probe-brand] img { height: 2.4rem; } }

/* ---- layout helpers */
.gp-wrap { width: 100%; max-width: var(--gp-max); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 48rem) { .gp-wrap { padding-inline: 2rem; } }
.gp-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.gp-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.gp-paper { background: var(--card); border-block: 1px solid var(--border); }
.gp-section h2, .gp-pagehead h1, .gp-hero h1, .gp-cta h2, .gp-band h2 { font-family: var(--gp-display); font-weight: 400; text-transform: uppercase; letter-spacing: .015em; line-height: 1.04; }
.gp-section h2, .gp-band h2, .gp-cta h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 .75rem; }
.gp-eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-foreground); margin: 0 0 .6rem; }
.gp-hero .gp-eyebrow, .gp-dark .gp-eyebrow, .gp-pagehead .gp-eyebrow, .gp-featured .gp-eyebrow, .gp-band .gp-eyebrow { color: var(--gp-sky-light); }
.gp-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 46rem; margin: 0 0 1.5rem; color: inherit; opacity: .92; }
.gp-note { font-size: .95rem; color: var(--muted-foreground); margin: 1.25rem 0 0; max-width: 50rem; }
.gp-small-print { font-size: .9rem; color: var(--muted-foreground); }
.gp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.gp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; text-align: center; }
.gp-btn:hover { transform: translateY(-2px); }
.gp-btn-primary { background: var(--gp-red); color: #fff; }
.gp-btn-primary:hover { background: var(--gp-red-hover); }
.gp-btn-ghost { border-color: rgb(245 240 230 / .65); color: var(--gp-sand); }
.gp-btn-ghost:hover { background: rgb(245 240 230 / .14); }
.gp-btn-outline { border-color: currentColor; color: var(--foreground); }
.gp-btn-outline:hover { background: var(--foreground); color: var(--background); }
.gp-dark .gp-btn-outline { color: var(--gp-sand); }
.gp-dark .gp-btn-outline:hover { background: var(--gp-sand); color: var(--gp-night); }
.gp-btn-dark { background: var(--gp-night); color: var(--gp-sand); }
.gp-btn-dark:hover { background: var(--gp-night-2); }
.gp-btn-light { background: #fff; color: var(--gp-night); }
.gp-btn-light:hover { background: var(--gp-sand); }
.gp-btn-small { min-height: 2.5rem; padding: .5rem 1rem; }
.gp-textlink { display: inline-block; margin-top: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; color: var(--accent-foreground); text-decoration: underline; text-underline-offset: 4px; }

/* ---- stars-and-stripes motifs: stripe band and star divider */
.gp-stripes { height: .6rem; background: var(--gp-stripes); }
.gp-stardiv { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 1.5rem; color: var(--gp-red); font-size: .95rem; letter-spacing: .6em; }
.gp-stardiv::before, .gp-stardiv::after { content: ''; flex: 1; max-width: 8rem; height: 3px; background: linear-gradient(90deg, transparent, currentColor); }
.gp-stardiv::after { background: linear-gradient(270deg, transparent, currentColor); }
.gp-stardiv span { padding-left: .6em; }
.gp-dark .gp-stardiv, .gp-hero .gp-stardiv { color: var(--gp-sky-light); }

/* ---- dark band used for emphasis, navy in both themes */
.gp-dark { background: var(--gp-night); color: var(--gp-sand); background-image: radial-gradient(60rem 30rem at 85% -10%, rgb(58 117 196 / .28), transparent 60%); }
.gp-dark h2, .gp-dark h3 { color: var(--gp-sand); }

/* ---- page heading (own pages and the generated racing pages) */
.gp-pagehead, main > section[data-cms-section="page-heading"] { background: var(--gp-night); color: var(--gp-sand); position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6.5vw, 5rem); max-width: none; background-image: radial-gradient(50rem 24rem at 90% -20%, rgb(58 117 196 / .35), transparent 60%); }
.gp-pagehead::after, main > section[data-cms-section="page-heading"]::after { content: ''; position: absolute; inset: auto 0 0 0; height: .5rem; background: var(--gp-stripes); }
.gp-pagehead h1, main > section[data-cms-section="page-heading"] h1 { font-size: clamp(2.5rem, 7vw, 4.5rem) !important; margin: 0 0 .5rem; color: var(--gp-sand) !important; padding: 0; }
main > section[data-cms-section="page-heading"] { padding-inline: max(1.25rem, calc((100% - var(--gp-max)) / 2 + 2rem)) !important; }
main > section[data-cms-section="page-heading"] h1 { font-family: var(--gp-display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .015em; line-height: 1.04 !important; }
main > section[data-cms-section="page-heading"] [data-cms="public-intro"] { color: rgb(245 240 230 / .9); font-size: 1.15rem; }
main > section[data-cms-section="page-heading"] a { color: var(--gp-sky-light); }
main > section[data-cms-section="page-heading"] + .mrc-public, main > [data-live-page] { margin-top: 2rem; }

/* ---- hero */
.gp-hero { position: relative; background: var(--gp-night); color: var(--gp-sand); isolation: isolate; overflow: hidden; }
.gp-hero-bg, .gp-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gp-hero-bg img { object-fit: cover; object-position: 50% 55%; }
.gp-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(7 20 40 / .9) 6%, rgb(7 20 40 / .55) 52%, rgb(7 20 40 / .1)), linear-gradient(0deg, rgb(7 20 40 / .75), transparent 38%); }
.gp-hero-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 7.5rem); align-items: end; }
@media (min-width: 62rem) { .gp-hero-grid { grid-template-columns: 1.6fr 1fr; } }
.gp-hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.25rem); margin: 0 0 1.25rem; color: var(--gp-sand); max-width: 16ch; text-shadow: 0 2px 24px rgb(0 0 0 / .45); }
.gp-hero .gp-lede { color: var(--gp-sand); }
.gp-hero .gp-stripes { position: absolute; inset: auto 0 0 0; z-index: 2; }
.gp-featured { background: rgb(7 20 40 / .82); backdrop-filter: blur(6px); border: 1px solid rgb(143 188 240 / .55); border-top: 5px solid var(--gp-red); border-radius: 1rem; padding: 1.75rem; box-shadow: 0 20px 50px rgb(0 0 0 / .4); }
.gp-featured-label { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--gp-sky-light); margin: 0 0 .5rem; }
.gp-featured h2 { font-family: var(--gp-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1; margin: 0; color: var(--gp-sand); }
.gp-featured-note { font-size: .98rem; opacity: .92; margin: .75rem 0 1.25rem; line-height: 1.55; }

/* ---- stats */
.gp-stats { background: var(--gp-red); color: #fff; }
.gp-stats dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; margin: 0; padding-block: 1.75rem; }
@media (min-width: 48rem) { .gp-stats dl { grid-template-columns: repeat(4, 1fr); } }
.gp-stats dt { font-family: var(--gp-display); font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1; text-transform: uppercase; }
.gp-stats dd { margin: .3rem 0 0; font-weight: 700; font-size: .9rem; }

/* ---- quick-link cards */
.gp-cards { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .gp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .gp-cards { grid-template-columns: repeat(3, 1fr); } }
.gp-cards-2 { margin-top: 1.5rem; }
@media (min-width: 64rem) { .gp-cards-2 { grid-template-columns: repeat(2, 1fr); } }
.gp-card { position: relative; display: block; padding: 1.5rem 1.5rem 3.25rem; background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-top: 5px solid var(--gp-sky); border-radius: 1rem; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.gp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--gp-red); }
.gp-card-static { padding-bottom: 1.5rem; }
.gp-card-static:hover { transform: none; box-shadow: none; border-top-color: var(--gp-sky); }
.gp-card-no { font-family: var(--gp-display); color: var(--accent-foreground); font-size: 1rem; letter-spacing: .1em; }
.gp-card h3 { font-family: var(--gp-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; margin: .25rem 0 .4rem; letter-spacing: .01em; }
.gp-card p { margin: 0; color: var(--muted-foreground); line-height: 1.55; }
.gp-arrow { position: absolute; right: 1.25rem; bottom: 1rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--gp-red); color: #fff; font-weight: 900; transition: transform .18s; }
.gp-card:hover .gp-arrow { transform: translateX(4px); }

/* ---- split layouts */
.gp-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .gp-split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .gp-split-flip > :first-child { order: 2; } }
.gp-split figure { margin: 0; }
.gp-split-img img, .gp-photo img { width: 100%; height: auto; border-radius: 1rem; box-shadow: var(--shadow-xl); display: block; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid var(--card); }
.gp-photo figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted-foreground); }
.gp-prose h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.gp-prose p { margin: 0 0 1rem; line-height: 1.7; font-size: 1.05rem; }
.gp-prose h3 { font-family: var(--gp-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; margin: 1.5rem 0 .5rem; }
.gp-dark .gp-prose p { color: var(--gp-sand); }
.gp-band { background: var(--gp-night-2); color: var(--gp-sand); padding-block: clamp(3rem, 7vw, 5rem); background-image: linear-gradient(135deg, rgb(7 20 40 / .45), transparent 60%); }

/* ---- values */
.gp-values { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .gp-values { grid-template-columns: repeat(3, 1fr); } }
.gp-values > li { padding: 1.5rem; border: 1px solid rgb(245 240 230 / .2); border-top: 5px solid var(--gp-red); border-radius: 1rem; background: rgb(245 240 230 / .06); }
.gp-values h3 { font-family: var(--gp-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; margin: 0 0 .4rem; }
.gp-values p { margin: 0; line-height: 1.6; opacity: .92; }

/* ---- facts and lists */
.gp-facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.gp-facts > li { padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-left: 6px solid var(--gp-red); border-radius: .75rem; line-height: 1.55; }
.gp-facts strong { display: block; }
.gp-dark .gp-facts > li { background: rgb(245 240 230 / .07); border-color: rgb(245 240 230 / .18); border-left-color: var(--gp-sky-light); }
.gp-inline-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.gp-inline-list > li { padding: .8rem 1.1rem; background: var(--card); border: 1px solid var(--border); border-left: 6px solid var(--gp-sky); border-radius: .75rem; font-weight: 600; line-height: 1.5; }
.gp-inline-list a { font-weight: 800; text-decoration: underline; text-decoration-color: var(--gp-red); text-underline-offset: 4px; }

/* ---- cta band */
.gp-cta { background: var(--gp-red); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.gp-cta .gp-wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) { .gp-cta .gp-wrap { grid-template-columns: 1fr auto; } }
.gp-cta h2 { color: #fff; }
.gp-cta p { margin: 0; font-size: 1.1rem; }
.gp-cta .gp-actions { margin: 0; }

/* ---- contact */
.gp-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .gp-contact-list { grid-template-columns: repeat(3, 1fr); } }
.gp-contact-card { padding: 1.5rem; background: var(--card); border: 1px solid var(--border); border-top: 5px solid var(--gp-red); border-radius: 1rem; }
.gp-contact-card h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 800; color: var(--muted-foreground); margin: 0 0 .5rem; }
.gp-contact-link { font-size: 1.2rem; font-weight: 800; color: var(--foreground); overflow-wrap: anywhere; text-decoration-color: var(--gp-red); text-underline-offset: 4px; }
.gp-form { display: grid; gap: 1rem; max-width: 40rem; }
.gp-form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.gp-form input, .gp-form textarea { width: 100%; padding: .75rem .9rem; border-radius: .6rem; border: 1px solid var(--border); background: var(--input); color: var(--foreground); font: inherit; }
.gp-form textarea { min-height: 9rem; resize: vertical; }
.gp-form input:focus-visible, .gp-form textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.gp-form [aria-invalid="true"] { border-color: var(--destructive); }
.gp-form .gp-req { color: var(--gp-red); }
.gp-form [data-contact-status]:empty { display: none; }
.gp-social { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.gp-address { font-style: normal; line-height: 1.7; font-size: 1.1rem; font-weight: 600; }

/* ---- map frame */
.gp-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; border: 4px solid var(--card); background: var(--gp-night); box-shadow: var(--shadow-lg); }
.gp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gp-frame-map { aspect-ratio: 4 / 3; }

/* ---- footer (navy in both themes) */
.gp-footer { background: var(--gp-night); color: var(--gp-sand); margin-top: 0; border-top: 6px solid var(--gp-red); }
.gp-footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
@media (min-width: 56rem) { .gp-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.gp-footer-brand img { width: 15rem; max-width: 100%; height: auto; }
.gp-footer-brand p { margin: 1rem 0 0; max-width: 22rem; opacity: .9; }
.gp-footer h2 { font-family: var(--gp-display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--gp-sky-light); font-size: 1.15rem; margin: 0 0 .75rem; }
.gp-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.gp-footer nav a { color: var(--gp-sand); text-decoration: none; padding: .3rem 0; overflow-wrap: anywhere; }
.gp-footer nav a:hover { color: var(--gp-sky-light); text-decoration: underline; }
.gp-footer-bar { border-top: 1px solid rgb(245 240 230 / .18); padding-block: 1.25rem; font-size: .875rem; }
.gp-footer-bar .gp-wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.gp-footer-bar p { margin: 0; opacity: .9; }
.gp-footer-bar a { color: var(--gp-sky-light); }

/* ---- the promoter-driven schedule (shown only when the promoter has events) */
[data-imported-schedule]:not([hidden]) { padding-block: 3rem; }
