/* Candidate side "My Jobs" (ADR-0125, Library/clsSavedWeb.py):
   - .save-btn / .follow-btn (templates/_saved_macros.html, static/js/saved.js)
   - .sv-toast, the job-seeker nav in cand_base.html (.cand-nav)
   - /c/jobs (.mj-*) and the public /companies directory (.co-*)
   Uses the styles.css tokens, so dark mode follows [data-theme="dark"];
   logical properties (inline-start / end) keep RTL (ar, ur) right. */

.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; }

/* ---- save / follow buttons ---------------------------------------------------- */
.save-btn, .follow-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  color: var(--navy-800); background: var(--card); border: 1px solid var(--line);
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.save-btn:hover, .follow-btn:hover { border-color: var(--accent); color: var(--accent); }
.save-btn:active, .follow-btn:active { transform: scale(.96); }
.save-btn:focus-visible, .follow-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.save-btn i, .follow-btn i, .save-btn svg, .follow-btn svg { font-size: 1rem; }
.sv-ico { display: inline-flex; }
[aria-pressed="true"] > .sv-off, [aria-pressed="false"] > .sv-on { display: none; }
.save-btn[aria-pressed="true"] { color: var(--accent); border-color: rgba(20, 111, 182, .45); background: rgba(20, 111, 182, .08); }
.follow-btn[aria-pressed="true"] { color: #c2185b; border-color: rgba(194, 24, 91, .35); background: rgba(194, 24, 91, .07); }
[data-theme="dark"] .follow-btn[aria-pressed="true"] { color: #f48fb1; border-color: rgba(244, 143, 177, .4); background: rgba(244, 143, 177, .1); }
[data-theme="dark"] .save-btn[aria-pressed="true"] { background: rgba(79, 153, 230, .14); }
.save-btn.compact, .follow-btn.compact { width: 38px; height: 38px; min-height: 0; padding: 0; gap: 0; }

/* on the dark careers / job heroes */
.cr-hero .save-btn, .cr-hero .follow-btn { min-height: 44px; padding: 8px 18px; font-size: .95rem;
  color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); }
.cr-hero .save-btn:hover, .cr-hero .follow-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.cr-hero .save-btn[aria-pressed="true"] { background: #fff; color: #146fb6; border-color: #fff; }
.cr-hero .follow-btn[aria-pressed="true"] { background: #fff; color: #c2185b; border-color: #fff; }
.sv-hero-follow { margin-top: 16px; }
.sv-applied-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600;
  color: #9fe0bf; padding: 6px 4px; }
.sv-applied-chip:hover { color: #fff; }
.sv-side-save { margin-top: 10px; }
.sv-side-save .save-btn { width: 100%; }

/* compact save button on a careers-page job card (the card itself is one link) */
.sv-card-host { position: relative; }
.sv-card-save { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.sv-card-host .cr-job-title { padding-inline-end: 48px; }

/* ---- toast ------------------------------------------------------------------------- */
.sv-toast { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 1000; margin: 0 auto; width: fit-content;
  max-width: 560px; transform: translateY(20px);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-radius: 12px; background: #0f1c34; color: #fff; font-size: .92rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.sv-toast > span { flex: 1 1 auto; }
.sv-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sv-toast.is-error { background: #8e2a20; }
.sv-toast a { color: #8cc8ff; font-weight: 700; white-space: nowrap; }
[data-theme="dark"] .sv-toast { background: #eaf1f8; color: #0f1c34; }
[data-theme="dark"] .sv-toast a { color: #105992; }
[data-theme="dark"] .sv-toast.is-error { background: #ef7b70; color: #1b0d0b; }

/* ---- job-seeker nav (cand_base.html) ---------------------------------------------------- */
.has-cand-nav .cand-top-inner, .cand-page .cand-top-inner { max-width: 1080px; }
.cand-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 18px; }
.cand-nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cand-nav-link i { color: var(--muted); }
.cand-nav-link:hover { text-decoration: none; color: var(--navy-900); background: var(--bg); }
.cand-nav-link.is-active { color: var(--accent); background: rgba(20, 111, 182, .08); }
.cand-nav-link.is-active i { color: var(--accent); }
.cand-nav-out { margin-inline-start: auto; }
@media (max-width: 1100px) { .has-cand-nav .cand-who-mail { display: none; } }
@media (max-width: 900px) and (min-width: 761px) { .cand-nav-link span { font-size: .84rem; } .cand-nav-link { padding: 8px 9px; } }

/* phones: a bottom tab bar, like the job apps people already use */
@media (max-width: 760px) {
  body.has-cand-nav { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .has-cand-nav .cand-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; margin: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 32, 54, .06); }
  .has-cand-nav .cand-nav-link { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .7rem; line-height: 1.2;
    border-radius: 8px; text-align: center; white-space: normal; min-width: 0; }
  .has-cand-nav .cand-nav-link i { font-size: 1.15rem; }
  .has-cand-nav .cand-nav-link span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .has-cand-nav .cand-nav-link.is-active { background: transparent; }
  .cand-out-label { display: none; }
  .sv-toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .cand-nav-out .cand-nav-link { padding: 8px; }
  .cand-nav-out .cand-nav-link span { font-size: .84rem; }
}
[data-theme="dark"] .cand-logo img { filter: brightness(0) invert(1); }
/* focus mode: no nav during a live interview */
body.iv-chat-page .cand-nav, body.iv-voice-page .cand-nav { display: none !important; }
body.iv-chat-page.has-cand-nav, body.iv-voice-page.has-cand-nav { padding-bottom: 0; }

/* ---- /c/jobs ------------------------------------------------------------------------------ */
.mj-wrap { max-width: 860px; }
.mj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mj-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mj-tabs::-webkit-scrollbar { display: none; }
.mj-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; margin-bottom: -1px;
  border-bottom: 3px solid transparent; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mj-tab:hover { text-decoration: none; color: var(--navy-900); }
.mj-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.mj-count { font-size: .75rem; font-weight: 700; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.mj-tab[aria-selected="true"] .mj-count { background: rgba(20, 111, 182, .1); border-color: transparent; color: var(--accent); }
.mj-panel { padding: 6px 22px; }

.mj-list { list-style: none; margin: 0; padding: 0; }
.mj-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: opacity .2s; }
.mj-item:last-child { border-bottom: 0; }
.mj-logo { flex: none; }
.mj-logo:hover { text-decoration: none; }
.mj-main { flex: 1 1 auto; min-width: 0; }
.mj-title { display: block; font-weight: 700; font-size: 1.02rem; color: var(--navy-900); overflow-wrap: anywhere; }
a.mj-title:hover { color: var(--accent); }
.mj-co { display: inline-block; font-size: .9rem; color: var(--ink); }
.mj-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.mj-item .cr-chips { margin-top: 8px; gap: 6px; }
.mj-item .cr-chips li { padding: 3px 10px; font-size: .78rem; }
.mj-salary { margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.mj-salary i { color: #0d7a56; }
[data-theme="dark"] .mj-salary i { color: #6fc793; }
.mj-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mj-closed { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; background: var(--warn-bg); color: #8a6a00; }
[data-theme="dark"] .mj-closed { color: #e8c07a; }
.mj-job.is-closed .mj-title, .mj-job.is-closed .mj-logo { opacity: .65; }
.mj-applied { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: #0d7a56; }
[data-theme="dark"] .mj-applied { color: #6fc793; }
.mj-item.is-removed > :not(.mj-side), .mj-item.is-removed .mj-co-head > :not(.mj-side), .mj-item.is-removed .mj-newest { opacity: .45; }

.mj-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; }
.mj-note > i { color: var(--accent); }
.mj-note-text { flex: 1 1 200px; min-width: 0; font-weight: 600; color: var(--navy-900); }
.mj-note-sub { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.mj-note-link { font-size: .84rem; font-weight: 600; }
.mj-note.st-iv-invited, .mj-note.st-iv-started, .mj-note.st-bk-invited { border-color: rgba(20, 111, 182, .35); background: rgba(20, 111, 182, .06); }
.mj-note.st-iv-completed > i { color: #0d7a56; }
.mj-foot { margin: 12px 0 14px; font-size: .85rem; }

.mj-company { flex-direction: column; gap: 10px; }
.mj-co-head { display: flex; gap: 14px; align-items: flex-start; width: 100%; }
.mj-open { font-weight: 600; color: var(--ink); }
.mj-newest { list-style: none; margin: 0; padding: 0; width: 100%; border: 1px solid var(--line); border-radius: 10px; }
.mj-newest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .mj-newest li { padding: 8px 14px 8px 10px; }
.mj-newest li:last-child { border-bottom: 0; }
.mj-newest-title { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: .92rem; color: var(--navy-900); overflow-wrap: anywhere; }
.mj-newest-meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: .78rem; color: var(--muted); }
.mj-more { font-size: .88rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

.mj-empty { text-align: center; padding: 34px 12px 30px; }
.mj-empty > i { font-size: 2.4rem; color: var(--accent); }
.mj-empty h2 { font-size: 1.15rem; color: var(--navy-900); margin: 10px 0 4px; }
.mj-empty p { max-width: 460px; margin: 0 auto; color: var(--muted); }
.mj-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

@media (max-width: 600px) {
  .mj-panel { padding: 4px 14px; }
  .mj-tab { padding: 10px 11px; gap: 6px; }
  .mj-tab > i, .mj-tab > svg { display: none; }
  .mj-tabs { gap: 0; }
  .mj-item:not(.mj-company) { flex-wrap: wrap; }
  .mj-item:not(.mj-company) .mj-main { flex-basis: calc(100% - 60px); }
  .mj-item:not(.mj-company) .mj-side { flex-direction: row; align-items: center; flex-wrap: wrap; width: 100%;
    padding-inline-start: 58px; }
  .mj-app .mj-side { justify-content: space-between; }
  .mj-app .cand-withdraw { text-align: end; }
  .mj-newest li { flex-wrap: wrap; }
  .mj-newest-meta { order: 3; width: 100%; }
  .mj-co-head .mj-side { align-self: flex-start; }
}

/* ---- /companies ------------------------------------------------------------------------------ */
.co-hero .cr-hero-inner { padding-bottom: 38px; }
.co-search { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; max-width: 760px; }
.co-field { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px;
  background: #fff; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); }
.co-field i { color: #5b6472; }
.co-field input, .co-field select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit;
  font-size: 1rem; color: #0f1c34; padding: 12px 0; }
.co-field:focus-within { box-shadow: 0 0 0 3px rgba(80, 168, 236, .6); }
/* Screen179 (2026-10-24): the city dropdown is drawn by its field - the site-wide select look
   (styles.css, Issues1 #3) put its own border, rounded corners and focus ring inside it once a city
   was chosen. Only the chevron is kept. */
.co-field select, .co-field select:hover:not(:disabled), .co-field select:focus {
  border: 0; border-radius: 0; box-shadow: none; min-height: 0; padding-inline-start: 0; background-color: transparent; }
[data-theme="dark"] .co-field { background: #161f2b; border-color: #2b3644; }
[data-theme="dark"] .co-field input, [data-theme="dark"] .co-field select { color: #dce4ed; }
[data-theme="dark"] .co-field select option { background: #161f2b; }
.co-search .btn-v2 { min-height: 50px; padding-inline: 26px; }
.co-body { padding-top: 26px; padding-bottom: 60px; }
.co-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px;
  color: var(--muted); }
.co-alljobs { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.co-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.co-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; margin: 0; }
.co-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.co-name { font-weight: 700; font-size: 1.05rem; color: var(--navy-900); overflow-wrap: anywhere; }
.co-meta { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: var(--muted); }
.co-meta i { width: 16px; color: var(--accent); }
.co-jobs { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.co-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); }
@media (max-width: 560px) {
  .co-search .btn-v2 { width: 100%; }
  .co-grid { grid-template-columns: 1fr; gap: 12px; }
}
[data-theme="dark"] .mj-item .cr-chips li { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--ink); }

/* Screen17: the withdraw confirmation opens inside the card's side column - it used to widen that
   column and crush the job details. While it is open the side column moves below the details,
   across the card; browsers without :has() get a capped width instead. */
.mj-side .cand-withdraw-panel { max-width: 320px; }
.mj-item:has(.cand-withdraw[open]) { flex-wrap: wrap; }
.mj-item:has(.cand-withdraw[open]) .mj-main { flex-basis: calc(100% - 60px); }
.mj-item:has(.cand-withdraw[open]) .mj-side { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: flex-start;
  justify-content: flex-end; }
.mj-item:has(.cand-withdraw[open]) .cand-withdraw { flex: 1 1 100%; }
.mj-item:has(.cand-withdraw[open]) .cand-withdraw-panel { max-width: none; }

/* "View application" (My Jobs) and the read-only application page /c/jobs/application/<code>
   (cand_application.html): what the candidate sent - CV, screening answers, field answers. */
.mj-view-app { font-size: .82rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.mj-view-app:hover { text-decoration: underline; }
.ap-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.ap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ap-head-main { min-width: 0; flex: 1 1 260px; }
.ap-head .cand-h1 a { color: inherit; text-decoration: none; }
.ap-head .cand-h1 a:hover { text-decoration: underline; }
.ap-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ap-lead { display: flex; gap: 8px; align-items: baseline; font-size: .86rem; margin: 0; }
.ap-card h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--navy-900); }
.ap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin: 0; }
.ap-list dt, .ap-qa dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.ap-list dd, .ap-qa dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
/* Screen14 (3rd round): type the ID number once to see it in full */
.ap-govid-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 8px; }
.ap-govid-form .field { margin: 0; flex: 1 1 220px; max-width: 320px; }
.ap-govid-form .btn { min-height: 42px; }
#govid { margin-top: 14px; }
.ap-ok { color: var(--accent); }
.ap-qa { margin: 0; display: flex; flex-direction: column; }
.ap-qa > div { padding: 10px 0; border-top: 1px solid var(--line); }
.ap-qa > div:first-child { border-top: 0; padding-top: 0; }
.ap-qa dt { font-size: .86rem; color: var(--ink); }
.ap-note { font-size: .8rem; margin: 12px 0 0; }
.ap-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); text-decoration: none; color: var(--ink); max-width: 100%; white-space: normal; }
.ap-file:hover { border-color: var(--accent); }
.ap-file > i { color: var(--accent); font-size: 1.2rem; flex: none; }
.ap-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ap-file-size { font-size: .78rem; color: var(--muted); flex: none; }
.ap-file-dl { font-size: .82rem; font-weight: 600; color: var(--accent); flex: none; }
@media (max-width: 560px) { .ap-file-size { display: none; } }

/* "Applied" in place of "Apply now" once the signed-in candidate has applied (job page, search pane). */
.sv-applied-btn { color: #0d7a56 !important; border-color: rgba(13, 122, 86, .45) !important; background: rgba(13, 122, 86, .08) !important; }
.sv-applied-btn:hover { background: rgba(13, 122, 86, .14) !important; }
.sv-applied-btn i { color: inherit; }
[data-theme="dark"] .sv-applied-btn { color: #5fd3a6 !important; border-color: rgba(95, 211, 166, .45) !important; background: rgba(95, 211, 166, .1) !important; }
.cr-hero .sv-applied-btn { color: #9fe0bf !important; border-color: rgba(159, 224, 191, .55) !important; background: rgba(159, 224, 191, .12) !important; }
