/*------------------------------------*\
    Careers jobs listings
\*------------------------------------*/

#hireology_iframe,
#hireology_iframe iframe {
    display: none !important;
}

.fx-careers-jobs {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px 40px;
    color: var(--text);
}

.fx-careers-jobs__status {
    margin: 20px 0;
    text-align: center;
}

.fx-careers-jobs__status--error {
    color: var(--coral);
}

/* Figma 12024:3957 - Available Jobs toolbar + Dropdown Input row */
.fx-careers-jobs__toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin: 0 0 30px;
    width: 100%;
}

.fx-careers-jobs__toolbar-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    width: 100%;
}

.fx-careers-jobs__heading {
    margin: 0;
    font-family: 'Spartan', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    white-space: nowrap;
}

.fx-careers-jobs__clear {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.fx-careers-jobs__clear:hover,
.fx-careers-jobs__clear:focus {
    text-decoration: underline;
}

.fx-careers-jobs__clear--desktop {
    display: none;
    margin-left: auto;
    text-align: right;
}

.fx-careers-jobs__clear--mobile {
    display: block;
    margin-top: 4px;
}

/* Figma 12026:5961 - mobile Filters | Sort By row */
.fx-careers-jobs__mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.fx-careers-jobs__filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.fx-careers-jobs__filters-count {
    color: var(--blue);
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.fx-careers-jobs__chevron {
    display: block;
    width: 16px;
    height: 10px;
    flex: 0 0 auto;
    color: var(--text);
    transition: transform 0.2s ease;
}

.fx-careers-jobs__filters-toggle[aria-expanded="true"] .fx-careers-jobs__chevron {
    transform: rotate(180deg);
}

.fx-careers-jobs__sort-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.fx-careers-jobs__sort-inline-label {
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}

.fx-careers-jobs__sort-inline-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fx-careers-jobs__sort-inline-control select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    border: 0;
    background: transparent;
}

.fx-careers-jobs__sort-inline-value {
    color: var(--blue);
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.fx-careers-jobs__filters {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
}

.fx-careers-jobs__filters.is-open {
    display: flex;
}

.fx-careers-jobs__filter--sort {
    display: none;
}

.fx-careers-jobs__filter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    width: 100%;
    min-width: 0;
}

.fx-careers-jobs__filter-label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

/* Dropdown Input (Figma Frame 1): 43px tall, divider @ right 46px, chevron 16x10 @ right 15px */
.fx-careers-jobs__select-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 43px;
    background: var(--white);
    border: 1px solid #add5f4;
    border-radius: 4px;
}

/* White rail covers native select arrow; thick rounded chevron (Figma down-chevron). */
.fx-careers-jobs__select-wrap:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M1.5 1.75 8 8.25 14.5 1.75' stroke='%23172549' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px 10px;
    pointer-events: none;
    z-index: 3;
}

.fx-careers-jobs__select-wrap:after {
    content: "";
    position: absolute;
    top: 0;
    right: 46px;
    bottom: 0;
    width: 1px;
    background: #add5f4;
    pointer-events: none;
    z-index: 3;
}

/* Invisible native select sits on top for interaction; visible value is flex-centered. */
.fx-careers-jobs__filter select {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 0 !important;
    border-radius: 4px;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: transparent;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
}

.fx-careers-jobs__filter select::-ms-expand {
    display: none;
}

.fx-careers-jobs__select-value {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 62px 0 15px;
    color: rgba(0, 44, 87, 0.75);
    font-family: 'Spartan', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    /* Spartan cap ink sits ~2px above geometric mid (measured on live). */
    transform: translateY(2px);
}

.fx-careers-jobs__filter select:hover,
.fx-careers-jobs__filter select:active,
.fx-careers-jobs__filter select:focus,
.fx-careers-jobs__filter select:focus-visible {
    outline: none;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.fx-careers-jobs__select-wrap:focus-within {
    box-shadow: 0 0 0 2px rgba(57, 86, 163, 0.35);
}

.fx-careers-jobs__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fx-careers-jobs__empty {
    margin: 0;
    padding: 24px;
    text-align: center;
    background: var(--light-blue);
    border-radius: 10px;
}

.fx-careers-jobs__card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    padding: 24px 20px;
    background: var(--light-blue);
    border: 1.5px solid var(--light-blue);
    border-radius: 10px;
}

.fx-careers-jobs__card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

.fx-careers-jobs__card-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
}

.fx-careers-jobs__card-meta,
.fx-careers-jobs__card-aside {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fx-careers-jobs__card-aside {
    align-items: flex-start;
}

.fx-careers-jobs__meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.fx-careers-jobs__meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    min-height: 22px;
    margin-top: 2px;
    color: var(--blue);
    font-size: 16px;
    line-height: 1;
}

.fx-careers-jobs__meta-icon i {
    display: block;
    font-size: 16px;
    line-height: 1;
}

.fx-careers-jobs__meta-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* Figma 12021:3600 Frame 45 — 204 x 52, pad 14/19/13, gap 60, arrow 47 x 14. */
.fx-careers-jobs__apply {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: 204px;
    min-width: 204px;
    height: 52px;
    margin-top: 8px;
    padding: 14px 66px 13px 19px;
    border: 0;
    border-radius: 40px;
    background: var(--white);
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.fx-careers-jobs__apply:hover,
.fx-careers-jobs__apply:focus {
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
}

.fx-careers-jobs__apply:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* Same glyph/size as theme .btn::after (47px); absolute so height stays 52px. */
.fx-careers-jobs__apply .icon-arrow-long {
    position: absolute;
    top: 50%;
    right: 19px;
    display: block;
    transform: translateY(-50%);
    font-size: 47px;
    line-height: 1;
    pointer-events: none;
}

/* Figma 12024:3895 Frame 93 — 60px circles, 20px gap. */
.fx-careers-jobs__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 0;
}

.fx-careers-jobs__page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.fx-careers-jobs__page-btn i {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.fx-careers-jobs__page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fx-careers-jobs__page-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

@media (min-width: 768px) {
    .fx-careers-jobs {
        padding: 0 20px 60px;
    }

    .fx-careers-jobs__heading {
        font-size: 30px;
    }

    .fx-careers-jobs__mobile-bar {
        display: none;
    }

    .fx-careers-jobs__clear--desktop {
        display: inline-block;
    }

    .fx-careers-jobs__clear--mobile {
        display: none;
    }

    .fx-careers-jobs__filters,
    .fx-careers-jobs__filters.is-open {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }

    .fx-careers-jobs__filter,
    .fx-careers-jobs__filter--sort {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
    }

    .fx-careers-jobs__select-value {
        font-size: 18px;
    }

    .fx-careers-jobs__card {
        padding: 28px 24px;
    }

    .fx-careers-jobs__card-title {
        font-size: 22px;
    }

    .fx-careers-jobs__meta-row {
        font-size: 16px;
    }
}

/* Two-across cards only when there is enough width (avoids smushing near ~768-900px). */
@media (min-width: 992px) {
    .fx-careers-jobs__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 32px;
        align-items: stretch;
    }

    .fx-careers-jobs__card {
        height: 100%;
        padding: 30px 24px;
    }

    .fx-careers-jobs__card-body {
        flex-direction: row;
        gap: 20px;
        align-items: stretch;
    }

    .fx-careers-jobs__card-meta {
        flex: 1 1 auto;
        min-width: 0;
    }

    .fx-careers-jobs__card-aside {
        flex: 0 0 205px;
        justify-content: space-between;
        min-height: 100%;
    }

    .fx-careers-jobs__apply {
        margin-top: auto;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .fx-careers-jobs {
        padding: 0 0 80px;
    }
}
