/* Design tokens taken from the Claude Design "Jobs" page. */
:root {
    --ink: #142028;
    --ink-soft: #3D4A52;
    --muted: #5A666D;
    --paper: #F6F3EE;
    --white: #fff;
    --line: #E2DCD1;
    --line-strong: #D6CFC2;
    --line-dashed: #B9B1A3;
    --teal: #0E5E5A;
    --teal-dark: #0A4441;
    --teal-tint: #D9EBE4;
    --teal-line: #4E9590;
    --teal-text: #D3E5DF;
    --mint: #7FD1B9;
    --mint-text: #9ED8C6;
    --slate: #5E7480;
    --topbar-text: #E9E4DA;
    --nhs-blue: #005EB8;
    --danger: #A4262C;

    --font-sans: 'Instrument Sans', system-ui, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
    --container: 1240px;
    --gutter: 32px;
    --header-offset: 140px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    width: 100%;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 50;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Shared type ---------- */

.eyebrow {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
}
.eyebrow--small { font-size: 12px; }
.eyebrow--light { color: var(--mint-text); }

.display {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.02em;
    margin: 0;
    max-width: 960px;
    text-wrap: balance;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: -.015em;
    margin: 0;
}

.lead { font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 640px; }
.muted { font-size: 15px; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    background: var(--teal);
    color: var(--white);
    border: 1.5px solid transparent;
    padding: 11.5px 20.5px;
    border-radius: 999px;
    cursor: pointer;
}
.btn:hover { background: var(--teal-dark); color: var(--white); }
.btn--small { padding: 9.5px 18.5px; }
.btn--large { font-size: 16px; padding: 14.5px 26.5px; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--teal); }
.btn--light:hover { background: var(--white); color: var(--teal-dark); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); color: var(--teal); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--large .btn { font-size: 16px; padding: 14.5px 24.5px; }

.link-button {
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 20; }

.topbar { background: var(--ink); color: var(--topbar-text); font-size: 13px; }
.topbar__inner {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    align-items: center;
    justify-content: space-between;
}
.topbar__status { display: flex; gap: 8px; align-items: center; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.topbar__links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar__links a { color: var(--topbar-text); }
.topbar__links a:hover { color: var(--white); }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead__inner {
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: center;
    justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
    background: var(--nhs-blue);
    color: var(--white);
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    padding: 9px 11px 9px 12px;
    border-radius: 4px;
    display: inline-block;
}
.logo__words {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    border-left: 1px solid var(--line-strong);
    padding-left: 12px;
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.nav__link {
    color: var(--ink);
    padding: 5px 0 3px;
    border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--teal); }
.nav__link.is-active { border-bottom-color: var(--teal); }

/* ---------- Jobs: hero ---------- */

.hero { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }

.breadcrumb { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Jobs: benefits band ---------- */

.band { background: var(--teal); color: var(--paper); }
.band__inner {
    padding-top: 64px;
    padding-bottom: 64px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 40px 56px;
}
.band__col { display: flex; flex-direction: column; gap: 18px; }
.band__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); margin: 0; }
.band__subtitle { margin: 0; color: var(--teal-text); font-size: 15px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill { border: 1px solid var(--teal-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }

/* ---------- Jobs: vacancies ---------- */

.vacancies { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }
#vacancies, #apply { scroll-margin-top: var(--header-offset); }

.vacancies__head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }

.vacancies__filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.search {
    font: inherit;
    font-size: 15px;
    padding: 12px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    min-width: 260px;
    flex: 0 1 320px;
    outline-color: var(--teal);
}

.job-list { display: flex; flex-direction: column; gap: 12px; }

.job { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }

.job__summary {
    list-style: none;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.job__summary::-webkit-details-marker { display: none; }

.job__heading { display: flex; flex-direction: column; gap: 8px; }
.job__title { font-family: var(--font-serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin: 0; }
.job__tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.job__meta { color: var(--muted); padding: 5px 2px; font-weight: 500; }

.tag { background: var(--paper); color: var(--ink-soft); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.tag--accent { background: var(--teal-tint); color: var(--teal-dark); border-color: transparent; }

.job__toggle { font-size: 14px; font-weight: 600; color: var(--teal); }
.job__toggle-close { display: none; }
.job[open] .job__toggle-open { display: none; }
.job[open] .job__toggle-close { display: inline; }

.job__body {
    padding: 0 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid var(--line);
}
.job__text { margin: 24px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 820px; }
.job__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px 48px; }
.job__list { display: flex; flex-direction: column; gap: 10px; }
.job__list ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.5;
}
.job__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.job__footer .muted { font-size: 14px; }

.empty { padding: 48px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--muted); }

/* ---------- Jobs: application form ---------- */

.apply { background: var(--white); border-top: 1px solid var(--line); }
.apply__inner {
    padding-top: 88px;
    padding-bottom: 88px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 56px;
}
.apply__intro { display: flex; flex-direction: column; gap: 18px; }
.apply__intro p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 440px; }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; align-content: start; }
.form__errors:empty, .form__errors.validation-summary-valid { display: none; }
.form__errors { grid-column: 1 / -1; color: var(--danger); font-size: 14px; }
.form__errors ul { margin: 0; padding-left: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select {
    font: inherit;
    font-weight: 400;
    font-size: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    outline-color: var(--teal);
    width: 100%;
}
.field .field__file { font-size: 15px; border: 1px dashed var(--line-dashed); color: var(--ink-soft); }
.field .input-validation-error { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; font-weight: 500; }
.field__error:empty { display: none; }

.checkbox { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }

.form .btn { justify-self: start; }

.thanks {
    background: var(--teal-tint);
    border-radius: 22px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: start;
}
.thanks h3 { font-family: var(--font-serif); font-weight: 500; font-size: 30px; margin: 0; }
.thanks p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; }

.partners { background: var(--ink); color: var(--paper); }
.partners__inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.partners__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}
.partners__sep { color: var(--slate); }

.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer__inner { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 56px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__brand { gap: 16px; }
.footer__col--plain a { color: var(--ink); }
.footer__col--plain a:hover { color: var(--teal); }
.footer__heading { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer__muted { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer__address { line-height: 1.5; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

/* ---------- CMS sections ---------- */

.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-88 { padding-top: 88px; padding-bottom: 88px; }
.section-100 { padding-top: 100px; padding-bottom: 100px; }
.stack-10, .stack-16, .stack-18, .stack-20, .stack-24, .stack-40 { display: flex; flex-direction: column; }
.stack-10 { gap: 10px; }
.stack-16 { gap: 16px; }
.stack-18 { gap: 18px; }
.stack-20 { gap: 20px; }
.stack-24 { gap: 24px; }
.stack-40 { gap: 40px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.two-col--center { align-items: center; }
.balance { text-wrap: balance; }
.narrow { max-width: 460px; }
.body-text { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }

/* Hero variants */
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero { padding-bottom: 80px; }
.hero--tight { padding-bottom: 72px; }
.hero .display em { font-style: italic; color: var(--teal); }
.hero .lead { max-width: 720px; text-wrap: pretty; }
.hero--split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 40px 56px;
    align-items: end;
}
.hero--split .display { max-width: none; }
.hero--image { align-items: center; padding-bottom: 88px; gap: 56px; }
.hero--image .display { font-size: clamp(44px, 6vw, 76px); }
.hero--image .lead { max-width: 520px; line-height: 1.55; }

.hero__media {
    position: relative;
    background: var(--teal-tint);
    border-radius: 28px;
    aspect-ratio: 5 / 5.4;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero__media img { width: 88%; height: auto; display: block; }
.hero__badge {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--white);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(20, 32, 40, .12);
}
.badge-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.badge-mark--large { width: 48px; height: 48px; }
.badge-text { display: flex; flex-direction: column; gap: 2px; }
.badge-text strong { font-size: 15px; }
.badge-text span { font-size: 13px; color: var(--muted); }

.hero__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero__card-head { display: flex; gap: 14px; align-items: center; }
.hero__card-head strong { font-size: 17px; }
.hero__card-head span { font-size: 14px; }
.hero__card p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; padding-top: 16px; border-top: 1px solid var(--line); }

/* Card grid */
.split-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.split-head__intro { margin: 0; color: var(--muted); font-size: 16px; max-width: 380px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    color: var(--ink);
}
.card--link:hover { background: var(--teal-tint); color: var(--ink); }
.card__num { font-size: 14px; color: var(--teal); font-weight: 600; }
.card__body { display: flex; flex-direction: column; gap: 10px; }
.card__title { font-family: var(--font-serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin: 0; }
.card__body p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.card__more { margin-top: 10px; font-weight: 600; color: var(--teal); }
.cards--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.cards--compact .card { border-radius: 20px; padding: 26px; gap: 40px; }
.cards--compact .card__title { font-size: 26px; }

/* Ruled lists (roman numerals, rows, downloads) */
.rule-list { display: flex; flex-direction: column; }
.rule-list > * { border-top: 1px solid var(--line-strong); }
.rule-list > :last-child { border-bottom: 1px solid var(--line-strong); }
.roman { font-family: var(--font-serif); font-size: 28px; color: var(--teal); }
.roman--light { color: var(--mint-text); }
.roman-row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; }
.roman-row__text { display: flex; flex-direction: column; gap: 6px; }
.roman-row__text h3 { margin: 0; font-size: 20px; font-weight: 600; }
.roman-row__text p { margin: 0; color: var(--ink-soft); line-height: 1.55; }

/* CTA panel */
.cta-panel {
    background: var(--teal);
    color: var(--paper);
    border-radius: 28px;
    padding: clamp(36px, 6vw, 72px);
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-end;
    justify-content: space-between;
}
.cta-panel__text { max-width: 620px; }
.cta-panel__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.cta-panel p { margin: 0; color: var(--teal-text); font-size: 18px; line-height: 1.55; }
.cta-panel--stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: end; }
.cta-panel--stat p { line-height: 1.6; }
.cta-panel--stat p:last-of-type:not(:first-of-type) { color: var(--paper); }
.cta-panel--stat .section-title { letter-spacing: 0; }
.cta-panel__stat { font-family: var(--font-serif); font-size: clamp(72px, 10vw, 128px); line-height: .9; color: var(--mint-text); }

/* Image + features */
.image-frame { background: var(--teal-tint); border-radius: 28px; aspect-ratio: 4 / 3.4; overflow: hidden; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-stack { display: flex; flex-direction: column; }
.feature { display: flex; flex-direction: column; gap: 14px; padding: 36px 0; }
.feature:first-child { padding-top: 0; }
.feature:last-child { padding-bottom: 0; }
.feature + .feature { border-top: 1px solid var(--line-strong); }
.feature__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; margin: 0; }
.feature__actions { margin-top: 10px; }
.feature__actions .btn { font-size: 15px; padding: 12.5px 22.5px; }

/* Text rows */
.text-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px 56px; padding: 36px 0; }

/* Highlights band */
.highlights { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.highlight { padding: 20px 28px; display: flex; flex-direction: column; gap: 12px; }
.highlight:first-child { padding-left: 0; }
.highlight + .highlight { border-left: 1px solid #2F7A75; }
.highlight__text { font-family: var(--font-serif); font-size: 30px; line-height: 1.1; }

/* Downloads */
.download { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; color: var(--ink); }
.download:hover { color: var(--teal); }
.download__text { display: flex; flex-direction: column; gap: 4px; }
.download__text strong { font-size: 20px; font-weight: 600; }
.download__text span { font-size: 14px; color: var(--muted); }
.download__icon { font-size: 22px; }

/* Statement */
.statement__body { margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; align-self: end; }

/* Numbered two-column list */
.numbered-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); column-gap: 56px; }
.numbered-row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 26px 0; border-top: 1px solid var(--line-strong); }
.numbered-row__num { font-size: 14px; color: var(--teal); font-weight: 600; padding-top: 4px; }
.numbered-row h3 { font-size: 19px; }
.numbered-row p { font-size: 15.5px; }

/* Jobs list (in-house vacancies) */
.jobs-list { padding-bottom: 20px; display: flex; flex-direction: column; gap: 20px; }
.role {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.role__head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.role__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; margin: 0; }
.role__summary { max-width: 820px; font-size: 16px; }
.role__lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 28px 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.role .job__list { gap: 12px; }
.role .job__list ul { gap: 7px; }
.role__note { margin: 0; font-size: 14px; color: var(--muted); }

/* Image panel */
.image-panel-section { padding-bottom: 88px; }
.image-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 32px 56px;
    align-items: center;
    background: var(--teal-tint);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 48px);
}
.image-panel img { width: 100%; height: auto; border-radius: 16px; display: block; }
.image-panel .actions .btn { font-size: 15px; }

/* Contact */
.contact { padding-top: 72px; padding-bottom: 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.contact .lead { max-width: 480px; }
.contact__details { margin-top: 12px; }
.contact__row { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; color: var(--ink); }
a.contact__row:hover { color: var(--teal); }
.contact__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact__value { font-family: var(--font-serif); font-size: 26px; text-align: right; overflow-wrap: anywhere; }
.contact__value--address { font-size: 22px; line-height: 1.3; }
.contact__panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 44px);
    align-self: start;
}
.contact__form { display: flex; flex-direction: column; gap: 22px; }
.form--tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field textarea {
    font: inherit;
    font-weight: 400;
    font-size: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    outline-color: var(--teal);
    resize: vertical;
    width: 100%;
}
.contact__form .btn { align-self: flex-start; }
.contact__thanks { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; }
.contact__thanks h2 { font-family: var(--font-serif); font-weight: 400; font-size: 36px; margin: 0; }
.contact__thanks p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.contact__thanks .link-button { align-self: flex-start; margin-top: 8px; text-decoration: none; }

.topics { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.topics legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    color: var(--ink);
    cursor: pointer;
}
.topic span:hover { border-color: var(--teal); }
.topic input:checked + span { border-color: var(--teal); background: var(--teal); color: var(--white); }
.topic input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Simple pages (errors) ---------- */

.simple { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

@media (max-width: 640px) {
    :root { --gutter: 16px; --header-offset: 24px; }
    /* The header is tall on phones, so let it scroll away instead of covering the page. */
    .site-header { position: static; }
    .search { min-width: 0; flex: 1 1 100%; }
    .job__summary { padding: 20px; }
    .job__body { padding: 0 20px 20px; }
    .empty { padding: 32px 20px; }
    .thanks { padding: 28px; }
    .highlight, .highlight:first-child { padding: 16px 0; }
    .highlight + .highlight { border-left: 0; border-top: 1px solid #2F7A75; }
    .contact__row { flex-direction: column; gap: 6px; }
    .contact__value { text-align: left; }
}
