/**
 * ASDF About — leadership photos + biography side drawer.
 *
 * Ships with this plugin (never resolved from the theme) so the drawer is
 * always styled even if the active theme's about.css is an older build.
 * Every custom property carries a literal fallback for the same reason.
 */

/* ---- Team card ----------------------------------------------------- */
.about-team-avatar.has-photo {
  padding: 0;
  overflow: hidden;
  background: var(--bg-lavender, #f4ecf5);
}
.about-team-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-team-card.is-clickable {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-team-card.is-clickable:hover,
.about-team-card.is-clickable:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(94, 16, 98, 0.14);
  outline: none;
}
.about-team-card.is-clickable:focus-visible {
  outline: 2px solid var(--primary-purple, #5e1062);
  outline-offset: 3px;
}

.about-team-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-purple, #5e1062);
}
.about-team-more::after {
  content: '→';
  margin-left: 6px;
  transition: transform 0.25s ease;
  display: inline-block;
}
.about-team-card.is-clickable:hover .about-team-more::after { transform: translateX(4px); }

.about-team-bio { display: none; }

/* ---- Drawer -------------------------------------------------------- */
.asdf-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above the fixed header (1000) and top bar (1100) */
}
.asdf-drawer[hidden] { display: none; }

.asdf-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 4, 26, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.asdf-drawer.is-open .asdf-drawer-backdrop { opacity: 1; }

.asdf-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(460px, 100%);
  background: var(--white, #fff);
  box-shadow: -18px 0 50px rgba(94, 16, 98, 0.18);
  padding: 34px 34px 44px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.asdf-drawer.is-open .asdf-drawer-panel { transform: translateX(0); }

.asdf-drawer-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-lavender, #f4ecf5);
  color: var(--primary-purple, #5e1062);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.asdf-drawer-close:hover { background: var(--border-lavender, #dfd2e3); }

.asdf-drawer-head {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-lavender, #dfd2e3);
}

.asdf-drawer-avatar {
  width: 110px;
  height: 110px;
  margin: 6px auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-purple, #5e1062), var(--accent-purple, #7d1c82));
  color: var(--white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
}
.asdf-drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asdf-drawer-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark, #2a252c);
}
.asdf-drawer-role {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-purple, #5e1062);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.asdf-drawer-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light, #6d6470);
}
.asdf-drawer-body p { margin: 0 0 15px; }
.asdf-drawer-body p:last-child { margin-bottom: 0; }

/* Page behind the drawer must not scroll while it is open. */
body.asdf-drawer-open { overflow: hidden; }

@media (max-width: 600px) {
  .asdf-drawer-panel { width: 100%; padding: 30px 22px 38px; }
  .asdf-drawer-avatar { width: 92px; height: 92px; font-size: 30px; }
}
