/* Open to work (green) and Hiring (blue): a ring on the photo and a small pill.
   Drawn like the status rings (member-status.css) so they feel part of the same family.
   One ring at a time: a photo that already wears a status ring or the gold frame keeps it,
   and only the pill shows (work-signal.js decides). */
:root { --emw-open: #22c55e; --emw-hire: #3b82f6; }

.emw-ring { border-radius: 50%; box-shadow: 0 0 0 2px var(--lv-ring-gap, #111), 0 0 0 4.5px var(--emw-c) !important; }
.pf-av.emw-ring { box-shadow: 0 0 0 4px var(--lv-ring-gap, #111), 0 0 0 8px var(--emw-c) !important; }
.mc-av.emw-ring { box-shadow: 0 0 0 3px var(--lv-ring-gap, #111), 0 0 0 6px var(--emw-c) !important; }
.emw-open { --emw-c: var(--emw-open); }
.emw-hire { --emw-c: var(--emw-hire); }

/* the pill: green "Open to Internship, Job", blue "Hiring · Company" */
.emw-pill {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid transparent;
  font-size: .74rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.emw-pill > span { overflow: hidden; text-overflow: ellipsis; }
.emw-pill i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(34,197,94,.22); }
.emw-pill svg { flex: none; }
.emw-pill.emw-open { background: rgba(34,197,94,.13); border-color: rgba(34,197,94,.38); color: #6ee7a0; }
.emw-pill.emw-hire { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.42); color: #93c5fd; }
[data-theme="light"] .emw-pill.emw-open { color: #15803d; background: rgba(34,197,94,.1); }
[data-theme="light"] .emw-pill.emw-hire { color: #1d4ed8; background: rgba(59,130,246,.09); }
.emw-pill.emw-sm { font-size: .66rem; padding: 2px 8px 2px 6px; gap: 4px; }
.emw-pill.emw-sm i { width: 6px; height: 6px; box-shadow: none; }
.emw-pill .emw-only { opacity: .75; font-weight: 600; }

/* where the pill sits */
.pf-work { margin: 8px 0 2px; }
.mc .emw-pill { display: flex; width: max-content; max-width: calc(100% - 20px); margin: 2px auto 4px; }
.fpost-name .emw-pill { margin-left: 6px; }

/* the member's own card on their profile: "still looking?" and who can see it */
.emw-self {
  margin: 14px 24px 0; padding: 12px 14px; border-radius: 14px;   /* lines up with the profile cards below it (.pf-complete) */
  border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.07);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .84rem; line-height: 1.45;
}
.emw-self.emw-off { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.08); }
.emw-self p { margin: 0; flex: 1 1 240px; min-width: 0; }
.emw-self p small { display: block; color: var(--muted, #9a9aa5); font-size: .76rem; }
.emw-self .emw-btns { display: flex; gap: 8px; flex-wrap: wrap; }
:is(#em-x, .emw-self button).emw-btn {
  height: auto !important; min-height: 34px !important; padding: 6px 14px !important; border-radius: 999px !important;
  border: 1px solid rgba(127,127,127,.35) !important; background: transparent !important; color: inherit !important;
  font: inherit; font-weight: 700 !important; font-size: .8rem !important; cursor: pointer;
}
:is(#em-x, .emw-self button).emw-btn.emw-go { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }

/* Settings, Career: who can see it */
.emw-vis { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(127,127,127,.18); }
.emw-vis b { display: block; font-size: .82rem; margin-bottom: 6px; }
.emw-vis .psc-chips { margin-bottom: 6px; }
.emw-vis small { display: block; font-size: .76rem; color: var(--muted, #9a9aa5); line-height: 1.45; }

/* People page cards (eventme-africa.js _plistItemHTML) */
.pp-av.emw-ring { box-shadow: 0 0 0 3px var(--lv-ring-gap, #111), 0 0 0 6px var(--emw-c) !important; }
.pp-work { display: flex; justify-content: center; margin: 4px 0 2px; }
