/* Global (primary) nav on product pages = same menu as the landing page.
   The product's own section menu becomes a secondary bar right under it. */
:root { --gnav-h: 64px; }
html { scroll-padding-top: 128px; }
section[id], [id].proof { scroll-margin-top: 128px !important; }

.gnav { position: sticky; top: 0; z-index: 1001; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #E8E8E1; font-family: 'Google Sans','Noto Sans SC','Noto Sans TC',system-ui,sans-serif; }
.gnav-inner { max-width: 1240px; height: var(--gnav-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gnav-logo img { height: 38px; width: auto; display: block; }
.gnav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.gnav-links a { font-size: 15px; font-weight: 500; color: #232733; text-decoration: none; transition: color .2s; }
.gnav-links a:hover, .gnav-links a.active { color: #8C6C00; }
.gnav-links a.gnav-cta { background: #FFCF16; color: #171B25; font-weight: 700; padding: 10px 22px; border-radius: 999px; }
.gnav-links a.gnav-cta:hover { background: #EBBE00; color: #171B25; }
.gnav-burger { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; font-size: 24px; color: #171B25; cursor: pointer; align-items: center; justify-content: center; }

/* Secondary (product section) bar */
nav.subnav { position: sticky !important; top: var(--gnav-h) !important; z-index: 1000 !important; background: #FAFAF6 !important; border-bottom: 1px solid #E8E8E1 !important; box-shadow: none !important; backdrop-filter: none !important; height: auto !important; min-height: 0 !important; padding: 0 !important; }
nav.subnav > div, nav.subnav .nav-inner, nav.subnav .container, nav.subnav .inner, nav.subnav .pnav-inner { min-height: 0 !important; height: auto !important; padding-top: 0 !important; padding-bottom: 0 !important; }
nav.subnav .nav-inner, nav.subnav > .inner, nav.subnav > .pnav-inner, nav.subnav > .container { max-width: 1240px; margin: 0 auto; display: flex !important; align-items: center !important; gap: 16px; }
nav.subnav .nav-logo, nav.subnav a.logo, nav.subnav .pnav-logo { display: none !important; }
nav.subnav .subnav-name { flex-shrink: 0; font-size: 14px; font-weight: 700; color: #171B25; padding-right: 16px; margin-right: 4px; border-right: 1px solid #E0E0D8; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
nav.subnav .subnav-name i { color: #8C6C00; font-size: 16px; }
nav.subnav .subnav-links { flex-wrap: nowrap !important; display: flex !important; align-items: center !important; gap: 4px !important; flex: 1; min-width: 0; position: static !important; flex-direction: row !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; transform: none !important; opacity: 1 !important; visibility: visible !important; height: auto !important; max-height: none !important; overflow-x: auto; scrollbar-width: none; list-style: none; }
nav.subnav .subnav-links::-webkit-scrollbar { display: none; }
nav.subnav .subnav-links li { list-style: none; margin: 0 !important; padding: 0 !important; border: 0 !important; }
nav.subnav .subnav-links a[href^="#"] { display: block; font-size: 13.5px !important; font-weight: 500 !important; color: #5C606B !important; padding: 13px 12px !important; line-height: 20px !important; white-space: nowrap; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; transition: color .2s, border-color .2s; }
nav.subnav .subnav-links a[href^="#"]:hover { color: #171B25 !important; }
nav.subnav .subnav-links a[href^="#"].is-current { color: #171B25 !important; border-bottom-color: #FFCF16 !important; }
nav.subnav a.nav-cta, nav.subnav .nav-cta .btn, nav.subnav a.pnav-cta, nav.subnav .subnav-links a.nav-cta { flex-shrink: 0; margin-left: auto; padding: 7px 16px !important; font-size: 13px !important; border-bottom: 0 !important; }
nav.subnav .nav-cta:not(a) { margin-left: auto; flex-shrink: 0; }
nav.subnav .nav-toggle, nav.subnav .hamburger, nav.subnav .nav-hamburger, nav.subnav .pnav-burger { display: none !important; }
.nav-mobile { display: none !important; }


/* Align secondary bar content with the primary bar and normalise CTAs */
nav.subnav > :first-child { min-height: 48px !important; max-width: 1240px !important; width: 100% !important; margin: 0 auto !important; padding: 0 24px !important; box-sizing: border-box; display: flex !important; align-items: center !important; gap: 16px; }
nav.subnav > .container > .nav-inner { max-width: none !important; margin: 0 !important; padding: 0 !important; width: 100%; display: flex !important; align-items: center !important; gap: 16px; }
nav.subnav .subnav-links li:has(> .nav-cta) { margin-left: auto !important; padding-left: 12px !important; }
nav.subnav a.nav-cta, nav.subnav .nav-cta .btn, nav.subnav a.pnav-cta {
  display: inline-flex !important; align-items: center; gap: 6px; height: 34px !important; min-height: 0 !important;
  padding: 0 16px !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1 !important;
  background: #FFCF16 !important; color: #171B25 !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; white-space: nowrap; }
nav.subnav a.nav-cta:hover, nav.subnav .nav-cta .btn:hover, nav.subnav a.pnav-cta:hover { background: #EBBE00 !important; }
nav.subnav .nav-cta:not(a) { padding: 0 !important; background: none !important; }


/* Match the landing page nav exactly (font size, weight, colour, CTA size, logo, spacing) */
.gnav-inner { max-width: 1200px !important; }
.gnav-logo img { height: 40px !important; }
.gnav-links { gap: 32px !important; }
.gnav-links a { font-size: 14px !important; font-weight: 500 !important; line-height: 1.6 !important; color: #5C606B !important; }
.gnav-links a.active { color: #5C606B !important; }
.gnav-links a:hover { color: #8C6C00 !important; }
.gnav-links a.gnav-cta { font-size: 14px !important; font-weight: 600 !important; padding: 8px 20px !important; color: #171B25 !important; line-height: 1.6 !important; }
nav.subnav > :first-child { max-width: 1200px !important; }
@media (min-width: 901px) { .gnav-links a, .gnav-links a.gnav-cta { display: inline-block !important; line-height: 18px !important; } }

@media (max-width: 900px) {
  .gnav-burger { display: inline-flex; }
  .gnav-links { display: none; position: absolute; top: var(--gnav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 24px 18px; border-bottom: 1px solid #E8E8E1; box-shadow: 0 12px 24px rgba(23,27,37,.08); }
  .gnav-links.open { display: flex; }
  .gnav-links a { padding: 13px 0; border-bottom: 1px solid #F0F0EA; }
  .gnav-links a.gnav-cta { text-align: center; margin-top: 12px; border: 0; }
  nav.subnav .subnav-name { display: none; }
  nav.subnav a.nav-cta, nav.subnav .nav-cta, nav.subnav a.pnav-cta { display: none !important; }
  nav.subnav > :first-child { padding-left: 12px !important; padding-right: 12px !important; }
  nav.subnav .subnav-links li:has(> .nav-cta) { display: none !important; }
}

/* Page links in the secondary bar (news / careers / legal) get the same spacing as section anchors */
nav.subnav .subnav-links a:not([href^="#"]):not(.pnav-cta):not(.nav-cta) { display: block; padding: 13px 12px !important; line-height: 20px !important; white-space: nowrap; }

/* Mobile menu: stacked rows, no desktop gap */
@media (max-width: 900px) { .gnav-links.open { gap: 0 !important; } }
