/* Shared navigation styled to match the reference. */
.site-header {
  background: #fff;
}

.site-header > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

.site-header .navbar {
  gap: 24px;
}

.site-header .navbar-logo-text {
  max-width: 300px;
}

.site-header .nav-links {
  gap: 34px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.site-header .nav-links a {
  color: #505b6b;
  padding: 6px 0;
}

.site-header .nav-links a::after {
  bottom: 0;
  height: 2px;
  background: #35a9c0;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  color: #314f66;
}

.site-header .nav-links .nav-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 140px;
  min-width: 140px;
  height: 37px;
  padding: 8px 12px;
  border: 1px solid #1493ad;
  border-radius: 6px;
  background: linear-gradient(110deg, #061425, #003d50);
  color: #fff;
  font-size: 80%;
  font-weight: 600;
  box-shadow: 0 3px 8px rgb(0 38 57 / 12%);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header .nav-links .nav-portal::after {
  content: none;
}

.site-header .nav-links .nav-portal svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.site-header .nav-links .nav-portal:hover {
  background: linear-gradient(110deg, #0a2236, #005167);
  color: #fff;
  box-shadow: 0 4px 12px rgb(0 38 57 / 20%);
}

.site-header .nav-links .nav-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-width: 0;
  line-height: 22.4px;
  margin-left: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #006f88;
  font-size: 90%;
  font-weight: 600;
}

.site-header .nav-links .nav-project::after {
  content: none;
}

.nav-project svg {
  width: 15px;
  height: 15px;
  color: #62bed2;
}

@media (min-width: 881px) and (max-width: 1200px) {
  .site-header .nav-links { gap: 20px; }
  .site-header .nav-links .nav-project { margin-left: 0; }
  .site-header .navbar-logo-text { max-width: 210px; }
}

@media (min-width: 881px) and (max-width: 1000px) {
  .site-header .nav-links { gap: 12px; }
  .site-header .nav-links .nav-portal { padding-inline: 10px; }
  .site-header .navbar-logo-text { max-width: 170px; }
}

@media (max-width: 880px) {
  .site-header .nav-links {
    top: 100%;
    gap: 14px;
    visibility: hidden;
  }

  .site-header .nav-links.open { visibility: visible; }
  .site-header .nav-links .nav-project { margin: 4px 0 0; }
}
