/* SEARCH JOBS (HOME): SITE LEVEL
   ========================================================================== */

@media all and (min-width:1025px) {

    .form--search fieldset{
        display: flex;
        align-items: stretch;
    }

    .form--search .fieldSpec {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .form--search .fieldSpec.button-bar {
        justify-content: flex-end;
    }

    .form--search .fieldSpec > .ui-widget {
        display: flex;
        flex-grow: 1;
    }

    .form--search .fieldSpec > .ui-widget > .select2-container,
    .form--search .fieldSpec > .ui-widget > .select2-container > .selection {
        width: 100%;
        display: flex;
    }

    .form--search .fieldSpec > .ui-widget > .select2-container > .selection > .select2-selection {
        width: 100%;
    }

    .search--sticky__wrapper{
        padding-top: var(--main--padding--top);
        padding-bottom: var(--spacer--m);
    }

    .search--sticky[class*="--divider--bottom"] + *{
        margin-top: 0 !important;
    }

    .search--sticky[class*="--divider--bottom"]{
        padding-bottom: 0;
    }

    .search--sticky.search--sticky-scroll{
        position: fixed;
        top: var(--header--height);
        width: 100vw;
        background-color: #FFFFFF;
        z-index: 2;
    }

    .form input:not([type="checkbox"]):not([type="radio"]):not([class*="select2"]),
    .form select,
    .form textarea,
    .form .select2-container--default .select2-selection--multiple {
        border-width: 0;
        border-bottom-width: 1px;
    }

    .select2-container .select2-search--inline .select2-search__field {
        font-size: 1.6rem;
    }

    .body--search-jobs .search--sticky-scroll + .main {
        padding-top: 14.2rem;
    }

}

 @media all and (max-width:1024px) {

    .section--collapsible-form-search {
        margin-top: var(--spacer--l);
    }

    .search--sticky .form--search{
        padding: 0 var(--grid--laterals);
    }

    .section--collapsible-form-search .section__header {
            padding: 0 var(--grid--laterals);
    }

    .section--collapsible-form-search .section__header__text {
        padding: var(--spacer--s) var(--grid--laterals) var(--spacer--s) 0;
    }

    .section--collapsible-form-search .section__header__text__title {
        font-family: var(--font);
        font-weight: var(--font--weight--medium);
    }

}

/* SEARCH JOBS: SECTION LEVEL
   ========================================================================== */

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .body--search-jobs .main__wrapper {
        --main--padding--bottom: 0;
    }

}

/* Media query to target only desktop */
@media all and (min-width:1025px) {
    .section--search-jobs .section__header {
        display: none;
    }

    .section--search-jobs .section__header + .section__content {
        margin-top: 0;
    }

}

.list-controls__sort .dropdown__list {
    top: 100%;
}

.list-controls__text__legend, .list-controls__pagination__item{
    font-weight: 500;
}

.list-controls__pagination {
    font-size: 2rem;
}

@media all and (max-width: 1024px){

    .section--search-jobs.section--collapsible-form-search .form--search .form__toggle {
        right: var(--spacer--l);
    }

    .article--result:first-child {
        padding-top: var(--spacer--l);
    }
}

/* SEARCH JOBS: ARTICLE LEVEL
   ========================================================================== */
.article--result + .article--result {
    margin-top: 1.2rem;
}

.article--result .article__header__text__subtitle {
    margin-top: var(--spacer--s);
}

.article--result .article__header__actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    width: 21rem;
    row-gap: 1rem;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: var(--spacer--xxl);
}

.article--result .article__header__actions .job-logo {
    text-align: left;
}

.article--result .article__header__actions .job-logo .job-logo__img {
    object-fit: contain;
    height: 70px;
    width: 80%;
}

.section--search-jobs .article--result {
    border-bottom: solid 1px #b3b3b3;
}

.body--search-jobs .article--result .article__content {
    word-break: break-all;
}

/* Media query to target mobile and tablet*/
@media all and (max-width:1024px) {

    .section--collapsible-form-search .form--search .Section{
        background-color: #FFFFFF;
        border: solid 1px var(--color--brand--sub-1);
    }

    .section--collapsible-form-search .form--search .form__toggle:hover, .section--collapsible-form-search .form--search .form__toggle:focus, .section--collapsible-form-search .form--search.form--open .form__toggle{
        background-color: transparent;
    }

    .select2-container--default .select2-selection--multiple {
        border: 0;
        border-bottom: 1px solid var(--fields--border--color);
    }

    .form input:not([type="checkbox"]):not([type="radio"]):not([class*="select2"]), .form select, .form textarea {
        border: 0;
        border-bottom-width: 1px;
        border-bottom-style: solid;
    }

    .article--result .article__header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }

    .article--result .article__header > * {
        width: 100%;
    }

    .article--result .article__header__text {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        min-height: var(--boxes__heading--height);
    }

    .article--result .article__header__text__title {
        font-size: 3.2rem;
    }

    .article--result .article__header__text__subtitle {
        font-size: 1.4rem;
    }

    .article--result .article__header__actions > * + * {
        margin-left: var(--boxes--padding--inners);
    }

    .article--result .social-share--open .social-share__popup {
        bottom: calc(100% + var(--spacer--s));
        left: calc(-1 * var(--spacer--xs));
    }

    .article--result{
        position: relative;
    }

    .section--search-jobs .article--result {
        border: solid 1px #b3b3b3;
        padding: var(--spacer--m);
    }

    .article--result .article__content{
        padding-bottom: var(--spacer--xxxl);
    }

    .article--result .article__header__actions .button, .article--result .article__header__actions span{
        flex-grow: 1;
    }

}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .article--result {
        padding-top: var(--spacer--m);
        padding-bottom: var(--spacer--xl);
    }

    .article--result .article__header__actions > * + * {
        margin-left: var(--spacer--s);
    }

}

.section--search-jobs .article--result .article__header__actions span {
    color: var(--color--brand);
}

.select2-results__option {
    font-size: 1.4rem;
}

.list--social-share .list__item__link, .list--social-share .list__item__link img{
    width: auto;
}

.section .social-share__popup {
    border-color: var(--color--brand--sub-1);
    border-width: 2px;
}

.section .social-share__popup:before {
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-bottom-color: var(--color--brand--sub-1);
    border-right-color: var(--color--brand--sub-1);
}

/* Media query to target only mobile */
@media all and (max-width:750px) {

    .article--result .social-share--open .social-share__popup {
        left: calc(-1 * var(--spacer--xxl));
    }

    .section .social-share__popup:before {
        left: 50%;
    }
}

/* LAYOUT - measures on desktop to fit buttons */

@media all and (min-width: 1025px){
    .form--customLayout .fieldSpec:not(:last-of-type) {
        width: 18%;
    }

    .form--customLayout .fieldSpec:last-of-type {
        width: 28%;
    }
}
