/* Shared Careers container */

.careers-container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* Hero */

.careers-hero {
    padding: 85px 0;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(78, 127, 42, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--navy),
            #10285d 60%,
            var(--blue)
        );
    color: white;
}

.careers-kicker {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.careers-hero .careers-kicker {
    color: var(--gold);
}

.careers-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.careers-hero-description {
    max-width: 700px;
    margin: 22px 0 28px;
    color: #dbe4ff;
    font-size: 18px;
    line-height: 1.75;
}

.careers-hero .primary-button {
    background: white;
    color: var(--blue);
}

.careers-hero .primary-button:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Position listing */

.careers-openings {
    padding: 76px 0;
    background: var(--page);
}

.job-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-top: 4px solid var(--green);
    border-radius: 16px;
    background: white;
    box-shadow: 0 12px 32px rgba(7, 21, 47, 0.07);
}

.job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 40px;
    border-bottom: 1px solid #e1e7ef;
    background: #f2f6fc;
}

.job-card-header > div {
    min-width: 0;
}

.job-card-header h3 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
    overflow-wrap: break-word;
}

.job-card-header > .button {
    flex-shrink: 0;
}

.job-card-body {
    padding: 36px 40px 40px;
}

/* Requirements and responsibilities */

.job-section + .job-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e1e7ef;
}

.job-section h4 {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 21px;
    line-height: 1.35;
}

.job-section ul {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
}

.job-section li {
    padding-left: 4px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.job-section li + li {
    margin-top: 8px;
}

.job-section li::marker {
    color: var(--green);
}

.job-skills-list strong {
    color: var(--text);
}

/* Résumé email line */

.job-apply {
    margin-top: 36px;
    padding: 24px 28px;
    border: 1px solid #dce6d3;
    border-radius: 12px;
    background: #f3f7ef;
}

.job-apply p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.job-apply a {
    color: var(--blue);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.job-apply a:hover {
    color: var(--green);
}

/* Button movement */

.careers-page .button {
    max-width: 100%;
    text-align: center;
    white-space: normal;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.careers-page .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(7, 21, 47, 0.18);
}

/* Tablet */

@media (max-width: 900px) {
    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Phone */

@media (max-width: 600px) {
    .careers-container {
        width: calc(100% - 32px);
    }

    .careers-hero {
        padding: 56px 0;
    }

    .careers-hero-description {
        font-size: 17px;
    }

    .careers-openings {
        padding: 48px 0;
    }

    .job-card-header,
    .job-card-body {
        padding: 24px 20px;
    }

    .job-card-header {
        gap: 20px;
    }

    .job-section + .job-section {
        margin-top: 26px;
        padding-top: 24px;
    }

    .job-apply {
        padding: 20px 18px;
    }

    .job-card-header > .button {
        width: 100%;
    }
}