/* Homepage hierarchy: submission is a global action, while time information stays in its own sequence. */
.header {
  width: min(1500px, calc(100% - 64px));
  gap: 30px;
}

.nav {
  gap: clamp(10px, 1.15vw, 20px);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.nav__submit {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ff5c41;
  border-radius: 7px;
  color: #fff;
  background: #ff5c41;
  box-shadow: 0 7px 16px rgba(221, 67, 44, .2);
  font: 700 13px/1 "Montserrat", Arial, sans-serif;
  letter-spacing: .015em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav__submit span {
  font: 400 18px/1 Arial, sans-serif;
}

.nav__submit:hover {
  color: #fff;
  border-color: #df452f;
  background: #df452f;
  transform: translateY(-2px);
}

.nav__submit:focus-visible {
  outline: 3px solid #164d9a;
  outline-offset: 3px;
}

/* Keep the countdown and date summary as two independent blocks in document flow. */
.hero {
  min-height: auto;
  padding-bottom: clamp(54px, 5vw, 86px);
}

.important-dates {
  position: relative;
  right: auto;
  bottom: auto;
  margin: clamp(58px, 5.2vw, 86px) auto 0;
  transform: none;
}

@media (max-width: 1440px) {
  .header {
    gap: 24px;
  }

  .brand {
    flex-basis: 225px;
  }

  .nav {
    gap: 10px;
  }

  .nav__item > button {
    font-size: 14px;
  }

  .nav__submit {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 1120px) {
  .header {
    width: calc(100% - 36px);
  }

  .nav {
    gap: 8px;
  }

  .nav__submit {
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-bottom: 52px;
  }

  .important-dates {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 48px;
    transform: none;
  }

  .nav__submit {
    flex: 1;
    min-height: 48px;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 13px;
  }

  .nav-actions {
    width: 100%;
  }
}

@media (max-width: 550px) {
  .hero {
    min-height: auto;
    padding-bottom: 38px;
  }

  .important-dates {
    margin-top: 38px;
  }
}
