/* Incomati careers pages (/careers/). Extends style.css; loaded only on careers pages. */

/* ---- Hero job facts ---- */
.job-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: rgba(255,255,255,.85); font-size: var(--text-sm); }
.job-facts span { display: inline-flex; align-items: center; gap: 8px; }
.job-facts svg { width: 18px; height: 18px; color: var(--red); }

/* ---- Open roles list ---- */
.job-list { display: grid; gap: 20px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.job-card-kicker { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.job-card h3 { margin: 8px 0 8px; }
.job-card p { color: var(--grey-700); margin-bottom: 16px; max-width: 640px; }
.job-card-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--red); white-space: nowrap; }
.job-card-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.job-card:hover .job-card-link svg { transform: translateX(4px); }

.features-stack { grid-template-columns: 1fr; }

/* ---- Apply form ---- */
.apply-wrap { max-width: 860px; }
.apply-form fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.apply-form legend { padding: 0; }
.apply-form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field-label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 7px; color: var(--charcoal); }
.field-note { font-size: var(--text-sm); color: var(--grey-500); margin-top: 6px; }
.field-note.warn { color: #a86212; }
.field input[type=file] { padding: 11px 13px; background: #fff; cursor: pointer; }
.field input[type=radio], .field input[type=checkbox] { width: auto; padding: 0; }
.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice {
  display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important; cursor: pointer;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 500;
}
.choice:has(input:checked) { border-color: var(--red); background: var(--red-tint-04); }
.choice input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.choice-block { display: flex !important; align-items: flex-start; font-weight: 400 !important; font-size: var(--text-sm) !important; line-height: 1.5; color: var(--grey-700) !important; }
.choice-block input { margin-top: 2px; }
.consent { margin-top: 8px; }
.field.invalid input, .field.invalid textarea, .field.invalid .choice { border-color: var(--red); }
.form-status ul { margin: 8px 0 0 18px; list-style: disc; }

/* ---- Thank-you ---- */
.apply-thanks { text-align: left; }
.apply-thanks h3 { margin-bottom: 10px; }
.apply-thanks p { color: var(--grey-700); margin-bottom: 14px; }
.apply-thanks .card-icon { color: var(--success); background: rgba(30,138,70,.1); }
.apply-ref { font-family: var(--font-mono); font-size: var(--text-sm); }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .contact-form.apply-form, .apply-thanks { padding: 24px 20px; }
}

/* ---- Dynamic job page (v2) ---- */
.job-prose h2 { font-size: var(--text-2xl, 1.6rem); margin-top: 28px; }
.job-prose > h2:first-child { margin-top: 0; }
.field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--surface); }
.field select:focus { outline: none; border-color: var(--red); background: #fff; }

/* ---- Long application forms (v3): sections, repeatable blocks, progress ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.form-intro { color: var(--grey-700); font-size: var(--text-sm); margin-bottom: 22px; }
.apply-form .form-section { margin-bottom: 8px; padding-bottom: 8px; scroll-margin-top: calc(var(--header-h) + 76px); }
.apply-form .form-section + .form-section { border-top: 1px solid var(--line); padding-top: 28px; }
.sec-num { font-family: var(--font-mono); font-size: .8em; color: var(--red); margin-right: 6px; }
.section-note { color: var(--grey-700); font-size: var(--text-sm); margin: -8px 0 18px; }
.form-grid .field-wide, .form-grid .rep-group { grid-column: 1 / -1; }
.field textarea { min-height: 96px; }
.field .choice-block { width: 100%; }
.field input[type=date], .field input[type=month] { min-height: 48px; }
.rep-group { margin-bottom: 18px; }
.rep-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.rep-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 4px; margin-top: 12px; background: var(--surface); }
.rep-block .field input, .rep-block .field textarea, .rep-block .field select { background: #fff; }
.rep-block-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-700); margin-bottom: 12px; }
.rep-remove { background: none; border: 0; color: var(--red); font: inherit; cursor: pointer; text-transform: none; letter-spacing: 0; padding: 4px 0; }
.rep-add { margin-top: 12px; color: var(--red); border-color: var(--red); }
.rep-add:hover { background: var(--red-tint-04); }
.apply-progress { position: sticky; top: var(--header-h); z-index: 20; background: #fff; margin: -34px -34px 26px; padding: 12px 34px 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.ap-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; }
.ap-text { font-size: var(--text-sm); font-weight: 500; color: var(--charcoal); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-jump select { font: inherit; font-size: var(--text-sm); padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); max-width: 46vw; }
.ap-track { height: 4px; background: var(--line); margin: 0 -34px; }
.ap-fill { height: 100%; width: 0; background: var(--red); transition: width .3s var(--ease); }
.field.invalid select, .field.invalid .choice-block { border-color: var(--red); }
.field.invalid > label, .field.invalid > .field-label { color: var(--red-dark, #B4231F); }
@media (max-width: 720px) {
  .apply-progress { margin: -24px -20px 22px; padding: 10px 20px 0; }
  .ap-track { margin: 0 -20px; }
  .ap-text { white-space: normal; font-size: .8rem; }
  .rep-block { padding: 14px 14px 2px; }
  .choice-row .choice { flex: 1 1 120px; justify-content: center; }
}
