/* ============================================================
   Public careers / job / apply pages + the candidate portal's
   "Your applications" list (phase 1, Library/clsCareersWeb.py).
   Loaded after styles.css by the templates that need it; uses its
   tokens (--navy-*, --ink, --muted, --line, --bg, --card, --accent)
   and logical properties only, so RTL mirrors by itself.
   Prefix: .cr-* (public pages), .cand-app* (candidate list).
   ============================================================ */

.careers-page { background: var(--bg); }
.careers-page .footer { margin-top: 56px; }
.cr-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.cr-sr, .cr-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* ---- dark hero band (the nav floats over it: body.home-hero-dark) ---- */
.cr-hero { position: relative; background: #0f1c34; color: #fff; overflow: hidden; isolation: isolate;
  padding: 118px 0 46px; }
.cr-hero-slim { padding: 104px 0 30px; }
.cr-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(700px 420px at 85% 10%, rgba(20,111,182,.42) 0%, transparent 65%),
  radial-gradient(600px 380px at 0% 100%, rgba(44,83,154,.36) 0%, transparent 60%),
  radial-gradient(120% 120% at 80% 0%, #16324e 0%, #0f1c34 55%); }
[dir="rtl"] .cr-hero-bg { background:
  radial-gradient(700px 420px at 15% 10%, rgba(20,111,182,.42) 0%, transparent 65%),
  radial-gradient(600px 380px at 100% 100%, rgba(44,83,154,.36) 0%, transparent 60%),
  radial-gradient(120% 120% at 20% 0%, #16324e 0%, #0f1c34 55%); }
.cr-hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
.cr-hero-inner { position: relative; z-index: 1; }
.cr-title { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
  margin: 12px 0 0; color: #fff; overflow-wrap: anywhere; }
.cr-hero-lede { color: #d6e2ee; font-size: 1.1rem; margin-top: 12px; }
.cr-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #9fc8ee; }
.cr-eyebrow + .cr-title { margin-top: 4px; }
.cr-company { display: inline-flex; align-items: center; gap: 12px; color: #dce8f5; font-weight: 600; font-size: 1rem; }
.cr-company:hover { color: #fff; text-decoration: none; }
.cr-company:hover .cr-company-name { text-decoration: underline; }
.cr-company-sm { margin-top: 14px; font-size: .92rem; gap: 9px; }
.cr-back { display: inline-flex; align-items: center; gap: 7px; color: #b9c8da; font-size: .88rem; margin-bottom: 14px; }
.cr-back:hover { color: #fff; }
.cr-back + .cr-eyebrow { display: block; }
.cr-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: .9rem; color: #b9c8da; }
.cr-hero-meta i { margin-inline-end: 4px; color: #7fb6e6; }
.cr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cr-hero-actions button { font-family: inherit; cursor: pointer; }
/* Screen58: Apply now is the site's blue primary button, like the one in the side card - not the white marketing button */
.cr-hero-actions .btn-v2-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(10, 60, 120, .35); }
.cr-hero-actions .btn-v2-primary:hover { background: var(--accent-dark, #0f5ea8); color: #fff; }
.cr-badge-off { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 11px;
  background: rgba(253, 246, 231, .12); border: 1px solid rgba(240, 224, 189, .35); color: #f3dfb3; font-weight: 600; }
.btn-v2.is-done { background: rgba(13,122,86,.35); }
/* a paused job's card on the careers page (on the light card, not the dark hero) */
.cr-badge-off.cr-badge-off-sm { align-self: flex-start; gap: 6px; margin-top: 10px; padding: 4px 11px; border-radius: 999px;
  font-size: .82rem; background: var(--warn-bg); border-color: var(--line); color: var(--ink); }

/* company logo tile */
.cr-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.cr-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cr-logo > span { font-weight: 800; color: #fff; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #146fb6, #2c539a); }
.cr-logo-sm { width: 30px; height: 30px; border-radius: 7px; font-size: .85rem; }
.cr-logo-md { width: 44px; height: 44px; font-size: 1.1rem; }
.cr-logo-lg { width: 84px; height: 84px; border-radius: 16px; font-size: 2.1rem; }
.cr-company-hero { display: flex; align-items: center; gap: 24px; }

/* chips */
.cr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.cr-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  font-size: .84rem; background: #eef3f9; color: var(--navy-800); border: 1px solid #dde7f2; }
.cr-chips li i { color: var(--accent); }
.cr-chips.on-dark li { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); color: #e5ecf5; }
.cr-chips.on-dark li i { color: #7fb6e6; }
.cr-chips.on-dark a { color: #e5ecf5; }
.cr-chips.on-dark a:hover { color: #fff; }

/* ---- body: content + sidebar ---- */
.cr-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 34px; }
.cr-body-single { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.cr-main { min-width: 0; }
.cr-side { display: grid; gap: 18px; min-width: 0; }
.cr-side .card { padding: 20px 22px; }
.cr-side h2 { font-size: 1.02rem; color: var(--navy-900); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cr-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cr-state a { font-weight: 600; }

.cr-lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink); margin-bottom: 20px; }
.cr-prose { color: var(--ink); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.cr-prose > * + * { margin-top: 12px; }
.cr-prose h2, .cr-prose h3, .cr-prose h4 { color: var(--navy-900); line-height: 1.3; margin-top: 26px; }
.cr-prose h2 { font-size: 1.3rem; } .cr-prose h3 { font-size: 1.12rem; } .cr-prose h4 { font-size: 1rem; }
.cr-prose ul, .cr-prose ol { padding-inline-start: 22px; }
.cr-prose li + li { margin-top: 4px; }
.cr-prose blockquote { border-inline-start: 3px solid var(--line); padding-inline-start: 14px; color: var(--muted); }
.cr-prose a { color: var(--accent); text-decoration: underline; }

.cr-section { margin-top: 36px; }
.cr-section > h2 { font-size: 1.35rem; color: var(--navy-900); letter-spacing: -.01em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; }
.cr-section > h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 4px; }
.cr-reqs { list-style: none; padding: 0; margin: 0; }
.cr-reqs li { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cr-reqs li:last-child { border-bottom: 0; }
.cr-reqs i { flex: none; margin-top: 5px; color: #0d7a56; }
.cr-reqs-nice i { color: var(--accent); }
.cr-years { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--navy-800); background: #eef3f9;
  border-radius: 999px; padding: 1px 8px; margin-inline-start: 4px; white-space: nowrap; }
.cr-steps { padding-inline-start: 22px; margin: 10px 0 0; }
.cr-steps li { margin: 8px 0; color: var(--ink); }
.cr-apply-inline { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; }

/* side cards */
.cr-apply-block { display: block; width: 100%; margin-bottom: 12px; padding-top: 12px; padding-bottom: 12px; }
.cr-facts dl { margin: 0; }
.cr-facts dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cr-facts dl > div:last-child { border-bottom: 0; }
.cr-facts dt { color: var(--muted); }
.cr-facts dd { font-weight: 600; color: var(--navy-900); text-align: end; }
.cr-apply-job .cr-chips { margin: 0 0 12px; }
.cr-apply-job .cr-chips li { font-size: .78rem; }
.cr-apply-job > a { font-size: .9rem; font-weight: 600; }
.cr-salary { font-weight: 600; color: var(--navy-900); margin-bottom: 10px; font-size: .92rem; }
.cr-salary i { color: #0d7a56; margin-inline-end: 4px; }

/* "How HireSide uses AI on your application" */
.cr-ai { background: #eef5fc; border: 1px solid #cfe0f3; border-radius: var(--radius); padding: 20px 22px; }
.cr-ai h2 { font-size: 1.02rem; color: var(--navy-900); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cr-ai h2 i { color: var(--accent); }
.cr-ai p { font-size: .88rem; color: var(--ink); line-height: 1.55; }
.cr-ai ul { list-style: none; padding: 0; margin: 12px 0; }
.cr-ai li { display: flex; gap: 10px; font-size: .88rem; padding: 4px 0; color: var(--ink); line-height: 1.45; }
.cr-ai li i { flex: none; width: 18px; text-align: center; margin-top: 3px; color: var(--accent); }
.cr-ai-contact { font-size: .85rem !important; }
.cr-ai a { font-weight: 600; }

/* share */
.cr-copy { display: flex; gap: 8px; }
.cr-copy input { flex: 1; min-width: 0; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .82rem;
  background: var(--bg); color: var(--ink); font-family: inherit; direction: ltr; }
.cr-copy .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.cr-copy .btn.is-done { border-color: #0d7a56; color: #0d7a56; }
.cr-share-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .88rem; }
.cr-share-links a { display: inline-flex; align-items: center; gap: 6px; }

/* phones: apply button pinned to the bottom of the job page */
.cr-sticky-apply { display: none; }

/* ---- careers page ---- */
.cr-count { font-size: .8rem; font-weight: 700; background: #e3eefa; color: var(--accent); border-radius: 999px; padding: 2px 10px; }
.cr-jobs-section { margin-top: 0; }
.cr-jobs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.cr-job { display: grid; gap: 8px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); transition: border-color .12s, transform .12s; }
.cr-job:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.cr-job-title { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); overflow-wrap: anywhere; }
.cr-job .cr-chips { margin: 0; }
.cr-job-summary { font-size: .92rem; color: var(--muted); }
.cr-job-area { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); }   /* Screen108 */
.cr-job-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .82rem; color: var(--muted); }
.cr-job-go { margin-inline-start: auto; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cr-empty, .cr-closed { text-align: center; padding: 40px 28px; }
.cr-empty > i, .cr-closed > i { font-size: 2.4rem; color: var(--accent); }
.cr-empty h3, .cr-closed h2 { font-size: 1.25rem; color: var(--navy-900); margin: 12px 0 6px; }
.cr-empty p, .cr-closed p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }
.cr-about-text { white-space: pre-line; font-size: .92rem !important; color: var(--ink) !important; overflow-wrap: anywhere; }
.cr-note p { font-size: .88rem; }
.cr-note p + p { margin-top: 10px; }
.cr-note h2 i { color: var(--accent); }

/* ---- apply form ---- */
.cr-form { padding: 28px 30px; }
.cr-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
/* Screen32 (3rd round): ~ not + - a section after a hidden one or a <script> (the CV check's labels) still gets
   its line, so Documents no longer looks part of "Your CV" */
.cr-fs ~ .cr-fs, .cr-form .cr-access { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.cr-fs > legend { font-size: 1.08rem; font-weight: 700; color: var(--navy-900); padding: 0; margin-bottom: 14px; float: left; width: 100%; }
[dir="rtl"] .cr-fs > legend { float: right; }
.cr-fs > legend + * { clear: both; }
.cr-hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.cr-req { color: var(--danger); margin-inline-start: 2px; font-weight: 700; }
.cr-fields-2 { gap: 0 18px; }

.cr-cv { position: relative; }
.field label.cr-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; margin: 0;
  border: 2px dashed #c9d6e6; border-radius: 12px; background: var(--bg); cursor: pointer; text-align: center; font-weight: 400;
  transition: border-color .12s, background .12s; }
.field label.cr-drop:hover { border-color: var(--accent); }
.cr-drop i { font-size: 1.8rem; color: var(--accent); }
.cr-drop-text { font-weight: 600; color: var(--navy-900); overflow-wrap: anywhere; }
.cr-drop-hint { font-size: .8rem; color: var(--muted); }
.cr-file { position: absolute; inset-inline-start: 50%; bottom: 30px; width: 1px !important; height: 1px; opacity: 0; padding: 0 !important; border: 0 !important; }
.cr-cv:focus-within label.cr-drop { outline: 3px solid rgba(20, 111, 182, .35); outline-offset: 2px; border-color: var(--accent); }
.cr-cv.invalid label.cr-drop { border-color: var(--danger); }
.cr-cv.has-file label.cr-drop { border-style: solid; border-color: #0d7a56; background: rgba(13,122,86,.05); }
.cr-cv.has-file .cr-drop i { color: #0d7a56; }
.field-error:empty { display: none; }

.cr-q-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.cr-q-set > legend { font-size: .88rem; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; padding: 0; }
.cr-options { display: flex; flex-wrap: wrap; gap: 10px; }
.field label.cr-opt { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); color: var(--ink); }
.field label.cr-opt:hover { border-color: var(--accent); }
.field label.cr-opt:has(input:checked) { border-color: var(--accent); background: #eaf2fb; }
.field .cr-opt input, .cr-check input { width: auto; padding: 0; margin: 0; accent-color: var(--accent); }
.cr-q.invalid .cr-opt { border-color: var(--danger); }
.cr-q.invalid textarea, .cr-q.invalid .cr-num { border-color: var(--danger); }
.field input.cr-num { max-width: 220px; }
.cr-q .field-error { font-weight: 600; }

.cr-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }
.cr-check:has(input:checked) { border-color: var(--accent); }
.cr-check input { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.cr-consent-text { font-size: .9rem; color: var(--ink); line-height: 1.5; }
.cr-consent.invalid .cr-check:first-of-type { border-color: var(--danger); }
.cr-consent .field-error { font-size: .85rem; font-weight: 600; color: var(--danger); margin: -2px 0 6px; }

.cr-access { background: #f3f7fc; border-inline-start: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; }
.cr-form .cr-access { border-top: 0; padding-top: 14px; }
.cr-access-note { margin: 8px 0 0; }        /* Screen29: the company's own note */
.cr-access h3 { font-size: .96rem; color: var(--navy-900); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cr-access h3 i { color: var(--accent); }
.cr-access p { font-size: .88rem; color: var(--ink); }

.cr-submit { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cr-submit .btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 28px; font-size: 1rem; }
.cr-submit .cr-hint { margin: 0; }
#crFormError { display: flex; gap: 10px; align-items: flex-start; }
#crFormError i { margin-top: 3px; }

/* ---- confirmation ---- */
.cr-done { padding: 36px 34px; }
.cr-done-icon { width: 68px; height: 68px; border-radius: 50%; background: #e2f5ec; color: #0d7a56; font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cr-done h2 { font-size: 1.5rem; color: var(--navy-900); line-height: 1.25; margin-bottom: 10px; }
.cr-done h3 { font-size: 1.05rem; color: var(--navy-900); margin-top: 24px; }
.cr-done-list { list-style: none; padding: 0; margin: 18px 0 0; }
.cr-done-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.cr-done-list li:last-child { border-bottom: 0; }
.cr-done-list i { flex: none; width: 20px; text-align: center; margin-top: 4px; color: var(--accent); }
.cr-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 14px; }
.cr-done .cr-done-actions { justify-content: flex-start; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .cr-body { grid-template-columns: minmax(0, 1fr); }
  .cr-apply-block { display: none; }   /* the inline + sticky buttons cover it */
}
/* An employer-written title in another direction (English on /ar/) still
   lines up with the page's own edge. */
.cr-title[dir] { text-align: match-parent; }
@media (max-width: 860px) {
  .cr-sticky-apply { display: block; position: fixed; bottom: 0; inset-inline: 0; z-index: 40; padding: 10px 16px;
    background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,32,54,.10); }
  .cr-sticky-apply .btn { display: block; width: 100%; padding-top: 12px; padding-bottom: 12px; }
  .careers-page:has(.cr-sticky-apply) .footer { padding-bottom: 90px; }
  .careers-page:has(.cr-sticky-apply) .cookie-consent { bottom: 80px; }
}
@media (max-width: 600px) {
  .cr-wrap { padding: 0 16px; }
  .cr-hero { padding: 96px 0 30px; }
  .cr-hero-slim { padding: 92px 0 24px; }
  .cr-company-hero { gap: 16px; align-items: flex-start; }
  .cr-logo-lg { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 12px; }
  .cr-body { padding-top: 22px; gap: 22px; }
  .cr-form { padding: 20px 16px; }
  .cr-done { padding: 26px 18px; }
  .cr-hero-actions .btn-v2 { flex: 1 1 auto; justify-content: center; }
  .cr-job { padding: 16px; }
  .cr-job-go { margin-inline-start: 0; }
  .cr-submit .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Candidate portal: "Your applications" (cand_home.html)
   ============================================================ */
.cand-apps { list-style: none; padding: 0; margin: 0; }
.cand-app { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cand-app:first-child { padding-top: 4px; }
.cand-app:last-child { border-bottom: 0; }
.cand-app-main { min-width: 0; }
.cand-app-title { font-weight: 700; color: var(--navy-900); font-size: 1rem; overflow-wrap: anywhere; }
a.cand-app-title:hover { color: var(--accent); }
.cand-app-co { font-size: .9rem; color: var(--ink); }
.cand-app-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.cand-app-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 340px; }
.cand-status { font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
a.cand-status { text-decoration: none; }
a.cand-status:hover { box-shadow: 0 0 0 2px rgba(20, 111, 182, .22); }
.cand-status.st-received { background: rgba(20, 111, 182, .12); color: var(--accent); }
.cand-status.st-in_progress { background: rgba(143, 106, 0, .14); color: #8a6a00; }
.cand-status.st-offer_accepted, .cand-status.st-hired { background: rgba(13, 122, 86, .14); color: #0d7a56; }
.cand-status.st-offer { background: rgba(124, 58, 237, .12); color: #6d31d6; }   /* ADR-0140 */
/* Screen121: Rejected and Withdrawn in red, so they stand out */
.cand-status.st-not_progressing, .cand-status.st-withdrawn { background: rgba(194, 47, 66, .1); color: #b4232f; }
.cand-status.st-position_filled { background: rgba(180, 83, 9, .12); color: #9a4a06; }        /* Track Applications */
[data-theme="dark"] .cand-status.st-position_filled { background: rgba(240, 162, 74, .16); color: #f0b46a; }
/* Track Applications: Applied -> Under review -> the decision */
.mj-track { list-style: none; display: flex; align-items: flex-start; gap: 0; margin: 4px 0 2px; padding: 0; font-size: .72rem; color: var(--muted); }
.mj-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; max-width: 96px; padding-inline: 4px; text-align: center; line-height: 1.2; }
.mj-track li + li::before { content: ""; position: absolute; top: 5px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line); }
.mj-track li.is-done + li::before, .mj-track li.is-done + li.is-now::before { background: var(--accent); }
.mj-track-dot { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); }
.mj-track li.is-done .mj-track-dot { background: var(--accent); border-color: var(--accent); }
.mj-track li.is-now .mj-track-dot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 111, 182, .18); }
.mj-track li.is-now, .mj-track li.is-done { color: var(--ink); }
.mj-track.tone-good li.is-last .mj-track-dot { background: #0d7a56; border-color: #0d7a56; }
.mj-track.tone-end li.is-last .mj-track-dot { background: var(--muted); border-color: var(--muted); }
.mj-track.tone-bad li.is-last { color: #b4232f; font-weight: 600; }
.mj-track.tone-bad li.is-last .mj-track-dot { background: #c22f42; border-color: #c22f42; }
.cand-withdraw { text-align: end; }
.cand-withdraw > summary { list-style: none; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--danger); display: inline-block; }
.cand-withdraw > summary::-webkit-details-marker { display: none; }
.cand-withdraw > summary:hover { text-decoration: underline; }
.cand-withdraw[open] > summary { color: var(--muted); }
.cand-withdraw-panel { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-align: start; }
.cand-withdraw-panel p { font-size: .85rem; color: var(--ink); margin-bottom: 10px; }
.cand-withdraw-panel form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cand-apps-note { margin-top: 12px; }
[data-theme="dark"] .cand-status.st-in_progress { color: #e8c07a; }
[data-theme="dark"] .cand-status.st-offer_accepted, [data-theme="dark"] .cand-status.st-hired { color: #6fc793; }
[data-theme="dark"] .cand-status.st-offer { color: #c4a6f5; }
[data-theme="dark"] .cand-status.st-not_progressing,
[data-theme="dark"] .cand-status.st-withdrawn { background: rgba(239, 123, 112, .16); color: #f19b92; }
[data-theme="dark"] .mj-track.tone-bad li.is-last { color: #f19b92; }
[data-theme="dark"] .mj-track.tone-bad li.is-last .mj-track-dot { background: #ef7b70; border-color: #ef7b70; }
[data-theme="dark"] .cr-ai { background: rgba(79, 153, 230, .08); border-color: rgba(79, 153, 230, .25); }
@media (max-width: 560px) {
  .cand-app { flex-direction: column; gap: 10px; }
  .cand-app-side { align-items: flex-start; max-width: none; width: 100%; }
  .cand-withdraw { text-align: start; }
}

/* ---- phase 2: the AI interview line on an application (cand_home.html) ---- */
.cand-iv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 10px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.cand-iv-text { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1 1 220px; font-size: .88rem; color: var(--ink); }
.cand-iv-text > i { flex: none; margin-top: 3px; color: var(--accent); }
.cand-iv-text strong { color: var(--navy-900); }
.cand-iv-sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.cand-iv-cta { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cand-iv-link { font-size: .84rem; font-weight: 600; }
.cand-iv.st-iv-invited, .cand-iv.st-iv-started { border-color: rgba(20, 111, 182, .35); background: rgba(20, 111, 182, .06); }
.cand-iv.st-iv-completed .cand-iv-text > i { color: #0d7a56; }
.cand-iv.st-iv-expired .cand-iv-text > i, .cand-iv.st-iv-cancelled .cand-iv-text > i,
.cand-iv.st-iv-abandoned .cand-iv-text > i, .cand-iv.st-iv-failed_technical .cand-iv-text > i { color: var(--muted); }
[data-theme="dark"] .cand-iv.st-iv-completed .cand-iv-text > i { color: #6fc793; }
.cand-iv.st-iv-human { border-color: rgba(176, 106, 0, .35); background: rgba(176, 106, 0, .06); }
.cand-iv.st-iv-human .cand-iv-text > i { color: #b06a00; }
[data-theme="dark"] .cand-iv.st-iv-human .cand-iv-text > i { color: #f0b35a; }
@media (max-width: 560px) { .cand-iv-cta { width: 100%; justify-content: center; } }
.cand-app-main { flex: 1 1 auto; }

/* cand_base.html skip link (every /c/ page) */
.cand-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff;
  padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.cand-skip:focus { top: 10px; color: #fff; text-decoration: none; }

/* ---- "Apply with your HireSide profile" (ADR-0125, apply.html) ---- */
.cr-profile-cv { display: grid; gap: 8px; margin-bottom: 12px; }
.cr-cv-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); }
.cr-cv-opt:hover { border-color: var(--accent); }
.cr-cv-opt:has(input:checked) { border-color: var(--accent); background: rgba(20, 111, 182, .06); }
.cr-cv-opt input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.cr-cv-opt > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.cr-cv-opt .cr-hint { margin: 2px 0 0; }
.cr-save-cv { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cr-save-cv > i { font-size: 1.6rem; color: var(--accent); }
.cr-save-cv > div { flex: 1 1 240px; min-width: 0; }
.cr-save-cv h3 { margin: 0 0 2px; }
.cr-save-cv p { margin: 0; }

/* the job's documents on the apply form (ADR-0148) */
.cr-opt-tag { font-weight: 400; color: var(--muted); font-size: .85em; }
.cr-doc + .cr-doc { margin-top: 14px; }
.cr-docs > .cr-hint { margin-bottom: 14px; }

/* Document / file fields on the apply form: only the button and its file name open the
   file picker - not the whole row (the general `.field input {width:100%}` made the
   entire box one big file input). */
.field input.cr-cf-file { width: auto; max-width: 100%; padding: 0; border: 0; background: transparent; font-size: .88rem;
  color: var(--muted); cursor: default; }
.field input.cr-cf-file:focus { outline: none; }
.field input.cr-cf-file:focus-visible::file-selector-button { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-cf-file::file-selector-button { margin-inline-end: 10px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.cr-cf-file::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
.field.invalid input.cr-cf-file::file-selector-button { border-color: var(--danger); }
/* "Also save this CV to my HireSide profile" under the CV upload (signed in). */
.cr-check.cr-save-cv { border: 0; padding: 10px 2px 0; margin: 0; gap: 10px; font-size: .9rem; background: none; }
.cr-cv-email { margin-top: 6px; }
/* "We filled in your details from your CV" (careers.js prefillFromCv). */
.cr-prefilled { color: #0d7a56; font-weight: 600; margin: 0 0 10px; }
.cr-prefilled::before { content: "\2713  "; }

/* A kind "can't accept" answer (ADR-0164, owner change 2026-10-09): pop-up (careers.js) + no-JS panel */
.cr-modal-back { position: fixed; inset: 0; z-index: 2147483000; background: rgba(15, 28, 52, .45); display: grid; place-items: center;
  padding: 16px; animation: crFade .15s ease-out; }
.cr-modal { width: min(460px, 100%); background: #fff; border-radius: 16px; padding: 28px 24px 22px; text-align: center;
  box-shadow: 0 24px 60px -12px rgba(15, 28, 52, .35); }
.cr-modal h2 { margin: 12px 0 8px; font-size: 1.25rem; }
.cr-modal p { margin: 0 0 20px; color: var(--muted, #5b6472); line-height: 1.55; }
.cr-modal-ico, .cr-declined > i { width: 58px; height: 58px; border-radius: 50%; display: inline-grid; place-items: center;
  margin: 0 auto; font-size: 1.6rem; color: #146fb6; background: #e8f1fb; }
.cr-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cr-modal-actions .btn { min-width: 150px; }
@media (max-width: 480px) { .cr-modal-actions .btn { flex: 1 1 100%; } }
@keyframes crFade { from { opacity: 0; } to { opacity: 1; } }

/* ADR-0172: "Check what we read from your CV" */
.cr-review-status { font-weight: 600; }
.cr-review-status:empty { display: none; }
/* Screen21: reading the CV - a spinner box, so it's clear something is happening */
.cr-review-status.is-loading { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.cr-review-status.is-loading::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: crSpin .8s linear infinite; }
@keyframes crSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cr-review-status.is-loading::before { animation-duration: 2.4s; } }
.cr-rv-h { font-size: .95rem; margin: 18px 0 8px; }
.cr-rv-row.field { margin-bottom: 10px; }
.cr-rv-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.cr-rv-row .cr-rv-field { display: flex; margin: 0; font-weight: 400; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.cr-rv-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cr-rv-label:empty { display: none; }
.cr-rv-field input, .cr-rv-field select, .cr-rv-field textarea { width: 100%; }
.cr-rv-field textarea { min-height: 70px; }
.cr-rv-dates { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.cr-rv-dates .cr-rv-field { flex: 1 1 110px; }
.cr-rv-row .cr-rv-current { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.cr-rv-row .cr-rv-current input { width: auto; }
.cr-rv-remove { align-self: flex-end; color: var(--danger); }
.cr-rv-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cr-rv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--chip, #eef3fa); font-size: .88rem; }
.cr-rv-chip-x { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--muted); padding: 0 4px; }
.cr-rv-skill-add.field { display: flex; gap: 8px; margin-bottom: 0; }
.cr-rv-skill-add input { flex: 1; min-width: 0; }

/* ---- the self-introduction (ADR-0188, _apply_intro.html + apply_intro.js) ---- */
.cr-intro-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.cr-intro-kinds[hidden], .cr-intro-rec[hidden], .cr-intro-text[hidden] { display: none; }
.cr-intro-rec { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.cr-intro-video { width: 100%; max-width: 480px; aspect-ratio: 4 / 3; background: #0b1220; border-radius: 12px; object-fit: cover; }
.cr-intro-video[hidden], .cr-intro-audio[hidden] { display: none; }
.cr-intro-audio { width: 100%; max-width: 480px; }
.cr-intro-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cr-intro-bar [hidden] { display: none; }
.cr-intro-time { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-intro-note { margin-top: 10px; font-size: .82rem; }
.cr-intro-note i { margin-inline-end: 4px; }
