@charset "utf-8";

:root {
    font-size: 16px;
    --green: #00823e;
    --unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #000;
    font-family: "Arial", sans-serif;
    font-size: calc(0.859375 * var(--unit));
    line-height: 1.4;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
	position: relative;
	max-width: 50rem;
	margin: 1rem auto;
	overflow: hidden;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(4.75 * var(--unit));
    padding: calc(0.5 * var(--unit)) calc(4.625 * var(--unit));
}

.page-header > a {
    display: block;
    line-height: 0;
}

.logo {
    display: block;
    width: calc(12.75 * var(--unit));
    transform: translate(calc(-0.25 * var(--unit)), calc(-0.25 * var(--unit)));
}

.header-caption {
    margin: 0;
    color: var(--green);
    font-size: calc(0.875 * var(--unit));
}

.banner {
    display: block;
    width: 100%;
    height: calc(17.75 * var(--unit));
    border-bottom: calc(0.3125 * var(--unit)) solid var(--green);
}

article {
    padding: calc(2.375 * var(--unit)) calc(4.625 * var(--unit)) 0;
}

p {
    margin-bottom: calc(0.5 * var(--unit));
}

h1,
h2,
h3 {
    color: var(--green);
}

h1 {
    margin-bottom: calc(0.625 * var(--unit));
    font-size: calc(1.8125 * var(--unit));
    line-height: 1.25;
    margin-top: 0.75rem;
}

h1 span {
    font-family: "Times New Roman", serif;
    font-size: calc(1.28125 * var(--unit));
}



h2 {
    margin-bottom: calc(0.375 * var(--unit));
    font-size: calc(1.28125 * var(--unit));
    line-height: 1.2;
}

h3 {
    margin-bottom: calc(0.375 * var(--unit));
    font-size: calc(1 * var(--unit));
    line-height: 1.25;
}

.eyebrow {
    position: relative;
    top: calc(0.1875 * var(--unit));
    margin-bottom: calc(0.125 * var(--unit));
    color: var(--green);
    font-size: calc(0.84375 * var(--unit));
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.35;
}

.introduction {
    font-size: calc(0.921875 * var(--unit));
    line-height: 1.45;
}

.introduction .serif {
    font-size: calc(1.0625 * var(--unit));
}

.job-details {
    display: grid;
    grid-template-columns: 26% 25% 25% 24%;
    padding-top: calc(0.375 * var(--unit));
    border-top: calc(0.1875 * var(--unit)) solid var(--green);
    gap: 1rem;
}

.job-details dt {
    color: var(--green);
    font-size: calc(0.5625 * var(--unit));
    font-weight: 700;
    line-height: 1.3;
}

.job-details dd {
    font-size: calc(1 * var(--unit));
    font-weight: 700;
    line-height: 1.15;
}

article > section {
    margin-top: calc(1.5 * var(--unit));
}

.list-intro {
    margin-bottom: calc(0.375 * var(--unit));
    font-size: calc(0.9375 * var(--unit));
    font-weight: 700;
}

ul {
    margin: 0 0 calc(0.875 * var(--unit));
    padding-left: calc(1.5 * var(--unit));
    list-style: none;
}

li {
    position: relative;
    padding-left: 0;
}

li + li {
    margin-top: calc(0.1875 * var(--unit));
}

li::before {
    position: absolute;
    left: calc(-1.5 * var(--unit));
    content: "\2022";
    color: var(--green);
    font-size: calc(1 * var(--unit));
}

.duties > :last-child,
.benefits > :last-child {
    margin-bottom: 0;
}

.profile ul {
    margin-bottom: calc(0.25 * var(--unit));
}

.profile-invitation {
    margin-bottom: 0;
    font-size: calc(1 * var(--unit));
    font-weight: 700;
}

.benefits h3:not(:first-child) {
    margin-top: calc(0.875 * var(--unit));
}

article > .application {
    margin-top: calc(2.1875 * var(--unit));
    padding: calc(1.0625 * var(--unit)) calc(1.3125 * var(--unit)) calc(1 * var(--unit));
    border-left: calc(0.375 * var(--unit)) solid var(--green);
    background: #e7f1eb;
}

.application h2 {
    margin-bottom: calc(0.5 * var(--unit));
    font-size: calc(1.4375 * var(--unit));
}

.application p {
    margin-bottom: calc(0.375 * var(--unit));
}

.application p:last-child {
    margin-bottom: 0;
}

.application .serif {
    font-size: calc(1 * var(--unit));
}

footer {
    margin: 2rem calc(4.625 * var(--unit)) 0;
    padding-top: calc(0.4375 * var(--unit));
    border-top: calc(0.125 * var(--unit)) solid var(--green);
    font-size: calc(0.5625 * var(--unit));
    line-height: 1.4;
}

footer p {
    margin-bottom: 0;
}

/* Keep the reference proportions when the 50rem advert is viewed at a smaller desktop width. */
@media only screen and (min-width: 40.063rem) and (max-width: 49.938rem) {
    :root {
        --unit: 2vw;
    }

    .page-header {
        min-height: calc(5.75 * var(--unit));
        padding-top: calc(1.5 * var(--unit));
    }
}
@media only screen and (max-width: 49.938rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

@media only screen and (max-width: 40rem) {
    .page-header {
        min-height: 4.75rem;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .logo {
        width: 11rem;
    }

    .header-caption {
        font-size: 0.8125rem;
        text-align: right;
    }

    .banner {
        height: auto;
    }
    
    article {
        padding: 1.5rem 1rem 0;
    }

    h1 {
        font-size: 1.625rem;
    }

    h1 span {
        font-size: 1.125rem;
    }

    .job-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem 1rem;
    }

    article > .application {
        padding: 1rem;
    }
    
    footer {
        margin: 2rem 1rem 0;
    }
}

@media only screen and (max-width: 24rem) {
    .logo {
        width: 9.5rem;
    }

    .header-caption {
        font-size: 0.75rem;
    }
}

