/* Keep the circular logo + WORK ABROAD wordmark visible at every width, matching the portal header. */
:root {
  --header-h: 80px;
}
.brand {
  min-width: 0;
}
.brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: transparent;
}
.brand b {
  display: block !important;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
@media (width <= 1200px) {
  .brand img {
    width: 56px;
    height: 56px;
  }
  .top-inner {
    gap: 18px;
  }
  .nav {
    gap: 16px;
    margin-left: 8px;
  }
  .nav a {
    white-space: nowrap;
  }
}
@media (width <= 900px) {
  .top-inner {
    gap: 10px;
  }
  .brand img {
    width: 56px;
    height: 56px;
  }
  .brand b {
    font-size: 13px;
  }
}
@media (width <= 700px) {
  .brand img {
    width: 48px;
    height: 48px;
  }
  .brand b {
    font-size: 12px;
    letter-spacing: 0.03em;
  }
}
@media (width <= 520px) {
  :root {
    --header-h: 116px;
  }
  .top-inner {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 8px;
  }
  /* First row: logo + WORK ABROAD + menu button. Second row: language + apply. */
  .brand {
    flex: 0 0 calc(100% - 54px);
    max-width: calc(100% - 54px);
  }
  .nav-toggle {
    margin-left: 0;
  }
  .lang {
    margin-left: auto;
  }
  .top .btn {
    flex-shrink: 0;
  }
}
