/* Portable, scope-isolated directory navigation for every MCAK standalone hub. */
.mcak-ind-global-dir,.mcak-ind-global-dir *{box-sizing:border-box}
.mcak-ind-global-dir{display:inline-flex;position:relative;align-items:center;flex:0 0 auto;align-self:center;z-index:8090;font:600 14px/1.4 system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:#183454}
.mcak-ind-global-dir>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:8px 11px;border:1px solid #b5c8df;border-radius:9px;background:#fff;color:#193f68;white-space:nowrap}
.mcak-ind-global-dir>summary::-webkit-details-marker{display:none}
.mcak-ind-bars{display:flex;flex-direction:column;justify-content:center;gap:4px;width:23px;flex:0 0 23px}
.mcak-ind-bars i{display:block;width:23px;height:2px;background:currentColor;border-radius:2px}
.mcak-ind-global-dir[open]>summary{background:#e7f2ff;border-color:#3473bd}
.mcak-ind-global-dir a:focus-visible,.mcak-ind-global-dir summary:focus-visible{outline:3px solid #286fe0;outline-offset:3px}
.mcak-ind-directory-panel{position:fixed;left:max(10px,env(safe-area-inset-left));top:var(--mcak-independent-menu-top,70px);width:min(540px,calc(100vw - 20px));max-width:calc(100vw - 20px);max-height:min(75vh,calc(100dvh - var(--mcak-independent-menu-top,70px) - 12px));overflow-y:auto;overscroll-behavior:contain;z-index:2147480000;background:#fff;color:#17324e;border:1px solid #bdcee3;border-radius:12px;box-shadow:0 20px 55px rgba(17,38,65,.25);padding:14px}
.mcak-ind-global-dir:not([open])>.mcak-ind-directory-panel{display:none!important}
.mcak-ind-directory-head{display:flex;flex-direction:column;gap:3px;padding:4px 6px 13px;border-bottom:1px solid #e2eaf4}
.mcak-ind-directory-head strong{font-size:18px;line-height:1.3;color:#142841}
.mcak-ind-directory-head span{font-size:13px;color:#53657b;font-weight:450}
.mcak-ind-directory-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:11px}
.mcak-ind-directory-links a{min-width:0;min-height:48px;border:1px solid #e2eaf4;border-radius:8px;text-decoration:none!important;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:9px 11px;background:#fff;color:#174875!important;line-height:1.35}
.mcak-ind-directory-links a strong{font-size:14px;font-weight:700;color:#153453;overflow-wrap:anywhere}
.mcak-ind-directory-links a small{font-size:12px;color:#52667d;font-weight:400}
.mcak-ind-directory-links a:hover{background:#edf5ff;border-color:#a7c8ed;text-decoration:none!important}
@media(max-width:680px){.mcak-ind-label{display:none}.mcak-ind-directory-panel{width:calc(100vw - 20px)}.mcak-ind-directory-links{grid-template-columns:1fr}.mcak-ind-directory-head strong{font-size:17px}.mcak-ind-directory-links a small{display:none}.mcak-ind-directory-links a{min-height:46px}.mcak-ind-global-dir{flex-shrink:0}}
/* When Website Hub owns the shared header, no portable menu is rendered. */
/* Sticky specialist headers remain independent; do not turn entire content shells sticky. */
body .eph-site-header,body .esh-header,body .nrh-site-header,body .ecsh-topbar,body .mcakr-siteheader,body .mk-header,body .ngit-header,body .ngic-topbar,body .hub-header{position:sticky!important;top:0;z-index:8050}
body.admin-bar .eph-site-header,body.admin-bar .esh-header,body.admin-bar .nrh-site-header,body.admin-bar .ecsh-topbar,body.admin-bar .mcakr-siteheader,body.admin-bar .mk-header,body.admin-bar .ngit-header,body.admin-bar .ngic-topbar,body.admin-bar .hub-header{top:32px}
@media(max-width:782px){body.admin-bar .eph-site-header,body.admin-bar .esh-header,body.admin-bar .nrh-site-header,body.admin-bar .ecsh-topbar,body.admin-bar .mcakr-siteheader,body.admin-bar .mk-header,body.admin-bar .ngit-header,body.admin-bar .ngic-topbar,body.admin-bar .hub-header{top:46px}}
@media(max-width:740px){
  body .eph-header-inner,body .esh-header-inner,body .nrh-header-inner,body .mcakr-sitebar,body .mk-header-inner,body .ngic-topbar-inner,body .hub-header-inner,body .ecsh-nav,body .ngit-header-main{min-width:0;display:flex;align-items:center;flex-wrap:nowrap;gap:8px}
  body .eph-header-inner .eph-nav,body .esh-header-inner .esh-nav-desktop,body .nrh-primary-nav,body .mcakr-header-links,body .mcakr-mobile-nav,body .mk-header-inner .mk-nav,body .ngic-topbar-inner .ngic-topnav,body .hub-header-tools,body .ngit-header-main .ngit-nav-categories,body .ngit-header-main .ngit-nav-more,body .ecsh-nav .ecsh-primary-menu{display:none!important}
  body .eph-site-brand,body .esh-brand,body .nrh-brand,body .mcakr-sitebar>a,body .mk-header-identity,body .ngic-brand,body .hub-brand,body .ecsh-brand{min-width:0;max-width:100%;overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.mcak-ind-global-dir *{transition:none!important;scroll-behavior:auto!important}}
