/* Match normal avatar sizes while showing only the photo in old award graphics. */
.v4-person-avatar-crop {
  display: block;
  position: relative;
  flex: none;
  width: 150px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 auto;
}

.v4-person-avatar-crop > img {
  position: absolute;
  height: 112%;
  width: auto;
  max-width: none;
  top: -6%;
  left: -10%;
}

.v4-person-avatar-crop > img.v4-person-avatar-default {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: contain;
  padding: 14px;
  background: #fff4f5;
  border: 1px solid #f6e3e8;
  border-radius: 50%;
}

@media (max-width: 1250px) {
  .v4-person-avatar-crop { width: 120px; }
}

@media (max-width: 600px) {
  .v4-person-avatar-crop { width: 95px; }
}

.v4-monthly-donors, #monthly-ambassador-search { scroll-margin-top: calc(var(--v4-header-height,80px) + 20px); }
.v4-monthly-names { list-style: none; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin: 0; padding: 12px 24px 24px; gap: 0 20px; }
.v4-monthly-names > li { padding: 17px 8px; text-align: center; border-bottom: 1px solid #f0e8eb; overflow-wrap: anywhere; font-size: 15px; }
.v4-monthly-empty { text-align: center; padding: 36px 24px; color: #8a7b80; }
@media (max-width: 900px) {
  .v4-monthly-names { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .v4-monthly-names { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 4px 18px 20px; gap: 0 10px; }
  .v4-monthly-names > li { padding: 15px 4px; font-size: 14px; }
}

/* Keep the same search controls with only a name field and action. */
.v4-body .v4-monthly-name-search { --v4-search-width: 376px; grid-template-columns: minmax(0,1fr) auto; }
.v4-body .v4-monthly-name-search .v4-night-query { grid-column: auto; }
.v4-body .v4-monthly-ambassadors > .v4-person-grid { padding-top: 8px; }
.v4-body .v4-monthly-ambassadors > .v4-person-grid > .v4-empty { grid-column: 1 / -1; }

/* The optional name view keeps all text and links without reserving photo space. */
.v4-body .v4-person-grid[data-show-avatars="false"] {
  grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0 16px; padding: 8px 24px 24px;
}
.v4-body .v4-person-grid[data-show-avatars="false"] > .v4-person {
  min-width: 0; min-height: 44px; padding: 14px 4px; gap: 0;
  border: 0; border-bottom: 1px solid #f0e8eb; border-radius: 0; box-shadow: none; background: transparent;
  align-self: stretch; justify-content: center; overflow-wrap: anywhere; text-align: center;
}
.v4-body .v4-person-grid[data-show-avatars="false"] .v4-person > div { min-width: 0; width: 100%; }
.v4-body .v4-person-grid[data-show-avatars="false"] h3 { margin: 0; color: #51434a; font-size: 16px; font-weight: 500; line-height: 1.6; }
@media (max-width: 900px) {
  .v4-body .v4-person-grid[data-show-avatars="false"] { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .v4-body .v4-person-grid[data-show-avatars="false"] { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 10px; padding: 4px 18px 20px; }
  .v4-body .v4-person-grid[data-show-avatars="false"] > .v4-person { padding: 13px 3px; }
  .v4-body .v4-person-grid[data-show-avatars="false"] h3 { font-size: 14px; }
}
