:root {
    color-scheme: light;
    --brown: #532c23;
    --orange: #d5482a;
}

* {
    box-sizing: border-box;
}

html {
    background: #f4f4f4;
}

body {
    margin: 0;
    color: var(--brown);
    background: #f4f4f4;
    font-family: "Arial Narrow", "Nimbus Sans Narrow", Arial, sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0;
}

#wrapper {
    max-width: 900px;
    margin: 16px auto;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.20);
    background-color: #fff;
    overflow: hidden;
}

#wrapper .hide {
    display: none;
}

.job-header {
    padding-top: 43px;
}

.header-image {
    display: block;
    width: calc(100% - 128px);
    max-width: 772px;
    height: auto;
    margin: 0 auto;
}

.job-heading {
    padding: 0 68px;
    text-align: center;
}

h1,
h3,
p,
ul {
    margin: 0;
}

h1 {
    margin-top: 45px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
}

.gender {
    margin-top: 16px;
    font-size: 23px;
    line-height: 1;
}

.job-meta {
    margin-top: 17px;
    font-size: 19px;
    line-height: 31px;
}

.job-content {
    padding: 0 68px 58px;
}

.section h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.12;
}

.responsibilities {
    margin-top: 36px;
}

.section + .section,
.qualifications + .incentives {
    margin-top: 24px;
}

ul {
    padding: 0;
    list-style: none;
}

.section ul {
    margin-top: 10px;
}

.section li {
    position: relative;
    padding-left: 27px;
}

.section li::before {
    position: absolute;
    top: 7px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    content: "";
}

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

.qualifications > p:first-of-type {
    margin-top: 22px;
}

.advantage-label {
    margin-top: 18px;
}

.qualifications .advantage-list {
    margin-top: 2px;
}

.qualifications + .incentives {
    margin-top: 25px;
}

.incentives li + li {
    margin-top: 5px;
}

.section strong,
.contact strong {
    font-weight: 700;
}

.further-information {
    margin-top: 24px;
}

.further-information p:first-of-type {
    margin-top: 10px;
}

.further-information p + p {
    margin-top: 8px;
}

.contact {
    margin-top: 10px;
}

.contact a {
    color: var(--orange);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 1px;
}

.application-lead {
    line-height: 1.24;
}

.incomplete-note {
    margin-top: 12px;
}

.questions-intro {
    margin-top: 18px;
}

.contact-line {
    margin-top: 10px;
}

.privacy-link {
    margin-top: 17px;
}

.career-footer {
    display: grid;
    grid-template-columns: 101px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 16px;
    margin-top: 25px;
}

.career-footer img {
    display: block;
    max-width: 100%;
    height: auto;
}

.career-footer p {
    line-height: 21px;
    text-align: justify;
}

.career-footer p br {
    display: block;
}

.award-seal {
    width: 68px;
    justify-self: end;
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
        line-height: 1.32;
    }

    .job-header {
        padding-top: 24px;
    }

    .header-image {
        width: calc(100% - 32px);
    }

    .job-heading,
    .job-content {
        padding-right: 22px;
        padding-left: 22px;
    }

    h1 {
        margin-top: 28px;
        font-size: 27px;
    }

    .gender {
        font-size: 19px;
    }

    .job-meta {
        font-size: 16px;
        line-height: 1.5;
    }

    .responsibilities {
        margin-top: 32px;
    }

    .section h3 {
        font-size: 17px;
        line-height: 1.2;
    }

    .career-footer {
        grid-template-columns: 86px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
    }

    .career-footer p {
        text-align: left;
    }

    .career-footer p br {
        display: none;
    }

    .award-seal {
        grid-column: 2;
        width: 58px;
        justify-self: start;
    }
}

@media (max-width: 430px) {
    h1 {
        font-size: 24px;
    }

    .job-content {
        padding-bottom: 36px;
    }

    .section li {
        padding-left: 23px;
    }

    .career-footer {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
    }
}
