/* AWMT 14.0 | Cabeçalho público: menu centralizado sem interferir no painel */
@media (min-width: 1500px) {
  body > header.top:has(.portal-link) {
    display: grid !important;
    grid-template-columns: 175px minmax(0, 1fr) 175px !important;
    align-items: center !important;
    column-gap: 12px !important;
    padding: 12px clamp(20px, 2vw, 42px) !important;
    min-height: 76px;
  }
  body > header.top:has(.portal-link) > .brand {
    grid-column: 1 !important;
    justify-self: start;
    min-width: 0;
  }
  body > header.top:has(.portal-link) > nav {
    grid-column: 2 / 3 !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    flex-basis: auto !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 7px 13px !important;
  }
  body > header.top:has(.portal-link) > nav > a {
    white-space: nowrap;
    font-size: clamp(10px, .62vw, 12px) !important;
  }
  body > header.top:has(.portal-link) > nav > .portal-link {
    position: absolute !important;
    right: clamp(20px, 2vw, 42px);
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (min-width: 761px) and (max-width: 1499px) {
  body > header.top:has(.portal-link) {
    justify-content: center !important;
    gap: 12px !important;
  }
  body > header.top:has(.portal-link) > .brand {margin-right: auto}
  body > header.top:has(.portal-link) > nav {
    flex: 1 1 700px !important;
    width: auto !important;
    max-width: none !important;
    justify-content: center !important;
    gap: 8px 12px !important;
  }
}
@media (max-width: 760px) {
  body > header.top:has(.portal-link) > nav {
    width: 100% !important;
    max-width: none !important;
    justify-content: center !important;
    gap: 8px 12px !important;
  }
}
