/* Careers: the application form. Colours come from the theme variables. */
.careers-section { border-top: 1px solid var(--line); padding-top: 70px; }
.careers-layout { max-width: 640px; margin-inline: auto; }
.careers-form { scroll-margin-top: 110px; }
.careers-form > .button { width: 100%; font-size: 12px; gap: 16px; }
/* Hidden from people and assistive tech; bots that fill every field are rejected. */
/* Clipped in place, not moved off-screen: an off-screen offset widens RTL pages. */
.careers-trap { position: absolute !important; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.careers-feedback { margin-top: 15px; padding: 13px; border-radius: 8px; background: var(--ice); color: var(--navy); font-size: 12px; line-height: 1.9; }
.careers-feedback.is-error { background: #fdecec; color: #8a1f17; }
.careers-feedback a { color: inherit; font-weight: 700; text-decoration: underline; }
html[data-theme="dark"] .careers-feedback.is-error { background: #3a1d22; color: #ffc9c4; }
@media (max-width: 650px) {
  .careers-section { padding-top: 56px; }
}
/* careers.html: the section is the whole page, directly under the header. */
html[data-page="careers"] .careers-section { border-top: 0; padding-top: 56px; min-height: 70vh; }
/* The form is a centred column, so its heading sits centred above it instead of spread to the page edges. */
.careers-section .section-heading { flex-direction: column; align-items: center; gap: 14px; max-width: 640px; margin-inline: auto; margin-bottom: 32px; text-align: center; }
.careers-section .section-heading > p { max-width: 520px; padding-bottom: 0; }
.careers-other[hidden] { display: none; }
/* Field text: typed text stays at the site's 16px minimum (also stops phones zooming on focus) but
   regular weight; the example text is smaller and lighter. Shared by the careers and contact forms; the ids outrank the shared contact-form rules. */
:is(#careers-form,#contact-form) :is(input,select,textarea) { font-size: 16px; font-weight: 400; }
/* Same height and weight as the text fields; until a role is chosen it reads like their example text. */
:is(#careers-form,#contact-form) select { height: 50px; font-weight: 400; }
:is(#careers-form,#contact-form) select:invalid { color: var(--muted); }
:is(#careers-form,#contact-form) select option { color: var(--navy); }
:is(#careers-form,#contact-form) :is(input,textarea)::placeholder { font-size: 13px; font-weight: 400; opacity: .75; }
/* Upload box: the real file input covers the box (invisible), so clicking and dropping both work. */
.careers-file { margin-bottom: 16px; }
.careers-file-title { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.careers-dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed color-mix(in srgb, var(--blue) 35%, var(--line)); border-radius: 10px; background: var(--ice); transition: border-color .2s, background .2s; }
.careers-dropzone:hover, .careers-dropzone.is-dragging { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--ice)); }
.careers-dropzone:focus-within { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }
.careers-dropzone.has-file { border-style: solid; border-color: var(--blue); }
#careers-form .careers-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.careers-dropzone-icon { flex: 0 0 auto; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--white); color: var(--blue); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.careers-dropzone-text { display: grid; gap: 2px; min-width: 0; }
.careers-dropzone-text strong { font-size: 14px; color: var(--navy); overflow-wrap: anywhere; }
.careers-dropzone-text small { font-size: 12px; font-weight: 400; color: var(--muted); }
.careers-file-clear { margin-top: 8px; padding: 4px 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.careers-file-clear[hidden] { display: none; }
