/* ==========================================================================
   careers/careers.css · the careers pages
   /careers/ (the open jobs) and /careers/<job>/ (one job and its application
   form). React draws both into [data-ph-careers] (src/careers); every rule
   here is under .cr, on a body.rf page.

   The measures are the site's own: the About pages' opening card, the kit's
   type (kit/rf.css), the Contact page's rows and fields, the site's pill
   buttons. Flat throughout: one quiet recess (#f4f6fb), hairlines, no shadow
   and no gradient.

   The section carries .hero so that shared.js leaves it out of the reveal
   (React fills it later, and it must not blink), and drops that class's ramp.
   The buttons are .cr-btn, the site's .btn in its measures and colours: an
   a.btn inside a .hero section would make shared.js build the product bar.
   ======================================================================= */

.rf section.cr-sec.hero { padding: 32px 0 clamp(72px, 8vw, 128px); background: none; }

.cr { --cr-bad: #9c3347; color: var(--ink-900, #10214b); }

/* ---- buttons: the site's pill, filled or outlined, with an icon ------------- */
.cr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border: 1px solid var(--phenome-blue-500, #203a85); border-radius: 56px; background: var(--phenome-blue-500, #203a85);
  color: #fff; font-size: 17px; line-height: 1; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .24s, border-color .24s, color .24s;
}
.cr-btn:hover { border-color: var(--phenome-blue-700, #142b6e); background: var(--phenome-blue-700, #142b6e); color: #fff; }
.cr-btn:active { border-color: var(--phenome-blue-900, #0a1e57); background: var(--phenome-blue-900, #0a1e57); }
.cr-btn svg { width: 18px; height: 18px; flex: none; }
.cr-btn.is-ghost { background: #fff; color: var(--phenome-blue-500, #203a85); }
.cr-btn.is-ghost:hover { background: var(--phenome-blue-700, #142b6e); color: #fff; }
.cr-btn.is-large { height: 52px; padding: 0 28px; }
.cr-btn.is-small { height: 40px; padding: 0 18px; font-size: 16px; }
.cr-btn.is-small svg { width: 16px; height: 16px; }
.cr-btn:disabled { border-color: var(--phenome-blue-200, #a9b5d9); background: var(--phenome-blue-200, #a9b5d9); cursor: default; }
/* A finger needs 44px, as the site's own small buttons give it. */
@media (pointer: coarse) { .cr-btn.is-small, .cr-back { height: 44px; } }

/* ---- the opening card: the About pages' card, with a flat fill ---------------
   The figures take the room they need and the words all the rest, so the
   headline stays on one line wherever the screen allows. */
.cr-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
  padding: clamp(30px, 3.6vw, 52px); border-radius: 24px; background: var(--surface-sunken, #f4f6fb);
}
.cr-hero-title {
  margin: 12px 0 0; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; font-weight: 700;
  letter-spacing: -0.026em; color: var(--ink-900, #10214b); text-wrap: balance;
}
.cr-hero-lede { margin: 14px 0 0; max-width: 52ch; font-size: 17px; line-height: 1.55; color: var(--ink-600, #4a5578); }
.cr-facts { display: flex; justify-content: flex-end; gap: clamp(28px, 3.4vw, 56px); margin: 0; padding: 0; list-style: none; }
.cr-facts li { display: grid; gap: 6px; }
.cr-facts b {
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em;
  color: var(--phenome-blue-900, #0a1e57); font-variant-numeric: tabular-nums;
}
.cr-facts span { font-size: 15px; line-height: 1.35; color: var(--ink-600, #4a5578); }

/* ---- the open jobs: the Contact page's rows, at the width of the page -------- */
.cr-roles { margin-top: clamp(56px, 6vw, 88px); }
.cr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cr-chip {
  height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--surface-sunken, #f4f6fb);
  color: var(--phenome-blue-900, #0a1e57); font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.cr-chip:hover { background: var(--phenome-blue-100, #e6e9f2); }
.cr-chip[aria-pressed="true"] { background: var(--phenome-blue-900, #0a1e57); color: #fff; }

.cr-rows { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--divider, #203a8514); }
.cr-rows > li { border-bottom: 1px solid var(--divider, #203a8514); }
.cr-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 32px;
  padding: 22px 0; color: inherit; text-decoration: none;
}
.cr-row-main { display: grid; gap: 6px; min-width: 0; }
.cr-row-title {
  font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-900, #10214b); transition: color .18s;
}
.cr-row-meta, .cr-row-place { font-size: 17px; line-height: 1.45; color: var(--ink-600, #4a5578); }
.cr-row-go { width: 16px; height: 16px; color: var(--phenome-blue-500, #203a85); transition: translate .18s; }
.cr-row:hover .cr-row-title { color: var(--phenome-blue-500, #203a85); }
.cr-row:hover .cr-row-go { translate: 3px 0; }
/* In a language written from the right, an arrow points the other way. */
[dir="rtl"] .cr .lucide-arrow-right, [dir="rtl"] .cr .lucide-arrow-left { scale: -1 1; }
[dir="rtl"] .cr-row:hover .cr-row-go { translate: -3px 0; }

/* While the jobs are read: the rows' own shapes, still. */
.cr-rows.is-loading i, .cr-bar { display: block; border-radius: 8px; background: var(--surface-sunken, #f4f6fb); }
.cr-rows.is-loading .cr-row-main i:first-child { width: min(320px, 70%); height: 30px; }
.cr-rows.is-loading .cr-row-main i:last-child { width: min(220px, 50%); height: 24px; }
.cr-rows.is-loading .cr-row > i { width: 150px; height: 24px; }

/* A few words where the list would be: nothing open, or the list could not be read. */
.cr-note { margin-top: 32px; padding: 0; }
.cr-note p { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.55; color: var(--ink-600, #4a5578); }
.cr-note .cr-note-title { margin-bottom: 8px; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900, #10214b); }
.cr-note .cr-btn { margin-top: 24px; }
.cr-note[role="alert"] p { color: var(--cr-bad); }

/* ---- one job ------------------------------------------------------------------ */
.cr-back {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px 16px; border-radius: 99px;
  background: var(--surface-sunken, #f4f6fb); color: var(--phenome-blue-900, #0a1e57);
  font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .2s;
}
.cr-back:hover { background: var(--phenome-blue-100, #e6e9f2); }
.cr-back svg { width: 18px; height: 18px; }

.cr-job-head { margin-top: 32px; }
.cr-job-head .rf-kicker + .rf-solid { margin-top: 12px; }
/* A title of many words is set a step smaller, so it stays on a line or two. */
.cr-job-head .rf-solid.is-long { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.08; }
.cr-job-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.cr-job-facts li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-block: 8px; padding-inline: 14px 16px; border-radius: 99px;
  background: var(--surface-sunken, #f4f6fb); font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--ink-900, #10214b);
}
.cr-job-facts svg { width: 18px; height: 18px; flex: none; color: var(--ink-600, #4a5578); }
/* The way to the form, for screens where it stands under the text. */
.cr-btn.cr-job-apply { display: none; }

/* The words take the wider column at every width: the form is 480 wide where there is room and narrows with the
   screen before the two stand under each other. */
.cr-job-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 36vw, 480px); gap: clamp(36px, 5vw, 96px); align-items: start;
  margin-top: clamp(40px, 4.6vw, 72px);
}
.cr-job-text section + section { margin-top: 40px; }
.cr-job-text h2 { margin: 0 0 12px; font-size: clamp(21px, 1.7vw, 24px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900, #10214b); }
.cr-job-text p, .cr-job-text li { font-size: 17px; line-height: 1.6; color: var(--ink-600, #4a5578); }
.cr-job-text p { margin: 0; max-width: 68ch; }
.cr-job-text p + p, .cr-job-text p + ul, .cr-job-text ul + p { margin-top: 14px; }
.cr-job-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 68ch; }
.cr-job-text li { position: relative; padding-inline-start: 22px; }
.cr-job-text li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: calc(.8em - 3px); width: 6px; height: 6px; border-radius: 50%;
  background: var(--phenome-blue-300, #7185bd);
}

/* A job that takes no more applications. */
.cr-closed { padding: clamp(40px, 6vw, 96px) 0 0; }
.cr-closed p { margin: 22px 0 0; max-width: 52ch; font-size: clamp(18px, 1.35vw, 22px); line-height: 1.5; color: var(--ink-600, #4a5578); }
.cr-closed .cr-btn { margin-top: 32px; }

.cr-job.is-loading .cr-bar { margin-top: 20px; height: 26px; width: min(520px, 80%); }
.cr-job.is-loading .cr-bar.is-title { margin-top: 44px; height: 60px; width: min(640px, 92%); }
.cr-job.is-loading .cr-bar.is-short { width: min(300px, 50%); }

/* ---- the application: a flat card, the Contact page's fields ----------------- */
.cr-apply {
  padding: clamp(24px, 2.6vw, 36px); border-radius: 22px; background: var(--surface-sunken, #f4f6fb);
  scroll-margin-top: calc(var(--ph-nav-h, 44px) + 24px);
}
.cr-apply h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.022em; color: var(--ink-900, #10214b); }
.cr-apply form { display: grid; gap: 20px; }
.cr-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cr-field { display: grid; gap: 8px; min-width: 0; }
.cr-field > label, .cr-label { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink-900, #10214b); }
.cr-field > label small, .cr-label small { font-size: 15px; font-weight: 400; color: var(--ink-600, #4a5578); }
.cr-field input:not([type="checkbox"]):not([type="file"]), .cr-field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--border-strong, #203a8529); border-radius: 10px;
  background: #fff; font-size: 17px; line-height: 24px; color: var(--ink-900, #10214b); transition: border-color .18s;
}
.cr-field textarea { height: 132px; padding: 14px 16px; resize: vertical; }
.cr-field input:not([type="checkbox"]):hover, .cr-field textarea:hover { border-color: var(--phenome-blue-300, #7185bd); }
.cr-field input:not([type="checkbox"]):focus, .cr-field textarea:focus { border-color: var(--phenome-blue-500, #203a85); }
.cr-field [aria-invalid="true"]:not(button) { border-color: var(--cr-bad); }
.cr-problem { margin: 0; font-size: 15px; line-height: 20px; color: var(--cr-bad); }

/* A file: a place to choose or drop it, then the file itself. A field like the others, not a box of its own. */
.cr-file {
  display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 112px; padding: 16px;
  border: 1px solid var(--border-strong, #203a8529); border-radius: 10px; background: #fff; text-align: center;
  transition: border-color .18s, background-color .18s;
}
.cr-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cr-file small { font-size: 15px; line-height: 20px; color: var(--ink-600, #4a5578); }
.cr-file.is-over { border-color: var(--phenome-blue-500, #203a85); background: var(--phenome-blue-100, #e6e9f2); }
.cr-file.is-bad { border-color: var(--cr-bad); }
.cr-file.is-picked {
  grid-template-columns: 40px minmax(0, 1fr) 40px; justify-items: stretch; align-items: center; gap: 12px;
  min-height: 64px; padding-block: 11px; padding-inline: 15px 11px; border-style: solid; border-color: var(--border-strong, #203a8529); text-align: start;
}
.cr-file-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--phenome-blue-100, #e6e9f2); color: var(--phenome-blue-500, #203a85); }
.cr-file-icon svg { width: 20px; height: 20px; }
.cr-file-name { display: grid; gap: 1px; min-width: 0; }
.cr-file-name b { overflow: hidden; font-size: 16px; line-height: 21px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-900, #10214b); }
.cr-file-clear {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-600, #4a5578); cursor: pointer; transition: background-color .18s;
}
.cr-file-clear:hover { background: var(--surface-sunken, #f4f6fb); color: var(--ink-900, #10214b); }
.cr-file-clear svg { width: 18px; height: 18px; }

/* A choice among a few answers. */
.cr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-pill {
  min-height: 44px; padding: 8px 20px; border: 1px solid var(--border-strong, #203a8529); border-radius: 99px; background: #fff;
  font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--ink-900, #10214b); cursor: pointer;
  transition: border-color .18s, background-color .18s, color .18s;
}
.cr-pill:hover { border-color: var(--phenome-blue-300, #7185bd); }
.cr-pill[aria-checked="true"] { border-color: var(--phenome-blue-500, #203a85); background: var(--phenome-blue-500, #203a85); color: #fff; font-weight: 600; }

.cr-field > label.cr-consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--ink-600, #4a5578); cursor: pointer; }
.cr-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--phenome-blue-500, #203a85); cursor: pointer; }
.cr-consent a { color: var(--phenome-blue-500, #203a85); text-decoration: underline; text-underline-offset: 3px; }

.cr-btn.cr-send { width: 100%; height: 56px; }
.cr-problem.is-form { margin-bottom: -4px; }

/* Sent: the form gives way to a few calm words. */
.cr-apply.is-sent { display: grid; justify-items: start; gap: 0; }
.cr-sent-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--phenome-blue-100, #e6e9f2); color: var(--phenome-blue-500, #203a85); }
.cr-sent-mark svg { width: 26px; height: 26px; }
.cr-apply.is-sent h2 { margin: 20px 0 0; }
.cr-apply.is-sent p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-600, #4a5578); overflow-wrap: anywhere; }
.cr-apply.is-sent .cr-btn { margin-top: 24px; }

/* ---- narrow widths: the kit's own breaks (1023, 760) and the Contact rows' (560) */
@media (max-width: 1023px) {
  .cr-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cr-facts { justify-content: flex-start; }
  .cr-job-grid { grid-template-columns: minmax(0, 1fr); }
  .cr-btn.cr-job-apply { display: inline-flex; margin-top: 24px; }
}
@media (max-width: 760px) {
  .rf section.cr-sec.hero { padding-top: 16px; }
  .cr-facts { gap: 28px; }
}
@media (max-width: 560px) {
  .cr-hero { border-radius: 20px; }
  .cr-row { grid-template-columns: minmax(0, 1fr) 16px; gap: 6px 16px; padding: 18px 0; }
  .cr-row-place { grid-column: 1; grid-row: 2; }
  .cr-row-go { grid-column: 2; grid-row: 1 / span 2; }
  .cr-pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cr-apply { border-radius: 20px; }
}
