/* ============================================================
   CSS 12.05 — Profile row: photo, text, button
   ============================================================
   Look for the lines marked  ★ FLEX .  Those are the lines that make
   the layout. Everything at the bottom is decoration (colours, padding,
   borders) from earlier lessons.

   .person      { display: flex; align-items: center; gap: 14px; }
   .avatar      { flex-shrink: 0; }   ← NEVER squash the photo (else the circle becomes an oval)
   .person-info { flex: 1; }          ← the text takes the middle space
   ============================================================ */

.person {
  display: flex;                    /* ★ FLEX */
  align-items: center;              /* ★ FLEX: photo, text and button lined up in the middle */
  gap: 14px;                        /* ★ FLEX */
}

.avatar {
  flex-shrink: 0;                   /* ★ FLEX: the photo never gets squashed */
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;                    /* ★ FLEX: centre the initials inside the circle (lesson 11) */
  justify-content: center;
  align-items: center;
}

.person-info {
  flex: 1;                          /* ★ FLEX: the text gets the middle */
  display: flex;                    /* name above the role …              */
  flex-direction: column;           /* … stacked in a column              */
}
/* Try it: remove  flex-shrink: 0;  from .avatar and make the window narrow
   → the circle gets squashed into an oval. */


/* ------------------------------------------------------------
   Only to make the list look nice — not part of this lesson
   ------------------------------------------------------------ */
.people {
  max-width: 560px;
}

.person {
  padding: 12px 0;
  border-bottom: 1px solid #E4E4E4;
}

.avatar {
  background-color: #2D62EF;
  color: #FFFFFF;
  font-weight: 700;
}

.avatar-green { background-color: #1F9D55; }

.person-info span {
  color: #525252;
  font-size: 14px;
}

.small-btn {
  color: #2D62EF;
  font-weight: 700;
  text-decoration: none;
}
