/* =====================================================
   AdviceOnMedicare — mobile navigation enhancement
   Adds a working hamburger menu on small screens.
   Loaded AFTER aom-style.css so these rules win.
   The original stylesheet is left untouched.
   ===================================================== */

/* Toggle button: hidden on desktop, shown on mobile */
.aom-scope .aom-nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--aom-line);
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--aom-ink);
  padding: 6px 12px;
}

@media (max-width: 900px){
  .aom-scope .aom-nav{ flex-wrap: wrap; row-gap: 0; }

  .aom-scope .aom-nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    order: 1;
  }

  /* nav links become a full-width stacked panel, collapsed by default */
  .aom-scope .aom-navlinks{
    order: 2;
    flex-basis: 100%;
    gap: 0;
  }
  /* .aom-open beats the original single-class display:none via specificity */
  .aom-scope .aom-navlinks.aom-open{
    display: flex;
    flex-direction: column;
    padding: 6px 0 8px;
  }
  .aom-scope .aom-navlinks li{ border-top: 1px solid var(--aom-line); }
  .aom-scope .aom-navlinks a{
    display: block;
    padding: 13px 2px;
    font-size: 1.02rem;
  }

  /* keep the phone + CTA usable below the menu */
  .aom-scope .aom-navcta{
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--aom-line);
  }
}
