/**
 * Content Gate - Header/Footer Integration
 *
 * Manages which header and footer elements are protected by Content Gate
 * and which remain accessible to non-logged-in users.
 *
 * Strategy: Use CSS classes and data attributes to mark elements as accessible
 * Content Gate plugin respects the `acg-allow` class on parent elements
 */

/**
 * Header Navigation - Allow non-logged-in users to access Platform menu
 * The nav and its entire contents should be accessible
 */
nav.wr-themenavwrap {
    --acg-allow: 1;  /* CSS custom property to mark as accessible */
}

/**
 * Search bar - Allow non-logged-in users to search
 */
.wr-header-search-wrapper {
    --acg-allow: 1;  /* Accessible */
}

/**
 * User menu buttons - Granular control per button
 * Sign In: Accessible to non-logged-in users
 * Register: NOT accessible (Content Gate will protect it)
 */
.wr-navbarbtn .wr-login {
    --acg-allow: 1;  /* Accessible */
}

.wr-navbarbtn .wr-register {
    /* No acg-allow - Will be protected by Content Gate */
}

/**
 * Footer - Allow non-logged-in users to access footer links
 */
footer,
.wr-footer,
[class*="footer"] {
    --acg-allow: 1;  /* Accessible */
}
