/* Careers: the front page's black and bone white, with the roles, the postings and the form. */
.top a[aria-current="page"] { color: var(--ink); }

/* a shorter hero than the front page: the logo small, then what this page is */
.hero.jobs { min-height: 0; align-items: flex-start; justify-content: flex-start; padding-top: clamp(88px, 12vw, 140px); max-width: 1180px; margin: 0 auto; }
.hero.jobs .mark { display: block; width: 112px; line-height: 0; }
.hero.jobs .mark::before, .hero.jobs .mark::after { display: none; }
.kicker {
    margin: clamp(40px, 7vw, 72px) 0 14px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--warm);
}
.hero.jobs h1 {
    margin: 0; max-width: 900px; font-weight: 300; font-size: clamp(38px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -0.02em;
    opacity: 0; animation: rise 1s ease .1s forwards;
}
.hero.jobs h1 em { font-style: normal; color: var(--warm); }
.hero.jobs .lede { text-align: left; margin-top: 22px; animation-delay: .35s; max-width: 640px; }
.hero.jobs .lede b { color: var(--ink); font-weight: 400; }
.hero.jobs .fine { color: var(--dim); font-size: 15px; max-width: 640px; margin: 18px 0 0; }
.hero.jobs .buttons { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero.jobs + main > .block:first-child { border-top: 0; padding-top: clamp(24px, 4vw, 48px); }
.hero.jobs.small { padding-bottom: clamp(72px, 12vw, 140px); }
.roles { width: 100%; margin-top: clamp(40px, 6vw, 64px); opacity: 0; animation: rise 1s ease .6s forwards; }
.roles .arrow { font-size: 26px; }
.rows a:hover .arrow { transform: translate(2px, 3px); }

/* a posting */
.job { scroll-margin-top: 24px; }
.job .title { margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; }
.job .body > p.big { color: var(--warm); }
.lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 40px 0 8px; }
.lists h3 {
    margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
    font-size: 13px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft);
}
.dash { list-style: none; margin: 0; padding: 0; }
.dash li { position: relative; padding-left: 22px; margin: 0 0 12px; color: var(--soft); font-size: 16px; line-height: 1.5; }
.dash li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--warm); }

/* how it goes */
.steps { list-style: none; counter-reset: s; margin: 0 0 28px; padding: 0; max-width: 720px; }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 48px; border-top: 1px solid var(--line); color: var(--soft); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 23px; color: var(--dim); font-size: 13px; letter-spacing: 0.1em; }
.steps b { color: var(--ink); font-weight: 400; }

/* the form */
#apply { scroll-margin-top: 16px; }
.apply { max-width: 760px; }
.apply fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.apply legend, .f > span:first-child {
    display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft);
}
.f > span:first-child i, .tick i { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--dim); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pick legend { grid-column: 1 / -1; }
.pick .err { grid-column: 1 / -1; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
    display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line);
    transition: border-color .2s, background .2s;
}
.choice b { display: block; font-weight: 400; font-size: 19px; line-height: 1.25; color: var(--ink); }
.choice small { display: block; margin-top: 4px; color: var(--dim); font-size: 14px; }
.choice:hover span { border-color: var(--soft); }
.choice input:checked + span { border-color: var(--warm); background: rgba(233, 185, 73, 0.08); }
.choice input:checked + span b { color: var(--warm); }
.choice input:focus-visible + span { outline: 1px solid var(--warm); outline-offset: 4px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.f { display: block; margin: 0 0 24px; }
.f input, .f textarea, .f select {
    display: block; width: 100%; margin: 0; padding: 13px 14px;
    background: rgba(243, 239, 230, 0.04); color: var(--ink);
    border: 1px solid var(--line); border-radius: 0;
    font: 300 17px/1.5 "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
    transition: border-color .2s, background .2s;
}
.f textarea { resize: vertical; min-height: 96px; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(-45deg, transparent 50%, var(--soft) 50%);
    background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.f select option { background: var(--bg); color: var(--ink); }
.f input::placeholder, .f textarea::placeholder { color: var(--dim); }
.f input:hover, .f textarea:hover, .f select:hover { border-color: var(--soft); }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--warm); background: rgba(243, 239, 230, 0.07); }
.f small { display: block; margin-top: 8px; color: var(--dim); font-size: 14px; }
[aria-invalid="true"] { border-color: #e0715a !important; }
fieldset[aria-invalid="true"] .choice span { border-color: #e0715a; }
.err { display: block; margin-top: 8px; color: #f09a85; font-size: 15px; }
.alert { margin: 0 0 28px; padding: 14px 18px; border: 1px solid #e0715a; color: var(--ink); background: rgba(224, 113, 90, 0.08); }
.alert b { font-weight: 400; color: #f09a85; }

.tick { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; margin: 0 0 14px; color: var(--soft); font-size: 16px; line-height: 1.5; cursor: pointer; }
.tick input {
    appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--soft); background: transparent; cursor: pointer;
    display: grid; place-items: center;
}
.tick input::after { content: ""; width: 10px; height: 10px; background: var(--warm); transform: scale(0); transition: transform .15s; }
.tick input:checked { border-color: var(--warm); }
.tick input:checked::after { transform: scale(1); }
.tick input:focus-visible { outline: 1px solid var(--warm); outline-offset: 3px; }
.tick[aria-invalid="true"] input { border-color: #e0715a; }
.tick + .err { margin: -6px 0 14px 36px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply .buttons { margin: 28px 0 24px !important; }
.apply button.btn { cursor: pointer; font-family: inherit; }
.apply .fine, .body > p.fine { color: var(--dim); font-size: 14px; line-height: 1.6; max-width: 680px; }

@media (max-width: 900px) {
    .lists { grid-template-columns: 1fr; gap: 8px; margin-top: 28px; }
}
@media (max-width: 760px) {
    .hero.jobs { padding-top: 40px; }
    .hero.jobs .mark { width: 88px; }
    .roles .what { display: block; font-size: 13px; }
    .roles a { grid-template-columns: minmax(0, 1fr) auto; }
    .roles .what { grid-column: 1; grid-row: 2; text-align: left; margin-top: -6px; }
    .roles .arrow { grid-column: 2; grid-row: 1; }
    .pick { grid-template-columns: 1fr; }
    .pair { grid-template-columns: 1fr; }
}
