/* [sf_job_description] - job description sections from SF in the site design.
   Heading hierarchy on the job page: card heading (Role Overview / Perks And Benefits / About) 32px
   > section title 22px > label line ("Must Have:") 18px bold > text 18px light. */

/* Card headings of the job page. Their size is set inline in Elementor (1.5rem), so it is
   overridden here - only on pages that show a job description. */
body:has(.sf-job-description) .elementor-widget-heading h2.elementor-heading-title > span[style*="font-size: 1.5rem"] {
    font-size: 2rem !important;
    line-height: 1.2;
}

.sf-job-description {
    font-family: inherit;
}

.sf-job-description .sf-jd-section + .sf-jd-section {
    margin-top: 32px;
}

.sf-job-description .sf-jd-title {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    color: #011e3f;
}

.sf-job-description .sf-jd-body,
.sf-job-description .sf-jd-body p,
.sf-job-description .sf-jd-body li {
    font-family: inherit;
    font-size: 18px;
    font-weight: 300;
    line-height: 27px;
    color: #707070;
}

.sf-job-description .sf-jd-body p {
    margin: 0 0 12px;
}

.sf-job-description .sf-jd-body p.sf-jd-label {
    margin: 16px 0 8px;
    font-weight: 600;
    color: #011e3f;
}

.sf-job-description .sf-jd-body > p.sf-jd-label:first-child {
    margin-top: 0;
}

.sf-job-description .sf-jd-body ul,
.sf-job-description .sf-jd-body ol {
    margin: 0 0 12px;
    padding-inline-start: 1.25em;
}

.sf-job-description .sf-jd-body li {
    margin: 0 0 6px;
}

.sf-job-description .sf-jd-body > :last-child,
.sf-job-description .sf-jd-body li:last-child,
.sf-job-description .sf-jd-highlight > :last-child {
    margin-bottom: 0;
}

/* Highlighted blocks: the Job Description text and the "Must Have" requirements.
   45px radius per the new site design. */
.sf-job-description .sf-jd-section--highlight .sf-jd-body,
.sf-job-description .sf-jd-highlight {
    padding: 28px 40px;
    border-radius: 45px;
    background: #f2f6fb;
}

.sf-job-description .sf-jd-highlight {
    margin: 0 0 16px;
}

/* Text inside the highlighted blocks is a step heavier than the regular text */
.sf-job-description .sf-jd-section--highlight .sf-jd-body p,
.sf-job-description .sf-jd-section--highlight .sf-jd-body li,
.sf-job-description .sf-jd-highlight p,
.sf-job-description .sf-jd-highlight li {
    font-weight: 400;
}

.sf-job-description .sf-jd-section--highlight .sf-jd-body p.sf-jd-label,
.sf-job-description .sf-jd-highlight p.sf-jd-label {
    font-weight: 600;
}

.sf-job-description .sf-jd-highlight > p.sf-jd-label {
    margin-top: 0;
}

.sf-job-description .sf-jd-body strong,
.sf-job-description .sf-jd-body b {
    font-weight: 600;
}

@media (max-width: 767px) {
    body:has(.sf-job-description) .elementor-widget-heading h2.elementor-heading-title > span[style*="font-size: 1.5rem"] {
        font-size: 1.625rem !important;
    }

    .sf-job-description .sf-jd-section + .sf-jd-section {
        margin-top: 26px;
    }

    .sf-job-description .sf-jd-title {
        font-size: 20px;
        line-height: 26px;
    }

    .sf-job-description .sf-jd-section--highlight .sf-jd-body,
    .sf-job-description .sf-jd-highlight {
        padding: 22px 22px;
    }
}
