/* An account with no vacancies: the mascot (pages/vacancies/welcome.js). Wide screens show it in the detail pane,
   phones above the feed, where the feed's own line gives way to it. No frame: a soft light behind the mascot. */
.vacancies-page .empty-stage { display: grid; min-height: 100%; justify-items: center; align-content: center; gap: 36px; padding: 48px 24px; text-align: center; background: radial-gradient(closest-side at 50% 42%, rgba(255, 255, 255, .045), transparent); }
.vacancies-page .empty-stage-face { font-size: clamp(240px, 23vw, 330px); }

/* a quiet grey that wants to be pressed: pull-to-pointer.js sets --pull (0 far, 1 on it) and --x/--y as the pointer nears,
   the button leans toward it and lights up, the label leans a little further */
.vacancies-page .empty-stage-create { --pull: 0; --x: 0px; --y: 0px; display: inline-flex; min-height: 62px; align-items: center; justify-content: center; padding: 0 40px; border-radius: 999px; background: color-mix(in srgb, #3a3a3a calc(var(--pull) * 100%), #262626); color: color-mix(in srgb, #fff calc(var(--pull) * 100%), #d6d6d6); box-shadow: 0 0 0 calc(var(--pull) * 6px) rgba(255, 255, 255, calc(var(--pull) * .05)), 0 calc(var(--pull) * 14px) calc(var(--pull) * 36px) rgba(0, 0, 0, .5); font-size: 20px; font-weight: 620; text-decoration: none; translate: var(--x) var(--y); scale: calc(1 + var(--pull) * .04); }
.vacancies-page .empty-stage-create span { translate: calc(var(--x) * .4) calc(var(--y) * .4); }
.vacancies-page .empty-stage-create:hover { text-decoration: none; }
.vacancies-page .empty-stage-create:active { scale: .97; }
.vacancies-page #feed-welcome { display: none; }
.vacancies-page:has(.empty-stage) .feed-empty strong { display: none; }

/* the mascot says over its shoulder, like the login's bubble: shared/face.js moves .empty-stage-say to the egg's upper-right edge */
.vacancies-page .empty-stage-mascot { position: relative; display: grid; }
.vacancies-page .empty-stage-say { position: absolute; left: 0; bottom: 100%; pointer-events: none; }
.vacancies-page .empty-stage-say-bubble { display: block; width: max-content; max-width: 250px; padding: 10px 17px; border-radius: 22px 22px 22px 6px; background: #2a2a2a; color: #f1f1f1; font-size: 18px; font-weight: 500; line-height: 1.3; text-align: left; transform-origin: 0 100%; animation: empty-say-pop .55s cubic-bezier(.34, 1.56, .64, 1) .6s backwards; }
@keyframes empty-say-pop { from { opacity: 0; transform: translate(-6px, 8px) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .vacancies-page .empty-stage-say-bubble { animation: none; } }

/* no search asks for one, a working search talks, a vacancy that has come only waits to be opened */
.vacancies-page .empty-stage:not([data-state="working"]) .empty-stage-say { display: none; }
.vacancies-page .empty-stage[data-state="working"] .face-z { display: none; }
.vacancies-page .empty-stage:not([data-state="new"]) .empty-stage-create { display: none; }

@media (max-width: 820px) {
  .vacancies-page #feed-welcome { display: block; }
  .vacancies-page .empty-stage { min-height: 0; gap: 28px; padding: 52px 8px 20px; }
  .vacancies-page .empty-stage-face { font-size: 200px; }
  .vacancies-page .empty-stage-create { width: 100%; min-height: 58px; font-size: 19px; }

  /* no room beside the egg on a phone: the bubble stands centred above it, two lines, a small concave tail points at the head */
  .vacancies-page .empty-stage-say-bubble { position: relative; max-width: 262px; text-wrap: balance; translate: -50% -16px; padding: 10px 18px 11px; border-radius: 22px; font-size: 16px; text-align: center; transform-origin: 50% 100%; }
  .vacancies-page .empty-stage-say-bubble::after { position: absolute; top: calc(100% - 1px); left: 50%; width: 22px; height: 11px; margin-left: -11px; background: #2a2a2a; clip-path: path("M0 0 C6 0 9 4 11 11 C13 4 16 0 22 0 Z"); content: ""; }

  /* room above the egg for the bubble, under the filters */
  .vacancies-page .empty-stage[data-state="working"] { padding-top: 104px; }
}
