/* Updated: 2026-05-04a */
/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Template: twentytwentyfive
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five Child Theme
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* Bootstrap Custom Overrides */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bs-body-bg: #f3f4f6;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Light Grey */
    /* Light Grey */
    --bs-body-color: #1f2937;
    /* Dark Grey */
    --bs-primary: #0f172a;
    /* Very Dark Blue */
    --bs-secondary: #64748b;
    --bs-dark: #1e293b;
    /* Slate 800 */
    --bs-border-color: #e2e8f0;
    /* Light Border */
}

body {
    background-color: #f6f6f6;
    color: var(--bs-body-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky footer: main content grows to fill viewport */
body > .wp-site-blocks {
    flex: 1;
}

/* ========================================
   PROFESSIONAL NAVIGATION STYLES
   ======================================== */

/* Header Container */
.site-header {
    z-index: 10000 !important;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Custom Floating Navbar */
.custom-floating-nav {
    display: inline-flex;
    align-items: stretch;
    /* So dividers span full height */
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 5px rgba(0, 0, 0, 0.02);
    padding: 0;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    /* For pill shape */
}

.custom-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.25rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-right: 1px solid #f1f5f9;
}

.custom-nav-item:last-child {
    border-right: none;
}

.custom-nav-item:hover,
.custom-nav-item.active {
    color: #0f172a;
    background-color: #f8fafc;
}

.custom-nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    border-right: 1px solid #f1f5f9;
    text-decoration: none;
}

.brand-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: #94a3b8;
    letter-spacing: -0.05em;
    transition: color 0.2s ease;
}

.custom-nav-brand:hover .brand-text {
    color: #64748b;
}

.custom-nav-brand img {
    height: 28px;
    width: auto;
}

/* Mobile Responsive adjustment for pill navbar */
@media (max-width: 768px) {
    .site-header {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .custom-floating-nav {
        /* On mobile, standard width and rounded corners */
        width: 100%;
        border-radius: 16px;
        flex-direction: column;
        overflow: hidden;
    }

    .custom-nav-brand {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 1rem;
    }

    .custom-nav-item {
        border-right: none;
        border-top: 1px solid #f1f5f9;
        padding: 1rem 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .custom-nav-item:last-child {
        border-bottom: none;
    }

    /* Provide a smooth transition for dropdown, Bootstrap collapse handles this mostly */
    .collapse:not(.show) {
        display: none;
    }
}


/* Forms - Mixed (Light Input on Light BG, Dark Input on Dark BG if needed) */
.form-control,
.input-group-text {
    background-color: #fff;
    border-color: #cbd5e1;
    color: #1e293b;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--bs-primary);
    color: #1e293b;
    box-shadow: 0 0 0 0.25rem rgba(15, 23, 42, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Cards (Default White) */
.card {
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
}

/* Specific Dark Card Class */
.card.bg-dark {
    background-color: var(--bs-dark) !important;
    color: #f1f5f9;
}

.card.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

/* Job Card Hover Effect */
.card.job-card-hover {
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb !important;
}

.card.job-card-hover:hover {
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.08) !important;
    background-color: #f8fafc !important;
    border-color: #3b82f6 !important;
}

/* Time Display Toggle on Hover */
.job-time-display .time-absolute {
    display: none;
}

.job-time-display .time-relative {
    display: inline;
}

.card.job-card-hover:hover .job-time-display .time-relative {
    display: none;
}

.card.job-card-hover:hover .job-time-display .time-absolute {
    display: inline;
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-secondary {
    color: #cbd5e1;
    border-color: var(--bs-border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--bs-dark);
    border-color: #94a3b8;
    color: #fff;
}

/* Pagination */
.pagination-dark .page-link {
    background-color: transparent;
    border-color: var(--bs-border-color);
    color: #cbd5e1;
}

.pagination-dark .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.pagination-dark .page-link:hover {
    background-color: var(--bs-dark);
    border-color: #64748b;
    color: #fff;
}

/* Utilities */
.text-secondary {
    color: #64748b !important;
}

.bg-secondary-subtle {
    background-color: #f1f5f9 !important;
}

.text-secondary-emphasis {
    color: #475569 !important;
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
}

a {
    color: var(--bs-primary);
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: #334155;

}

/* Dribbble Style Overrides */
.btn-pill-dark {
    background-color: #0d0c22;
    /* Dribbble Black */
    color: #fff;
    border-radius: 50rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-pill-dark:hover {
    background-color: #565564;
    color: #fff;
    transform: translateY(-1px);
}

.btn-share {
    color: #0d0c22;
    background-color: #fff;
    border: 1px solid #e7e7e9;
    border-radius: 8px;
    /* Slightly rounded squares */
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-share:hover {
    background-color: #f3f3f4;
    color: #0d0c22;
}

.author-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    background-color: #f3f3f4;
    /* Placeholder bg */
}

.sidebar-label {
    font-size: 0.85rem;
    color: #6e6d7a;
    margin-bottom: 0.25rem;
}

.sidebar-value {
    font-size: 1rem;
    color: #0d0c22;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.related-job-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0d0c22;
}

/* Profile headshot in Posted by section */
.sidebar-value img.rounded-circle {
    flex-shrink: 0;
}

/* Company link buttons */
.btn-outline-primary.btn-sm {
    transition: all 0.2s ease;
}

.btn-outline-primary.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-job-card a {
    text-decoration: none;
}

.related-job-card a:hover {
    text-decoration: underline;
}

/* Dark Mode Pagination (Simplified Badge Style) */
.pagination-lg-black ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pagination-lg-black li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pagination-lg-black .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #64748b !important;

}

.pagination-lg-black .page-numbers a {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.pagination-lg-black .page-numbers.current {
    background-color: #1f2937;
    color: #fff !important;
    border-color: #1f2937;
}

.pagination-lg-black a.page-numbers:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.pagination-lg-black .page-numbers.dots {
    border: none;
    background: transparent;
    color: #9ca3af;
}

.pagination-lg-black .page-numbers.prev,
.pagination-lg-black .page-numbers.next {
    font-weight: 600;
}

/* ========================================
   RESPONSIVE / MOBILE STYLES
   ======================================== */

/* Base Responsive Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Shared main content wrapper — matches frontpage (list-of-jobs.php) structure */
.loj-main {
    padding: 32px 0 32px;
    margin: 0;
    background-color: #f6f6f6;
}

/* Single job post page background — matches homepage and bookmarks */
.single-job-container {
    background: #f6f6f6;
}

/* Single post: remove grey background so hero gradient shows through */
.loj-main.single-job-container,
body.single .loj-main,
body.single .single-job-container {
    background: transparent !important;
}
@media (max-width: 576px) {
    .loj-main.single-job-container { margin-top: -115px !important; }
}

/* Sidebar sticky offset: clears the 56px header + 20px gap, matching bookmarks and list-of-jobs */
#sidebar .card.sticky-top {
    top: 76px;
}

/* Prevent Horizontal Scroll */
body,
html {
    overflow-x: clip;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* Responsive Container Widths */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Global Anti-Overlap Fixes for Mobile */
@media (max-width: 992px) {

    /* Force all WordPress blocks to display block and clear */
    .wp-block,
    .wp-block-group,
    .wp-site-blocks>* {
        clear: both !important;
        float: none !important;
        position: relative !important;
    }

    /* Prevent any absolute positioning causing overlaps */

    /* Ensure proper stacking */
    .single-job-container main>div,
    .single-job-container main>section {
        margin-bottom: 1rem;
        clear: both;
    }
}

/* Tablet & Below (≤992px) */
@media (max-width: 992px) {

    /* List of Jobs Page */
    .job-board-container .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Search Bar */
    .bg-white.p-4.rounded-3 {
        padding: 1.5rem !important;
    }

    .bg-white.p-4.rounded-3 form {
        flex-direction: column !important;
    }

    .bg-white.p-4.rounded-3 .btn {
        width: 100%;
    }

    /* Sidebar Filters - Make them full width on tablet */
    .col-lg-4 .sticky-top {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem;
    }

    /* Job Cards - Adjust layout */
    .job-card-hover .row {
        flex-direction: column;
    }

    .job-card-hover .col-md-8,
    .job-card-hover .col-md-4 {
        width: 100%;
        text-align: left !important;
    }

    .job-card-hover .text-md-end {
        text-align: left !important;
    }

    .job-card-hover .justify-content-md-end {
        justify-content: flex-start !important;
    }

    /* Single Job Page - Padding adjustments only */
    .single-job-container .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Sidebar sticky behavior on tablet */
    .single-job-container aside .sticky-top {
        position: relative !important;
        top: 0 !important;
        margin-top: 2rem;
    }
}

/* Mobile Landscape & Below (≤768px) */
@media (max-width: 768px) {

    /* Typography Adjustments */
    h1 {
        font-size: 2rem !important;
    }

    .h4,
    h4 {
        font-size: 1.25rem !important;
    }

    .h5,
    h5 {
        font-size: 1.1rem !important;
    }

    /* Job Board Container */
    .job-board-container {
        padding-top: 1rem !important;
    }

    /* Search Bar */
    .bg-white.p-4.rounded-3 {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .form-control-lg {
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }

    .btn.px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Job Cards */
    .card.job-card-hover {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .job-card-hover .gap-2 {
        gap: 0.5rem !important;
    }

    .job-card-hover h3 {
        font-size: 1.1rem !important;
    }

    /* Badges */
    .badge {
        font-size: 0.8rem !important;
    }

    /* Sidebar Filters */
    .col-lg-4 .bg-white.p-4 {
        padding: 1.5rem !important;
    }

    /* Pagination */
    .pagination-lg-black {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .pagination-lg-black ul {
        gap: 4px !important;
        flex-wrap: wrap;
    }

    .pagination-lg-black .page-numbers {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        padding: 0 8px !important;
    }

    /* Single Job Page */
    .single-job-container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Fix for overlapping content */
    .single-job-container main {
        position: relative;
        z-index: 1;
    }

    .single-job-container .mb-5 {
        clear: both;
        display: block;
        position: relative;
        margin-bottom: 2rem !important;
    }

    .job-description {
        clear: both;
        display: block;
        position: relative;
        margin-top: 1rem;
    }

    /* Ensure all content blocks are properly stacked */
    .single-job-container main>* {
        clear: both;
        position: relative;
    }

    /* Back Button */
    .mb-5.d-flex.align-items-center {
        margin-bottom: 1.5rem !important;
    }

    /* Job Title */
    .single-job-container h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Skills Badges Section */
    .d-flex.flex-wrap.gap-2 {
        gap: 0.5rem !important;
    }

    /* Job Description */
    .job-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Sidebar Card */
    .single-job-container aside .card {
        margin-bottom: 2rem;
    }

    .author-avatar-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .sidebar-label {
        font-size: 0.8rem !important;
    }

    .sidebar-value {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    /* Related Jobs */
    .related-job-card {
        margin-bottom: 1rem;
    }

    .row.g-4 {
        gap: 1rem !important;
    }

    .col-md-4 {
        width: 100%;
    }

    /* CRITICAL: Anti-Overlap Fixes for Single Job Page */
    .single-job-container main {
        width: 100% !important;
    }

    .single-job-container main>* {
        width: 100% !important;
        display: block !important;
        margin-bottom: 1.5rem !important;
    }

    .single-job-container .mb-5 {
        margin-bottom: 2rem !important;
        width: 100% !important;
    }

    .job-description {
        width: 100% !important;
    }

    .job-description * {
        float: none !important;
    }
}

/* Mobile Portrait (≤576px) */
@media (max-width: 576px) {

    /* Container Padding */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Typography - Even Smaller */
    h1 {
        font-size: 1.5rem !important;
    }

    .h4,
    h4 {
        font-size: 1.1rem !important;
    }

    .h5,
    h5 {
        font-size: 1rem !important;
    }

    /* Search Bar */
    .bg-white.rounded-3 {
        border-radius: 0.5rem !important;
    }

    .form-control-lg {
        font-size: 0.95rem !important;
    }

    .btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
    }

    /* Job Cards - Compact */
    .card.job-card-hover {
        padding: 0.75rem !important;
        border-radius: 8px !important;
    }

    .job-card-hover .d-flex.gap-2 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    .job-card-hover h3 {
        font-size: 1rem !important;
        line-height: 1.3;
    }

    .job-card-hover .text-secondary {
        font-size: 0.75rem !important;
    }

    /* Company Name & Remote Badge on Same Line */
    .job-card-hover .align-items-center.gap-2 {
        gap: 0.5rem !important;
    }

    /* Filters Sidebar - More Compact */
    .col-lg-4 .bg-white {
        padding: 0.75rem !important;
    }

    .form-check-label {
        font-size: 0.85rem !important;
    }

    .btn-sm {
        font-size: 0.8rem !important;
    }

    /* Pagination - Smaller */
    .pagination-lg-black .page-numbers {
        min-width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        padding: 0 6px !important;
    }

    /* Hide "Previous/Next" text on very small screens */
    .pagination-lg-black .page-numbers.prev::before {
        content: "‹";
    }

    .pagination-lg-black .page-numbers.next::after {
        content: "›";
    }

    /* Single Job Page */
    .single-job-container h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    /* Back Button - Smaller */
    .btn.rounded-circle {
        width: 40px !important;
        height: 40px !important;
    }

    .btn.rounded-circle img {
        width: 20px !important;
        height: 20px !important;
    }

    /* Sidebar Elements */
    .card-body.p-4 {
        padding: 1.5rem !important;
    }

    .author-avatar-circle {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.75rem !important;
    }

    .sidebar-value {
        font-size: 0.85rem !important;
        word-break: break-word;
    }

    /* Badges */
    .badge {
        font-size: 0.8rem !important;
    }

    /* Contact Info - Stack Better */
    .job-description {
        font-size: 0.9rem !important;
        width: 100%;
    }

    /* Related Jobs */
    .mt-5.pt-5 {
        margin-top: 2rem !important;
        padding-top: 2rem !important;
    }

    .related-job-card .card-body {
        padding: 1rem !important;
    }

    /* Spacing Utilities */
    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }

    .gap-5 {
        gap: 1.5rem !important;
    }

    .g-5 {
        gap: 1.5rem !important;
    }
}

/* Extra Small Devices (≤375px) */
@media (max-width: 375px) {

    /* Ultra Compact Mode */
    h1 {
        font-size: 1.35rem !important;
    }

    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .card {
        padding: 0.5rem !important;
    }

    .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .badge {
        font-size: 0.8rem !important;
    }

    .pagination-lg-black .page-numbers {
        min-width: 26px !important;
        height: 26px !important;
        font-size: 0.75rem !important;
    }
}

/* Blur Utility */
.blur-text {
    filter: blur(4px);
    user-select: none;
    cursor: pointer;
    display: inline-block;
    transition: filter 0.3s;
}

.blur-text:hover {
    filter: blur(3px);
    /* Slight reveal hint */
}


.back-btn-wrapper {
    margin-bottom: 1rem !important;
}


/* Admin icon-only buttons (sidebar edit/delete) — same visual as back button but no forced padding */
.btn-admin-icon {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    transition: all 0.2s ease;
}

.btn-admin-icon:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* ========================================
   SUBSCRIBER POPUP STYLES
   ======================================== */

.blurred-content-wrapper {
    position: relative;
    /* filter: blur(4px); Removed global blur */
    /* user-select: none; Allowed selection */
    /* opacity: 0.5; Full opacity */
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    /* pointer-events: none; Allowed interaction */
}

.subscriber-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    /* Center Vertically */
    padding-top: 0;
    /* Remove top padding */
    z-index: 10001;
    /* Above sticky navbar (10000) */
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    backdrop-filter: blur(4px);
    /* Blur background */
}

.subscriber-popup-overlay.active {
    display: flex;
}

.subscriber-popup-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 340px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Fix for border-radius clipping - robust approach for filters */
    -webkit-clip-path: inset(0 round 12px);
    clip-path: inset(0 round 12px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Subtle border */
    z-index: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Ensure content sits on top of the gradient */
.subscriber-popup-card>*:not(.popup-gradient-bg):not(.popup-grid-overlay):not(.popup-close-btn) {
    position: relative;
    z-index: 2;
}

/* Typography */
.popup-title {
    font-family: 'Inter', sans-serif;
    /* Explicitly requested */
    font-weight: 700;
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-align: left;
    padding-right: 48px; /* prevent text from reaching the close button */
}

.popup-subtitle {
    display: block;
    color: #2563eb;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: left;
}

.popup-subtitle:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.popup-divider {
    border: 0;
    height: 2px;
    background: #afb0b1;
    margin: 0.5rem 0;
    width: 100%;
}

.popup-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 36px;
    height: 36px;
    border: none;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    transition: background 0.15s;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.popup-close-btn:hover {
    background: #2b52c8;
    color: #fff;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.feature-item {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 400;
}

/* Footer Section */
.popup-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 0;
}

.price-container {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    display: block;
    letter-spacing: -0.5px;
}

.price-period {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 2px;
}

.btn-subscribe {
    background: linear-gradient(180deg, #4f7df5 0%, #2563eb 100%);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-subscribe:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    color: #fff;
}

/* Background Effects */
.popup-gradient-bg {
    position: absolute;
    bottom: -409px;
    right: -297px;

    width: 550px;
    height: 550px;

    /* Gradient background */
    background: radial-gradient(circle at 30% 30%, #93c5fd 0%, #4f7df5 40%, #2563eb 80%, rgba(37, 99, 235, 0) 100%);

    /* Border radius (cross-browser safe) */
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;

    z-index: 0;
    pointer-events: none;

    /* Blur compatibility - Restored with clip-path fix on parent */
    -webkit-filter: blur(60px);
    filter: blur(60px);

    opacity: 1;
}

.popup-title,
.popup-subtitle,
.popup-divider,
.feature-list,
.popup-footer {
    position: relative;
    z-index: 2;
    /* Ensure text is above gradient */
}

.popup-grid-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120%;
    height: 120%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: bottom right;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at 80% 80%, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at 80% 80%, black 0%, transparent 60%);
    transform: perspective(600px) rotateX(15deg) rotateY(-15deg) scale(1);
    transform-origin: bottom right;
    opacity: 0.5;
}

/* Contact Lead Button */
.btn-contact-lead {
    background-color: #555;
    /* Dark grey matching screenshot */
    border: none;
    transition: background-color 0.2s ease;
    font-size: 1rem;
    color: #fff;
}

.btn-contact-lead:hover {
    background-color: #333;
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .blurred-content-wrapper {
        min-height: auto;
        /* Allow short content to shrink */
        max-height: 350px;
    }

    .subscriber-popup-card {
        position: fixed !important;
        top: 30%;
        width: 365px;
        max-width: 90%;
        /* Safety cap */
        left: 50%;
        transform: translateX(-50%);
        /* Center horizontally since width is fixed */

        padding: 1.5rem 1rem;
        height: auto !important;
        min-height: auto !important;
        border-radius: 12px;
        /* Restore all corners */
        margin: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .popup-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    /* Reset Sidebar Spacing and Sticky Behavior on Mobile */
    #sidebar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Global Sidebar Card Styling */
    #sidebar .card {
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
        border-radius: 20px;
    }



    #sidebar .card.sticky-top {
        position: relative !important;
        top: 0 !important;
        margin-top: 1rem !important;
        z-index: 1;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09) !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 20px !important;
    }

    /* Truncate Title in Related Jobs on Mobile */
    .related-job-card h4 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }

    .popup-subtitle {
        margin-bottom: 0.75rem;
    }

    .popup-divider {
        margin: 0.75rem 0;
    }

    .feature-list {
        margin: 0.25rem 0;
        gap: 0.4rem;
    }

    .popup-footer {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        margin-bottom: 0;
        text-align: center;
    }

    .price-container {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .btn-subscribe {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Mobile Background Adjustment */
    .popup-gradient-bg {
        bottom: -270px;
        right: -120px;
        width: 400px;
        height: 100%;
    }

    .job-metadata-section {
        margin-top: 0px !important;
    }

    /* Ensure no bottom margin */


    .price-amount {
        font-size: 1.25rem;
    }

    .popup-grid-overlay {
        display: none !important;
    }

}

/* Global Title Truncation for Latest Jobs (Desktop & Mobile) */
.job-card-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
}

/* Global Sidebar Card Styling to Match loj-sidebar-card */
#sidebar .card,
main.col-lg-8 > .card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    border-radius: 20px;
}
#sidebar .card {
    padding: 15px 4px !important;
}

.job-metadata-section {
    margin-top: 90px;
}

.sidebar-company-logo {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.site-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    margin-top: auto;
}

@media (max-width: 767px) {
    .site-footer .custom-footer-layout {
        text-align: center;
    }
    .site-footer .footer-brand {
        margin: 0 auto;
    }
    .site-footer .footer-nav-list {
        display: inline-block;
        text-align: left;
    }
}

.footer-nav-list {
    margin: 0;
    padding: 0;
}

.footer-nav-list li {
    margin-bottom: 1.25rem;
}

.footer-nav-list a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav-list a:hover {
    color: #0f172a;
}

/* ========================================
   MY ACCOUNT PAGE REDESIGN
   ======================================== */
.my-account-premium-wrapper {
    background-color: transparent;
}

.my-account-sidebar {
    background-color: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    min-width: 220px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 1rem 1.25rem;
    color: #475569;
    font-weight: 500;
    text-decoration: none !important;
    /* Only transition background/color — avoids layout-shift flicker */
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-left-color: #cbd5e1;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #efefef;
    color: #0f172a;
    border-left-color: #3b82f6;
    font-weight: 500; /* same as inactive — prevents text-width reflow on click */
    text-decoration: none !important;
}

.my-account-content-area {
    background-color: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    min-height: 50vh;
    padding: 1.25rem;
}
@media (min-width: 992px) {
    .my-account-content-area {
        padding: 1.5rem 2rem;
    }
}

.woocommerce-MyAccount-content p {
    color: #475569;
    line-height: 1.6;
}

.woocommerce-MyAccount-content h1,
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* My Account Tables */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.woocommerce-MyAccount-content table.shop_table th {
    padding: 1rem;
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* Action Buttons inside My Account */
.woocommerce-MyAccount-content .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0f172a;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
}

.woocommerce-MyAccount-content .button:hover {
    background-color: #334155;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Forms inside My Account */
.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 29px;
}

.woocommerce-MyAccount-content form label {
    display: block;
    margin-bottom: 0 !important;
    color: #475569;
    font-weight: 500;
    font-size: .875rem;
}

.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-content form input[type="text"]:focus,
.woocommerce-MyAccount-content form input[type="email"]:focus,
.woocommerce-MyAccount-content form input[type="password"]:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Address Cards */
.woocommerce-Address-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
    width: 100%;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.woocommerce-Address {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

/* Mobile Adjustments for My Account */
@media (max-width: 768px) {
    .my-account-sidebar {
        margin-bottom: 1.5rem;
    }

    /* Hamburger toggle button — visible only on mobile */
    .wfh-account-nav-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        background: none;
        border: none;
        border-bottom: 1px solid #f3f4f6;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 500;
        color: #374151;
        cursor: pointer;
        text-align: left;
    }

    .wfh-nav-toggle-arrow {
        margin-left: auto;
        transition: transform 0.2s ease;
    }

    .wfh-account-nav-toggle.is-open .wfh-nav-toggle-arrow {
        transform: rotate(180deg);
    }

    /* Nav hidden by default on mobile; shown when toggled */
    .woocommerce-MyAccount-navigation {
        display: none;
    }

    .woocommerce-MyAccount-navigation.is-open {
        display: block;
    }

    /* Restore vertical list styles */
    .woocommerce-MyAccount-navigation ul {
        display: block;
        overflow-x: unset;
        white-space: normal;
        border-bottom: none;
    }

    .woocommerce-MyAccount-navigation ul li {
        border-bottom: 1px solid #f3f4f6;
    }

    .woocommerce-MyAccount-navigation ul li a {
        border-left: 3px solid transparent;
        border-bottom: none;
        padding: 0.85rem 1.25rem;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        border-left-color: #3b82f6;
        background-color: #efefef;
        border-bottom: none;
    }

    .my-account-content-area {
        padding: 1rem;
    }

    .woocommerce-MyAccount-content table.shop_table,
    .woocommerce-MyAccount-content table.shop_table tbody,
    .woocommerce-MyAccount-content table.shop_table tr,
    .woocommerce-MyAccount-content table.shop_table td {
        display: block;
        width: 100%;
    }

    .woocommerce-MyAccount-content table.shop_table thead {
        display: none;
    }

    .woocommerce-MyAccount-content table.shop_table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 1rem;
    }

    .woocommerce-MyAccount-content table.shop_table td {
        border: none;
        padding: 0.5rem 0;
        text-align: right;
        position: relative;
    }

    .woocommerce-MyAccount-content table.shop_table td::before {
        content: attr(data-title);
        position: absolute;
        left: 0;
        font-weight: 600;
        color: #475569;
    }
}

/* On md+ screens the toggle is hidden, nav always visible */
@media (min-width: 768px) {
    .wfh-account-nav-toggle {
        display: none;
    }

    .woocommerce-MyAccount-navigation {
        display: block !important;
    }
}

/* Custom Category Picker (Premium Design) */
.loj-cat-picker-wrap {
    margin-bottom: 1.5rem;
    display: none;
}

.loj-cat-picker {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.2s ease;
}

.loj-cat-picker-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    transition: background 0.2s;
}

.loj-cat-picker-header:hover {
    background: #f9fafb;
}

.loj-cat-picker-header .loj-acc-arrow-wrap {
    margin-left: auto;
}
.loj-cat-picker-header .arrow-icon {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    color: #6b7280;
    stroke-width: 2;
}

.loj-cat-picker.loj-is-open {
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.loj-cat-picker.loj-is-open .loj-cat-picker-header {
    border-radius: 20px 20px 0 0;
    border-bottom: 1.5px solid #e5e7eb;
    border-left: 1px solid #e4e6ea;
    border-right: 1px solid #e4e6ea;
}

.loj-cat-picker.loj-is-open .arrow-icon {
    transform: rotate(180deg);
    color: #2563eb;
}
.loj-cat-picker.loj-is-open .loj-acc-arrow-wrap {
    border-color: #93c5fd;
    box-shadow: 0 1px 3px rgba(37,99,235,0.2), 0 1px 2px rgba(37,99,235,0.1);
}

.loj-cat-picker-list {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.5px;
    right: -1.5px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    overflow: hidden;
}

.loj-cat-picker.loj-is-open .loj-cat-picker-list {
    display: block;
}

.loj-cat-picker-item {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.loj-cat-picker-item:last-child {
    border-bottom: none;
}

.loj-cat-picker-item:hover {
    background: #f9fafb;
}

.loj-cat-picker-item.is-selected {
    background: #f8fafc;
}

/* Radio Icon */
.loj-radio-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.loj-radio-icon.is-active {
    border-color: #2563eb;
    background: #2563eb;
}

.loj-radio-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.loj-radio-icon.is-active .loj-radio-dot {
    opacity: 1;
    transform: scale(1);
}

/* Text Styles */
.loj-cat-info {
    flex-grow: 1;
    min-width: 0;
}

.loj-cat-main-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.2;
}

.loj-cat-sub-summary {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* Sidebar Refinement */
.loj-sidebar-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
}

.loj-sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
}

.loj-check-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loj-check-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 0.9rem !important;
    color: #4b5563 !important;
    cursor: pointer;
    transition: color 0.15s;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
}

.loj-check-label:hover {
    color: #1f2937 !important;
}

.loj-check-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 1.5px solid #d1d5db !important;
    border-radius: 50% !important;
    background-color: #f9fafb !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.loj-check-label input[type="checkbox"]:checked {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.loj-check-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: rotate(45deg);
}

.loj-deep-filter-btn,
.loj-saved-filters-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.loj-deep-filter-btn:hover,
.loj-saved-filters-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.loj-filter-submit-btn {
    width: 100%;
    padding: 12px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.loj-filter-submit-btn:hover {
    opacity: 0.9;
}

.loj-sidebar-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 14px 0;
    opacity: 0.5;
}

/* ============================================================
   TOGGLE SWITCHES & SIDEBAR SEARCH (LOJ)
   ============================================================ */

/* Toggle Switches for Work Mode */
.loj-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.loj-toggle-item:last-child {
    border-bottom: none;
}

.loj-toggle-label {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
}

.loj-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    pointer-events: none;
    /* Let parent trigger it */
}

.loj-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.loj-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 24px;
    pointer-events: auto;
}

.loj-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.loj-check-label input[type="checkbox"]:checked+.loj-slider,
input:checked+.loj-slider {
    background-color: #2563eb;
}

.loj-check-label input[type="checkbox"]:checked+.loj-slider:before,
input:checked+.loj-slider:before {
    transform: translateX(20px);
}

/* Sidebar Search Input */
.loj-sidebar-search-wrap {
    position: relative;
    margin-top: 20px;
}

.loj-sidebar-search-input {
    width: 100%;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 14px 12px 42px;
    font-size: 16px; /* Prevent iOS auto-zoom on focus */
    color: #111827;
    outline: none;
    transition: all 0.2s;
}

.loj-sidebar-search-input:focus {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loj-sidebar-search-input::placeholder {
    color: #9ca3af;
}

.loj-sidebar-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Badge: Saved */

/* Job Card Bookmark Toggle */
.loj-card-bookmark-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
    vertical-align: top;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.loj-card-bookmark-btn:hover {
    background: #e5e7eb;
    color: #6b7280;
}

.loj-card-bookmark-btn.is-bookmarked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 2px 10px !important;
}

.loj-card-bookmark-btn.is-bookmarked svg {
    fill: currentColor;
    stroke: none;
}

.loj-bookmark-text {
    display: inline-block;
}

.loj-card-bookmark-btn:not(.is-bookmarked) .loj-bookmark-text {
    display: none;
}

/* Hide bookmark button and wrapper on list cards when not bookmarked */
.loj-save-lead-btn:not(.bookmarked) { display: none; }
.loj-card-company .save-lead-wrapper:not(:has(.bookmarked)) { display: none; }


.btn-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 999px;
}

.btn-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    background: conic-gradient(from 0deg,
            #c4614a,
            #d4a845,
            #a8d4b8,
            #6b9fd4,
            #7b4fc4,
            #c44a8c,
            #c4614a);
    filter: blur(3px);
    pointer-events: none;
    z-index: -1;
}

@keyframes iridescentRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        filter: blur(2px);
    }

    50% {
        opacity: 0.65;
        filter: blur(10px);
    }

    100% {
        transform: translate(-50%, -50%) scale(11);
        opacity: 0;
        filter: blur(24px);
    }
}

.btn-wrapper:active::before {
    animation: iridescentRipple 0.75s ease-out forwards;
}

.iridescent-btn {
    position: relative;
    padding: 12px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(180deg, #4f7df5 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.iridescent-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 75%);
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.iridescent-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 15%,
            rgba(255, 255, 255, 0.06) 30%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.06) 70%,
            transparent 85%);
    pointer-events: none;
    border-radius: 999px;
    z-index: 2;
    animation: shimmerLoop 2s linear infinite;
}

@keyframes shimmerLoop {
    0% {
        transform: translateX(-160%);
    }

    100% {
        transform: translateX(160%);
    }
}

.iridescent-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(37, 99, 235, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.iridescent-btn:active {
    transform: translateY(1px) scale(0.983);
    box-shadow:
        0 0 0 1px rgba(190, 218, 255, 0.24),
        0 0 0 1.5px rgba(52, 92, 190, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(22, 46, 115, 0.24),
        0 8px 32px rgba(18, 34, 78, 0.28),
        0 2px 8px rgba(42, 78, 185, 0.18);
}


/* ============================================================
   NAVBAR
   ============================================================ */
.wfh-navbar {
    background: #fff;
    border-bottom: 1px solid #f0f1f3;
    position: sticky;
    top: 0;
    z-index: 10000 !important;
    min-height: 56px;
    padding-top: env(safe-area-inset-top);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.wfh-navbar-inner,
.loj-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    gap: 24px;
}

/* Logo */
.wfh-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    gap: 10px;
    outline: none;
}
.wfh-brand:focus,
.wfh-brand:active {
    outline: none;
    box-shadow: none;
}
.wfh-brand img {
    height: 32px;
    width: auto;
    display: block;
}
.wfh-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Nav links */
.wfh-nav-links,
.loj-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    margin-left: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 32px;
}
.wfh-nav-links::-webkit-scrollbar,
.loj-nav-links::-webkit-scrollbar {
    display: none;
}

.wfh-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.wfh-nav-link:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}
.wfh-nav-link.active {
    color: #2563eb;
    font-weight: 700;
    background: transparent;
}
.wfh-nav-link.active:hover {
    background: #eff6ff;
}
.wfh-nav-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #9ca3af;
}

/* Right side */
.wfh-nav-right,
.loj-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wfh-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.15s;
    position: relative;
}
.wfh-bell-btn:hover {
    background: #f3f4f6;
}
.wfh-bell-btn svg {
    width: 22px;
    height: 22px;
}
.wfh-bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Avatar */
.loj-avatar,
.wfh-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.wfh-avatar {
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.wfh-avatar:hover {
    border-color: #2563eb;
}
.wfh-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wfh-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wfh-avatar-placeholder svg {
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

/* Mobile hamburger */
.wfh-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: #374151;
}
.wfh-hamburger:hover {
    background: #f3f4f6;
}

/* Mobile nav collapse */
.wfh-mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #f0f1f3;
    padding: 8px 16px 24px;
    gap: 2px;
}
.wfh-mobile-nav.open {
    display: flex;
}
.wfh-mobile-nav .wfh-nav-link {
    width: 100%;
    padding: 10px 14px;
}

@media (max-width: 991px) {
    .wfh-navbar-inner,
    .loj-navbar-inner {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        height: 56px;
        align-items: center;
    }
    .wfh-nav-links,
    .loj-nav-links {
        display: none !important;
    }
    .wfh-nav-right,
    .loj-nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .wfh-nav-links {
        display: none;
    }
    .wfh-hamburger {
        display: flex;
    }
    .wfh-navbar-inner {
        padding: 0 16px;
    }
}

.loj-check-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 50% !important;
    background-color: #f9fafb !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* ============================================================
   WOOCOMMERCE LAYOUT (moved from header.php inline style)
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
    list-style: none;
    padding: 0 !important;
}
.woocommerce-account .woocommerce {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}
.woocommerce {
    margin: auto !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}
.woocommerce-page .entry-content,
body.woocommerce .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
body.woocommerce-account .entry-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
body.woocommerce-order-received .entry-content,
body.woocommerce-checkout .entry-content {
    max-width: 1060px;
}
.woocommerce-order .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}
.woocommerce-order .woocommerce-table--order-details th,
.woocommerce-order .woocommerce-table--order-details td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.woocommerce-thankyou-order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    list-style: none;
    padding: 20px 0;
    margin: 0 0 24px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.woocommerce-thankyou-order-details li {
    font-size: 0.9rem;
    color: #6b7280;
}
.woocommerce-thankyou-order-details li strong {
    display: block;
    font-size: 1rem;
    color: #111827;
    margin-top: 2px;
}
body.woocommerce .entry-header h1,
body.woocommerce-checkout .entry-header h1,
body.woocommerce-order-received .entry-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.woocommerce-notice--success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #15803d;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 0.95rem;
}
.woocommerce-order-details,
.woocommerce-customer-details {
    margin-top: 32px;
}
.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
}
.woocommerce-column__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}
@media (max-width: 640px) {
    body.woocommerce-order-received .entry-content,
    body.woocommerce-checkout .entry-content {
        padding: 24px 16px 48px;
    }
    .woocommerce-thankyou-order-details {
        gap: 12px;
    }
}


.btn-text {
    position: relative;
    z-index: 3;
}

.wfh-login-link {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
    margin-right: 16px;
    /* Increased spacing */
}

.wfh-login-link:hover {
    color: #111827;
    text-decoration: none;
}

/* Animation for Pulse Effect */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 142, 251, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(110, 142, 251, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(110, 142, 251, 0);
    }
}


/* Hover Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}


.loj-hero-badge-icon {
    position: relative;
    animation: pulse 1.75s infinite;
}
.loj-hero-badge-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: currentColor;
    animation: lojPing 1.0s ease-out 0.35s infinite;
}
@keyframes lojPing {
    0%   { transform: scale(1);    opacity: 0.14; }
    100% { transform: scale(4.48); opacity: 0; }
}

/* Sidebar Contact Labels & Pills */
.sidebar-company-logo {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #fff;
}

.text-secondary.small {
    color: #94a3b8 !important;
    /* Modern Slate-400 grey */
    font-weight: 100;
}

.contact-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 0;
    /* Allow truncation */
}

.contact-pill:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-pill.bg-white {
    background: #fff !important;
}

/* Highlighted Email Pill (Email_06) */
.contact-pill[style*="ebf5ff"] {
    background-color: #f0f9ff !important;
    /* Sky-50 */
    border-color: #bae6fd !important;
    /* Sky-200 */
}

.contact-pill[style*="ebf5ff"]:hover {
    background-color: #e0f2fe !important;
}

.contact-pill .rounded-circle {
    transition: transform 0.2s ease;
}

.contact-pill:hover .rounded-circle {
    transform: scale(1.05);
}

.contact-pill span {
    color: #334155;
    /* Slate-700 */
    font-weight: 500;
}

/* ============================================================
   PROFILE DROPDOWN MENU
   ============================================================ */
/* Bookmark icon in header nav */
.wfh-header-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #6b7280;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    margin-right: 8px;
    flex-shrink: 0;
}
.wfh-header-admin-link:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}
.wfh-header-bookmarks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #6b7280;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    margin-right: 8px;
    flex-shrink: 0;
}
.wfh-header-bookmarks:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

.wfh-profile-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

/* Stacked up/down arrows indicator */
.wfh-profile-chevron {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.15s ease;
}
.wfh-profile-trigger:hover .wfh-profile-chevron,
.wfh-profile-trigger.active .wfh-profile-chevron {
    color: #4b5563;
}

/* Blue circle outline around photo */
.wfh-avatar-wrapper {
    position: relative;
    padding: 2px;
    border: 1.5px solid #2563eb;
    /* Persistent blue circle from screenshot */
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wfh-profile-trigger:hover .wfh-avatar-wrapper {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Dropdown layout */
.wfh-profile-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    background: #ffffff;
    min-width: 340px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    /* Changed from center to prevent vertical overlap on small heights */
    gap: 32px;
    z-index: 10010 !important;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wfh-profile-trigger.active .wfh-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Left side: Profile Info */
.wfh-dropdown-profile-info {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wfh-dropdown-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.wfh-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wfh-dropdown-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #111827;
    line-height: 1.2;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right side: Navigation Links */
.wfh-dropdown-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* Slight gap between links */
}


.wfh-dropdown-link {
    display: block;
    padding: 8px 0;
    /* Increased padding for better separation */

    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.wfh-dropdown-link:hover {
    color: #2563eb;
}

.wfh-dropdown-link--upgrade {
    color: #2563eb;
    font-weight: 600;
}
.wfh-dropdown-link--upgrade:hover { color: #1d4ed8; }

/* ── Upgrade to Pro banner (orders page) ───────────────────────── */
.wfh-upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.wfh-upgrade-banner-text {
    font-size: 0.88rem;
    color: #1e3a5f;
    margin: 0;
}
.wfh-upgrade-banner-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.wfh-upgrade-banner-btn:hover { background: #1d4ed8; color: #fff !important; }

/* ── Tools accordion ────────────────────────────────────────────── */
.loj-tools-search-wrap { padding: 4px 0 8px; }
.loj-tools-hint {
    font-size: 0.73rem;
    color: #9ca3af;
    margin: 0 0 8px;
    line-height: 1.4;
}
.loj-tools-input-wrap { position: relative; }
.loj-tools-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.loj-tools-input:focus { border-color: #93c5fd; background: #fff; }
.loj-tools-dropdown {
    position: absolute;
    top: calc(100% - 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    z-index: 200;
    list-style: none;
    margin: 4px 0 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
}
.loj-tools-dropdown-item {
    padding: 9px 14px;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s;
}
.loj-tools-dropdown-item:hover,
.loj-tools-dropdown-item.is-focused { background: #eff6ff; color: #2563eb; }
.loj-tools-dropdown-sep {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
    pointer-events: none;
}
.loj-tools-dropdown-suggest {
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #2563eb;
    cursor: pointer;
    transition: background 0.1s;
}
.loj-tools-dropdown-suggest:hover,
.loj-tools-dropdown-suggest.is-focused { background: #eff6ff; }
.loj-tools-msg {
    font-size: 0.78rem;
    min-height: 1.4em;
    margin: 8px 0 0;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.25s;
}
.loj-tools-msg.is-visible { opacity: 1; }
.loj-tools-msg--ok   { color: #16a34a; }
.loj-tools-msg--err  { color: #dc2626; }
.loj-tools-msg--info { color: #6b7280; }
.loj-tools-subscribe-prompt {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}
.loj-tools-subscribe-prompt p {
    font-size: 0.8rem;
    color: #1e40af;
    margin: 0 0 10px;
    font-weight: 500;
    line-height: 1.4;
}
.loj-tools-subscribe-prompt a {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 6px 14px;
    transition: background 0.12s, border-color 0.12s;
}
.loj-tools-subscribe-prompt a:hover { background: #dbeafe; border-color: #93c5fd; }

/* ── Tools filter — selected chips ────────────────────────────── */
.loj-tools-chips-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 0;
}
.loj-tools-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.loj-tools-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 6px 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
    max-width: 100%;
    min-width: 0;
}
.loj-tools-chip-name {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}
.loj-tools-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.12s;
    flex-shrink: 0;
}
.loj-tools-chip-x:hover,
.loj-tools-chip-x:focus { background: rgba(255, 255, 255, 0.38); outline: none; }
.loj-tools-clear-all {
    font-size: 0.72rem;
    color: #9ca3af;
    text-decoration: none;
    padding: 5px 0;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: center;
}
.loj-tools-clear-all:hover { color: #2563eb; text-decoration: underline; }

/* Dropdown item — already-selected state */
.loj-tools-dropdown-item--selected {
    color: #9ca3af;
    cursor: default;
    background: #f9fafb;
}
.loj-tools-dropdown-item--selected:hover {
    background: #f9fafb;
    color: #9ca3af;
}
.loj-tools-dropdown-item--selected::after {
    content: " \2713";
    color: #2563eb;
    font-weight: 600;
    margin-left: 6px;
}

/* Chip enter/exit animation */
@keyframes lojChipEnter {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes lojChipExit {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.85); }
}
.loj-tools-chip--enter { animation: lojChipEnter 0.12s ease-out both; }
.loj-tools-chip--exit  { animation: lojChipExit  0.12s ease-in  both; }


.wfh-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
    width: 80%;
    /* Partial width border like screenshot */
}

.wfh-dropdown-signout {
    color: #4b5563;
}

.wfh-dropdown-signout:hover {
    color: #ef4444;
}

/* Profile backdrop — mobile only */
#wfh-profile-backdrop {
    display: none;
}

@media (max-width: 576px) {
    #wfh-profile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    #wfh-profile-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .wfh-profile-dropdown {
        position: fixed;
        top: 56px;
        /* Matches navbar height (admin bar removed) */
        left: 0;
        right: 0;
        width: 100% !important;
        min-width: 0;
        padding: 30px 20px;
        gap: 30px;
        border-radius: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-left: none;
        border-right: none;
        align-items: center;
        /* Center on mobile layout */
    }


    .wfh-dropdown-profile-info {
        flex: 0 0 100px;
    }

    .wfh-dropdown-avatar {
        width: 56px;
        height: 56px;
    }

    .wfh-dropdown-name {
        font-size: 1rem;
        max-width: 100px;
    }

    .wfh-dropdown-link {
        font-size: 1rem;
    }

    /* scale down header avatar trigger on mobile */
    .wfh-avatar-wrapper {
        padding: 2px;
    }
}

/* Remove blue focus outlines — outline:none on all, box-shadow:none only on interactive elements */
*:focus,
*:active {
    outline: none !important;
}

button:focus,
button:active,
a:focus,
a:active,
input:focus,
input:active,
textarea:focus,
textarea:active,
select:focus,
select:active,
.btn:focus,
.btn:active,
.form-control:focus,
.form-control:active,
.page-numbers:focus,
.page-numbers:active {
    outline: none !important;
    box-shadow: none !important;
}


/* Override Bootstrap mb-5 default (3rem → 2rem) */
.mb-5 {
    margin-bottom: 2rem !important;
}

.hero-content-container {
    padding-top: 52px;
    padding-bottom: 20px;
}

/* Sidebar grid overrides */
#sidebar .col-3 {
    flex: 0 0 auto;
    width: 30%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sidebar .col-9 {
    flex: 0 0 auto;
    width: 70%;
}

#sidebar .px-3 {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    align-self: flex-start;
}

.footer-brand img {
    height: 36px !important;
    width: auto;
    display: block;
}

.footer-centered-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.footer-centered-layout .footer-brand {
    align-self: center;
}
.footer-nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
}
.footer-nav-row .footer-nav-list {
    display: contents;
}
.footer-nav-row .footer-nav-list li {
    margin-bottom: 0;
}


.job-description a {
    font-weight: 700;
}

/* Metadata section badges — white background */
.job-metadata-section .badge.bg-light {
    background-color: #ffffff !important;
}

/* Metadata section badge links — slightly larger than global badge default */
.job-metadata-section .badge {
    font-size: 0.9rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07); /* fallback */
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: background-color 0.15s, border-color 0.15s;
}
.job-metadata-section a.badge:hover {
    background-color: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

/* Location / metadata flex rows — truncate long text */
.job-metadata-section .d-flex.align-items-center.gap-1 {
    overflow: hidden;
}

.job-metadata-section .d-flex.align-items-center.gap-1 strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* ============================================================
   SAVED LISTS / BOOKMARKS
   ============================================================ */

/* Remote badge — defined here so it works on all pages (also inline in list-of-jobs.php) */
.loj-badge-remote {
    display: none;
}

/* ── List sections ──────────────────────────────────────────── */
.wfh-list-section {
    margin-bottom: 64px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f1f3;
}
.wfh-list-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.wfh-list-hidden {
    display: none !important;
}

.wfh-list-section .wfh-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.wfh-list-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.025em;
    margin: 0;
    max-width: 100%;
    min-width: 0;
}

.wfh-list-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wfh-list-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: rgba(0,0,0,0.055);
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0;
}
/* Hint that title is clickable in manage mode */
.wfh-manage-mode .wfh-list-title-text {
    cursor: text;
}
/* Actively editing — no browser outline, subtle underline */
.wfh-list-title-text[contenteditable="true"] {
    outline: none;
    overflow: visible;
    white-space: normal;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 1px;
}

/* Sort by date button */
.wfh-sort-date-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 5px;
    border-radius: 6px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.wfh-sort-date-btn:hover {
    background: #f3f4f6;
    color: #374151;
}
.wfh-sort-date-btn.is-sorted {
    color: #2563eb;
}
.wfh-sort-date-btn.is-sorted:hover {
    background: #eff6ff;
    color: #2351c9;
}
.wfh-sort-date-btn svg {
    transition: transform 0.2s ease;
}
.wfh-sort-date-btn.is-desc svg {
    transform: scaleY(-1);
}

/* Manage icon button inline with title */
.wfh-manage-list-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 5px;
    border-radius: 6px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.wfh-manage-list-btn:hover {
    background: #f3f4f6;
    color: #374151;
}
.wfh-list-section.wfh-manage-mode .wfh-manage-list-btn {
    color: #ef4444;
}
.wfh-list-section.wfh-manage-mode .wfh-manage-list-btn:hover {
    background: #fff1f2;
    color: #dc2626;
}

/* List-header trash icon */
.wfh-list-delete-wrap {
    position: relative;
}

.wfh-list-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 7px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wfh-list-delete-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Delete-list popover — card style */
.wfh-delete-popover {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
    min-width: 200px;
    z-index: 300;
    gap: 8px;
}

.wfh-delete-popover.is-open {
    display: flex;
}

.wfh-del-pop-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
}

.wfh-del-pop-header svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.wfh-del-pop-name {
    font-size: 0.78rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.wfh-del-pop-btns {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.wfh-del-pop-yes {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.wfh-del-pop-yes:hover {
    background: #dc2626;
}

.wfh-del-pop-no {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}

.wfh-del-pop-no:hover {
    background: #e5e7eb;
}

/* ── Job cards grid ─────────────────────────────────────────── */
.wfh-bookmarks-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 60px;
}

/* 3-column card: [info] [badges] [trash] */
.wfh-bookmark-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    min-height: 60px;
    border: 1px solid #e9eaec;
    border-radius: 12px;
    padding: 14px 18px;
    background: #fff;
    transition: box-shadow 0.18s, transform 0.18s;
}

.wfh-bookmark-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-1px);
}

/* Col 1: company + title */
.wfh-bk-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.wfh-bk-company {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.wfh-bookmark-card a.wfh-bk-title {
    font-size: 1.0rem !important;
    font-weight: 700 !important;
    color: #111827;
    text-decoration: none;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block;
    line-height: 1.3;
    margin: 0;
}

.wfh-bookmark-card a.wfh-bk-title:hover {
    color: #111827;
}

/* Col 2: time + remote + location badges */
.wfh-bk-meta {
    display: flex;
    align-items: center;
    gap: 4px 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wfh-bk-meta .loj-card-time {
    width: 100%;
    text-align: right;
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    margin-bottom: 0;
}

.wfh-bk-meta .loj-location {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
}

.wfh-bk-meta .loj-location svg {
    color: #6b7280;
}

/* Manage list toggle — now an icon button inside the list title (see .wfh-list-title above) */

/* Col 3: trash icon + inline confirm */
/* Hidden by default; revealed when parent section is in manage mode */
.wfh-bk-actions {
    display: none;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
}
.wfh-list-section.wfh-manage-mode .wfh-bk-actions {
    display: flex;
}

.wfh-bk-trash {
    background: #fef2f2;
    border: none;
    cursor: pointer;
    color: #ef4444;
    padding: 4px;
    border-radius: 6px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.wfh-bk-trash:hover {
    color: #dc2626;
    background: #fee2e2;
}

/* Inline card remove confirmation */
.wfh-card-confirm {
    display: none;
    align-items: center;
    gap: 6px;
}

.wfh-card-confirm.is-open {
    display: flex;
}

.wfh-card-confirm > span {
    font-size: 0.75rem;
    color: #374151;
    white-space: nowrap;
}

.wfh-cc-yes {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.wfh-cc-yes:hover {
    background: #dc2626;
}

.wfh-cc-no {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.72rem;
    cursor: pointer;
}

.wfh-cc-no:hover {
    background: #e5e7eb;
}

/* Page subtitle */
.wfh-bookmarks-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 28px;
    margin-top: 4px;
}

/* ── Empty state (permanent drop zone) ─────────────────────── */
.wfh-bookmarks-empty {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    outline: 2px dashed #c7d2fe;
    outline-offset: 4px;
    border-radius: 8px;
    pointer-events: none;
}

/* Blue indicator line shown when a card is dragged over an empty list */
.wfh-drag-over-empty .wfh-bookmarks-empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.wfh-bk-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    padding: 20px;
    position: sticky;
    top: 76px;
    align-self: flex-start;
    transition: box-shadow 0.6s ease, transform 0.6s ease;
}
.wfh-bk-sidebar.is-stuck {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transform: translateY(5px);
}

.wfh-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.wfh-sidebar-intro {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wfh-sidebar-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

/* Search box (visible only when >4 lists) */
.wfh-list-search-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    margin-bottom: 8px;
    background: #f9fafb;
    box-sizing: border-box;
    color: #111827;
}

.wfh-list-search-input:focus {
    border-color: #2563eb;
    background: #fff;
}

.wfh-sidebar-lists {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

/* Search box shown when >4 lists; scroll removed — list grows naturally */
.wfh-sidebar-lists.is-scrollable {
    /* max-height removed — no longer scrolls */
}

.wfh-sidebar-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0px;
    border-radius: 8px;
    gap: 6px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* Confine touch-action: none to the drag handle only so the list stays scrollable */

.wfh-sidebar-list-item:hover {
    background: #f9fafb;
}

/* Drag handle */
.wfh-drag-handle {
    cursor: grab;
    color: #374151;
    padding: 4px;
    flex-shrink: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    touch-action: none;
}

.wfh-drag-handle:hover {
    background: #e5e7eb;
    color: #111827;
}

.wfh-drag-handle:active {
    cursor: grabbing;
}

.wfh-sidebar-list-item.is-dragging {
    opacity: 0.35;
    background: #f3f4f6;
}

/* Drop indicator — straight line via pseudo-element (no border-radius curve) */
.wfh-sidebar-list-item.drag-over-before::before,
.wfh-sidebar-list-item.drag-over-after::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 0;
    box-shadow: 0 0 6px rgba(55, 99, 228, 0.45);
}
.wfh-sidebar-list-item.drag-over-before::before { top: -1px; }
.wfh-sidebar-list-item.drag-over-after::after  { bottom: -1px; }

/* Drop settle animation */
@keyframes wfhDropSettle {
    0%   { transform: scale(1.03); opacity: 0.7; }
    100% { transform: scale(1);    opacity: 1; }
}
.wfh-sidebar-list-item.just-dropped {
    animation: wfhDropSettle 0.3s ease forwards;
}

.wfh-sidebar-list-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wfh-sidebar-list-item.is-hidden .wfh-sidebar-list-name {
    color: #9ca3af;
    text-decoration: line-through;
}

/* Actions group: edit + eye icons */
.wfh-sidebar-item-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.wfh-sidebar-edit {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 5px 7px;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 4px;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
}

.wfh-sidebar-edit:hover {
    color: #374151;
}

.wfh-sidebar-eye {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 5px 7px;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 4px;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
}

/* Edit name popover */
.wfh-edit-popover {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 10px 12px;
    min-width: 240px;
    z-index: 300;
    align-items: center;
    gap: 6px;
}

.wfh-edit-popover.is-open {
    display: flex;
}

.wfh-edit-list-input {
    flex: 1;
    padding: 5px 8px;
    font-size: 16px; /* 16px minimum prevents iOS auto-zoom on focus */
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    min-width: 0;
}

.wfh-edit-list-input:focus {
    border-color: #2563eb;
}

.wfh-edit-pop-save {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.wfh-edit-pop-save:hover {
    background: #2251c9;
}

.wfh-edit-pop-cancel {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}

.wfh-edit-pop-cancel:hover {
    background: #e5e7eb;
}

.wfh-sidebar-eye:hover {
    color: #374151;
}

.wfh-sidebar-create {
    border-top: 1px solid #d1d5db;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wfh-sidebar-create-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.wfh-create-list-input {
    width: 100%;
    padding: 7px 10px;
    font-size: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}

.wfh-create-list-input:focus {
    border-color: #2563eb;
}

/* Create toggle icon button */
.wfh-create-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 0;
}
.wfh-create-toggle-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}
.wfh-create-toggle-btn {
    align-self: flex-start;
}
.wfh-create-toggle-btn:hover { background: #2b52c8; }

/* Pulse animation when no lists exist */
.wfh-newlist-pulse {
    animation: pulse 1.5s infinite;
}

@media (max-width: 768px) {
    .wfh-create-toggle-btn {
        padding: 9px 15px 9px 11px;
    }
}

/* Default-list hint empty state */
.wfh-bookmarks-empty--hint {
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px;
    min-height: 110px;
    text-align: center;
    pointer-events: auto;
}
.wfh-bookmarks-empty--hint svg { opacity: .45; }
.wfh-bookmarks-empty-text {
    color: #6b7280;
    font-size: .82rem;
    margin: 0;
    line-height: 1.5;
}
.wfh-bookmarks-browse-cta {
    font-size: .82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: 2px;
}
.wfh-bookmarks-browse-cta:hover { text-decoration: underline; }

#wfh-bookmarks-empty-state.wfh-bookmarks-empty p {
    margin: 0 !important;
}

/* Collapsible create form */
.wfh-create-form {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    animation: wfhSlideDown 0.18s ease;
}
.wfh-create-form.is-open { display: flex; }

@keyframes wfhSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wfh-create-list-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 4px 0 0;
}

.wfh-create-list-error {
    display: block;
    font-size: 0.75rem;
    color: #ef4444 !important;
    min-height: 1.2em;
    opacity: 1;
    transition: opacity 1.8s ease;
}

.wfh-create-list-error.is-fading {
    opacity: 0;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .wfh-bk-sidebar {
        display: none; /* hidden by default; FAB reveals it */
    }
    .wfh-bk-sidebar.is-mobile-open {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 88vw;            /* drawer: exposes ~12% on left for backdrop tap */
        height: 100vh;          /* fallback */
        height: 100dvh;         /* dynamic viewport height — fills screen incl. browser chrome */
        z-index: 10020;         /* above navbar (10000) */
        border-radius: 0;
        border: none;
        border-left: 1px solid #e9eaec;
        padding: 72px 20px 40px;
        overflow-y: auto;
        animation: wfhSidebarSlideIn 0.25s ease;
    }
    @keyframes wfhSidebarSlideIn {
        from { transform: translateX(100%); }
        to   { transform: translateX(0); }
    }

    /* Prevent body scroll when sidebar is open */
    body.wfh-sidebar-open {
        overflow: hidden;
    }

    /* Backdrop: 40% dark overlay — sits above navbar, tappable on left strip */
    .wfh-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.40);
        z-index: 10019;         /* just below sidebar, above navbar */
    }
    .wfh-sidebar-backdrop.is-visible {
        display: block;
        animation: wfhFadeIn 0.2s ease;
    }
    @keyframes wfhFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* Sidebar list: show 6 items, scroll the rest */
    .wfh-bk-sidebar.is-mobile-open .wfh-sidebar-lists {
        max-height: 216px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* FAB */
    .wfh-sidebar-fab {
        display: flex;
        position: fixed;
        bottom: 28px;
        right: 20px;
        z-index: 1048;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #2563eb;
        color: #fff;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(55, 99, 228, 0.45);
        transition: background 0.15s, transform 0.15s;
    }
    .wfh-sidebar-fab:hover,
    .wfh-sidebar-fab:focus-visible { background: #2b52c8; transform: scale(1.08); }
    .wfh-sidebar-fab:active { transform: scale(0.96); }

    /* X close button inside sidebar (mobile only) */
    .wfh-sidebar-close-btn {
        display: flex;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #2563eb;
        color: #fff;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
        flex-shrink: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .wfh-sidebar-close-btn:hover { background: #2b52c8; }
}

/* Desktop: hide FAB, backdrop, and close button */
@media (min-width: 992px) {
    .wfh-sidebar-fab,
    .wfh-sidebar-backdrop,
    .wfh-sidebar-close-btn {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .wfh-bookmark-card {
        flex-wrap: wrap;
        gap: 10px;
    }

    .wfh-bk-meta {
        flex-shrink: 0;
    }
}
/* ── Card drag & duplicate (manage mode) ────────────────────────── */
.wfh-card-drag-handle {
    display: none;
    cursor: grab;
    color: #374151;
    padding: 4px;
    flex-shrink: 0;
    line-height: 0;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    background: #f3f4f6;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.wfh-manage-mode .wfh-card-drag-handle {
    display: inline-flex;
    align-items: center;
}
.wfh-card-drag-handle:hover { background: #e5e7eb; color: #111827; }
.wfh-card-drag-handle:active { cursor: grabbing; }

.wfh-card-dup-btn {
    display: none;
    background: #f0f4ff;
    border: none;
    cursor: pointer;
    color: #2563eb;
    padding: 4px;
    border-radius: 6px;
    line-height: 0;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.wfh-manage-mode .wfh-card-dup-btn {
    display: inline-flex;
}
.wfh-card-dup-btn:hover {
    background: #dbeafe;
    color: #2351c9;
}

/* Disable card link clicks and hover lift in manage mode */
.wfh-manage-mode .wfh-bookmark-card a.wfh-bk-title {
    pointer-events: none;
}
.wfh-manage-mode .wfh-bookmark-card:hover {
    box-shadow: none;
    transform: none;
}
.wfh-manage-mode .wfh-bookmark-card {
    cursor: default;
}

/* SortableJS fallback drag clone — must be above mobile sidebar (10020) */
.sortable-fallback {
    z-index: 10030 !important;
}

/* SortableJS card ghost + chosen */
/* Ghost = 3px blue insertion line at the drop point */
.wfh-card-ghost {
    height: 3px !important;
    min-height: 0 !important;
    max-height: 3px !important;
    background: #2563eb !important;
    border: none !important;
    border-radius: 2px !important;
    opacity: 1 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 2px 0 !important;
    box-shadow: none !important;
}
.wfh-card-ghost > * { display: none !important; }
.wfh-card-chosen { cursor: grabbing !important; }
/* Original card stays faded in place while dragging */
.wfh-card-dragging { opacity: 0.35 !important; }

/* Sidebar drop target during card drag */
.wfh-sidebar-drop-target {
    background: #e0e7ff !important;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Dimmed list/sidebar item — can't accept the card */
.wfh-list-dimmed {
    opacity: 0.3 !important;
    pointer-events: none !important;
    transition: opacity 0.15s;
}

/* Grid drop zone in dup mode */
.wfh-dup-droppable {
    outline: 2px dashed #c7d2fe;
    outline-offset: 4px;
    border-radius: 8px;
}
/* When an empty grid is a dup drop target, suppress the inner outline
   to avoid a double border — the grid-level outline is enough */
.wfh-dup-droppable .wfh-bookmarks-empty {
    outline: none;
}
/* Drop indicator line between cards */
.wfh-dup-indicator {
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
    margin: -4px 0;
    pointer-events: none;
}
/* Cursor during dup mode */
body.wfh-dup-mode { cursor: copy !important; }
body.wfh-dup-mode * { cursor: copy !important; }
body.wfh-dup-mode .wfh-bookmark-card { cursor: copy !important; }

/* Ghost card following cursor in dup mode */
#wfh-dup-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 10030;
    opacity: 0.85;
    transform: scale(0.5);
    transform-origin: top center;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    border-radius: 12px;
    background: #fff;
    transition: none;
}

/* Disable all links and non-dup buttons while in dup mode */
body.wfh-dup-mode a { pointer-events: none !important; }
body.wfh-dup-mode button:not(.wfh-card-dup-btn) { pointer-events: none !important; }

/* Plus icon drop target for empty lists (dup mode) */
.wfh-dup-empty-target {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    pointer-events: none;
}



/* Remove min-height on mobile so short pages (login, lost password) don't show huge blank space */
@media (max-width: 768px) {
    .generic-page-container {
        min-height: 0 !important;
    }
}

/* Login / lost-password input border */
.woocommerce-form .form-control,
.woocommerce-ResetPassword .woocommerce-Input {
    border: 1.5px solid #d1d5db !important;
    background-color: #ffffff !important;
    font-size: 16px !important; /* Prevent iOS auto-zoom on focus */
}
.woocommerce-form .form-control:focus,
.woocommerce-ResetPassword .woocommerce-Input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Edit account form — input field styling */
.woocommerce-EditAccountForm .woocommerce-Input,
.woocommerce-EditAccountForm textarea.woocommerce-Input,
.woocommerce-EditAccountForm select.woocommerce-Input,
.woocommerce-EditAccountForm .woocommerce-Input--text,
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm textarea.input-text {
    background-color: #f1f1f1 !important;
    border-color: #d4d4d4 !important;
}
/* SelectWoo / Select2 dropdowns — match input styling */
.woocommerce-EditAccountForm .select2-container--default .select2-selection--single,
.woocommerce-EditAccountForm .select2-container--default .select2-selection--multiple {
    background-color: #f1f1f1 !important;
    border-color: #d4d4d4 !important;
}
.woocommerce-EditAccountForm .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-EditAccountForm .select2-container--default.select2-container--focus .select2-selection--multiple,
.woocommerce-EditAccountForm .select2-container--default.select2-container--open .select2-selection--single {
    background-color: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
}
/* Clean chevron arrow — hide SelectWoo's default border-triangle <b> */
.woocommerce-EditAccountForm .select2-container--default .select2-selection--single .select2-selection__arrow b,
.woocommerce-EditAccountForm .select2-container--default .select2-selection--multiple .select2-selection__arrow b {
    display: none !important;
}
.woocommerce-EditAccountForm .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-EditAccountForm .select2-container--default .select2-selection--multiple .select2-selection__arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
}
.woocommerce-EditAccountForm .select2-container--default .select2-selection--single .select2-selection__arrow::after,
.woocommerce-EditAccountForm .select2-container--default .select2-selection--multiple .select2-selection__arrow::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid #6b7280;
    border-bottom: 1.5px solid #6b7280;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease, border-color .2s ease;
}
.woocommerce-EditAccountForm .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after,
.woocommerce-EditAccountForm .select2-container--default.select2-container--open .select2-selection--multiple .select2-selection__arrow::after {
    transform: rotate(225deg) translateY(-2px);
    border-color: #3b82f6;
}
/* Style the clear (×) button */
.woocommerce-EditAccountForm .select2-container--default .select2-selection__clear {
    font-size: 1rem !important;
    color: #9ca3af !important;
    line-height: 1 !important;
    margin-right: 4px !important;
}
.woocommerce-EditAccountForm .select2-container--default .select2-selection__clear:hover {
    color: #6b7280 !important;
}
.woocommerce-EditAccountForm .woocommerce-Input:focus,
.woocommerce-EditAccountForm textarea.woocommerce-Input:focus,
.woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-EditAccountForm textarea.input-text:focus {
    background-color: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
}

/* ── Bookmark icon tooltips ───────────────────────────────────── */
.wfh-tip-host {
    position: relative;
}
.wfh-tooltip {
    --wfh-tip-bg: rgba(15, 20, 30, 0.94);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--wfh-tip-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: rgba(255,255,255,0.93);
    border-radius: 9px;
    font-size: 12.5px;
    line-height: 1.35;
    padding: 8px 13px;
    font-weight: 500;
    letter-spacing: 0.012em;
    white-space: nowrap;
    box-shadow:
        0 0 0 0.5px rgba(255,255,255,0.10) inset,
        0 2px 6px rgba(0,0,0,0.10),
        0 8px 24px rgba(0,0,0,0.22),
        0 20px 40px rgba(0,0,0,0.12);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s cubic-bezier(0.4,0,0.2,1),
                transform .2s cubic-bezier(0.4,0,0.2,1);
    z-index: 300;
}
.wfh-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(15, 20, 30, 0.94);
}
.wfh-tip-host:hover .wfh-tooltip,
.wfh-tip-host.wfh-tip-show .wfh-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Remove default ul margin on account navigation */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
}

/* ============================================================
   Single Post — Hero classes (extracted from inline <style>)
   ============================================================ */
.pt-3 { padding-top: 0.7rem !important; }

.loj-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 24px;
    animation: wfhBadgeGlow 1.56s linear infinite;
}
@keyframes wfhBadgeGlow {
    0%   { box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 18px rgba(220, 228, 240, 0.70); }
    40%  { box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 22px rgba( 96, 165, 250, 0.58); }
    100% { box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 18px rgba(220, 228, 240, 0.70); }
}



/* ── Hero grid/tile animation ── */
.loj-hero-anim {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
}
.loj-hero .hero-content-container {
    position: relative;
    z-index: 1;
}
@property --loj-grid-alpha {
    syntax: '<number>';
    inherits: false;
    initial-value: 0.14;
}
@keyframes lojGridAlpha {
    0%, 100% { --loj-grid-alpha: 0.14; }
    50%      { --loj-grid-alpha: 0.056; }
}
.loj-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 116, 139, var(--loj-grid-alpha)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, var(--loj-grid-alpha)) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0;
    animation: lojGridIn 0.8s ease 0.08s forwards,
               lojGridAlpha 8s ease-in-out 1s infinite;
}
@keyframes lojGridIn { to { opacity: 1; } }
.loj-htile {
    position: absolute;
    width: 64px;
    height: 64px;
    background: rgba(100, 116, 139, 0.10);
    opacity: 0;
    animation: lojTilePulse 6.4s infinite;
}
.loj-htile--dark     { background: rgba(85,  99, 118, 0.12); }
.loj-htile--offwhite { background: rgba(255, 255, 255, 0.72); }
.loj-htile--white    { background: rgba(255, 255, 255, 0.88); }
/* Pixel-aligned to 64px grid — always snaps to grid lines */
.loj-htile-1  { left:    0px; top:  64px; animation-delay: -0.5s; }
.loj-htile-2  { left:   64px; top: 192px; animation-delay: -2.0s; }
.loj-htile-3  { left:  192px; top:   0px; animation-delay: -3.5s; }
.loj-htile-4  { left:  256px; top: 128px; animation-delay: -1.0s; }
.loj-htile-5  { left:  384px; top:  64px; animation-delay: -4.5s; }
.loj-htile-6  { left:  512px; top: 192px; animation-delay: -6.0s; }
.loj-htile-7  { left:  640px; top:   0px; animation-delay: -7.0s; }
.loj-htile-8  { left:  832px; top: 128px; animation-delay: -2.5s; }
.loj-htile-9  { left: 1024px; top:   0px; animation-delay: -5.0s; }
.loj-htile-10 { left: 1216px; top: 192px; animation-delay: -3.0s; }
.loj-htile-11 { left:  128px; top: 128px; animation-delay: -1.5s; }
.loj-htile-12 { left:  320px; top: 192px; animation-delay: -3.8s; }
.loj-htile-13 { left:  448px; top: 128px; animation-delay: -5.5s; }
.loj-htile-14 { left:  704px; top:  64px; animation-delay: -0.8s; }
.loj-htile-15 { left:  896px; top: 192px; animation-delay: -6.5s; }
.loj-htile-16 { left: 1088px; top: 128px; animation-delay: -4.2s; }
/* Off-white tiles */
.loj-htile-17 { left:    0px; top: 192px; animation-delay: -1.2s; }
.loj-htile-18 { left:  576px; top:   0px; animation-delay: -4.0s; }
.loj-htile-19 { left:  768px; top: 128px; animation-delay: -7.5s; }
.loj-htile-20 { left:  960px; top: 192px; animation-delay: -2.8s; }
.loj-htile-21 { left: 1152px; top:  64px; animation-delay: -6.2s; }
.loj-htile-22 { left:  320px; top:   0px; animation-delay: -3.2s; }
.loj-htile-23 { left:  704px; top: 192px; animation-delay: -5.7s; }
.loj-htile-24 { left: 1280px; top:   0px; animation-delay: -8.1s; }
.loj-htile-25 { left:  128px; top:   0px; animation-delay: -2.6s; }
.loj-htile-26 { left:  256px; top: 192px; animation-delay: -4.3s; }
.loj-htile-27 { left:  384px; top: 192px; animation-delay: -6.1s; }
.loj-htile-28 { left:  512px; top:  64px; animation-delay: -1.4s; }
.loj-htile-29 { left:  576px; top: 192px; animation-delay: -3.9s; }
.loj-htile-30 { left:  768px; top:   0px; animation-delay: -5.2s; }
.loj-htile-31 { left:  896px; top:  64px; animation-delay: -7.8s; }
.loj-htile-32 { left: 1024px; top: 192px; animation-delay: -0.6s; }
.loj-htile-33 { left: 1152px; top: 192px; animation-delay: -2.3s; }
.loj-htile-34 { left: 1344px; top:   0px; animation-delay: -8.5s; }
/* White tiles */
.loj-htile-35 { left:   64px; top:   0px; animation-delay: -0.3s; }
.loj-htile-36 { left:  192px; top: 192px; animation-delay: -2.1s; }
.loj-htile-37 { left:  448px; top:   0px; animation-delay: -4.6s; }
.loj-htile-38 { left:  576px; top: 128px; animation-delay: -6.8s; }
.loj-htile-39 { left:  640px; top: 192px; animation-delay: -1.7s; }
.loj-htile-40 { left:  832px; top:   0px; animation-delay: -3.4s; }
.loj-htile-41 { left:  960px; top:  64px; animation-delay: -5.9s; }
.loj-htile-42 { left: 1088px; top:   0px; animation-delay: -7.3s; }
.loj-htile-43 { left: 1216px; top:  64px; animation-delay: -0.9s; }
.loj-htile-44 { left: 1344px; top: 128px; animation-delay: -4.1s; }
/* Dark tiles — 4 more */
.loj-htile-45 { left:  256px; top:  64px; animation-delay: -1.9s; }
.loj-htile-46 { left:  640px; top: 128px; animation-delay: -4.8s; }
.loj-htile-47 { left:  960px; top: 128px; animation-delay: -7.2s; }
.loj-htile-48 { left: 1216px; top:   0px; animation-delay: -3.6s; }
.loj-htile-49 { left:  448px; top: 192px; animation-delay: -2.4s; }
.loj-htile-50 { left:  832px; top: 192px; animation-delay: -5.3s; }
.loj-htile-51 { left: 1088px; top: 192px; animation-delay: -8.7s; }
.loj-htile-52 { left:  320px; top: 128px; animation-delay: -1.6s; }
.loj-htile-53 { left:  768px; top: 192px; animation-delay: -6.4s; }
.loj-htile-54 { left: 1280px; top: 128px; animation-delay: -3.8s; }
.loj-htile-55 { left:  192px; top:  64px; animation-delay: -2.7s; }
.loj-htile-56 { left:  896px; top: 128px; animation-delay: -5.1s; }
.loj-htile-57 { left: 1344px; top: 192px; animation-delay: -7.6s; }
.loj-htile-58 { left:   64px; top: 128px; animation-delay: -3.3s; }
.loj-htile-59 { left:  512px; top: 128px; animation-delay: -6.9s; }
.loj-htile-60 { left:  832px; top:  64px; animation-delay: -1.1s; }
.loj-htile-61 { left: 1024px; top: 128px; animation-delay: -4.7s; }
.loj-htile-62 { left: 1280px; top: 192px; animation-delay: -8.3s; }
@keyframes lojTilePulse {
    0%, 12.5%, 100% { opacity: 1; }
    25%, 82.5%       { opacity: 0; }
}

.loj-hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.loj-hero-title .highlight { color: #2563eb; }

.loj-hero-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 10px auto 0;
}
@media (max-width: 768px) {
    .loj-hero-subtitle {
        font-size: 0.95rem;
        padding: 0 20px;
    }
}

/* ============================================================
   Single Post — Hero mobile overrides
   ============================================================ */
.loj-hero-subtitle.mb-2 {
    margin-bottom: 24px !important;
}

@media (max-width: 576px) {
    h1.loj-hero-title {
        font-size: 1.8rem !important;
    }
}

/* ── Single post card body padding (desktop) ────────────────────── */
@media (min-width: 992px) {
    .wfh-single-card-body {
        padding: 2rem !important;
    }
}

/* ── Single post header (role + for, above buttons) ─────────────── */
.wfh-post-header-category-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 3px 9px;
    margin: 0;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
a.wfh-post-header-category-pill:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
.wfh-post-header-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin: 0 0 4px;
}
/* Override .single-job-container h1 !important rule (two classes beat class+element) */
.single-job-container .wfh-post-header-title {
    margin-bottom: 4px !important;
    font-size: 1.8rem !important;
}
.wfh-post-header-for {
    font-size: 1.17rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0 0 12px;
}
@media (max-width: 576px) {
    .wfh-post-header-title { font-size: 1.74rem; line-height: 1.15; margin: 0 0 4px; }
    .single-job-container .wfh-post-header-title { margin-bottom: 4px !important; font-size: 1.74rem !important; }
    .wfh-post-header-for   { font-size: 1.26rem; line-height: 1.2; margin: 0 0 10px; }
    .wfh-meta-row { align-items: flex-start !important; gap: 8px; }
    .wfh-meta-row .job-details-label { flex: 1; min-width: 0; white-space: normal; }
    .wfh-meta-row .wfh-job-date { flex-shrink: 0; }
    .wfh-apply-contact-row { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
    .wfh-apply-contact-row > a { width: auto !important; }
}
.wfh-post-header-location {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 10px 0 0;
}
.wfh-workmode-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wfh-workmode-link:hover { color: #2563eb; }

/* ============================================================
   Single Post — Job details separator and eyebrow label
   ============================================================ */
.job-details-separator {
    border-color: #e5e7eb;
    opacity: 1;
    margin: 35px 0;
}

.job-details-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 20px;
}
.wfh-job-date {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    white-space: nowrap;
    cursor: default;
}
.wfh-job-date time { cursor: default; }

/* Desktop: tooltip right-aligned, arrow near right edge */
.wfh-job-date .wfh-tooltip {
    white-space: nowrap;
    left: auto;
    right: 0;
    transform: translateY(6px);
}
.wfh-job-date .wfh-tooltip::after {
    left: auto;
    right: 14px;
    transform: none;
}
.wfh-job-date:hover .wfh-tooltip,
.wfh-job-date.wfh-tip-show .wfh-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: tooltip right-aligned (date is right-side), extends left so it stays on screen */
@media (max-width: 576px) {
    .wfh-job-date .wfh-tooltip {
        left: auto;
        right: 0;
    }
    .wfh-job-date .wfh-tooltip::after {
        left: auto;
        right: 14px;
    }
}

/* ============================================================
   Single Post — Mobile sidebar drawer / FAB
   ============================================================ */
#mobile-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10019;
}

#mobile-sidebar-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(356px, 86vw);
    height: 100%;
    background: #f8fafc;
    z-index: 10020;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.13);
}

#mobile-sidebar-inner {
    padding: 56px 16px 24px;
}

/* ============================================================
   Single Post — Report Lead popup
   ============================================================ */
.report-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.7s ease;
}

.report-popup-overlay.active {
    display: flex;
}

.report-popup-overlay.fading {
    opacity: 0;
    pointer-events: none;
}

.report-popup-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1.5rem 0.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-height: 90vh;
    overflow-y: auto;
}

.report-popup-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    padding-right: 48px;
}

@media (max-width: 576px) {
    .report-popup-card {
        max-width: 92%;
        padding: 1.25rem 1rem 0.5rem;
    }
}


/* ================================================================
   INFINITE SCROLL — All new components
   ================================================================ */

/* ── Sentinels (invisible) ──────────────────────────────────────── */
#loj-is-sentinel-top,
#loj-is-sentinel-bottom {
    height: 1px;
    width: 100%;
    display: block;
}

/* ── Loading hourglass ───────────────────────────────────────────── */
.loj-is-loading-dots {
    display: block;
    position: relative;
    width: 48px;
    height: 48px;
    margin: 20px auto;
}
.loj-is-loading-dots:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 4px;
    box-sizing: border-box;
    border: 20px solid #2563eb;
    border-color: #2563eb transparent #2563eb transparent;
    animation: lojHourglass 1.2s infinite;
}
@keyframes lojHourglass {
    0%   { transform: rotate(0);      animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
    50%  { transform: rotate(900deg); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
    100% { transform: rotate(1800deg); }
}

/* ── Spacer placeholder ──────────────────────────────────────────── */
.loj-is-spacer {
    width: 100%;
    background: transparent;
    display: block;
}

/* ── Day separator ───────────────────────────────────────────────── */
.loj-day-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 10px;
    position: relative;
}
.loj-day-sep::before,
.loj-day-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #adadad;
}
.loj-day-sep-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ── Personal marker (feed divider) ─────────────────────────────── */
.loj-pm-marker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px;
    position: relative;
}
.loj-pm-marker-line {
    flex: 1;
    height: 2px;
    background: #2563eb;
    border-radius: 999px;
    min-width: 0;
    box-shadow:
        0 0 4px  rgba(37,99,235,.75),
        0 0 12px rgba(37,99,235,.30),
        0 0 24px rgba(37,99,235,.10);
}
.loj-pm-marker.is-inactive .loj-pm-marker-line {
    background: #93c5fd;
    box-shadow:
        0 0 4px  rgba(147,197,253,.70),
        0 0 12px rgba(147,197,253,.28),
        0 0 24px rgba(147,197,253,.09);
}
.loj-pm-marker-center {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}
/* ── Empty state ─────────────────────────────────────────────────── */
#loj-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 80px 32px;
    background: #fff;
}
.loj-empty-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}
.loj-empty-sub {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

/* ── End-of-feed limit message ─────────────────────────────────────── */
#loj-end-of-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 40px 32px 64px;
    text-align: center;
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
}
#loj-end-of-feed svg {
    opacity: 0.45;
    margin-bottom: 6px;
}
.loj-eof-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    max-width: 280px;
}
.loj-eof-text {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #9ca3af;
    margin: 0;
    line-height: 1.6;
    max-width: 280px;
}

.loj-pm-marker-pin { color: #2563eb; flex-shrink: 0; display: flex; }
.loj-pm-marker.is-inactive .loj-pm-marker-pin { color: #93c5fd; }
.loj-pm-marker-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.loj-pm-marker-name--editable { cursor: pointer; }
.loj-pm-marker.is-inactive .loj-pm-marker-name { color: #93c5fd; }
.loj-pm-marker-name-input {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    width: 120px;
    min-width: 60px;
    caret-color: #2563eb;
}
.loj-pm-marker-name-input::placeholder { color: #93c5fd; }
/* × delete — white circle overlaying the right end of the line, hidden until hover */
.loj-pm-marker-del {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.15s;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loj-pm-marker:hover .loj-pm-marker-del { opacity: 1; }
.loj-pm-marker-del:hover { color: #dc2626; border-color: #fecaca; background: #fff5f5; }
.loj-pm-marker-inactive-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: #93c5fd;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 999px;
    cursor: default;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 4px;
}

/* ── Contact overflow collapse (single post sidebar) ────────────── */
.wfh-contact-overflow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
}
.wfh-contact-overflow.is-open { max-height: 800px; }
.wfh-contact-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0 2px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: left;
    transition: color 0.15s;
    line-height: 1.4;
}
.wfh-contact-more-btn:hover { color: #2563eb; }

/* ── Blur masking for gated contact info ───────────────────────── */
.wfh-gated-blur {
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
    padding: 0 5px; /* buffer on both sides so blur doesn't hard-clip */
}
/* Flex row wrapper used instead of text-truncate when showing blurred email */
.wfh-blur-row {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}
.wfh-blur-domain {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* ── Paywall notice (contact sidebar) ──────────────────────────── */
.wfh-paywall-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    margin-bottom: 4px;
}
.wfh-paywall-notice p {
    font-size: 0.8rem;
    color: #1e40af;
    margin: 0 0 10px;
    font-weight: 500;
    line-height: 1.4;
}
.wfh-paywall-notice a {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 6px 14px;
    transition: background 0.12s, border-color 0.12s;
}
.wfh-paywall-notice a:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* ── Section label typography (sidebar + content area) ─────────── */
.wfh-sidebar-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}
.wfh-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
}
.report-lead-link {
    font-size: 0.78rem;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: none;
    padding: 0;
    transition: color 0.15s;
}
.report-lead-link:hover { color: #dc2626; }

/* ── Similar Leads ─────────────────────────────────────────────── */
.wfh-similar-leads-wrap {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}
.wfh-similar-leads-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0 0 20px;
}
.wfh-similar-leads-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wfh-sl-item {
    border-top: 1px solid #e5e7eb;
}
.wfh-sl-item--first { border-top: none; }
.wfh-sl-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    text-decoration: none;
    transition: opacity 0.12s;
}
.wfh-sl-link:hover { opacity: 0.72; }
.wfh-sl-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wfh-sl-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.wfh-sl-for {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.wfh-sl-date {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 1px;
}

/* ── Sidebar Markers list ────────────────────────────────────────── */
.loj-markers-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.loj-markers-empty {
    font-size: 12.5px;
    color: #9ca3af;
    padding: 6px 4px;
    font-style: italic;
}
.loj-marker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 8px;
    transition: background 0.12s;
    min-width: 0;
}
.loj-marker-item:not(.is-inactive) { cursor: pointer; }
.loj-marker-item:hover { background: #f5f6f8; }
.loj-marker-item.is-inactive { opacity: 0.6; }
.loj-marker-jump-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #2563eb;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.12s;
}
.loj-marker-item.is-inactive .loj-marker-jump-btn { color: #9ca3af; cursor: default; }
.loj-marker-jump-btn:hover { background: #dbeafe; }
.loj-marker-item-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    min-width: 0;
}
.loj-marker-item.is-inactive .loj-marker-item-name { color: #9ca3af; cursor: default; }
.loj-marker-sidebar-input {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    border: none;
    border-bottom: 1.5px solid #2563eb;
    background: transparent;
    outline: none;
    padding: 0;
    min-width: 0;
}
.loj-marker-item-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.12s;
}
.loj-marker-item:hover .loj-marker-item-actions,
.loj-marker-item:focus-within .loj-marker-item-actions { opacity: 1; }
.loj-marker-rename-btn,
.loj-marker-delete-btn {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 5px;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    transition: background 0.12s, color 0.12s;
}
.loj-marker-rename-btn:hover { background: #dbeafe; color: #2563eb; }
.loj-marker-delete-btn:hover { background: #fee2e2; color: #dc2626; }

/* Add Marker button — matches bookmarks "New list" pill */
.loj-add-marker-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    background: #2563eb;
    border: 1.5px solid #2563eb;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}
.loj-add-marker-btn svg { color: #fff; flex-shrink: 0; }
.loj-add-marker-btn:not(:disabled):hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Active / placing mode — outlined inversion */
.loj-add-marker-btn.is-active {
    background: #fff;
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: none;
}
.loj-add-marker-btn.is-active svg { color: #2563eb; }
.loj-add-marker-btn.is-active:not(:disabled):hover {
    background: #eff6ff;
}

/* Bouncing arrow (desktop only) pointing left toward the feed */
@keyframes loj-arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(-5px); }
}
@media (min-width: 992px) {
    .loj-add-marker-btn.is-active::after {
        content: '←';
        display: inline-block;
        margin-left: 3px;
        font-size: 0.85rem;
        animation: loj-arrow-bounce 0.75s ease-in-out infinite;
    }
}

.loj-add-marker-btn:disabled,
.loj-add-marker-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
}
.loj-add-marker-btn:disabled svg,
.loj-add-marker-btn.is-disabled svg { color: #9ca3af; }
.loj-acc-markers-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.loj-markers-count-badge {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: rgba(0,0,0,.055);
    padding: 1px 7px;
    border-radius: 999px;
}
.loj-markers-subscribe-prompt {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}
.loj-markers-subscribe-prompt p {
    font-size: 0.8rem;
    color: #1e40af;
    margin: 0 0 10px;
    font-weight: 500;
    line-height: 1.4;
}
.loj-markers-subscribe-prompt a {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 6px 14px;
    transition: background 0.12s, border-color 0.12s;
}
.loj-markers-subscribe-prompt a:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* ── Marker gap (placement mode) ────────────────────────────────── */
.loj-marker-gap {
    display: none;
    width: 100%;
    height: 12px;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    position: relative;
    margin: 2px 0;
    transition: height 0.15s;
}
.loj-marker-gap::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 2px;
    background: #2563eb;
    opacity: 0.65;
    border-radius: 2px;
    transform: translateY(-50%);
    transition: opacity 0.15s, height 0.15s;
}
.loj-marker-placing .loj-marker-gap {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* "＋" label visible on hover */
.loj-marker-gap::before {
    content: '+ place marker here';
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f6f6f6;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    white-space: nowrap;
}
.loj-marker-gap:hover::before,
.loj-marker-gap:focus-visible::before { opacity: 1; }
.loj-marker-gap:hover::after,
.loj-marker-gap:focus-visible::after {
    opacity: 1;
    height: 3px;
    box-shadow: 0 0 8px rgba(37,99,235,0.5);
}
/* Disable job cards while placing */
body.loj-marker-placing .loj-job-card {
    pointer-events: none;
}

/* ── Instruction bar ─────────────────────────────────────────────── */
#loj-marker-instruction-bar {
    display: none;
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1045;
    background: #1e40af;
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 16px rgba(30,64,175,0.35);
    white-space: nowrap;
}
#loj-marker-cancel-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.15s;
}
#loj-marker-cancel-btn:hover { background: rgba(255,255,255,0.3); }


/* ── View mode segmented control ────────────────────────────────── */
.loj-feed-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
#loj-view-toggle {
    display: none;
    align-items: center;
    background: rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 2px;
    gap: 1px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 8px;
}
.loj-vt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    transition: color 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.loj-vt-btn.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    cursor: default;
}
.loj-vt-btn:not(.is-active):hover { color: #374151; }
@media (max-width: 991.98px) {
    .loj-vt-btn { width: 36px; height: 32px; border-radius: 7px; }
    #loj-view-toggle { padding: 3px; }
}

/* ── Calendar widget ─────────────────────────────────────────────── */
#loj-cal-widget {
    font-size: 0.78rem;
}
.loj-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.loj-cal-month-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
}
.loj-cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: color 0.15s, background 0.15s;
}
.loj-cal-nav:hover:not(:disabled) { color: #111827; background: #f3f4f6; }
.loj-cal-nav:disabled { opacity: 0.3; cursor: default; }
.loj-cal-table {
    width: 100%;
    border-collapse: collapse;
}
.loj-cal-table th {
    text-align: center;
    font-weight: 600;
    color: #9ca3af;
    padding: 2px 0;
    font-size: 0.68rem;
}
.loj-cal-day {
    text-align: center;
    padding: 2px 0;
    cursor: pointer;
    color: #374151;
}
/* Circle lives on the inner span so it is always square regardless of cell width */
.loj-cal-dn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transition: background 0.12s, color 0.12s;
    font-size: 0.78rem;
}
.loj-cal-day:hover:not(.loj-cal-empty) .loj-cal-dn { background: #eff6ff; color: #2563eb; }
.loj-cal-day.loj-cal-empty { cursor: default; }
.loj-cal-day.loj-cal-empty .loj-cal-dn { color: #d1d5db; }
/* Today: bold blue number only — circle only appears when also active */
.loj-cal-day.loj-cal-today .loj-cal-dn { font-weight: 700; color: #2563eb; }
.loj-cal-day.loj-cal-today:hover .loj-cal-dn { background: #eff6ff; }
/* Active (scroll position): blue circle around number */
.loj-cal-day.loj-cal-active .loj-cal-dn { background: #2563eb; color: #fff; font-weight: 700; }
.loj-cal-day.loj-cal-active:hover .loj-cal-dn { background: #1d4ed8; color: #fff; }
/* Small dot on dates with posts */
.loj-cal-dot {
    display: block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #2563eb;
    margin: 2px auto 0;
}
/* On active date: hide the small dot, show a large one via ::after */
.loj-cal-day.loj-cal-active .loj-cal-dot { display: none; }
.loj-cal-day.loj-cal-active::after {
    content: '';
    display: block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #2563eb;
    margin: 2px auto 0;
}

/* ── Feed header adjustment for IS mode ─────────────────────────── */
/* Pagination is hidden via JS (el.style.display='none') when IS initialises.
   No CSS rule needed here — a CSS-only hide would break no-JS users. */

/* ── Profile completion banner ─────────────────────────── */
.wfh-progress-banner {
  max-width: 420px; margin: 0 auto 20px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.08);
  padding: 20px 22px; box-sizing: border-box;
}
.wfh-pb-top { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:4px; }
.wfh-pb-headline { font-size:.95rem; font-weight:700; color:#111827; margin:0; }
.wfh-pb-fraction  { font-size:.75rem; font-weight:600; color:#6b7280; }
.wfh-pb-sub  { font-size:.8rem; color:#6b7280; margin:0 0 14px; }
.wfh-pb-track { height:6px; background:#f1f1f1; border-radius:999px; overflow:hidden; margin-bottom:16px; }
.wfh-pb-fill  { height:100%; width:0%; background:#2563eb; border-radius:999px;
                transition: width .65s cubic-bezier(.4,0,.2,1); }
.wfh-pb-cta  { font-size:.83rem; font-weight:600; color:#2563eb; text-decoration:none; }
.wfh-pb-cta:hover { text-decoration:underline; }

/* 100% celebration */
.wfh-pb-complete .wfh-pb-headline { color:#16a34a; }
.wfh-pb-complete .wfh-pb-track,
.wfh-pb-complete .wfh-pb-sub,
.wfh-pb-complete .wfh-pb-cta { display:none; }
@keyframes wfhPbDismiss {
  0%   { opacity:1; max-height:120px; padding:20px 22px; margin-bottom:20px; }
  80%  { opacity:0; }
  100% { opacity:0; max-height:0; padding:0; margin:0; overflow:hidden; }
}
.wfh-pb-complete { animation: wfhPbDismiss .5s ease 2.5s forwards; }

@media (max-width:480px) {
  .wfh-progress-banner { border-radius:12px; padding:16px 18px; margin-bottom:14px; }
}

/* ── Floating save bar (edit account page) ──────────────────────────── */
#wfh-save-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 48px));
  width: calc(100% - 32px);
  max-width: 460px;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  /* Spring-curve on enter; simple ease-out on exit */
  transition: transform 0.45s cubic-bezier(0.34, 1.36, 0.64, 1),
              opacity   0.25s ease;
}
#wfh-save-bar.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#wfh-save-bar.is-hiding {
  transform: translateX(-50%) translateY(calc(100% + 48px));
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1),
              opacity   0.3s ease;
}
.wfh-sb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: 20px;
  padding: 10px 10px 10px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07),
              inset 0 1px 0 rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.06);
}
.wfh-sb-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wfh-sb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
  animation: wfhSbPulse 2.2s ease-in-out infinite;
}
@keyframes wfhSbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.85); }
}
.wfh-sb-label {
  font-size: .84rem;
  font-weight: 500;
  color: #374151;
  letter-spacing: -.01em;
}
.wfh-sb-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 9px 22px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.wfh-sb-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.wfh-sb-btn:active { transform: scale(.97); }
.wfh-sb-btn:disabled {
  cursor: default;
  background: #22c55e;
  box-shadow: none;
}

@media (max-width: 480px) {
  #wfh-save-bar { bottom: 16px; width: calc(100% - 24px); }
  .wfh-sb-inner { padding: 10px 10px 10px 16px; border-radius: 16px; }
  .wfh-sb-btn   { padding: 9px 16px; }
}

/* ── Inline bookmark button (category row, right-aligned) ───────────── */

/* Row: category pill on left, bookmark on right */
.wfh-post-header-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}
.wfh-inline-bookmark-wrap {
    margin-left: auto;
    position: relative; /* anchor for dropdown */
    flex-shrink: 0;
}

button.wfh-inline-save-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
button.wfh-inline-save-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
button.wfh-inline-save-btn:focus,
button.wfh-inline-save-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Split sections — smaller than the top button */
.wfh-inline-save-btn .btn-save-lead-text {
    padding: 6px 10px;
}
.wfh-inline-save-btn .btn-save-lead-divider {
    width: 1px;
    align-self: stretch;
    background: #e2e8f0;
    transition: background 0.15s;
    flex-shrink: 0;
}
.wfh-inline-save-btn .btn-save-lead-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 9px 0 7px;
    line-height: 0;
}

/* Bookmarked state */
button.wfh-inline-save-btn.bookmarked {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.wfh-inline-save-btn.bookmarked .btn-save-lead-divider {
    background: rgba(255,255,255,0.25);
}
button.wfh-inline-save-btn.bookmarked:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Mobile: flex row still works — pill left, bookmark right, same line */

/* ── Admin Dashboard ───────────────────────────────────────────── */
.wfh-admin-wrap { max-width: 960px; margin: 40px auto; padding: 0 24px 60px; }
.wfh-admin-nav { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid #e5e7eb; padding-bottom: 0; }
.wfh-admin-nav-link { font-size: 0.88rem; font-weight: 600; color: #6b7280; text-decoration: none;
    padding: 10px 16px; border-bottom: 2px solid transparent; transition: color 0.12s, border-color 0.12s; display: block; }
.wfh-admin-nav-link.active, .wfh-admin-nav-link:hover { color: #111827; border-bottom-color: #2563eb; }

/* Date range picker */
.wfh-admin-range { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.wfh-admin-range-group { display: flex; flex-direction: column; gap: 4px; }
.wfh-admin-range-group label { font-size: 0.72rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; }
.wfh-admin-range-group input[type="date"] { font: inherit; font-size: 0.88rem; color: #111827; background: #fff;
    border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; min-width: 150px;
    transition: border-color 0.12s, box-shadow 0.12s; }
.wfh-admin-range-group input[type="date"]:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.wfh-admin-range-apply { font: inherit; font-size: 0.85rem; font-weight: 600; color: #fff; background: #111827;
    border: 0; border-radius: 8px; padding: 9px 18px; cursor: pointer; transition: background 0.12s; }
.wfh-admin-range-apply:hover { background: #2563eb; }
.wfh-admin-range-summary { font-size: 0.78rem; color: #6b7280; align-self: center; margin-left: auto; }

/* Chart toggle pills — unified style for all chart button groups */
.wfh-admin-chart-subtabs { display: flex; gap: 4px; margin: -6px 0 14px; flex-wrap: wrap; }
.wfh-admin-chart-subtabs button,
.wfh-chart-tab, .wfh-hiring-tab, .wfh-sales-metric, .wfh-sales-gran {
    font: inherit; font-size: 0.76rem; font-weight: 600; color: #6b7280;
    background: transparent; border: 1px solid #e5e7eb; border-radius: 999px; padding: 5px 13px;
    cursor: pointer; transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.wfh-admin-chart-subtabs button:hover,
.wfh-chart-tab:hover, .wfh-hiring-tab:hover, .wfh-sales-metric:hover, .wfh-sales-gran:hover {
    color: #111827; border-color: #d1d5db;
}
.wfh-admin-chart-subtabs button.active,
.wfh-chart-tab.active, .wfh-hiring-tab.active, .wfh-sales-metric.active, .wfh-sales-gran.active {
    color: #fff; background: #111827; border-color: #111827;
}
.wfh-admin-title { font-size: 1.4rem; font-weight: 700; color: #111827; margin: 0 0 24px; }
.wfh-admin-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.wfh-admin-stat { flex: 1; min-width: 130px; background: #fff; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 18px 20px; box-sizing: border-box; }
.wfh-admin-stat-num { display: block; font-size: 1.8rem; font-weight: 700; color: #111827; line-height: 1.1; }
.wfh-admin-stat-label { font-size: 0.75rem; color: #6b7280; font-weight: 500; margin-top: 4px; display: block; }
.wfh-admin-section { background: #fff; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 22px 24px; margin-bottom: 24px; }
.wfh-admin-section-header { display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.wfh-admin-section-title { font-size: 0.95rem; font-weight: 700; color: #111827; margin: 0; }
.wfh-admin-chart-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.wfh-admin-breakdown-hidden-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wfh-admin-breakdown-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    border: 1px solid #e5e7eb; background: #fff;
    font-size: 0.75rem; font-weight: 500; color: #6b7280;
    cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.wfh-admin-breakdown-chip::before { content: '+'; font-size: 0.9rem; color: #9ca3af; }
.wfh-admin-breakdown-chip:hover { border-color: #2563eb; color: #2563eb; }
.wfh-admin-breakdowns { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.wfh-admin-breakdown-col { background: #fff; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 20px 22px; flex: 1; min-width: 0; }
.wfh-admin-breakdown-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.wfh-admin-bd-left { display: flex; align-items: center; gap: 6px; }
.wfh-admin-breakdown-export-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 3px; border-radius: 4px;
    color: #9ca3af; cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.wfh-admin-breakdown-export-btn:hover { color: #374151; background: #f3f4f6; }
.wfh-admin-breakdown-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: #9ca3af; margin: 0; }
.wfh-admin-breakdown-toggle {
    font-size: 0.7rem; font-weight: 500; color: #6b7280;
    background: none; border: 1px solid #e5e7eb; border-radius: 999px;
    cursor: pointer; padding: 2px 10px; line-height: 1.6;
    transition: border-color 0.15s, color 0.15s;
}
.wfh-admin-breakdown-toggle:hover { border-color: #d1d5db; color: #374151; }
.wfh-admin-breakdown-body.is-scrollable {
    max-height: 680px;
    overflow-y: auto;
    padding-right: 4px;
}
.wfh-admin-bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wfh-admin-bar-item { display: flex; align-items: center; gap: 10px; }
.wfh-admin-bar-label { font-size: 0.78rem; color: #374151; width: 110px; flex-shrink: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfh-admin-bar-track { flex: 1; height: 5px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.wfh-admin-bar-fill { height: 100%; background: #2563eb; border-radius: 999px; }
.wfh-admin-bar-count { font-size: 0.72rem; color: #9ca3af; font-weight: 500; flex-shrink: 0;
    min-width: 28px; text-align: right; }
/* Top viewed posts */
.wfh-admin-top-posts { list-style: none; margin: 0; padding: 0; }
.wfh-admin-top-post { display: flex; align-items: baseline; gap: 12px;
    padding: 9px 0; border-top: 1px solid #f3f4f6; }
.wfh-admin-top-post:first-child { border-top: none; }
.wfh-admin-top-rank { font-size: 0.72rem; color: #d1d5db; font-weight: 700; width: 18px; flex-shrink: 0; }
.wfh-admin-top-title { font-size: 0.85rem; color: #111827; font-weight: 500; flex: 1;
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfh-admin-top-title:hover { color: #2563eb; }
.wfh-admin-top-views { font-size: 0.72rem; color: #9ca3af; flex-shrink: 0; }
/* Orders / status badges */
.wfh-admin-orders-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.wfh-admin-orders-table th { text-align: left; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #9ca3af; padding: 0 12px 10px 0; border-bottom: 1px solid #f3f4f6; }
.wfh-admin-orders-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid #f9fafb;
    color: #374151; vertical-align: middle; }
.wfh-admin-order-status { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 2px 8px;
    border-radius: 999px; background: #f3f4f6; color: #6b7280; }
.wfh-admin-order-status.completed { background: #dcfce7; color: #16a34a; }
.wfh-admin-order-status.processing { background: #dbeafe; color: #2563eb; }
.wfh-admin-order-status.pending { background: #fef9c3; color: #a16207; }
.wfh-admin-order-status.approved { background: #dcfce7; color: #16a34a; }
.wfh-admin-order-status.rejected { background: #fef2f2; color: #dc2626; }

/* ── Admin Tools page ───────────────────────────────────────────── */
.wfh-admin-tool-row { border-top: 1px solid #f3f4f6; }
.wfh-admin-tool-row:first-child { border-top: none; }
.wfh-admin-tool-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    cursor: pointer;
    flex-wrap: wrap;
}
.wfh-admin-tool-summary:hover { opacity: 0.8; }
.wfh-admin-tool-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.wfh-admin-tool-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
    min-width: 120px;
}
.wfh-admin-tool-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.wfh-admin-tool-chevron {
    font-size: 0.75rem;
    color: #9ca3af;
}
.wfh-admin-tool-detail {
    padding: 4px 0 16px;
}
/* Users table */
.wfh-admin-users-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.wfh-admin-users-table th { text-align: left; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #9ca3af; padding: 0 12px 10px 0; border-bottom: 1px solid #f3f4f6; }
.wfh-admin-users-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid #f9fafb;
    color: #374151; vertical-align: middle; }
.wfh-admin-user-row { cursor: pointer; }
.wfh-admin-user-row:hover td { background: #fafafa; }
.wfh-admin-user-cell { display: flex; align-items: center; gap: 10px; }
.wfh-admin-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0; border: 1px solid #e5e7eb; }
.wfh-admin-avatar--placeholder { background: #eff6ff; color: #2563eb; font-size: 0.78rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; }
.wfh-admin-user-name { font-size: 0.85rem; font-weight: 600; color: #111827; }
.wfh-admin-user-email { font-size: 0.72rem; color: #9ca3af; }
.wfh-admin-count { font-size: 0.75rem; font-weight: 500; color: #9ca3af; margin-left: 6px; }
/* Inline profile panel */
.wfh-admin-user-detail td { padding: 0; border-bottom: 1px solid #e5e7eb; }
.wfh-admin-user-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0 24px; }
.wfh-admin-profile-fields { display: flex; flex-direction: column; gap: 10px; }
.wfh-admin-pf { display: flex; gap: 10px; font-size: 0.82rem; color: #374151; }
.wfh-admin-pf span:first-child { width: 90px; flex-shrink: 0; color: #9ca3af; font-weight: 500; }
.wfh-admin-pf a { color: #2563eb; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wfh-admin-pf a:hover { text-decoration: underline; }
.wfh-admin-pf--full { flex-direction: column; gap: 3px; }
.wfh-admin-pf--full span:first-child { width: auto; }
.wfh-admin-viewed-posts { }
@media (max-width: 600px) {
    .wfh-admin-breakdowns { grid-template-columns: 1fr; }
    .wfh-admin-stats { gap: 10px; }
    .wfh-admin-user-profile { grid-template-columns: 1fr; }
    .wfh-admin-users-table th:nth-child(4),
    .wfh-admin-users-table td:nth-child(4) { display: none; }
    .wfh-admin-orders-table th:nth-child(3),
    .wfh-admin-orders-table td:nth-child(3) { display: none; }
}

/* ── Admin user profile drawer ─────────────────────────────────── */
.wfh-admin-panel-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 10099;
    display: none;
}
.wfh-admin-panel-backdrop.is-open { display: block; }
.wfh-admin-profile-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: #fff;
    z-index: 10100;
    transform: translateX(100%);
    transition: transform 0.22s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    box-shadow: -4px 0 32px rgba(0,0,0,.12);
    box-sizing: border-box;
}
.wfh-admin-profile-panel.is-open { transform: translateX(0); }
.wfh-admin-panel-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; cursor: pointer;
    color: #9ca3af; padding: 6px;
    border-radius: 6px; transition: color 0.12s, background 0.12s;
    line-height: 0; z-index: 1;
}
.wfh-admin-panel-close:hover { color: #111827; background: #f3f4f6; }
.wfh-admin-panel-header {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 28px 24px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.wfh-admin-panel-photo {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 1px solid #e5e7eb;
}
.wfh-admin-panel-identity { min-width: 0; }
.wfh-admin-panel-name { font-size: 1.05rem; font-weight: 700; color: #111827; margin-bottom: 2px; }
.wfh-admin-panel-jobtitle { font-size: 0.82rem; color: #6b7280; margin-bottom: 4px; }
.wfh-admin-panel-body { padding: 0 24px 40px; }
.wfh-admin-panel-section { padding: 18px 0; border-bottom: 1px solid #f3f4f6; }
.wfh-admin-panel-section:last-child { border-bottom: none; }
.wfh-admin-panel-fields { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wfh-admin-panel-bio { font-size: 0.83rem; color: #374151; line-height: 1.6; margin: 8px 0 0; }
.wfh-admin-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.wfh-admin-tag { font-size: 0.72rem; font-weight: 500; background: #eff6ff; color: #2563eb;
    border-radius: 999px; padding: 2px 9px; }
/* Make last login column narrower on desktop */
.wfh-admin-users-table th:nth-child(3),
.wfh-admin-users-table td:nth-child(3) { white-space: nowrap; }
@media (max-width: 600px) {
    .wfh-admin-profile-panel { width: 100vw; }
    .wfh-admin-users-table th:nth-child(3),
    .wfh-admin-users-table td:nth-child(3) { display: none; }
}


/* ============================================================
   ABOUT PAGE  (template: templates/page-about.php)
   ============================================================ */

/* ── Hero ── */
.wfha-hero {
    position: relative;
    background: linear-gradient(to bottom, #f7f9fc 0%, #f6f6f6 100%);
    text-align: center;
    overflow: hidden;
}
.wfha-hero-anim {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
}
.wfha-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 116, 139, var(--loj-grid-alpha)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, var(--loj-grid-alpha)) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0;
    animation: lojGridIn 0.8s ease 0.08s forwards,
               lojGridAlpha 8s ease-in-out 1s infinite;
}
.wfha-tile {
    position: absolute;
    width: 64px;
    height: 64px;
    opacity: 0;
    animation: lojTilePulse 6.4s infinite;
}
.wfha-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 88px;
}
.wfha-h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 680px;
    margin: 0 auto 20px;
}
.wfha-blue { color: #2563eb; }
.wfha-hero-sub {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 36px;
}
.wfha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.wfha-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* ── Section shell ── */
.wfha-section { padding: 88px 0; }
.wfha-bg-white {
    background: #fff;
    box-shadow: 0 4px 32px rgba(0,0,0,.05), 0 -4px 32px rgba(0,0,0,.03);
    position: relative;
    z-index: 1;
}
.wfha-bg-grey  { background: linear-gradient(160deg, #e8eaee 0%, #f6f6f6 50%); }

/* Override WP global styles margin-block-start on about page sections */
.wp-site-blocks > .wfha-section,
.wfha-section h1, .wfha-section h2, .wfha-section h3, .wfha-section p {
    margin-block-start: 0;
}

/* ── Typography ── */
.wfha-h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.25;
}
.wfha-centered { text-align: center; }
.wfha-body {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.75;
    max-width: 480px;
    margin: 0;
}

/* ── Split layout (Section 2) ── */
.wfha-split {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
}
.wfha-split-text { flex: 1; }
.wfha-split-art {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ── Radar illustration (Section 2) ── */
.wfha-radar-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.wfha-radar {
    position: relative;
    width: 280px;
    height: 280px;
    background: #f0f6ff;
    border-radius: 50%;
    border: 1.5px solid rgba(191, 219, 254, 0.35);
    box-shadow: inset 0 0 14px rgba(147, 197, 253, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wfha-radar-ring-a,
.wfha-radar-ring-b {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.wfha-radar-ring-a { width: 65%; height: 65%; border: 1px solid rgba(191, 219, 254, 0.6);  box-shadow: 0 0 8px 2px rgba(147, 197, 253, 0.28); }
.wfha-radar-ring-b { width: 38%; height: 38%; border: 1px solid rgba(191, 219, 254, 0.92); box-shadow: 0 0 11px 3px rgba(147, 197, 253, 0.45); }
.wfha-radar-cross {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.wfha-radar-cross::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 6%;
    right: 6%;
    height: 1px;
    background: rgba(147, 197, 253, 0.4);
    transform: translateY(-50%);
}
.wfha-radar-cross::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6%;
    bottom: 6%;
    width: 1px;
    background: rgba(147, 197, 253, 0.4);
    transform: translateX(-50%);
}
/* Trailing glow — conic-gradient rotating in sync with sweep.
   From 30° start: transparent → peaks at ~85° (just behind 3 o'clock sweep) → transparent.
   Perfectly circular so it clips clean with no box-shadow artifacts. */
.wfha-radar-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 30deg,
        rgba(37, 99, 235, 0)    0deg,
        rgba(37, 99, 235, 0.14) 55deg,
        rgba(37, 99, 235, 0)    65deg
    );
    animation: wfha-radar-rotate 3.6s linear infinite;
    pointer-events: none;
}
/* Sweep line — no box-shadow, glow handled by .wfha-radar-glow above */
.wfha-radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: transparent;
    transform-origin: top left;
    animation: wfha-radar-rotate 3.6s linear infinite;
    border-top: 2px solid rgba(37, 99, 235, 0.8);
}
@keyframes wfha-radar-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* Blips — timed to CSS sweep starting at 3 o'clock (border-top at 0°)
   Blip 1: 315° → t=3.15s → delay=-0.45s   (upper-right)
   Blip 2:  60° → t=0.6s  → delay=-3.0s    (lower-right)
   Blip 3: 140° → t=1.4s  → delay=-2.2s    (lower-left)
   Blip 4: 215° → t=2.15s → delay=-1.45s   (upper-left)  */
.wfha-radar-blip {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 0 11px 3px rgba(37, 99, 235, 0.35);
    opacity: 0;
    transform: scale(1);
}
#wfha-blip-1 { top: 69px;  left: 203px; animation: wfha-blip-fade 3.6s -0.45s linear infinite; }
#wfha-blip-2 { top: 203px; left: 175px; animation: wfha-blip-fade 3.6s -3.0s  linear infinite; }
#wfha-blip-3 { top: 192px; left: 70px;  animation: wfha-blip-fade 3.6s -2.2s  linear infinite; }
#wfha-blip-4 { top: 103px; left: 89px;  animation: wfha-blip-fade 3.6s -1.45s linear infinite; }
@keyframes wfha-blip-fade {
    0%   { opacity: 0;    transform: scale(1);    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 0 10px 2px rgba(37, 99, 235, 0.3);  }
    3%   { opacity: 1;    transform: scale(1.22); box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.28), 0 0 20px 7px rgba(37, 99, 235, 0.6); }
    14%  { transform: scale(1); }
    40%  { opacity: 0.55; }
    75%  { opacity: 0; }
    100% { opacity: 0;    transform: scale(1); }
}
.wfha-radar-center {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    z-index: 2;
}

/* ── How it works (Section 3) ── */
.wfha-steps {
    list-style: none;
    margin: 52px auto 0;
    padding: 0;
    max-width: 560px;
    border-top: 1px solid #e5e7eb;
}
.wfha-step {
    padding: 28px 0;
    border-bottom: 1px solid #e5e7eb;
}
.wfha-step-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 10px;
}
.wfha-step-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
}
.wfha-step-desc {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* ── What you get (Section 4) ── */
.wfha-get-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
}
.wfha-get-card {
    padding: 36px 28px;
    text-align: center;
}
.wfha-get-art {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.wfha-get-svg {
    width: 96px;
    height: 96px;
}
.wfha-get-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
}
.wfha-get-desc {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ── Closing CTA (Section 5) ── */
.wfha-cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #f7f9fc 0%, #f6f6f6 100%);
}
.wfha-cta-anim {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 80%, transparent 100%);
}
.wfha-cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 116, 139, var(--loj-grid-alpha)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, var(--loj-grid-alpha)) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0;
    animation: lojGridIn 0.8s ease 0.08s forwards,
               lojGridAlpha 8s ease-in-out 1s infinite;
}
.wfha-cta-inner {
    position: relative;
    z-index: 1;
}
.wfha-cta-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 72px 56px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    animation: wfhBadgeGlow 1.56s linear infinite;
}
.wfha-cta-title {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}
.wfha-cta-copy {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 36px;
}
.wfha-cta-faq {
    margin-top: 0;
    padding-top: 40px;
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}
.wfha-cta-faq a {
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px solid #d1d5db;
    transition: color 0.15s, border-color 0.15s;
}
.wfha-cta-faq a:hover {
    color: #111827;
    border-color: #6b7280;
}

/* ── About page — active member box ────────────────────────────── */
.wfha-member-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 20px 24px;
}
.wfha-member-box-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0;
}
.wfha-member-box-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.wfha-member-box-btn:hover { background: #1d4ed8; color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .wfha-get-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .wfha-split { flex-direction: column; gap: 40px; }
    .wfha-split-text { text-align: center; max-width: 560px; margin: 0 auto; }
    .wfha-split-text .wfha-body { max-width: 100%; margin: 0 auto; }
    .wfha-split-art { width: 100%; }
}
@media (max-width: 768px) {
    .wfha-section { padding: 64px 0; }
    .wfha-hero-inner { padding-top: 64px; padding-bottom: 72px; }
    .wfha-radar { width: 220px; height: 220px; }
    #wfha-blip-1 { top: 54px;  left: 159px; }
    #wfha-blip-2 { top: 159px; left: 137px; }
    #wfha-blip-3 { top: 150px; left: 55px;  }
    #wfha-blip-4 { top: 81px;  left: 70px;  }
    .wfha-steps { max-width: 100%; }
    .wfha-cta-card { padding: 48px 28px; }
}

/* ── What You Get — animated illustrations ───────────────────── */

/* Card 1 — Infinite scroll lead feed */
.wfha-feed-scroll {
    animation: wfha-feed-scroll 10s linear infinite;
}
@keyframes wfha-feed-scroll {
    0%   { transform: translateY(0); }
    26%  { transform: translateY(0);    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    30%  { transform: translateY(-30px); }
    56%  { transform: translateY(-30px); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    60%  { transform: translateY(-60px); }
    86%  { transform: translateY(-60px); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    90%  { transform: translateY(-90px); }
    100% { transform: translateY(-90px); }
}

/* Card 2 — Bookmark breeze wave */
.wfha-bm-group {}
@keyframes wfha-bm-breeze {
    0%, 100% { transform: skewX(0deg); }
    15%      { transform: skewX(3.5deg); }
    32%      { transform: skewX(0.4deg); }
    50%      { transform: skewX(-3deg); }
    66%      { transform: skewX(-0.3deg); }
    82%      { transform: skewX(2deg); }
}
.wfha-bm-plus { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.13)); }
.wfha-bm-s1, .wfha-bm-s2, .wfha-bm-s3 { display: none; }

/* ── Single Product Page ───────────────────────────────────────── */
.wfh-product-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 100px;
    background: #f9fafb;
}
.wfh-product-inner {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    padding: 52px 52px 48px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 8px 32px rgba(0,0,0,.07);
}
.wfh-product-inner .product_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.2;
}
.wfh-product-inner .price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0 0 20px;
    line-height: 1;
}
.wfh-product-inner .price ins {
    text-decoration: none;
}
.wfh-product-inner .woocommerce-product-details__short-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 32px;
}
.wfh-product-inner .woocommerce-product-details__short-description p {
    margin: 0;
}
.wfh-product-inner .cart {
    margin: 0;
}
.wfh-product-inner .single_add_to_cart_button {
    display: block;
    width: 100%;
    padding: 16px;
    background: #111827;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    letter-spacing: -0.01em;
}
.wfh-product-inner .single_add_to_cart_button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.wfh-product-inner .quantity {
    display: none;
}
@media (max-width: 600px) {
    .wfh-product-inner {
        padding: 36px 28px 32px;
    }
    .wfh-product-inner .product_title { font-size: 1.4rem; }
    .wfh-product-inner .price { font-size: 1.6rem; }
}

/* Card 3 — Padlock unlock */
.wfha-lock-shackle {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    animation: wfha-lock-open 4s ease-in-out infinite;
}
@keyframes wfha-lock-open {
    0%, 12%   { transform: rotate(0deg); }
    30%, 72%  { transform: rotate(-35deg); }
    88%, 100% { transform: rotate(0deg); }
}
.wfha-lock-keyhole {
    animation: wfha-lock-keyhole-out 4s ease-in-out infinite;
}
@keyframes wfha-lock-keyhole-out {
    0%, 15%   { opacity: 1; }
    28%, 70%  { opacity: 0; }
    84%, 100% { opacity: 1; }
}
.wfha-lock-send {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: wfha-lock-send-in 4s ease-in-out infinite;
}
@keyframes wfha-lock-send-in {
    0%, 27%   { opacity: 0; transform: scale(0.65); }
    39%, 63%  { opacity: 1; transform: scale(1); }
    76%, 100% { opacity: 0; transform: scale(0.65); }
}

/* ══════════════════════════════════════════════════════════════════
   JOB CARD BASE STYLES  (used by list-of-jobs.php, reader view, etc.)
══════════════════════════════════════════════════════════════════ */
.loj-job-card {
    background: #fff;
    border: 1px solid #e9eaec;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.18s, transform 0.18s;
}
.loj-job-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-1px);
    text-decoration: none;
}
.loj-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.loj-card-left {
    flex: 1;
    min-width: 0;
}
.loj-card-company {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loj-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loj-card-right {
    text-align: right;
    flex-shrink: 0;
}
.loj-card-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 6px;
    white-space: nowrap;
}
.loj-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}
.loj-location {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
}
.loj-location svg { color: #6b7280; }
.loj-no-results {
    text-align: center;
    color: #6b7280;
    padding: 48px 0;
    font-size: 0.95rem;
}
.loj-feed-inner { transition: opacity 0.3s ease; }
.loj-is-loading {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* ══════════════════════════════════════════════════════════════════
   READER VIEW  (page-reader.php)
══════════════════════════════════════════════════════════════════ */

/* ── Page-level containment ─────────────────────────────────────── */
body.wfh-reader-page {
    overflow: hidden;
    height: 100dvh;
    background: #f3f4f6;
}

/* ── Outer wrap: fills viewport below the navbar ────────────────── */
#wfh-reader-wrap {
    height: calc(100dvh - var(--wfh-nav-h, 57px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f3f4f6;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ── Unified reader card (topbar + body) ────────────────────────── */
.wfh-reader-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin: 50px 20px 16px;
    overflow: hidden;
}

/* ── Top filter bar ─────────────────────────────────────────────── */
.wfh-reader-topbar {
    flex: 0 0 auto;
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}
.wfh-reader-topbar form {
    padding: 0;
    margin: 0;
}

/* Category tabs row */
.wfh-rtb-cats-row {
    display: none;
}
.wfh-rtb-cats-row::-webkit-scrollbar { display: none; }

.wfh-rtb-cat-tab {
    flex: 0 0 auto;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}
.wfh-rtb-cat-tab:hover {
    background: #f3f4f6;
    color: #111827;
}
.wfh-rtb-cat-tab.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

/* Controls row */
.wfh-rtb-controls-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 16px 10px;
}

/* Search wrap */
.wfh-rtb-search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 180px;
    max-width: 240px;
}
.wfh-rtb-search-icon {
    flex-shrink: 0;
    color: #9ca3af;
}
.wfh-rtb-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8125rem;
    color: #111827;
    min-width: 0;
}
.wfh-rtb-search-input::placeholder { color: #9ca3af; }

/* Search field select */
/* Search field custom dropdown */
.wfh-rtb-sfield-wrap { position: relative; }
.wfh-rtb-sfield-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.wfh-rtb-sfield-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.wfh-rtb-sfield-btn[aria-expanded="true"] { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
.wfh-rtb-sfield-btn[aria-expanded="true"] .wfh-rtb-specs-arrow { transform: rotate(180deg); }
.wfh-rtb-sfield-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.wfh-rtb-sfield-opt {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
}
.wfh-rtb-sfield-opt:hover { background: #f3f4f6; color: #111827; }
.wfh-rtb-sfield-opt.is-active { color: #1d4ed8; background: #eff6ff; }

/* Separator */
.wfh-rtb-sep {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    flex-shrink: 0;
    margin: 0 4px;
}

/* Work mode pills */
.wfh-rtb-mode-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    user-select: none;
    white-space: nowrap;
}
.wfh-rtb-mode-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.wfh-rtb-mode-pill:hover { background: #f3f4f6; color: #111827; }
.wfh-rtb-mode-pill.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Work Type dropdown */
.wfh-rtb-workmode-wrap { position: relative; }
.wfh-rtb-workmode-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.wfh-rtb-workmode-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.wfh-rtb-workmode-btn[aria-expanded="true"] { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
.wfh-rtb-workmode-btn[aria-expanded="true"] .wfh-rtb-specs-arrow { transform: rotate(180deg); }
.wfh-rtb-workmode-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* Specialties dropdown */
.wfh-rtb-specs-wrap { position: relative; }
.wfh-rtb-specs-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 20px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.wfh-rtb-specs-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.wfh-rtb-specs-btn[aria-expanded="true"] { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
.wfh-rtb-specs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0 5px;
}
.wfh-rtb-specs-arrow { color: #9ca3af; transition: transform 0.15s; }
.wfh-rtb-specs-btn[aria-expanded="true"] .wfh-rtb-specs-arrow { transform: rotate(180deg); }

.wfh-rtb-specs-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    min-width: 374px;
    max-width: 510px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.wfh-rtb-specs-empty {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
    padding: 4px 0;
}

/* Browse by Date dropdown */
.wfh-rtb-date-wrap { position: relative; }
.wfh-rtb-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.wfh-rtb-date-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.wfh-rtb-date-btn[aria-expanded="true"],
.wfh-rtb-date-btn.is-active { background: #f3f4f6; border-color: #e5e7eb; color: #111827; }
.wfh-rtb-date-btn[aria-expanded="true"] .wfh-rtb-specs-arrow { transform: rotate(180deg); }
.wfh-rtb-date-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    min-width: 240px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* Tools wrap */
.wfh-rtb-tools-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wfh-rtb-tools-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 5px 10px;
    position: relative;
}
.wfh-rtb-tools-icon { color: #6b7280; flex-shrink: 0; }
.wfh-rtb-tools-input.wfh-rtb-tools-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8125rem;
    color: #111827;
    width: 160px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.wfh-rtb-tools-input.wfh-rtb-tools-input:focus { border-color: transparent; background: transparent; }
.wfh-rtb-tools-input::placeholder { color: #9ca3af; }
/* Position tools dropdown relative to tools-inner */
.wfh-rtb-tools-inner .loj-tools-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    min-width: 200px;
}

.wfh-rtb-tools-gate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.wfh-rtb-tools-gate:hover { border-color: #6b7280; color: #374151; }
.wfh-rtb-tools-gate-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    padding: 1px 5px;
}

/* Tool chips row (Row 3) */
.wfh-rtb-chips-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0 16px 10px;
}

/* ── Reader body: sidebar + panel ───────────────────────────────── */
.wfh-reader-body {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: visible;
    background: transparent;
}

/* Left sidebar */
.wfh-reader-sidebar {
    flex: 0 0 380px;
    width: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.09);
    border-right: 1px solid #e9eaec;
    scroll-behavior: smooth;
    position: relative;
    z-index: 2;
}
.wfh-reader-date-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #e9eaec;
    padding: 6px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.wfh-reader-date-sticky-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.wfh-reader-sidebar #loj-feed-inner {
    padding: 0;
}
.wfh-reader-sidebar .loj-no-results { display: none; }
/* Flat card list — single divider only, no individual card boxes */
.wfh-reader-sidebar .loj-feed-header { display: none; }
.wfh-reader-sidebar .loj-job-card {
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    transition: background 0.12s, border-left-color 0.12s;
}
.wfh-reader-sidebar .loj-job-card:hover {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: none;
    transform: none;
}
.wfh-reader-sidebar .loj-job-card.loj-card-saved:not(.is-active) {
    border-left-color: #93c5fd;
    background: rgba(37, 99, 235, 0.04);
}
.wfh-reader-sidebar .loj-job-card.is-active {
    border-left-color: #2563eb;
    background: #eff6ff;
}

/* Right panel */
.wfh-reader-panel {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    position: relative;
}

/* Empty state */
.wfh-reader-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 14px;
    text-align: center;
    padding: 40px;
}
.wfh-reader-empty-arrow {
    animation: wfh-arrow-bounce 1.2s ease-in-out infinite;
}
@keyframes wfh-arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(-10px); }
}
.wfh-reader-empty-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #9ca3af;
    margin: 0;
}

/* Loading dots */
.wfh-reader-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    min-height: 200px;
}
.wfh-reader-loading span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    animation: wfh-reader-dot 1.2s ease-in-out infinite;
}
.wfh-reader-loading span:nth-child(2) { animation-delay: 0.2s; }
.wfh-reader-loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wfh-reader-dot {
    0%, 80%, 100% { transform: scale(0.75); opacity: 0.5; }
    40%           { transform: scale(1);    opacity: 1; }
}

/* Error state */
.wfh-reader-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    padding: 40px;
}
.wfh-reader-error p {
    font-size: 0.9375rem;
    color: #6b7280;
    text-align: center;
}

/* ── Reader post panel content ──────────────────────────────────── */
.wfh-rp-back-row {
    display: none; /* shown on mobile only */
    padding: 12px 20px 0;
}
.wfh-reader-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}
.wfh-reader-back-btn:hover { color: #111827; }

.wfh-rp-header    { padding: 32px 40px 0; }
.wfh-rp-content   { padding: 0 40px; }
.wfh-rp-metadata  { padding: 0 40px; }
.wfh-rp-similar   { padding: 0 40px; }
.wfh-rp-admin     { padding: 0 40px; }

/* Contact section: flat card, top divider, consistent horizontal spacing */
.wfh-rp-contact {
    padding: 0 40px;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
}
.wfh-rp-contact .card {
    box-shadow: none;
    border: none;
    border-radius: 0;
}
.wfh-rp-contact .card-body {
    padding-left: 0;
    padding-right: 0;
}

/* Contact info overflow */
.wfh-contact-overflow {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    max-height: none;
    overflow: visible;
}
.wfh-contact-overflow.is-expanded { display: flex; }
.wfh-contact-more-btn {
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 0.8125rem;
    color: #2563eb;
    cursor: pointer;
    text-align: left;
}
.wfh-contact-more-btn:hover { text-decoration: underline; }

/* ── Subscriber popup in panel context ──────────────────────────── */
#wfh-reader-sub-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
}
#wfh-reader-sub-popup.is-open { display: flex; }

/* ── Mobile: panel slides in from right ─────────────────────────── */
/* ── Mobile filter toggle bar ─────────────────────────────────────────────── */
.wfh-rtb-mobile-bar { display: none; }

/* Desktop: sub-rows are invisible to flex layout — children flow directly */
.wfh-rtb-search-row,
.wfh-rtb-filter-row { display: contents; }

/* Desktop: sfield inside search-wrap — remove its own pill border */
.wfh-rtb-search-wrap .wfh-rtb-sfield-btn {
    border: none;
    background: none;
    border-radius: 0;
    padding: 0 8px 0 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.wfh-rtb-search-wrap .wfh-rtb-sfield-btn:hover { background: none; border: none; }
.wfh-rtb-search-wrap .wfh-rtb-sfield-btn[aria-expanded="true"] { background: none; border: none; color: #1d4ed8; }

/* Vertical divider between sfield and search input */
.wfh-rtb-sfield-divider {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: #d1d5db;
    flex-shrink: 0;
    margin-right: 4px;
}

/* Widen desktop search-wrap to fit sfield + icon + input */
.wfh-rtb-search-wrap { min-width: 240px; max-width: 340px; }

@media (max-width: 767px) {
    .wfh-rtb-mobile-bar {
        display: flex;
        align-items: center;
        padding: 0 16px;
        border-bottom: 1px solid #f3f4f6;
        min-height: 46px;
    }
    .wfh-rtb-mobile-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        padding: 0;
        font-size: 1.05rem;
        font-weight: 700;
        color: #111827;
        background: none;
        border: none;
        cursor: pointer;
    }
    .wfh-rtb-mobile-toggle-btn.has-filters { color: #1d4ed8; }
    .wfh-rtb-mobile-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 0.68rem;
        font-weight: 700;
        color: #fff;
        background: #2563eb;
        border-radius: 999px;
    }
    .wfh-rtb-mobile-arrow-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px; height: 28px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #c4c9d4;
        box-shadow: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
        margin-left: auto;
        flex-shrink: 0;
        transition: box-shadow 0.15s, border-color 0.15s;
    }
    .wfh-rtb-mobile-toggle-btn:hover .wfh-rtb-mobile-arrow-wrap {
        border-color: #9ca3af;
        box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    }
    .wfh-rtb-mobile-arrow {
        color: #6b7280;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s;
    }
    .wfh-reader-topbar.is-filters-open .wfh-rtb-mobile-arrow-wrap {
        border-color: #93c5fd;
        box-shadow: 0 1px 3px rgba(37,99,235,0.2);
    }
    .wfh-reader-topbar.is-filters-open .wfh-rtb-mobile-arrow {
        transform: rotate(180deg);
        color: #2563eb;
    }

    /* Controls row: collapsed by default on mobile */
    .wfh-rtb-controls-row {
        max-height: 0;
        overflow: hidden;
        padding: 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding-top 0.28s ease, padding-bottom 0.28s ease;
    }
    .wfh-reader-topbar.is-filters-open .wfh-rtb-controls-row {
        max-height: 300px;
        overflow: visible;
        padding: 10px 16px 12px;
        transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding-top 0.28s ease, padding-bottom 0.28s ease, overflow 0s 0.29s;
    }

    /* Search row: full-width single row */
    .wfh-rtb-search-row { display: block; width: 100%; margin-bottom: 10px; }
    .wfh-rtb-search-wrap { min-width: 0; max-width: 100%; width: 100%; }

    /* Filter row: horizontal scroll */
    .wfh-rtb-filter-row {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
        padding-bottom: 4px;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    .wfh-rtb-filter-row::-webkit-scrollbar { display: none; }

    /* All panels in the filter row: fixed below topbar */
    .wfh-rtb-filter-row .wfh-rtb-workmode-panel,
    .wfh-rtb-filter-row .wfh-rtb-specs-panel,
    .wfh-rtb-filter-row .wfh-rtb-date-panel,
    .wfh-rtb-filter-row .wfh-rtb-ss-panel {
        position: fixed;
        top: var(--rtb-panel-top, 160px);
        left: 12px;
        right: 12px;
        z-index: 600;
        max-height: 60dvh;
        overflow-y: auto;
        /* override any left:auto or right:0 from base styles */
        right: 12px !important;
        left: 12px !important;
    }

    /* Hide chips row when filters are collapsed */
    .wfh-reader-topbar:not(.is-filters-open) .loj-tools-chips-row { display: none !important; }
}

@media (max-width: 767px) {
    .wfh-reader-card {
        margin: 4px 8px 8px;
        border-radius: 10px;
    }

    .wfh-reader-sidebar {
        flex: 0 0 100%;
        width: 100%;
        border-right: none;
    }

    .wfh-reader-panel {
        position: fixed;
        top: var(--wfh-nav-h, 57px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 500;
        transform: translateX(100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        background: #fff;
        border-radius: 0;
        box-shadow: none;
    }

    body.wfh-panel-open .wfh-reader-panel {
        transform: translateX(0);
    }

    .wfh-rp-back-row { display: flex; }

    .wfh-rp-header    { padding: 16px 20px 0; }
    .wfh-rp-metadata  { padding: 0 20px; }
    .wfh-rp-contact   { padding: 0 20px; }
    .wfh-rp-similar   { padding: 0 20px; }
    .wfh-rp-admin     { padding: 0 20px; }

    .wfh-rtb-controls-row { gap: 6px 4px; }
    .wfh-rtb-search-wrap  { max-width: 100%; flex: 1 1 auto; }
}

/* ── Tablet ──────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    .wfh-reader-sidebar { flex: 0 0 300px; width: 300px; }
    .wfh-rtb-search-wrap { max-width: 180px; }
}

/* ── Wide desktop ────────────────────────────────────────────────── */
@media (min-width: 1280px) {
    .wfh-reader-sidebar { flex: 0 0 400px; width: 400px; }
}

/* ── Admin: Tool Migration Panel ─────────────────────────────────── */
.wfh-admin-migration-wrap {
    max-width: 860px;
    margin: 40px auto 60px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}
.wfh-admin-migration-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.wfh-admin-migration-desc {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.6;
}
.wfh-admin-migration-actions { display: flex; gap: 10px; margin-bottom: 18px; }
.wfh-admin-migration-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wfh-admin-migration-btn--preview {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}
.wfh-admin-migration-btn--preview:hover:not(:disabled) { background: #e5e7eb; }
.wfh-admin-migration-btn--apply {
    background: #111827;
    color: #fff;
}
.wfh-admin-migration-btn--apply:hover:not(:disabled) { background: #1f2937; }
.wfh-admin-migration-btn:disabled { opacity: 0.4; cursor: default; }
.wfh-admin-migration-status {
    font-size: 0.82rem;
    color: #374151;
    margin-bottom: 14px;
}
.wfh-admin-migration-results { overflow-x: auto; }
.wfh-migrate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    color: #374151;
}
.wfh-migrate-table th {
    text-align: left;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    padding: 6px 10px;
    border-bottom: 1px solid #e5e7eb;
}
.wfh-migrate-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    word-break: break-word;
}
.wfh-migrate-table td:first-child { white-space: nowrap; }
.wfh-migrate-table a { color: #6366f1; text-decoration: none; }
.wfh-migrate-table a:hover { text-decoration: underline; }

/* ── Save Search: Sidebar (frontpage) ────────────────────────────── */
.wfh-ss-save-trigger { padding: 2px 0 8px; }
.wfh-ss-save-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px 5px 10px;
    font-size: 0.78rem; font-weight: 600; color: #2563eb;
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 99px;
    cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.wfh-ss-save-btn:hover { background: #dbeafe; border-color: #93c5fd; }
.wfh-ss-count-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    font-size: 0.65rem; font-weight: 700; color: #fff;
    background: #2563eb; border-radius: 999px;
}
.wfh-ss-name-panel {
    padding: 12px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 8px;
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 8px;
}
.wfh-ss-name-input {
    width: 100%; padding: 7px 10px; font-size: 0.8rem; color: #111827;
    background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
    outline: none; transition: border-color 0.15s;
    box-sizing: border-box;
}
.wfh-ss-name-input:focus { border-color: #6366f1; }
.wfh-ss-alert-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.75rem; color: #4b5563; cursor: pointer;
}
.wfh-ss-alert-check { accent-color: #2563eb; width: 13px; height: 13px; flex-shrink: 0; }
.wfh-ss-name-actions { display: flex; gap: 8px; }
.wfh-ss-confirm-btn {
    flex: 1; padding: 6px 14px; font-size: 0.78rem; font-weight: 600;
    color: #fff; background: #111827; border: none; border-radius: 6px;
    cursor: pointer; transition: background 0.15s;
}
.wfh-ss-confirm-btn:hover:not(:disabled) { background: #1f2937; }
.wfh-ss-confirm-btn:disabled { opacity: 0.5; cursor: default; }
.wfh-ss-cancel-btn {
    padding: 6px 12px; font-size: 0.78rem; font-weight: 500; color: #6b7280;
    background: none; border: 1px solid #e5e7eb; border-radius: 6px;
    cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.wfh-ss-cancel-btn:hover { color: #374151; border-color: #d1d5db; }
.wfh-ss-error {
    font-size: 0.73rem; color: #dc2626; margin: 0;
}

/* ── Save Search: list (shared by sidebar + reader dropdown) ─────── */
.wfh-ss-list {
    list-style: none; margin: 6px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 5px;
}
#wfh-rtb-ss-panel-list .wfh-ss-list {
    max-height: 260px; overflow-y: auto; overflow-x: hidden;
}
.wfh-ss-empty {
    font-size: 0.76rem; color: #9ca3af; padding: 8px 0; text-align: center;
}
.wfh-ss-item {
    display: flex; align-items: center;
    padding: 10px 12px; border-radius: 8px; gap: 8px;
    background: #fafafa; border: 1px solid #e9eaec;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.wfh-ss-item:hover { background: #f3f4f6; border-color: #d1d5db; }
.wfh-ss-item-main {
    flex: 1; min-width: 0; cursor: pointer;
    display: flex; flex-direction: column; gap: 2px;
}
.wfh-ss-item-name {
    font-size: 0.78rem; font-weight: 600; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wfh-ss-item-sub {
    font-size: 0.68rem; color: #9ca3af;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wfh-ss-item-actions {
    display: flex; align-items: center; gap: 2px; flex-shrink: 0;
    opacity: 0; transition: opacity 0.15s;
}
.wfh-ss-item:hover .wfh-ss-item-actions,
.wfh-ss-item.is-confirming .wfh-ss-item-actions { opacity: 1; }
.wfh-ss-item-btn {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; padding: 0;
    background: none; border: none; border-radius: 5px;
    color: #9ca3af; cursor: pointer; transition: color 0.15s, background 0.15s;
}
.wfh-ss-item-btn:hover { color: #374151; background: #e5e7eb; }
.wfh-ss-item-alert-btn.is-on { color: #2563eb; }
.wfh-ss-item-alert-btn.is-on:hover { color: #1d4ed8; background: #eff6ff; }
.wfh-ss-item-del-btn:hover { color: #dc2626; background: #fef2f2; }
.wfh-ss-rename-input {
    font-size: 0.78rem; font-weight: 600; color: #111827;
    border: 1px solid #6366f1; border-radius: 4px;
    padding: 1px 4px; width: 100%; outline: none;
    background: #fff;
}

/* ── Save Search: Reader topbar button ───────────────────────────── */
.wfh-rtb-ss-wrap { position: relative; }
.wfh-rtb-ss-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; height: 32px;
    font-size: 0.78rem; font-weight: 600; color: #374151;
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.wfh-rtb-ss-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.wfh-rtb-ss-btn[aria-expanded="true"] { background: #f3f4f6; border-color: #d1d5db; }
.wfh-rtb-ss-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px; padding: 0 4px;
    font-size: 0.62rem; font-weight: 700; color: #fff;
    background: #2563eb; border-radius: 999px;
}

/* ── Save Search: Reader dropdown panel ──────────────────────────── */
.wfh-rtb-ss-panel {
    position: absolute; top: calc(100% + 6px); right: 0; left: auto; z-index: 120;
    min-width: 280px; max-width: 340px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    padding: 10px;
}
#wfh-rtb-ss-panel-list .wfh-ss-list { max-height: 260px; overflow-y: auto; }
.wfh-rtb-ss-new-btn {
    display: block; width: 100%; margin-top: 8px;
    padding: 7px 10px; font-size: 0.76rem; font-weight: 600; color: #374151;
    background: #f3f4f6; border: 1px dashed #d1d5db; border-radius: 6px;
    cursor: pointer; text-align: left; transition: background 0.15s;
}
.wfh-rtb-ss-new-btn:hover { background: #e5e7eb; }
#wfh-rtb-ss-panel-save {
    display: flex; flex-direction: column; gap: 8px;
}

/* ── Tool count badge (shared: frontpage accordion + reader topbar) ── */
.loj-acc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: #2563eb;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Save Search: inline delete confirmation ─────────────────────── */
.wfh-ss-del-row { display: none; align-items: center; gap: 5px; margin-left: auto; }
.wfh-ss-item.is-confirming .wfh-ss-item-alert-btn,
.wfh-ss-item.is-confirming .wfh-ss-item-rename-btn,
.wfh-ss-item.is-confirming .wfh-ss-item-del-btn { display: none; }
.wfh-ss-item.is-confirming .wfh-ss-del-row { display: flex; }
.wfh-ss-item.is-confirming .wfh-ss-item-main { opacity: 0.5; pointer-events: none; }
.wfh-ss-del-yes {
    padding: 3px 9px; font-size: 0.7rem; font-weight: 600; color: #fff;
    background: #ef4444; border: none; border-radius: 5px; cursor: pointer;
    transition: background 0.12s;
}
.wfh-ss-del-yes:hover { background: #dc2626; }
.wfh-ss-del-no {
    padding: 3px 7px; font-size: 0.7rem; font-weight: 500; color: #6b7280;
    background: none; border: none; cursor: pointer; transition: color 0.12s;
}
.wfh-ss-del-no:hover { color: #374151; }

/* ── Top Companies Admin Section ──────────────────────────────────────────── */
.wfh-companies-header-actions {
    display: flex; align-items: center; gap: 10px;
}
.wfh-companies-sort-toggle {
    display: inline-flex; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; padding: 2px; gap: 2px;
}
.wfh-companies-sort-btn {
    padding: 3px 10px; font-size: 0.75rem; font-weight: 500; border: none; border-radius: 4px;
    background: none; color: #6b7280; cursor: pointer; transition: background 0.12s, color 0.12s;
}
.wfh-companies-sort-btn.is-active {
    background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.wfh-companies-csv-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; font-size: 0.75rem;
    font-weight: 500; color: #374151; background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
    cursor: pointer; transition: background 0.12s, border-color 0.12s;
}
.wfh-companies-csv-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.wfh-companies-wrap {
    display: flex; flex-direction: column; gap: 0;
}
.wfh-companies-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
}
.wfh-companies-item {
    border-bottom: 1px solid #f3f4f6;
}
.wfh-companies-item:last-child { border-bottom: none; }
.wfh-companies-row {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 4px;
    background: none; border: none; cursor: pointer; text-align: left;
    transition: background 0.1s;
}
.wfh-companies-row:hover { background: #f9fafb; }
.wfh-companies-row[aria-expanded="true"] { background: #f0f9ff; }
.wfh-companies-rank {
    width: 28px; font-size: 0.75rem; color: #9ca3af; font-weight: 600; flex-shrink: 0; text-align: right;
}
.wfh-companies-name {
    flex: 1; font-size: 0.875rem; font-weight: 500; color: #111827; text-align: left; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wfh-companies-stat {
    font-size: 0.78rem; font-weight: 600; color: #374151; flex-shrink: 0;
    min-width: 72px; text-align: right;
}
.wfh-companies-stat em {
    font-style: normal; font-weight: 400; color: #9ca3af; font-size: 0.7rem;
}
.wfh-companies-chevron {
    flex-shrink: 0; color: #9ca3af; transition: transform 0.2s ease;
}
.wfh-companies-row[aria-expanded="true"] .wfh-companies-chevron {
    transform: rotate(180deg); color: #2563eb;
}
.wfh-companies-posts {
    padding: 0 4px 10px 42px;
}
.wfh-companies-posts-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0;
}
.wfh-companies-post-item {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 5px 0; border-bottom: 1px solid #f9fafb;
}
.wfh-companies-post-item:last-child { border-bottom: none; }
.wfh-companies-post-title {
    font-size: 0.8rem; color: #2563eb; text-decoration: none; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color 0.12s;
}
.wfh-companies-post-title:hover { color: #1d4ed8; text-decoration: underline; }
.wfh-companies-post-date {
    font-size: 0.75rem; color: #9ca3af; flex-shrink: 0; white-space: nowrap;
}
.wfh-companies-loading,
.wfh-companies-no-posts {
    display: block; font-size: 0.78rem; color: #9ca3af; padding: 4px 0;
}
.wfh-companies-expand-wrap {
    padding: 12px 4px 2px;
}
.wfh-companies-expand-btn {
    font-size: 0.8rem; font-weight: 500; color: #2563eb; background: none; border: none;
    cursor: pointer; padding: 0; transition: color 0.12s;
}
.wfh-companies-expand-btn:hover { color: #1d4ed8; text-decoration: underline; }

/* ============================================================
   REMOTE FREELANCE JOBS — page-remote-freelance-jobs.php
   ============================================================ */

.rfjobs-hero {
    position: relative;
    background: linear-gradient(to bottom, #f7f9fc 0%, #f6f6f6 100%);
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #e9eaec;
}
.rfjobs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 116, 139, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}
.rfjobs-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 88px;
}
.rfjobs-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 14px;
}
.rfjobs-h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 680px;
    margin: 0 auto 20px;
}
.rfjobs-hero-sub {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Content area ────────────────────────────────────────── */
.rfjobs-content {
    background: #f6f6f6;
    padding: 72px 0 80px;
}
.rfjobs-section {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #f0f1f3;
}
.rfjobs-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.rfjobs-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    text-align: center;
}

/* ── Cards: rows on mobile, grid on desktop ──────────────── */
.rfjobs-cards { display: flex; flex-direction: column; }

@media (min-width: 768px) {
    .rfjobs-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .rfjobs-cards .loj-job-card {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }
    .rfjobs-cards .loj-card-inner {
        flex-direction: column;
        flex: 1;
        gap: 10px;
    }
    .rfjobs-cards .loj-card-right {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-top: auto;
        text-align: left;
    }
    .rfjobs-cards .loj-card-time {
        margin-bottom: 0;
    }
    .rfjobs-cards .loj-card-meta {
        justify-content: flex-start;
    }
}

/* ── Section footer: blue centred button ────────────────── */
.rfjobs-section-foot {
    margin-top: 20px;
    text-align: center;
}
.rfjobs-more-link {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 9px;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.rfjobs-more-link:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    text-decoration: none;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .rfjobs-hero-inner { padding-top: 56px; padding-bottom: 60px; }
    .rfjobs-content { padding: 48px 0 56px; }
    .rfjobs-section { margin-bottom: 44px; padding-bottom: 44px; }
}

/* ============================================================
   ARTICLES — archive-article.php + single-article.php
   ============================================================ */

/* ── Hero (reuses rfjobs-hero, small override) ───────────── */
.wfh-blog-hero { border-bottom: none; }

/* ── Filter bar ──────────────────────────────────────────── */
.wfh-blog-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e9eaec;
    padding: 0;
}
.wfh-blog-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.wfh-blog-pill {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 16px;
    text-decoration: none;
    transition: border-color 0.14s, background 0.14s, color 0.14s;
    white-space: nowrap;
}
.wfh-blog-pill:hover {
    border-color: #2563eb;
    color: #2563eb;
    text-decoration: none;
}
.wfh-blog-pill.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ── Content area ────────────────────────────────────────── */
.wfh-blog-content {
    background: #f6f6f6;
    padding: 56px 0 80px;
}

/* ── Card grid ───────────────────────────────────────────── */
.wfh-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .wfh-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .wfh-blog-grid { grid-template-columns: 1fr; }
    .wfh-blog-content { padding: 40px 0 56px; }
}

/* ── Card ────────────────────────────────────────────────── */
.wfh-blog-card {
    background: #fff;
    border: 1px solid #e9eaec;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s, transform 0.18s;
}
.wfh-blog-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.wfh-blog-card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f1f3;
    text-decoration: none;
    flex-shrink: 0;
}
.wfh-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.wfh-blog-card:hover .wfh-blog-card-img {
    transform: scale(1.03);
}
.wfh-blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8eaee 0%, #f6f6f6 100%);
}
.wfh-blog-card-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
}
.wfh-blog-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.wfh-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 10px;
}
.wfh-blog-meta-dot { opacity: 0.5; }
.wfh-blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.wfh-blog-card-title a {
    color: inherit;
    text-decoration: none;
}
.wfh-blog-card-title a:hover { color: #2563eb; }
.wfh-blog-card-excerpt {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}
.wfh-blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: auto;
}
.wfh-blog-card-link:hover { text-decoration: underline; }

/* ── Pagination ──────────────────────────────────────────── */
.wfh-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.wfh-blog-pagination span a,
.wfh-blog-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e9eaec;
    color: #374151;
    background: #fff;
    transition: border-color 0.14s, color 0.14s;
}
.wfh-blog-pagination span a:hover { border-color: #2563eb; color: #2563eb; }
.wfh-blog-pagination span.current { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ── Single article ──────────────────────────────────────── */
.wfh-article-wrap {
    background: #fff;
    padding: 56px 0 72px;
}
.wfh-article-container {
    max-width: 740px !important;
}
.wfh-article-back {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.14s;
}
.wfh-article-back:hover { color: #2563eb; text-decoration: none; }
.wfh-article-header { margin-bottom: 28px; }
.wfh-article-cat-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 12px;
}
.wfh-article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.wfh-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #9ca3af;
}
.wfh-article-hero-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
}
.wfh-article-img {
    width: 100%;
    height: auto;
    display: block;
}
.wfh-article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}
.wfh-article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin: 2em 0 0.6em;
    letter-spacing: -0.01em;
}
.wfh-article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 1.6em 0 0.5em;
}
.wfh-article-content p { margin: 0 0 1.2em; }
.wfh-article-content ul,
.wfh-article-content ol {
    padding-left: 1.4em;
    margin: 0 0 1.2em;
}
.wfh-article-content li { margin-bottom: 0.4em; }
.wfh-article-content a { color: #2563eb; }
.wfh-article-content a:hover { text-decoration: underline; }
.wfh-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}
.wfh-article-content blockquote {
    border-left: 3px solid #2563eb;
    margin: 1.5em 0;
    padding: 0.5em 0 0.5em 1.2em;
    color: #6b7280;
    font-style: italic;
}
.wfh-article-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #f0f1f3;
}

@media (max-width: 600px) {
    .wfh-article-wrap { padding: 40px 0 56px; }
    .wfh-blog-filter-bar { overflow-x: auto; }
    .wfh-blog-filters { flex-wrap: nowrap; padding-bottom: 16px; }
}
