/* Team — people grid (Wireframe 9-4845). White cards like icon-cards (28px
   padding, 24/32 name). The no-photo state is a navy tile with the booking
   band's rays fanning up behind an orange monogram — deliberate, on-brand,
   and quiet enough that three of them don't shout "missing". */
.sun-team { display: block; }
.sun-team__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  padding-block: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 48px);
}
.sun-team__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.sun-team__heading {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.16px;
  color: var(--sun-secondary);
  text-wrap: balance;
}
.sun-team__heading-muted { color: var(--sun-bluegrey); }
.sun-team__subhead { margin: 0; font-size: 16px; line-height: 24px; color: var(--sun-bluegrey); }

.sun-team__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sun-team--cols-4 .sun-team__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sun-team__card { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; background: var(--sun-base); border-radius: 4px; overflow: hidden; }
.sun-team__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--sun-secondary);
  overflow: hidden;
}
/* Nobody has a photo yet: shorter tiles so the placeholders don't dominate. */
.sun-team--no-photos .sun-team__photo { aspect-ratio: 16 / 10; }
.sun-team__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sun-team__card:hover .sun-team__img { transform: scale(1.03); }

.sun-team__rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--sun-base);
  stroke-width: 1;
  opacity: .11;
}
/* Monogram: orange initials in a hairline ring, like a seal. */
.sun-team__initials {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: clamp(88px, 8vw, 112px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: var(--sun-secondary);
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--sun-primary);
}
.sun-team__body { flex: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 28px; }
.sun-team__text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sun-team__name {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: 24px;                               /* icon-cards title 24/32 */
  line-height: 32px;
  color: var(--sun-secondary);
}
.sun-team--cols-4 .sun-team__name { font-size: 20px; line-height: 28px; }
.sun-team__role { margin: 0; font-size: 16px; line-height: 24px; color: var(--sun-bluegrey); }
.sun-team__links { display: flex; gap: 8px; flex: none; align-self: flex-end; }
.sun-team__link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--sun-muted);
  border-radius: 50%;
  color: var(--sun-secondary);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sun-team__link:hover { background: var(--sun-secondary-hover); border-color: var(--sun-secondary-hover); color: var(--sun-base); }
.sun-team__link:focus-visible { outline: 3px solid var(--sun-primary); outline-offset: 2px; }
.sun-team .sun-team__icon { width: 18px; height: 18px; }

/* Narrow card (4 columns, tablets): links drop under the role instead of
   squeezing name and role into a one-word column. */
@container (max-width: 300px) {
  .sun-team__body { flex-direction: column; align-items: flex-start; }
  .sun-team__links { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .sun-team__img { transition: none; }
  .sun-team__card:hover .sun-team__img { transform: none; }
}

@media (max-width: 1024px) {
  .sun-team__name,
  .sun-team--cols-4 .sun-team__name { font-size: 20px; line-height: 28px; }
  .sun-team__role { font-size: 14px; line-height: 20px; }
  .sun-team__body { padding: 20px 24px 24px; }
}
/* 4 columns fold straight to 2×2 (4→3 orphans a card); 3 columns stay 3
   down to 700 so a three-person team never leaves an orphan on tablets. */
@media (max-width: 900px) {
  .sun-team--cols-4 .sun-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .sun-team--cols-4 .sun-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sun-team__body { padding: 16px 20px 20px; }
  .sun-team__name, .sun-team--cols-4 .sun-team__name { font-size: 18px; line-height: 24px; }
}
@media (max-width: 700px) {
  .sun-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Placeholders only: a compact row (monogram tile left, name right)
     instead of navy blocks stacked down the screen. */
  .sun-team--no-photos .sun-team__grid { grid-template-columns: 1fr; }
  .sun-team--no-photos .sun-team__card { flex-direction: row; }
  .sun-team--no-photos .sun-team__photo { flex: none; width: 104px; aspect-ratio: auto; min-height: 104px; }
  .sun-team--no-photos .sun-team__initials { width: 64px; font-size: 24px; }
  .sun-team--no-photos .sun-team__body { align-items: center; }
  .sun-team--no-photos .sun-team__links { align-self: center; }
}
@media (max-width: 480px) {
  .sun-team__grid,
  .sun-team--cols-4 .sun-team__grid { grid-template-columns: 1fr; }
  .sun-team__photo { aspect-ratio: 4 / 3; }
}
