.career-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.join-page {
    background:
        radial-gradient(circle at 8% 13%, rgba(79, 224, 136, .12), transparent 25rem),
        linear-gradient(180deg, #f8fffb 0, #fff 34rem);
}

.join-hero {
    background:
        radial-gradient(circle at 74% 18%, rgba(86, 226, 149, .22), transparent 18rem),
        linear-gradient(110deg, #f5fff8 0%, #eefcf4 55%, #eafaff 100%);
}

.join-hero-grid {
    min-height: 585px;
}

.join-hero .page-hero-copy h1 {
    max-width: 630px;
}

.join-hero .page-hero-copy h1 span {
    display: block;
    color: var(--green);
}

.join-hero-visual {
    position: relative;
    align-self: end;
    min-width: 0;
    margin: 0;
}

.join-hero-visual::before {
    position: absolute;
    z-index: 0;
    right: 5%;
    bottom: 3%;
    width: 86%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(174, 247, 201, .38);
    content: "";
}

.join-hero-visual picture {
    position: relative;
    z-index: 1;
    display: block;
}

.join-hero-visual img {
    position: relative;
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center bottom;
}

.join-note {
    position: absolute;
    z-index: 2;
    max-width: 165px;
    padding: 11px 15px;
    border-radius: 17px;
    color: #08704a;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 26px rgba(15, 64, 88, .12);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
}

.join-note--one {
    top: 11%;
    left: 2%;
    transform: rotate(-4deg);
}

.join-note--two {
    top: 15%;
    right: 0;
    color: #1268a7;
    transform: rotate(3deg);
}

.join-section-heading {
    max-width: 780px;
    margin: 0 auto 28px;
    text-align: center;
}

.join-section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.join-section-heading > p:last-child {
    margin: 0;
    color: var(--ink-soft);
}

.workplace-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.workplace-grid article {
    min-width: 0;
    padding: 25px 20px;
    border: 1px solid rgba(7, 25, 67, .08);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 15px 38px rgba(15, 64, 88, .07);
    text-align: center;
}

.workplace-grid article > span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #1bcc76, #008f4d);
    box-shadow: 0 10px 22px rgba(0, 151, 80, .18);
    font-size: 24px;
    font-weight: 900;
}

.workplace-grid article:nth-child(2) > span { background: linear-gradient(145deg, #bc83ff, #7541cc); }
.workplace-grid article:nth-child(3) > span { background: linear-gradient(145deg, #5ba9ff, #176fe4); }
.workplace-grid article:nth-child(4) > span { background: linear-gradient(145deg, #ffc94d, #f0a400); }

.workplace-grid h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.18;
}

.workplace-grid p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

.career-openings {
    padding-block: 64px;
    scroll-margin-top: 92px;
}

.career-list {
    display: grid;
    gap: 15px;
}

.career-card {
    overflow: clip;
    border: 1px solid rgba(7, 25, 67, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 14px 36px rgba(15, 64, 88, .07);
}

.career-card summary {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 108px;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
}

.career-card summary::-webkit-details-marker {
    display: none;
}

.career-card summary:focus-visible {
    outline: 3px solid rgba(8, 120, 255, .35);
    outline-offset: -4px;
}

.career-role-icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 17px;
    color: #e04072;
    background: #fff0f5;
}

.career-role-icon svg {
    width: 35px;
    height: 35px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.career-card--green .career-role-icon,
.career-card--mint .career-role-icon { color: #079b55; background: #e6fbef; }
.career-card--blue .career-role-icon { color: #0878ff; background: #eaf5ff; }
.career-card--gold .career-role-icon { color: #d88800; background: #fff6d9; }
.career-card--purple .career-role-icon { color: #7946c6; background: #f2eaff; }

.career-summary-copy {
    min-width: 0;
}

.career-summary-copy strong,
.career-summary-copy small {
    display: block;
}

.career-summary-copy strong {
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 1.2;
}

.career-summary-copy small {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

.career-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 800;
}

.career-toggle b {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    font-size: 23px;
    line-height: 1;
    transition: transform 180ms ease;
}

.career-card[open] .career-toggle b {
    transform: rotate(45deg);
}

.career-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 38px;
    padding: 0 28px 28px 112px;
    border-top: 1px solid rgba(7, 25, 67, .08);
}

.career-details > div:not(.career-apply) {
    padding-top: 24px;
}

.career-details h3 {
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.career-details ul {
    margin: 0 0 15px;
    padding-left: 20px;
    color: var(--ink-soft);
}

.career-details li + li {
    margin-top: 6px;
}

.career-apply {
    grid-column: 1 / -1;
}

.career-cta {
    background: linear-gradient(115deg, #d9ffe5, #c9f9e2 55%, #dcf7ff);
}

@media (max-width: 980px) {
    .join-hero-visual {
        width: min(100%, 720px);
        height: var(--hero-tablet-media-height);
        min-height: var(--hero-tablet-media-height);
        align-self: start;
        margin-inline: auto;
    }

    .join-hero-visual picture {
        width: 100%;
    }

    .join-hero-visual img {
        width: 100%;
        height: var(--hero-tablet-media-height);
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
    }
}

@media (max-width: 900px) {
    .workplace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .career-details {
        padding-left: 28px;
    }

}

@media (max-width: 680px) {
    .join-hero-visual {
        width: 100%;
        height: var(--hero-mobile-media-height);
        min-height: var(--hero-mobile-media-height);
    }

    .join-hero-visual img {
        height: var(--hero-mobile-media-height);
    }

    .join-note {
        max-width: 135px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .workplace-grid,
    .career-details {
        grid-template-columns: 1fr;
    }

    .career-card summary {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 13px;
        padding: 16px;
    }

    .career-role-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .career-role-icon svg {
        width: 28px;
        height: 28px;
    }

    .career-summary-copy strong {
        font-size: 17px;
    }

    .career-toggle {
        grid-column: 2;
        justify-self: start;
    }

    .career-details {
        gap: 4px;
        padding: 0 20px 24px;
    }

    .career-apply {
        margin-top: 12px;
    }

}

/* Match the careers hero to the shared desktop hero frame. */
@media (min-width: 981px) {
    .join-hero-grid {
        min-height: var(--hero-desktop-min-height);
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        align-items: start;
        gap: var(--hero-desktop-gap);
        padding-block: var(--hero-desktop-padding);
    }

    .join-hero-visual {
        width: 100%;
        height: var(--hero-desktop-media-height);
        min-height: var(--hero-desktop-media-height);
        align-self: start;
    }

    .join-hero-visual picture {
        width: 100%;
    }

    .join-hero-visual img {
        width: 100%;
        height: var(--hero-desktop-media-height);
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
    }
}

@media (prefers-reduced-motion: reduce) {
    .career-toggle b {
        transition: none;
    }
}
