/* JhinOS shared navigation v6.
   Frosted paint lives on ::before, not on the parent of the fixed mobile menu. */
:root { --site-nav-height: 76px; }
html { scroll-padding-top: calc(var(--site-nav-height) + 18px); }
#early-access { scroll-margin-top: 14px; }
.site-header {
  isolation: isolate;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: none;
}
.site-header.scrolled, body.menu-open .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  border-bottom: 1px solid rgba(142,181,213,.16);
  background: linear-gradient(180deg,rgba(5,12,22,.9),rgba(5,12,22,.82));
  -webkit-backdrop-filter: blur(18px) saturate(138%);
  backdrop-filter: blur(18px) saturate(138%);
  box-shadow: 0 8px 26px rgba(0,0,0,.15);
  transition: opacity .25s ease;
}
.site-header.scrolled::before, body.menu-open .site-header::before { opacity: 1; }
.site-header .header-inner, .site-header .nav-row { height: var(--site-nav-height); gap: 20px; }
.site-header .desktop-nav, .site-header #nav { gap: clamp(12px,1.6vw,22px); }
.site-header .desktop-nav > a, .site-header #nav > a { white-space: nowrap; font-size: 13px; }
.site-header .desktop-nav .product-menu > summary { font-size: 13px; }
.site-header .nav-access-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.site-header .nav-early-access { white-space: nowrap; color: var(--muted,#9eb0c2); font-size: 13px; }
.site-header .nav-early-access:hover, .site-header .nav-early-access:focus-visible { color: var(--gold-soft,#ffe78a); }
/* A real button, not an empty URL. No account / registration route is configured. */
.site-header .account-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255,231,138,.44);
  border-radius: 11px;
  color: #171208;
  background: linear-gradient(115deg,#fff0a8,#efc14c 55%,#ff8b29);
  box-shadow: 0 8px 24px rgba(239,193,76,.12);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  cursor: default;
  opacity: 1;
  text-decoration: none;
}
.site-header .account-login:hover { color: #171208; background: linear-gradient(115deg,#fff0a8,#efc14c 55%,#ff8b29); border-color: #ffe78a; }
.site-header .account-login .account-label { color: inherit; margin: 0; }
.site-header .account-login svg { width: 17px; height: 17px; flex: 0 0 17px; color: inherit; }
.site-header :is(a,button,summary):focus-visible { outline: 2px solid #4bdbff; outline-offset: 4px; }
.site-header nav[hidden] { display: none !important; }
.button .action-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; }

@media (min-width: 1101px) {
  .site-header .desktop-nav { display: flex; }
  .site-header #nav { display: flex; position: static; height: auto; max-height: none; width: auto; overflow: visible; }
  .site-header .mobile-nav, .site-header .menu-button, .site-header .menu-toggle { display: none !important; }
}
@media (max-width: 1100px) {
  .site-header .desktop-nav, .site-header .header-inner > .account-login { display: none !important; }
  .site-header .header-inner, .site-header .nav-row { justify-content: space-between; }
  .site-header .menu-button, .site-header .menu-toggle { display: block; margin-left: auto; flex: 0 0 44px; z-index: 103; }
  /* Explicit viewport height also protects an embedded Studio preview. */
  .site-header .mobile-nav, .site-header #nav {
    display: none;
    position: fixed;
    inset: var(--site-nav-height) 0 auto;
    z-index: 102;
    width: auto;
    height: calc(100vh - var(--site-nav-height));
    height: calc(100dvh - var(--site-nav-height));
    max-height: calc(100vh - var(--site-nav-height));
    max-height: calc(100dvh - var(--site-nav-height));
    min-height: 0;
    margin: 0;
    padding: 18px 24px max(28px,env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    border: 0;
    border-top: 1px solid rgba(142,181,213,.13);
    background: #07111f;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #334b60 #07111f;
    -webkit-overflow-scrolling: touch;
  }
  .site-header .mobile-nav:not([hidden]), .site-header #nav.open:not([hidden]) { display: flex; }
  .site-header .mobile-nav > a, .site-header #nav > a {
    display: block;
    flex-shrink: 0;
    font-size: 17px;
    line-height: 1.6;
    padding: 17px 2px;
    border-bottom: 1px solid rgba(142,181,213,.16);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .site-header .nav-access-actions {
    display: grid;
    grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr);
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 22px 0 0;
    padding: 0;
    flex-shrink: 0;
  }
  .site-header .nav-access-actions .nav-early-access {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(142,181,213,.28);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
    color: #d9e6f1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
  }
  .site-header .nav-access-actions .account-login { min-height: 46px; padding: 10px 12px; font-size: 13px; }
  /* Keep nested product menus in normal flow and independently editable. */
  .site-header .product-menu-mobile { display: block; flex-shrink: 0; }
  .site-header .product-menu-mobile > summary { font-size: 17px; }
  .site-header .product-menu-mobile .product-menu-panel { position: static; width: 100%; max-width: 100%; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .bi-landing { --site-nav-height: 72px; }
  .site-header .mobile-nav, .site-header #nav { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header::before { transition: none; }
}
