/**
 * EX Career block styles (careers accordion + career CTA).
 * Moved from library/block-assets/ (remaster M7-3, E-track). Changes vs the
 * legacy file — everything else is a byte-copy:
 *  - `.entry` selectors renamed to `.career--entry` (markup renamed with them);
 *  - tie guards: h4 / career-cta h2 / career-cta p selectors got a
 *    `.section--careers` prefix so they beat wp-blocks.css (P30) by
 *    SPECIFICITY, not load order (career page now loads wp-blocks instead of
 *    gb-styles; these elements sat outside the old .gb--styles wrapper);
 *  - entry.css successor rules + .title h3 neutralizer appended at the bottom.
 * NB: the #footer .button--send_request hide rode along from the legacy file.
 */
.section--careers {
    margin-top: 112px;
    margin-bottom: 120px;
}

.career-content {
    display: none;
}

.career-item {
    margin-bottom: -1px;
    border-bottom: 1px solid var(--Neutrals-Dark-Grey);
}

.career-item .row {
    display: flex;
    gap: 0 32px;
    flex-wrap: wrap;
}

.section--careers .career-item h4 {
    color: var(--Neutrals-Black);
    margin-bottom: 24px;
    font-weight: normal;
}


.career-item li:last-child {
    margin-bottom: 0;
}


.career-item li {
    margin: 0 0 10px;
    padding: 0 0 0 40px;
    position: relative;
}

.career-item li li {
    margin-bottom: 0;
    margin-left: 6px;
    padding-left: 16px;
}

.career-item li li:before {
    background: currentColor;
    width: 4px;
    height: 4px;
    margin: 6px 0 0;
}

.career-item li:before {
    content: '';
    width: 16px;
    height: 16px;
    top: 3px;
    left: 0;
    margin: 0;
    background: var(--Neutrals-Light-Sand);
}

.career-item .col {
    width: calc(50% - 16px);
    color: var(--Neutrals-Dark-Grey);
}

.section--careers .col-image {
    width: 48.8%;
}

.section--careers .top-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 112px;
}

#footer .button--send_request {
    display: none !important;
}

.section--careers .col-text h3 {
    margin-bottom: 32px;
}

.section--careers img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section--careers .col-text {
    margin-left: auto;
    width: 42.63565%;
}

.career-item .col .career--entry {
    max-width: 475px;
}

.career-item .career--entry {
    /* max-width: 630px; */
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 22px;
}

.career-item .cta {
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
    background: var(--Neutrals-Light-Sand);
}

.career-item .title {
    padding: 32px 0;
    user-select: none;
    cursor: pointer;
    padding-right: 64px;
    position: relative;
    border-top: 1px solid var(--Neutrals-Dark-Grey);
}

.career-item.active .title:before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='27' height='27'><path stroke='%234E4E3E' stroke-linecap='round' d='M1.836 13.84h25'/></svg>");

}

.career-item .title:before {
    position: absolute;
    top: 0;
    transition: all .2s ease;
    right: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='27' height='27'><path stroke='%234E4E3E' stroke-linecap='round' d='M13.836 1.34v25M1.336 13.84h25'/></svg>") no-repeat;
    width: 27px;
    height: 27px;
    content: '';
    margin: auto;
    bottom: 0;
}

.career-cta {
    margin-top: 100px;
    background: var(--Gradient-Green);
    position: relative;
    padding: 48px;
    text-align: center;
    color: var(--Neutrals-White);
}

.section--careers .career-cta h2 {
    color: var(--Neutrals-White);
    margin-bottom: 24px;
}


.career-cta .button--item {
    background: var(--Neutrals-White);
}

.career-cta .button--item span {
    color: var(--Neutrals-Black);
}

.career-cta .button--item::after {
    background-color: var(--Neutrals-White-Sand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='12px' height='12px' viewBox='0 0 12 12'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;stroke:%23282819;stroke-width:1.1;%7D .st1%7Bfill:none;stroke:%23282819;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;%7D %3C/style%3E%3Cline class='st0' x1='0' y1='6' x2='11.3' y2='6'/%3E%3Cpath class='st1' d='M8.27,9.13L11.34,6L8.27,2.87'/%3E%3C/svg%3E");

}


@media (hover: hover) {
    .career-cta .button--item:hover::after {
        background-color: var(--Neutrals-Medium-Sand);
    }
}

.section--careers .career-cta p {
    color: var(--Neutrals-White);
    margin-bottom: 48px;
}

.career-cta .center {
    max-width: 410px;
    margin: auto;
}

.career-cta::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 60%;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='698' height='400'><path fill='%23282819' fill-rule='evenodd' d='M0 399.975h406.74L698 0H0v400-.025Z' clip-rule='evenodd' opacity='.05'/></svg>") no-repeat 100% 0;
    background-size: cover;
    bottom: 0;
}




@media (max-width: 1400px) {
    .section--careers .col-image {
        width: 48.7%;
    }

    .section--careers .col-text {
        width: calc(51.3% - 30px);
    }
}

@media (max-width: 1023px) {
    .career-item .col {
        width: 100%;
    }

    .career-item .col .career--entry {
        max-width: 710px;
    }
}

@media (max-width: 767px) {
    .section--page_header {
        min-height: 0;
    }
    .section--careers {
        margin-top: 64px;
        margin-bottom: 32px;
    }

    .section--careers .top-row {
        flex-direction: column-reverse;
        margin-bottom: 40px;
    }

    .career-cta {
        padding: 48px var(--Mobile-Padding);
        margin: 32px calc(var(--Mobile-Padding) * -1);
    }

    .section--careers .col-text h3 {
        margin-bottom: 40px;
    }

    .section--careers .col-image {
        width: 100%;
        margin-top: 64px;
    }

    .section--careers .col-text {
        width: 100%;
    }
}

/* --- remaster M7-3 additions ------------------------------------------- */

/* entry.css successor: the retired `.entry p:not(:last-child)` 24px rhythm,
   re-scoped to this block. The base rule pins last-child p back to 0 now that
   wp-blocks.css gives every content p a 1em bottom margin. */
.career-item .career--entry p {
    margin-bottom: 0;
}
.career-item .career--entry p:not(:last-child) {
    margin-bottom: 24px;
}

/* Tie guard: the accordion title h3 never had a bottom margin (elements.css
   reset); keep it at 0 against wp-blocks.css h3 { margin-bottom: 24px }. */
.career-item .title h3 {
    margin-bottom: 0;
}
