/* ==========================================================================
   30-crewportrait.css — THE CREW PORTRAIT, AND THE FACES IT PUTS ON SCREEN

   Three places show the same picture: the box in Crew Management where it is
   set, the username box at the top right, and the Users screen. They share
   one shape -- a round frame with a thin cyan ring -- because they are one
   thing, and a face that changed shape between screens would read as three
   different features.

   WHY THE CROP ORIGIN IS NEAR THE TOP. A round frame crops a rectangular
   photograph, and cropping from the middle takes the chin. css/29-headroom.css
   settled this for the speaker portraits by photographing every shape a
   headshot arrives in: 4% down is the first value with clear air above the
   crown. The same number is used here for the same reason, rather than a
   second opinion about the same question.
   ========================================================================== */

/* ---- THE SMALL FACES: the username box and the Users screen ------------- */
.xp-face {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 4%;
  border: 1.5px solid var(--cyan, #00b4d8);
  background: var(--navy2, #16243b);
  vertical-align: middle;
}

/* NOBODY'S PICTURE IS NOT AN EMPTY CIRCLE. A column of identical grey heads
   says nothing about which row is which; initials do. */
.xp-face-none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--brand, #c9a84c);
  border-color: rgba(201, 168, 76, .45);
}

/* In the username box the face sits before the two stacked lines. */
.xp-who .xp-face { margin-right: 8px; }

/* In the Users table it sits before the name on the same line. */
.xp-um-name .xp-face,
.xp-um-person .xp-face { margin-right: 7px; }

/* ---- THE BOX IN CREW MANAGEMENT ---------------------------------------- */
.cm-pt-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cm-pt-img {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 4%;
  border: 2px solid var(--cyan, #00b4d8);
  background: var(--navy2, #16243b);
}
.cm-pt-none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px; font-weight: 700; letter-spacing: 1px;
  color: var(--brand, #c9a84c);
  border-color: rgba(201, 168, 76, .45);
}
.cm-pt-side { flex: 1 1 auto; min-width: 0; }
.cm-pt-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cm-pt-rm { border-color: rgba(220, 80, 80, .5); color: #e08585; }

.cm-pt-note {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted, #94a3b8);
}
.cm-pt-note.cm-pt-ok { color: #7bd88f; }
.cm-pt-note.cm-pt-bad { color: #e8a0a0; }

/* On a narrow screen the picture and its buttons stack rather than squeezing
   the buttons into a column one word wide. */
@media (max-width: 560px) {
  .cm-pt-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---- WHO ARE YOU? The strip above the Sign In boxes --------------------- */
.xp-si-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.xp-si-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--c-border, rgba(255,255,255,.12));
  background: rgba(255, 255, 255, .04);
  color: var(--text, #e6ebf2);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.xp-si-person:hover,
.xp-si-person:focus-visible {
  border-color: var(--cyan, #00b4d8);
  background: rgba(0, 180, 216, .10);
  outline: none;
}
.xp-si-person.is-picked {
  border-color: var(--brand, #c9a84c);
  background: rgba(201, 168, 76, .12);
}
.xp-si-person .xp-face { margin: 0; }
.xp-si-person-text { display: flex; flex-direction: column; min-width: 0; }
.xp-si-person-name { font-size: 12px; font-weight: 600; line-height: 1.25; }
.xp-si-person-sub  { font-size: 10px; color: var(--muted, #94a3b8); line-height: 1.25; }

/* A face in each crew roster row, before the surname. */
.cm-last .xp-face { margin-right: 8px; }
