/*
  Phone header safety net. Tailwind emits `.hidden` and `gap-*` after range
  media queries inside `@layer utilities`. A browser that rejects that syntax
  can drop the rest of the layer, so the desktop anchors stay inline and run
  together. These rules use classic min/max-width queries in their own file,
  so they still apply when that layer is lost. At 48rem and up they restore
  the same row the `md:` utilities draw.
*/

.mnav-links,
.mnav-actions {
  display: none !important;
}

@media (min-width: 48rem) {
  .mnav-links,
  .mnav-actions {
    display: flex !important;
    align-items: center;
  }

  .mnav-links {
    gap: 1.5rem;
  }

  .mnav-actions {
    gap: 0.5rem;
  }

  .mnav-toggle,
  .mnav-panel {
    display: none !important;
  }
}

@media (max-width: 47.99rem) {
  .mnav-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    max-width: 72rem;
    height: 4rem;
    margin-inline: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mnav-bar > a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.625rem;
    color: #1b365d;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
    text-decoration: none;
  }

  .mnav-bar > a svg {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
  }

  .mnav-toggle {
    display: grid !important;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
  }

  .mnav-toggle:focus-visible {
    outline: 2px solid #1b365d;
    outline-offset: 2px;
  }

  .mnav-panel {
    display: grid !important;
    gap: 0.25rem;
    border-top: 1px solid var(--color-border, #e2d9cc);
    padding: 0.75rem 1rem;
  }

  .mnav-panel > a {
    display: flex !important;
    align-items: center;
    min-height: 2.75rem;
  }

  .mnav-footer {
    display: grid !important;
    gap: 2rem;
  }

  .mnav-footer-col {
    display: grid !important;
    align-content: start;
    gap: 0.5rem;
  }

  .mnav-footer-col > a {
    display: block !important;
  }
}
