/* ==========================================================================
   Careers: open positions, job pages and the application form.
   Builds on corporate.css (page hero, About-page pillars and journey).
   ========================================================================== */

.btn-block { width: 100%; justify-content: center; }

/* ---------- Open positions ---------- */
.jobs-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 32px; }
.jobs-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 600 .9rem var(--font-body); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.jobs-filter button span { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); font-size: .76rem; }
.jobs-filter button:hover { border-color: var(--brand); color: var(--brand); }
.jobs-filter button.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.jobs-filter button.is-active span { background: rgba(255, 255, 255, .22); }

.jobs-list { display: grid; gap: 14px; max-width: 1040px; margin: 0 auto; }
.job-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; color: inherit; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.job-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card[hidden] { display: none; }
.job-dept { display: inline-block; margin-bottom: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.job-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.job-card p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.55; max-width: 680px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.job-meta li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.job-meta svg { width: 16px; height: 16px; color: var(--muted); }
.job-card-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: .92rem; transition: background .2s, color .2s; }
.job-card-cta svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.job-card:hover .job-card-cta { background: var(--brand); color: #fff; }
.job-card:hover .job-card-cta svg { transform: translateX(3px); }

.jobs-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto; padding: 44px 32px; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: #fff; text-align: center; }
.jobs-empty > svg { width: 56px; height: 56px; padding: 14px; border-radius: 16px; background: var(--brand-50); color: var(--brand); }
.jobs-empty p { margin: 0; color: var(--muted); }
.jobs-empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.15rem; }

/* ---------- Job page ---------- */
.job-hero h1 { max-width: 900px; }
.job-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.job-hero-meta li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: .9rem; font-weight: 500; }
.job-hero-meta svg { width: 16px; height: 16px; }
.job-closed-pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: rgba(214, 40, 40, .16); border: 1px solid rgba(255, 138, 143, .4); color: #ffd3d5; font-weight: 600; }
.job-closed-pill svg { width: 18px; height: 18px; }

.job-body { padding-top: 72px; padding-bottom: 72px; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.job-description > :first-child { margin-top: 0; }
.job-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.job-facts { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.job-facts h2 { margin: 0 0 18px; font-size: 1.15rem; }
.job-facts dl { display: grid; gap: 14px; margin: 0 0 24px; }
.job-facts dl div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.job-facts dl div:last-child { padding-bottom: 0; border-bottom: 0; }
.job-facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.job-facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.job-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 4px; color: var(--muted); font-size: .88rem; }
.job-share > span { width: 100%; }
.job-share a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.job-share a:hover { border-color: var(--brand); color: var(--brand); }
.job-share svg { width: 16px; height: 16px; }

/* ---------- Application form ---------- */
.apply-card { max-width: 860px; margin: 0 auto; padding: 48px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); position: relative; overflow: hidden; }
.apply-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #1a3fd6 0 33.3%, #d62828 33.3% 66.6%, #138a36 66.6%); }
.apply-head { margin-bottom: 4px; }
.apply-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.apply-head > p:last-child { margin: 0; color: var(--muted); }
.apply-file { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.apply-file:hover, .apply-file.is-dragging { border-color: var(--brand); background: var(--brand-50); }
.apply-file.has-file { border-style: solid; border-color: var(--health); background: var(--health-soft); }
.apply-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.apply-file > svg { flex-shrink: 0; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.apply-file.has-file > svg { color: var(--health); }
.apply-file span { display: flex; flex-direction: column; min-width: 0; }
.apply-file strong { color: var(--ink); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apply-file small { color: var(--muted); font-size: .84rem; }
.apply-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; color: var(--muted); font-size: .9rem; line-height: 1.5; cursor: pointer; }
.apply-consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.apply-status:empty { display: none; }
.apply-status { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--gov-soft); color: #a11d24; font-size: .92rem; font-weight: 500; }
.apply-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.apply-foot p { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .88rem; }
.apply-foot p svg { width: 16px; height: 16px; }
.apply-form button[disabled] { opacity: .65; cursor: progress; }
.apply-success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; text-align: center; }
.apply-success[hidden], .apply-form[hidden] { display: none; }
.apply-success-icon svg { width: 72px; height: 72px; padding: 18px; border-radius: 50%; background: var(--health-soft); color: var(--health); }
.apply-success h3 { margin: 8px 0 0; font-size: 1.5rem; }
.apply-success p { max-width: 520px; margin: 0 0 12px; color: var(--muted); }

@media (max-width: 1080px) {
    .job-grid { grid-template-columns: 1fr; gap: 40px; }
    .job-side { position: static; }
}
@media (max-width: 720px) {
    .job-card { flex-direction: column; align-items: flex-start; padding: 22px; }
    .apply-card { padding: 32px 20px; border-radius: 20px; }
    .apply-card .form-grid { grid-template-columns: 1fr; }
    .job-body { padding-top: 48px; padding-bottom: 48px; }
}
