/* EMS jobs - round 3 (Tyler 11-05). Rules: DESIGN.md.
   Job Search results, the job pop-up and the Application Tracker cards.
   Hierarchy (Pathways opp-view.css): who (plate + company) -> what (title) ->
   pay / where / when -> one line of the posting -> where it came from, small,
   bottom right. Colour: navy only; red is never spent here (nothing on these
   cards is "needs you"). */

/* ── who: the company plate (its initial on one of four navy tints) ─────── */
.ems-jplate { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font: 800 17px/1 var(--ems-font-display); letter-spacing: -.01em; background: var(--ems-navy-50); color: var(--ems-navy-600, #24317f); }
.ems-jplate[data-tone="1"] { background: var(--ems-navy-100); color: var(--ems-navy-700); }
.ems-jplate[data-tone="2"] { background: var(--ems-navy-500); color: #fff; }
.ems-jplate[data-tone="3"] { background: var(--ems-navy-800); color: #fff; }
.ems-jplate.is-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }

/* ── where it came from: "via LinkedIn" ──────────────────────────────────── */
.ems-jsrc { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 600 12px/1.2 var(--ems-font-ui); color: var(--ems-mute); white-space: nowrap; }
.ems-jsrc-mk { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--ems-line); color: var(--ems-navy-500); }
.ems-jsrc-mk img { width: 16px; height: 16px; object-fit: contain; display: block; }
.ems-jsrc-mk b { font: 800 10.5px/1 var(--ems-font-ui); color: var(--ems-navy-700); }
.ems-jsrc-n { overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.ems-jsrc.is-lg { font-size: 13px; }
.ems-jsrc.is-lg .ems-jsrc-mk { width: 24px; height: 24px; border-radius: 7px; }
.ems-jsrc.is-lg .ems-jsrc-mk img { width: 18px; height: 18px; }

/* ── results header + source chips ───────────────────────────────────────── */
.ems-jres { padding-bottom: 18px; }
.ems-jhead-t { margin: 0; }
.ems-jhead .muted { margin: 4px 0 0; }
.ems-jchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ems-jchip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1.5px solid var(--ems-line); background: #fff;
  font: 600 13px/1.2 var(--ems-font-ui); color: var(--ems-ink-2, #2a3245); cursor: pointer;
  transition: border-color var(--ems-dur) var(--ems-ease), background-color var(--ems-dur) var(--ems-ease), color var(--ems-dur) var(--ems-ease); }
.ems-jchip:first-child { padding-left: 14px; }
.ems-jchip > span:last-child { color: var(--ems-mute); font-weight: 500; }
.ems-jchip:hover { border-color: var(--ems-navy-300); background: var(--ems-navy-50); }
.ems-jchip.is-on { border-color: var(--ems-navy-500); background: var(--ems-navy-50); color: var(--ems-navy-800); box-shadow: 0 0 0 1px var(--ems-navy-500); }
.ems-jchip:focus-visible { outline: none; box-shadow: var(--ems-focus); }

/* ── the job card: a picture of the work, then the few facts that decide ──
   Tyler 11-09: "way too much static text ... we need pictures." Photo band
   (the kind of work, ours, CC0) with heart + ⋯ and the reason chips on it;
   the employer's logo rides the photo's bottom edge; body = title / Company ·
   Town / pay + terms + miles. The whole card opens the job. Navy only. */
.ems-jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin: 0 0 22px; }
.ems-jc { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--ems-r-lg); background: var(--ems-surface, #fff);
  box-shadow: var(--ems-lift); cursor: pointer; color: var(--ems-ink); text-align: left;
  transition: box-shadow var(--ems-dur) var(--ems-ease), transform var(--ems-dur) var(--ems-ease), opacity var(--ems-dur) var(--ems-ease); }
.ems-jc:hover { box-shadow: var(--ems-lift-hover); transform: translateY(-4px); }
.ems-jc:active { transform: translateY(-1px); }
.ems-jc:focus-visible { outline: none; box-shadow: var(--ems-lift-hover), var(--ems-focus); }
.ems-jc.is-ghost { cursor: default; min-height: 300px; padding: 18px; }
.ems-jc.is-ghost .wt-skeleton { flex: 1; }

/* the photo */
/* Shorter than it was (16/8.2, Tyler 11-16): the title, pay and why show
   without scrolling; the photo is mood, not content. */
.ems-jc-pic { position: relative; aspect-ratio: 16 / 6.6; overflow: hidden; background: linear-gradient(135deg, var(--ems-navy-700), var(--ems-navy-900)); }
.ems-jc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ems-ease-out, ease-out); }
.ems-jc:hover .ems-jc-pic img { transform: scale(1.06); }
.ems-jc-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 18, 52, .38) 0%, rgba(10, 18, 52, 0) 34%, rgba(10, 18, 52, 0) 52%, rgba(10, 18, 52, .62) 100%); }
.ems-jc-kind { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ems-navy-800);
  font: 700 11.5px/1.3 var(--ems-font-ui); letter-spacing: .04em; text-transform: uppercase; }
.ems-jc-chips { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding-left: 64px; }
.ems-jc-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ems-navy-800);
  font: 700 12px/1.3 var(--ems-font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(10, 18, 52, .18); }
.ems-jc-chip svg { flex: none; color: var(--ems-good, #15803d); }
/* A reach worth trying, said plainly (the brain marks it; 11-16). */
.ems-jc-chip.is-stretch { background: var(--ems-gold-100, #fdf3d7); color: #7a5300; }
.ems-jc-chip.is-pct { background: var(--ems-navy-800); color: #fff; }

/* heart + ⋯ : white discs on the photo */
.ems-jc-tools { position: absolute; z-index: 2; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px; }
.ems-jc-heart, .ems-jc-dots { display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(10, 18, 52, .2); color: var(--ems-navy-700); cursor: pointer;
  transition: background-color var(--ems-dur-fast) var(--ems-ease), color var(--ems-dur-fast) var(--ems-ease), transform var(--ems-dur-fast) var(--ems-ease); }
.ems-jc-heart svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ems-jc-dots svg { fill: currentColor; }
.ems-jc-heart:hover, .ems-jc-dots:hover, .ems-jc-dots[aria-expanded="true"] { background: #fff; transform: scale(1.08); }
.ems-jc-heart.is-on { color: var(--ems-red-600, #c8102e); }
.ems-jc-heart.is-on svg { fill: currentColor; }
.ems-jc-heart.is-pop svg { animation: ems-jsave var(--ems-dur-pop) var(--ems-ease-pop, ease); }
@keyframes ems-jsave { 0% { transform: scale(.7); } 60% { transform: scale(1.22); } 100% { transform: none; } }
.ems-jc-heart:focus-visible, .ems-jc-dots:focus-visible { outline: none; box-shadow: var(--ems-focus); }
/* Save and Not for me, side by side (Tyler 11-16: one-click decisions).
   Desktop: a disc that opens into a labelled pill under the pointer.
   Touch: both bigger discs, always there (no hover to find them). */
.ems-jc-act { width: auto; min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 0; border-radius: 999px;
  transition: background-color var(--ems-dur-fast) var(--ems-ease), color var(--ems-dur-fast) var(--ems-ease), gap 200ms var(--ems-ease), padding 200ms var(--ems-ease); }
.ems-jc-act .ems-jc-lbl { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font: 700 13px/1 var(--ems-font-ui);
  transition: max-width 220ms var(--ems-ease), opacity 160ms var(--ems-ease); }
.ems-jc-no { display: inline-flex; border: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(10, 18, 52, .2); color: var(--ems-navy-700); cursor: pointer; min-height: 0; }
.ems-jc-no svg { width: 17px; height: 17px; flex: none; }
.ems-jc-no:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.ems-jc-act.ems-jc-heart:hover { transform: none; }
@media (hover: hover) {
  .ems-jc-act:hover, .ems-jc-act:focus-visible { gap: 6px; padding: 0 13px 0 11px; background: #fff; }
  .ems-jc-act:hover .ems-jc-lbl, .ems-jc-act:focus-visible .ems-jc-lbl { max-width: 120px; opacity: 1; }
  .ems-jc-no:hover { color: var(--ems-red-600, #c8102e); }
}
@media (hover: none) {
  .ems-jc-tools { gap: 8px; }
  .ems-jc-act { min-width: 44px; height: 44px; padding: 0; }
}
.ems-jc-more { position: relative; }
.ems-jc-menu { position: absolute; right: 0; top: 42px; z-index: 5; min-width: 160px; padding: 6px; border-radius: var(--ems-r-md); background: #fff; box-shadow: var(--ems-pop); }
.ems-jc-menu[hidden] { display: none; }
.ems-jc-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 0; padding: 9px 10px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--ems-ink-2); font: 600 13.5px/1.2 var(--ems-font-ui); cursor: pointer; text-align: left; white-space: nowrap; }
.ems-jc-menu button:hover, .ems-jc-menu button:focus-visible { background: var(--ems-soft); color: var(--ems-navy-800); outline: none; }
/* the open menu must escape the card's clip */
.ems-jc:has(.ems-jc-menu:not([hidden])), .ems-jc:has(.ems-jc-menu:not([hidden])) .ems-jc-pic { overflow: visible; z-index: 3; }

/* the body: who (logo on the photo's edge) · what · where · pay */
.ems-jc-body { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0 18px 16px; }
.ems-jc-who { display: flex; align-items: flex-end; gap: 10px; height: 30px; margin: 0 0 8px; }
.ems-jplate.is-card { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
.ems-jlogo { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--ems-line); }
.ems-jlogo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; display: block; }
.ems-jc-who .ems-jlogo, .ems-jc-who .ems-jplate { position: relative; z-index: 2; margin-top: -26px; width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(10, 18, 52, .2); }
.ems-jc-who .ems-jlogo { background: #fff; }
.ems-jc-who .ems-jlogo img { padding: 9px; }
.ems-jc-who .ems-jplate { font-size: 21px; }
.ems-jc-new { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--ems-navy-50); color: var(--ems-navy-600, #24317f); font: 700 11.5px/1.3 var(--ems-font-ui); letter-spacing: .03em; text-transform: uppercase; }
.ems-jc .ems-jc-t { margin: 0; font: 700 17.5px/1.28 var(--ems-font-display); letter-spacing: -.005em; color: var(--ems-navy-800);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* The brain's one line: why this posting fits them (api/career-brain). */
.ems-jc-why { margin: 6px 0 0; font: 500 13px/1.35 var(--ems-font-ui); color: var(--ems-navy, #1f2a6b); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ems-jc-by { margin: 4px 0 0; font: 400 14px/1.35 var(--ems-font-ui); color: var(--ems-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ems-jc-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: auto; padding: 12px 30px 0 0; min-height: 22px; }
.ems-jc-big { font: 800 17px/1.2 var(--ems-font-display); letter-spacing: -.01em; color: var(--ems-ink); }
.ems-jc-big.is-est { color: var(--ems-ink-2); }
.ems-jc-sub { font: 500 13px/1.35 var(--ems-font-ui); color: var(--ems-mute); }
.ems-jc-src { position: absolute; right: 16px; bottom: 16px; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--ems-line); color: var(--ems-navy-500); opacity: .85; }
.ems-jc-src img { width: 16px; height: 16px; object-fit: contain; display: block; }
.ems-jc-src b { font: 800 10.5px/1 var(--ems-font-ui); color: var(--ems-navy-700); }

/* kept from the old card: the pop-up's estimated pay, the quiet tag */
.ems-jp-pay.is-est { font: 700 16px/1.3 var(--ems-font-ui); color: var(--ems-mute); }
.ems-tag.is-quiet { background: var(--ems-soft); color: var(--ems-mute); }

/* "Hidden · Undo" (Pathways' .ov-undo), navy. */
.ems-jundo { position: fixed; left: 50%; bottom: 26px; z-index: 1400; display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 32px)); box-sizing: border-box; padding: 11px 12px 11px 18px; border-radius: 14px; background: var(--ems-navy-900); color: #fff;
  font: 500 14px/1.3 var(--ems-font-ui); box-shadow: var(--ems-pop); opacity: 0; transform: translate(-50%, 12px); transition: opacity var(--ems-dur) var(--ems-ease), transform var(--ems-dur) var(--ems-ease-out); }
.ems-jundo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ems-jundo.is-in { opacity: 1; transform: translate(-50%, 0); }
.ems-jundo button { flex: none; height: 32px; min-height: 0; padding: 0 12px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .16); color: #fff; font: 700 13.5px/1 var(--ems-font-ui); cursor: pointer; }
.ems-jundo button:hover { background: rgba(255, 255, 255, .26); }
/* Not for me asks why, one tap (11-16): the chips wrap under the line. */
.ems-jundo.has-why { flex-wrap: wrap; width: min(560px, calc(100vw - 32px)); }
.ems-jundo.has-why > span { flex: 1; }
.ems-jundo-why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; padding-top: 2px; }
.ems-jundo .ems-jundo-ask { background: none; color: rgba(255, 255, 255, .78); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ems-jundo .ems-jundo-ask:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ems-jundo-why small { flex-basis: 100%; font: 500 12.5px/1.3 var(--ems-font-ui); color: rgba(255, 255, 255, .72); }
.ems-jundo .ems-jundo-why button { height: 30px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 600; font-size: 13px; }

/* ── the pop-up (Tyler 11-16: understand the job in seconds) ───────────────
   Navy header with who, what, pay; then three plain questions; one way out.
   The header and the footer stay put, only the middle scrolls. */
.modal.ems-jobpop { max-width: 720px; display: flex; flex-direction: column; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); }
.ems-jp { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ems-jp-hero { position: relative; flex: none; padding: 16px 22px 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .10), transparent 55%), linear-gradient(135deg, var(--ems-navy-800), var(--ems-navy-600)); }
.ems-jp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ems-red-600, #a01523); }
.ems-jp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ems-jp-kick { font: 700 11.5px/1 var(--ems-font-ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.ems-jp-acts { display: flex; align-items: center; gap: 6px; }
.ems-jp-heart, .ems-jp-x { display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background-color var(--ems-dur) var(--ems-ease), transform var(--ems-dur) var(--ems-ease), color var(--ems-dur) var(--ems-ease); }
.ems-jp-heart:hover, .ems-jp-x:hover { background: rgba(255, 255, 255, .24); transform: scale(1.06); }
.ems-jp-heart:active, .ems-jp-x:active { transform: scale(.94); }
.ems-jp-heart:focus-visible, .ems-jp-x:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
.ems-jp-heart svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ems-jp-heart.is-on { background: #fff; color: var(--ems-red-600, #a01523); }
.ems-jp-heart.is-on svg { fill: currentColor; }
.ems-jp-heart.is-pop svg { animation: ems-jsave var(--ems-dur-pop) var(--ems-ease-pop, ease); }
.ems-jp-id { display: flex; align-items: center; gap: 14px; margin-top: 12px; min-width: 0; }
.ems-jp-id .ems-jlogo, .ems-jp-id .ems-jplate { flex: none; width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.ems-jp-id .ems-jlogo { background: #fff; }
.ems-jp-id .ems-jlogo img { padding: 9px; }
.ems-jp-id .ems-jplate { font-size: 26px; background: #fff; color: var(--ems-navy-800); }
.ems-jp-idt { min-width: 0; }
/* :is(#view, .modal) matches ems-design.css's navy heading rule, so white wins here. */
:is(#view, .modal) .ems-jp-idt h2 { margin: 0; font: 800 24px/1.18 var(--ems-font-display); color: #fff; overflow-wrap: anywhere; }
.ems-jp-at { margin: 5px 0 0; font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, .82); overflow-wrap: anywhere; }
.ems-jp-at b { font-weight: 700; color: #fff; }
.ems-jp-money { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ems-jp-money:empty { display: none; }
.ems-jp-pay { margin-right: 4px; font: 800 22px/1.1 var(--ems-font-display); color: #fff; }
.ems-jp-pay.is-est { font-size: 17px; color: rgba(255, 255, 255, .86); }
.ems-jp-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font: 600 12.5px/1 var(--ems-font-ui); color: #fff; }
.ems-jp-found { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .74); }
.ems-jp-found .ems-jsrc-mk { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff; overflow: hidden; color: var(--ems-navy-800); font-size: 11px; }
.ems-jp-found .ems-jsrc-mk img { width: 16px; height: 16px; display: block; }
/* Tabs: two plain words, under the header. */
.ems-jp-tabs { flex: none; display: flex; gap: 4px; padding: 10px 22px 0; border-bottom: 1px solid var(--ems-line); background: #fff; }
.ems-jp-tabs button { position: relative; min-height: 0; height: 40px; padding: 0 12px; border: 0; background: none; border-radius: 0; cursor: pointer; font: 600 14.5px/1 var(--ems-font-ui); color: var(--ems-mute); }
.ems-jp-tabs button:hover { color: var(--ems-navy-800); }
.ems-jp-tabs button.active { color: var(--ems-navy-800); }
.ems-jp-tabs button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ems-navy-600); }
.ems-jp-tabs button:focus-visible { outline: none; box-shadow: var(--ems-focus); border-radius: 8px; }
.ems-jp-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px; }
.ems-jp-panel { padding: 6px 0 14px; }
/* The three questions. */
.ems-jp-sec { padding: 14px 0 0; }
.ems-jp-sec + .ems-jp-sec { margin-top: 2px; }
.ems-jp-h { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font: 700 15.5px/1.3 var(--ems-font-display); color: var(--ems-navy-800); }
.ems-jp-hic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ems-navy-50); color: var(--ems-navy-600); flex: none; }
.ems-jp-what { margin: 0 0 0 37px; font-size: 16px; line-height: 1.55; color: var(--ems-ink); }
.ems-jp-ul { margin: 0 0 0 37px; padding: 0; list-style: none; display: grid; gap: 7px; }
.ems-jp-ul li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: var(--ems-ink-2, #2a3245); }
.ems-jp-ul li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: var(--ems-navy-400); }
.ems-jp-sec > .ems-jp-mute { margin: 0 0 0 37px; font-size: 14px; line-height: 1.5; }
.ems-jp-mute { color: var(--ems-mute); }
/* Still reading the posting: grey lines where the words will be. */
.ems-jp-sk { margin-left: 37px; display: grid; gap: 9px; }
.ems-jp-sk i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--ems-soft) 0%, var(--ems-soft-2, #e9ecf3) 50%, var(--ems-soft) 100%); background-size: 200% 100%; animation: ems-shimmer 1.2s linear infinite; }
.ems-jp-sk i:nth-child(2n) { width: 82%; }
.ems-jp-sk i:last-child { width: 60%; }
/* The posting's own words, on request. */
.ems-jp-full { margin: 18px 0 0; border: 1px solid var(--ems-line); border-radius: var(--ems-r-md); background: var(--ems-soft); }
.ems-jp-full summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; font: 600 14px/1.2 var(--ems-font-ui); color: var(--ems-navy-700); border-radius: var(--ems-r-md); }
.ems-jp-full summary::-webkit-details-marker { display: none; }
.ems-jp-full summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--ems-dur) var(--ems-ease); }
.ems-jp-full[open] summary::before { transform: rotate(45deg); }
.ems-jp-full summary:hover { background: var(--ems-navy-50); }
.ems-jp-full summary:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.ems-jp-desc { margin: 0; padding: 0 14px 12px; font-size: 14.5px; line-height: 1.62; color: var(--ems-ink-2, #2a3245); white-space: pre-line; overflow-wrap: anywhere; }
.ems-jp-note { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--ems-line); font-size: 13px; line-height: 1.45; color: var(--ems-mute); }
.ems-jp-how { margin: 16px 0 0; padding: 10px 12px; border-radius: var(--ems-r-md); background: var(--ems-soft); font-size: 13px; line-height: 1.5; color: var(--ems-mute); }
/* Get ready. */
.ems-jp-lead { margin: 14px 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--ems-ink-2, #2a3245); }
.ems-jp-h.is-more { margin-top: 18px; font-size: 14px; color: var(--ems-mute); }
.ems-jp-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ems-jp-tool { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--ems-line); border-radius: var(--ems-r-md); background: #fff;
  text-align: left; cursor: pointer; color: var(--ems-ink);
  transition: border-color var(--ems-dur) var(--ems-ease), background-color var(--ems-dur) var(--ems-ease), transform var(--ems-dur) var(--ems-ease), box-shadow var(--ems-dur) var(--ems-ease); }
.ems-jp-tool.is-big { min-height: 84px; border-color: var(--ems-navy-200); background: var(--ems-navy-50); }
.ems-jp-tool:hover { border-color: var(--ems-navy-300); background: var(--ems-navy-50); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(14, 21, 71, .1); }
.ems-jp-tool:hover .ems-plate { background: var(--ems-navy-500); color: #fff; }
.ems-jp-tool:active { transform: none; box-shadow: none; }
.ems-jp-tool:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.ems-jp-tool .ems-plate { transition: background-color var(--ems-dur) var(--ems-ease), color var(--ems-dur) var(--ems-ease); }
.ems-jp-tool-t { display: flex; flex-direction: column; min-width: 0; }
.ems-jp-tool-t b { font: 600 14.5px/1.3 var(--ems-font-ui); color: var(--ems-navy-800); }
.ems-jp-tool-t span { font-size: 13px; line-height: 1.4; color: var(--ems-mute); }
.ems-jp-after { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--ems-r-md); background: var(--ems-navy-50);
  font: 600 13.5px/1.3 var(--ems-font-ui); color: var(--ems-navy-800); }
.ems-jp-after[hidden] { display: none; }
/* One way out. */
.ems-jp-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; padding: 14px 22px 16px; background: #fff; box-shadow: 0 -1px 0 var(--ems-line); }
.ems-jp-save { margin-right: auto; }
.ems-jp-save:empty { display: none; }
.ems-jp-status { font: 600 13.5px/1.2 var(--ems-font-ui); }
.ems-jp-ok { color: var(--ems-good); font-weight: 800; }
.ems-jp-go { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ems-jp-go small, .ems-jp-nolink { font-size: 12.5px; color: var(--ems-mute); }
.ems-jp-apply { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; font-size: 15.5px; text-decoration: none; }

@media (max-width: 640px) {
  .modal.ems-jobpop { max-height: calc(100dvh - 32px); }
  .ems-jp-hero { padding: 14px 16px 16px; }
  :is(#view, .modal) .ems-jp-idt h2 { font-size: 20px; }
  .ems-jp-id .ems-jlogo, .ems-jp-id .ems-jplate { width: 50px; height: 50px; }
  .ems-jp-tabs { padding: 6px 16px 0; }
  .ems-jp-scroll { padding: 0 16px; }
  .ems-jp-what, .ems-jp-ul, .ems-jp-sk, .ems-jp-sec > .ems-jp-mute { margin-left: 0; }
  .ems-jp-tools { grid-template-columns: minmax(0, 1fr); }
  .ems-jp-foot { padding: 12px 16px 14px; }
  .ems-jp-go { width: 100%; align-items: stretch; text-align: center; }
  .ems-jp-apply { width: 100%; }
}

/* ── the Application Tracker cards ───────────────────────────────────────── */
.ems-ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ems-ac { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 14px 12px; border-radius: var(--ems-r-md); background: var(--ems-soft); }
.ems-ac-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ems-ac-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.ems-ac-t { font: 700 15px/1.3 var(--ems-font-display); color: var(--ems-navy-800); overflow-wrap: anywhere; }
.ems-ac-open:hover .ems-ac-t { text-decoration: underline; text-underline-offset: 2px; }
.ems-ac-open:focus-visible { outline: none; box-shadow: var(--ems-focus); border-radius: 6px; }
.ems-ac-co { font: 600 13px/1.3 var(--ems-font-ui); color: var(--ems-mute); overflow-wrap: anywhere; }
.ems-ac-meta { font-size: 13px; color: var(--ems-ink-2, #2a3245); }
.ems-ac-note { font-size: 13px; line-height: 1.45; color: var(--ems-mute); }
.ems-ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
select.ems-m-stage.ems-ac-stage { flex: none; width: auto; min-width: 132px; }
.ems-ac-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 0 -8px; padding-top: 8px; border-top: 1px solid var(--ems-line); }
.ems-ac-act { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; text-decoration: none;
  font: 600 12.5px/1 var(--ems-font-ui); color: var(--ems-navy-600, #24317f); cursor: pointer; transition: background-color var(--ems-dur-fast) var(--ems-ease); }
.ems-ac-act:hover { background: #fff; }
.ems-ac-act:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.ems-ac-act.is-del { color: var(--ems-mute); }
.ems-ac-act.is-del:hover { color: var(--ems-red-600); }

@media (prefers-reduced-motion: reduce) {
  .ems-jc, .ems-jc:hover, .ems-jp-tool, .ems-jp-tool:hover { transition: none; transform: none; }
  .ems-jc-heart.is-pop svg, .ems-jp-heart.is-pop svg { animation: none; }
  .ems-jp-sk i { animation: none; }
  .ems-jundo, .ems-jc-pic img { transition: none; }
  .ems-jc:hover .ems-jc-pic img { transform: none; }
}

/* ── keeping a job up to date (job-track.js) ─────────────────────────────── */
/* On the card: the interviews, the offer they got, Update. */
.ems-jt-line { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; padding: 0; border: 0; background: none; font: 600 13px/1.35 var(--ems-font-ui); color: var(--ems-navy-700); text-align: left; }
.ems-jt-line svg { flex: none; color: var(--ems-navy-500); }
.ems-jt-line.is-ask { cursor: pointer; padding: 8px 10px; width: 100%; border-radius: 10px; background: #fbf5e6; color: #7a5a06; }
.ems-jt-line.is-ask svg { color: currentColor; }
.ems-jt-line.is-ask:hover { background: #f5e7c4; }
.ems-jt-offer { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #e9f5ee; }
.ems-jt-offer span { display: flex; flex-direction: column; }
.ems-jt-offer small { font: 600 10.5px/1.3 var(--ems-font-ui); letter-spacing: .06em; text-transform: uppercase; color: #1f7a4d; }
.ems-jt-offer b { font: 800 17px/1.25 var(--ems-font-display); color: #13492e; }
.ems-jt-offer em { flex-basis: 100%; font: 500 12.5px/1.3 var(--ems-font-ui); font-style: normal; color: #2f6b4a; }
.ems-jt-acts { display: flex; gap: 8px; margin: 10px 0 0; }
.ems-jt-acts .ems-jt-adv { flex: 1; margin: 0; }
.ems-jt-upd { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ems-navy-200); border-radius: 12px; background: #fff; cursor: pointer;
  font: 700 13.5px/1 var(--ems-font-ui); color: var(--ems-navy-700); transition: border-color var(--ems-dur) var(--ems-ease), background-color var(--ems-dur) var(--ems-ease); }
.ems-jt-acts .ems-jt-upd:only-child { flex: 1; }
.ems-jt-upd:hover { border-color: var(--ems-navy-500); background: var(--ems-navy-50); }
.ems-jt-upd:focus-visible, .ems-jt-line.is-ask:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.ems-jt-catch { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--ems-r-lg); background: #fff; box-shadow: var(--ems-lift); font: 400 14px/1.45 var(--ems-font-body); color: var(--ems-ink-2); }
.ems-jt-catch b { color: var(--ems-navy-800); }
.ems-jt-catch-go { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--ems-navy-600); color: #fff; font: 700 14px/1 var(--ems-font-ui); cursor: pointer; }
.ems-jt-catch-go:hover { background: var(--ems-navy-700); }

/* The sheet: one job, what happened, the story so far. */
.modal.trk { max-width: 600px; display: flex; flex-direction: column; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); }
.trk-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, var(--ems-navy-800), var(--ems-navy-600)); color: #fff; }
.trk-head-logo .ems-jplate { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--ems-navy-800); }
.trk-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trk-head-t b { font: 800 17px/1.25 var(--ems-font-display); color: #fff; overflow-wrap: anywhere; }
.trk-head-t span { font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.trk-head-t small { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.trk-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.trk-x:hover { background: rgba(255, 255, 255, .26); }
.trk-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 8px; }
.trk-q { margin: 0 0 10px; font: 700 15.5px/1.3 var(--ems-font-display); color: var(--ems-navy-800); }
.trk-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.trk-kind { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 66px; padding: 10px 6px; border: 1.5px solid var(--ems-line); border-radius: 12px; background: #fff; cursor: pointer;
  font: 600 13px/1.2 var(--ems-font-ui); color: var(--ems-navy-800); transition: border-color var(--ems-dur) var(--ems-ease), background-color var(--ems-dur) var(--ems-ease), transform var(--ems-dur) var(--ems-ease); }
.trk-kind svg { color: var(--ems-navy-500); }
.trk-kind:hover { border-color: var(--ems-navy-300); background: var(--ems-navy-50); transform: translateY(-1px); }
.trk-kind.is-on { border-color: var(--ems-navy-600); background: var(--ems-navy-600); color: #fff; }
.trk-kind.is-on svg { color: #fff; }
.trk-kind[data-kind="over"] svg { color: var(--ems-mute); }
.trk-form { margin: 14px 0 4px; padding: 14px; border-radius: 14px; background: var(--ems-soft); }
.trk-f { margin: 0 0 14px; }
.trk-l { display: block; margin: 0 0 7px; font: 700 13px/1.2 var(--ems-font-ui); color: var(--ems-navy-800); }
.trk-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ems-mute); }
.trk-in { width: 100%; box-sizing: border-box; min-height: 42px; padding: 9px 12px; border: 1.5px solid var(--ems-line); border-radius: 10px; background: #fff; font: 400 14.5px/1.4 var(--ems-font-body); color: var(--ems-ink); resize: vertical; }
.trk-in:focus { outline: none; border-color: var(--ems-navy-500); box-shadow: var(--ems-focus); }
.trk-in.is-bad { border-color: var(--ems-red-600, #a01523); }
.trk-pay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.trk-pay > span { font: 800 18px/1 var(--ems-font-display); color: var(--ems-navy-800); }
.trk-pay .trk-in { flex: 1 1 140px; width: auto; font: 700 17px/1.2 var(--ems-font-ui); }
.trk-acts { display: flex; justify-content: flex-end; gap: 8px; }
.trk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--ems-navy-600); color: #fff; cursor: pointer; font: 700 14px/1 var(--ems-font-ui); }
.trk-btn:hover { background: var(--ems-navy-700); }
.trk-btn.is-quiet { background: transparent; color: var(--ems-navy-700); box-shadow: inset 0 0 0 1.5px var(--ems-navy-200); }
.trk-btn.is-quiet:hover { background: var(--ems-navy-50); }
.trk-btn.is-warn { background: var(--ems-red-600, #a01523); }
.trk-btn:focus-visible, .trk-kind:focus-visible, .tw-chip:focus-visible, .trk-x:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.trk-h { margin: 18px 0 8px; font: 700 13px/1.2 var(--ems-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ems-mute); }
.trk-story { list-style: none; margin: 0; padding: 0; }
.trk-e { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 9px 0 9px; border-bottom: 1px solid var(--ems-line); }
.trk-e:last-child { border-bottom: 0; }
.trk-e-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ems-navy-50); color: var(--ems-navy-600); }
.trk-e[data-kind="offer"] .trk-e-ic { background: #e9f5ee; color: #1f7a4d; }
.trk-e[data-kind="interview"] .trk-e-ic { background: #fbf5e6; color: #8a6508; }
.trk-e.is-sys { opacity: .75; }
.trk-e-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--ems-ink-2); }
.trk-e-t b { color: var(--ems-navy-800); }
.trk-e-t p { margin: 3px 0 0; font-size: 13.5px; color: var(--ems-ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.trk-e time { flex: none; padding-top: 2px; font: 600 12.5px/1.3 var(--ems-font-ui); color: var(--ems-mute); white-space: nowrap; }
.trk-e-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ems-mute); cursor: pointer; opacity: 0; transition: opacity var(--ems-dur) var(--ems-ease); }
.trk-e:hover .trk-e-x, .trk-e-x:focus-visible { opacity: 1; }
.trk-e-x:hover { background: #fdecee; color: var(--ems-red-600, #a01523); }
@media (hover: none) { .trk-e-x { opacity: 1; } }
.trk-e.is-new { background: linear-gradient(90deg, var(--ems-navy-50), transparent); border-radius: 8px; }
.trk-foot { flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 14px; box-shadow: 0 -1px 0 var(--ems-line); background: #fff; }
/* Catch up: one job at a time. */
.trk-prog { height: 4px; background: var(--ems-navy-100); }
.trk-prog span { display: block; height: 100%; background: var(--ems-red-600, #a01523); transition: width 300ms var(--ems-ease); }
.trk-catch .trk-foot { justify-content: space-between; }
.trk-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px 28px; text-align: center; }
.trk-done-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e9f5ee; color: #1f7a4d; }
.trk-done h2 { margin: 6px 0 0; font: 800 22px/1.2 var(--ems-font-display); color: var(--ems-navy-800); }
.trk-done p { margin: 0 0 10px; color: var(--ems-ink-2); }

/* Our date + time picker: chips, then a month if they want another day. */
.tw-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-row.is-tight { flex-wrap: nowrap; }
.tw-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 1.5px solid var(--ems-line); border-radius: 999px; background: #fff; cursor: pointer;
  font: 600 13.5px/1 var(--ems-font-ui); color: var(--ems-navy-800); white-space: nowrap; }
.tw-chip:hover { border-color: var(--ems-navy-300); }
.tw-chip.is-on { border-color: var(--ems-navy-600); background: var(--ems-navy-600); color: #fff; }
.tw-chip.is-sm { min-height: 32px; padding: 0 11px; font-size: 13px; }
.tw-times { display: flex; gap: 6px; margin-top: 10px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.tw-cal { margin-top: 10px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--ems-line); max-width: 320px; }
.tw-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tw-cal-h b { font: 700 14px/1 var(--ems-font-ui); color: var(--ems-navy-800); }
.tw-nav { display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ems-navy-700); cursor: pointer; transform: rotate(180deg); }
.tw-nav.is-next { transform: none; }
.tw-nav:hover { background: var(--ems-navy-50); }
.tw-wk, .tw-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tw-wk span { padding: 4px 0; text-align: center; font: 700 11px/1 var(--ems-font-ui); color: var(--ems-mute); }
.tw-d { aspect-ratio: 1; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; font: 600 13px/1 var(--ems-font-ui); color: var(--ems-ink); }
.tw-d:hover:not(:disabled) { background: var(--ems-navy-50); }
.tw-d.is-today { box-shadow: inset 0 0 0 1.5px var(--ems-navy-300); }
.tw-d.is-on { background: var(--ems-navy-600); color: #fff; box-shadow: none; }
.tw-d:disabled { color: var(--ems-line); cursor: default; }
@media (max-width: 560px) {
  .modal.trk { max-height: calc(100dvh - 24px); }
  .trk-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trk-catch .trk-foot > * { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .trk-prog span, .trk-kind { transition: none; } }
