/* The Contact page navigation is shared by every page. */
body{--rk-topbar-height:36px}
body .navbar,body .navbar.scrolled{background:#020c15f5;backdrop-filter:blur(15px)}
body .navbar{top:var(--rk-topbar-height)}
body .navbar #navigation>ul>li>a,body .navbar #navigation .services-menu-heading>.services-toggle{font-family:Arial,sans-serif;color:#f4f7ff}
body .navbar #navigation .services-dropdown,body .navbar #navigation .service-submenu{background:#071727;color:#fff}
body .navbar #navigation .category-toggle,body .navbar #navigation .service-submenu a{color:#e9f4ff}
body .navbar #navigation .category-toggle:hover,body .navbar #navigation .service-submenu a:hover{background:#123447;color:#70edff}
body[data-inner-service] main{margin-top:0}
@media(max-width:950px){body{--rk-topbar-height:32px}body .navbar #navigation{background:#0d1525fa}body .navbar #navigation .services-dropdown,body .navbar #navigation .service-submenu{background:#071727}}
/* Transparent header on every page, including while scrolling. */
body .navbar, body .navbar.scrolled, body.reference-contact .navbar, body.reference-contact .navbar.scrolled {background:transparent !important; backdrop-filter:none; -webkit-backdrop-filter:none; border-bottom-color:transparent;}
/* Consistent dropdown indicator on the Services navigation button. */
body .navbar #navigation .services-menu-heading > .services-toggle{display:inline-flex;align-items:center;gap:8px}
body .navbar #navigation .services-menu-heading > .services-toggle::after{content:'';display:inline-block;width:6px;height:6px;margin:0 0 3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s ease,margin .2s ease;flex:none}
body .navbar #navigation .services-menu-heading > .services-toggle[aria-expanded="true"]::after{transform:rotate(225deg);margin:3px 0 0}
@media(prefers-reduced-motion:reduce){body .navbar #navigation .services-menu-heading > .services-toggle::after{transition:none}}

/* Keep each desktop flyout beside its own trigger, including the bottom rows. */
@media (min-width:951px) {
 .navbar #navigation .service-category { position:relative; }
 .navbar #navigation .service-submenu { top:0; bottom:auto; }
 .navbar #navigation .service-category:nth-last-child(-n+2) > .service-submenu { top:auto; bottom:0; }
 /* Cover the panel padding so the pointer never crosses a dead strip. */
 .navbar #navigation .service-submenu::after { content:""; position:absolute; top:0; bottom:0; left:calc(100% - 12px); width:12px; }
}

/* Prevent horizontal scrolling inside service flyouts. */
@media (min-width:951px) {
 .navbar #navigation .service-submenu { overflow-x:hidden; }
 .navbar #navigation .service-submenu > li { min-width:0; max-width:100%; box-sizing:border-box; }
 .navbar #navigation .service-submenu a { box-sizing:border-box; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
}

/* Reserve the right side of desktop heroes for their six slide links. */
@media (min-width:1200px) {
 body .navbar #navigation { margin-right:clamp(100px, calc(100vw - 1200px), 300px); }
}
@media (min-width:951px) and (max-width:1199px) {
 body .navbar #navigation { margin-right:32px; }
}
