/* The organisation tree. Drawn with CSS connectors rather than an image, so it
   reflows on a phone and reads correctly to a screen reader: it is a nested
   list of people, and the lines are decoration. */
.tree { margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.tree ul { margin: 0; padding: 0; list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

.branch { position: relative; padding-top: 2.2rem; }
/* the vertical line down from the branch above */
.branch::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 2.2rem;
  background: var(--sky2); transform: translateX(-50%);
}
.branch:first-child { padding-top: 0; }
.branch:first-child::before { display: none; }

.branch-label {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 800;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}

.person {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 6px 18px rgba(23, 37, 84, .07); padding: 1.3rem 1.2rem;
  width: 260px; text-align: center; transition: transform .15s, box-shadow .15s;
}
.person:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(23, 37, 84, .13); }
.person .avatar {
  width: 86px; height: 86px; border-radius: 50%; margin: 0 auto .8rem;
  object-fit: cover; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
  font-weight: 800; font-size: 1.7rem; letter-spacing: .02em;
}
.person .who { font-weight: 800; color: var(--navy); font-size: 1.05rem; line-height: 1.25; }
.person .role { color: var(--blue); font-weight: 700; font-size: .9rem; margin-top: .15rem; }
.person .creds { color: var(--muted); font-size: .8rem; margin-top: .4rem; }
.person .bio { color: var(--muted); font-size: .86rem; margin-top: .6rem; line-height: 1.5; }

/* the president sits alone and slightly larger */
.branch--administration .person { width: 300px; }
.branch--administration .person .avatar { width: 100px; height: 100px; font-size: 2rem; }

@media (max-width: 560px) {
  .person { width: 100%; max-width: 320px; }
  .branch { padding-top: 1.6rem; }
  .branch::before { height: 1.6rem; }
}

.tree-status { color: var(--muted); padding: 2.5rem 1rem; font-size: .95rem; }
.tree-status .spinner {
  display: inline-block; width: 18px; height: 18px; border: 2px solid var(--sky2);
  border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: -3px; margin-right: .5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .person { transition: none; }
  .tree-status .spinner { animation: none; }
}
