/* Clear, section-based navigation for TheGreekInvestor. */
.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(134, 184, 228, 0.24);
  border-radius: 999px;
  background: rgba(6, 20, 38, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #f6f9fc;
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-header nav a:nth-child(1) {
  border-color: rgba(66, 177, 255, 0.64);
  background: linear-gradient(135deg, #168ef3, #0871d2);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(0, 103, 215, 0.24);
}

.site-header nav a:nth-child(2) {
  border-color: #bfe7e5;
  background: #bfe7e5;
  color: #05203c;
}

.site-header nav a:nth-child(3) {
  border-color: rgba(255, 255, 255, 0.62);
  background: #f2f6fa;
  color: #061426;
}

.site-header nav a:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.site-header nav a:focus-visible {
  outline: 3px solid #42b1ff;
  outline-offset: 3px;
}

@media (max-width: 1220px) {
  .site-header {
    padding-inline: 24px;
  }

  .site-header nav {
    gap: 5px;
  }

  .site-header nav a {
    padding-inline: 13px;
    font-size: 13px;
  }
}

@media (max-width: 1060px) {
  html {
    scroll-padding-top: 130px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .site-header nav {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    margin-top: 7px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 122px;
  }

  .site-header {
    padding-bottom: 10px;
  }

  .site-header nav {
    gap: 3px;
    padding: 3px;
    border-radius: 15px;
  }

  .site-header nav a {
    flex: 1 1 auto;
    min-height: 34px;
    padding-inline: 8px;
    font-size: 10.5px;
  }
}
