/* The ceremony artwork carries the page colour. The ranking text stays on opaque surfaces. */
.honor-banner {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(183px,18vw,226px); padding: 26px clamp(24px,4.5vw,65px);
  border: 1px solid #edced4; border-radius: 22px;
  background: linear-gradient(110deg,#fce6e8 3%,#f8d6db 52%,#efbbc6);
}
.honor-banner::before {
  content: ""; position: absolute; z-index: -1; inset-block: 0; right: 0; height: 100%; aspect-ratio: 1400 / 539;
  background: url("assets/honor-trophy.webp") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 35%);
  mask-image: linear-gradient(90deg,transparent,#000 35%);
}
.honor-banner-copy { position: relative; max-width: 60%; }
.honor-banner h1 { color: #472a39; font-size: clamp(2.3rem,4.6vw,3.75rem); font-weight: 790; letter-spacing: -.07em; line-height: 1.12; }
.honor-banner p { margin: 10px 0 16px; font-size: clamp(.97rem,1.45vw,1.08rem); color: #654655; line-height: 1.45; }
.honor-gifts-link { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border: 1px solid #c58e9d; border-radius: 8px; background: #fff8f9dc; color: #76334d; font-weight: 680; font-size: .9rem; }
.honor-gifts-link:hover { background: #fff; border-color: #a45e73; }
.honor-gifts-link .icon { width: 16px; height: 16px; }

.honor-controls, .honor-modes, .honor-months, .honor-month-field { display: flex; align-items: center; }
.honor-controls { justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; margin: 25px 0 19px; min-height: 44px; }
.honor-modes { padding: 4px; border-radius: 12px; background: #f2eaee; }
.honor-modes button { min-height: 37px; padding: 5px 20px; border-radius: 9px; color: #655560; font-weight: 650; }
.honor-modes button[aria-pressed="true"] { background: #fff; color: #923456; box-shadow: 0 1px 4px #4a293521, inset 0 0 0 1px #eadce1; }
.honor-months { gap: 4px; }
.honor-months > button { display: grid; place-items: center; width: 38px; height: 40px; border-radius: 9px; color: #604a55; }
.honor-months > button:hover:enabled, .honor-month-field:hover { background: #f8eef2; }
.honor-months > button:disabled { color: #c2b8bd; }
.honor-months > button .icon { width: 17px; height: 17px; }
#honor-prev .icon { transform: rotate(180deg); }
.honor-month-field { position: relative; border: 1px solid #e7d9df; border-radius: 9px; background: #fff; }
.honor-month-field select { position: relative; z-index: 1; appearance: none; min-height: 38px; padding: 4px 28px 4px 34px; background: transparent; border: 0; border-radius: 8px; font-weight: 650; }
.honor-month-field .icon { position: absolute; pointer-events: none; color: #8f6374; }
.honor-calendar { width: 16px; height: 16px; left: 10px; }
.honor-month-field .honor-down { width: 13px; height: 13px; right: 8px; transform: rotate(90deg); }

.honor-podium, .honor-list { margin: 0; padding: 0; list-style: none; }
.honor-podium { display: grid; grid-template-columns: repeat(auto-fit,minmax(0,1fr)); align-items: end; gap: clamp(9px,1.5vw,18px); }
.honor-award {
  --metal: #8a6650; --rim: #d8b8a2; --tint: #faf0e9;
  position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center;
  gap: 9px; min-width: 0; min-height: 150px; padding: 24px 14px 16px; overflow: hidden;
  background: linear-gradient(135deg,#fff 0%,var(--tint) 73%,#fff 124%); border: 1px solid var(--rim); border-radius: 15px;
}
.honor-award[data-rank="1"] { --metal: #785016; --rim: #d6b678; --tint: #fbefcf; min-height: 171px; }
.honor-award[data-rank="2"] { --metal: #536780; --rim: #c2cedb; --tint: #edf2f9; }
.honor-award[data-rank="3"] { --metal: #8c4d3e; --rim: #debaac; --tint: #faebe5; }
.honor-three .honor-award[data-rank="1"] { order: 2; }
.honor-three .honor-award[data-rank="2"] { order: 1; }
.honor-three .honor-award[data-rank="3"] { order: 3; }
.honor-award-rank { position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 4px; color: var(--metal); font-size: .875rem; font-weight: 750; }
.honor-award-rank .icon { width: 16px; height: 16px; }
.honor-ribbon { position: relative; display: grid; place-items: center; margin: 5px 0 2px; }
.honor-ribbon::before, .honor-ribbon::after {
  content: ""; position: absolute; z-index: -1; bottom: -6px; left: calc(50% - 17px);
  width: 17px; height: 23px; background: var(--rim); transform: rotate(19deg); clip-path: polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);
}
.honor-ribbon::after { left: 50%; transform: rotate(-19deg); }
.honor-avatar { width: 37px; height: 37px; flex: none; display: inline-grid; place-items: center; position: relative; border-radius: 50%; background: #f3e8ed; color: #986d80; }
.honor-avatar > .icon { width: 52%; height: 52%; }
.honor-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #f5edf0; }
.honor-ribbon .honor-avatar { width: 60px; height: 60px; border: 3px solid white; outline: 2px solid var(--rim); box-shadow: 0 3px 9px #47292e21; }
.honor-award[data-rank="1"] .honor-avatar { width: 72px; height: 72px; }
.honor-winner { width: 100%; margin-top: 4px; color: #332832; text-align: center; line-height: 1.25; font-size: clamp(1.07rem,1.8vw,1.45rem); font-weight: 740; letter-spacing: -.035em; overflow-wrap: anywhere; }
.honor-award[data-rank="1"] .honor-winner { font-size: clamp(1.23rem,2.1vw,1.65rem); }

.honor-roll { margin-top: 28px; }
.honor-roll-heading { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 10px; border-bottom: 2px solid #cc9aaa; }
.honor-roll-heading h2 { font-size: 1.35rem; font-weight: 730; letter-spacing: -.045em; }
.honor-roll-heading span, .honor-rank { color: #75616d; font-variant-numeric: tabular-nums; }
.honor-roll-heading span { font-size: .9rem; }
.honor-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--honor-lines,1),auto); grid-auto-flow: column; column-gap: clamp(18px,4vw,54px); }
.honor-entry { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 57px; padding: 8px 4px; border-bottom: 1px solid #eee5e9; }
.honor-rank { flex: 0 0 34px; text-align: center; font-size: .94rem; }
.honor-name { font-size: 1rem; font-weight: 610; line-height: 1.4; overflow-wrap: anywhere; }
.honor-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 18px; color: #746370; font-size: .9rem; }
.honor-source a { display: inline-flex; align-items: center; gap: 6px; color: #8b4862; font-weight: 630; }
.honor-source a:hover { text-decoration: underline; }
.honor-source .icon { width: 16px; height: 16px; }
.honor-notice { padding: 23px 20px; border: 1px dashed #d9bfca; border-radius: 14px; background: #fff8fb; color: #6e4b5a; }
.honor-notice button { margin-top: 8px; min-height: 32px; font-weight: 680; color: #8d3457; text-decoration: underline; }

@media (max-width: 640px) {
  .honor-banner { border-radius: 15px; min-height: 169px; padding: 20px; }
  .honor-banner::before { right: -6%; }
  .honor-banner-copy { max-width: 60%; }
  .honor-banner h1 { font-size: clamp(1.95rem,6.7vw,2.6rem); }
  .honor-banner p { max-width: 14em; margin: 7px 0 12px; font-size: .94rem; }
  .honor-controls { margin: 19px 0 15px; }
  .honor-modes button { padding-inline: 12px; }
  .honor-award-rank { top: 8px; left: 9px; }
  .honor-roll { margin-top: 23px; }
  .honor-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .honor-entry { min-height: 53px; }
}
@media (max-width: 520px) {
  .honor-controls { display: grid; justify-content: stretch; gap: 9px; }
  .honor-modes { width: 100%; }
  .honor-modes button { flex: 1; }
  .honor-months { justify-content: center; }
  .honor-podium { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .honor-award { min-height: 114px; padding: 17px 9px 10px; gap: 5px; }
  .honor-ribbon .honor-avatar { width: 43px; height: 43px; }
  .honor-winner { font-size: 1rem; }
  .honor-three .honor-award[data-rank="1"] { order: 0; }
  .honor-award[data-rank="1"] { grid-column: 1/-1; min-height: 91px; padding: 13px 18px; display: flex; justify-content: center; align-items: center; gap: 16px; }
  .honor-award[data-rank="1"] .honor-avatar { width: 53px; height: 53px; }
  .honor-award[data-rank="1"] .honor-winner { width: auto; max-width: 60%; }
  .honor-award-rank { font-size: .83rem; }
  .honor-ribbon::before, .honor-ribbon::after { height: 15px; bottom: -5px; }
}
@media (max-width: 405px) {
  .honor-banner { padding: 17px; min-height: 154px; }
  .honor-banner::before { right: -12%; }
  .honor-award[data-rank="1"] { padding-top: 22px; }
}
