body:not(.cinema-page) > .ssr-navigation,
body:not(.cinema-page) > .ssr-navigation.is-scrolled {
  isolation: isolate;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body:not(.cinema-page) > .ssr-navigation::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 -36px;
  pointer-events: none;
  content: '';
  background: linear-gradient(180deg, rgb(20 21 21 / 85%), rgb(20 21 21 / 62%) 58%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  mask-image: linear-gradient(#000 0%, #000 44%, #000b 67%, transparent 100%);
}

body:not(.cinema-page) > .ssr-navigation.is-scrolled::before {
  background: linear-gradient(180deg, rgb(20 21 21 / 95%), rgb(20 21 21 / 78%) 58%, transparent);
}

body:not(.cinema-page) .rc-bar {
  border-bottom: 0;
  background-color: transparent;
  box-shadow: none;
}

body:not(.cinema-page) > .ssr-navigation ~ .rc-bar::before,
body:not(.cinema-page) > .ssr-navigation.is-scrolled ~ .rc-bar::before {
  background: linear-gradient(180deg, transparent, rgb(20 21 21 / 48%) 18%, rgb(20 21 21 / 32%) 52%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 28px), transparent);
}

body:not(.cinema-page) #main[data-ssr-preview-entry] {
  margin-block-start: calc(-1 * var(--ssr-preview-chrome-height));
}

body:not(.cinema-page) #main [data-ssr-preview-panorama] {
  min-block-size: calc(var(--ssr-preview-original-lead-min) + var(--ssr-preview-chrome-height));
  padding-block-start: calc(var(--ssr-preview-original-lead-pad) + var(--ssr-preview-chrome-height));
}

#main.rc-journey .rj-chapter-nav {
  border-bottom-color: transparent;
}

/* Keep the document heading available without a visible title block above the event. */
#main._page_8gmrh_3 ._masthead_8gmrh_23 {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#main[data-ssr-preview-entry="garage"] #competition-opening .ssr-rally-sticky {
  top: 0;
}

@media (min-width: 701px) {
  #main[data-ssr-preview-entry="garage"] #competition-opening .ssr-rally-sticky {
    height: 100svh;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening ._garageOverlay_8gmrh_347 {
    box-sizing: border-box;
    align-items: safe center;
    padding-block: calc(var(--ssr-preview-chrome-height) + clamp(20px, 3svh, 30px)) 20px;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening ._garageCopy_8gmrh_351 {
    padding-block: 0;
  }
}

@media (min-width: 701px) and (max-height: 680px) {
  #main[data-ssr-preview-entry="garage"] #competition-opening .ssr-rally-scene {
    height: auto;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening .ssr-rally-sticky {
    position: relative;
    height: auto;
    min-block-size: 100svh;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening ._garageOverlay_8gmrh_347 {
    position: relative;
    inset: auto;
    min-block-size: 100svh;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening ._garagePlate_8gmrh_353 {
    max-width: clamp(126px, 27svh, 178px);
    margin-block-end: 12px;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening ._garageCopy_8gmrh_351 ._kicker_8gmrh_21 {
    margin-block-end: 6px;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening [role="timer"] {
    --timer-digit-size: clamp(27px, 6svh, 38px);
    margin-block-start: 12px;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening ._garageCopy_8gmrh_351 ._heroActions_8gmrh_63 {
    margin-block-start: 14px;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening .ssr-preview-garage-note {
    margin-block-start: 14px;
    padding-block-start: 8px;
  }
}

@media (min-width: 1080px) and (max-height: 680px) {
  #main[data-ssr-preview-entry="garage"] #competition-opening ._rondeActions_8gmrh_65 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px 18px;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening ._rondeActions_8gmrh_65 ._primary_8gmrh_73 {
    width: auto;
  }
}

@media (max-width: 700px) {
  body:not(.cinema-page) #main [data-ssr-preview-panorama]._frame_1hgxf_7 :is(._media_1hgxf_95, .art-scene, .ssr-hero-media) {
    height: calc(var(--mobile-opening-media, 0px) + var(--ssr-preview-chrome-height));
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening ._garageCopy_8gmrh_351 {
    padding-block-start: max(calc(var(--ssr-preview-chrome-height) + 20px), clamp(145px, 43vw, 175px));
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening .ssr-rally-scene {
    height: auto;
    min-block-size: 100svh;
  }

  #main[data-ssr-preview-entry="garage"] #competition-opening .ssr-rally-scene:has(.ssr-rally-livery-menu[open]) {
    min-block-size: calc(100svh + 132px);
  }
}

@media (max-width: 700px) and (max-height: 680px) {
  #main[data-ssr-preview-entry="garage"] #competition-opening .ssr-rally-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 700px) and (max-height: 440px) {
  #main header._frame_1hgxf_7._timing_1hgxf_87._operational_1hgxf_33 {
    --mobile-opening-media: clamp(74px, 26svh, 130px);
  }
}
