/* ==========================================================================
    LAYOUTS
    -------------------------------------------------------------------------
    Section
      : Action next to title (Override/complement)
      : Tabs in header (Override/complement)

    ELEMENTS
    -------------------------------------------------------------------------
    Buttons
      : Main
        : Primary (Override/complement)
    Indicators
      : Pills (New)
        : Good (New)
        : Great (New)
        : Skills (New)
        : Strong (New)

    COMPONENTS
    -------------------------------------------------------------------------
    Cards
      : Articles as cards (Override/complement)
    Lists
      : Skills (New)
    Navigation
      : Steps bar (Override/complement)
      : Tabs (Inverting clickable colors - commented and ready to use)
      : Menu Panel Mobile (Override/complement)

    WIDGETS
    -------------------------------------------------------------------------
    Attachment upload (New)
    Registered
      : Article (Override/complement)
    Search
      : Visible (Override/complement)

    MODULES
    -------------------------------------------------------------------------
    Banner
      : Home (New)
      : Secondary (New)
    Slider (New)

    PAGETYPES
    -------------------------------------------------------------------------
    Search jobs
      : Cards
        : Result (Override/complement)

    UTILITIES
    -------------------------------------------------------------------------
    XXX
========================================================================== */

/*
    LAYOUTS/Section: Action next to title (Override/complement)
*/

.section__header--action-next-to-title {
    align-items: flex-end;
}

.section__header--action-next-to-title .section__header__text {
    flex-grow: 0;
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .section__header--action-next-to-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .section__header--action-next-to-title .section__header__text + .section__header__actions {
        margin-top: var(--spacer--s2);
    }

}

/*
    LAYOUTS/Section: Tabs in header (Override/complement)
*/

.section__header.section__header--tabs + *:not([class*="--narrow"]) {
    margin-top: var(--spacer--xl);
}

/*
    ELEMENTS/Buttons: Main: Primary (Override/complement)
    ↳ to be deleted when we get the Application Flow wizard properly configured
*/

.gotoButton {
    --buttons--border--color: var(--color--buttons);
    --buttons--background--color: var(--color--white);
    --buttons--font--color: var(--color--buttons);
}

.gotoButton:hover {
    --buttons--border--color: var(--color--buttons);
    --buttons--background--color: var(--color--buttons--sub-3);
    --buttons--font--color: var(--color--buttons);
}

.gotoButton:focus,
.gotoButton:active {
    --buttons--outline--width: .2rem;
    --buttons--border--color: var(--color--black);
    --buttons--border--width: .2rem;
    --buttons--background--color: var(--color--buttons--sub-4);
    --buttons--font--color: var(--color--buttons);
}

.gotoButton.button--disabled,
.gotoButton:disabled {
    --buttons--border--color: var(--color--disabled--sub-1);
    --buttons--background--color: var(--color--disabled--sub-1);
    --buttons--font--color: var(--color--disabled);
}

/*
    ELEMENTS/Indicators: Pills (New)
*/

:root {
    --matching--color--strong: #87e8dd;
    --matching--color--great: #c4f3ee;
    --matching--color--good: #e7faf8;
    --border--color--skills: var(--color--black);
}

.pill, .list--pills .list .list__item span {
    display: inline;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    font-size: 1.2rem;
    padding: var(--spacer--xs) var(--spacer--s);
    background-color: var(--matching--background--color);
    font-weight: 400;
    vertical-align: middle;
}

/*
    ELEMENTS/Indicators: Pills (Within COMPONENTS/Cards: Articles as cards)
*/

/* Inside a card next to title */
.article:not(.article--full-pill) .pill + * {
    margin-left: var(--spacer--s);
}

/* Inside a card but 100% wide */
.article--full-pill .pill {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    border-top-right-radius: var(--card--border--radius);
    border-top-left-radius: var(--card--border--radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.article--full-pill .article__header__text__title {
    padding-top: var(--spacer--m);
}

/*
    ELEMENTS/Indicators: Pills: Good (New)
*/

.pill--good {
    --matching--background--color: var(--matching--color--good);
}

/*
    ELEMENTS/Indicators: Pills: Great (New)
*/

.pill--great {
    --matching--background--color: var(--matching--color--great);
}

/*
    ELEMENTS/Indicators: Pills: Skills (New)
*/

.pill--skills, .list--pills .list .list__item span {
    --matching--background--color: var(--color--white);

    border: .1rem solid var(--border--color--skills);
}

.pill--skills-b {
    --matching--background--color: var(--color--white);

    border: .1rem dashed var(--border--color--skills);
}

/*
    ELEMENTS/Indicators: Pills: Strong (New)
*/

.pill--strong {
    --matching--background--color: var(--matching--color--strong);
}

/*
    COMPONENTS/Cards: Articles as cards (Override/complement)
*/

.article--card .button--secondary,
.article--card .button--tertiary,
.article--card .button--share {
    --buttons--font--size: initial;
}

.article--card .article__footer {
    padding-top: calc(var(--card--padding--inners));
    padding-bottom: calc(var(--card--padding--inners));
}

.article--card .article__footer > * + * {
    margin-left: var(--card--padding--outers);
}

/*
    COMPONENTS/Lists: Skills (New)
*/

.list--pills .list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing--basis);
}

.list--skills .list__item, .list--pills .list .list__item {
    display: inline-flex;
}

/*
    COMPONENTS/Lists: Skills (Within WIDGETS/Details)
*/

.article--details .article__content__view__field__value .list--pills .list {
    margin-left: 0;
    padding-left: 0;
    column-gap: 1rem;
}

.article--details .article__content__view__field__value .list--pills .list li + li {
    margin-top: 0;
}

/*
    COMPONENTS/Lists: Skills (Within WIDGETS/Skills)
*/

.skills .list--skills:not(.list--skills--active) {
    display: none;
}

.skills .list--skills .list__item {
    margin-bottom: var(--spacer--s);
}

/* Media query to target mobile and tablet */
@media all and (max-width:1024px) {
    .skills .list--skills {
        overflow-x: scroll;
        white-space: nowrap;
    }

    .skills .list--skills::-webkit-scrollbar {
        display: none;
    }
}

/*
    COMPONENTS/Navigation: Steps bar (Override/complement)
*/

.list--steps::after {
    border-bottom-color: var(--color--grey--medium);
}

.list--steps .list__item__text__subtitle {
    background-color: var(--color--grey--medium);
}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .list--steps .list__item__text__subtitle {
        margin-bottom: -.6rem;
        width: 1.6rem;
        height: 1.6rem;
        text-indent: -999.9rem;
        overflow: hidden;
    }

}

/*
    COMPONENTS/Navigation: Tabs (Inverting clickable colors - commented and ready to use)
*/

/*
.tabs__list__item:not(.tabs__list__item--active),
.tabs__list__item:not(.tabs__list__item--active):link,
.tabs__list__item:not(.tabs__list__item--active):visited {
    color: inherit;
}

.tabs__list__item:not(.tabs__list__item--active):hover,
.tabs__list__item:not(.tabs__list__item--active):focus,
.tabs__list__item:not(.tabs__list__item--active):active {
    color: var(--color--clickeable);
}

.tabs__list__item--active,
.tabs__list__item--active:link,
.tabs__list__item--active:visited,
.tabs__list__item--active:hover,
.tabs__list__item--active:focus,
.tabs__list__item--active:active {
    color: var(--color--clickeable);
}

+TBD+
*/

/*
    WIDGETS/Attachment upload (New)
*/

.article--attachments-upload {
    border-radius: var(--boxes--border--radius);
    border-width: .1rem;
    border-style: dashed;
    border-color: var(--boxes--border--color);
    background-color: var(--boxes--background--color);
    padding: var(--boxes--padding--outers) var(--boxes--padding--outers);
}

.article--attachments-upload .article__header {
    margin-bottom: var(--boxes--padding--outers);
    border-bottom-width: .1rem;
    border-bottom-style: solid;
    border-bottom-color: var(--dividers--border--color);
    padding-bottom: var(--boxes--padding--outers);
}

.article--attachments-upload .article__header .fv {
    vertical-align: middle;
}

/*
    WIDGETS/Registered: Article (Override/complement)
*/

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .article--registered {
        margin: 0;
        background-color: unset;
        padding: 0;
    }

}

/*
    WIDGETS/Search: Visible (Override/complement)
*/

/* Media query to target only desktop */
@media all and (min-width:1025px) {
    .section[search-type="visible"] .section__header__text {
        display: flex;
        margin-bottom: var(--spacer--l);
    }

}

/*
    MODULES/Banner: Home (New)
*/

.banner--main--home {
    --banner--height: 30rem;
    background-image: var(--home__banner--background--image);
}

.banner--main--home .banner__wrapper {
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.banner--main--home .banner__wrapper > * {
    width: 100%;
}

.banner--main--home .banner__form {
    margin-top: var(--spacer--l);
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .banner--main--home {
        --banner--height: 29.4rem;

        height: var(--banner--height);
    }

}

/* Adjust banner to not cut people heads in the current image version. */

.banner.banner--main {
    background-position: 70% 10%;
}

/*
    MODULES/Banner: Secondary (New)
*/

.banner--secondary {
    background-color: var(--color--brand);
}

.banner--secondary .banner__wrapper {
    height: auto;
    justify-content: center;
}

.banner--secondary .banner__text__title__phrase {
    color: var(--color--white);
}

/* Media query to target only desktop */
@media all and (min-width:1025px) {
    .banner--secondary .banner__wrapper {
        padding-top: var(--spacer--xxxl);
        padding-bottom: var(--spacer--xxxl);
    }

    .banner--secondary--top + * {
        margin-top: var(--spacer--xl);
    }

    .banner--secondary .banner__text__title * + * {
        margin-left: var(--spacer--m);
    }

}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .banner--secondary .banner__text__title * + * {
        margin-left: var(--spacer--m);
    }

}

/* Media query to target mobile and tablet */
@media all and (max-width:1024px) {
    .banner--secondary .banner__wrapper {
        padding-top: var(--spacer--xl);
    }

    .banner--secondary .banner__text__title {
        text-align: center;
    }

    .banner--secondary .banner__text__title .banner__text__title__phrase {
        display: block;
        margin-bottom: var(--spacer--l);
    }

    .banner--secondary--top + * {
        margin-top: var(--spacer--s2);
    }

}

/* Media query to target only tablet */
@media all and (min-width:751px) and (max-width:1024px) {
    .banner--secondary .banner__text__title .button + .banner__text__title__conjunction,
    .banner--secondary .banner__text__title .banner__text__title__conjunction + .button {
        margin-left: var(--spacer--m);
    }

    .banner--secondary .banner__wrapper {
        padding-bottom: var(--spacer--xl);
    }

}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .banner--secondary .banner__wrapper {
        padding-bottom: var(--spacer--xxxl);
    }

    .banner--secondary .banner__text__title .button {
        width: 100%;
    }

    .banner--secondary .banner__text__title .button:nth-of-type(2) {
        margin-top: var(--spacer--l);
    }

    .banner--secondary .banner__text__title .banner__text__title__conjunction {
        display: none;
    }

}

/*
    MODULES/Slider (New)
*/

:root {
    --swiper__slide--gap: var(--grid--columns--gap);
    --swiper-navigation-size: 4.4rem;
}

.slider {
    position: relative;
}

.swiper-container {
    width: calc(100% - (var(--swiper__slide--gap)*2) - var(--swiper-navigation-size));
}

.swiper-slide {
    height: auto;
}

.swiper-slide .article--card {
    box-sizing: border-box;
    height: 100%;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    --swiper-theme-color: var(--color--black);
}

.swiper-button-next,
.swiper-button-prev {
    --swiper-theme-color: var(--color--brand);
    width: var(--swiper-navigation-size);
    height: var(--swiper-navigation-size);
    z-index: 8;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: calc(var(--swiper-navigation-size)/2);
}

.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
    right: 0;
}

.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
    left: 0;
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .swiper-container {
        width: calc(100% - (var(--swiper__slide--gap)*3) - var(--swiper-navigation-size));
    }

}

/*
    PAGETYPES/Search jobs: Cards: Result (Override/complement)
*/

.section--search-jobs .article--result {
    --result--border--radius: 0;
    --result--padding--outers--h: 0;
}

.section--search-jobs .article--result + .article--result {
    margin-top: 0;
}

.section--search-jobs .article--result + .article--result:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-top-width: 0.1rem;
    border-top-style: solid;
    border-top-color: var(--dividers--border--color);
}

/* PAGETYPES: Open positions: Results without toggle (Override/complement)
   -------------------------------------------------------------------------- */

/* Media query to target only desktop */
@media all and (min-width:750px) {
    .article--result.article--non-toggle .article__content {
        max-height: unset;
        visibility: visible;
        margin-top: var(--result--padding--inners--v);
    }

    .article--non-toggle .article__header__actions {
        display: none;
    }
 }

/* PAGETYPES: Reg/App methods: Article
   -------------------------------------------------------------------------- */

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .article--registered {
        margin: 0;
        background-color: unset;
        padding: 0;
    }

}

/* UTILITIES: XXX
   -------------------------------------------------------------------------- */
.article--view-more--content-box{
    border-radius: 1.60rem;
    box-shadow: 0.00rem 0.00rem 1rem 0.20rem rgba(0, 0, 0, 0.1);
    background-color: var(--color--grey--lighter);
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: var(--spacer--xxl);
    padding-right: var(--grid--laterals);
    padding-left: var(--grid--laterals);
    padding-bottom: var(--spacer--l);
    text-align: left;
}

/* Media query to target only desktop */
@media (min-width: 1025px) {
    .article--view-more--content-box{
        --article--width--max: var(--content--w--narrower);
    }
}

/* General Branding & Spacing Specifics */

/* Pagination Current Number Color */

.list-controls__pagination__item.currentPageLink {
    color: var(--color--brand--sub-1);
}

/* Footer Alignments */

.footer__rights {
    flex-direction: column;
}

.logo.logo--footer .logo--footer--img {
    position: relative;
    right: 1rem;
}

.footer__links__divider {
    color: var(--color--grey--darker);
}

/* Article Cards Tertiary Buttons */

.article--card .button--secondary,
.article--card .button--share,
.article--card .button--tertiary,
.clearButton,
.TIN_display_Anchor {
    --buttons--border--width: .2rem;
    --buttons--border--color: transparent;
}

.button--share:hover,
.article--card .button--tertiary:hover {
    --buttons--border--color: transparent;
    --buttons--background--color: transparent;
    color: var(--color--buttons--sub-5);
}

.button--share:focus,
.article--card .button--tertiary:focus,
.article--card .button:focus {
    --buttons--outline--width: 0;
    --buttons--background--color: transparent;
    --buttons--border--color: var(--color--black);
    --buttons--border--width: .2rem;
    color: var(--color--brand);
    outline-width: 0;
}

.button--share:hover,
.article--card .button--tertiary:hover {
    --buttons--border--color: transparent;
    --buttons--background--color: transparent;
    color: var(--color--buttons--sub-5);
}

.button--share:active,
.article--card .button--tertiary:active {
    color: var(--color--buttons);
    text-decoration: underline;
}

.article.article--card.article--open .article__footer {
    column-gap: 1.5rem;
}

/* Checkbox Buttons Colors */

.form input[type=checkbox]:focus-visible {
    box-shadow: 0 0 0 .2rem var(--color--background), 0 0 0 .4rem var(--color--brand--sub-3);
}

/* Alert message for already applied job */

.alert, .duplicateWarningMessage {
    background-color: var(--color--grey--light2);
}

/* Password reminders texts block in success page and choose password page. */

.success-password-reminder {
    margin-top: var(--spacer--l);
}

.choose-password-reminder {
    margin-bottom: var(--spacer--s2);
}

/* Static Pages Content Styles & Layout */

.static-page-content-title-brand {
    color: var(--color--brand);
    font-weight: bold;
    line-height: 1.5;
    font-family: var(--font--alt);
}

.body--veterans .static-page-content-title-brand {
    text-transform: uppercase;
    font-size: 2.6rem;
    letter-spacing: normal;
}

.body--veterans .static-page-content-title-sub-brand {
    color: var(--color--brand--sub-3);
    text-transform: uppercase;
    font-family: var(--font--alt);
    font-style: italic;
    font-size: 4.8rem;
    font-weight: normal;
    letter-spacing: normal;
}

.static-page-content-text {
    font-size: 1.8rem;
    font-family: var(--font--alt);
    letter-spacing: normal;
    line-height: 1.5;
}

.body--veterans .static-page-content-text,
.body--compensation .static-page-content-text {
    margin-top: 2rem;
}

.body--veterans .static-page-grid .grid__item:nth-child(2),
.body--compensation .static-page-grid .grid__item {
    padding-left: 0;
}

.body--veterans .static-page-grid:nth-child(2) .static-page-content-title-brand:nth-child(2) {
    text-transform: none;
    font-size: 3.6rem;
}

.body--veterans .static-page-grid:nth-child(2) .static-page-content-title-sub-brand:nth-child(2) {
    text-transform: none;
    font-weight: bold;
    font-style: initial;
    font-size: 2.6rem;
}

.body--veterans .static-page-content-title-brand.lowercase {
    text-transform: none;
}

.body--compensation .static-page-content-title-brand {
    font-size: 3.6rem;
    text-transform: uppercase;
}

.body--compensation .training-section .static-page-content-title-brand,
.body--compensation .technology-section .static-page-content-title-brand {
    text-align: center;
}

.body--compensation .static-sub-title {
    font-size: 2rem;
    margin-top: 2.5rem;
    text-transform: uppercase;
}

.body--compensation .reference-link {
    font-style: italic;
}

.body--compensation .static-page-content-text.compensation-sub-text,
.body--compensation .static-page-content-text.training-sub-text,
.body--compensation .static-page-content-text.technology-sub-text  {
    font-size: var(--spacer--m);
    font-family: var(--font);
    line-height: 1.4;
}

.body--compensation .training-section .static-sub-title--lowcase {
    text-align: center;
    text-transform: none;
}

.body--compensation .training-section .training-list-sub-title {
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
}

.body--compensation .training-section .list__item {
    padding-left: 0;
}

.body--compensation .technology-section .grid__item .static-sub-title {
    font-size: 1.8rem;
    text-transform: none;
}

.body--compensation .technology-section .section,
.body--compensation .technology-section .static-sub-title {
    margin-top: 0
}

.body--compensation .technology-section .technology-text {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.body--compensation .static-page-content-text.technology-sub-text  {
    margin-top: 0;
    margin-bottom: 2rem;
}


/* Desktop Static Pages Media Query */

@media (min-width: 751px) {
    .body--working-with-optavise .static-page-grid:nth-child(1) {
        margin-top: 3.7rem;
    }
    .body--working-with-optavise .static-page-grid:nth-child(2) {
        margin-top: 9.6rem;
    }
    .body--veterans .static-page-grid .grid__item .veterans-image,
    .body--compensation .static-page-grid .grid__item .compensation-image {
        width: 85%; 
    }
    .body--working-with-optavise .static-page-grid .grid__item:nth-child(2) {
        padding-left: var(--spacer--xxxl);
    }
    .body--veterans .static-page-grid:nth-child(2) .grid__item:nth-child(2) {
        padding-left: 15rem;
    }
    .body--compensation .static-page-grid:nth-child(1) .grid__item:nth-child(2) {
        padding-top: 10rem;
    }
    .body--compensation .technology-section .grid__item.technology-image {
        padding-left: 3.2rem;
    }
    .body--working-with-optavise .static-page-grid .button-bar {
        margin-top: 10.8rem;
        margin-bottom: 9.6rem;
    }
    .body--veterans .static-page-grid .button-bar {
        margin-top: 5.8rem;
        margin-bottom: 5.8rem;
    }
}

/* Mobile Static Pages Media Query */

@media (max-width: 750px) {
    .body--working-with-optavise .static-page-grid .grid__item,
    .body--veterans .static-page-grid .grid__item,
    .body--compensation .static-page-grid .grid__item {
        padding-left: 0;
    }
    .body--working-with-optavise .static-page-grid:nth-child(2) {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .body--veterans .static-page-content-title-brand {
        font-size: 2.2rem;
    }
    .body--veterans .static-page-content-title-brand.lowercase {
        text-transform: none;
    }
    .body--veterans .static-page-content-title-sub-brand {
        font-size: 3.2rem;
    }
    .body--veterans .static-page-grid:nth-child(2) .static-page-content-title-sub-brand.mobile-sub-title {
        font-size: 2.2rem;
    }
    .body--compensation .static-page-content-title-brand {
        font-size: 2.8rem;
    }
    .body--compensation .training-section .static-sub-title {
        font-size: 1.8rem;
    }
    .body--compensation .technology-section .technology-text {
        text-align: left;
        margin-top: 1rem;
    }
}

.menu--visible .menu__list:first-of-type {
    flex-wrap: nowrap;
    justify-content: center;
}

.menu--visible .menu__item {
    max-width: 17rem;
}

.menu--visible .menu__link {
    white-space: wrap;
}