

/*
 * GLOBAL HEADER GEOMETRY CONTRACT
 *
 * Fix dimensions independently of:
 * - Page Builder
 * - Tailwind runtime CSS
 * - web font loading
 * - native button styles
 * - hover transforms
 */

/* Shared root */

html body
header#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header {

    --jh-final-navy:#0b2948;
    --jh-final-orange:#0075E8;
    --jh-final-red:#b91c1c;
    --jh-final-control:42px;

    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;

    background:#fff!important;
    color:#0b2948!important;

    border:0!important;
    border-bottom:2px solid #0075E8!important;

    font-family:Arial,Helvetica,sans-serif!important;
    font-size:13px!important;
    line-height:normal!important;

    transform:none!important;
    transition:none!important;
    animation:none!important;
}

/* Stable primary controls */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
:is(
    .jh-post-job,
    .login,
    a[data-jh-header-help="1"],
    .jh-gh-search button[type="submit"],
    .mobile-menu > summary
) {
    box-sizing:border-box!important;

    min-height:42px!important;
    height:42px!important;
    max-height:42px!important;

    padding-top:0!important;
    padding-bottom:0!important;

    font-family:Arial,Helvetica,sans-serif!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:16px!important;

    border:1px solid transparent!important;
    border-radius:8px!important;

    letter-spacing:0!important;
    text-transform:none!important;
    text-decoration:none!important;
    white-space:nowrap!important;

    flex-shrink:0!important;

    margin:0!important;

    transform:none!important;
    scale:1!important;
    transition:none!important;
    animation:none!important;
}

/* Post a Job */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
.jh-post-job {

    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;

    background:var(--jh-header-job-bg,#0075E8)!important;
    color:var(--jh-header-job-fg,#fff)!important;
    -webkit-text-fill-color:var(--jh-header-job-fg,#fff)!important;

    padding-left:12px!important;
    padding-right:12px!important;
}

/* Get Help Now: do not override role visibility */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
a[data-jh-header-help="1"] {

    align-items:center!important;
    justify-content:center!important;

    background:#b91c1c!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;

    padding-left:10px!important;
    padding-right:10px!important;
}

/* Account */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
.login {

    background:#0b2948!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;

    padding-left:12px!important;
    padding-right:12px!important;
}

/* Search Button */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
.jh-gh-search button[type="submit"] {

    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;

    flex:0 0 74px!important;
    width:74px!important;
    min-width:74px!important;
    max-width:74px!important;

    padding-left:8px!important;
    padding-right:8px!important;

    background:#0075E8!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;

    border-radius:0 7px 7px 0!important;
}

/* Search and location geometry */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
:is(.jh-gh-location,.jh-gh-search) {

    display:flex!important;
    visibility:visible!important;
    opacity:1!important;

    position:relative!important;

    box-sizing:border-box!important;

    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;

    margin:0!important;
    padding:0!important;

    transform:none!important;
    transition:none!important;
    animation:none!important;
}

/* Input typography stays constant */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
:is(.jh-gh-location,.jh-gh-search)
input:not([type="hidden"]) {

    display:block!important;
    visibility:visible!important;
    opacity:1!important;

    font-family:Arial,Helvetica,sans-serif!important;
    font-size:13px!important;
    font-weight:400!important;
    line-height:18px!important;

    letter-spacing:0!important;

    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;

    box-sizing:border-box!important;

    margin:0!important;

    transform:none!important;
    transition:none!important;
    animation:none!important;
}

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
.jh-gh-location input:not([type="hidden"]) {

    width:100%!important;
    min-width:0!important;
    padding-left:10px!important;
    padding-right:45px!important;
}

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
.jh-gh-search input[name="title"] {

    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
    padding-left:12px!important;
    padding-right:8px!important;
}

/* GPS */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
#jh-gps {

    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;

    align-items:center!important;
    justify-content:center!important;

    position:absolute!important;

    top:3px!important;
    right:3px!important;
    left:auto!important;

    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;

    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;

    margin:0!important;
    padding:0!important;

    box-sizing:border-box!important;

    transform:none!important;
    scale:1!important;
    transition:none!important;
    animation:none!important;
}

/* Prevent hover or focus from resizing controls */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
:is(
    .jh-post-job,
    .login,
    a[data-jh-header-help="1"],
    .jh-gh-search button[type="submit"],
    #jh-gps,
    .brand
):is(:hover,:focus,:active) {

    transform:none!important;
    scale:1!important;

    transition:none!important;
    animation:none!important;
}

/* Keyboard accessibility */

html body
#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
:is(a,button,summary,input):focus-visible {

    outline:2px solid #0059B3!important;
    outline-offset:2px!important;
}

/* ==========================================
   DESKTOP - SINGLE ROW STANDARD
   ========================================== */

@media(min-width:1200px) {

    html body
    header#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header {

        display:flex!important;
        flex-direction:row!important;
        flex-wrap:nowrap!important;

        align-items:center!important;
        justify-content:flex-start!important;

        gap:10px!important;

        height:74px!important;
        min-height:74px!important;
        max-height:74px!important;

        padding:0 24px!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    :is(.top,.top-inner,.menu-bar,.menu-inner) {

        display:contents!important;
    }

    /* Logo */

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .brand {

        order:1!important;

        display:flex!important;
        align-items:center!important;

        flex:0 0 116px!important;

        width:116px!important;
        min-width:116px!important;
        max-width:116px!important;

        height:42px!important;

        margin:0!important;
        padding:0!important;

        transform:none!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .jh-header-logo-img {

        display:block!important;

        width:112px!important;
        min-width:112px!important;
        max-width:112px!important;

        height:42px!important;
        min-height:42px!important;
        max-height:42px!important;

        object-fit:contain!important;
    }

    /* Location */

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .jh-gh-location {

        order:2!important;

        flex:0 0 200px!important;

        width:200px!important;
        min-width:200px!important;
        max-width:200px!important;
    }

    /* Search */

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .jh-gh-search {

        order:3!important;

        flex:1 1 0!important;

        width:0!important;
        min-width:160px!important;
        max-width:none!important;
    }

    /* Navigation */

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .nav-links {

        order:4!important;

        display:flex!important;
        align-items:center!important;

        flex:0 0 auto!important;
        flex-wrap:nowrap!important;

        gap:10px!important;

        height:42px!important;

        white-space:nowrap!important;
        margin:0!important;
        padding:0!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    :is(
        .nav-links > a,
        .jh28-explore > summary
    ) {

        display:inline-flex!important;
        align-items:center!important;

        height:42px!important;
        min-height:42px!important;
        max-height:42px!important;

        padding:0 2px!important;
        margin:0!important;

        font-family:Arial,Helvetica,sans-serif!important;
        font-size:13px!important;
        font-weight:700!important;
        line-height:16px!important;

        white-space:nowrap!important;

        box-sizing:border-box!important;

        transform:none!important;
        transition:none!important;
        animation:none!important;
    }

    /* Fixed Post a Job dimensions */

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .jh-post-job {

        order:5!important;

        flex:0 0 96px!important;

        width:96px!important;
        min-width:96px!important;
        max-width:96px!important;
    }

    /* Fixed urgent button dimensions */

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    a[data-jh-header-help="1"] {

        order:6!important;

        flex:0 0 108px!important;

        width:108px!important;
        min-width:108px!important;
        max-width:108px!important;
    }

    /* Login / My Account */

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .login {

        order:7!important;

        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;

        flex:0 0 auto!important;

        width:auto!important;
        min-width:72px!important;

        padding-left:16px!important;
        padding-right:16px!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .login[href*="dashboard"] {

        min-width:108px!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .mobile-menu {

        display:none!important;
    }
}

/* Compact desktop */

@media(min-width:1200px) and (max-width:1399px) {

    html body
    header#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header {

        padding-left:16px!important;
        padding-right:16px!important;
        gap:8px!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .jh-gh-location {

        flex-basis:170px!important;
        width:170px!important;
        min-width:170px!important;
        max-width:170px!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    .nav-links {

        gap:8px!important;
    }
}

/* Mobile and tablet:
   retain existing responsive row arrangement. */

@media(max-width:1199px) {

    html body
    header#jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header {

        height:auto!important;
        max-height:none!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    :is(.jh-gh-location,.jh-gh-search) {

        min-width:0!important;
        max-width:100%!important;
    }
}

@media(max-width:767px) {

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    :is(.jh-gh-location,.jh-gh-search) {

        width:100%!important;
        grid-column:1/-1!important;
        flex-basis:100%!important;
    }

    html body
    #jh-sticky-header#jh-sticky-header#jh-sticky-header#jh-sticky-header
    :is(
        .jh-post-job,
        .login,
        a[data-jh-header-help="1"]
    ) {

        min-width:0!important;
        max-width:100%!important;
        font-size:12px!important;
    }
}

