/* SteelBots homepage announcement and navigation integration */
body.has-competition-banner {
  --competition-banner-offset: 50px;
}

body.has-competition-banner .nav {
  top: var(--competition-banner-offset);
}

.competition-banner {
  position: relative;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 20px;
  background: linear-gradient(90deg, #0b2c87, #1558d6, #0b2c87);
  color: #fff;
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
}

.competition-banner__copy {
  min-width: 0;
}

.competition-banner__copy-short {
  display: none;
}

.competition-banner a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 6px 14px;
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.competition-banner a:hover {
  background: #fff;
  color: #0b2c87;
}

@media (max-width: 768px) {
  .competition-banner {
    gap: 10px;
    padding: 10px 14px;
    font-size: .76rem;
  }

  .competition-banner a {
    padding: 5px 10px;
    font-size: .68rem;
  }

  .competition-banner__copy-full {
    display: none;
  }

  .competition-banner__copy-short {
    display: inline;
    white-space: nowrap;
  }
}
