/* Persistent shared navigation on every IFHC page */
html{scroll-padding-top:76px}body{padding-top:58px!important}
.ifhc-fixed-nav{position:fixed!important;top:0;left:0;right:0;height:58px;z-index:2147483000;display:flex;justify-content:space-between;align-items:center;padding:0 max(16px,env(safe-area-inset-right));background:rgba(12,10,13,.97);border-bottom:1px solid #78333d;backdrop-filter:blur(15px);font-family:system-ui,-apple-system,sans-serif}
.ifhc-fixed-nav a{text-decoration:none;color:#fff}.ifhc-fixed-brand{font-size:25px;font-weight:950;color:#ff404b!important}
.ifhc-fixed-menu{position:relative}.ifhc-fixed-menu summary{cursor:pointer;list-style:none;display:block;background:#451921;border:1px solid #b64c57;border-radius:9px;padding:10px 16px;color:white;font-size:13px;font-weight:900;letter-spacing:.06em}.ifhc-fixed-menu summary::-webkit-details-marker{display:none}
.ifhc-fixed-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(90vw,320px);max-height:calc(100dvh - 76px);overflow:auto;display:flex;flex-direction:column;background:#1a1116;border:1px solid #a54b55;border-radius:12px;padding:8px;box-shadow:0 18px 55px #000d}
.ifhc-fixed-panel a{display:block;padding:13px 12px;font-size:13px;font-weight:800;border-radius:7px;line-height:1.3}.ifhc-fixed-panel a:hover,.ifhc-fixed-panel a:focus{background:#4b222b}.ifhc-fixed-panel .ifhc-bubble-link{color:#fff;border:0;background:transparent}
/* Remove legacy duplicated menu, keep existing CA bar on homepage */
body:has(.ifhc-fixed-nav) header .site-menu{display:none!important}
body:has(.ifhc-fixed-nav) header .navlinks,body:has(.ifhc-fixed-nav) header nav.nav{display:none!important}
body:has(.ifhc-fixed-nav) header{top:58px}
body:has(.ifhc-fixed-nav) section[id]{scroll-margin-top:150px}

/* Distinguish homepage anchors from separate pages */
.ifhc-fixed-panel .ifhc-menu-heading{padding:10px 12px 5px;color:#f47780;font-size:11px;font-weight:900;letter-spacing:.12em;line-height:1.3;pointer-events:none}
.ifhc-fixed-panel .ifhc-menu-divider{margin:9px 5px 2px;padding:13px 7px 5px;border-top:1px solid #69404a}

/* Subpages use the same fixed navigation as the homepage; suppress the old header entirely. */
body.ifhc-subpage > header{display:none!important}
body.ifhc-subpage{padding-top:58px!important}
body.ifhc-subpage .ifhc-fixed-nav{top:0!important}
/* Keep the navigation toggle vertically centered even on pages with global details/summary rules. */
.ifhc-fixed-nav > details.ifhc-fixed-menu{margin:0!important;padding:0!important;border:0!important;align-self:center!important;flex:0 0 auto!important}
.ifhc-fixed-nav > details.ifhc-fixed-menu > summary{margin:0!important;position:relative!important;top:auto!important;transform:none!important}
.ifhc-fixed-nav .ifhc-fixed-panel{margin:0!important}
