/* CyberAI compact grouped navigation — v12
   Funding Finder visible; desktop, tablet, mobile and small-screen safe. */
.site-header{overflow:visible}
.nav-shell{gap:clamp(12px,1.8vw,26px)}
.desktop-nav{gap:3px;min-width:0}
.desktop-nav>a,
.desktop-nav>.nav-dropdown>.nav-dropdown-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:72px;
  padding:0 10px;
  border:0;
  background:transparent;
  color:#495667;
  font-size:13px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  touch-action:manipulation;
}
.desktop-nav>a:hover,
.desktop-nav>a.is-active,
.desktop-nav>.nav-dropdown>.nav-dropdown-toggle:hover,
.desktop-nav>.nav-dropdown>.nav-dropdown-toggle.is-active,
.desktop-nav>.nav-dropdown.is-open>.nav-dropdown-toggle,
.desktop-nav>.nav-dropdown:focus-within>.nav-dropdown-toggle{color:var(--text)}
.desktop-nav>a.is-active::after,
.desktop-nav>.nav-dropdown>.nav-dropdown-toggle.is-active::after{
  content:"";
  position:absolute;
  right:10px;
  bottom:12px;
  left:10px;
  height:2px;
  border-radius:999px;
  background:var(--accent)
}
.nav-dropdown{position:relative;display:flex;align-items:center}
.nav-dropdown-toggle{font:inherit}
.nav-chevron{
  width:7px;
  height:7px;
  display:inline-block;
  flex:0 0 auto;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transform-origin:center;
  transition:transform .18s ease
}
.nav-dropdown.is-open>.nav-dropdown-toggle .nav-chevron,
.nav-dropdown:focus-within>.nav-dropdown-toggle .nav-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.nav-dropdown-menu{
  position:absolute;
  top:calc(100% - 7px);
  left:50%;
  z-index:1200;
  width:max-content;
  min-width:232px;
  max-width:min(330px,calc(100vw - 24px));
  padding:8px;
  visibility:hidden;
  opacity:0;
  transform:translate(-50%,8px);
  border:1px solid #dce5ef;
  border-radius:15px;
  background:rgba(255,255,255,.99);
  box-shadow:0 18px 50px rgba(12,36,61,.14);
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease
}
.nav-dropdown:focus-within>.nav-dropdown-menu,
.nav-dropdown.is-open>.nav-dropdown-menu{
  visibility:visible;
  opacity:1;
  transform:translate(-50%,0);
  pointer-events:auto
}
@media(hover:hover) and (pointer:fine){
  .nav-dropdown:hover>.nav-dropdown-menu{
    visibility:visible;
    opacity:1;
    transform:translate(-50%,0);
    pointer-events:auto
  }
}
.desktop-nav>.nav-dropdown:last-child>.nav-dropdown-menu{
  right:0;
  left:auto;
  transform:translateY(8px)
}
.desktop-nav>.nav-dropdown:last-child:focus-within>.nav-dropdown-menu,
.desktop-nav>.nav-dropdown:last-child.is-open>.nav-dropdown-menu{transform:translateY(0)}
@media(hover:hover) and (pointer:fine){
  .desktop-nav>.nav-dropdown:last-child:hover>.nav-dropdown-menu{transform:translateY(0)}
}
.nav-dropdown-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:0 13px;
  border-radius:10px;
  color:#34465a;
  font-size:13px;
  font-weight:700;
  white-space:nowrap
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a.is-active{color:#0f4fa8;background:#eef5ff;outline:0}
.nav-dropdown-menu .nav-feature-link{
  min-height:54px;
  justify-content:space-between;
  border:1px solid #d8e7fb;
  background:#f7fbff
}
.nav-item-copy{display:grid;gap:3px;min-width:0;line-height:1.15}
.nav-item-copy>span{display:block;overflow:hidden;text-overflow:ellipsis}
.nav-item-copy small{color:#738399;font-size:10px;font-weight:650;line-height:1.2;white-space:normal}
.nav-item-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#e7f1ff;
  color:#0f55ba;
  font-size:9px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase
}
.nav-actions{margin-left:auto;gap:9px;flex:0 0 auto}
.portal-dropdown{align-self:center}
.portal-toggle{cursor:pointer}
.portal-toggle.nav-webmail{min-width:92px;justify-content:center}
.portal-toggle .nav-chevron{margin-left:1px}
.portal-menu{right:0;left:auto;min-width:205px;transform:translateY(8px)}
.portal-dropdown:focus-within>.portal-menu,
.portal-dropdown.is-open>.portal-menu{transform:translateY(0)}
@media(hover:hover) and (pointer:fine){
  .portal-dropdown:hover>.portal-menu{transform:translateY(0)}
}
.portal-menu a{gap:10px}
.portal-menu .icon{width:17px;height:17px;color:var(--accent)}
.header-booking-cta{white-space:nowrap}
.menu-trigger{touch-action:manipulation}
.menu-trigger[aria-expanded="true"] span:first-child{transform:translateY(3.25px) rotate(45deg)}
.menu-trigger[aria-expanded="true"] span:last-child{transform:translateY(-3.25px) rotate(-45deg)}
.menu-trigger span{transition:transform .18s ease}

/* Tablet and mobile navigation */
@media(max-width:1180px){
  .desktop-nav{display:none!important}
  .portal-dropdown{display:none}
  .menu-trigger{display:flex!important;flex:0 0 auto}
  .nav-shell{min-height:70px}
  .mobile-menu{
    border-top:1px solid var(--line);
    background:rgba(255,255,255,.995);
    box-shadow:0 22px 48px rgba(12,36,61,.11)
  }
  .mobile-menu.is-open{display:block}
  .mobile-menu .mobile-menu-inner{
    display:block;
    max-height:calc(100vh - 70px);
    max-height:calc(100dvh - 70px);
    padding:14px 0 max(22px,env(safe-area-inset-bottom));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch
  }
  .mobile-navigation{display:grid;gap:6px}
  .mobile-menu .mobile-nav-link,
  .mobile-nav-group>summary{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 14px;
    border:0;
    border-radius:11px;
    color:#23364b;
    background:transparent;
    font-size:14px;
    font-weight:750;
    cursor:pointer;
    list-style:none;
    touch-action:manipulation
  }
  .mobile-menu .mobile-nav-link{border-bottom:0}
  .mobile-menu .mobile-nav-link:hover,
  .mobile-menu .mobile-nav-link:focus-visible,
  .mobile-menu .mobile-nav-link.is-active,
  .mobile-nav-group>summary:hover,
  .mobile-nav-group>summary:focus-visible{color:#0f55ba;background:#f1f6fd;outline:0}
  .mobile-nav-group{min-width:0;border:0}
  .mobile-nav-group>summary::-webkit-details-marker{display:none}
  .mobile-nav-group>summary::marker{display:none;content:""}
  .mobile-nav-group[open]>summary{color:#0f55ba;background:#f1f6fd}
  .mobile-nav-group[open]>summary .nav-chevron{transform:rotate(225deg) translate(-1px,-1px)}
  .mobile-nav-submenu{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    padding:6px 6px 10px 18px
  }
  .mobile-menu .mobile-nav-submenu a{
    min-width:0;
    min-height:44px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:8px 12px;
    border:1px solid #e5ebf2;
    border-radius:10px;
    background:#fff;
    color:#4a5c70;
    font-size:13px;
    font-weight:700;
    line-height:1.25;
    overflow-wrap:anywhere;
    touch-action:manipulation
  }
  .mobile-menu .mobile-nav-submenu a:hover,
  .mobile-menu .mobile-nav-submenu a:focus-visible,
  .mobile-menu .mobile-nav-submenu a.is-active{color:#0f55ba;border-color:#bdd3ef;background:#f7faff;outline:0}
  .mobile-menu .mobile-feature-link{
    min-height:58px;
    justify-content:space-between;
    border-color:#cfe1f8;
    background:#f7fbff
  }
  .mobile-feature-link .nav-item-copy{flex:1 1 auto}
  .mobile-nav-submenu .icon{width:17px;height:17px;flex:0 0 auto;color:var(--accent)}
  .mobile-booking-cta{width:100%;margin-top:12px;min-height:48px}
  body.nav-menu-open{overflow:hidden;overscroll-behavior:none}
}

@media(min-width:1181px){
  .mobile-menu{display:none!important}
}

@media(max-width:760px){
  .nav-shell{gap:10px}
  .header-booking-cta{min-height:40px;padding:0 13px;font-size:12px}
}

@media(max-width:620px){
  .header-booking-cta{display:none!important}
  .mobile-nav-submenu{grid-template-columns:1fr;padding-left:12px}
  .mobile-menu .mobile-menu-inner{max-height:calc(100vh - 68px);max-height:calc(100dvh - 68px)}
}

@media(max-width:440px){
  .container{width:min(calc(100% - 28px),var(--container))}
  .brand{gap:8px}
  .brand-mark{width:34px;height:34px;border-radius:10px}
  .brand-mark img{width:29px;height:29px}
  .brand-name{font-size:18px}
  .menu-trigger{width:40px;height:40px}
  .mobile-menu .mobile-nav-link,
  .mobile-nav-group>summary{padding-inline:11px}
  .mobile-nav-submenu{padding-right:0;padding-left:8px}
}

@media(max-width:350px){
  .container{width:min(calc(100% - 20px),var(--container))}
  .brand-name{font-size:17px}
  .brand-mark{width:32px;height:32px}
  .brand-mark img{width:27px;height:27px}
  .nav-shell{gap:7px}
  .mobile-menu .mobile-nav-submenu a{padding-inline:10px}
}

@media(max-height:520px) and (max-width:1180px){
  .mobile-menu .mobile-menu-inner{padding-top:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .mobile-menu .mobile-nav-link,
  .mobile-nav-group>summary{min-height:42px}
  .mobile-menu .mobile-nav-submenu a{min-height:40px}
  .mobile-booking-cta{min-height:42px;margin-top:8px}
}

@media(prefers-reduced-motion:reduce){
  .nav-dropdown-menu,.nav-chevron,.menu-trigger span{transition:none}
}
