/* Hides the 'View' button for pending/preview job links */
a.jm-ui-button--link[href*="p="] {
    display: none !important;
}

/* 1. RESET LAYOUT & STOP BOUNCE */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* We use 'clip' instead of 'hidden' if supported, it's firmer on mobile */
    overflow-x: clip; 
    position: relative;
}

/* 2. FORCE FOOTER VISIBILITY */
#colophon, .site-footer, .footer-bottom {
    background-color: #1a1a1a !important;
    display: block !important;
    width: 100%;
    min-height: 100px;
    clear: both;
}

.site-info {
    visibility: hidden;
    position: relative;
    padding: 40px 0 !important;
}

.site-info::before {
    visibility: visible;
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    content: "Stronger Together. Building the Future of the Labor Movement. ✊";
    color: #ffffff !important;
    font-size: 14px;
    text-align: center;
    display: block;
}

/* 3. FUNCTIONAL LOCKS (Account/Menu) */
#account_email {
    pointer-events: none !important;
    background-color: #f0f0f0 !important;
}

.woocommerce-account .sidebar { display: none !important; }
.woocommerce-account #primary { width: 100% !important; max-width: 900px !important; margin: 0 auto !important; float: none !important; }

.menu-item-avatar .dropdown-menu li:first-child { display: none !important; }

body:not(.logged-in) .menu-item a[href*="candidates"],
body:not(.logged-in) .menu-item a[href*="employers"] {
    display: none !important;
}

/* 4. FIX ELEMENTOR OVERFLOW */
.elementor-section, .elementor-container {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 5. FIX WP JOB MANAGER TEXT CUTOFF ON MOBILE */
.job_listing-description, 
.job_listing-description *, 
.single-job_listing .job-description *,
.single-job_listing .entry-content * {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}