/* Cabeçalho compartilhado pelas páginas públicas e administrativas. */
.home-header {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 86px;
  background: var(--branco);
}

.home-header-inner {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  width: min(1180px, calc(100% - 3rem));
  min-height: 83px;
  margin-inline: auto;
}

.home-header a {
  color: inherit;
  text-decoration: none;
}

.home-header a:hover {
  text-decoration: none;
}

.home-header a:focus-visible,
.home-header button:focus-visible {
  outline: 3px solid var(--primaria);
  outline-offset: 4px;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.25vw, 1.15rem);
  white-space: nowrap;
}

.home-nav a {
  min-height: 36px;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  color: var(--primaria-escura);
  font-size: 0.94rem;
}

.home-nav .nav-active {
  background: var(--primaria);
  color: var(--branco);
}

.home-nav a:hover:not(.nav-active) {
  background: var(--rosa);
}

.nav-star {
  color: var(--primaria);
  font-size: 0.72rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.75rem;
}

.home-header .instagram-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--primaria);
}

.home-header .instagram-link:hover {
  background: var(--rosa);
}

.instagram-link svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.instagram-link .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.header-session {
  margin: 0;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: var(--branco);
  color: var(--primaria-escura);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.login-link:hover,
.login-link.nav-active {
  border-color: var(--primaria);
  background: var(--rosa);
}

@media (max-width: 900px) {
  .home-header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    padding-block: 0.55rem;
  }

  .header-balance {
    display: none;
  }

  .home-nav {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .home-header-inner {
    grid-template-columns: 1fr;
    width: calc(100% - 1.5rem);
  }

  .home-nav {
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: 0.15rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .home-nav a {
    padding-inline: 0.72rem;
    font-size: 0.88rem;
  }

  .nav-star {
    display: none;
  }

  .header-actions {
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 390px) {
  .home-nav a {
    padding-inline: 0.52rem;
    font-size: 0.82rem;
  }

  .home-header .instagram-link {
    width: 38px;
    height: 38px;
  }
}
