/* Global nav bar (sticky, anti-squish) */
nav.menu{
  /* visuals */
  background:#111;
  border-top:1px solid #e0b248;
  border-bottom:1px solid #e0b248;
  box-shadow:0 6px 16px rgba(0,0,0,.35);

  /* layout */
  display:flex; justify-content:center; align-items:center; gap:1rem;
  flex-wrap:nowrap; overflow-x:auto; white-space:nowrap;

  /* sticky */
  position:sticky; top:0; z-index:1000;

  /* anti-squish */
  --navH: 48px;
  min-height:var(--navH);
  padding:0;                 /* anchors own the height */
  line-height:1;             /* neutral baseline */
  box-sizing:border-box;
}

nav.menu a{
  display:inline-flex; align-items:center; justify-content:center;
  height:var(--navH);
  padding:0 .9rem;
  flex:0 0 auto;
  color:#f2f2f2; text-decoration:none; font-weight:700; font-size:1rem;
  transition:background-color .3s, color .3s;
}
nav.menu a:hover,
nav.menu a.active{ background:#e0b248; color:#000; border-radius:6px; }
nav.menu a.hidden{ display:none; }
nav.menu a.disabled{ opacity:.45; pointer-events:none; cursor:not-allowed; }
/* Hide legacy Subscribe link everywhere */
.menu a[href$="register.php"] { display: none !important; }
/* Hide any Subscribe menu item, href or disabled placeholder */
.menu a[href*="register.php"],
.menu a.disabled,
.menu a[aria-disabled="true"] {
  display: none !important;
}
/* Hide any "Subscribe" menu item, no matter how it's rendered */
.menu a[href$="register.php"],
.menu a[href$="/register.php"],
.menu a[href*="/register.php"],
.menu a[href*="register.php?"],
.menu a.disabled,
.menu a[aria-disabled="true"]{
  display: none !important;
}

/* Belt-and-suspenders: if your nav order is fixed (Home, About, Preview, Register Book, Reviews, Subscribe, Log In),
   the 6th link is Subscribe. */
.menu a:nth-of-type(6){ display: none !important; }

