/* ── CANONICAL NAV — single source of truth for all Buildtal pages ──
   Loaded by /js/nav.js. Do NOT duplicate these rules in page <style> blocks. */

#buildtal-nav {
  position: fixed; top: 0; width: 100%; max-width: 100%; z-index: 9999;
  height: 52px; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-bottom: 1px solid #E2E6ED;
  box-sizing: border-box;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  left: 0; right: 0;
}
#buildtal-nav .bt-logo {
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  font-size: 20px; font-weight: 800; color: #1B2A4A;
  text-decoration: none; flex-shrink: 0; letter-spacing: -0.3px;
}
#buildtal-nav .bt-logo span { color: #F07D00; }

#buildtal-nav .bt-nav-center {
  display: flex; align-items: center; gap: 6px; flex: 1; margin: 0 16px; overflow: visible; min-width: 0;
}
/* Separate category buttons from nav links with a subtle divider */
#buildtal-nav .bt-nav-center::after {
  content: ''; display: block; width: 1px; height: 18px;
  background: rgba(0,0,0,0.12); flex-shrink: 0; margin: 0 4px 0 2px;
}
#buildtal-nav .bt-nav-link {
  font-size: 13px; font-weight: 500; color: #4A5568;
  text-decoration: none; padding: 6px 13px; border-radius: 6px;
  transition: all .15s; white-space: nowrap;
}
#buildtal-nav .bt-nav-link:hover { background: #F4F6F9; color: #F07D00; }
#buildtal-nav .bt-nav-link.active { color: #F07D00; font-weight: 600; }

#buildtal-nav .bt-nav-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

#buildtal-nav .bt-nav-search-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: #4A5568;
  background: rgba(240,125,0,0.08); border: 1px solid rgba(240,125,0,0.2);
  border-radius: 6px; padding: 5px 11px; text-decoration: none;
  transition: all .15s; white-space: nowrap;
}
#buildtal-nav .bt-nav-search-btn:hover { background: rgba(240,125,0,0.15); color: #F07D00; }

#buildtal-nav .bt-nav-cat-btn {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: #4A5568; background: rgba(255,255,255,0.6);
  border: 1px solid #D1D5DB; border-radius: 20px;
  padding: 3px 10px; text-decoration: none; white-space: nowrap;
  transition: all .12s;
}
#buildtal-nav .bt-nav-cat-btn:hover { background: #fff; color: #F07D00; border-color: #F07D00; }
#buildtal-nav .bt-btn-signin {
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 6px;
  border: 1px solid #D1D5DB; background: transparent; color: #4A5568;
  cursor: pointer; transition: all .15s; text-decoration: none;
  display: inline-flex; align-items: center; white-space: nowrap;
}
#buildtal-nav .bt-btn-signin:hover { background: #F4F6F9; }
#buildtal-nav .bt-btn-cta {
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 6px;
  border: none; background: #F07D00; color: #fff;
  cursor: pointer; transition: all .15s; text-decoration: none;
  display: inline-flex; align-items: center; white-space: nowrap;
}
#buildtal-nav .bt-btn-cta:hover { background: #D96E00; }

#buildtal-nav .bt-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
#buildtal-nav .bt-hamburger svg { display: block; }

/* ── Category buttons hidden on mid-width desktops to prevent nav overflow ── */
@media (max-width: 1200px) {
  #buildtal-nav .bt-nav-cat-btn { display: none; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  #buildtal-nav { padding: 0 16px; }
  #buildtal-nav .bt-nav-center { display: none; flex: unset; margin: 0; }
  #buildtal-nav .bt-nav-right { display: none; }
  #buildtal-nav .bt-hamburger { display: flex; align-items: center; }

  #buildtal-nav.mobile-open .bt-nav-center {
    display: flex; flex-direction: column;
    position: fixed; top: 52px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #E2E6ED;
    padding: 12px 16px 16px; gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    z-index: 9998;
  }
  #buildtal-nav.mobile-open .bt-nav-cat-btn {
    padding: 8px 12px; font-size: 13px; display: block; width: 100%;
    background: rgba(240,125,0,0.06); border-radius: 6px; margin-bottom: 4px;
  }
  #buildtal-nav.mobile-open .bt-nav-cat-btn:hover { background: rgba(240,125,0,0.12); }
  #buildtal-nav.mobile-open .bt-nav-link {
    padding: 10px 12px; font-size: 15px; display: block; width: 100%;
  }

  /* Show mobile auth buttons inside dropdown */
  #buildtal-nav .bt-mobile-auth { display: none; }
  #buildtal-nav.mobile-open .bt-mobile-auth {
    display: flex; gap: 8px; margin-top: 8px;
  }
  #buildtal-nav.mobile-open .bt-mobile-auth a {
    flex: 1; text-align: center; padding: 10px 12px; border-radius: 6px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
  }
  #buildtal-nav.mobile-open .bt-mobile-auth .bt-btn-signin-m {
    border: 1px solid #D1D5DB; color: #4A5568; background: #fff;
  }
  #buildtal-nav.mobile-open .bt-mobile-auth .bt-btn-cta-m {
    background: #F07D00; color: #fff;
  }
}

/* ── Hide any residual shared-nav elements ── */
nav.bt-nav:not(#buildtal-nav) { display: none !important; }
