:root {
  --portal-topbar-height: 54px;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--portal-topbar-height);
  padding: 8px max(14px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(29, 29, 31, 0.04);
  backdrop-filter: blur(20px);
}

.portal-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 168px;
  text-decoration: none;
}

.portal-logo img {
  display: block;
  width: 100%;
  max-height: 38px;
  object-fit: contain;
}

.portal-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  overflow-x: auto;
}

.portal-menu a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 7px;
  color: #d65f16;
  font-size: 15px;
  font-weight: 860;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.portal-menu a:hover {
  color: #1f644c;
  background: rgba(31, 100, 76, 0.08);
}

.portal-menu .portal-subtle {
  color: #777b80;
  font-size: 14px;
  font-weight: 720;
}

.portal-menu .portal-cta {
  color: #fff;
  background: #343434;
  box-shadow: 0 8px 18px rgba(29, 29, 31, 0.12);
}

.portal-menu .portal-cta:hover {
  color: #fff;
  background: #1f1f1f;
}

@media (max-width: 720px) {
  .portal-topbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .portal-logo {
    width: 128px;
  }

  .portal-menu {
    justify-content: flex-start;
  }

  .portal-menu a {
    min-height: 34px;
    padding: 0 9px;
    font-size: 14px;
  }

  .portal-menu .portal-subtle {
    font-size: 13px;
  }
}
