/* Header and navigation */
#bloglo-header {
  --rc-team-header: #006699;
  --rc-team-menu: #004a70;
  --rc-team-menu-hover: #003c5a;
}

#bloglo-header #bloglo-header-inner {
  background: var(--rc-team-header);
  color: #fff;
}

/* Keep the menu background above Bloglo's generated mobile styles. */
#bloglo-header #bloglo-header-inner .bloglo-mobile-nav .site-navigation,
#bloglo-header #bloglo-header-inner .bloglo-nav :is(.sub-menu, .children) {
  background: var(--rc-team-menu);
}

#bloglo-header #bloglo-header-inner .bloglo-nav,
#bloglo-header #bloglo-header-inner .bloglo-nav li > a,
#bloglo-header #bloglo-header-inner .bloglo-mobile-toggen,
#bloglo-header #bloglo-header-inner .bloglo-hamburger,
#bloglo-header #bloglo-header-inner .bloglo-search,
#bloglo-header #bloglo-header-inner .bloglo-logo :is(.site-title, .site-description, a),
#bloglo-header #bloglo-header-inner .bloglo-header-widgets .bloglo-widget-wrapper > a:not(.bloglo-btn) {
  color: #fff;
}

#bloglo-header-inner .bloglo-social-nav .facebook > .bloglo-icon path {
  fill: #fff;
}

/* Bloglo also applies important colors to active submenu links in dark mode. */
[data-theme="dark"] #bloglo-header #bloglo-header-inner .bloglo-nav :is(.sub-menu, .children) a {
  color: #fff !important;
}

/* Bloglo's generated link hover colors can also use !important. */
body #bloglo-header #bloglo-header-inner .bloglo-nav li:is(:hover, .current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a,
body #bloglo-header #bloglo-header-inner .bloglo-nav a:focus-visible {
  background-color: var(--rc-team-menu-hover);
  color: #fff !important;
}

#bloglo-header-inner :is(.bloglo-nav a, .bloglo-hamburger, .bloglo-mobile-toggen, .bloglo-search):focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

/* Zebra stripes and hover for content tables. Rennanmeldung uses the same row color for its cells. */
#main table {
  --rc-table-stripe: #f0f0f0;
  --rc-table-hover: #e4e4e4;
}

[data-theme="dark"] #main table:not(.rc-banded-table) {
  --rc-table-stripe: #3b3b3b;
  --rc-table-hover: #484848;
}

#main table:not(.variations, .shop_table, .rc-banded-table) > tbody > tr {
  --rc-table-row: var(--bloglo-white, #fff);
}

#main table:not(.variations, .shop_table) > tbody > tr:where(:nth-child(even of :not([hidden]))):not(:target) {
  --rc-table-row: var(--rc-table-stripe);
}

#main table:not(.variations, .shop_table) > tbody > tr:hover:not(:target) {
  --rc-table-row: var(--rc-table-hover);
}

#main table:not(.variations, .shop_table, .rc-banded-table) > tbody > tr,
#main table:not(.variations, .shop_table, .rc-banded-table) > tbody > tr > :is(th, td) {
  background-color: var(--rc-table-row);
}

/* The transparent RC-Team logo artwork masks the car color. */
.rc-team-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  color: #006699;
}

[data-theme="dark"] .rc-team-background {
  color: #79c5ef;
}

.rc-team-car {
  --base-width: 4rem;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--base-width) * var(--flight-scale, 1.875));
  aspect-ratio: 840 / 288;
  background-color: currentColor;
  mask: url("../images/rc-team-auto.png") center / contain no-repeat;
  opacity: 0;
}

.rc-team-car:nth-child(2) {
  --base-width: 5.1rem;
}

.rc-team-car:nth-child(3) {
  --base-width: 3.5rem;
}

.rc-team-car:nth-child(4) {
  --base-width: 4.7rem;
}

.rc-team-car:nth-child(6) {
  --base-width: 5.4rem;
}

.rc-team-car:nth-child(7) {
  --base-width: 3.3rem;
}

@media (prefers-reduced-motion: reduce) {
  .rc-team-background {
    display: none;
  }
}
