/* Careers page. Loaded after about.css, whose kicker (.ab-kicker) and dotted list (.ab-marks-list) it reuses,
   so the two company pages read as a pair. Navy leads, cyan is the second colour, and orange is kept to the
   accent word in each heading, as on every other page. */

/* Hero: text on navy beside the whole team. The photo is a group of twenty-odd people standing right to both
   edges of the frame, so it is shown whole, at its own 4:3, rather than cropped to fill a column: filling the
   column cut about a tenth off each side at 1440px and lost the people at either end. Text and photo sit in
   the same 1200px column as the rest of the page, on a navy band that runs the full width. */
.cr-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(28px, 4.5vw, 72px); padding: clamp(44px, 6vw, 92px) max(20px, calc((100% - 1200px) / 2)); background: var(--navy-dark); }
.cr-hero-copy { display: flex; flex-direction: column; justify-content: center; color: #fff; }
.cr-eyebrow { margin: 0 0 14px; font-size: .84rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.cr-hero h1 { max-width: 14ch; font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: #fff; text-wrap: balance; }
.cr-hero h1 em { font-style: normal; color: #FF7A45; }   /* the lighter orange About uses on dark ground */
.cr-hero-lead { max-width: 46ch; margin: clamp(18px, 2.2vw, 26px) 0 0; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, .9); }
.cr-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(26px, 3vw, 36px); }
.cr-pill-light { background: #fff; color: var(--navy); }
.cr-pill-light:hover { background: var(--cyan); color: #fff; }
.cr-hero-call { display: inline-flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 700; color: #fff; }
.cr-hero-call svg { width: 18px; height: 18px; fill: var(--cyan); }
.cr-hero-call:hover { color: var(--cyan); }
.cr-hero-photo { margin: 0; border-radius: 26px; overflow: hidden; background: var(--navy); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.cr-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.cr-positions-head h2 { max-width: 22ch; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.cr-positions-head h2 em { font-style: normal; color: var(--orange); }

/* Open positions */
.cr-positions { padding-block: clamp(56px, 7vw, 96px); background: #fff; }
.cr-job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(28px, 4vw, 48px); padding: clamp(14px, 1.8vw, 22px); border-radius: 30px; background: var(--bg-soft); }
/* The picture stays in view while the description beside it is read. The box takes the picture's own shape
   (--w and --h, set from the role's data) so a poster with words on it is shown whole, and it is never taller
   than the window below the header, or its foot would be out of sight for as long as it follows you. */
.cr-job-photo { position: sticky; top: 110px; justify-self: center; width: min(100%, calc((100vh - 140px) * var(--w, 4) / var(--h, 5))); aspect-ratio: var(--w, 4) / var(--h, 5); margin: 0; border-radius: 22px; overflow: hidden; background: var(--navy); }
.cr-job-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cr-job-body { padding: clamp(10px, 1.6vw, 22px) clamp(6px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px) 0; }
.cr-job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.cr-job-meta li { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 15px; border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 600; color: var(--ink); }
.cr-job-meta svg { width: 15px; height: 15px; fill: var(--navy); }
.cr-job-meta .cr-job-pay { background: var(--navy); color: #fff; }
.cr-job-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.cr-job-intro { max-width: 56ch; margin: 14px 0 0; font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.6; color: var(--grey); }
.cr-job-part { margin-top: clamp(22px, 2.6vw, 30px); padding-top: clamp(20px, 2.4vw, 26px); border-top: 1px solid var(--line); }
.cr-job-part h4 { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.cr-job-part .ab-marks-list { margin-top: 8px; }
/* a part that is a sentence rather than a list ("About the role") */
.cr-job-part p { max-width: 60ch; margin: 10px 0 0; line-height: 1.6; color: var(--ink); font-weight: 500; }
.cr-job-part .ab-marks-list li { font-weight: 500; line-height: 1.5; }
.cr-job-apply { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: clamp(26px, 3vw, 36px); padding-top: clamp(20px, 2.4vw, 26px); border-top: 1px solid var(--line); }

/* Application form: the contact page's fields (css/contact.css) in a white card on the soft band */
.cr-apply { padding-block: clamp(56px, 7vw, 96px); background: var(--bg-soft); }
.cr-apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cr-apply-intro h2 { max-width: 14ch; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.cr-apply-intro h2 em { font-style: normal; color: var(--orange); }
.cr-apply-intro > p:not(.ab-kicker) { max-width: 44ch; margin: 16px 0 0; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.6; color: var(--grey); }
.cr-apply-intro > p.cr-apply-alt { font-size: .98rem; }
.cr-apply-alt a { color: var(--navy); font-weight: 600; }
.cr-form { margin-top: 0; padding: clamp(22px, 3vw, 40px); border-radius: 30px; background: #fff; }
/* languages: three tick boxes that look like the text fields around them */
.cr-checks { min-width: 0; margin: 0; padding: 0; border: 0; }
.cr-checks legend { margin-bottom: 7px; padding: 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.cr-checks legend b { color: #D0342C; font-weight: 700; }
.cr-checks-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cr-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.cr-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.cr-checks .cr-check { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); transition: border-color .2s, background-color .2s; }
.cr-checks .cr-check:has(input:checked) { border-color: var(--navy); background: rgba(42, 55, 141, .06); }
.cr-checks .cr-check span { font-size: .95rem; font-weight: 500; color: var(--ink); }
.cr-checks.is-bad .cr-check { border-color: #D0342C; background: #FFF6F5; }
/* the "which one?" field under Other and under another licence category; .cu-field would otherwise keep it on screen */
.cr-other[hidden], .cr-licence[hidden] { display: none; }
.cr-checks .cr-other { margin-top: 12px; }
/* the CV: the browser's own file button, inside a box like the other fields */
.cr-file input { padding: 11px 12px; cursor: pointer; }
.cr-file input::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.cr-file small { font-size: .85rem; color: var(--grey); }
.cr-consent { align-items: flex-start; }
.cr-consent input { margin-top: 2px; }
.cr-consent span { font-size: .92rem; line-height: 1.5; color: var(--grey); }
.cr-consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.cr-consent input.is-bad { outline: 2px solid #D0342C; outline-offset: 2px; }

/* Phones and narrow tablets: the photo goes on top of the text, and the job's photo stops following you */
@media (max-width: 900px) {
  .cr-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 24px 44px; }
  .cr-hero-photo { order: -1; border-radius: 20px; }
  .cr-job { grid-template-columns: 1fr; }
  .cr-job-photo { position: static; width: min(100%, calc(75vh * var(--w, 4) / var(--h, 5))); }
  .cr-job-body { padding: 4px 6px 10px; }
  .cr-apply-grid { grid-template-columns: 1fr; }
}
