/* =========================================================================
   IRVx Softlabs : pages/careers.css
   Careers (loaded after inner.css): the open-role rows and their filters,
   the position page (facts beside the title, the cleaned-up description),
   the application form and its thank-you. Navy, white and blue. Flat colour.
   ========================================================================= */

/* ------------------------------------------------------------ Open roles */
.jobs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.jobs__row { border-bottom: 1px solid var(--line); }
.jobs__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 2.5rem; align-items: center; padding: 1.6rem 0; color: inherit; }
.jobs__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1rem + .8vw, 1.65rem); letter-spacing: -.03em; line-height: 1.15; color: var(--ink); margin: 0 0 .45rem; transition: color .2s ease; }
.jobs__link:hover .jobs__title { color: var(--blue); }
.jobs__meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--body); font-size: .98rem; }
.jobs__meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); vertical-align: middle; margin-right: 1rem; }
.jobs__side { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; text-align: right; white-space: nowrap; }
.jobs__side time { font-size: .82rem; color: var(--muted); }
.jobs__go { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--blue); }
.jobs__go svg { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.jobs__link:hover .jobs__go svg { transform: translateX(4px); }
.jobs__link:focus-visible { outline-offset: -3px; border-radius: 10px; }
.jobs__notice { margin: 0; padding: 1.5rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--body); max-width: 60ch; }
.jobs__notice[hidden] { display: none; }
.jobs__flash { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-left: 3px solid var(--blue); background: var(--blue-050); color: var(--ink); font-weight: 600; }
@media (max-width: 575.98px) {
  .jobs__link { grid-template-columns: 1fr; gap: .8rem; padding: 1.3rem 0; }
  .jobs__side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}

/* Filters: only rendered when the open roles differ by city or type */
.jobs__filters { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .35rem; }
.jobs__filter-group { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.jobs__filter { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.jobs__filter b { font-weight: 700; color: var(--muted); }
.jobs__filter:hover { border-color: var(--ink); }
.jobs__filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.jobs__filter.is-active b { color: var(--blue-on-dark); }

/* The three steps after you apply: numbered like the intake list */
.steps { counter-reset: step; }
.steps li { position: relative; }
.steps b::before { counter-increment: step; content: "0" counter(step); display: block; font-size: .78rem; letter-spacing: .06em; color: var(--blue); margin-bottom: .3rem; }

/* ---------------------------------------------------------- One position */
/* The facts beside the title, in the light hero's aside */
.job-facts { margin: 0; border-top: 2px solid var(--ink); }
.job-facts > div { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: .2rem 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.job-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.job-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); }
.inner .page-hero__aside { max-width: 440px; }
.inner .page-hero--long h1 { max-width: 18ch; }

/* The description, rebuilt from the portal's text */
.job-body h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 2.2rem 0 .7rem; }
.job-body h3:first-child { margin-top: 0; }
.job-body p { font-size: 1.04rem; line-height: 1.65; color: var(--body); max-width: 62ch; margin: 0 0 1rem; }
.job-body .checks { max-width: 62ch; margin: 0 0 1.4rem; gap: .5rem; }
.job-body .checks li { color: var(--body); line-height: 1.55; }
.job-body__empty { border-left: 3px solid var(--blue); padding-left: 1.2rem; }
.job-body__empty p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------- The application */
.apply-split { align-items: start; }
.apply-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.apply-next { list-style: none; margin: 2.2rem 0 0; padding: 0; counter-reset: n; display: grid; gap: .9rem; }
.apply-next li { counter-increment: n; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: .1rem .9rem; align-items: baseline; }
.apply-next li::before { content: "0" counter(n); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--blue); letter-spacing: .06em; }
.apply-next b { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em; }
.apply-next span { color: var(--muted); font-size: .92rem; }
.apply-ref { margin: 2rem 0 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 991.98px) { .apply-aside { position: static; } }

.apply { position: relative; display: grid; gap: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.apply__hp { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* a field no person sees */
.apply__alert { margin: 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--danger); color: var(--danger); font-weight: 600; }
.apply .field label, .apply .field__label { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--ink); }
.apply .field em { font-style: normal; color: var(--blue); }
.apply .field input, .apply .field select { font-size: 1rem; padding: .85rem 1rem; }
.apply .field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230b1220'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px; padding-right: 2.6rem; }
.apply .field__error { font-size: .84rem; color: var(--danger); }
.apply .field.is-invalid input, .apply .field.is-invalid select, .apply .field.is-invalid .file { border-color: var(--danger); }

/* The file input: a dashed drop zone that names the chosen file */
.file { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: .55rem .9rem; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--white); transition: border-color .2s ease; }
.file:hover, .file:focus-within { border-color: var(--blue); }
.file input { font-size: .92rem; color: var(--body); max-width: 100%; }
.file input::file-selector-button { font: inherit; font-weight: 600; font-size: .88rem; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: .45rem .9rem; margin-right: .75rem; cursor: pointer; }
.file input::file-selector-button:hover { border-color: var(--ink); }
.file input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.file__name { display: none; }

/* Optional details, folded */
.apply__more { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.apply__more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .65rem; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.apply__more summary::-webkit-details-marker { display: none; }
.apply__more summary::before { content: "+"; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 1.05rem; line-height: 1; transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .3s ease, color .3s ease; }
.apply__more[open] summary::before { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: var(--white); }
.apply__more summary small { font-weight: 500; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.apply__more summary:hover { color: var(--blue); }
.apply__more summary:focus-visible { outline-offset: 4px; border-radius: 8px; }
.apply__more > div { display: grid; gap: 1.1rem; margin-top: 1.2rem; }

.apply__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.apply__req { margin-left: auto; font-size: .8rem; color: var(--muted); }
.apply__req em { font-style: normal; color: var(--blue); }
.apply__fine { margin: 0; font-size: .82rem; color: var(--muted); }
.apply button[disabled] { opacity: .7; cursor: progress; }

/* Sent */
.apply--done { text-align: center; padding: 2.5rem clamp(1.4rem, 3vw, 2.6rem); }
.apply--done:focus { outline: none; }
.apply__done-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 1.8rem; margin: 0 auto .4rem; }
.apply--done h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin: 0; }
.apply--done p { color: var(--body); font-size: 1.05rem; max-width: 34rem; margin: 0 auto; }
.apply__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .6rem; }
