/* ================================================================== PART B: customer layer */
:root {
  --zc-black: #000000;
  --zc-yellow: #ffd200;
  --zc-white: #ffffff;
  --zc-chrome: #c5cad3;
  --zc-chrome-deep: #8a919c;
  --zc-red: #e1261c;
  --zc-red-ink: #c4161c; /* red as small text on white: 5.9:1 */
  --zc-orange: #ff5a00; /* the course marking; graphic use only */
  --zc-focus: #000000;
  /* One display family, two widths: wide for names, condensed for data. Fallbacks are metric-matched below. */
  --zc-wide: "Anybody", "ZC Wide A", "ZC Wide R", "ZC Wide H", sans-serif;
  --zc-cond: "Anybody", "ZC Cond R", "ZC Cond A", sans-serif;
  --zc-wrap: 78rem;
  --zc-gutter: 1rem;
  --zc-header-h: 3.75rem;
  --zc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 40rem) {
  :root {
    --zc-gutter: 1.5rem;
  }
}
@media (min-width: 64rem) {
  :root {
    --zc-gutter: 2.5rem;
    --zc-header-h: 4.25rem;
  }
}
.dark {
  --zc-focus: #ffd200;
  --zc-red-ink: #ff6b5e;
}

/*
 * Fallback faces for the display font, shown until Anybody arrives (font-display: swap). The layout does not depend
 * on them: the home page's poster text sits on one line that cannot wrap, in a box of fixed height, so the swap moves
 * nothing there (the shell page headings do wrap and may shift once). These faces only keep the first paint looking close.
 * Each is a local system font scaled (size-adjust) to the advance width of Anybody Italic as used here:
 * wide = wdth 125 wght 900 in sentence case, condensed = between wdth 62 and 75. Measured in the browser:
 *   wide:      Arial Black x1.35, Roboto Black x1.70, Arial Bold x1.56
 *   condensed: Arial Bold x0.79, Roboto Bold x0.86
 * No font-style descriptor: the browser slants them itself when italic is asked for.
 */
@font-face {
  font-family: "ZC Wide A";
  src: local("Arial Black"), local("Arial-Black");
  font-weight: 100 900;
  size-adjust: 135%;
}
@font-face {
  font-family: "ZC Wide R";
  src: local("Roboto Black"), local("Roboto-Black"), local("Roboto");
  font-weight: 100 900;
  size-adjust: 170%;
}
@font-face {
  font-family: "ZC Wide H";
  src:
    local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"),
    local("HelveticaNeue-Bold");
  font-weight: 100 900;
  size-adjust: 156%;
}
@font-face {
  font-family: "ZC Cond A";
  src:
    local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"),
    local("HelveticaNeue-Bold");
  font-weight: 100 900;
  size-adjust: 79%;
}
@font-face {
  font-family: "ZC Cond R";
  src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto");
  font-weight: 100 900;
  size-adjust: 86%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--zc-header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--zc-yellow);
  color: #000000;
}

/* Focus: black ring on light surfaces, yellow on black ones, black on the yellow band. */
:focus-visible {
  outline: 3px solid var(--zc-focus);
  outline-offset: 3px;
}
.zc-black,
[data-theme-region="header"],
[data-theme-region="footer"] {
  --zc-focus: #ffd200;
}
.zc-yellow {
  --zc-focus: #000000;
}

.zc-skip {
  position: absolute;
  left: 0.5rem;
  top: -5rem;
  z-index: 100;
  background: var(--zc-yellow);
  color: #000000;
  padding: 0.7rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.zc-skip:focus {
  top: 0.5rem;
  outline-color: #ffffff;
}
.zc-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ type */
.zc-wide {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 150%;
  font-weight: 900;
}
.zc-cond {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 700;
}
/* Headings are set line by line, like a poster: each line is written as its own <span> and never wraps, so the
   height of a heading does not depend on which font is showing. Sized so the longest line
   ("Patrocinadores", 11.8 em) fits a 360 px screen with room to spare for the fallback font. */
.zc-h2 {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.375rem, 7vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.zc-h2 > span {
  display: block;
}
@media (min-width: 62rem) {
  .zc-h2 {
    font-size: clamp(2.25rem, 4.1vw, 3.25rem);
  }
}
.zc-h3 {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.0625rem, 3.2vw, 1.375rem);
  line-height: 1.15;
  white-space: nowrap;
}
.zc-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  max-width: 38rem;
  color: var(--muted-foreground);
}
.zc-num {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ layout */
.zc-wrap {
  width: 100%;
  max-width: var(--zc-wrap);
  margin-inline: auto;
  padding-inline: var(--zc-gutter);
}
.zc-band {
  padding-block: clamp(3.25rem, 8vw, 6.5rem);
  background: var(--background);
  color: var(--foreground);
  overflow-x: clip;
}
.zc-band__head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

/* A black band keeps the dark values in both colour modes. */
.zc-black {
  --background: #000000;
  --foreground: #ffffff;
  --card: #141518;
  --card-foreground: #ffffff;
  --muted: #202227;
  --muted-foreground: #a6abb4;
  --border: #30333a;
  --primary: #ffd200;
  --primary-foreground: #000000;
  --zc-red-ink: #ff6b5e;
  color-scheme: dark;
}
.zc-yellow {
  --background: #ffd200;
  --foreground: #000000;
  --muted-foreground: #2b2400;
  --border: #000000;
  --primary: #000000;
  --primary-foreground: #ffd200;
  color-scheme: light;
}

/* ------------------------------------------------------------------ buttons */
.zc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.55rem 1.25rem;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 0.9375rem;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s var(--zc-ease);
}
.zc-btn:active {
  transform: translateY(1px);
}
.zc-btn--y {
  background: var(--zc-yellow);
  color: #000000;
}
.zc-btn--y:hover {
  background: #ffffff;
}
.zc-btn--k {
  background: #000000;
  color: var(--zc-yellow);
}
.zc-btn--k:hover {
  color: #ffffff;
}
.zc-btn--line {
  border-color: currentColor;
  background: transparent;
  color: var(--foreground);
}
.zc-btn--line:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.zc-btn--lg {
  min-height: 3.5rem;
  padding-inline: clamp(1rem, 5vw, 1.75rem);
  font-size: clamp(0.875rem, 4.1vw, 1.0625rem);
}
.zc-btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* Text link with the marking colour's shape, not its colour: a thick underline that fills on hover. */
.zc-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--primary);
}
.zc-link:hover {
  text-decoration-thickness: 4px;
}

/* Labelled sample panel kept on purpose: it marks home blocks whose rows are example data until LiveLaps fills them. */
.zc-sample {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.zc-sample::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

/* ------------------------------------------------------------------ header (shared LiveLaps markup, black in both modes)
 * The markup is the shared header (data-site-header, data-header-*), so its layout is decided by js/header-init.js.
 * Only colours, type and sizes are set here, from the tokens of [data-theme-region="header"] in css/theme.css. */
:root {
  --site-header-border-width: 3px;
  --site-header-gap: 0.75rem;
  --site-header-brand-min: 9rem;
}
[data-site-header] {
  border-bottom-color: var(--zc-yellow);
}
[data-header-brand] {
  text-decoration: none;
}
.zc-brand {
  display: grid;
  gap: 0.1rem;
  line-height: 1;
  padding-block: 0.4rem;
}
.zc-brand__name {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 150%;
  font-weight: 900;
  font-size: 0.9375rem;
  text-transform: uppercase;
  color: var(--zc-yellow);
  white-space: nowrap;
}
.zc-brand__what {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
@media (max-width: 39.99rem) {
  .zc-brand__name {
    font-stretch: 125%;
  }
}
@media (min-width: 40rem) {
  .zc-brand__name {
    font-size: 1.25rem;
  }
  .zc-brand__what {
    font-size: 0.875rem;
  }
}

[data-header-nav] a[data-slot="navigation-menu-link"],
[data-header-nav] button[data-slot="navigation-menu-trigger"] {
  height: 2.5rem;
  padding-inline: 0.5rem;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
}
[data-header-nav] a[data-slot="navigation-menu-link"]:hover,
[data-header-nav] a[data-slot="navigation-menu-link"]:focus-visible,
[data-header-nav] button[data-slot="navigation-menu-trigger"]:hover {
  background: transparent;
}
[data-header-nav] [data-slot="navigation-menu-link"]::after,
[data-header-nav] [data-slot="navigation-menu-trigger"]::after {
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.25rem;
  height: 3px;
  border-radius: 0;
  background: var(--zc-yellow);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 1;
  transition: transform 0.18s var(--zc-ease);
}
[data-header-nav] [data-slot="navigation-menu-link"]:hover::after,
[data-header-nav] [data-slot="navigation-menu-link"][data-active]::after {
  transform: scaleX(1);
}
[data-header-nav] a[data-slot="navigation-menu-link"][data-active] {
  color: var(--zc-yellow);
}

[data-header-actions] svg {
  display: none;
}
[data-header-actions] a:first-child {
  height: 2.5rem;
  padding-inline: 0.4rem;
  background: transparent;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
}
[data-header-actions] a:first-child:hover {
  background: transparent;
  color: var(--zc-yellow);
}
[data-header-actions] a:last-child {
  height: 2.5rem;
  padding-inline: 0.9rem;
  border-radius: var(--radius);
  background: var(--zc-yellow);
  color: #000000;
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 0.8125rem;
  line-height: 1.1;
}
[data-header-actions] a:last-child:hover {
  background: #ffffff;
  color: #000000;
}

/* The shared header script measures hidden clones inside [data-header-probe] to choose the inline, stacked or compact
   layout. The clones are spans without the data-slot / data-header-* attributes the rules above are scoped to, so they
   repeat the same type and padding here; otherwise the registration button is measured about 30px too narrow. */
[data-header-probe] [data-probe-item] > span,
[data-header-probe] [data-probe-more] > span {
  height: 2.5rem;
  padding-inline: 0.5rem;
  border-radius: 0;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
}
[data-header-probe] [data-probe-actions] svg {
  display: none;
}
[data-header-probe] [data-probe-actions] > span:first-child {
  height: 2.5rem;
  padding-inline: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
[data-header-probe] [data-probe-actions] > span:last-child {
  height: 2.5rem;
  padding-inline: 0.9rem;
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 0.8125rem;
  line-height: 1.1;
}
[data-header-probe] [data-probe-menu] {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.55rem;
  border: 1px solid #3a3d44;
  justify-content: center;
}

.zc-lang,
[data-header-utilities] button[data-slot="dropdown-menu-trigger"],
[data-header-menu] {
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.55rem;
  border: 1px solid #3a3d44;
  border-radius: var(--radius);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}
.zc-lang,
[data-header-utilities] button[data-slot="dropdown-menu-trigger"] {
  display: inline-flex;
}
[data-layout="compact"] [data-header-menu] {
  display: inline-flex;
}
.zc-lang {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}
.zc-lang:hover,
[data-header-utilities] button[data-slot="dropdown-menu-trigger"]:hover,
[data-header-menu]:hover {
  border-color: var(--zc-yellow);
  background: transparent;
  color: var(--zc-yellow);
}
[data-header-menu][aria-expanded="true"] {
  background: var(--zc-yellow);
  border-color: var(--zc-yellow);
  color: #000000;
}
/* Phone menu sheet (built by js/site.js): the prototype's menu type. */
[data-slot="sheet-content"][data-theme-region="header"] nav a {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
}
[data-slot="sheet-content"][data-theme-region="header"] nav a[data-active] {
  color: var(--zc-yellow);
}

/* ------------------------------------------------------------------ footer (black in both modes) */
.zc-footer {
  background: var(--background);
  color: var(--foreground);
  border-top: 3px solid var(--zc-yellow);
}
.zc-footer__grid {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2.25rem;
}
@media (min-width: 48rem) {
  .zc-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}
.zc-footer__name {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 150%;
  font-weight: 900;
  font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--zc-yellow);
  white-space: nowrap;
}
.zc-footer__name span {
  display: block;
  color: #ffffff;
}
.zc-footer__about {
  margin-top: 0.9rem;
  max-width: 24rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}
.zc-footer h2 {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--zc-yellow);
  margin-bottom: 0.6rem;
  white-space: nowrap;
}
.zc-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--zc-chrome);
  text-decoration: none;
  font-size: 0.9375rem;
}
.zc-footer li a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.zc-footer__bottom {
  border-top: 1px solid var(--border);
}
.zc-footer__bottom .zc-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.1rem 1.4rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.zc-footer__bottom a {
  color: var(--zc-chrome);
}

/* ------------------------------------------------------------------ LiveLaps page shells (events, results, series, live)
 * The shells read --background, --foreground, --card, --border, --primary and --font-sans through css/public.css
 * (--brand = --primary, --navy = --foreground, --white = --background, --line = --border). These rules dress the
 * page heading the way the home page is dressed; the data area keeps the shell's own layout. */
[data-cms-section="page-heading"] {
  max-width: none !important;
  margin: 0;
  padding: clamp(2rem, 6vw, 3.75rem) 0 clamp(1.75rem, 5vw, 3rem) !important;
  background: #000000;
  color: #ffffff;
  border-bottom: 3px solid var(--zc-yellow);
  --zc-focus: #ffd200;
}
[data-cms-section="page-heading"] > * {
  max-width: var(--zc-wrap);
  margin-inline: auto;
  padding-inline: var(--zc-gutter);
}
[data-cms-section="page-heading"] h1 {
  font-family: var(--zc-wide) !important;
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900 !important;
  font-size: clamp(1.375rem, 6.2vw, 4rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.005em;
  color: #ffffff !important;
  padding-block: 0 !important;
  /* Real titles are typed by editors and are long: they wrap. The one-line poster rule is only for the home page. */
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
[data-cms-section="page-heading"] .prose,
[data-cms-section="page-heading"] .prose p {
  color: var(--zc-chrome) !important;
}
[data-cms-section="page-heading"] .prose p {
  margin-top: 0.75rem;
  max-width: 40rem;
}
main[data-cms-zone="main"] > .mrc-public {
  padding-top: 1.5rem;
}
/* The shells only know --primary, and in light mode --primary is black, so their data area comes out black and white.
   These rules bring the championship yellow back without touching the layout: the tint behind status chips and
   selected items (--brand-soft), and the main action button (.button-orange: "Live results", search). Higher
   specificity than the scoped rules of css/public.css. Check each on staging after porting. */
main [data-live-page] {
  --brand-soft: #fff4b8;
}
.dark main [data-live-page] {
  --brand-soft: #2a2500;
}
main [data-live-page] .button-orange {
  background: var(--zc-yellow);
  color: #000000;
  border-color: var(--zc-yellow);
}
main [data-live-page] .button-orange:hover {
  background: #000000;
  color: var(--zc-yellow);
  border-color: #000000;
}
.dark main [data-live-page] .button-orange:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
/*
 * CANDIDATE, not active: test on staging before turning it on. The shells paint their dark surfaces with --navy, which is
 * --foreground: black in light mode. Anything drawn in --brand (= --primary, also black in light mode) on those surfaces
 * would disappear. If that shows on a page (the live board and the race pages are the likely places), give the dark
 * surfaces a yellow brand in light mode. The surface list is every rule of css/public.css with background: var(--navy).
 *
 * Read from css/public.css, not yet seen on screen: the cascade there has many later overrides, so this cannot be settled by
 * reading. Rules that put --brand / --brand-strong on a --navy or --foreground surface (invisible when both are black), to
 * look at in light mode on Staging: .standings-table th[aria-sort] .sort-head span[aria-hidden] (sort arrow on the dark
 * thead), .race-view-bar > div :is(a, button):hover (text colour on the dark bar), .race-view-bar nav :is(a, button)[aria-current]:after
 * (current tab underline), .event-tabs a[aria-current=page] (bottom border and :before dot on the dark pill),
 * .classic-table thead th (3px bottom border), .rider-compare.is-selected and .lb-actions .rider-compare.is-selected
 * (border and text on the dark selected button), .race-page .filter-option[aria-selected=true] (check mark). Text colours
 * set to #fff or --ink-text on those surfaces are fine. Nothing is enabled until one of these shows black on black.
 *
 * html:not(.dark) main [data-live-page] :is(.hero, .quick-links, .scoring-section, .company, .track-record, .events-hero,
 *   .events-organizer, .race-hero, .telemetry-panel, .race-snapshot, .results-columns, .fastest-banner, .report-overview,
 *   .standings-table thead, .race-data-table thead) { --brand: #ffd200; --brand-strong: #ffd200; --brand-hover: #ffffff; }
 */

@media print {
  [data-site-header],
  .zc-footer {
    display: none !important;
  }
}

/* ------------------------------------------------------------------ hero: the race poster, live */
.zc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
}
.zc-hero__top {
  position: relative;
  z-index: 2;
  padding-top: clamp(1.4rem, 4vw, 3rem);
}
.zc-hero__series {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.125rem, 5vw, 1.75rem);
  line-height: 1.1;
  color: var(--zc-yellow);
  white-space: nowrap;
}

/* The event lettering of the flyer: a red 4 two lines tall, HORAS over ENDURO.
   The mark always spans the content width: its size is the width divided by its own length in em
   (4 + gap + ENDURO: about 7.7 em at wdth 118, 8.85 em at wdth 150), up to a cap on large screens. */
.zc-lockup {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  column-gap: 0.1em;
  margin-top: 0.55rem;
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 118%;
  font-weight: 900;
  font-size: calc((100vw - 2 * var(--zc-gutter)) / 7.7);
  line-height: 0.86;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
}
.zc-lockup__4 {
  grid-row: 1 / span 2;
  font-stretch: 150%;
  font-size: 2.16em;
  line-height: 0.78;
  color: var(--zc-red);
  margin-left: -0.03em;
}
.zc-lockup__horas {
  align-self: end;
  color: #ffffff;
}
.zc-lockup__enduro {
  align-self: start;
  color: var(--zc-yellow);
}
@media (min-width: 40rem) {
  .zc-lockup {
    font-stretch: 150%;
    font-size: min(calc((100vw - 2 * var(--zc-gutter)) / 8.85), 7.25rem);
  }
}

.zc-hero__edition {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.15rem;
}
.zc-hero__edition b {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.0625rem, 4.4vw, 1.5rem);
  line-height: 1.1;
  white-space: nowrap;
}
.zc-hero__edition span {
  font-size: clamp(0.9375rem, 3.6vw, 1.0625rem);
  color: var(--zc-chrome);
}

/* The drawn scene: sunrise over the reservoir, pines, and the course marked in fluorescent orange.
   The drawing is 1600 x 460: at 28.75vw high it shows whole; on phones it keeps its height and crops the sides. */
.zc-hero__scene {
  position: relative;
  z-index: 1;
  height: clamp(12.5rem, 28.75vw, 30rem);
  margin-top: clamp(-4.5rem, -5vw, -0.75rem);
  pointer-events: none;
}
.zc-scene {
  width: 100%;
  height: 100%;
}
.zc-scene__pista {
  fill: none;
  stroke: var(--zc-orange);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zc-scene__meta {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 23px;
  fill: var(--zc-yellow);
}
@media (prefers-reduced-motion: no-preference) {
  /* The one orchestrated moment: the course draws itself, near to far, up to the finish arch; the markers go up as it passes.
     Dash 1, gap 3, start a little past 1: the round cap of the hidden dash stays off the path until its leg starts. */
  .zc-scene__pista {
    stroke-dasharray: 1 3;
    animation: zc-traza 1.1s linear both;
  }
  .zc-scene__pista--1 {
    animation-duration: 1.15s;
    animation-delay: 0.4s;
    animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.7);
  }
  .zc-scene__pista--2 {
    animation-duration: 0.6s;
    animation-delay: 1.55s;
  }
  .zc-scene__pista--3 {
    animation-duration: 0.55s;
    animation-delay: 2.15s;
    animation-timing-function: cubic-bezier(0.2, 0.4, 0.4, 1);
  }
  .zc-scene__marca {
    animation: zc-marca 0.28s ease-out both;
  }
  .zc-scene__marca--1 {
    animation-delay: 0.95s;
  }
  .zc-scene__marca--2 {
    animation-delay: 1.6s;
  }
  .zc-scene__marca--3 {
    animation-delay: 2.2s;
  }
  @keyframes zc-traza {
    from {
      stroke-dashoffset: 1.04;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes zc-marca {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* The ground of the scene runs on under the countdown and the buttons: same colour, no seam. */
.zc-hero__ground {
  position: relative;
  z-index: 2;
  background: #1a1b1f;
  margin-top: -1px;
}
.zc-hero__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  padding-block: 0.35rem clamp(1.9rem, 5vw, 3rem);
}
/* "Faltan 11 días": the organizer's own countdown line, in the chrome of his flyers. One line, always. */
.zc-count {
  --zc-count-size: clamp(1.5rem, 8.3vw, 3.25rem);
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: var(--zc-count-size);
  line-height: calc(1.2 * var(--zc-count-size));
  height: calc(1.2 * var(--zc-count-size));
  white-space: nowrap;
  color: #ffffff;
}
/* The longer lines ("Mañana es la carrera") get a narrower cut of the same face, in the same box, instead of a second line. */
.zc-count[data-zc-state="tomorrow"],
.zc-count[data-zc-state="today"],
.zc-count[data-zc-state="over"] {
  font-stretch: 100%;
  font-size: min(var(--zc-count-size), 6.8vw);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .zc-count {
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #f1f2f5 34%,
      #9aa1ac 50%,
      #e3e6ea 58%,
      #c5cad3 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.zc-hero__facts {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--zc-chrome);
  margin-top: 0.3rem;
}
.zc-hero__facts strong {
  display: block;
  color: #ffffff;
  font-size: 1.125rem;
}
.zc-hero__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
}
.zc-hero__cta .zc-btn {
  min-width: 0;
  padding-inline: 0.5rem;
  font-size: clamp(0.875rem, 4.1vw, 1.0625rem);
}
.zc-hero__cta .zc-btn--line {
  color: #ffffff;
}
.zc-hero__cta .zc-btn--line:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Registered riders as a start grid: one tick per expected rider, yellow when the place is taken. */
.zc-parrilla {
  display: grid;
  gap: 0.5rem;
}
.zc-parrilla__bar {
  --of: 80;
  --n: 58;
  position: relative;
  height: 1.15rem;
  transform: skewX(-11deg);
  transform-origin: left bottom;
  background: repeating-linear-gradient(90deg, #4a4e56 0 58%, transparent 58% 100%) 0 0 /
    calc(100% / var(--of)) 100%;
}
.zc-parrilla__bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% * var(--n) / var(--of));
  background: repeating-linear-gradient(90deg, var(--zc-yellow) 0 58%, transparent 58% 100%) 0 0 /
    calc(100% / var(--n)) 100%;
}
/* The number and its sentence are two boxes centred on each other (not on a shared baseline), so the row is as tall
   as the number's line-height whatever font is showing. */
.zc-parrilla__txt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  color: var(--zc-chrome);
  line-height: 1.35;
}
.zc-parrilla__txt b {
  flex: none;
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--zc-yellow);
}
.zc-parrilla__txt strong {
  color: #ffffff;
  font-weight: 600;
}

/* Between phone and desktop the bar stays one column; the buttons and the grid just stop growing. */
@media (min-width: 36rem) {
  .zc-hero__cta,
  .zc-parrilla {
    max-width: 26rem;
  }
  .zc-hero__cta .zc-btn {
    padding-inline: 1.25rem;
    font-size: 1.0625rem;
  }
}
/* Desktop: the countdown and the date on the left, the buttons and the grid on the right. */
@media (min-width: 62rem) {
  .zc-hero__bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    grid-template-areas: "when cta" "when grid";
    align-items: start;
    column-gap: 2.5rem;
    row-gap: 1rem;
  }
  .zc-hero__when {
    grid-area: when;
  }
  .zc-hero__cta {
    grid-area: cta;
  }
  .zc-parrilla {
    grid-area: grid;
  }
  .zc-count {
    --zc-count-size: clamp(1.75rem, 4.4vw, 3.25rem);
  }
  .zc-count[data-zc-state="tomorrow"],
  .zc-count[data-zc-state="today"],
  .zc-count[data-zc-state="over"] {
    font-size: var(--zc-count-size);
  }
}

/* ------------------------------------------------------------------ race sheet
   Facts on the left, flyer and finish area on the right, categories below.
   With the flyer in place the right column is tall, so the categories move up under the facts. */
.zc-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 62rem) {
  .zc-sheet {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas: "facts side" "cats cats";
    align-items: start;
  }
  .zc-facts {
    grid-area: facts;
  }
  .zc-side {
    grid-area: side;
  }
  .zc-cats {
    grid-area: cats;
  }
  .zc-sheet:has(.zc-cartel img) {
    grid-template-areas: "facts side" "cats side";
    grid-template-rows: auto 1fr;
  }
  .zc-sheet:has(.zc-cartel img) .zc-cats {
    grid-template-columns: minmax(0, 1fr);
  }
}
.zc-facts {
  border-top: 3px solid var(--foreground);
}
.zc-facts > div {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.zc-facts dt {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.zc-facts dd {
  font-size: 1.0625rem;
  line-height: 1.45;
}
.zc-facts dd strong {
  font-weight: 700;
}
@media (min-width: 36rem) {
  .zc-facts > div {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: baseline;
  }
}
/* The marking itself: a strip of course tape with an arrow. */
.zc-cinta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.2em;
  width: 3.25rem;
  height: 1.15rem;
  margin-right: 0.5rem;
  background: var(--zc-orange);
  color: #000000;
  transform: skewX(-11deg);
}
.zc-cinta svg {
  width: 1.6rem;
  height: 0.7rem;
  transform: skewX(11deg);
}

.zc-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
/* Flyer slot: the official flyer, 1746 x 2048. Without an <img> (none placed, or js/zce.js removed one that
   failed to load) the figure takes no room at all. The black ground and yellow alt text cover the moment before it loads. */
.zc-cartel:not(:has(img)) {
  display: none;
}
.zc-cartel img {
  width: 100%;
  height: auto;
  aspect-ratio: 1746 / 2048;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000000;
  color: var(--zc-yellow);
  font-size: 0.875rem;
  line-height: 1.4;
}
@media (min-width: 36rem) and (max-width: 61.99rem) {
  .zc-cartel {
    max-width: 26rem;
  }
}

/* Where to go: the finish area as coordinates a rider can copy. */
/* The card is a size container: its title and the coordinates are sized from the card's own width (cqi), so they
   stay on one line in the narrow desktop column as well as on a phone. */
.zc-lugar {
  container-type: inline-size;
  background: #000000;
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  display: grid;
  gap: 0.9rem;
  --zc-focus: #ffd200;
}
.dark .zc-lugar {
  border: 1px solid var(--border);
}
.zc-lugar__pin {
  width: 2.25rem;
  height: 2.25rem;
  color: #ffffff;
}
.zc-lugar h3 {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.1875rem;
  font-size: min(1.75rem, 6.6cqi);
  line-height: 1.05;
  color: var(--zc-yellow);
  white-space: nowrap;
}
.zc-lugar p {
  color: var(--zc-chrome);
  font-size: 0.9375rem;
}
.zc-lugar .zc-lugar__coords {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 700;
  font-size: 1.375rem;
  font-size: min(1.875rem, 8cqi);
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zc-lugar .zc-btn {
  justify-self: start;
}

/* Categories: plates on a fixed grid (three across), so their rows never depend on the font. */
.zc-cats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 62rem) {
  .zc-cats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.zc-cats h3 {
  margin-bottom: 0.9rem;
}
.zc-plates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 30rem;
}
.zc-plates li {
  display: grid;
  place-items: center;
  height: 2.6rem;
  padding-inline: 0.25rem;
  border: 2px solid var(--foreground);
  border-radius: 0.5rem;
  background: var(--background);
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1rem, 4.6vw, 1.1875rem);
  line-height: 1;
  white-space: nowrap;
}
.zc-pairs {
  display: grid;
  gap: 0.6rem;
}
.zc-pairs li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}
.zc-pairs b {
  display: grid;
  place-items: center;
  height: 2.6rem;
  border-radius: 0.5rem;
  background: var(--zc-yellow);
  color: #000000;
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1;
}
.zc-pairs span {
  line-height: 1.35;
}
.zc-pairs span strong {
  font-weight: 700;
}

/* ------------------------------------------------------------------ calendar: the plates of the championship's own calendar */
.zc-fechas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}
@media (min-width: 48rem) {
  .zc-fechas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}
@media (min-width: 70rem) {
  .zc-fechas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.zc-fechas > li {
  display: grid;
}
.zc-fecha {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  min-height: 7rem;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
}
.zc-fecha__tab {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.1rem;
  padding: 0.5rem 0.25rem;
  background: var(--zc-yellow);
  color: #000000;
  text-align: center;
  white-space: nowrap;
}
.zc-fecha__tab small {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1;
}
.zc-fecha__tab b {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 0.9;
}
.zc-fecha__tab b.zc-fecha__word {
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1;
}
.zc-fecha__body {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  padding: 0.7rem 0.95rem 0.8rem;
  min-width: 0;
}
.zc-fecha__day {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 2.125rem;
  line-height: 0.95;
  white-space: nowrap;
}
.zc-fecha__name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}
.zc-fecha__place {
  font-size: 0.875rem;
  line-height: 1.3;
  color: #3c4047;
}
.zc-fecha__state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.15rem;
}
a.zc-fecha {
  transition: transform 0.18s var(--zc-ease);
}
a.zc-fecha:hover {
  transform: translateY(-3px);
}
a.zc-fecha:hover .zc-fecha__name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
@media (prefers-reduced-motion: reduce) {
  a.zc-fecha,
  a.zc-fecha:hover {
    transform: none;
    transition: none;
  }
}
/* Dates not announced yet: an empty plate, outlined, never an invented date. */
.zc-fecha--tbd {
  background: transparent;
  color: var(--muted-foreground);
  border: 2px dashed #6a6f78;
  grid-template-columns: minmax(0, 1fr);
  padding: 0.9rem 1.1rem;
  align-content: center;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.zc-fecha--tbd strong {
  display: block;
  color: #ffffff;
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.zc-formats {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 62rem) {
  .zc-formats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}
.zc-formats h3 {
  color: var(--zc-yellow);
  margin-bottom: 0.4rem;
}
.zc-formats p {
  color: var(--zc-chrome);
  font-size: 0.9688rem;
  line-height: 1.55;
  max-width: 30rem;
}

/* ------------------------------------------------------------------ tables: standings, live board */
/* The board is a size container: its title is sized from the board's own width, and the category select sits beside
   the title only when the board is wide enough for both. */
.zc-board {
  container-type: inline-size;
  border: 2px solid var(--foreground);
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--background);
}
.zc-board__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--foreground);
  color: var(--background);
}
@container (min-width: 44rem) {
  .zc-board__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
  }
}
.zc-board__title {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 0.9375rem;
  font-size: min(1.375rem, 4.6cqi);
  line-height: 1.1;
  white-space: nowrap;
}
.zc-field {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.zc-field select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 2.5rem;
  padding: 0.3rem 2.1rem 0.3rem 0.75rem;
  border: 2px solid var(--zc-yellow);
  border-radius: var(--radius);
  background: #000000
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd200' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 0.55rem center / 1rem no-repeat;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.zc-field select:focus-visible {
  outline-color: var(--zc-yellow);
}
.zc-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.zc-table th {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.1;
  text-align: left;
  color: var(--muted-foreground);
  padding: 0.6rem 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.zc-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.25;
}
.zc-table tr:last-child td {
  border-bottom: 0;
}
.zc-table th:first-child,
.zc-table td:first-child {
  padding-left: 1rem;
}
.zc-table th:last-child,
.zc-table td:last-child {
  padding-right: 1rem;
  text-align: right;
}
.zc-table .zc-pos {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  width: 2.75rem;
}
.zc-table .zc-pos span {
  display: inline-grid;
  place-items: center;
  min-width: 1.9rem;
  height: 1.9rem;
}
/* The first three places carry the plate colours. */
.zc-table tr.zc-podio .zc-pos span {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.35rem;
}
.zc-plate {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  height: 1.75rem;
  padding-inline: 0.4rem;
  border-radius: 0.35rem;
  background: var(--zc-yellow);
  color: #000000;
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1;
  white-space: nowrap;
}
.zc-table .zc-who {
  font-weight: 700;
}
.zc-table .zc-who small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.zc-table .zc-pts {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  white-space: nowrap;
}
.zc-table .zc-pts small {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-left: 0.2rem;
}
.zc-table .zc-gap {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.zc-table .zc-hide-s {
  display: none;
}
@media (min-width: 36rem) {
  .zc-table .zc-hide-s {
    display: table-cell;
  }
}
.zc-board__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.zc-standings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 62rem) {
  .zc-standings {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
  .zc-standings .zc-band__head {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--zc-header-h) + 2rem);
  }
}
.zc-standings__how {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.4rem;
}
.zc-standings__how li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.6rem;
  line-height: 1.45;
}
.zc-standings__how li::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.38rem;
  background: var(--zc-yellow);
  border: 2px solid var(--foreground);
  transform: skewX(-11deg);
}

/* ------------------------------------------------------------------ race day: the path a rider follows, marked in orange */
.zc-dia {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4rem);
}
@media (min-width: 62rem) {
  .zc-dia {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}
.zc-ruta {
  position: relative;
  display: grid;
  gap: 1.6rem;
  padding-left: 3.4rem;
  counter-reset: zc-paso;
}
.zc-ruta::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 6px;
  border-radius: 3px;
  background: var(--zc-orange);
}
.zc-ruta li {
  position: relative;
  counter-increment: zc-paso;
}
.zc-ruta li::before {
  content: counter(zc-paso);
  position: absolute;
  left: -3.4rem;
  top: -0.35rem;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  background: var(--zc-orange);
  color: #000000;
  border: 3px solid #000000;
  border-radius: 0.3rem;
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1;
  transform: skewX(-11deg);
}
.zc-ruta h3 {
  margin-bottom: 0.3rem;
}
.zc-ruta p {
  color: var(--zc-chrome);
  max-width: 30rem;
  line-height: 1.55;
}

.zc-live {
  border: 2px solid #30333a;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #0e0f11;
}
.zc-live__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #30333a;
}
.zc-live__name {
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.0625rem;
  line-height: 1.1;
  white-space: nowrap;
}
.zc-live__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem 0.3rem;
  border-radius: 0.3rem;
  background: #c4161c;
  color: #ffffff;
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}
.zc-live__badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ffffff;
}
.zc-live__clock {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1rem 1.1rem;
  border-bottom: 1px solid #30333a;
}
.zc-live__time {
  display: grid;
  gap: 0.2rem;
}
.zc-live__time b {
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(2.75rem, 13vw, 3.75rem);
  line-height: 0.9;
  color: var(--zc-yellow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zc-live__time span {
  color: var(--zc-chrome);
  font-size: 0.9375rem;
}
/* Four hours, four segments. */
.zc-live__hours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 0.6rem;
  transform: skewX(-11deg);
}
.zc-live__hours i {
  background: linear-gradient(90deg, var(--zc-yellow) var(--done, 0%), #3a3d44 var(--done, 0%));
}
.zc-live .zc-table th {
  color: #a6abb4;
  border-bottom-color: #30333a;
}
.zc-live .zc-table td {
  border-bottom-color: #26282d;
}
.zc-live .zc-table .zc-who small {
  color: #a6abb4;
}
.zc-live .zc-table .zc-gap {
  color: var(--zc-chrome);
}
.zc-live .zc-table tr.zc-mine td {
  background: #1c1a08;
}
.zc-live .zc-table tr.zc-mine .zc-who::after {
  content: attr(data-tag);
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem 0.15rem;
  border-radius: 0.25rem;
  background: var(--zc-yellow);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 0.1em;
}
.zc-live__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid #30333a;
}
.zc-live__foot .zc-sample {
  color: #a6abb4;
}
.zc-dia__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  margin-top: 1.25rem;
}
@media (min-width: 36rem) {
  .zc-dia__links {
    grid-template-columns: max-content max-content;
  }
}

/* ------------------------------------------------------------------ sponsors: names set in type, no logos.
   Cells have a fixed height, so a name that takes one more line in the fallback font moves nothing. */
.zc-sponsors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 3px solid var(--foreground);
  border-left: 1px solid var(--border);
}
@media (min-width: 40rem) {
  .zc-sponsors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .zc-sponsors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.zc-sponsors li {
  display: grid;
  place-items: center;
  height: clamp(4.75rem, 9vw, 5.5rem);
  padding: 0.4rem 0.6rem;
  overflow: hidden;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-family: var(--zc-wide);
  font-style: italic;
  font-stretch: 100%;
  font-weight: 800;
  font-size: clamp(0.9375rem, 3.9vw, 1.1875rem);
  line-height: 1.12;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ contact band (championship yellow) */
.zc-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 62rem) {
  .zc-contact {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
  }
}
.zc-contact p {
  max-width: 34rem;
  font-size: 1.0625rem;
  margin-top: 0.9rem;
}
.zc-contact__way {
  container-type: inline-size;
}
.zc-contact__tel {
  display: block;
  font-family: var(--zc-cond);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 3rem;
  font-size: min(6rem, 20cqi);
  line-height: 0.9;
  color: #000000;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zc-contact__tel:hover {
  text-decoration: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 0.1em;
}
.zc-contact .zc-contact__label {
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.zc-contact__actions {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* ------------------------------------------------------------------ live blocks (js/zce.js) */
.zc-board__empty {
  padding: 1.6rem 1rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.zc-board__foot--end {
  justify-content: flex-end;
}
.zc-fechas__all {
  margin-top: 1.25rem;
}
.zc-footer__bottom .zc-footer__privacy {
  margin-left: 1rem;
  color: var(--zc-chrome);
}
.zc-footer__bottom .zc-footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 0.25rem;
}

/* ------------------------------------------------------------------ support chat launcher (built by js/support.js) */
.site-support {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font: 700 0.95rem/1 var(--font-sans, inherit);
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.site-support:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.4);
}
/* White inner ring plus foreground outer ring: visible against both light and dark pages. */
.site-support:focus-visible {
  outline: 3px solid transparent;
  box-shadow:
    0 0 0 3px var(--background),
    0 0 0 6px var(--foreground);
}
.site-support[data-disabled] {
  opacity: 0.7;
  cursor: progress;
}
.site-support-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-support-status[data-visible] {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: 4.75rem;
  z-index: 30;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
}
.site-support-status[data-visible] p {
  margin: 0;
}
.site-support-status[data-visible] button {
  margin-top: 0.5rem;
  padding: 0.25rem 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.site-support-status[data-visible] button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .site-support {
    transition: none;
  }
  .site-support:hover:not(:disabled) {
    transform: none;
  }
}
