/**
 * Milo Navigation Styles
 *
 * Styles for Milo navigation integration including:
 * - Footer visibility
 * - Local navigation placeholder
 * - Action button visibility management
 */

/* Hide FEDS footer when Milo is active */
.globalnavfooter #feds-footer,
#global-footer #feds-footer {
    display: none;
}

/* Hide placeholder instantly when Milo header exists (CSS-based, no JS delay) */
@media (max-width: 899px) {
    #milo-localnav-placeholder {
        min-height: 40px;
    }
}

.feds-localnav ~ #milo-localnav-placeholder,
.feds-localnav + #milo-localnav-placeholder,
body:has(.feds-localnav) #milo-localnav-placeholder {
    display: none;
}

/* Hide special action buttons by default - JavaScript will show them based on user state */
header.global-navigation a[href*="@buy-now"],
header.global-navigation a[href*="@download"],
header.global-navigation a[href*="@free-trial"],
.feds-localnav-items a[href*="@buy-now"],
.feds-localnav-items a[href*="@download"],
.feds-localnav-items a[href*="@free-trial"] {
    display: none;
}

/* Show action buttons when class is added by JavaScript */
header.global-navigation a.helpx-action-visible,
.feds-localnav-items a.helpx-action-visible {
    display: flex;
}

/* Force Milo nav to scroll naturally instead of being sticky */
header.global-navigation {
    position: relative !important;
    min-height: 56px;
}

.feds-localnav {
    position: relative !important;
}
