/* Richmond Student Awards · Portrait Card Fix (20 Oct 2026)
   Purpose: keep the REAL, approved nominee photo fully visible while the
   silver badge stays a small corner emblem. Only applies to /awards/.
   No student account, CRM, finance or voting styles are changed.
*/
.awards-page .awards-nominee-grid {
  gap: 20px;
  align-items: stretch;
}
.awards-page .awards-nominee {
  background: linear-gradient(155deg, #1b232b 0%, #111820 52%, #0d131a 100%);
  border: 1px solid rgba(199, 160, 99, .24);
  border-radius: 21px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .30), inset 0 1px rgba(255, 255, 255, .055);
  isolation: isolate;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.awards-page .awards-nominee:hover {
  border-color: rgba(233, 191, 126, .70);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .47), 0 0 0 1px rgba(210, 166, 93, .11);
  transform: translateY(-4px);
}
.awards-page .awards-nominee-portrait {
  position: relative;
  height: 368px;
  min-height: 368px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 36%, #303b49 0%, #1a2430 49%, #0d1117 100%);
  border-bottom: 1px solid rgba(225, 177, 108, .26);
  isolation: isolate;
}
.awards-page .awards-nominee-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 88%, rgba(205, 157, 80, .15), transparent 62%),
              linear-gradient(130deg, rgba(255, 255, 255, .045), transparent 40%);
  z-index: 0;
  pointer-events: none;
}
/* A portrait should be FULLY visible. Do not crop heads, shoulders or clothes. */
.awards-page .awards-nominee-portrait > img:not(.ra3-nominee-stamp) {
  display: block;
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  border: 0 !important;
  filter: drop-shadow(0 9px 25px rgba(0, 0, 0, .25));
}
.awards-page .awards-nominee-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 19, .10), transparent 36%, transparent 79%, rgba(9, 14, 21, .53));
}
/* CRITICAL FIX: the existing broad ".awards-nominee-portrait img" rule
   was making the medal 100% x 100%, hiding student photos behind it. */
.awards-page .awards-nominee-portrait > img.ra3-nominee-stamp {
  position: absolute !important;
  top: 17px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  width: 65px !important;
  height: 72px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 65px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  object-position: center !important;
  z-index: 7 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .70));
  pointer-events: none !important;
}
.awards-page .awards-nominee-initials {
  position: relative;
  z-index: 1;
  font-size: 86px;
  color: rgba(238, 196, 126, .56);
  text-shadow: 0 9px 32px rgba(0, 0, 0, .20);
}
.awards-page .awards-nominee-ribbon {
  top: 20px;
  left: 16px;
  z-index: 8;
  border-color: rgba(239, 206, 150, .62);
  background: rgba(14, 20, 27, .86);
  color: #ffe4b8;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .30);
}
.awards-page .awards-nominee-body {
  padding: 23px 22px 21px;
  position: relative;
}
.awards-page .awards-nominee-body h4 {
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.025em;
}
.awards-page .awards-nominee-body .group {
  color: #f0c889;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .025em;
}
.awards-page .awards-nominee-body p {
  color: #afbac6;
  font-size: 12px;
  line-height: 1.7;
  min-height: 56px;
}
.awards-page .awards-nominee-foot {
  border-top-color: rgba(225, 188, 127, .20);
}
@media (max-width: 1100px) {
  .awards-page .awards-nominee-portrait {
    height: 355px;
    min-height: 355px;
  }
}
@media (max-width: 620px) {
  .awards-page .awards-nominee-grid { gap: 18px; }
  .awards-page .awards-nominee { border-radius: 19px; }
  .awards-page .awards-nominee-portrait {
    height: 400px;
    min-height: 400px;
  }
  .awards-page .awards-nominee-body { padding: 19px 19px 20px; }
  .awards-page .awards-nominee-body h4 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .awards-page .awards-nominee { transition: none; }
}
